]> git.sesse.net Git - vlc/blob - configure
Documentation updates.
[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   --with-words=endianness Set endianness (big or little)"
16 ac_help="$ac_help
17   --with-tuning=[arch]    Enable special tuning for an architecture
18                           (default i686 on IA-32 and 750 on PPC)"
19 ac_help="$ac_help
20   --enable-release        Activate extra optimizations (default disabled)"
21 ac_help="$ac_help
22   --disable-mmx           Disable MMX optimizations (default enabled for x86)"
23 ac_help="$ac_help
24   --disable-altivec       Disable altivec optimizations (default enabled on PPC)"
25 ac_help="$ac_help
26   --enable-debug          Enable debug mode (default disabled)"
27 ac_help="$ac_help
28   --enable-trace          Enable trace mode (default disabled)"
29 ac_help="$ac_help
30   --enable-gprof          Enable gprof profiling (default disabled)"
31 ac_help="$ac_help
32   --enable-cprof          Enable cprof profiling (default disabled)"
33 ac_help="$ac_help
34   --disable-optimizations Disable compiler optimizations (default enabled)"
35 ac_help="$ac_help
36   --enable-pth            Enable GNU Pth support (default disabled)"
37 ac_help="$ac_help
38   --with-dvdcss[=name]    way to use libdvdcss, either 'yes' or 'no',
39                           or 'local-static', 'local-shared', or a path to
40                           another libdvdcss such as '/usr/local'
41                           (default 'local-static')"
42 ac_help="$ac_help
43   --enable-vcd            VCD support for Linux (default enabled)"
44 ac_help="$ac_help
45   --disable-dummy         dummy module (default enabled)"
46 ac_help="$ac_help
47   --disable-null          Null module (default enabled)"
48 ac_help="$ac_help
49   --disable-rc            rc module (default enabled)"
50 ac_help="$ac_help
51   --disable-dsp           Linux /dev/dsp support (default enabled)"
52 ac_help="$ac_help
53   --enable-esd            Esound library support (default disabled)"
54 ac_help="$ac_help
55   --enable-darwin         Darwin sound support (default enabled on MacOS X)"
56 ac_help="$ac_help
57   --enable-macosx         MacOS X support (default enabled on MacOS X)"
58 ac_help="$ac_help
59   --disable-qnx           QNX RTOS support (default enabled on QNX RTOS)"
60 ac_help="$ac_help
61   --enable-fb             Linux framebuffer support (default disabled)"
62 ac_help="$ac_help
63   --with-ggi[=name]       GGI support (default disabled)"
64 ac_help="$ac_help
65   --disable-sdl           SDL support (default enabled)"
66 ac_help="$ac_help
67   --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
68 ac_help="$ac_help
69   --with-directx[=name]   Windows DirectX support (default enabled)"
70 ac_help="$ac_help
71   --with-glide[=name]     Glide (3dfx) support (default disabled)"
72 ac_help="$ac_help
73   --enable-ncurses        ncurses interface support (default disabled)"
74 ac_help="$ac_help
75   --enable-qt             Qt interface support (default disabled)"
76 ac_help="$ac_help
77   --enable-kde            KDE interface support (default disabled)"
78 ac_help="$ac_help
79   --enable-gnome          Gnome interface support (default disabled)"
80 ac_help="$ac_help
81   --disable-gtk           Gtk+ support (default enabled)"
82 ac_help="$ac_help
83   --disable-x11           X11 support (default enabled)"
84 ac_help="$ac_help
85   --disable-xvideo        XVideo support (default enabled)"
86 ac_help="$ac_help
87   --enable-alsa           Alsa sound drivers support (Only for linux)
88                           (default disabled)"
89 ac_help="$ac_help
90   --disable-plugins       Make all plug-ins built-in (default plug-ins enabled)"
91
92 # Initialize some variables set by options.
93 # The variables have the same names as the options, with
94 # dashes changed to underlines.
95 build=NONE
96 cache_file=./config.cache
97 exec_prefix=NONE
98 host=NONE
99 no_create=
100 nonopt=NONE
101 no_recursion=
102 prefix=NONE
103 program_prefix=NONE
104 program_suffix=NONE
105 program_transform_name=s,x,x,
106 silent=
107 site=
108 srcdir=
109 target=NONE
110 verbose=
111 x_includes=NONE
112 x_libraries=NONE
113 bindir='${exec_prefix}/bin'
114 sbindir='${exec_prefix}/sbin'
115 libexecdir='${exec_prefix}/libexec'
116 datadir='${prefix}/share'
117 sysconfdir='${prefix}/etc'
118 sharedstatedir='${prefix}/com'
119 localstatedir='${prefix}/var'
120 libdir='${exec_prefix}/lib'
121 includedir='${prefix}/include'
122 oldincludedir='/usr/include'
123 infodir='${prefix}/info'
124 mandir='${prefix}/man'
125
126 # Initialize some other variables.
127 subdirs=
128 MFLAGS= MAKEFLAGS=
129 SHELL=${CONFIG_SHELL-/bin/sh}
130 # Maximum number of lines to put in a shell here document.
131 ac_max_here_lines=12
132
133 ac_prev=
134 for ac_option
135 do
136
137   # If the previous option needs an argument, assign it.
138   if test -n "$ac_prev"; then
139     eval "$ac_prev=\$ac_option"
140     ac_prev=
141     continue
142   fi
143
144   case "$ac_option" in
145   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
146   *) ac_optarg= ;;
147   esac
148
149   # Accept the important Cygnus configure options, so we can diagnose typos.
150
151   case "$ac_option" in
152
153   -bindir | --bindir | --bindi | --bind | --bin | --bi)
154     ac_prev=bindir ;;
155   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
156     bindir="$ac_optarg" ;;
157
158   -build | --build | --buil | --bui | --bu)
159     ac_prev=build ;;
160   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
161     build="$ac_optarg" ;;
162
163   -cache-file | --cache-file | --cache-fil | --cache-fi \
164   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
165     ac_prev=cache_file ;;
166   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
167   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
168     cache_file="$ac_optarg" ;;
169
170   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
171     ac_prev=datadir ;;
172   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
173   | --da=*)
174     datadir="$ac_optarg" ;;
175
176   -disable-* | --disable-*)
177     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
178     # Reject names that are not valid shell variable names.
179     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181     fi
182     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183     eval "enable_${ac_feature}=no" ;;
184
185   -enable-* | --enable-*)
186     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187     # Reject names that are not valid shell variable names.
188     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190     fi
191     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192     case "$ac_option" in
193       *=*) ;;
194       *) ac_optarg=yes ;;
195     esac
196     eval "enable_${ac_feature}='$ac_optarg'" ;;
197
198   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
199   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
200   | --exec | --exe | --ex)
201     ac_prev=exec_prefix ;;
202   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
203   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
204   | --exec=* | --exe=* | --ex=*)
205     exec_prefix="$ac_optarg" ;;
206
207   -gas | --gas | --ga | --g)
208     # Obsolete; use --with-gas.
209     with_gas=yes ;;
210
211   -help | --help | --hel | --he)
212     # Omit some internal or obsolete options to make the list less imposing.
213     # This message is too long to be a string in the A/UX 3.1 sh.
214     cat << EOF
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
217 Configuration:
218   --cache-file=FILE       cache test results in FILE
219   --help                  print this message
220   --no-create             do not create output files
221   --quiet, --silent       do not print \`checking...' messages
222   --version               print the version of autoconf that created configure
223 Directory and file names:
224   --prefix=PREFIX         install architecture-independent files in PREFIX
225                           [$ac_default_prefix]
226   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
227                           [same as prefix]
228   --bindir=DIR            user executables in DIR [EPREFIX/bin]
229   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
230   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
231   --datadir=DIR           read-only architecture-independent data in DIR
232                           [PREFIX/share]
233   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
234   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
235                           [PREFIX/com]
236   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
237   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
238   --includedir=DIR        C header files in DIR [PREFIX/include]
239   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
240   --infodir=DIR           info documentation in DIR [PREFIX/info]
241   --mandir=DIR            man documentation in DIR [PREFIX/man]
242   --srcdir=DIR            find the sources in DIR [configure dir or ..]
243   --program-prefix=PREFIX prepend PREFIX to installed program names
244   --program-suffix=SUFFIX append SUFFIX to installed program names
245   --program-transform-name=PROGRAM
246                           run sed PROGRAM on installed program names
247 EOF
248     cat << EOF
249 Host type:
250   --build=BUILD           configure for building on BUILD [BUILD=HOST]
251   --host=HOST             configure for HOST [guessed]
252   --target=TARGET         configure for TARGET [TARGET=HOST]
253 Features and packages:
254   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
255   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
256   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
257   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
258   --x-includes=DIR        X include files are in DIR
259   --x-libraries=DIR       X library files are in DIR
260 EOF
261     if test -n "$ac_help"; then
262       echo "--enable and --with options recognized:$ac_help"
263     fi
264     exit 0 ;;
265
266   -host | --host | --hos | --ho)
267     ac_prev=host ;;
268   -host=* | --host=* | --hos=* | --ho=*)
269     host="$ac_optarg" ;;
270
271   -includedir | --includedir | --includedi | --included | --include \
272   | --includ | --inclu | --incl | --inc)
273     ac_prev=includedir ;;
274   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
275   | --includ=* | --inclu=* | --incl=* | --inc=*)
276     includedir="$ac_optarg" ;;
277
278   -infodir | --infodir | --infodi | --infod | --info | --inf)
279     ac_prev=infodir ;;
280   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
281     infodir="$ac_optarg" ;;
282
283   -libdir | --libdir | --libdi | --libd)
284     ac_prev=libdir ;;
285   -libdir=* | --libdir=* | --libdi=* | --libd=*)
286     libdir="$ac_optarg" ;;
287
288   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
289   | --libexe | --libex | --libe)
290     ac_prev=libexecdir ;;
291   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
292   | --libexe=* | --libex=* | --libe=*)
293     libexecdir="$ac_optarg" ;;
294
295   -localstatedir | --localstatedir | --localstatedi | --localstated \
296   | --localstate | --localstat | --localsta | --localst \
297   | --locals | --local | --loca | --loc | --lo)
298     ac_prev=localstatedir ;;
299   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
300   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
301   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
302     localstatedir="$ac_optarg" ;;
303
304   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
305     ac_prev=mandir ;;
306   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
307     mandir="$ac_optarg" ;;
308
309   -nfp | --nfp | --nf)
310     # Obsolete; use --without-fp.
311     with_fp=no ;;
312
313   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
314   | --no-cr | --no-c)
315     no_create=yes ;;
316
317   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
318   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
319     no_recursion=yes ;;
320
321   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
322   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
323   | --oldin | --oldi | --old | --ol | --o)
324     ac_prev=oldincludedir ;;
325   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
326   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
327   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
328     oldincludedir="$ac_optarg" ;;
329
330   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
331     ac_prev=prefix ;;
332   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
333     prefix="$ac_optarg" ;;
334
335   -program-prefix | --program-prefix | --program-prefi | --program-pref \
336   | --program-pre | --program-pr | --program-p)
337     ac_prev=program_prefix ;;
338   -program-prefix=* | --program-prefix=* | --program-prefi=* \
339   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
340     program_prefix="$ac_optarg" ;;
341
342   -program-suffix | --program-suffix | --program-suffi | --program-suff \
343   | --program-suf | --program-su | --program-s)
344     ac_prev=program_suffix ;;
345   -program-suffix=* | --program-suffix=* | --program-suffi=* \
346   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
347     program_suffix="$ac_optarg" ;;
348
349   -program-transform-name | --program-transform-name \
350   | --program-transform-nam | --program-transform-na \
351   | --program-transform-n | --program-transform- \
352   | --program-transform | --program-transfor \
353   | --program-transfo | --program-transf \
354   | --program-trans | --program-tran \
355   | --progr-tra | --program-tr | --program-t)
356     ac_prev=program_transform_name ;;
357   -program-transform-name=* | --program-transform-name=* \
358   | --program-transform-nam=* | --program-transform-na=* \
359   | --program-transform-n=* | --program-transform-=* \
360   | --program-transform=* | --program-transfor=* \
361   | --program-transfo=* | --program-transf=* \
362   | --program-trans=* | --program-tran=* \
363   | --progr-tra=* | --program-tr=* | --program-t=*)
364     program_transform_name="$ac_optarg" ;;
365
366   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
367   | -silent | --silent | --silen | --sile | --sil)
368     silent=yes ;;
369
370   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
371     ac_prev=sbindir ;;
372   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
373   | --sbi=* | --sb=*)
374     sbindir="$ac_optarg" ;;
375
376   -sharedstatedir | --sharedstatedir | --sharedstatedi \
377   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
378   | --sharedst | --shareds | --shared | --share | --shar \
379   | --sha | --sh)
380     ac_prev=sharedstatedir ;;
381   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
382   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
383   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
384   | --sha=* | --sh=*)
385     sharedstatedir="$ac_optarg" ;;
386
387   -site | --site | --sit)
388     ac_prev=site ;;
389   -site=* | --site=* | --sit=*)
390     site="$ac_optarg" ;;
391
392   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
393     ac_prev=srcdir ;;
394   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
395     srcdir="$ac_optarg" ;;
396
397   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
398   | --syscon | --sysco | --sysc | --sys | --sy)
399     ac_prev=sysconfdir ;;
400   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
401   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
402     sysconfdir="$ac_optarg" ;;
403
404   -target | --target | --targe | --targ | --tar | --ta | --t)
405     ac_prev=target ;;
406   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
407     target="$ac_optarg" ;;
408
409   -v | -verbose | --verbose | --verbos | --verbo | --verb)
410     verbose=yes ;;
411
412   -version | --version | --versio | --versi | --vers)
413     echo "configure generated by autoconf version 2.13"
414     exit 0 ;;
415
416   -with-* | --with-*)
417     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418     # Reject names that are not valid shell variable names.
419     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421     fi
422     ac_package=`echo $ac_package| sed 's/-/_/g'`
423     case "$ac_option" in
424       *=*) ;;
425       *) ac_optarg=yes ;;
426     esac
427     eval "with_${ac_package}='$ac_optarg'" ;;
428
429   -without-* | --without-*)
430     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
431     # Reject names that are not valid shell variable names.
432     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
434     fi
435     ac_package=`echo $ac_package| sed 's/-/_/g'`
436     eval "with_${ac_package}=no" ;;
437
438   --x)
439     # Obsolete; use --with-x.
440     with_x=yes ;;
441
442   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
443   | --x-incl | --x-inc | --x-in | --x-i)
444     ac_prev=x_includes ;;
445   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
446   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
447     x_includes="$ac_optarg" ;;
448
449   -x-libraries | --x-libraries | --x-librarie | --x-librari \
450   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
451     ac_prev=x_libraries ;;
452   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
453   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
454     x_libraries="$ac_optarg" ;;
455
456   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
457     ;;
458
459   *)
460     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461       echo "configure: warning: $ac_option: invalid host type" 1>&2
462     fi
463     if test "x$nonopt" != xNONE; then
464       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
465     fi
466     nonopt="$ac_option"
467     ;;
468
469   esac
470 done
471
472 if test -n "$ac_prev"; then
473   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 fi
475
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
477
478 # File descriptor usage:
479 # 0 standard input
480 # 1 file creation
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
487   exec 6>/dev/null
488 else
489   exec 6>&1
490 fi
491 exec 5>./config.log
492
493 echo "\
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
496 " 1>&5
497
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
500 ac_configure_args=
501 for ac_arg
502 do
503   case "$ac_arg" in
504   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
505   | --no-cr | --no-c) ;;
506   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
508   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
510   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511   esac
512 done
513
514 # NLS nuisances.
515 # Only set these to C if already set.  These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
520 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
522 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
523
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 echo > confdefs.h
528
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file=include/common.h
532
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535   ac_srcdir_defaulted=yes
536   # Try the directory containing this script, then its parent.
537   ac_prog=$0
538   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
540   srcdir=$ac_confdir
541   if test ! -r $srcdir/$ac_unique_file; then
542     srcdir=..
543   fi
544 else
545   ac_srcdir_defaulted=no
546 fi
547 if test ! -r $srcdir/$ac_unique_file; then
548   if test "$ac_srcdir_defaulted" = yes; then
549     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550   else
551     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552   fi
553 fi
554 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
555
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558   if test "x$prefix" != xNONE; then
559     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
560   else
561     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562   fi
563 fi
564 for ac_site_file in $CONFIG_SITE; do
565   if test -r "$ac_site_file"; then
566     echo "loading site script $ac_site_file"
567     . "$ac_site_file"
568   fi
569 done
570
571 if test -r "$cache_file"; then
572   echo "loading cache $cache_file"
573   . $cache_file
574 else
575   echo "creating cache $cache_file"
576   > $cache_file
577 fi
578
579 ac_ext=c
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp='$CPP $CPPFLAGS'
582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling=$ac_cv_prog_cc_cross
585
586 ac_exeext=
587 ac_objext=o
588 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
589   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
591     ac_n= ac_c='
592 ' ac_t='        '
593   else
594     ac_n=-n ac_c= ac_t=
595   fi
596 else
597   ac_n= ac_c='\c' ac_t=
598 fi
599
600
601
602
603 ac_aux_dir=
604 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
605   if test -f $ac_dir/install-sh; then
606     ac_aux_dir=$ac_dir
607     ac_install_sh="$ac_aux_dir/install-sh -c"
608     break
609   elif test -f $ac_dir/install.sh; then
610     ac_aux_dir=$ac_dir
611     ac_install_sh="$ac_aux_dir/install.sh -c"
612     break
613   fi
614 done
615 if test -z "$ac_aux_dir"; then
616   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
617 fi
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621
622
623 # Do some error checking and defaulting for the host and target type.
624 # The inputs are:
625 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
626 #
627 # The rules are:
628 # 1. You are not allowed to specify --host, --target, and nonopt at the
629 #    same time.
630 # 2. Host defaults to nonopt.
631 # 3. If nonopt is not specified, then host defaults to the current host,
632 #    as determined by config.guess.
633 # 4. Target and build default to nonopt.
634 # 5. If nonopt is not specified, then target and build default to host.
635
636 # The aliases save the names the user supplied, while $host etc.
637 # will get canonicalized.
638 case $host---$target---$nonopt in
639 NONE---*---* | *---NONE---* | *---*---NONE) ;;
640 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
641 esac
642
643
644 # Make sure we can run config.sub.
645 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
646 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
647 fi
648
649 echo $ac_n "checking host system type""... $ac_c" 1>&6
650 echo "configure:651: checking host system type" >&5
651
652 host_alias=$host
653 case "$host_alias" in
654 NONE)
655   case $nonopt in
656   NONE)
657     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
658     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
659     fi ;;
660   *) host_alias=$nonopt ;;
661   esac ;;
662 esac
663
664 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
665 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
666 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
667 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
668 echo "$ac_t""$host" 1>&6
669
670 echo $ac_n "checking target system type""... $ac_c" 1>&6
671 echo "configure:672: checking target system type" >&5
672
673 target_alias=$target
674 case "$target_alias" in
675 NONE)
676   case $nonopt in
677   NONE) target_alias=$host_alias ;;
678   *) target_alias=$nonopt ;;
679   esac ;;
680 esac
681
682 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
683 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
684 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
685 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
686 echo "$ac_t""$target" 1>&6
687
688 echo $ac_n "checking build system type""... $ac_c" 1>&6
689 echo "configure:690: checking build system type" >&5
690
691 build_alias=$build
692 case "$build_alias" in
693 NONE)
694   case $nonopt in
695   NONE) build_alias=$host_alias ;;
696   *) build_alias=$nonopt ;;
697   esac ;;
698 esac
699
700 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
701 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
702 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
703 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
704 echo "$ac_t""$build" 1>&6
705
706 test "$host_alias" != "$target_alias" &&
707   test "$program_prefix$program_suffix$program_transform_name" = \
708     NONENONEs,x,x, &&
709   program_prefix=${target_alias}-
710
711
712 HAVE_VLC=0
713 if test -r src/interface/main.c; then
714   HAVE_VLC=1
715   VLC_VERSION=0.2.90
716   
717   VLC_CODENAME=Ourumov
718   
719 fi
720
721 HAVE_LIBDVDCSS=0
722 if test -r extras/libdvdcss/libdvdcss.c; then
723   HAVE_LIBDVDCSS=1
724   LIBDVDCSS_VERSION=0.0.3
725   
726   if test -r extras/libdvdcss/csskeys.h; then
727     cat >> confdefs.h <<\EOF
728 #define HAVE_CSSKEYS 1
729 EOF
730
731   fi
732 fi
733
734 save_CFLAGS="${CFLAGS}"
735 save_LDFLAGS="${LDFLAGS}"
736
737 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
738 echo "configure:739: checking whether ${MAKE-make} sets \${MAKE}" >&5
739 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
740 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
741   echo $ac_n "(cached) $ac_c" 1>&6
742 else
743   cat > conftestmake <<\EOF
744 all:
745         @echo 'ac_maketemp="${MAKE}"'
746 EOF
747 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
748 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
749 if test -n "$ac_maketemp"; then
750   eval ac_cv_prog_make_${ac_make}_set=yes
751 else
752   eval ac_cv_prog_make_${ac_make}_set=no
753 fi
754 rm -f conftestmake
755 fi
756 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
757   echo "$ac_t""yes" 1>&6
758   SET_MAKE=
759 else
760   echo "$ac_t""no" 1>&6
761   SET_MAKE="MAKE=${MAKE-make}"
762 fi
763
764 # Extract the first word of "gcc", so it can be a program name with args.
765 set dummy gcc; ac_word=$2
766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
767 echo "configure:768: checking for $ac_word" >&5
768 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
769   echo $ac_n "(cached) $ac_c" 1>&6
770 else
771   if test -n "$CC"; then
772   ac_cv_prog_CC="$CC" # Let the user override the test.
773 else
774   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
775   ac_dummy="$PATH"
776   for ac_dir in $ac_dummy; do
777     test -z "$ac_dir" && ac_dir=.
778     if test -f $ac_dir/$ac_word; then
779       ac_cv_prog_CC="gcc"
780       break
781     fi
782   done
783   IFS="$ac_save_ifs"
784 fi
785 fi
786 CC="$ac_cv_prog_CC"
787 if test -n "$CC"; then
788   echo "$ac_t""$CC" 1>&6
789 else
790   echo "$ac_t""no" 1>&6
791 fi
792
793 if test -z "$CC"; then
794   # Extract the first word of "cc", so it can be a program name with args.
795 set dummy cc; ac_word=$2
796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
797 echo "configure:798: checking for $ac_word" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
799   echo $ac_n "(cached) $ac_c" 1>&6
800 else
801   if test -n "$CC"; then
802   ac_cv_prog_CC="$CC" # Let the user override the test.
803 else
804   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
805   ac_prog_rejected=no
806   ac_dummy="$PATH"
807   for ac_dir in $ac_dummy; do
808     test -z "$ac_dir" && ac_dir=.
809     if test -f $ac_dir/$ac_word; then
810       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
811         ac_prog_rejected=yes
812         continue
813       fi
814       ac_cv_prog_CC="cc"
815       break
816     fi
817   done
818   IFS="$ac_save_ifs"
819 if test $ac_prog_rejected = yes; then
820   # We found a bogon in the path, so make sure we never use it.
821   set dummy $ac_cv_prog_CC
822   shift
823   if test $# -gt 0; then
824     # We chose a different compiler from the bogus one.
825     # However, it has the same basename, so the bogon will be chosen
826     # first if we set CC to just the basename; use the full file name.
827     shift
828     set dummy "$ac_dir/$ac_word" "$@"
829     shift
830     ac_cv_prog_CC="$@"
831   fi
832 fi
833 fi
834 fi
835 CC="$ac_cv_prog_CC"
836 if test -n "$CC"; then
837   echo "$ac_t""$CC" 1>&6
838 else
839   echo "$ac_t""no" 1>&6
840 fi
841
842   if test -z "$CC"; then
843     case "`uname -s`" in
844     *win32* | *WIN32*)
845       # Extract the first word of "cl", so it can be a program name with args.
846 set dummy cl; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
850   echo $ac_n "(cached) $ac_c" 1>&6
851 else
852   if test -n "$CC"; then
853   ac_cv_prog_CC="$CC" # Let the user override the test.
854 else
855   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
856   ac_dummy="$PATH"
857   for ac_dir in $ac_dummy; do
858     test -z "$ac_dir" && ac_dir=.
859     if test -f $ac_dir/$ac_word; then
860       ac_cv_prog_CC="cl"
861       break
862     fi
863   done
864   IFS="$ac_save_ifs"
865 fi
866 fi
867 CC="$ac_cv_prog_CC"
868 if test -n "$CC"; then
869   echo "$ac_t""$CC" 1>&6
870 else
871   echo "$ac_t""no" 1>&6
872 fi
873  ;;
874     esac
875   fi
876   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
877 fi
878
879 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
880 echo "configure:881: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
881
882 ac_ext=c
883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
884 ac_cpp='$CPP $CPPFLAGS'
885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
887 cross_compiling=$ac_cv_prog_cc_cross
888
889 cat > conftest.$ac_ext << EOF
890
891 #line 892 "configure"
892 #include "confdefs.h"
893
894 main(){return(0);}
895 EOF
896 if { (eval echo configure:897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
897   ac_cv_prog_cc_works=yes
898   # If we can't run a trivial program, we are probably using a cross compiler.
899   if (./conftest; exit) 2>/dev/null; then
900     ac_cv_prog_cc_cross=no
901   else
902     ac_cv_prog_cc_cross=yes
903   fi
904 else
905   echo "configure: failed program was:" >&5
906   cat conftest.$ac_ext >&5
907   ac_cv_prog_cc_works=no
908 fi
909 rm -fr conftest*
910 ac_ext=c
911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
912 ac_cpp='$CPP $CPPFLAGS'
913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
915 cross_compiling=$ac_cv_prog_cc_cross
916
917 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
918 if test $ac_cv_prog_cc_works = no; then
919   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
920 fi
921 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
922 echo "configure:923: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
923 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
924 cross_compiling=$ac_cv_prog_cc_cross
925
926 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
927 echo "configure:928: checking whether we are using GNU C" >&5
928 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
929   echo $ac_n "(cached) $ac_c" 1>&6
930 else
931   cat > conftest.c <<EOF
932 #ifdef __GNUC__
933   yes;
934 #endif
935 EOF
936 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
937   ac_cv_prog_gcc=yes
938 else
939   ac_cv_prog_gcc=no
940 fi
941 fi
942
943 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
944
945 if test $ac_cv_prog_gcc = yes; then
946   GCC=yes
947 else
948   GCC=
949 fi
950
951 ac_test_CFLAGS="${CFLAGS+set}"
952 ac_save_CFLAGS="$CFLAGS"
953 CFLAGS=
954 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
955 echo "configure:956: checking whether ${CC-cc} accepts -g" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
957   echo $ac_n "(cached) $ac_c" 1>&6
958 else
959   echo 'void f(){}' > conftest.c
960 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
961   ac_cv_prog_cc_g=yes
962 else
963   ac_cv_prog_cc_g=no
964 fi
965 rm -f conftest*
966
967 fi
968
969 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
970 if test "$ac_test_CFLAGS" = set; then
971   CFLAGS="$ac_save_CFLAGS"
972 elif test $ac_cv_prog_cc_g = yes; then
973   if test "$GCC" = yes; then
974     CFLAGS="-g -O2"
975   else
976     CFLAGS="-g"
977   fi
978 else
979   if test "$GCC" = yes; then
980     CFLAGS="-O2"
981   else
982     CFLAGS=
983   fi
984 fi
985
986 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
987 echo "configure:988: checking how to run the C preprocessor" >&5
988 # On Suns, sometimes $CPP names a directory.
989 if test -n "$CPP" && test -d "$CPP"; then
990   CPP=
991 fi
992 if test -z "$CPP"; then
993 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
994   echo $ac_n "(cached) $ac_c" 1>&6
995 else
996     # This must be in double quotes, not single quotes, because CPP may get
997   # substituted into the Makefile and "${CC-cc}" will confuse make.
998   CPP="${CC-cc} -E"
999   # On the NeXT, cc -E runs the code through the compiler's parser,
1000   # not just through cpp.
1001   cat > conftest.$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1004 #include <assert.h>
1005 Syntax Error
1006 EOF
1007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1008 { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1010 if test -z "$ac_err"; then
1011   :
1012 else
1013   echo "$ac_err" >&5
1014   echo "configure: failed program was:" >&5
1015   cat conftest.$ac_ext >&5
1016   rm -rf conftest*
1017   CPP="${CC-cc} -E -traditional-cpp"
1018   cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1021 #include <assert.h>
1022 Syntax Error
1023 EOF
1024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1025 { (eval echo configure:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1027 if test -z "$ac_err"; then
1028   :
1029 else
1030   echo "$ac_err" >&5
1031   echo "configure: failed program was:" >&5
1032   cat conftest.$ac_ext >&5
1033   rm -rf conftest*
1034   CPP="${CC-cc} -nologo -E"
1035   cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1038 #include <assert.h>
1039 Syntax Error
1040 EOF
1041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1042 { (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1044 if test -z "$ac_err"; then
1045   :
1046 else
1047   echo "$ac_err" >&5
1048   echo "configure: failed program was:" >&5
1049   cat conftest.$ac_ext >&5
1050   rm -rf conftest*
1051   CPP=/lib/cpp
1052 fi
1053 rm -f conftest*
1054 fi
1055 rm -f conftest*
1056 fi
1057 rm -f conftest*
1058   ac_cv_prog_CPP="$CPP"
1059 fi
1060   CPP="$ac_cv_prog_CPP"
1061 else
1062   ac_cv_prog_CPP="$CPP"
1063 fi
1064 echo "$ac_t""$CPP" 1>&6
1065
1066 # Extract the first word of "ranlib", so it can be a program name with args.
1067 set dummy ranlib; ac_word=$2
1068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1069 echo "configure:1070: checking for $ac_word" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1071   echo $ac_n "(cached) $ac_c" 1>&6
1072 else
1073   if test -n "$RANLIB"; then
1074   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1075 else
1076   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1077   ac_dummy="$PATH"
1078   for ac_dir in $ac_dummy; do
1079     test -z "$ac_dir" && ac_dir=.
1080     if test -f $ac_dir/$ac_word; then
1081       ac_cv_prog_RANLIB="ranlib"
1082       break
1083     fi
1084   done
1085   IFS="$ac_save_ifs"
1086   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1087 fi
1088 fi
1089 RANLIB="$ac_cv_prog_RANLIB"
1090 if test -n "$RANLIB"; then
1091   echo "$ac_t""$RANLIB" 1>&6
1092 else
1093   echo "$ac_t""no" 1>&6
1094 fi
1095
1096
1097 # Find a good install program.  We prefer a C program (faster),
1098 # so one script is as good as another.  But avoid the broken or
1099 # incompatible versions:
1100 # SysV /etc/install, /usr/sbin/install
1101 # SunOS /usr/etc/install
1102 # IRIX /sbin/install
1103 # AIX /bin/install
1104 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1105 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1106 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1107 # ./install, which can be erroneously created by make from ./install.sh.
1108 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1109 echo "configure:1110: checking for a BSD compatible install" >&5
1110 if test -z "$INSTALL"; then
1111 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1112   echo $ac_n "(cached) $ac_c" 1>&6
1113 else
1114     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1115   for ac_dir in $PATH; do
1116     # Account for people who put trailing slashes in PATH elements.
1117     case "$ac_dir/" in
1118     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1119     *)
1120       # OSF1 and SCO ODT 3.0 have their own names for install.
1121       # Don't use installbsd from OSF since it installs stuff as root
1122       # by default.
1123       for ac_prog in ginstall scoinst install; do
1124         if test -f $ac_dir/$ac_prog; then
1125           if test $ac_prog = install &&
1126             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1127             # AIX install.  It has an incompatible calling convention.
1128             :
1129           else
1130             ac_cv_path_install="$ac_dir/$ac_prog -c"
1131             break 2
1132           fi
1133         fi
1134       done
1135       ;;
1136     esac
1137   done
1138   IFS="$ac_save_IFS"
1139
1140 fi
1141   if test "${ac_cv_path_install+set}" = set; then
1142     INSTALL="$ac_cv_path_install"
1143   else
1144     # As a last resort, use the slow shell script.  We don't cache a
1145     # path for INSTALL within a source directory, because that will
1146     # break other packages using the cache if that directory is
1147     # removed, or if the path is relative.
1148     INSTALL="$ac_install_sh"
1149   fi
1150 fi
1151 echo "$ac_t""$INSTALL" 1>&6
1152
1153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1154 # It thinks the first close brace ends the variable substitution.
1155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1156
1157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1158
1159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1160
1161
1162 if test x${cross_compiling} != xyes; then
1163   echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether byte ordering is bigendian" >&5
1165 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1166   echo $ac_n "(cached) $ac_c" 1>&6
1167 else
1168   ac_cv_c_bigendian=unknown
1169 # See if sys/param.h defines the BYTE_ORDER macro.
1170 cat > conftest.$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1173 #include <sys/types.h>
1174 #include <sys/param.h>
1175 int main() {
1176
1177 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1178  bogus endian macros
1179 #endif
1180 ; return 0; }
1181 EOF
1182 if { (eval echo configure:1183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1183   rm -rf conftest*
1184   # It does; now see whether it defined to BIG_ENDIAN or not.
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 #include <sys/types.h>
1189 #include <sys/param.h>
1190 int main() {
1191
1192 #if BYTE_ORDER != BIG_ENDIAN
1193  not big endian
1194 #endif
1195 ; return 0; }
1196 EOF
1197 if { (eval echo configure:1198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1198   rm -rf conftest*
1199   ac_cv_c_bigendian=yes
1200 else
1201   echo "configure: failed program was:" >&5
1202   cat conftest.$ac_ext >&5
1203   rm -rf conftest*
1204   ac_cv_c_bigendian=no
1205 fi
1206 rm -f conftest*
1207 else
1208   echo "configure: failed program was:" >&5
1209   cat conftest.$ac_ext >&5
1210 fi
1211 rm -f conftest*
1212 if test $ac_cv_c_bigendian = unknown; then
1213 if test "$cross_compiling" = yes; then
1214     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1215 else
1216   cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1219 main () {
1220   /* Are we little or big endian?  From Harbison&Steele.  */
1221   union
1222   {
1223     long l;
1224     char c[sizeof (long)];
1225   } u;
1226   u.l = 1;
1227   exit (u.c[sizeof (long) - 1] == 1);
1228 }
1229 EOF
1230 if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1231 then
1232   ac_cv_c_bigendian=no
1233 else
1234   echo "configure: failed program was:" >&5
1235   cat conftest.$ac_ext >&5
1236   rm -fr conftest*
1237   ac_cv_c_bigendian=yes
1238 fi
1239 rm -fr conftest*
1240 fi
1241
1242 fi
1243 fi
1244
1245 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1246 if test $ac_cv_c_bigendian = yes; then
1247   cat >> confdefs.h <<\EOF
1248 #define WORDS_BIGENDIAN 1
1249 EOF
1250
1251 fi
1252
1253 else
1254       # Check whether --with-words or --without-words was given.
1255 if test "${with_words+set}" = set; then
1256   withval="$with_words"
1257   :
1258 fi
1259
1260   case "x$withval" in
1261     xbig)
1262       ac_cv_c_bigendian=yes
1263       ;;
1264     xlittle)
1265       ac_cv_c_bigendian=no
1266       ;;
1267     *)
1268                   ac_cv_c_bigendian=unknown
1269       echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
1270 echo "configure:1271: checking what the byte order looks to be" >&5
1271         cat >conftest.c <<EOF
1272         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
1273         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
1274         void _a(void) { char*s = (char*)am; s = (char *)ai; }
1275         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
1276         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
1277         void _e(void) { char*s = (char*)em; s = (char*)ei; }
1278         int main(void) { _a(); _e(); return 0; }
1279 EOF
1280       
1281       if test -f conftest.c
1282       then 
1283         if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
1284             && test -f conftest.o
1285         then
1286           if test `grep -l BIGenDianSyS conftest.o`
1287           then
1288             echo "$ac_t"""big endian"" 1>&6
1289             ac_cv_c_bigendian=yes
1290           fi
1291           if test `grep -l LiTTleEnDian conftest.o`
1292           then
1293             echo "$ac_t"""little endian"" 1>&6
1294             ac_cv_c_bigendian=no
1295           fi
1296         fi
1297       fi
1298       if test $ac_cv_c_bigendian = xunknown
1299       then
1300         { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
1301       fi
1302             if test $ac_cv_c_bigendian = yes
1303       then
1304         cat >> confdefs.h <<\EOF
1305 #define WORDS_BIGENDIAN 1
1306 EOF
1307       fi
1308       ;;
1309   esac
1310 fi
1311
1312 for ac_func in gettimeofday select strerror strtod strtol
1313 do
1314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1315 echo "configure:1316: checking for $ac_func" >&5
1316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1317   echo $ac_n "(cached) $ac_c" 1>&6
1318 else
1319   cat > conftest.$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 /* System header to define __stub macros and hopefully few prototypes,
1323     which can conflict with char $ac_func(); below.  */
1324 #include <assert.h>
1325 /* Override any gcc2 internal prototype to avoid an error.  */
1326 /* We use char because int might match the return type of a gcc2
1327     builtin and then its argument prototype would still apply.  */
1328 char $ac_func();
1329
1330 int main() {
1331
1332 /* The GNU C library defines this for functions which it implements
1333     to always fail with ENOSYS.  Some functions are actually named
1334     something starting with __ and the normal name is an alias.  */
1335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1336 choke me
1337 #else
1338 $ac_func();
1339 #endif
1340
1341 ; return 0; }
1342 EOF
1343 if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1344   rm -rf conftest*
1345   eval "ac_cv_func_$ac_func=yes"
1346 else
1347   echo "configure: failed program was:" >&5
1348   cat conftest.$ac_ext >&5
1349   rm -rf conftest*
1350   eval "ac_cv_func_$ac_func=no"
1351 fi
1352 rm -f conftest*
1353 fi
1354
1355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1356   echo "$ac_t""yes" 1>&6
1357     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1358   cat >> confdefs.h <<EOF
1359 #define $ac_tr_func 1
1360 EOF
1361  
1362 else
1363   echo "$ac_t""no" 1>&6
1364 fi
1365 done
1366
1367 for ac_func in setenv putenv
1368 do
1369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1370 echo "configure:1371: checking for $ac_func" >&5
1371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1372   echo $ac_n "(cached) $ac_c" 1>&6
1373 else
1374   cat > conftest.$ac_ext <<EOF
1375 #line 1376 "configure"
1376 #include "confdefs.h"
1377 /* System header to define __stub macros and hopefully few prototypes,
1378     which can conflict with char $ac_func(); below.  */
1379 #include <assert.h>
1380 /* Override any gcc2 internal prototype to avoid an error.  */
1381 /* We use char because int might match the return type of a gcc2
1382     builtin and then its argument prototype would still apply.  */
1383 char $ac_func();
1384
1385 int main() {
1386
1387 /* The GNU C library defines this for functions which it implements
1388     to always fail with ENOSYS.  Some functions are actually named
1389     something starting with __ and the normal name is an alias.  */
1390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1391 choke me
1392 #else
1393 $ac_func();
1394 #endif
1395
1396 ; return 0; }
1397 EOF
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1399   rm -rf conftest*
1400   eval "ac_cv_func_$ac_func=yes"
1401 else
1402   echo "configure: failed program was:" >&5
1403   cat conftest.$ac_ext >&5
1404   rm -rf conftest*
1405   eval "ac_cv_func_$ac_func=no"
1406 fi
1407 rm -f conftest*
1408 fi
1409
1410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1411   echo "$ac_t""yes" 1>&6
1412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1413   cat >> confdefs.h <<EOF
1414 #define $ac_tr_func 1
1415 EOF
1416  
1417 else
1418   echo "$ac_t""no" 1>&6
1419 fi
1420 done
1421
1422 echo $ac_n "checking for connect""... $ac_c" 1>&6
1423 echo "configure:1424: checking for connect" >&5
1424 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1425   echo $ac_n "(cached) $ac_c" 1>&6
1426 else
1427   cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 /* System header to define __stub macros and hopefully few prototypes,
1431     which can conflict with char connect(); below.  */
1432 #include <assert.h>
1433 /* Override any gcc2 internal prototype to avoid an error.  */
1434 /* We use char because int might match the return type of a gcc2
1435     builtin and then its argument prototype would still apply.  */
1436 char connect();
1437
1438 int main() {
1439
1440 /* The GNU C library defines this for functions which it implements
1441     to always fail with ENOSYS.  Some functions are actually named
1442     something starting with __ and the normal name is an alias.  */
1443 #if defined (__stub_connect) || defined (__stub___connect)
1444 choke me
1445 #else
1446 connect();
1447 #endif
1448
1449 ; return 0; }
1450 EOF
1451 if { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1452   rm -rf conftest*
1453   eval "ac_cv_func_connect=yes"
1454 else
1455   echo "configure: failed program was:" >&5
1456   cat conftest.$ac_ext >&5
1457   rm -rf conftest*
1458   eval "ac_cv_func_connect=no"
1459 fi
1460 rm -f conftest*
1461 fi
1462
1463 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1464   echo "$ac_t""yes" 1>&6
1465   :
1466 else
1467   echo "$ac_t""no" 1>&6
1468
1469   echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1470 echo "configure:1471: checking for connect in -lsocket" >&5
1471 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1473   echo $ac_n "(cached) $ac_c" 1>&6
1474 else
1475   ac_save_LIBS="$LIBS"
1476 LIBS="-lsocket  $LIBS"
1477 cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1480 /* Override any gcc2 internal prototype to avoid an error.  */
1481 /* We use char because int might match the return type of a gcc2
1482     builtin and then its argument prototype would still apply.  */
1483 char connect();
1484
1485 int main() {
1486 connect()
1487 ; return 0; }
1488 EOF
1489 if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1490   rm -rf conftest*
1491   eval "ac_cv_lib_$ac_lib_var=yes"
1492 else
1493   echo "configure: failed program was:" >&5
1494   cat conftest.$ac_ext >&5
1495   rm -rf conftest*
1496   eval "ac_cv_lib_$ac_lib_var=no"
1497 fi
1498 rm -f conftest*
1499 LIBS="$ac_save_LIBS"
1500
1501 fi
1502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1503   echo "$ac_t""yes" 1>&6
1504   LIB="${LIB} -lsocket"
1505 else
1506   echo "$ac_t""no" 1>&6
1507 fi
1508
1509
1510 fi
1511
1512 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1513 echo "configure:1514: checking for gethostbyname" >&5
1514 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1515   echo $ac_n "(cached) $ac_c" 1>&6
1516 else
1517   cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 /* System header to define __stub macros and hopefully few prototypes,
1521     which can conflict with char gethostbyname(); below.  */
1522 #include <assert.h>
1523 /* Override any gcc2 internal prototype to avoid an error.  */
1524 /* We use char because int might match the return type of a gcc2
1525     builtin and then its argument prototype would still apply.  */
1526 char gethostbyname();
1527
1528 int main() {
1529
1530 /* The GNU C library defines this for functions which it implements
1531     to always fail with ENOSYS.  Some functions are actually named
1532     something starting with __ and the normal name is an alias.  */
1533 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1534 choke me
1535 #else
1536 gethostbyname();
1537 #endif
1538
1539 ; return 0; }
1540 EOF
1541 if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1542   rm -rf conftest*
1543   eval "ac_cv_func_gethostbyname=yes"
1544 else
1545   echo "configure: failed program was:" >&5
1546   cat conftest.$ac_ext >&5
1547   rm -rf conftest*
1548   eval "ac_cv_func_gethostbyname=no"
1549 fi
1550 rm -f conftest*
1551 fi
1552
1553 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1554   echo "$ac_t""yes" 1>&6
1555   :
1556 else
1557   echo "$ac_t""no" 1>&6
1558
1559   echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1560 echo "configure:1561: checking for gethostbyname in -lnsl" >&5
1561 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1563   echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565   ac_save_LIBS="$LIBS"
1566 LIBS="-lnsl  $LIBS"
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 /* Override any gcc2 internal prototype to avoid an error.  */
1571 /* We use char because int might match the return type of a gcc2
1572     builtin and then its argument prototype would still apply.  */
1573 char gethostbyname();
1574
1575 int main() {
1576 gethostbyname()
1577 ; return 0; }
1578 EOF
1579 if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1580   rm -rf conftest*
1581   eval "ac_cv_lib_$ac_lib_var=yes"
1582 else
1583   echo "configure: failed program was:" >&5
1584   cat conftest.$ac_ext >&5
1585   rm -rf conftest*
1586   eval "ac_cv_lib_$ac_lib_var=no"
1587 fi
1588 rm -f conftest*
1589 LIBS="$ac_save_LIBS"
1590
1591 fi
1592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1593   echo "$ac_t""yes" 1>&6
1594   LIB="${LIB} -lnsl"
1595 else
1596   echo "$ac_t""no" 1>&6
1597 fi
1598
1599
1600 fi
1601
1602 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1603 echo "configure:1604: checking for nanosleep" >&5
1604 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1605   echo $ac_n "(cached) $ac_c" 1>&6
1606 else
1607   cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 /* System header to define __stub macros and hopefully few prototypes,
1611     which can conflict with char nanosleep(); below.  */
1612 #include <assert.h>
1613 /* Override any gcc2 internal prototype to avoid an error.  */
1614 /* We use char because int might match the return type of a gcc2
1615     builtin and then its argument prototype would still apply.  */
1616 char nanosleep();
1617
1618 int main() {
1619
1620 /* The GNU C library defines this for functions which it implements
1621     to always fail with ENOSYS.  Some functions are actually named
1622     something starting with __ and the normal name is an alias.  */
1623 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1624 choke me
1625 #else
1626 nanosleep();
1627 #endif
1628
1629 ; return 0; }
1630 EOF
1631 if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1632   rm -rf conftest*
1633   eval "ac_cv_func_nanosleep=yes"
1634 else
1635   echo "configure: failed program was:" >&5
1636   cat conftest.$ac_ext >&5
1637   rm -rf conftest*
1638   eval "ac_cv_func_nanosleep=no"
1639 fi
1640 rm -f conftest*
1641 fi
1642
1643 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1644   echo "$ac_t""yes" 1>&6
1645   :
1646 else
1647   echo "$ac_t""no" 1>&6
1648
1649   echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1650 echo "configure:1651: checking for nanosleep in -lrt" >&5
1651 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1653   echo $ac_n "(cached) $ac_c" 1>&6
1654 else
1655   ac_save_LIBS="$LIBS"
1656 LIBS="-lrt  $LIBS"
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 /* Override any gcc2 internal prototype to avoid an error.  */
1661 /* We use char because int might match the return type of a gcc2
1662     builtin and then its argument prototype would still apply.  */
1663 char nanosleep();
1664
1665 int main() {
1666 nanosleep()
1667 ; return 0; }
1668 EOF
1669 if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1670   rm -rf conftest*
1671   eval "ac_cv_lib_$ac_lib_var=yes"
1672 else
1673   echo "configure: failed program was:" >&5
1674   cat conftest.$ac_ext >&5
1675   rm -rf conftest*
1676   eval "ac_cv_lib_$ac_lib_var=no"
1677 fi
1678 rm -f conftest*
1679 LIBS="$ac_save_LIBS"
1680
1681 fi
1682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1683   echo "$ac_t""yes" 1>&6
1684   LIB="${LIB} -lrt"
1685 else
1686   echo "$ac_t""no" 1>&6
1687
1688     echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1689 echo "configure:1690: checking for nanosleep in -lposix4" >&5
1690 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1692   echo $ac_n "(cached) $ac_c" 1>&6
1693 else
1694   ac_save_LIBS="$LIBS"
1695 LIBS="-lposix4  $LIBS"
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1699 /* Override any gcc2 internal prototype to avoid an error.  */
1700 /* We use char because int might match the return type of a gcc2
1701     builtin and then its argument prototype would still apply.  */
1702 char nanosleep();
1703
1704 int main() {
1705 nanosleep()
1706 ; return 0; }
1707 EOF
1708 if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1709   rm -rf conftest*
1710   eval "ac_cv_lib_$ac_lib_var=yes"
1711 else
1712   echo "configure: failed program was:" >&5
1713   cat conftest.$ac_ext >&5
1714   rm -rf conftest*
1715   eval "ac_cv_lib_$ac_lib_var=no"
1716 fi
1717 rm -f conftest*
1718 LIBS="$ac_save_LIBS"
1719
1720 fi
1721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1722   echo "$ac_t""yes" 1>&6
1723   LIB="${LIB} -lposix4"
1724 else
1725   echo "$ac_t""no" 1>&6
1726 fi
1727
1728   
1729 fi
1730
1731
1732 fi
1733
1734 for ac_func in usleep
1735 do
1736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_func" >&5
1738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1739   echo $ac_n "(cached) $ac_c" 1>&6
1740 else
1741   cat > conftest.$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1744 /* System header to define __stub macros and hopefully few prototypes,
1745     which can conflict with char $ac_func(); below.  */
1746 #include <assert.h>
1747 /* Override any gcc2 internal prototype to avoid an error.  */
1748 /* We use char because int might match the return type of a gcc2
1749     builtin and then its argument prototype would still apply.  */
1750 char $ac_func();
1751
1752 int main() {
1753
1754 /* The GNU C library defines this for functions which it implements
1755     to always fail with ENOSYS.  Some functions are actually named
1756     something starting with __ and the normal name is an alias.  */
1757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1758 choke me
1759 #else
1760 $ac_func();
1761 #endif
1762
1763 ; return 0; }
1764 EOF
1765 if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1766   rm -rf conftest*
1767   eval "ac_cv_func_$ac_func=yes"
1768 else
1769   echo "configure: failed program was:" >&5
1770   cat conftest.$ac_ext >&5
1771   rm -rf conftest*
1772   eval "ac_cv_func_$ac_func=no"
1773 fi
1774 rm -f conftest*
1775 fi
1776
1777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1778   echo "$ac_t""yes" 1>&6
1779     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1780   cat >> confdefs.h <<EOF
1781 #define $ac_tr_func 1
1782 EOF
1783  
1784 else
1785   echo "$ac_t""no" 1>&6
1786 fi
1787 done
1788
1789 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1790 echo "configure:1791: checking for inet_aton" >&5
1791 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1792   echo $ac_n "(cached) $ac_c" 1>&6
1793 else
1794   cat > conftest.$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1797 /* System header to define __stub macros and hopefully few prototypes,
1798     which can conflict with char inet_aton(); below.  */
1799 #include <assert.h>
1800 /* Override any gcc2 internal prototype to avoid an error.  */
1801 /* We use char because int might match the return type of a gcc2
1802     builtin and then its argument prototype would still apply.  */
1803 char inet_aton();
1804
1805 int main() {
1806
1807 /* The GNU C library defines this for functions which it implements
1808     to always fail with ENOSYS.  Some functions are actually named
1809     something starting with __ and the normal name is an alias.  */
1810 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1811 choke me
1812 #else
1813 inet_aton();
1814 #endif
1815
1816 ; return 0; }
1817 EOF
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1819   rm -rf conftest*
1820   eval "ac_cv_func_inet_aton=yes"
1821 else
1822   echo "configure: failed program was:" >&5
1823   cat conftest.$ac_ext >&5
1824   rm -rf conftest*
1825   eval "ac_cv_func_inet_aton=no"
1826 fi
1827 rm -f conftest*
1828 fi
1829
1830 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1831   echo "$ac_t""yes" 1>&6
1832   :
1833 else
1834   echo "$ac_t""no" 1>&6
1835
1836   echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1837 echo "configure:1838: checking for inet_aton in -lresolv" >&5
1838 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1840   echo $ac_n "(cached) $ac_c" 1>&6
1841 else
1842   ac_save_LIBS="$LIBS"
1843 LIBS="-lresolv  $LIBS"
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1847 /* Override any gcc2 internal prototype to avoid an error.  */
1848 /* We use char because int might match the return type of a gcc2
1849     builtin and then its argument prototype would still apply.  */
1850 char inet_aton();
1851
1852 int main() {
1853 inet_aton()
1854 ; return 0; }
1855 EOF
1856 if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1857   rm -rf conftest*
1858   eval "ac_cv_lib_$ac_lib_var=yes"
1859 else
1860   echo "configure: failed program was:" >&5
1861   cat conftest.$ac_ext >&5
1862   rm -rf conftest*
1863   eval "ac_cv_lib_$ac_lib_var=no"
1864 fi
1865 rm -f conftest*
1866 LIBS="$ac_save_LIBS"
1867
1868 fi
1869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1870   echo "$ac_t""yes" 1>&6
1871   LIB="${LIB} -lresolv"
1872 else
1873   echo "$ac_t""no" 1>&6
1874 fi
1875
1876
1877 fi
1878
1879 for ac_func in vasprintf
1880 do
1881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1882 echo "configure:1883: checking for $ac_func" >&5
1883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1884   echo $ac_n "(cached) $ac_c" 1>&6
1885 else
1886   cat > conftest.$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1889 /* System header to define __stub macros and hopefully few prototypes,
1890     which can conflict with char $ac_func(); below.  */
1891 #include <assert.h>
1892 /* Override any gcc2 internal prototype to avoid an error.  */
1893 /* We use char because int might match the return type of a gcc2
1894     builtin and then its argument prototype would still apply.  */
1895 char $ac_func();
1896
1897 int main() {
1898
1899 /* The GNU C library defines this for functions which it implements
1900     to always fail with ENOSYS.  Some functions are actually named
1901     something starting with __ and the normal name is an alias.  */
1902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1903 choke me
1904 #else
1905 $ac_func();
1906 #endif
1907
1908 ; return 0; }
1909 EOF
1910 if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1911   rm -rf conftest*
1912   eval "ac_cv_func_$ac_func=yes"
1913 else
1914   echo "configure: failed program was:" >&5
1915   cat conftest.$ac_ext >&5
1916   rm -rf conftest*
1917   eval "ac_cv_func_$ac_func=no"
1918 fi
1919 rm -f conftest*
1920 fi
1921
1922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1923   echo "$ac_t""yes" 1>&6
1924     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1925   cat >> confdefs.h <<EOF
1926 #define $ac_tr_func 1
1927 EOF
1928  
1929 else
1930   echo "$ac_t""no" 1>&6
1931 fi
1932 done
1933
1934 for ac_func in swab
1935 do
1936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1937 echo "configure:1938: checking for $ac_func" >&5
1938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1939   echo $ac_n "(cached) $ac_c" 1>&6
1940 else
1941   cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1944 /* System header to define __stub macros and hopefully few prototypes,
1945     which can conflict with char $ac_func(); below.  */
1946 #include <assert.h>
1947 /* Override any gcc2 internal prototype to avoid an error.  */
1948 /* We use char because int might match the return type of a gcc2
1949     builtin and then its argument prototype would still apply.  */
1950 char $ac_func();
1951
1952 int main() {
1953
1954 /* The GNU C library defines this for functions which it implements
1955     to always fail with ENOSYS.  Some functions are actually named
1956     something starting with __ and the normal name is an alias.  */
1957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1958 choke me
1959 #else
1960 $ac_func();
1961 #endif
1962
1963 ; return 0; }
1964 EOF
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1966   rm -rf conftest*
1967   eval "ac_cv_func_$ac_func=yes"
1968 else
1969   echo "configure: failed program was:" >&5
1970   cat conftest.$ac_ext >&5
1971   rm -rf conftest*
1972   eval "ac_cv_func_$ac_func=no"
1973 fi
1974 rm -f conftest*
1975 fi
1976
1977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1978   echo "$ac_t""yes" 1>&6
1979     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1980   cat >> confdefs.h <<EOF
1981 #define $ac_tr_func 1
1982 EOF
1983  
1984 else
1985   echo "$ac_t""no" 1>&6
1986 fi
1987 done
1988
1989 for ac_func in memalign valloc
1990 do
1991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_func" >&5
1993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1994   echo $ac_n "(cached) $ac_c" 1>&6
1995 else
1996   cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
1999 /* System header to define __stub macros and hopefully few prototypes,
2000     which can conflict with char $ac_func(); below.  */
2001 #include <assert.h>
2002 /* Override any gcc2 internal prototype to avoid an error.  */
2003 /* We use char because int might match the return type of a gcc2
2004     builtin and then its argument prototype would still apply.  */
2005 char $ac_func();
2006
2007 int main() {
2008
2009 /* The GNU C library defines this for functions which it implements
2010     to always fail with ENOSYS.  Some functions are actually named
2011     something starting with __ and the normal name is an alias.  */
2012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2013 choke me
2014 #else
2015 $ac_func();
2016 #endif
2017
2018 ; return 0; }
2019 EOF
2020 if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2021   rm -rf conftest*
2022   eval "ac_cv_func_$ac_func=yes"
2023 else
2024   echo "configure: failed program was:" >&5
2025   cat conftest.$ac_ext >&5
2026   rm -rf conftest*
2027   eval "ac_cv_func_$ac_func=no"
2028 fi
2029 rm -f conftest*
2030 fi
2031
2032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2033   echo "$ac_t""yes" 1>&6
2034     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2035   cat >> confdefs.h <<EOF
2036 #define $ac_tr_func 1
2037 EOF
2038  
2039 else
2040   echo "$ac_t""no" 1>&6
2041 fi
2042 done
2043
2044
2045 for ac_func in sigrelse
2046 do
2047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_func" >&5
2049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2050   echo $ac_n "(cached) $ac_c" 1>&6
2051 else
2052   cat > conftest.$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 /* System header to define __stub macros and hopefully few prototypes,
2056     which can conflict with char $ac_func(); below.  */
2057 #include <assert.h>
2058 /* Override any gcc2 internal prototype to avoid an error.  */
2059 /* We use char because int might match the return type of a gcc2
2060     builtin and then its argument prototype would still apply.  */
2061 char $ac_func();
2062
2063 int main() {
2064
2065 /* The GNU C library defines this for functions which it implements
2066     to always fail with ENOSYS.  Some functions are actually named
2067     something starting with __ and the normal name is an alias.  */
2068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2069 choke me
2070 #else
2071 $ac_func();
2072 #endif
2073
2074 ; return 0; }
2075 EOF
2076 if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2077   rm -rf conftest*
2078   eval "ac_cv_func_$ac_func=yes"
2079 else
2080   echo "configure: failed program was:" >&5
2081   cat conftest.$ac_ext >&5
2082   rm -rf conftest*
2083   eval "ac_cv_func_$ac_func=no"
2084 fi
2085 rm -f conftest*
2086 fi
2087
2088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2089   echo "$ac_t""yes" 1>&6
2090     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2091   cat >> confdefs.h <<EOF
2092 #define $ac_tr_func 1
2093 EOF
2094  
2095 else
2096   echo "$ac_t""no" 1>&6
2097 fi
2098 done
2099
2100
2101 NEED_GETOPT=0
2102 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2103 echo "configure:2104: checking for getopt_long" >&5
2104 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2105   echo $ac_n "(cached) $ac_c" 1>&6
2106 else
2107   cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 /* System header to define __stub macros and hopefully few prototypes,
2111     which can conflict with char getopt_long(); below.  */
2112 #include <assert.h>
2113 /* Override any gcc2 internal prototype to avoid an error.  */
2114 /* We use char because int might match the return type of a gcc2
2115     builtin and then its argument prototype would still apply.  */
2116 char getopt_long();
2117
2118 int main() {
2119
2120 /* The GNU C library defines this for functions which it implements
2121     to always fail with ENOSYS.  Some functions are actually named
2122     something starting with __ and the normal name is an alias.  */
2123 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2124 choke me
2125 #else
2126 getopt_long();
2127 #endif
2128
2129 ; return 0; }
2130 EOF
2131 if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2132   rm -rf conftest*
2133   eval "ac_cv_func_getopt_long=yes"
2134 else
2135   echo "configure: failed program was:" >&5
2136   cat conftest.$ac_ext >&5
2137   rm -rf conftest*
2138   eval "ac_cv_func_getopt_long=no"
2139 fi
2140 rm -f conftest*
2141 fi
2142
2143 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2144   echo "$ac_t""yes" 1>&6
2145   cat >> confdefs.h <<\EOF
2146 #define HAVE_GETOPT_LONG 1
2147 EOF
2148
2149 else
2150   echo "$ac_t""no" 1>&6
2151  # FreeBSD has a gnugetopt library for this:
2152   echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2153 echo "configure:2154: checking for getopt_long in -lgnugetopt" >&5
2154 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2156   echo $ac_n "(cached) $ac_c" 1>&6
2157 else
2158   ac_save_LIBS="$LIBS"
2159 LIBS="-lgnugetopt  $LIBS"
2160 cat > conftest.$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2163 /* Override any gcc2 internal prototype to avoid an error.  */
2164 /* We use char because int might match the return type of a gcc2
2165     builtin and then its argument prototype would still apply.  */
2166 char getopt_long();
2167
2168 int main() {
2169 getopt_long()
2170 ; return 0; }
2171 EOF
2172 if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2173   rm -rf conftest*
2174   eval "ac_cv_lib_$ac_lib_var=yes"
2175 else
2176   echo "configure: failed program was:" >&5
2177   cat conftest.$ac_ext >&5
2178   rm -rf conftest*
2179   eval "ac_cv_lib_$ac_lib_var=no"
2180 fi
2181 rm -f conftest*
2182 LIBS="$ac_save_LIBS"
2183
2184 fi
2185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2186   echo "$ac_t""yes" 1>&6
2187   cat >> confdefs.h <<\EOF
2188 #define HAVE_GETOPT_LONG 1
2189 EOF
2190  LIB="${LIB} -lgnugetopt"
2191 else
2192   echo "$ac_t""no" 1>&6
2193 NEED_GETOPT=1
2194 fi
2195
2196 fi
2197
2198
2199 for ac_hdr in unistd.h
2200 do
2201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2203 echo "configure:2204: checking for $ac_hdr" >&5
2204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2205   echo $ac_n "(cached) $ac_c" 1>&6
2206 else
2207   cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2210 #include <$ac_hdr>
2211 EOF
2212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2213 { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2215 if test -z "$ac_err"; then
2216   rm -rf conftest*
2217   eval "ac_cv_header_$ac_safe=yes"
2218 else
2219   echo "$ac_err" >&5
2220   echo "configure: failed program was:" >&5
2221   cat conftest.$ac_ext >&5
2222   rm -rf conftest*
2223   eval "ac_cv_header_$ac_safe=no"
2224 fi
2225 rm -f conftest*
2226 fi
2227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2228   echo "$ac_t""yes" 1>&6
2229     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2230   cat >> confdefs.h <<EOF
2231 #define $ac_tr_hdr 1
2232 EOF
2233  
2234 else
2235   echo "$ac_t""no" 1>&6
2236 fi
2237 done
2238
2239 for ac_func in getpagesize
2240 do
2241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2242 echo "configure:2243: checking for $ac_func" >&5
2243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2244   echo $ac_n "(cached) $ac_c" 1>&6
2245 else
2246   cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2249 /* System header to define __stub macros and hopefully few prototypes,
2250     which can conflict with char $ac_func(); below.  */
2251 #include <assert.h>
2252 /* Override any gcc2 internal prototype to avoid an error.  */
2253 /* We use char because int might match the return type of a gcc2
2254     builtin and then its argument prototype would still apply.  */
2255 char $ac_func();
2256
2257 int main() {
2258
2259 /* The GNU C library defines this for functions which it implements
2260     to always fail with ENOSYS.  Some functions are actually named
2261     something starting with __ and the normal name is an alias.  */
2262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2263 choke me
2264 #else
2265 $ac_func();
2266 #endif
2267
2268 ; return 0; }
2269 EOF
2270 if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2271   rm -rf conftest*
2272   eval "ac_cv_func_$ac_func=yes"
2273 else
2274   echo "configure: failed program was:" >&5
2275   cat conftest.$ac_ext >&5
2276   rm -rf conftest*
2277   eval "ac_cv_func_$ac_func=no"
2278 fi
2279 rm -f conftest*
2280 fi
2281
2282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2283   echo "$ac_t""yes" 1>&6
2284     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2285   cat >> confdefs.h <<EOF
2286 #define $ac_tr_func 1
2287 EOF
2288  
2289 else
2290   echo "$ac_t""no" 1>&6
2291 fi
2292 done
2293
2294 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2295 echo "configure:2296: checking for working mmap" >&5
2296 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2297   echo $ac_n "(cached) $ac_c" 1>&6
2298 else
2299   if test "$cross_compiling" = yes; then
2300   ac_cv_func_mmap_fixed_mapped=no
2301 else
2302   cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2305
2306 /* Thanks to Mike Haertel and Jim Avera for this test.
2307    Here is a matrix of mmap possibilities:
2308         mmap private not fixed
2309         mmap private fixed at somewhere currently unmapped
2310         mmap private fixed at somewhere already mapped
2311         mmap shared not fixed
2312         mmap shared fixed at somewhere currently unmapped
2313         mmap shared fixed at somewhere already mapped
2314    For private mappings, we should verify that changes cannot be read()
2315    back from the file, nor mmap's back from the file at a different
2316    address.  (There have been systems where private was not correctly
2317    implemented like the infamous i386 svr4.0, and systems where the
2318    VM page cache was not coherent with the filesystem buffer cache
2319    like early versions of FreeBSD and possibly contemporary NetBSD.)
2320    For shared mappings, we should conversely verify that changes get
2321    propogated back to all the places they're supposed to be.
2322
2323    Grep wants private fixed already mapped.
2324    The main things grep needs to know about mmap are:
2325    * does it exist and is it safe to write into the mmap'd area
2326    * how to use it (BSD variants)  */
2327 #include <sys/types.h>
2328 #include <fcntl.h>
2329 #include <sys/mman.h>
2330 #include <stdlib.h>
2331 #include <sys/stat.h>
2332
2333 #ifdef HAVE_UNISTD_H
2334 # include <unistd.h>
2335 #endif
2336
2337 /* This mess was copied from the GNU getpagesize.h.  */
2338 #ifndef HAVE_GETPAGESIZE
2339
2340 /* Assume that all systems that can run configure have sys/param.h.  */
2341 # ifndef HAVE_SYS_PARAM_H
2342 #  define HAVE_SYS_PARAM_H 1
2343 # endif
2344
2345 # ifdef _SC_PAGESIZE
2346 #  define getpagesize() sysconf(_SC_PAGESIZE)
2347 # else /* no _SC_PAGESIZE */
2348 #  ifdef HAVE_SYS_PARAM_H
2349 #   include <sys/param.h>
2350 #   ifdef EXEC_PAGESIZE
2351 #    define getpagesize() EXEC_PAGESIZE
2352 #   else /* no EXEC_PAGESIZE */
2353 #    ifdef NBPG
2354 #     define getpagesize() NBPG * CLSIZE
2355 #     ifndef CLSIZE
2356 #      define CLSIZE 1
2357 #     endif /* no CLSIZE */
2358 #    else /* no NBPG */
2359 #     ifdef NBPC
2360 #      define getpagesize() NBPC
2361 #     else /* no NBPC */
2362 #      ifdef PAGESIZE
2363 #       define getpagesize() PAGESIZE
2364 #      endif /* PAGESIZE */
2365 #     endif /* no NBPC */
2366 #    endif /* no NBPG */
2367 #   endif /* no EXEC_PAGESIZE */
2368 #  else /* no HAVE_SYS_PARAM_H */
2369 #   define getpagesize() 8192   /* punt totally */
2370 #  endif /* no HAVE_SYS_PARAM_H */
2371 # endif /* no _SC_PAGESIZE */
2372
2373 #endif /* no HAVE_GETPAGESIZE */
2374
2375 #ifdef __cplusplus
2376 extern "C" { void *malloc(unsigned); }
2377 #else
2378 char *malloc();
2379 #endif
2380
2381 int
2382 main()
2383 {
2384         char *data, *data2, *data3;
2385         int i, pagesize;
2386         int fd;
2387
2388         pagesize = getpagesize();
2389
2390         /*
2391          * First, make a file with some known garbage in it.
2392          */
2393         data = (char*)malloc(pagesize);
2394         if (!data)
2395                 exit(1);
2396         for (i = 0; i < pagesize; ++i)
2397                 *(data + i) = rand();
2398         umask(0);
2399         fd = creat("conftestmmap", 0600);
2400         if (fd < 0)
2401                 exit(1);
2402         if (write(fd, data, pagesize) != pagesize)
2403                 exit(1);
2404         close(fd);
2405
2406         /*
2407          * Next, try to mmap the file at a fixed address which
2408          * already has something else allocated at it.  If we can,
2409          * also make sure that we see the same garbage.
2410          */
2411         fd = open("conftestmmap", O_RDWR);
2412         if (fd < 0)
2413                 exit(1);
2414         data2 = (char*)malloc(2 * pagesize);
2415         if (!data2)
2416                 exit(1);
2417         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2418         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2419             MAP_PRIVATE | MAP_FIXED, fd, 0L))
2420                 exit(1);
2421         for (i = 0; i < pagesize; ++i)
2422                 if (*(data + i) != *(data2 + i))
2423                         exit(1);
2424
2425         /*
2426          * Finally, make sure that changes to the mapped area
2427          * do not percolate back to the file as seen by read().
2428          * (This is a bug on some variants of i386 svr4.0.)
2429          */
2430         for (i = 0; i < pagesize; ++i)
2431                 *(data2 + i) = *(data2 + i) + 1;
2432         data3 = (char*)malloc(pagesize);
2433         if (!data3)
2434                 exit(1);
2435         if (read(fd, data3, pagesize) != pagesize)
2436                 exit(1);
2437         for (i = 0; i < pagesize; ++i)
2438                 if (*(data + i) != *(data3 + i))
2439                         exit(1);
2440         close(fd);
2441         unlink("conftestmmap");
2442         exit(0);
2443 }
2444
2445 EOF
2446 if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2447 then
2448   ac_cv_func_mmap_fixed_mapped=yes
2449 else
2450   echo "configure: failed program was:" >&5
2451   cat conftest.$ac_ext >&5
2452   rm -fr conftest*
2453   ac_cv_func_mmap_fixed_mapped=no
2454 fi
2455 rm -fr conftest*
2456 fi
2457
2458 fi
2459
2460 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2461 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2462   cat >> confdefs.h <<\EOF
2463 #define HAVE_MMAP 1
2464 EOF
2465
2466 fi
2467
2468 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2469 echo "configure:2470: checking return type of signal handlers" >&5
2470 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2471   echo $ac_n "(cached) $ac_c" 1>&6
2472 else
2473   cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2476 #include <sys/types.h>
2477 #include <signal.h>
2478 #ifdef signal
2479 #undef signal
2480 #endif
2481 #ifdef __cplusplus
2482 extern "C" void (*signal (int, void (*)(int)))(int);
2483 #else
2484 void (*signal ()) ();
2485 #endif
2486
2487 int main() {
2488 int i;
2489 ; return 0; }
2490 EOF
2491 if { (eval echo configure:2492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2492   rm -rf conftest*
2493   ac_cv_type_signal=void
2494 else
2495   echo "configure: failed program was:" >&5
2496   cat conftest.$ac_ext >&5
2497   rm -rf conftest*
2498   ac_cv_type_signal=int
2499 fi
2500 rm -f conftest*
2501 fi
2502
2503 echo "$ac_t""$ac_cv_type_signal" 1>&6
2504 cat >> confdefs.h <<EOF
2505 #define RETSIGTYPE $ac_cv_type_signal
2506 EOF
2507
2508
2509 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2510 echo "configure:2511: checking for dlopen in -ldl" >&5
2511 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2513   echo $ac_n "(cached) $ac_c" 1>&6
2514 else
2515   ac_save_LIBS="$LIBS"
2516 LIBS="-ldl  $LIBS"
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 /* Override any gcc2 internal prototype to avoid an error.  */
2521 /* We use char because int might match the return type of a gcc2
2522     builtin and then its argument prototype would still apply.  */
2523 char dlopen();
2524
2525 int main() {
2526 dlopen()
2527 ; return 0; }
2528 EOF
2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2530   rm -rf conftest*
2531   eval "ac_cv_lib_$ac_lib_var=yes"
2532 else
2533   echo "configure: failed program was:" >&5
2534   cat conftest.$ac_ext >&5
2535   rm -rf conftest*
2536   eval "ac_cv_lib_$ac_lib_var=no"
2537 fi
2538 rm -f conftest*
2539 LIBS="$ac_save_LIBS"
2540
2541 fi
2542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2543   echo "$ac_t""yes" 1>&6
2544   LIB="${LIB} -ldl"
2545 else
2546   echo "$ac_t""no" 1>&6
2547 fi
2548
2549 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2550 echo "configure:2551: checking for pow in -lm" >&5
2551 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2553   echo $ac_n "(cached) $ac_c" 1>&6
2554 else
2555   ac_save_LIBS="$LIBS"
2556 LIBS="-lm  $LIBS"
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 /* Override any gcc2 internal prototype to avoid an error.  */
2561 /* We use char because int might match the return type of a gcc2
2562     builtin and then its argument prototype would still apply.  */
2563 char pow();
2564
2565 int main() {
2566 pow()
2567 ; return 0; }
2568 EOF
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2570   rm -rf conftest*
2571   eval "ac_cv_lib_$ac_lib_var=yes"
2572 else
2573   echo "configure: failed program was:" >&5
2574   cat conftest.$ac_ext >&5
2575   rm -rf conftest*
2576   eval "ac_cv_lib_$ac_lib_var=no"
2577 fi
2578 rm -f conftest*
2579 LIBS="$ac_save_LIBS"
2580
2581 fi
2582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2583   echo "$ac_t""yes" 1>&6
2584   LIB_YUV="${LIB_YUV} -lm"
2585 else
2586   echo "$ac_t""no" 1>&6
2587 fi
2588
2589
2590 THREAD_LIB=error
2591 if test "x${THREAD_LIB}" = xerror; then
2592   echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2593 echo "configure:2594: checking for pthread_attr_init in -lpthread" >&5
2594 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2596   echo $ac_n "(cached) $ac_c" 1>&6
2597 else
2598   ac_save_LIBS="$LIBS"
2599 LIBS="-lpthread  $LIBS"
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2603 /* Override any gcc2 internal prototype to avoid an error.  */
2604 /* We use char because int might match the return type of a gcc2
2605     builtin and then its argument prototype would still apply.  */
2606 char pthread_attr_init();
2607
2608 int main() {
2609 pthread_attr_init()
2610 ; return 0; }
2611 EOF
2612 if { (eval echo configure:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2613   rm -rf conftest*
2614   eval "ac_cv_lib_$ac_lib_var=yes"
2615 else
2616   echo "configure: failed program was:" >&5
2617   cat conftest.$ac_ext >&5
2618   rm -rf conftest*
2619   eval "ac_cv_lib_$ac_lib_var=no"
2620 fi
2621 rm -f conftest*
2622 LIBS="$ac_save_LIBS"
2623
2624 fi
2625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2626   echo "$ac_t""yes" 1>&6
2627   THREAD_LIB="-lpthread"
2628 else
2629   echo "$ac_t""no" 1>&6
2630 fi
2631
2632 fi
2633 if test "x${THREAD_LIB}" = xerror; then
2634   echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2635 echo "configure:2636: checking for pthread_attr_init in -lpthreads" >&5
2636 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2637 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2638   echo $ac_n "(cached) $ac_c" 1>&6
2639 else
2640   ac_save_LIBS="$LIBS"
2641 LIBS="-lpthreads  $LIBS"
2642 cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2645 /* Override any gcc2 internal prototype to avoid an error.  */
2646 /* We use char because int might match the return type of a gcc2
2647     builtin and then its argument prototype would still apply.  */
2648 char pthread_attr_init();
2649
2650 int main() {
2651 pthread_attr_init()
2652 ; return 0; }
2653 EOF
2654 if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2655   rm -rf conftest*
2656   eval "ac_cv_lib_$ac_lib_var=yes"
2657 else
2658   echo "configure: failed program was:" >&5
2659   cat conftest.$ac_ext >&5
2660   rm -rf conftest*
2661   eval "ac_cv_lib_$ac_lib_var=no"
2662 fi
2663 rm -f conftest*
2664 LIBS="$ac_save_LIBS"
2665
2666 fi
2667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2668   echo "$ac_t""yes" 1>&6
2669   THREAD_LIB="-lpthreads"
2670 else
2671   echo "$ac_t""no" 1>&6
2672 fi
2673
2674 fi
2675 if test "x${THREAD_LIB}" = xerror; then
2676   echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2677 echo "configure:2678: checking for pthread_attr_init in -lc_r" >&5
2678 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2680   echo $ac_n "(cached) $ac_c" 1>&6
2681 else
2682   ac_save_LIBS="$LIBS"
2683 LIBS="-lc_r  $LIBS"
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 /* Override any gcc2 internal prototype to avoid an error.  */
2688 /* We use char because int might match the return type of a gcc2
2689     builtin and then its argument prototype would still apply.  */
2690 char pthread_attr_init();
2691
2692 int main() {
2693 pthread_attr_init()
2694 ; return 0; }
2695 EOF
2696 if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2697   rm -rf conftest*
2698   eval "ac_cv_lib_$ac_lib_var=yes"
2699 else
2700   echo "configure: failed program was:" >&5
2701   cat conftest.$ac_ext >&5
2702   rm -rf conftest*
2703   eval "ac_cv_lib_$ac_lib_var=no"
2704 fi
2705 rm -f conftest*
2706 LIBS="$ac_save_LIBS"
2707
2708 fi
2709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2710   echo "$ac_t""yes" 1>&6
2711   THREAD_LIB="-lc_r"
2712 else
2713   echo "$ac_t""no" 1>&6
2714 fi
2715
2716 fi
2717 if test "x${THREAD_LIB}" = xerror; then
2718   echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2719 echo "configure:2720: checking for pthread_attr_init" >&5
2720 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2721   echo $ac_n "(cached) $ac_c" 1>&6
2722 else
2723   cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726 /* System header to define __stub macros and hopefully few prototypes,
2727     which can conflict with char pthread_attr_init(); below.  */
2728 #include <assert.h>
2729 /* Override any gcc2 internal prototype to avoid an error.  */
2730 /* We use char because int might match the return type of a gcc2
2731     builtin and then its argument prototype would still apply.  */
2732 char pthread_attr_init();
2733
2734 int main() {
2735
2736 /* The GNU C library defines this for functions which it implements
2737     to always fail with ENOSYS.  Some functions are actually named
2738     something starting with __ and the normal name is an alias.  */
2739 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2740 choke me
2741 #else
2742 pthread_attr_init();
2743 #endif
2744
2745 ; return 0; }
2746 EOF
2747 if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2748   rm -rf conftest*
2749   eval "ac_cv_func_pthread_attr_init=yes"
2750 else
2751   echo "configure: failed program was:" >&5
2752   cat conftest.$ac_ext >&5
2753   rm -rf conftest*
2754   eval "ac_cv_func_pthread_attr_init=no"
2755 fi
2756 rm -f conftest*
2757 fi
2758
2759 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2760   echo "$ac_t""yes" 1>&6
2761   :
2762 else
2763   echo "$ac_t""no" 1>&6
2764 fi
2765
2766   THREAD_LIB=""
2767 fi
2768
2769 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
2770 echo "configure:2771: checking for cthread_fork in -lthreads" >&5
2771 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
2772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2773   echo $ac_n "(cached) $ac_c" 1>&6
2774 else
2775   ac_save_LIBS="$LIBS"
2776 LIBS="-lthreads  $LIBS"
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2780 /* Override any gcc2 internal prototype to avoid an error.  */
2781 /* We use char because int might match the return type of a gcc2
2782     builtin and then its argument prototype would still apply.  */
2783 char cthread_fork();
2784
2785 int main() {
2786 cthread_fork()
2787 ; return 0; }
2788 EOF
2789 if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2790   rm -rf conftest*
2791   eval "ac_cv_lib_$ac_lib_var=yes"
2792 else
2793   echo "configure: failed program was:" >&5
2794   cat conftest.$ac_ext >&5
2795   rm -rf conftest*
2796   eval "ac_cv_lib_$ac_lib_var=no"
2797 fi
2798 rm -f conftest*
2799 LIBS="$ac_save_LIBS"
2800
2801 fi
2802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2803   echo "$ac_t""yes" 1>&6
2804   THREAD_LIB="-lthreads"
2805 else
2806   echo "$ac_t""no" 1>&6
2807 fi
2808
2809
2810 cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2813 #include <pthread.h>
2814 EOF
2815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2816   egrep "pthread_cond_t" >/dev/null 2>&1; then
2817   rm -rf conftest*
2818   
2819   cat >> confdefs.h <<\EOF
2820 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2821 EOF
2822
2823 fi
2824 rm -f conftest*
2825
2826 cat > conftest.$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 #include <strings.h>
2830 EOF
2831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2832   egrep "strncasecmp" >/dev/null 2>&1; then
2833   rm -rf conftest*
2834   
2835   cat >> confdefs.h <<\EOF
2836 #define STRNCASECMP_IN_STRINGS_H 1
2837 EOF
2838
2839 fi
2840 rm -f conftest*
2841
2842
2843 for ac_hdr in stddef.h getopt.h strings.h
2844 do
2845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2847 echo "configure:2848: checking for $ac_hdr" >&5
2848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2849   echo $ac_n "(cached) $ac_c" 1>&6
2850 else
2851   cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2854 #include <$ac_hdr>
2855 EOF
2856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2857 { (eval echo configure:2858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2859 if test -z "$ac_err"; then
2860   rm -rf conftest*
2861   eval "ac_cv_header_$ac_safe=yes"
2862 else
2863   echo "$ac_err" >&5
2864   echo "configure: failed program was:" >&5
2865   cat conftest.$ac_ext >&5
2866   rm -rf conftest*
2867   eval "ac_cv_header_$ac_safe=no"
2868 fi
2869 rm -f conftest*
2870 fi
2871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2872   echo "$ac_t""yes" 1>&6
2873     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2874   cat >> confdefs.h <<EOF
2875 #define $ac_tr_hdr 1
2876 EOF
2877  
2878 else
2879   echo "$ac_t""no" 1>&6
2880 fi
2881 done
2882
2883 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
2884 do
2885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2887 echo "configure:2888: checking for $ac_hdr" >&5
2888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2889   echo $ac_n "(cached) $ac_c" 1>&6
2890 else
2891   cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2894 #include <$ac_hdr>
2895 EOF
2896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2897 { (eval echo configure:2898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2899 if test -z "$ac_err"; then
2900   rm -rf conftest*
2901   eval "ac_cv_header_$ac_safe=yes"
2902 else
2903   echo "$ac_err" >&5
2904   echo "configure: failed program was:" >&5
2905   cat conftest.$ac_ext >&5
2906   rm -rf conftest*
2907   eval "ac_cv_header_$ac_safe=no"
2908 fi
2909 rm -f conftest*
2910 fi
2911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2912   echo "$ac_t""yes" 1>&6
2913     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2914   cat >> confdefs.h <<EOF
2915 #define $ac_tr_hdr 1
2916 EOF
2917  
2918 else
2919   echo "$ac_t""no" 1>&6
2920 fi
2921 done
2922
2923 for ac_hdr in sys/soundcard.h machine/soundcard.h
2924 do
2925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2927 echo "configure:2928: checking for $ac_hdr" >&5
2928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2929   echo $ac_n "(cached) $ac_c" 1>&6
2930 else
2931   cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2934 #include <$ac_hdr>
2935 EOF
2936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2937 { (eval echo configure:2938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2939 if test -z "$ac_err"; then
2940   rm -rf conftest*
2941   eval "ac_cv_header_$ac_safe=yes"
2942 else
2943   echo "$ac_err" >&5
2944   echo "configure: failed program was:" >&5
2945   cat conftest.$ac_ext >&5
2946   rm -rf conftest*
2947   eval "ac_cv_header_$ac_safe=no"
2948 fi
2949 rm -f conftest*
2950 fi
2951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2952   echo "$ac_t""yes" 1>&6
2953     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2954   cat >> confdefs.h <<EOF
2955 #define $ac_tr_hdr 1
2956 EOF
2957  
2958 else
2959   echo "$ac_t""no" 1>&6
2960 fi
2961 done
2962
2963 for ac_hdr in dlfcn.h image.h
2964 do
2965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2967 echo "configure:2968: checking for $ac_hdr" >&5
2968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2969   echo $ac_n "(cached) $ac_c" 1>&6
2970 else
2971   cat > conftest.$ac_ext <<EOF
2972 #line 2973 "configure"
2973 #include "confdefs.h"
2974 #include <$ac_hdr>
2975 EOF
2976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2977 { (eval echo configure:2978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2979 if test -z "$ac_err"; then
2980   rm -rf conftest*
2981   eval "ac_cv_header_$ac_safe=yes"
2982 else
2983   echo "$ac_err" >&5
2984   echo "configure: failed program was:" >&5
2985   cat conftest.$ac_ext >&5
2986   rm -rf conftest*
2987   eval "ac_cv_header_$ac_safe=no"
2988 fi
2989 rm -f conftest*
2990 fi
2991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2992   echo "$ac_t""yes" 1>&6
2993     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2994   cat >> confdefs.h <<EOF
2995 #define $ac_tr_hdr 1
2996 EOF
2997  
2998 else
2999   echo "$ac_t""no" 1>&6
3000 fi
3001 done
3002
3003 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
3004 do
3005 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3007 echo "configure:3008: checking for $ac_hdr" >&5
3008 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3009   echo $ac_n "(cached) $ac_c" 1>&6
3010 else
3011   cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3014 #include <$ac_hdr>
3015 EOF
3016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3017 { (eval echo configure:3018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3019 if test -z "$ac_err"; then
3020   rm -rf conftest*
3021   eval "ac_cv_header_$ac_safe=yes"
3022 else
3023   echo "$ac_err" >&5
3024   echo "configure: failed program was:" >&5
3025   cat conftest.$ac_ext >&5
3026   rm -rf conftest*
3027   eval "ac_cv_header_$ac_safe=no"
3028 fi
3029 rm -f conftest*
3030 fi
3031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3032   echo "$ac_t""yes" 1>&6
3033     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3034   cat >> confdefs.h <<EOF
3035 #define $ac_tr_hdr 1
3036 EOF
3037  
3038 else
3039   echo "$ac_t""no" 1>&6
3040 fi
3041 done
3042
3043 for ac_hdr in machine/param.h
3044 do
3045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3047 echo "configure:3048: checking for $ac_hdr" >&5
3048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3049   echo $ac_n "(cached) $ac_c" 1>&6
3050 else
3051   cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 #include <$ac_hdr>
3055 EOF
3056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3057 { (eval echo configure:3058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3059 if test -z "$ac_err"; then
3060   rm -rf conftest*
3061   eval "ac_cv_header_$ac_safe=yes"
3062 else
3063   echo "$ac_err" >&5
3064   echo "configure: failed program was:" >&5
3065   cat conftest.$ac_ext >&5
3066   rm -rf conftest*
3067   eval "ac_cv_header_$ac_safe=no"
3068 fi
3069 rm -f conftest*
3070 fi
3071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3072   echo "$ac_t""yes" 1>&6
3073     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3074   cat >> confdefs.h <<EOF
3075 #define $ac_tr_hdr 1
3076 EOF
3077  
3078 else
3079   echo "$ac_t""no" 1>&6
3080 fi
3081 done
3082
3083
3084 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
3085 do
3086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3088 echo "configure:3089: checking for $ac_hdr" >&5
3089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3090   echo $ac_n "(cached) $ac_c" 1>&6
3091 else
3092   cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 #include <$ac_hdr>
3096 EOF
3097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3098 { (eval echo configure:3099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3100 if test -z "$ac_err"; then
3101   rm -rf conftest*
3102   eval "ac_cv_header_$ac_safe=yes"
3103 else
3104   echo "$ac_err" >&5
3105   echo "configure: failed program was:" >&5
3106   cat conftest.$ac_ext >&5
3107   rm -rf conftest*
3108   eval "ac_cv_header_$ac_safe=no"
3109 fi
3110 rm -f conftest*
3111 fi
3112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3113   echo "$ac_t""yes" 1>&6
3114     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3115   cat >> confdefs.h <<EOF
3116 #define $ac_tr_hdr 1
3117 EOF
3118  
3119 else
3120   echo "$ac_t""no" 1>&6
3121 fi
3122 done
3123
3124
3125 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
3126 echo "configure:3127: checking for ntohl in sys/param.h" >&5
3127 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
3128   echo $ac_n "(cached) $ac_c" 1>&6
3129 else
3130   CFLAGS="${save_CFLAGS} -Wall -Werror"
3131      cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 #include <sys/param.h>
3135 int main() {
3136 void foo() { int meuh; ntohl(meuh); }
3137 ; return 0; }
3138 EOF
3139 if { (eval echo configure:3140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3140   rm -rf conftest*
3141   ac_cv_c_ntohl_sys_param_h=yes
3142 else
3143   echo "configure: failed program was:" >&5
3144   cat conftest.$ac_ext >&5
3145   rm -rf conftest*
3146   ac_cv_c_ntohl_sys_param_h=no
3147 fi
3148 rm -f conftest*
3149 fi
3150
3151 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
3152 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
3153     cat >> confdefs.h <<\EOF
3154 #define NTOHL_IN_SYS_PARAM_H 1
3155 EOF
3156
3157 fi
3158
3159 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
3160 echo "configure:3161: checking if \$CC accepts -finline-limit" >&5
3161 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
3162   echo $ac_n "(cached) $ac_c" 1>&6
3163 else
3164   CFLAGS="${save_CFLAGS} -finline-limit-30000"
3165      cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168
3169 int main() {
3170
3171 ; return 0; }
3172 EOF
3173 if { (eval echo configure:3174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3174   rm -rf conftest*
3175   ac_cv_c_inline_limit=yes
3176 else
3177   echo "configure: failed program was:" >&5
3178   cat conftest.$ac_ext >&5
3179   rm -rf conftest*
3180   ac_cv_c_inline_limit=no
3181 fi
3182 rm -f conftest*
3183 fi
3184
3185 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
3186 if test x"$ac_cv_c_inline_limit" != x"no"; then
3187     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
3188 fi
3189
3190 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
3191 echo "configure:3192: checking if \$CC accepts -bundle -undefined error" >&5
3192 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
3193   echo $ac_n "(cached) $ac_c" 1>&6
3194 else
3195   CFLAGS="${save_CFLAGS} -bundle -undefined error"
3196      cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199
3200 int main() {
3201
3202 ; return 0; }
3203 EOF
3204 if { (eval echo configure:3205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3205   rm -rf conftest*
3206   ac_cv_ld_darwin=yes
3207 else
3208   echo "configure: failed program was:" >&5
3209   cat conftest.$ac_ext >&5
3210   rm -rf conftest*
3211   ac_cv_ld_darwin=no
3212 fi
3213 rm -f conftest*
3214 fi
3215
3216 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
3217 if test x"$ac_cv_ld_darwin" != x"no"; then
3218     PLCFLAGS="${PLCFLAGS} -bundle -undefined error"
3219 fi
3220
3221 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
3222 echo "configure:3223: checking if \$CC accepts -shared" >&5
3223 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
3224   echo $ac_n "(cached) $ac_c" 1>&6
3225 else
3226   CFLAGS="${save_CFLAGS} -shared"
3227      cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230
3231 int main() {
3232
3233 ; return 0; }
3234 EOF
3235 if { (eval echo configure:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3236   rm -rf conftest*
3237   ac_cv_ld_plugins=yes
3238 else
3239   echo "configure: failed program was:" >&5
3240   cat conftest.$ac_ext >&5
3241   rm -rf conftest*
3242   ac_cv_ld_plugins=no
3243 fi
3244 rm -f conftest*
3245 fi
3246
3247 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
3248 if test x"$ac_cv_ld_plugins" != x"no"; then
3249     PLCFLAGS="${PLCFLAGS} -shared"
3250 fi
3251         
3252 if test x"${SOFLAGS}" = x; then
3253     echo $ac_n "checking for soname setting""... $ac_c" 1>&6
3254 echo "configure:3255: checking for soname setting" >&5
3255 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
3256   echo $ac_n "(cached) $ac_c" 1>&6
3257 else
3258   
3259         # Standard
3260         try_SOFLAGS="-Wl,-soname -Wl,"
3261         LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3262         cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265
3266 int main() {
3267
3268 ; return 0; }
3269 EOF
3270 if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3271   rm -rf conftest*
3272   ac_cv_ld_soname="${try_SOFLAGS}"
3273 else
3274   echo "configure: failed program was:" >&5
3275   cat conftest.$ac_ext >&5
3276   rm -rf conftest*
3277   
3278             # SunOS
3279             try_SOFLAGS="-Wl,-h -Wl,"
3280             LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3281             cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284
3285 int main() {
3286
3287 ; return 0; }
3288 EOF
3289 if { (eval echo configure:3290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3290   rm -rf conftest*
3291   ac_cv_ld_soname="${try_SOFLAGS}"
3292 else
3293   echo "configure: failed program was:" >&5
3294   cat conftest.$ac_ext >&5
3295   rm -rf conftest*
3296   ac_cv_ld_soname=none
3297 fi
3298 rm -f conftest*
3299         
3300 fi
3301 rm -f conftest*
3302 fi
3303
3304 echo "$ac_t""$ac_cv_ld_soname" 1>&6
3305     if test x"$ac_cv_ld_soname" != x"none"; then
3306         SOFLAGS=$ac_cv_ld_soname
3307     else
3308         echo "
3309 ------------
3310 Your system doesn't seem to have support for dynamic linking. You may
3311 have problems using libdvdcss.
3312 ------------
3313 "
3314     fi
3315 fi
3316
3317 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
3318 echo "configure:3319: checking __attribute__ ((aligned ())) support" >&5
3319 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
3320   echo $ac_n "(cached) $ac_c" 1>&6
3321 else
3322   ac_cv_c_attribute_aligned=0
3323         CFLAGS="${save_CFLAGS} -Werror"
3324     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
3325         cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328
3329 int main() {
3330 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
3331 ; return 0; }
3332 EOF
3333 if { (eval echo configure:3334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3334   rm -rf conftest*
3335   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
3336 else
3337   echo "configure: failed program was:" >&5
3338   cat conftest.$ac_ext >&5
3339 fi
3340 rm -f conftest*
3341     done
3342 fi
3343
3344 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
3345 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
3346     cat >> confdefs.h <<EOF
3347 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
3348 EOF
3349
3350 fi
3351
3352 CFLAGS="${save_CFLAGS}"
3353 LDFLAGS="${save_LDFLAGS}"
3354
3355 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3356 echo "configure:3357: checking for boolean_t in sys/types.h" >&5
3357 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
3358   echo $ac_n "(cached) $ac_c" 1>&6
3359 else
3360   cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 #include <sys/types.h>
3364 int main() {
3365 void quux() { boolean_t foo; }
3366 ; return 0; }
3367 EOF
3368 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3369   rm -rf conftest*
3370   ac_cv_c_boolean_t_sys_types_h=yes
3371 else
3372   echo "configure: failed program was:" >&5
3373   cat conftest.$ac_ext >&5
3374   rm -rf conftest*
3375   ac_cv_c_boolean_t_sys_types_h=no
3376 fi
3377 rm -f conftest*
3378 fi
3379
3380 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
3381 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
3382     cat >> confdefs.h <<\EOF
3383 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3384 EOF
3385
3386 fi
3387
3388 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3389 echo "configure:3390: checking for boolean_t in pthread.h" >&5
3390 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
3391   echo $ac_n "(cached) $ac_c" 1>&6
3392 else
3393   cat > conftest.$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 #include <pthread.h>
3397 int main() {
3398 void quux() { boolean_t foo; }
3399 ; return 0; }
3400 EOF
3401 if { (eval echo configure:3402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3402   rm -rf conftest*
3403   ac_cv_c_boolean_t_pthread_h=yes
3404 else
3405   echo "configure: failed program was:" >&5
3406   cat conftest.$ac_ext >&5
3407   rm -rf conftest*
3408   ac_cv_c_boolean_t_pthread_h=no
3409 fi
3410 rm -f conftest*
3411 fi
3412
3413 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
3414 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
3415     cat >> confdefs.h <<\EOF
3416 #define BOOLEAN_T_IN_PTHREAD_H 1
3417 EOF
3418
3419 fi
3420
3421 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
3422 echo "configure:3423: checking for boolean_t in cthreads.h" >&5
3423 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
3424   echo $ac_n "(cached) $ac_c" 1>&6
3425 else
3426   cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 #include <cthreads.h>
3430 int main() {
3431 void quux() { boolean_t foo; }
3432 ; return 0; }
3433 EOF
3434 if { (eval echo configure:3435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3435   rm -rf conftest*
3436   ac_cv_c_boolean_t_cthreads_h=yes
3437 else
3438   echo "configure: failed program was:" >&5
3439   cat conftest.$ac_ext >&5
3440   rm -rf conftest*
3441   ac_cv_c_boolean_t_cthreads_h=no
3442 fi
3443 rm -f conftest*
3444 fi
3445
3446 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
3447 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
3448     cat >> confdefs.h <<\EOF
3449 #define BOOLEAN_T_IN_CTHREADS_H 1
3450 EOF
3451
3452 fi
3453
3454 echo $ac_n "checking for working const""... $ac_c" 1>&6
3455 echo "configure:3456: checking for working const" >&5
3456 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3457   echo $ac_n "(cached) $ac_c" 1>&6
3458 else
3459   cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462
3463 int main() {
3464
3465 /* Ultrix mips cc rejects this.  */
3466 typedef int charset[2]; const charset x = {0,0};
3467 /* SunOS 4.1.1 cc rejects this.  */
3468 char const *const *ccp;
3469 char **p;
3470 /* NEC SVR4.0.2 mips cc rejects this.  */
3471 struct point {int x, y;};
3472 static struct point const zero = {0,0};
3473 /* AIX XL C 1.02.0.0 rejects this.
3474    It does not let you subtract one const X* pointer from another in an arm
3475    of an if-expression whose if-part is not a constant expression */
3476 const char *g = "string";
3477 ccp = &g + (g ? g-g : 0);
3478 /* HPUX 7.0 cc rejects these. */
3479 ++ccp;
3480 p = (char**) ccp;
3481 ccp = (char const *const *) p;
3482 { /* SCO 3.2v4 cc rejects this.  */
3483   char *t;
3484   char const *s = 0 ? (char *) 0 : (char const *) 0;
3485
3486   *t++ = 0;
3487 }
3488 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3489   int x[] = {25, 17};
3490   const int *foo = &x[0];
3491   ++foo;
3492 }
3493 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3494   typedef const int *iptr;
3495   iptr p = 0;
3496   ++p;
3497 }
3498 { /* AIX XL C 1.02.0.0 rejects this saying
3499      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3500   struct s { int j; const int *ap[3]; };
3501   struct s *b; b->j = 5;
3502 }
3503 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3504   const int foo = 10;
3505 }
3506
3507 ; return 0; }
3508 EOF
3509 if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3510   rm -rf conftest*
3511   ac_cv_c_const=yes
3512 else
3513   echo "configure: failed program was:" >&5
3514   cat conftest.$ac_ext >&5
3515   rm -rf conftest*
3516   ac_cv_c_const=no
3517 fi
3518 rm -f conftest*
3519 fi
3520
3521 echo "$ac_t""$ac_cv_c_const" 1>&6
3522 if test $ac_cv_c_const = no; then
3523   cat >> confdefs.h <<\EOF
3524 #define const 
3525 EOF
3526
3527 fi
3528
3529 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3530 echo "configure:3531: checking for ANSI C header files" >&5
3531 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3532   echo $ac_n "(cached) $ac_c" 1>&6
3533 else
3534   cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3537 #include <stdlib.h>
3538 #include <stdarg.h>
3539 #include <string.h>
3540 #include <float.h>
3541 EOF
3542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3543 { (eval echo configure:3544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3545 if test -z "$ac_err"; then
3546   rm -rf conftest*
3547   ac_cv_header_stdc=yes
3548 else
3549   echo "$ac_err" >&5
3550   echo "configure: failed program was:" >&5
3551   cat conftest.$ac_ext >&5
3552   rm -rf conftest*
3553   ac_cv_header_stdc=no
3554 fi
3555 rm -f conftest*
3556
3557 if test $ac_cv_header_stdc = yes; then
3558   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 #include <string.h>
3563 EOF
3564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565   egrep "memchr" >/dev/null 2>&1; then
3566   :
3567 else
3568   rm -rf conftest*
3569   ac_cv_header_stdc=no
3570 fi
3571 rm -f conftest*
3572
3573 fi
3574
3575 if test $ac_cv_header_stdc = yes; then
3576   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include <stdlib.h>
3581 EOF
3582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3583   egrep "free" >/dev/null 2>&1; then
3584   :
3585 else
3586   rm -rf conftest*
3587   ac_cv_header_stdc=no
3588 fi
3589 rm -f conftest*
3590
3591 fi
3592
3593 if test $ac_cv_header_stdc = yes; then
3594   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3595 if test "$cross_compiling" = yes; then
3596   :
3597 else
3598   cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 #include <ctype.h>
3602 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3603 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3605 int main () { int i; for (i = 0; i < 256; i++)
3606 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3607 exit (0); }
3608
3609 EOF
3610 if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3611 then
3612   :
3613 else
3614   echo "configure: failed program was:" >&5
3615   cat conftest.$ac_ext >&5
3616   rm -fr conftest*
3617   ac_cv_header_stdc=no
3618 fi
3619 rm -fr conftest*
3620 fi
3621
3622 fi
3623 fi
3624
3625 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3626 if test $ac_cv_header_stdc = yes; then
3627   cat >> confdefs.h <<\EOF
3628 #define STDC_HEADERS 1
3629 EOF
3630
3631 fi
3632
3633 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3634 echo "configure:3635: checking for size_t" >&5
3635 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3636   echo $ac_n "(cached) $ac_c" 1>&6
3637 else
3638   cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 #include <sys/types.h>
3642 #if STDC_HEADERS
3643 #include <stdlib.h>
3644 #include <stddef.h>
3645 #endif
3646 EOF
3647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3648   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3649   rm -rf conftest*
3650   ac_cv_type_size_t=yes
3651 else
3652   rm -rf conftest*
3653   ac_cv_type_size_t=no
3654 fi
3655 rm -f conftest*
3656
3657 fi
3658 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3659 if test $ac_cv_type_size_t = no; then
3660   cat >> confdefs.h <<\EOF
3661 #define size_t unsigned
3662 EOF
3663
3664 fi
3665
3666 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3667 echo "configure:3668: checking whether time.h and sys/time.h may both be included" >&5
3668 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3669   echo $ac_n "(cached) $ac_c" 1>&6
3670 else
3671   cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <sys/types.h>
3675 #include <sys/time.h>
3676 #include <time.h>
3677 int main() {
3678 struct tm *tp;
3679 ; return 0; }
3680 EOF
3681 if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3682   rm -rf conftest*
3683   ac_cv_header_time=yes
3684 else
3685   echo "configure: failed program was:" >&5
3686   cat conftest.$ac_ext >&5
3687   rm -rf conftest*
3688   ac_cv_header_time=no
3689 fi
3690 rm -f conftest*
3691 fi
3692
3693 echo "$ac_t""$ac_cv_header_time" 1>&6
3694 if test $ac_cv_header_time = yes; then
3695   cat >> confdefs.h <<\EOF
3696 #define TIME_WITH_SYS_TIME 1
3697 EOF
3698
3699 fi
3700
3701
3702
3703 ARCH=${target_cpu}
3704
3705 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3706 PLUGINS="${PLUGINS}"
3707
3708 MMX_MODULES="yuvmmx idctmmx motionmmx"
3709 MMXEXT_MODULES="idctmmxext motionmmxext"
3710 THREEDNOW_MODULES="imdct3dn downmix3dn"
3711 SSE_MODULES="imdctsse downmixsse"
3712 ALTIVEC_MODULES="idctaltivec motionaltivec"
3713
3714 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3715 echo "configure:3716: checking if \$CC groks MMX inline assembly" >&5
3716 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
3717   echo $ac_n "(cached) $ac_c" 1>&6
3718 else
3719   cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722
3723 int main() {
3724 void quux(){void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));}
3725 ; return 0; }
3726 EOF
3727 if { (eval echo configure:3728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3728   rm -rf conftest*
3729   ac_cv_mmx_inline=yes
3730 else
3731   echo "configure: failed program was:" >&5
3732   cat conftest.$ac_ext >&5
3733   rm -rf conftest*
3734   ac_cv_mmx_inline=no
3735 fi
3736 rm -f conftest*
3737 fi
3738
3739 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
3740 if test x"$ac_cv_mmx_inline" != x"no"; then
3741   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3742 fi
3743
3744 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
3745 echo "configure:3746: checking if \$CC groks MMX EXT inline assembly" >&5
3746 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
3747   echo $ac_n "(cached) $ac_c" 1>&6
3748 else
3749   cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752
3753 int main() {
3754 void quux(){void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));}
3755 ; return 0; }
3756 EOF
3757 if { (eval echo configure:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3758   rm -rf conftest*
3759   ac_cv_mmxext_inline=yes
3760 else
3761   echo "configure: failed program was:" >&5
3762   cat conftest.$ac_ext >&5
3763   rm -rf conftest*
3764   ac_cv_mmxext_inline=no
3765 fi
3766 rm -f conftest*
3767 fi
3768
3769 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
3770 if test x"$ac_cv_mmxext_inline" != x"no"; then
3771   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3772 fi
3773
3774 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
3775 echo "configure:3776: checking if \$CC groks 3D Now! inline assembly" >&5
3776 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
3777   echo $ac_n "(cached) $ac_c" 1>&6
3778 else
3779   cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782
3783 int main() {
3784 void quux(){void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));}
3785 ; return 0; }
3786 EOF
3787 if { (eval echo configure:3788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3788   rm -rf conftest*
3789   ac_cv_3dnow_inline=yes
3790 else
3791   echo "configure: failed program was:" >&5
3792   cat conftest.$ac_ext >&5
3793   rm -rf conftest*
3794   ac_cv_3dnow_inline=no
3795 fi
3796 rm -f conftest*
3797 fi
3798
3799 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
3800 if test x"$ac_cv_3dnow_inline" != x"no"; then
3801   cat >> confdefs.h <<\EOF
3802 #define HAVE_3DNOW 1
3803 EOF
3804
3805   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
3806 fi
3807
3808 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
3809 echo "configure:3810: checking if \$CC groks SSE inline assembly" >&5
3810 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
3811   echo $ac_n "(cached) $ac_c" 1>&6
3812 else
3813   cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816
3817 int main() {
3818 void quux(){void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));}
3819 ; return 0; }
3820 EOF
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822   rm -rf conftest*
3823   ac_cv_sse_inline=yes
3824 else
3825   echo "configure: failed program was:" >&5
3826   cat conftest.$ac_ext >&5
3827   rm -rf conftest*
3828   ac_cv_sse_inline=no
3829 fi
3830 rm -f conftest*
3831 fi
3832
3833 echo "$ac_t""$ac_cv_sse_inline" 1>&6
3834 if test x"$ac_cv_sse_inline" != x"no"; then
3835   cat >> confdefs.h <<\EOF
3836 #define HAVE_SSE 1
3837 EOF
3838
3839   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
3840 fi
3841
3842 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
3843 echo "configure:3844: checking if \$CC groks Altivec inline assembly" >&5
3844 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
3845   echo $ac_n "(cached) $ac_c" 1>&6
3846 else
3847   cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850
3851 int main() {
3852 void quux(){asm volatile("vperm 0,1,2,3");}
3853 ; return 0; }
3854 EOF
3855 if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3856   rm -rf conftest*
3857   ac_cv_altivec_inline=yes
3858 else
3859   echo "configure: failed program was:" >&5
3860   cat conftest.$ac_ext >&5
3861   rm -rf conftest*
3862   save_CFLAGS=$CFLAGS
3863           CFLAGS="$CFLAGS -Wa,-m7400"
3864           cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867
3868 int main() {
3869 void quux(){asm volatile("vperm 0,1,2,3");}
3870 ; return 0; }
3871 EOF
3872 if { (eval echo configure:3873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3873   rm -rf conftest*
3874   ac_cv_altivec_inline=yes; CFLAGS_ALTIVEC="-Wa,-m7400"
3875 else
3876   echo "configure: failed program was:" >&5
3877   cat conftest.$ac_ext >&5
3878   rm -rf conftest*
3879   ac_cv_altivec_inline=no
3880 fi
3881 rm -f conftest*
3882           CFLAGS=$save_CFLAGS
3883          
3884 fi
3885 rm -f conftest*
3886 fi
3887
3888 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
3889 if test x"$ac_cv_altivec_inline" != x"no"; then
3890   cat >> confdefs.h <<\EOF
3891 #define HAVE_ALTIVEC 1
3892 EOF
3893
3894   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
3895 fi
3896
3897 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
3898 echo "configure:3899: checking if \$CC groks Altivec C extensions" >&5
3899 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
3900   echo $ac_n "(cached) $ac_c" 1>&6
3901 else
3902   save_CFLAGS=$CFLAGS
3903      CFLAGS="$CFLAGS -faltivec"
3904      # Darwin test
3905      cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908
3909 int main() {
3910 void quux(){vec_mtvscr((vector unsigned int)(0));}
3911 ; return 0; }
3912 EOF
3913 if { (eval echo configure:3914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3914   rm -rf conftest*
3915   ac_cv_c_altivec=-faltivec
3916 else
3917   echo "configure: failed program was:" >&5
3918   cat conftest.$ac_ext >&5
3919   rm -rf conftest*
3920   
3921         # Linux/PPC test
3922         CFLAGS="$save_CFLAGS $CFLAGS_ALTIVEC -fvec"
3923         cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926
3927 int main() {
3928 void quux(){vec_mtvscr((vector unsigned int)(0));}
3929 ; return 0; }
3930 EOF
3931 if { (eval echo configure:3932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3932   rm -rf conftest*
3933   ac_cv_c_altivec="-fvec"
3934 else
3935   echo "configure: failed program was:" >&5
3936   cat conftest.$ac_ext >&5
3937   rm -rf conftest*
3938   ac_cv_c_altivec=no
3939 fi
3940 rm -f conftest*
3941         
3942 fi
3943 rm -f conftest*
3944      CFLAGS=$save_CFLAGS
3945     
3946 fi
3947
3948 echo "$ac_t""$ac_cv_c_altivec" 1>&6
3949 if test x"$ac_cv_c_altivec" != x"no"; then
3950   cat >> confdefs.h <<\EOF
3951 #define HAVE_C_ALTIVEC 1
3952 EOF
3953
3954   CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec"
3955 fi
3956
3957 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
3958 echo "configure:3959: checking if linker needs -framework vecLib" >&5
3959 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
3960   echo $ac_n "(cached) $ac_c" 1>&6
3961 else
3962   save_LDFLAGS=$LDFLAGS
3963      LDFLAGS="$LDFLAGS -framework vecLib"
3964      cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3967
3968 int main() {
3969
3970 ; return 0; }
3971 EOF
3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3973   rm -rf conftest*
3974   ac_cv_ld_altivec=yes
3975 else
3976   echo "configure: failed program was:" >&5
3977   cat conftest.$ac_ext >&5
3978   rm -rf conftest*
3979   ac_cv_ld_altivec=no
3980 fi
3981 rm -f conftest*
3982      LDFLAGS=$save_LDFLAGS
3983     
3984 fi
3985
3986 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
3987 if test x"$ac_cv_ld_altivec" != x"no"; then
3988   LIB_ALTIVEC="-framework vecLib"
3989 fi
3990
3991
3992 CAN_BUILD_LIBDVDCSS=0
3993
3994 for ac_hdr in winioctl.h
3995 do
3996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3998 echo "configure:3999: checking for $ac_hdr" >&5
3999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4000   echo $ac_n "(cached) $ac_c" 1>&6
4001 else
4002   cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4005 #include <$ac_hdr>
4006 EOF
4007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4008 { (eval echo configure:4009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4010 if test -z "$ac_err"; then
4011   rm -rf conftest*
4012   eval "ac_cv_header_$ac_safe=yes"
4013 else
4014   echo "$ac_err" >&5
4015   echo "configure: failed program was:" >&5
4016   cat conftest.$ac_ext >&5
4017   rm -rf conftest*
4018   eval "ac_cv_header_$ac_safe=no"
4019 fi
4020 rm -f conftest*
4021 fi
4022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4023   echo "$ac_t""yes" 1>&6
4024     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4025   cat >> confdefs.h <<EOF
4026 #define $ac_tr_hdr 1
4027 EOF
4028  
4029   CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4030
4031 else
4032   echo "$ac_t""no" 1>&6
4033 fi
4034 done
4035
4036
4037 for ac_hdr in sys/ioctl.h
4038 do
4039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4041 echo "configure:4042: checking for $ac_hdr" >&5
4042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4043   echo $ac_n "(cached) $ac_c" 1>&6
4044 else
4045   cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 #include <$ac_hdr>
4049 EOF
4050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4051 { (eval echo configure:4052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4053 if test -z "$ac_err"; then
4054   rm -rf conftest*
4055   eval "ac_cv_header_$ac_safe=yes"
4056 else
4057   echo "$ac_err" >&5
4058   echo "configure: failed program was:" >&5
4059   cat conftest.$ac_ext >&5
4060   rm -rf conftest*
4061   eval "ac_cv_header_$ac_safe=no"
4062 fi
4063 rm -f conftest*
4064 fi
4065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4066   echo "$ac_t""yes" 1>&6
4067     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4068   cat >> confdefs.h <<EOF
4069 #define $ac_tr_hdr 1
4070 EOF
4071  
4072   CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4073   for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
4074 do
4075 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4077 echo "configure:4078: checking for $ac_hdr" >&5
4078 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4079   echo $ac_n "(cached) $ac_c" 1>&6
4080 else
4081   cat > conftest.$ac_ext <<EOF
4082 #line 4083 "configure"
4083 #include "confdefs.h"
4084 #include <$ac_hdr>
4085 EOF
4086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4087 { (eval echo configure:4088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4089 if test -z "$ac_err"; then
4090   rm -rf conftest*
4091   eval "ac_cv_header_$ac_safe=yes"
4092 else
4093   echo "$ac_err" >&5
4094   echo "configure: failed program was:" >&5
4095   cat conftest.$ac_ext >&5
4096   rm -rf conftest*
4097   eval "ac_cv_header_$ac_safe=no"
4098 fi
4099 rm -f conftest*
4100 fi
4101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4102   echo "$ac_t""yes" 1>&6
4103     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4104   cat >> confdefs.h <<EOF
4105 #define $ac_tr_hdr 1
4106 EOF
4107  
4108 else
4109   echo "$ac_t""no" 1>&6
4110 fi
4111 done
4112
4113   BSD_DVD_STRUCT=0
4114   LINUX_DVD_STRUCT=0
4115   OPENBSD_DVD_STRUCT=0
4116         cat > conftest.$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4119 #include <sys/cdio.h>
4120 EOF
4121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4122   egrep "dvd_struct" >/dev/null 2>&1; then
4123   rm -rf conftest*
4124   
4125     cat >> confdefs.h <<\EOF
4126 #define DVD_STRUCT_IN_SYS_CDIO_H 1
4127 EOF
4128
4129     cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 #include <sys/cdio.h>
4133 EOF
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135   egrep "struct dvd_struct" >/dev/null 2>&1; then
4136   rm -rf conftest*
4137   
4138                     BSD_DVD_STRUCT=1
4139 else
4140   rm -rf conftest*
4141   LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
4142 fi
4143 rm -f conftest*
4144
4145   
4146 fi
4147 rm -f conftest*
4148
4149         cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152 #include <sys/dvdio.h>
4153 EOF
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155   egrep "dvd_struct" >/dev/null 2>&1; then
4156   rm -rf conftest*
4157   
4158     cat >> confdefs.h <<\EOF
4159 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
4160 EOF
4161
4162     cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 #include <sys/dvdio.h>
4166 EOF
4167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4168   egrep "struct dvd_struct" >/dev/null 2>&1; then
4169   rm -rf conftest*
4170   
4171                     BSD_DVD_STRUCT=1
4172 else
4173   rm -rf conftest*
4174   LINUX_DVD_STRUCT=1
4175 fi
4176 rm -f conftest*
4177
4178   
4179 fi
4180 rm -f conftest*
4181
4182         cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 #include <linux/cdrom.h>
4186 EOF
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188   egrep "dvd_struct" >/dev/null 2>&1; then
4189   rm -rf conftest*
4190   
4191     cat >> confdefs.h <<\EOF
4192 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
4193 EOF
4194
4195     LINUX_DVD_STRUCT=1
4196   
4197 fi
4198 rm -f conftest*
4199
4200         NEED_BSDI_LIBDVD=0
4201   cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4204 #include <dvd.h>
4205 EOF
4206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4207   egrep "dvd_struct" >/dev/null 2>&1; then
4208   rm -rf conftest*
4209   
4210     cat >> confdefs.h <<\EOF
4211 #define DVD_STRUCT_IN_DVD_H 1
4212 EOF
4213
4214     LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
4215     LINUX_DVD_STRUCT=1
4216   
4217 else
4218   rm -rf conftest*
4219   
4220                 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
4221 do
4222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4224 echo "configure:4225: checking for $ac_hdr" >&5
4225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4226   echo $ac_n "(cached) $ac_c" 1>&6
4227 else
4228   cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 #include <$ac_hdr>
4232 EOF
4233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4234 { (eval echo configure:4235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4236 if test -z "$ac_err"; then
4237   rm -rf conftest*
4238   eval "ac_cv_header_$ac_safe=yes"
4239 else
4240   echo "$ac_err" >&5
4241   echo "configure: failed program was:" >&5
4242   cat conftest.$ac_ext >&5
4243   rm -rf conftest*
4244   eval "ac_cv_header_$ac_safe=no"
4245 fi
4246 rm -f conftest*
4247 fi
4248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4249   echo "$ac_t""yes" 1>&6
4250     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4251   cat >> confdefs.h <<EOF
4252 #define $ac_tr_hdr 1
4253 EOF
4254  
4255       NEED_BSDI_LIBDVD=1
4256       cat >> confdefs.h <<\EOF
4257 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
4258 EOF
4259
4260       OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
4261       LINUX_DVD_STRUCT=1
4262     
4263 else
4264   echo "$ac_t""no" 1>&6
4265 fi
4266 done
4267
4268   
4269 fi
4270 rm -f conftest*
4271
4272         ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
4273 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
4274 echo "configure:4275: checking for sys/scsi/scsi_types.h" >&5
4275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4276   echo $ac_n "(cached) $ac_c" 1>&6
4277 else
4278   cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 #include <sys/scsi/scsi_types.h>
4282 EOF
4283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4284 { (eval echo configure:4285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4286 if test -z "$ac_err"; then
4287   rm -rf conftest*
4288   eval "ac_cv_header_$ac_safe=yes"
4289 else
4290   echo "$ac_err" >&5
4291   echo "configure: failed program was:" >&5
4292   cat conftest.$ac_ext >&5
4293   rm -rf conftest*
4294   eval "ac_cv_header_$ac_safe=no"
4295 fi
4296 rm -f conftest*
4297 fi
4298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4299   echo "$ac_t""yes" 1>&6
4300   
4301     ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
4302 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
4303 echo "configure:4304: checking for sys/scsi/impl/uscsi.h" >&5
4304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4305   echo $ac_n "(cached) $ac_c" 1>&6
4306 else
4307   cat > conftest.$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4310 #include <sys/scsi/impl/uscsi.h>
4311 EOF
4312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4313 { (eval echo configure:4314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4315 if test -z "$ac_err"; then
4316   rm -rf conftest*
4317   eval "ac_cv_header_$ac_safe=yes"
4318 else
4319   echo "$ac_err" >&5
4320   echo "configure: failed program was:" >&5
4321   cat conftest.$ac_ext >&5
4322   rm -rf conftest*
4323   eval "ac_cv_header_$ac_safe=no"
4324 fi
4325 rm -f conftest*
4326 fi
4327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4328   echo "$ac_t""yes" 1>&6
4329   
4330       cat >> confdefs.h <<\EOF
4331 #define SOLARIS_USCSI 1
4332 EOF
4333
4334     
4335 else
4336   echo "$ac_t""no" 1>&6
4337 fi
4338
4339   
4340 else
4341   echo "$ac_t""no" 1>&6
4342 fi
4343
4344         if test x$LINUX_DVD_STRUCT = x1; then
4345     cat >> confdefs.h <<\EOF
4346 #define HAVE_LINUX_DVD_STRUCT 1
4347 EOF
4348
4349     if test x$OPENBSD_DVD_STRUCT = x1; then
4350       cat >> confdefs.h <<\EOF
4351 #define HAVE_OPENBSD_DVD_STRUCT 1
4352 EOF
4353
4354     fi
4355   else
4356     if test x$BSD_DVD_STRUCT = x1; then
4357       cat >> confdefs.h <<\EOF
4358 #define HAVE_BSD_DVD_STRUCT 1
4359 EOF
4360
4361     fi
4362   fi
4363
4364 else
4365   echo "$ac_t""no" 1>&6
4366 fi
4367 done
4368
4369
4370
4371 case ${target_os} in
4372   bsdi*)
4373     SYS=bsdi
4374     ;;
4375   darwin*)
4376     SYS=darwin
4377     ;;
4378   *)
4379     SYS=${target_os}
4380     ;;
4381 esac
4382
4383 # Check whether --with-tuning or --without-tuning was given.
4384 if test "${with_tuning+set}" = set; then
4385   withval="$with_tuning"
4386   :
4387 fi
4388
4389 if test "x$withval" != "x"; then
4390     TUNING=$withval
4391 else
4392     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
4393     else
4394         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
4395     fi
4396 fi
4397
4398 # Check whether --enable-release or --disable-release was given.
4399 if test "${enable_release+set}" = set; then
4400   enableval="$enable_release"
4401    if test x$enableval = xyes; then RELEASE=1; fi 
4402 else
4403    VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
4404   LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`"; 
4405 fi
4406
4407
4408 # Check whether --enable-mmx or --disable-mmx was given.
4409 if test "${enable_mmx+set}" = set; then
4410   enableval="$enable_mmx"
4411    if test x$enableval = xyes; then ARCH="${ARCH} mmx";
4412     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
4413 else
4414    if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386; then ARCH="${ARCH} mmx";
4415     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
4416 fi
4417
4418
4419 # Check whether --enable-altivec or --disable-altivec was given.
4420 if test "${enable_altivec+set}" = set; then
4421   enableval="$enable_altivec"
4422    if test x$enableval = xyes; then ARCH="${ARCH} altivec";
4423     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
4424 else
4425    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
4426     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
4427 fi
4428
4429
4430 DEBUG=0
4431 # Check whether --enable-debug or --disable-debug was given.
4432 if test "${enable_debug+set}" = set; then
4433   enableval="$enable_debug"
4434    if test x$enableval = xyes; then DEBUG=1; fi 
4435 fi
4436
4437
4438 TRACE=0
4439 # Check whether --enable-trace or --disable-trace was given.
4440 if test "${enable_trace+set}" = set; then
4441   enableval="$enable_trace"
4442    if test x$enableval = xyes; then TRACE=1; fi 
4443 fi
4444
4445
4446 GPROF=0
4447 # Check whether --enable-gprof or --disable-gprof was given.
4448 if test "${enable_gprof+set}" = set; then
4449   enableval="$enable_gprof"
4450    if test x$enableval = xyes; then GPROF=1; fi 
4451 fi
4452
4453
4454 CPROF=0
4455 # Check whether --enable-cprof or --disable-cprof was given.
4456 if test "${enable_cprof+set}" = set; then
4457   enableval="$enable_cprof"
4458    if test x$enableval = xyes;
4459   then
4460     LIB="${LIB} -lcprof"
4461     CPROF=1
4462   fi
4463
4464 fi
4465
4466
4467 # Check whether --enable-optimizations or --disable-optimizations was given.
4468 if test "${enable_optimizations+set}" = set; then
4469   enableval="$enable_optimizations"
4470    if test x$enableval = xno; then OPTIMS=0; fi 
4471 else
4472    OPTIMS=1 
4473 fi
4474
4475
4476 # Check whether --enable-pth or --disable-pth was given.
4477 if test "${enable_pth+set}" = set; then
4478   enableval="$enable_pth"
4479    if test x$enableval = xyes; then
4480     echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
4481 echo "configure:4482: checking for pth_init in -lpth" >&5
4482 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
4483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4484   echo $ac_n "(cached) $ac_c" 1>&6
4485 else
4486   ac_save_LIBS="$LIBS"
4487 LIBS="-lpth  $LIBS"
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4491 /* Override any gcc2 internal prototype to avoid an error.  */
4492 /* We use char because int might match the return type of a gcc2
4493     builtin and then its argument prototype would still apply.  */
4494 char pth_init();
4495
4496 int main() {
4497 pth_init()
4498 ; return 0; }
4499 EOF
4500 if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501   rm -rf conftest*
4502   eval "ac_cv_lib_$ac_lib_var=yes"
4503 else
4504   echo "configure: failed program was:" >&5
4505   cat conftest.$ac_ext >&5
4506   rm -rf conftest*
4507   eval "ac_cv_lib_$ac_lib_var=no"
4508 fi
4509 rm -f conftest*
4510 LIBS="$ac_save_LIBS"
4511
4512 fi
4513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4514   echo "$ac_t""yes" 1>&6
4515     ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4516     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4517   cat >> confdefs.h <<EOF
4518 #define $ac_tr_lib 1
4519 EOF
4520
4521   LIBS="-lpth $LIBS"
4522
4523 else
4524   echo "$ac_t""no" 1>&6
4525 fi
4526
4527     cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4530 #include <pth.h>
4531 EOF
4532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533   egrep "pth_init" >/dev/null 2>&1; then
4534   rm -rf conftest*
4535   
4536       cat >> confdefs.h <<\EOF
4537 #define PTH_INIT_IN_PTH_H 1
4538 EOF
4539
4540     THREAD_LIB="-lpth"
4541     fi
4542 fi
4543 rm -f conftest*
4544
4545
4546 fi
4547
4548
4549 LIB="${LIB} ${THREAD_LIB}"
4550
4551 NEED_LIBDVDCSS=0
4552 STATIC_LIBDVDCSS=0
4553 DUMMY_LIBDVDCSS=0
4554 # Check whether --with-dvdcss or --without-dvdcss was given.
4555 if test "${with_dvdcss+set}" = set; then
4556   withval="$with_dvdcss"
4557    case "x${withval}" in
4558     xlocal-static|xyes)
4559       # local libdvdcss, statically linked
4560       if test x${CAN_BUILD_LIBDVDCSS} = x1
4561       then
4562         NEED_LIBDVDCSS=1
4563         STATIC_LIBDVDCSS=1
4564         BUILTINS="${BUILTINS} dvd"
4565         CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4566         LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4567         LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4568       fi
4569     ;;
4570     xlocal-shared)
4571       # local libdvdcss, dynamically linked
4572       if test x${CAN_BUILD_LIBDVDCSS} = x1
4573       then
4574         NEED_LIBDVDCSS=1
4575         BUILTINS="${BUILTINS} dvd"
4576         CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4577         LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
4578         LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
4579       fi
4580     ;;
4581     xno)
4582       # don't use libdvdcss at all, build a DVD module that can dlopen() it
4583       DUMMY_LIBDVDCSS=1
4584       BUILTINS="${BUILTINS} dvd"
4585       OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4586       CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4587       CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
4588       LIB_DVD="${LIB_DVD} -ldl"
4589       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4590     ;;
4591     *)
4592       # existing libdvdcss
4593       BUILTINS="${BUILTINS} dvd"
4594       if test "x$withval" != "xyes"
4595       then
4596         LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
4597         CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
4598       fi
4599       LIB_DVD="${LIB_DVD} -ldvdcss"
4600       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
4601     esac 
4602 else
4603   # user didn't decide, we choose to use local libdvdcss and link statically
4604   # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
4605    if test x${CAN_BUILD_LIBDVDCSS} = x1
4606     then
4607       NEED_LIBDVDCSS=1
4608       STATIC_LIBDVDCSS=1
4609       BUILTINS="${BUILTINS} dvd"
4610       CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4611       LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4612       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4613     else
4614       # XXX: no check for libdl is done, don't try this at home !
4615       DUMMY_LIBDVDCSS=1
4616       BUILTINS="${BUILTINS} dvd"
4617       OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4618       CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4619       LIB_DVD="${LIB_DVD} -ldl"
4620       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4621     fi 
4622 fi
4623
4624
4625 # Check whether --enable-vcd or --disable-vcd was given.
4626 if test "${enable_vcd+set}" = set; then
4627   enableval="$enable_vcd"
4628   :
4629 fi
4630
4631
4632 if test x$enable_vcd != xno
4633 then
4634   cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4637 #include <linux/cdrom.h>
4638 EOF
4639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4640   egrep "cdrom_msf0" >/dev/null 2>&1; then
4641   rm -rf conftest*
4642   
4643     BUILTINS="${BUILTINS} vcd"
4644   
4645 fi
4646 rm -f conftest*
4647
4648 fi
4649
4650 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
4651 then
4652   BUILTINS="${BUILTINS} vcd"
4653 fi
4654
4655 # Check whether --enable-dummy or --disable-dummy was given.
4656 if test "${enable_dummy+set}" = set; then
4657   enableval="$enable_dummy"
4658   :
4659 fi
4660
4661
4662 if test x$enable_dummy != xno
4663 then
4664   BUILTINS="${BUILTINS} dummy"
4665 fi
4666
4667 # Check whether --enable-null or --disable-null was given.
4668 if test "${enable_null+set}" = set; then
4669   enableval="$enable_null"
4670   :
4671 fi
4672
4673
4674 if test x$enable_null != xno
4675 then
4676   BUILTINS="${BUILTINS} null"
4677 fi
4678
4679 # Check whether --enable-rc or --disable-rc was given.
4680 if test "${enable_rc+set}" = set; then
4681   enableval="$enable_rc"
4682   :
4683 fi
4684
4685
4686 if test x$enable_rc != xno
4687 then
4688   BUILTINS="${BUILTINS} rc"
4689 fi
4690
4691 if test x$SYS = xbeos
4692 then
4693     BUILTINS="${BUILTINS} beos"
4694     LIB_BEOS="-lbe -lgame -lroot -ltracker"
4695     PLCFLAGS="${PLCFLAGS} -nostart"
4696
4697 else
4698
4699 # Check whether --enable-dsp or --disable-dsp was given.
4700 if test "${enable_dsp+set}" = set; then
4701   enableval="$enable_dsp"
4702   :
4703 fi
4704
4705
4706 if test x$enable_dsp != xno
4707 then
4708   if test -c /dev/dsp
4709   then
4710     PLUGINS="${PLUGINS} dsp"
4711   fi
4712 fi
4713
4714 # Check whether --enable-esd or --disable-esd was given.
4715 if test "${enable_esd+set}" = set; then
4716   enableval="$enable_esd"
4717   if test x$enable_esd = xyes
4718    then
4719      # Extract the first word of "esd-config", so it can be a program name with args.
4720 set dummy esd-config; ac_word=$2
4721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4722 echo "configure:4723: checking for $ac_word" >&5
4723 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
4724   echo $ac_n "(cached) $ac_c" 1>&6
4725 else
4726   case "$ESD_CONFIG" in
4727   /*)
4728   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
4729   ;;
4730   ?:/*)                  
4731   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
4732   ;;
4733   *)
4734   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4735   ac_dummy="$PATH"
4736   for ac_dir in $ac_dummy; do 
4737     test -z "$ac_dir" && ac_dir=.
4738     if test -f $ac_dir/$ac_word; then
4739       ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
4740       break
4741     fi
4742   done
4743   IFS="$ac_save_ifs"
4744   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
4745   ;;
4746 esac
4747 fi
4748 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
4749 if test -n "$ESD_CONFIG"; then
4750   echo "$ac_t""$ESD_CONFIG" 1>&6
4751 else
4752   echo "$ac_t""no" 1>&6
4753 fi
4754
4755      if test x${ESD_CONFIG} != xno
4756      then
4757        PLUGINS="${PLUGINS} esd"
4758        LIB_ESD="`${ESD_CONFIG} --libs`"
4759      fi
4760    fi
4761 fi
4762
4763
4764 # Check whether --enable-darwin or --disable-darwin was given.
4765 if test "${enable_darwin+set}" = set; then
4766   enableval="$enable_darwin"
4767   if test x$enable_darwin = xyes; then
4768      PLUGINS="${PLUGINS} darwin"
4769      LIB_DARWIN="-framework CoreAudio"
4770    fi
4771 fi
4772
4773
4774 # Check whether --enable-macosx or --disable-macosx was given.
4775 if test "${enable_macosx+set}" = set; then
4776   enableval="$enable_macosx"
4777   if test x$enable_macosx = xyes
4778    then
4779      BUILTINS="${BUILTINS} macosx"
4780      LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
4781      LIB="${LIB} -ObjC"
4782    fi
4783 else
4784   for ac_hdr in Cocoa/Cocoa.h
4785 do
4786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_hdr" >&5
4789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4790   echo $ac_n "(cached) $ac_c" 1>&6
4791 else
4792   cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 #include <$ac_hdr>
4796 EOF
4797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4798 { (eval echo configure:4799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4800 if test -z "$ac_err"; then
4801   rm -rf conftest*
4802   eval "ac_cv_header_$ac_safe=yes"
4803 else
4804   echo "$ac_err" >&5
4805   echo "configure: failed program was:" >&5
4806   cat conftest.$ac_ext >&5
4807   rm -rf conftest*
4808   eval "ac_cv_header_$ac_safe=no"
4809 fi
4810 rm -f conftest*
4811 fi
4812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4813   echo "$ac_t""yes" 1>&6
4814     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4815   cat >> confdefs.h <<EOF
4816 #define $ac_tr_hdr 1
4817 EOF
4818  BUILTINS="${BUILTINS} macosx"
4819      LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
4820      LIB="${LIB} -ObjC"
4821    
4822 else
4823   echo "$ac_t""no" 1>&6
4824 fi
4825 done
4826
4827 fi
4828
4829
4830 # Check whether --enable-qnx or --disable-qnx was given.
4831 if test "${enable_qnx+set}" = set; then
4832   enableval="$enable_qnx"
4833   :
4834 fi
4835
4836     if test x$enable_qnx != xno
4837     then
4838       for ac_hdr in Ph.h
4839 do
4840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4842 echo "configure:4843: checking for $ac_hdr" >&5
4843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4844   echo $ac_n "(cached) $ac_c" 1>&6
4845 else
4846   cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4849 #include <$ac_hdr>
4850 EOF
4851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4852 { (eval echo configure:4853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4854 if test -z "$ac_err"; then
4855   rm -rf conftest*
4856   eval "ac_cv_header_$ac_safe=yes"
4857 else
4858   echo "$ac_err" >&5
4859   echo "configure: failed program was:" >&5
4860   cat conftest.$ac_ext >&5
4861   rm -rf conftest*
4862   eval "ac_cv_header_$ac_safe=no"
4863 fi
4864 rm -f conftest*
4865 fi
4866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4867   echo "$ac_t""yes" 1>&6
4868     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4869   cat >> confdefs.h <<EOF
4870 #define $ac_tr_hdr 1
4871 EOF
4872  
4873         PLUGINS="${PLUGINS} qnx"
4874         LIB_QNX="-lasound -lph"
4875       
4876 else
4877   echo "$ac_t""no" 1>&6
4878 fi
4879 done
4880
4881     fi
4882
4883 # Check whether --enable-fb or --disable-fb was given.
4884 if test "${enable_fb+set}" = set; then
4885   enableval="$enable_fb"
4886    if test x$enable_fb = xyes
4887     then
4888       PLUGINS="${PLUGINS} fb"
4889     fi 
4890 fi
4891
4892
4893 # Check whether --with-ggi or --without-ggi was given.
4894 if test "${with_ggi+set}" = set; then
4895   withval="$with_ggi"
4896    if test "x$withval" != "xno"
4897     then
4898       PLUGINS="${PLUGINS} ggi"
4899       if test "x$withval" != "xyes"
4900       then
4901         LIB_GGI="-l"$withval
4902       else
4903         LIB_GGI="-lggi"
4904       fi
4905     fi 
4906 fi
4907
4908
4909 # Check whether --enable-sdl or --disable-sdl was given.
4910 if test "${enable_sdl+set}" = set; then
4911   enableval="$enable_sdl"
4912   :
4913 fi
4914
4915 if test "x$enable_sdl" != "xno"
4916 then
4917   SDL_PATH=$PATH
4918   # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
4919 if test "${with_sdl_config_path+set}" = set; then
4920   withval="$with_sdl_config_path"
4921    if test "x$withval" != "xno"
4922       then
4923         SDL_PATH=$withval:$PATH
4924       fi 
4925 fi
4926
4927   # Extract the first word of "sdl12-config", so it can be a program name with args.
4928 set dummy sdl12-config; ac_word=$2
4929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4930 echo "configure:4931: checking for $ac_word" >&5
4931 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
4932   echo $ac_n "(cached) $ac_c" 1>&6
4933 else
4934   case "$SDL12_CONFIG" in
4935   /*)
4936   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
4937   ;;
4938   ?:/*)                  
4939   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
4940   ;;
4941   *)
4942   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4943   ac_dummy="$SDL_PATH"
4944   for ac_dir in $ac_dummy; do 
4945     test -z "$ac_dir" && ac_dir=.
4946     if test -f $ac_dir/$ac_word; then
4947       ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
4948       break
4949     fi
4950   done
4951   IFS="$ac_save_ifs"
4952   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
4953   ;;
4954 esac
4955 fi
4956 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
4957 if test -n "$SDL12_CONFIG"; then
4958   echo "$ac_t""$SDL12_CONFIG" 1>&6
4959 else
4960   echo "$ac_t""no" 1>&6
4961 fi
4962
4963   SDL_CONFIG=${SDL12_CONFIG}
4964   SDL_HEADER="SDL12/SDL.h"
4965   if test x${SDL_CONFIG} = xno
4966   then
4967     # Extract the first word of "sdl11-config", so it can be a program name with args.
4968 set dummy sdl11-config; ac_word=$2
4969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4970 echo "configure:4971: checking for $ac_word" >&5
4971 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
4972   echo $ac_n "(cached) $ac_c" 1>&6
4973 else
4974   case "$SDL11_CONFIG" in
4975   /*)
4976   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
4977   ;;
4978   ?:/*)                  
4979   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
4980   ;;
4981   *)
4982   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4983   ac_dummy="$SDL_PATH"
4984   for ac_dir in $ac_dummy; do 
4985     test -z "$ac_dir" && ac_dir=.
4986     if test -f $ac_dir/$ac_word; then
4987       ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
4988       break
4989     fi
4990   done
4991   IFS="$ac_save_ifs"
4992   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
4993   ;;
4994 esac
4995 fi
4996 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
4997 if test -n "$SDL11_CONFIG"; then
4998   echo "$ac_t""$SDL11_CONFIG" 1>&6
4999 else
5000   echo "$ac_t""no" 1>&6
5001 fi
5002
5003     SDL_CONFIG=${SDL11_CONFIG}
5004     SDL_HEADER="SDL11/SDL.h"
5005   fi
5006   if test x${SDL_CONFIG} = xno
5007   then
5008     # Extract the first word of "sdl-config", so it can be a program name with args.
5009 set dummy sdl-config; ac_word=$2
5010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5011 echo "configure:5012: checking for $ac_word" >&5
5012 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
5013   echo $ac_n "(cached) $ac_c" 1>&6
5014 else
5015   case "$SDL_CONFIG" in
5016   /*)
5017   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
5018   ;;
5019   ?:/*)                  
5020   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
5021   ;;
5022   *)
5023   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5024   ac_dummy="$SDL_PATH"
5025   for ac_dir in $ac_dummy; do 
5026     test -z "$ac_dir" && ac_dir=.
5027     if test -f $ac_dir/$ac_word; then
5028       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
5029       break
5030     fi
5031   done
5032   IFS="$ac_save_ifs"
5033   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
5034   ;;
5035 esac
5036 fi
5037 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
5038 if test -n "$SDL_CONFIG"; then
5039   echo "$ac_t""$SDL_CONFIG" 1>&6
5040 else
5041   echo "$ac_t""no" 1>&6
5042 fi
5043
5044     SDL_HEADER="SDL/SDL.h"
5045   fi
5046   if test x${SDL_CONFIG} != xno
5047   then
5048     PLUGINS="${PLUGINS} sdl"
5049     CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
5050     LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
5051     save_CPPFLAGS=$CPPFLAGS
5052     CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
5053     for ac_hdr in ${SDL_HEADER}
5054 do
5055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5057 echo "configure:5058: checking for $ac_hdr" >&5
5058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5059   echo $ac_n "(cached) $ac_c" 1>&6
5060 else
5061   cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5064 #include <$ac_hdr>
5065 EOF
5066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5067 { (eval echo configure:5068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5069 if test -z "$ac_err"; then
5070   rm -rf conftest*
5071   eval "ac_cv_header_$ac_safe=yes"
5072 else
5073   echo "$ac_err" >&5
5074   echo "configure: failed program was:" >&5
5075   cat conftest.$ac_ext >&5
5076   rm -rf conftest*
5077   eval "ac_cv_header_$ac_safe=no"
5078 fi
5079 rm -f conftest*
5080 fi
5081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5082   echo "$ac_t""yes" 1>&6
5083     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5084   cat >> confdefs.h <<EOF
5085 #define $ac_tr_hdr 1
5086 EOF
5087  cat >> confdefs.h <<EOF
5088 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
5089 EOF
5090
5091 else
5092   echo "$ac_t""no" 1>&6
5093 { echo "configure: error: The development package for SDL is not installed. 
5094 Please install it and try again. Alternatively you can also configure with 
5095 --disable-sdl." 1>&2; exit 1; }
5096       
5097 fi
5098 done
5099
5100     CPPFLAGS=$save_CPPFLAGS
5101     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
5102     then
5103       { echo "configure: error: The development package for SDL is not installed.
5104 Please install it and try again. Alternatively you can also configure with
5105 --disable-sdl." 1>&2; exit 1; }
5106     fi
5107   elif test "x$enable_sdl" =  "xyes"
5108   then
5109     { echo "configure: error: I couldn't find the SDL package. You can download libSDL
5110 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
5111     " 1>&2; exit 1; }
5112   fi
5113 fi
5114
5115 # Check whether --with-directx or --without-directx was given.
5116 if test "${with_directx+set}" = set; then
5117   withval="$with_directx"
5118    if test "x$withval" != "xno"
5119     then
5120       PLUGINS="${PLUGINS} directx"
5121       if test "x$withval" != "xyes"
5122       then
5123         LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
5124         INCLUDE="${INCLUDE} -I"$withval"/include"
5125       else
5126         for ac_hdr in directx.h
5127 do
5128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5130 echo "configure:5131: checking for $ac_hdr" >&5
5131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5132   echo $ac_n "(cached) $ac_c" 1>&6
5133 else
5134   cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5137 #include <$ac_hdr>
5138 EOF
5139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5140 { (eval echo configure:5141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5142 if test -z "$ac_err"; then
5143   rm -rf conftest*
5144   eval "ac_cv_header_$ac_safe=yes"
5145 else
5146   echo "$ac_err" >&5
5147   echo "configure: failed program was:" >&5
5148   cat conftest.$ac_ext >&5
5149   rm -rf conftest*
5150   eval "ac_cv_header_$ac_safe=no"
5151 fi
5152 rm -f conftest*
5153 fi
5154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5155   echo "$ac_t""yes" 1>&6
5156     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5157   cat >> confdefs.h <<EOF
5158 #define $ac_tr_hdr 1
5159 EOF
5160  
5161 else
5162   echo "$ac_t""no" 1>&6
5163 { echo "configure: error: Cannot find DirectX headers !" 1>&2; exit 1; }
5164         
5165 fi
5166 done
5167
5168         LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5169       fi
5170     fi 
5171 fi
5172
5173     if test "x$withval" = "x"
5174     then
5175       for ac_hdr in directx.h
5176 do
5177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5179 echo "configure:5180: checking for $ac_hdr" >&5
5180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5181   echo $ac_n "(cached) $ac_c" 1>&6
5182 else
5183   cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5186 #include <$ac_hdr>
5187 EOF
5188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5189 { (eval echo configure:5190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5191 if test -z "$ac_err"; then
5192   rm -rf conftest*
5193   eval "ac_cv_header_$ac_safe=yes"
5194 else
5195   echo "$ac_err" >&5
5196   echo "configure: failed program was:" >&5
5197   cat conftest.$ac_ext >&5
5198   rm -rf conftest*
5199   eval "ac_cv_header_$ac_safe=no"
5200 fi
5201 rm -f conftest*
5202 fi
5203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5204   echo "$ac_t""yes" 1>&6
5205     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5206   cat >> confdefs.h <<EOF
5207 #define $ac_tr_hdr 1
5208 EOF
5209  PLUGINS="${PLUGINS} directx"
5210        LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5211 else
5212   echo "$ac_t""no" 1>&6
5213 fi
5214 done
5215
5216     fi
5217
5218 # Check whether --with-glide or --without-glide was given.
5219 if test "${with_glide+set}" = set; then
5220   withval="$with_glide"
5221    if test "x$withval" != "xno"
5222     then
5223       PLUGINS="${PLUGINS} glide"
5224       if test "x$withval" != "xyes"
5225       then
5226         LIB_GLIDE="-l"$withval" -lm"
5227       else
5228         LIB_GLIDE="-lglide2x -lm"
5229       fi
5230     fi 
5231 fi
5232
5233
5234 # Check whether --enable-ncurses or --disable-ncurses was given.
5235 if test "${enable_ncurses+set}" = set; then
5236   enableval="$enable_ncurses"
5237   if test x$enable_ncurses = xyes; then
5238      PLUGINS="${PLUGINS} ncurses"
5239      LIB_NCURSES="-lncurses"
5240    fi
5241 fi
5242
5243
5244 # Check whether --enable-qt or --disable-qt was given.
5245 if test "${enable_qt+set}" = set; then
5246   enableval="$enable_qt"
5247   if test x$enable_qt = xyes; then
5248      PLUGINS="${PLUGINS} qt"
5249      ALIASES="${ALIASES} qvlc"
5250      LIB_QT="-lqt -L${QTDIR}/lib"
5251      if test -x ${QTDIR}/bin/moc
5252      then
5253        MOC=${QTDIR}/bin/moc
5254      else
5255        MOC=moc
5256      fi
5257    fi
5258 fi
5259
5260
5261 # Check whether --enable-kde or --disable-kde was given.
5262 if test "${enable_kde+set}" = set; then
5263   enableval="$enable_kde"
5264   if test x$enable_kde = xyes; then
5265      PLUGINS="${PLUGINS} kde"
5266      ALIASES="${ALIASES} kvlc"
5267      LIB_KDE="-L${KDEDIR}/lib -lkfile"
5268      if test -x ${QTDIR}/bin/moc
5269      then
5270        MOC=${QTDIR}/bin/moc
5271      else
5272        MOC=moc
5273      fi
5274    fi
5275 fi
5276
5277
5278 # Check whether --enable-gnome or --disable-gnome was given.
5279 if test "${enable_gnome+set}" = set; then
5280   enableval="$enable_gnome"
5281   if test x$enable_gnome = xyes; then
5282     # look for gnome-config
5283     # Extract the first word of "gnome-config", so it can be a program name with args.
5284 set dummy gnome-config; ac_word=$2
5285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5286 echo "configure:5287: checking for $ac_word" >&5
5287 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
5288   echo $ac_n "(cached) $ac_c" 1>&6
5289 else
5290   case "$GNOME_CONFIG" in
5291   /*)
5292   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
5293   ;;
5294   ?:/*)                  
5295   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
5296   ;;
5297   *)
5298   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5299   ac_dummy="$PATH"
5300   for ac_dir in $ac_dummy; do 
5301     test -z "$ac_dir" && ac_dir=.
5302     if test -f $ac_dir/$ac_word; then
5303       ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
5304       break
5305     fi
5306   done
5307   IFS="$ac_save_ifs"
5308   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
5309   ;;
5310 esac
5311 fi
5312 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
5313 if test -n "$GNOME_CONFIG"; then
5314   echo "$ac_t""$GNOME_CONFIG" 1>&6
5315 else
5316   echo "$ac_t""no" 1>&6
5317 fi
5318
5319     if test -x ${GNOME_CONFIG}
5320     then
5321        CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gnomeui`"
5322        LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
5323     fi
5324     # now look for the gnome.h header
5325     saved_CPPFLAGS=$CPPFLAGS
5326     CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
5327     for ac_hdr in gnome.h
5328 do
5329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5331 echo "configure:5332: checking for $ac_hdr" >&5
5332 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5333   echo $ac_n "(cached) $ac_c" 1>&6
5334 else
5335   cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 #include <$ac_hdr>
5339 EOF
5340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5341 { (eval echo configure:5342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5343 if test -z "$ac_err"; then
5344   rm -rf conftest*
5345   eval "ac_cv_header_$ac_safe=yes"
5346 else
5347   echo "$ac_err" >&5
5348   echo "configure: failed program was:" >&5
5349   cat conftest.$ac_ext >&5
5350   rm -rf conftest*
5351   eval "ac_cv_header_$ac_safe=no"
5352 fi
5353 rm -f conftest*
5354 fi
5355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5356   echo "$ac_t""yes" 1>&6
5357     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5358   cat >> confdefs.h <<EOF
5359 #define $ac_tr_hdr 1
5360 EOF
5361  
5362       PLUGINS="${PLUGINS} gnome"
5363       ALIASES="${ALIASES} gnome-vlc"
5364      
5365 else
5366   echo "$ac_t""no" 1>&6
5367 { echo "configure: error: Can't find gnome headers. Please install the gnome
5368 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
5369      
5370 fi
5371 done
5372
5373   
5374     CPPFLAGS=$saved_CPPFLAGS
5375   fi
5376 fi
5377
5378
5379 # Check whether --enable-gtk or --disable-gtk was given.
5380 if test "${enable_gtk+set}" = set; then
5381   enableval="$enable_gtk"
5382   :
5383 fi
5384
5385 if test x$enable_gtk != xno
5386 then
5387   # look for gtk-config
5388   # Extract the first word of "gtk-config", so it can be a program name with args.
5389 set dummy gtk-config; ac_word=$2
5390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5391 echo "configure:5392: checking for $ac_word" >&5
5392 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5393   echo $ac_n "(cached) $ac_c" 1>&6
5394 else
5395   case "$GTK_CONFIG" in
5396   /*)
5397   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5398   ;;
5399   ?:/*)                  
5400   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
5401   ;;
5402   *)
5403   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5404   ac_dummy="$PATH"
5405   for ac_dir in $ac_dummy; do 
5406     test -z "$ac_dir" && ac_dir=.
5407     if test -f $ac_dir/$ac_word; then
5408       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5409       break
5410     fi
5411   done
5412   IFS="$ac_save_ifs"
5413   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5414   ;;
5415 esac
5416 fi
5417 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5418 if test -n "$GTK_CONFIG"; then
5419   echo "$ac_t""$GTK_CONFIG" 1>&6
5420 else
5421   echo "$ac_t""no" 1>&6
5422 fi
5423
5424   if test -x ${GTK_CONFIG}
5425   then
5426     CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
5427     LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
5428   fi
5429   # now look for the gtk.h header
5430   saved_CPPFLAGS=$CPPFLAGS
5431   CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
5432   for ac_hdr in gtk/gtk.h
5433 do
5434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5436 echo "configure:5437: checking for $ac_hdr" >&5
5437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5438   echo $ac_n "(cached) $ac_c" 1>&6
5439 else
5440   cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 #include <$ac_hdr>
5444 EOF
5445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5446 { (eval echo configure:5447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5448 if test -z "$ac_err"; then
5449   rm -rf conftest*
5450   eval "ac_cv_header_$ac_safe=yes"
5451 else
5452   echo "$ac_err" >&5
5453   echo "configure: failed program was:" >&5
5454   cat conftest.$ac_ext >&5
5455   rm -rf conftest*
5456   eval "ac_cv_header_$ac_safe=no"
5457 fi
5458 rm -f conftest*
5459 fi
5460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5461   echo "$ac_t""yes" 1>&6
5462     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5463   cat >> confdefs.h <<EOF
5464 #define $ac_tr_hdr 1
5465 EOF
5466  
5467     PLUGINS="${PLUGINS} gtk"
5468     ALIASES="${ALIASES} gvlc"
5469   
5470 else
5471   echo "$ac_t""no" 1>&6
5472 fi
5473 done
5474
5475   CPPFLAGS=$saved_CPPFLAGS
5476 fi
5477
5478 # Check whether --enable-x11 or --disable-x11 was given.
5479 if test "${enable_x11+set}" = set; then
5480   enableval="$enable_x11"
5481   :
5482 fi
5483
5484 if test x$enable_x11 != xno; then
5485   if test x$x_includes = xNONE; then
5486     x_includes=/usr/X11R6/include
5487   fi
5488   if test x$x_libraries = xNONE; then
5489     x_libraries=/usr/X11R6/lib
5490   fi
5491   saved_CPPFLAGS=$CPPFLAGS
5492   CPPFLAGS="$CPPFLAGS -I$x_includes"
5493   for ac_hdr in X11/Xlib.h
5494 do
5495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5497 echo "configure:5498: checking for $ac_hdr" >&5
5498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5499   echo $ac_n "(cached) $ac_c" 1>&6
5500 else
5501   cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure"
5503 #include "confdefs.h"
5504 #include <$ac_hdr>
5505 EOF
5506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5507 { (eval echo configure:5508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5509 if test -z "$ac_err"; then
5510   rm -rf conftest*
5511   eval "ac_cv_header_$ac_safe=yes"
5512 else
5513   echo "$ac_err" >&5
5514   echo "configure: failed program was:" >&5
5515   cat conftest.$ac_ext >&5
5516   rm -rf conftest*
5517   eval "ac_cv_header_$ac_safe=no"
5518 fi
5519 rm -f conftest*
5520 fi
5521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5522   echo "$ac_t""yes" 1>&6
5523     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5524   cat >> confdefs.h <<EOF
5525 #define $ac_tr_hdr 1
5526 EOF
5527  
5528     PLUGINS="${PLUGINS} x11"
5529     LIB_X11="-L$x_libraries -lX11 -lXext"
5530     CFLAGS_X11="-I$x_includes"
5531   
5532   CPPFLAGS=$saved_CPPFLAGS
5533 else
5534   echo "$ac_t""no" 1>&6
5535 fi
5536 done
5537
5538 fi
5539
5540 # Check whether --enable-xvideo or --disable-xvideo was given.
5541 if test "${enable_xvideo+set}" = set; then
5542   enableval="$enable_xvideo"
5543   :
5544 fi
5545
5546 if test x$enable_xvideo != xno; then
5547   if test x$x_includes = xNONE; then
5548     x_includes=/usr/X11R6/include
5549   fi
5550   if test x$x_libraries = xNONE; then
5551     x_libraries=/usr/X11R6/lib
5552   fi
5553   saved_CPPFLAGS=$CPPFLAGS
5554   CPPFLAGS="$CPPFLAGS -I$x_includes"
5555   for ac_hdr in X11/extensions/Xv.h
5556 do
5557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5559 echo "configure:5560: checking for $ac_hdr" >&5
5560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5561   echo $ac_n "(cached) $ac_c" 1>&6
5562 else
5563   cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 #include <$ac_hdr>
5567 EOF
5568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5569 { (eval echo configure:5570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5571 if test -z "$ac_err"; then
5572   rm -rf conftest*
5573   eval "ac_cv_header_$ac_safe=yes"
5574 else
5575   echo "$ac_err" >&5
5576   echo "configure: failed program was:" >&5
5577   cat conftest.$ac_ext >&5
5578   rm -rf conftest*
5579   eval "ac_cv_header_$ac_safe=no"
5580 fi
5581 rm -f conftest*
5582 fi
5583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5584   echo "$ac_t""yes" 1>&6
5585     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5586   cat >> confdefs.h <<EOF
5587 #define $ac_tr_hdr 1
5588 EOF
5589  
5590     BUILTINS="${BUILTINS} xvideo"
5591     LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
5592     CFLAGS_X11="-I$x_includes"
5593   
5594   CPPFLAGS=$saved_CPPFLAGS
5595 else
5596   echo "$ac_t""no" 1>&6
5597 fi
5598 done
5599
5600 fi
5601
5602 # Check whether --enable-alsa or --disable-alsa was given.
5603 if test "${enable_alsa+set}" = set; then
5604   enableval="$enable_alsa"
5605   if test x$enable_alsa = xyes
5606    then
5607      ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
5608 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
5609 echo "configure:5610: checking for sys/asoundlib.h" >&5
5610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5611   echo $ac_n "(cached) $ac_c" 1>&6
5612 else
5613   cat > conftest.$ac_ext <<EOF
5614 #line 5615 "configure"
5615 #include "confdefs.h"
5616 #include <sys/asoundlib.h>
5617 EOF
5618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5619 { (eval echo configure:5620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5621 if test -z "$ac_err"; then
5622   rm -rf conftest*
5623   eval "ac_cv_header_$ac_safe=yes"
5624 else
5625   echo "$ac_err" >&5
5626   echo "configure: failed program was:" >&5
5627   cat conftest.$ac_ext >&5
5628   rm -rf conftest*
5629   eval "ac_cv_header_$ac_safe=no"
5630 fi
5631 rm -f conftest*
5632 fi
5633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5634   echo "$ac_t""yes" 1>&6
5635   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
5636 echo "configure:5637: checking for main in -lasound" >&5
5637 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
5638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5639   echo $ac_n "(cached) $ac_c" 1>&6
5640 else
5641   ac_save_LIBS="$LIBS"
5642 LIBS="-lasound  $LIBS"
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5646
5647 int main() {
5648 main()
5649 ; return 0; }
5650 EOF
5651 if { (eval echo configure:5652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5652   rm -rf conftest*
5653   eval "ac_cv_lib_$ac_lib_var=yes"
5654 else
5655   echo "configure: failed program was:" >&5
5656   cat conftest.$ac_ext >&5
5657   rm -rf conftest*
5658   eval "ac_cv_lib_$ac_lib_var=no"
5659 fi
5660 rm -f conftest*
5661 LIBS="$ac_save_LIBS"
5662
5663 fi
5664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5665   echo "$ac_t""yes" 1>&6
5666   have_alsa="true"
5667 else
5668   echo "$ac_t""no" 1>&6
5669 have_alsa="false"
5670 fi
5671
5672 else
5673   echo "$ac_t""no" 1>&6
5674 have_alsa="false"
5675 fi
5676
5677      if test x$have_alsa = xtrue
5678      then
5679        PLUGINS="${PLUGINS} alsa"
5680        LIB_ALSA="-lasound"
5681      fi
5682    fi
5683 fi
5684
5685
5686 fi
5687
5688 # Check whether --enable-plugins or --disable-plugins was given.
5689 if test "${enable_plugins+set}" = set; then
5690   enableval="$enable_plugins"
5691   if test x$enable_plugins = xno
5692    then
5693      BUILTINS="${BUILTINS} ${PLUGINS}"
5694      PLUGINS=
5695    fi
5696 fi
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 trap '' 1 2 15
5762 cat > confcache <<\EOF
5763 # This file is a shell script that caches the results of configure
5764 # tests run on this system so they can be shared between configure
5765 # scripts and configure runs.  It is not useful on other systems.
5766 # If it contains results you don't want to keep, you may remove or edit it.
5767 #
5768 # By default, configure uses ./config.cache as the cache file,
5769 # creating it if it does not exist already.  You can give configure
5770 # the --cache-file=FILE option to use a different cache file; that is
5771 # what configure does when it calls configure scripts in
5772 # subdirectories, so they share the cache.
5773 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5774 # config.status only pays attention to the cache file if you give it the
5775 # --recheck option to rerun configure.
5776 #
5777 EOF
5778 # The following way of writing the cache mishandles newlines in values,
5779 # but we know of no workaround that is simple, portable, and efficient.
5780 # So, don't put newlines in cache variables' values.
5781 # Ultrix sh set writes to stderr and can't be redirected directly,
5782 # and sets the high bit in the cache file unless we assign to the vars.
5783 (set) 2>&1 |
5784   case `(ac_space=' '; set | grep ac_space) 2>&1` in
5785   *ac_space=\ *)
5786     # `set' does not quote correctly, so add quotes (double-quote substitution
5787     # turns \\\\ into \\, and sed turns \\ into \).
5788     sed -n \
5789       -e "s/'/'\\\\''/g" \
5790       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5791     ;;
5792   *)
5793     # `set' quotes correctly as required by POSIX, so do not add quotes.
5794     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5795     ;;
5796   esac >> confcache
5797 if cmp -s $cache_file confcache; then
5798   :
5799 else
5800   if test -w $cache_file; then
5801     echo "updating cache $cache_file"
5802     cat confcache > $cache_file
5803   else
5804     echo "not updating unwritable cache $cache_file"
5805   fi
5806 fi
5807 rm -f confcache
5808
5809 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5810
5811 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5812 # Let make expand exec_prefix.
5813 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5814
5815 # Any assignment to VPATH causes Sun make to only execute
5816 # the first set of double-colon rules, so remove it if not needed.
5817 # If there is a colon in the path, we need to keep it.
5818 if test "x$srcdir" = x.; then
5819   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
5820 fi
5821
5822 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5823
5824 DEFS=-DHAVE_CONFIG_H
5825
5826 # Without the "./", some shells look in PATH for config.status.
5827 : ${CONFIG_STATUS=./config.status}
5828
5829 echo creating $CONFIG_STATUS
5830 rm -f $CONFIG_STATUS
5831 cat > $CONFIG_STATUS <<EOF
5832 #! /bin/sh
5833 # Generated automatically by configure.
5834 # Run this file to recreate the current configuration.
5835 # This directory was configured as follows,
5836 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5837 #
5838 # $0 $ac_configure_args
5839 #
5840 # Compiler output produced by configure, useful for debugging
5841 # configure, is in ./config.log if it exists.
5842
5843 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5844 for ac_option
5845 do
5846   case "\$ac_option" in
5847   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5848     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5849     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5850   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5851     echo "$CONFIG_STATUS generated by autoconf version 2.13"
5852     exit 0 ;;
5853   -help | --help | --hel | --he | --h)
5854     echo "\$ac_cs_usage"; exit 0 ;;
5855   *) echo "\$ac_cs_usage"; exit 1 ;;
5856   esac
5857 done
5858
5859 ac_given_srcdir=$srcdir
5860 ac_given_INSTALL="$INSTALL"
5861
5862 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5863 EOF
5864 cat >> $CONFIG_STATUS <<EOF
5865
5866 # Protect against being on the right side of a sed subst in config.status.
5867 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5868  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5869 $ac_vpsub
5870 $extrasub
5871 s%@SHELL@%$SHELL%g
5872 s%@CFLAGS@%$CFLAGS%g
5873 s%@CPPFLAGS@%$CPPFLAGS%g
5874 s%@CXXFLAGS@%$CXXFLAGS%g
5875 s%@FFLAGS@%$FFLAGS%g
5876 s%@DEFS@%$DEFS%g
5877 s%@LDFLAGS@%$LDFLAGS%g
5878 s%@LIBS@%$LIBS%g
5879 s%@exec_prefix@%$exec_prefix%g
5880 s%@prefix@%$prefix%g
5881 s%@program_transform_name@%$program_transform_name%g
5882 s%@bindir@%$bindir%g
5883 s%@sbindir@%$sbindir%g
5884 s%@libexecdir@%$libexecdir%g
5885 s%@datadir@%$datadir%g
5886 s%@sysconfdir@%$sysconfdir%g
5887 s%@sharedstatedir@%$sharedstatedir%g
5888 s%@localstatedir@%$localstatedir%g
5889 s%@libdir@%$libdir%g
5890 s%@includedir@%$includedir%g
5891 s%@oldincludedir@%$oldincludedir%g
5892 s%@infodir@%$infodir%g
5893 s%@mandir@%$mandir%g
5894 s%@host@%$host%g
5895 s%@host_alias@%$host_alias%g
5896 s%@host_cpu@%$host_cpu%g
5897 s%@host_vendor@%$host_vendor%g
5898 s%@host_os@%$host_os%g
5899 s%@target@%$target%g
5900 s%@target_alias@%$target_alias%g
5901 s%@target_cpu@%$target_cpu%g
5902 s%@target_vendor@%$target_vendor%g
5903 s%@target_os@%$target_os%g
5904 s%@build@%$build%g
5905 s%@build_alias@%$build_alias%g
5906 s%@build_cpu@%$build_cpu%g
5907 s%@build_vendor@%$build_vendor%g
5908 s%@build_os@%$build_os%g
5909 s%@VLC_VERSION@%$VLC_VERSION%g
5910 s%@VLC_CODENAME@%$VLC_CODENAME%g
5911 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
5912 s%@SET_MAKE@%$SET_MAKE%g
5913 s%@CC@%$CC%g
5914 s%@CPP@%$CPP%g
5915 s%@RANLIB@%$RANLIB%g
5916 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5917 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5918 s%@INSTALL_DATA@%$INSTALL_DATA%g
5919 s%@ESD_CONFIG@%$ESD_CONFIG%g
5920 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
5921 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
5922 s%@SDL_CONFIG@%$SDL_CONFIG%g
5923 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
5924 s%@GTK_CONFIG@%$GTK_CONFIG%g
5925 s%@SYS@%$SYS%g
5926 s%@ARCH@%$ARCH%g
5927 s%@PLUGINS@%$PLUGINS%g
5928 s%@BUILTINS@%$BUILTINS%g
5929 s%@ALIASES@%$ALIASES%g
5930 s%@DEFINE@%$DEFINE%g
5931 s%@INCLUDE@%$INCLUDE%g
5932 s%@DEBUG@%$DEBUG%g
5933 s%@ASM@%$ASM%g
5934 s%@TRACE@%$TRACE%g
5935 s%@CPROF@%$CPROF%g
5936 s%@GPROF@%$GPROF%g
5937 s%@OPTIMS@%$OPTIMS%g
5938 s%@TUNING@%$TUNING%g
5939 s%@RELEASE@%$RELEASE%g
5940 s%@NEED_GETOPT@%$NEED_GETOPT%g
5941 s%@MOC@%$MOC%g
5942 s%@WINDRES@%$WINDRES%g
5943 s%@LCFLAGS@%$LCFLAGS%g
5944 s%@PLCFLAGS@%$PLCFLAGS%g
5945 s%@SOFLAGS@%$SOFLAGS%g
5946 s%@LIB@%$LIB%g
5947 s%@LIB_ALSA@%$LIB_ALSA%g
5948 s%@LIB_ALTIVEC@%$LIB_ALTIVEC%g
5949 s%@LIB_BEOS@%$LIB_BEOS%g
5950 s%@LIB_DARWIN@%$LIB_DARWIN%g
5951 s%@LIB_DVD@%$LIB_DVD%g
5952 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
5953 s%@LIB_ESD@%$LIB_ESD%g
5954 s%@LIB_GGI@%$LIB_GGI%g
5955 s%@LIB_GLIDE@%$LIB_GLIDE%g
5956 s%@LIB_GNOME@%$LIB_GNOME%g
5957 s%@LIB_GTK@%$LIB_GTK%g
5958 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
5959 s%@LIB_KDE@%$LIB_KDE%g
5960 s%@LIB_MACOSX@%$LIB_MACOSX%g
5961 s%@LIB_QNX@%$LIB_QNX%g
5962 s%@LIB_NCURSES@%$LIB_NCURSES%g
5963 s%@LIB_QT@%$LIB_QT%g
5964 s%@LIB_TS@%$LIB_TS%g
5965 s%@LIB_SDL@%$LIB_SDL%g
5966 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
5967 s%@LIB_X11@%$LIB_X11%g
5968 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
5969 s%@LIB_YUV@%$LIB_YUV%g
5970 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
5971 s%@CFLAGS_ALTIVEC@%$CFLAGS_ALTIVEC%g
5972 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
5973 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
5974 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
5975 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
5976 s%@CFLAGS_X11@%$CFLAGS_X11%g
5977 s%@OBJ_DVD@%$OBJ_DVD%g
5978 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
5979 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
5980
5981 CEOF
5982 EOF
5983
5984 cat >> $CONFIG_STATUS <<\EOF
5985
5986 # Split the substitutions into bite-sized pieces for seds with
5987 # small command number limits, like on Digital OSF/1 and HP-UX.
5988 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5989 ac_file=1 # Number of current file.
5990 ac_beg=1 # First line for current file.
5991 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5992 ac_more_lines=:
5993 ac_sed_cmds=""
5994 while $ac_more_lines; do
5995   if test $ac_beg -gt 1; then
5996     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5997   else
5998     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5999   fi
6000   if test ! -s conftest.s$ac_file; then
6001     ac_more_lines=false
6002     rm -f conftest.s$ac_file
6003   else
6004     if test -z "$ac_sed_cmds"; then
6005       ac_sed_cmds="sed -f conftest.s$ac_file"
6006     else
6007       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6008     fi
6009     ac_file=`expr $ac_file + 1`
6010     ac_beg=$ac_end
6011     ac_end=`expr $ac_end + $ac_max_sed_cmds`
6012   fi
6013 done
6014 if test -z "$ac_sed_cmds"; then
6015   ac_sed_cmds=cat
6016 fi
6017 EOF
6018
6019 cat >> $CONFIG_STATUS <<EOF
6020
6021 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
6022 EOF
6023 cat >> $CONFIG_STATUS <<\EOF
6024 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6025   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6026   case "$ac_file" in
6027   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6028        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6029   *) ac_file_in="${ac_file}.in" ;;
6030   esac
6031
6032   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6033
6034   # Remove last slash and all that follows it.  Not all systems have dirname.
6035   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6036   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6037     # The file is in a subdirectory.
6038     test ! -d "$ac_dir" && mkdir "$ac_dir"
6039     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6040     # A "../" for each directory in $ac_dir_suffix.
6041     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6042   else
6043     ac_dir_suffix= ac_dots=
6044   fi
6045
6046   case "$ac_given_srcdir" in
6047   .)  srcdir=.
6048       if test -z "$ac_dots"; then top_srcdir=.
6049       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6050   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6051   *) # Relative path.
6052     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6053     top_srcdir="$ac_dots$ac_given_srcdir" ;;
6054   esac
6055
6056   case "$ac_given_INSTALL" in
6057   [/$]*) INSTALL="$ac_given_INSTALL" ;;
6058   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6059   esac
6060
6061   echo creating "$ac_file"
6062   rm -f "$ac_file"
6063   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6064   case "$ac_file" in
6065   *Makefile*) ac_comsub="1i\\
6066 # $configure_input" ;;
6067   *) ac_comsub= ;;
6068   esac
6069
6070   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6071   sed -e "$ac_comsub
6072 s%@configure_input@%$configure_input%g
6073 s%@srcdir@%$srcdir%g
6074 s%@top_srcdir@%$top_srcdir%g
6075 s%@INSTALL@%$INSTALL%g
6076 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6077 fi; done
6078 rm -f conftest.s*
6079
6080 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6081 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6082 #
6083 # ac_d sets the value in "#define NAME VALUE" lines.
6084 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6085 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
6086 ac_dC='\3'
6087 ac_dD='%g'
6088 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6089 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6090 ac_uB='\([      ]\)%\1#\2define\3'
6091 ac_uC=' '
6092 ac_uD='\4%g'
6093 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6094 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6095 ac_eB='$%\1#\2define\3'
6096 ac_eC=' '
6097 ac_eD='%g'
6098
6099 if test "${CONFIG_HEADERS+set}" != set; then
6100 EOF
6101 cat >> $CONFIG_STATUS <<EOF
6102   CONFIG_HEADERS="include/defs.h"
6103 EOF
6104 cat >> $CONFIG_STATUS <<\EOF
6105 fi
6106 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6107   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6108   case "$ac_file" in
6109   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6110        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6111   *) ac_file_in="${ac_file}.in" ;;
6112   esac
6113
6114   echo creating $ac_file
6115
6116   rm -f conftest.frag conftest.in conftest.out
6117   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6118   cat $ac_file_inputs > conftest.in
6119
6120 EOF
6121
6122 # Transform confdefs.h into a sed script conftest.vals that substitutes
6123 # the proper values into config.h.in to produce config.h.  And first:
6124 # Protect against being on the right side of a sed subst in config.status.
6125 # Protect against being in an unquoted here document in config.status.
6126 rm -f conftest.vals
6127 cat > conftest.hdr <<\EOF
6128 s/[\\&%]/\\&/g
6129 s%[\\$`]%\\&%g
6130 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6131 s%ac_d%ac_u%gp
6132 s%ac_u%ac_e%gp
6133 EOF
6134 sed -n -f conftest.hdr confdefs.h > conftest.vals
6135 rm -f conftest.hdr
6136
6137 # This sed command replaces #undef with comments.  This is necessary, for
6138 # example, in the case of _POSIX_SOURCE, which is predefined and required
6139 # on some systems where configure will not decide to define it.
6140 cat >> conftest.vals <<\EOF
6141 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6142 EOF
6143
6144 # Break up conftest.vals because some shells have a limit on
6145 # the size of here documents, and old seds have small limits too.
6146
6147 rm -f conftest.tail
6148 while :
6149 do
6150   ac_lines=`grep -c . conftest.vals`
6151   # grep -c gives empty output for an empty file on some AIX systems.
6152   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6153   # Write a limited-size here document to conftest.frag.
6154   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6155   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6156   echo 'CEOF
6157   sed -f conftest.frag conftest.in > conftest.out
6158   rm -f conftest.in
6159   mv conftest.out conftest.in
6160 ' >> $CONFIG_STATUS
6161   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6162   rm -f conftest.vals
6163   mv conftest.tail conftest.vals
6164 done
6165 rm -f conftest.vals
6166
6167 cat >> $CONFIG_STATUS <<\EOF
6168   rm -f conftest.frag conftest.h
6169   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
6170   cat conftest.in >> conftest.h
6171   rm -f conftest.in
6172   if cmp -s $ac_file conftest.h 2>/dev/null; then
6173     echo "$ac_file is unchanged"
6174     rm -f conftest.h
6175   else
6176     # Remove last slash and all that follows it.  Not all systems have dirname.
6177       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6178       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6179       # The file is in a subdirectory.
6180       test ! -d "$ac_dir" && mkdir "$ac_dir"
6181     fi
6182     rm -f $ac_file
6183     mv conftest.h $ac_file
6184   fi
6185 fi; done
6186
6187 EOF
6188 cat >> $CONFIG_STATUS <<EOF
6189
6190 EOF
6191 cat >> $CONFIG_STATUS <<\EOF
6192
6193 exit 0
6194 EOF
6195 chmod +x $CONFIG_STATUS
6196 rm -fr confdefs* $ac_clean_files
6197 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6198
6199
6200 echo "
6201 global configuration
6202 --------------------
6203 system                : ${SYS}
6204 architecture          : ${ARCH}
6205 optimizations         : ${OPTIMS}
6206 tuning:               : ${TUNING}
6207 release:              : ${RELEASE}"
6208
6209 if test x${HAVE_VLC} = x1
6210 then
6211   echo "
6212 vlc configuration
6213 -----------------
6214 vlc version           : ${VLC_VERSION}
6215 debug mode            : ${DEBUG}
6216 trace mode            : ${TRACE}
6217 cprof/gprof support   : ${CPROF}/${GPROF}
6218 need builtin getopt   : ${NEED_GETOPT}
6219 built-in modules      :${BUILTINS}
6220 plug-in modules       :${PLUGINS}
6221 vlc aliases           :${ALIASES}"
6222 fi
6223
6224 echo "
6225 libdvdcss configuration
6226 -----------------------
6227 can be built          : ${CAN_BUILD_LIBDVDCSS}
6228 will be built         : ${NEED_LIBDVDCSS}"
6229 if test x${NEED_LIBDVDCSS} = x1
6230 then
6231   echo "need BSDI libdvd      : ${NEED_BSDI_LIBDVD}"
6232   echo "link statically       : ${STATIC_LIBDVDCSS}"
6233 else
6234   echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
6235 fi
6236
6237 echo "
6238 You may now tune Makefile.opts at your convenience, for instance to choose
6239 which modules get compiled as plugins.
6240 "
6241 if test x${HAVE_VLC} = x1
6242 then
6243   echo "To build vlc and its plugins, type \`make vlc'."
6244 fi
6245 if test x${HAVE_LIBDVDCSS} = x1
6246 then
6247   echo "To build libdvdcss only, type \`make libdvdcss'."
6248 fi
6249 echo ""
6250