]> git.sesse.net Git - vlc/blob - configure
65a20c84617fe279ebd2be2ea0e29fe97eedaa73
[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-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
16 ac_help="$ac_help
17   --disable-nls           do not use Native Language Support"
18 ac_help="$ac_help
19   --with-included-gettext use the GNU gettext library included here"
20 ac_help="$ac_help
21   --with-words=endianness Set endianness (big or little)"
22 ac_help="$ac_help
23   --with-tuning=[arch]    Enable special tuning for an architecture
24                           (default i686 on IA-32 and 750 on PPC)"
25 ac_help="$ac_help
26   --enable-release        Activate extra optimizations (default disabled)"
27 ac_help="$ac_help
28   --disable-mmx           Disable MMX optimizations (default enabled for x86)"
29 ac_help="$ac_help
30   --disable-altivec       Disable altivec optimizations (default enabled on PPC)"
31 ac_help="$ac_help
32   --enable-debug          Enable debug mode (default disabled)"
33 ac_help="$ac_help
34   --enable-trace          Enable trace mode (default disabled)"
35 ac_help="$ac_help
36   --enable-gprof          Enable gprof profiling (default disabled)"
37 ac_help="$ac_help
38   --enable-cprof          Enable cprof profiling (default disabled)"
39 ac_help="$ac_help
40   --disable-optimizations Disable compiler optimizations (default enabled)"
41 ac_help="$ac_help
42   --enable-pth            Enable GNU Pth support (default disabled)"
43 ac_help="$ac_help
44   --with-dvdcss[=name]    way to use libdvdcss, either 'yes' or 'no',
45                           or 'local-static', 'local-shared', or a path to
46                           another libdvdcss such as '/usr/local'
47                           (default 'local-static')"
48 ac_help="$ac_help
49   --enable-dvdread          Enable dvdread support (default disabled)"
50 ac_help="$ac_help
51   --enable-vcd            VCD support for Linux (default enabled)"
52 ac_help="$ac_help
53   --disable-dummy         dummy module (default enabled)"
54 ac_help="$ac_help
55   --disable-null          Null module (default enabled)"
56 ac_help="$ac_help
57   --disable-rc            Remote Control module (default enabled)"
58 ac_help="$ac_help
59   --with-mad[=PATH]       libmad module (default disabled)"
60 ac_help="$ac_help
61   --disable-dsp           Linux /dev/dsp support (default enabled)"
62 ac_help="$ac_help
63   --enable-esd            Esound library support (default disabled)"
64 ac_help="$ac_help
65   --enable-arts           aRts sound server (default disabled)"
66 ac_help="$ac_help
67   --enable-macosx         MacOS X support (default enabled on MacOS X)"
68 ac_help="$ac_help
69   --disable-qnx           QNX RTOS support (default enabled on QNX RTOS)"
70 ac_help="$ac_help
71   --enable-fb             Linux framebuffer support (default disabled)"
72 ac_help="$ac_help
73   --with-ggi[=name]       GGI support (default disabled)"
74 ac_help="$ac_help
75   --disable-sdl           SDL support (default enabled)"
76 ac_help="$ac_help
77   --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
78 ac_help="$ac_help
79   --disable-directx       Windows DirectX support (default enabled on WIN32)"
80 ac_help="$ac_help
81   --with-directx-path=path Windows DirectX headers and libraries"
82 ac_help="$ac_help
83   --with-glide[=name]     Glide (3dfx) support (default disabled)"
84 ac_help="$ac_help
85   --enable-ncurses        ncurses interface support (default disabled)"
86 ac_help="$ac_help
87   --enable-qt             Qt interface support (default disabled)"
88 ac_help="$ac_help
89   --enable-kde            KDE interface support (default disabled)"
90 ac_help="$ac_help
91   --enable-gnome          Gnome interface support (default disabled)"
92 ac_help="$ac_help
93   --disable-gtk           Gtk+ support (default enabled)"
94 ac_help="$ac_help
95   --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
96 ac_help="$ac_help
97   --disable-x11           X11 support (default enabled)"
98 ac_help="$ac_help
99   --disable-xvideo        XVideo support (default enabled)"
100 ac_help="$ac_help
101   --enable-alsa           Alsa sound drivers support (Only for linux)
102                           (default disabled)"
103 ac_help="$ac_help
104   --disable-plugins       Make all plug-ins built-in (default plug-ins enabled)"
105 ac_help="$ac_help
106   --with-dll-path=path    Path to Win32 DLLs (default search in \$PWD)"
107
108 # Initialize some variables set by options.
109 # The variables have the same names as the options, with
110 # dashes changed to underlines.
111 build=NONE
112 cache_file=./config.cache
113 exec_prefix=NONE
114 host=NONE
115 no_create=
116 nonopt=NONE
117 no_recursion=
118 prefix=NONE
119 program_prefix=NONE
120 program_suffix=NONE
121 program_transform_name=s,x,x,
122 silent=
123 site=
124 srcdir=
125 target=NONE
126 verbose=
127 x_includes=NONE
128 x_libraries=NONE
129 bindir='${exec_prefix}/bin'
130 sbindir='${exec_prefix}/sbin'
131 libexecdir='${exec_prefix}/libexec'
132 datadir='${prefix}/share'
133 sysconfdir='${prefix}/etc'
134 sharedstatedir='${prefix}/com'
135 localstatedir='${prefix}/var'
136 libdir='${exec_prefix}/lib'
137 includedir='${prefix}/include'
138 oldincludedir='/usr/include'
139 infodir='${prefix}/info'
140 mandir='${prefix}/man'
141
142 # Initialize some other variables.
143 subdirs=
144 MFLAGS= MAKEFLAGS=
145 SHELL=${CONFIG_SHELL-/bin/sh}
146 # Maximum number of lines to put in a shell here document.
147 ac_max_here_lines=12
148
149 ac_prev=
150 for ac_option
151 do
152
153   # If the previous option needs an argument, assign it.
154   if test -n "$ac_prev"; then
155     eval "$ac_prev=\$ac_option"
156     ac_prev=
157     continue
158   fi
159
160   case "$ac_option" in
161   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
162   *) ac_optarg= ;;
163   esac
164
165   # Accept the important Cygnus configure options, so we can diagnose typos.
166
167   case "$ac_option" in
168
169   -bindir | --bindir | --bindi | --bind | --bin | --bi)
170     ac_prev=bindir ;;
171   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
172     bindir="$ac_optarg" ;;
173
174   -build | --build | --buil | --bui | --bu)
175     ac_prev=build ;;
176   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
177     build="$ac_optarg" ;;
178
179   -cache-file | --cache-file | --cache-fil | --cache-fi \
180   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
181     ac_prev=cache_file ;;
182   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
183   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
184     cache_file="$ac_optarg" ;;
185
186   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
187     ac_prev=datadir ;;
188   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
189   | --da=*)
190     datadir="$ac_optarg" ;;
191
192   -disable-* | --disable-*)
193     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
194     # Reject names that are not valid shell variable names.
195     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
196       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
197     fi
198     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
199     eval "enable_${ac_feature}=no" ;;
200
201   -enable-* | --enable-*)
202     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
203     # Reject names that are not valid shell variable names.
204     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
205       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
206     fi
207     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
208     case "$ac_option" in
209       *=*) ;;
210       *) ac_optarg=yes ;;
211     esac
212     eval "enable_${ac_feature}='$ac_optarg'" ;;
213
214   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
215   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
216   | --exec | --exe | --ex)
217     ac_prev=exec_prefix ;;
218   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
219   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
220   | --exec=* | --exe=* | --ex=*)
221     exec_prefix="$ac_optarg" ;;
222
223   -gas | --gas | --ga | --g)
224     # Obsolete; use --with-gas.
225     with_gas=yes ;;
226
227   -help | --help | --hel | --he)
228     # Omit some internal or obsolete options to make the list less imposing.
229     # This message is too long to be a string in the A/UX 3.1 sh.
230     cat << EOF
231 Usage: configure [options] [host]
232 Options: [defaults in brackets after descriptions]
233 Configuration:
234   --cache-file=FILE       cache test results in FILE
235   --help                  print this message
236   --no-create             do not create output files
237   --quiet, --silent       do not print \`checking...' messages
238   --version               print the version of autoconf that created configure
239 Directory and file names:
240   --prefix=PREFIX         install architecture-independent files in PREFIX
241                           [$ac_default_prefix]
242   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
243                           [same as prefix]
244   --bindir=DIR            user executables in DIR [EPREFIX/bin]
245   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
246   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
247   --datadir=DIR           read-only architecture-independent data in DIR
248                           [PREFIX/share]
249   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
250   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
251                           [PREFIX/com]
252   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
253   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
254   --includedir=DIR        C header files in DIR [PREFIX/include]
255   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
256   --infodir=DIR           info documentation in DIR [PREFIX/info]
257   --mandir=DIR            man documentation in DIR [PREFIX/man]
258   --srcdir=DIR            find the sources in DIR [configure dir or ..]
259   --program-prefix=PREFIX prepend PREFIX to installed program names
260   --program-suffix=SUFFIX append SUFFIX to installed program names
261   --program-transform-name=PROGRAM
262                           run sed PROGRAM on installed program names
263 EOF
264     cat << EOF
265 Host type:
266   --build=BUILD           configure for building on BUILD [BUILD=HOST]
267   --host=HOST             configure for HOST [guessed]
268   --target=TARGET         configure for TARGET [TARGET=HOST]
269 Features and packages:
270   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
271   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
272   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
273   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
274   --x-includes=DIR        X include files are in DIR
275   --x-libraries=DIR       X library files are in DIR
276 EOF
277     if test -n "$ac_help"; then
278       echo "--enable and --with options recognized:$ac_help"
279     fi
280     exit 0 ;;
281
282   -host | --host | --hos | --ho)
283     ac_prev=host ;;
284   -host=* | --host=* | --hos=* | --ho=*)
285     host="$ac_optarg" ;;
286
287   -includedir | --includedir | --includedi | --included | --include \
288   | --includ | --inclu | --incl | --inc)
289     ac_prev=includedir ;;
290   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
291   | --includ=* | --inclu=* | --incl=* | --inc=*)
292     includedir="$ac_optarg" ;;
293
294   -infodir | --infodir | --infodi | --infod | --info | --inf)
295     ac_prev=infodir ;;
296   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
297     infodir="$ac_optarg" ;;
298
299   -libdir | --libdir | --libdi | --libd)
300     ac_prev=libdir ;;
301   -libdir=* | --libdir=* | --libdi=* | --libd=*)
302     libdir="$ac_optarg" ;;
303
304   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
305   | --libexe | --libex | --libe)
306     ac_prev=libexecdir ;;
307   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
308   | --libexe=* | --libex=* | --libe=*)
309     libexecdir="$ac_optarg" ;;
310
311   -localstatedir | --localstatedir | --localstatedi | --localstated \
312   | --localstate | --localstat | --localsta | --localst \
313   | --locals | --local | --loca | --loc | --lo)
314     ac_prev=localstatedir ;;
315   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
316   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
317   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
318     localstatedir="$ac_optarg" ;;
319
320   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
321     ac_prev=mandir ;;
322   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
323     mandir="$ac_optarg" ;;
324
325   -nfp | --nfp | --nf)
326     # Obsolete; use --without-fp.
327     with_fp=no ;;
328
329   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
330   | --no-cr | --no-c)
331     no_create=yes ;;
332
333   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
334   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
335     no_recursion=yes ;;
336
337   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
338   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
339   | --oldin | --oldi | --old | --ol | --o)
340     ac_prev=oldincludedir ;;
341   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
342   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
343   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
344     oldincludedir="$ac_optarg" ;;
345
346   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
347     ac_prev=prefix ;;
348   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
349     prefix="$ac_optarg" ;;
350
351   -program-prefix | --program-prefix | --program-prefi | --program-pref \
352   | --program-pre | --program-pr | --program-p)
353     ac_prev=program_prefix ;;
354   -program-prefix=* | --program-prefix=* | --program-prefi=* \
355   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
356     program_prefix="$ac_optarg" ;;
357
358   -program-suffix | --program-suffix | --program-suffi | --program-suff \
359   | --program-suf | --program-su | --program-s)
360     ac_prev=program_suffix ;;
361   -program-suffix=* | --program-suffix=* | --program-suffi=* \
362   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
363     program_suffix="$ac_optarg" ;;
364
365   -program-transform-name | --program-transform-name \
366   | --program-transform-nam | --program-transform-na \
367   | --program-transform-n | --program-transform- \
368   | --program-transform | --program-transfor \
369   | --program-transfo | --program-transf \
370   | --program-trans | --program-tran \
371   | --progr-tra | --program-tr | --program-t)
372     ac_prev=program_transform_name ;;
373   -program-transform-name=* | --program-transform-name=* \
374   | --program-transform-nam=* | --program-transform-na=* \
375   | --program-transform-n=* | --program-transform-=* \
376   | --program-transform=* | --program-transfor=* \
377   | --program-transfo=* | --program-transf=* \
378   | --program-trans=* | --program-tran=* \
379   | --progr-tra=* | --program-tr=* | --program-t=*)
380     program_transform_name="$ac_optarg" ;;
381
382   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
383   | -silent | --silent | --silen | --sile | --sil)
384     silent=yes ;;
385
386   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
387     ac_prev=sbindir ;;
388   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
389   | --sbi=* | --sb=*)
390     sbindir="$ac_optarg" ;;
391
392   -sharedstatedir | --sharedstatedir | --sharedstatedi \
393   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
394   | --sharedst | --shareds | --shared | --share | --shar \
395   | --sha | --sh)
396     ac_prev=sharedstatedir ;;
397   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
398   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
399   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
400   | --sha=* | --sh=*)
401     sharedstatedir="$ac_optarg" ;;
402
403   -site | --site | --sit)
404     ac_prev=site ;;
405   -site=* | --site=* | --sit=*)
406     site="$ac_optarg" ;;
407
408   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
409     ac_prev=srcdir ;;
410   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
411     srcdir="$ac_optarg" ;;
412
413   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
414   | --syscon | --sysco | --sysc | --sys | --sy)
415     ac_prev=sysconfdir ;;
416   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
417   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
418     sysconfdir="$ac_optarg" ;;
419
420   -target | --target | --targe | --targ | --tar | --ta | --t)
421     ac_prev=target ;;
422   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
423     target="$ac_optarg" ;;
424
425   -v | -verbose | --verbose | --verbos | --verbo | --verb)
426     verbose=yes ;;
427
428   -version | --version | --versio | --versi | --vers)
429     echo "configure generated by autoconf version 2.13"
430     exit 0 ;;
431
432   -with-* | --with-*)
433     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
434     # Reject names that are not valid shell variable names.
435     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
436       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437     fi
438     ac_package=`echo $ac_package| sed 's/-/_/g'`
439     case "$ac_option" in
440       *=*) ;;
441       *) ac_optarg=yes ;;
442     esac
443     eval "with_${ac_package}='$ac_optarg'" ;;
444
445   -without-* | --without-*)
446     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
447     # Reject names that are not valid shell variable names.
448     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
449       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
450     fi
451     ac_package=`echo $ac_package| sed 's/-/_/g'`
452     eval "with_${ac_package}=no" ;;
453
454   --x)
455     # Obsolete; use --with-x.
456     with_x=yes ;;
457
458   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459   | --x-incl | --x-inc | --x-in | --x-i)
460     ac_prev=x_includes ;;
461   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463     x_includes="$ac_optarg" ;;
464
465   -x-libraries | --x-libraries | --x-librarie | --x-librari \
466   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467     ac_prev=x_libraries ;;
468   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470     x_libraries="$ac_optarg" ;;
471
472   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
473     ;;
474
475   *)
476     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
477       echo "configure: warning: $ac_option: invalid host type" 1>&2
478     fi
479     if test "x$nonopt" != xNONE; then
480       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
481     fi
482     nonopt="$ac_option"
483     ;;
484
485   esac
486 done
487
488 if test -n "$ac_prev"; then
489   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
490 fi
491
492 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
493
494 # File descriptor usage:
495 # 0 standard input
496 # 1 file creation
497 # 2 errors and warnings
498 # 3 some systems may open it to /dev/tty
499 # 4 used on the Kubota Titan
500 # 6 checking for... messages and results
501 # 5 compiler messages saved in config.log
502 if test "$silent" = yes; then
503   exec 6>/dev/null
504 else
505   exec 6>&1
506 fi
507 exec 5>./config.log
508
509 echo "\
510 This file contains any messages produced by compilers while
511 running configure, to aid debugging if configure makes a mistake.
512 " 1>&5
513
514 # Strip out --no-create and --no-recursion so they do not pile up.
515 # Also quote any args containing shell metacharacters.
516 ac_configure_args=
517 for ac_arg
518 do
519   case "$ac_arg" in
520   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
521   | --no-cr | --no-c) ;;
522   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
523   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
524   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
525   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
526   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
527   esac
528 done
529
530 # NLS nuisances.
531 # Only set these to C if already set.  These must not be set unconditionally
532 # because not all systems understand e.g. LANG=C (notably SCO).
533 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
534 # Non-C LC_CTYPE values break the ctype check.
535 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
536 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
537 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
538 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
539
540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
541 rm -rf conftest* confdefs.h
542 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
543 echo > confdefs.h
544
545 # A filename unique to this package, relative to the directory that
546 # configure is in, which we can look for to find out if srcdir is correct.
547 ac_unique_file=include/main.h
548
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551   ac_srcdir_defaulted=yes
552   # Try the directory containing this script, then its parent.
553   ac_prog=$0
554   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
555   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
556   srcdir=$ac_confdir
557   if test ! -r $srcdir/$ac_unique_file; then
558     srcdir=..
559   fi
560 else
561   ac_srcdir_defaulted=no
562 fi
563 if test ! -r $srcdir/$ac_unique_file; then
564   if test "$ac_srcdir_defaulted" = yes; then
565     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
566   else
567     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
568   fi
569 fi
570 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
571
572 # Prefer explicitly selected file to automatically selected ones.
573 if test -z "$CONFIG_SITE"; then
574   if test "x$prefix" != xNONE; then
575     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
576   else
577     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
578   fi
579 fi
580 for ac_site_file in $CONFIG_SITE; do
581   if test -r "$ac_site_file"; then
582     echo "loading site script $ac_site_file"
583     . "$ac_site_file"
584   fi
585 done
586
587 if test -r "$cache_file"; then
588   echo "loading cache $cache_file"
589   . $cache_file
590 else
591   echo "creating cache $cache_file"
592   > $cache_file
593 fi
594
595 ac_ext=c
596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
597 ac_cpp='$CPP $CPPFLAGS'
598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
600 cross_compiling=$ac_cv_prog_cc_cross
601
602 ac_exeext=
603 ac_objext=o
604 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
605   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
606   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
607     ac_n= ac_c='
608 ' ac_t='        '
609   else
610     ac_n=-n ac_c= ac_t=
611   fi
612 else
613   ac_n= ac_c='\c' ac_t=
614 fi
615
616
617
618
619 ac_aux_dir=
620 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
621   if test -f $ac_dir/install-sh; then
622     ac_aux_dir=$ac_dir
623     ac_install_sh="$ac_aux_dir/install-sh -c"
624     break
625   elif test -f $ac_dir/install.sh; then
626     ac_aux_dir=$ac_dir
627     ac_install_sh="$ac_aux_dir/install.sh -c"
628     break
629   fi
630 done
631 if test -z "$ac_aux_dir"; then
632   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
633 fi
634 ac_config_guess=$ac_aux_dir/config.guess
635 ac_config_sub=$ac_aux_dir/config.sub
636 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
637
638
639 # Do some error checking and defaulting for the host and target type.
640 # The inputs are:
641 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
642 #
643 # The rules are:
644 # 1. You are not allowed to specify --host, --target, and nonopt at the
645 #    same time.
646 # 2. Host defaults to nonopt.
647 # 3. If nonopt is not specified, then host defaults to the current host,
648 #    as determined by config.guess.
649 # 4. Target and build default to nonopt.
650 # 5. If nonopt is not specified, then target and build default to host.
651
652 # The aliases save the names the user supplied, while $host etc.
653 # will get canonicalized.
654 case $host---$target---$nonopt in
655 NONE---*---* | *---NONE---* | *---*---NONE) ;;
656 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
657 esac
658
659
660 # Make sure we can run config.sub.
661 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
662 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
663 fi
664
665 echo $ac_n "checking host system type""... $ac_c" 1>&6
666 echo "configure:667: checking host system type" >&5
667
668 host_alias=$host
669 case "$host_alias" in
670 NONE)
671   case $nonopt in
672   NONE)
673     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
674     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
675     fi ;;
676   *) host_alias=$nonopt ;;
677   esac ;;
678 esac
679
680 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
681 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
682 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
683 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
684 echo "$ac_t""$host" 1>&6
685
686 echo $ac_n "checking target system type""... $ac_c" 1>&6
687 echo "configure:688: checking target system type" >&5
688
689 target_alias=$target
690 case "$target_alias" in
691 NONE)
692   case $nonopt in
693   NONE) target_alias=$host_alias ;;
694   *) target_alias=$nonopt ;;
695   esac ;;
696 esac
697
698 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
699 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
700 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
701 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
702 echo "$ac_t""$target" 1>&6
703
704 echo $ac_n "checking build system type""... $ac_c" 1>&6
705 echo "configure:706: checking build system type" >&5
706
707 build_alias=$build
708 case "$build_alias" in
709 NONE)
710   case $nonopt in
711   NONE) build_alias=$host_alias ;;
712   *) build_alias=$nonopt ;;
713   esac ;;
714 esac
715
716 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
717 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
718 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
719 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
720 echo "$ac_t""$build" 1>&6
721
722 test "$host_alias" != "$target_alias" &&
723   test "$program_prefix$program_suffix$program_transform_name" = \
724     NONENONEs,x,x, &&
725   program_prefix=${target_alias}-
726
727
728 HAVE_VLC=0
729 if test -r src/interface/main.c; then
730   HAVE_VLC=1
731   VLC_VERSION="0.2.92-dev"
732   VLC_CODENAME=Ourumov
733 fi
734
735 HAVE_LIBDVDCSS=0
736 if test -r extras/libdvdcss/libdvdcss.c; then
737   HAVE_LIBDVDCSS=1
738   LIBDVDCSS_VERSION="1.0.1-dev"
739   
740   if test -r extras/libdvdcss/csskeys.h; then
741     cat >> confdefs.h <<\EOF
742 #define HAVE_CSSKEYS 1
743 EOF
744
745   fi
746 fi
747
748 save_CFLAGS="${CFLAGS}"
749 save_LDFLAGS="${LDFLAGS}"
750
751 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
752 echo "configure:753: checking whether ${MAKE-make} sets \${MAKE}" >&5
753 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
754 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
755   echo $ac_n "(cached) $ac_c" 1>&6
756 else
757   cat > conftestmake <<\EOF
758 all:
759         @echo 'ac_maketemp="${MAKE}"'
760 EOF
761 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
762 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
763 if test -n "$ac_maketemp"; then
764   eval ac_cv_prog_make_${ac_make}_set=yes
765 else
766   eval ac_cv_prog_make_${ac_make}_set=no
767 fi
768 rm -f conftestmake
769 fi
770 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
771   echo "$ac_t""yes" 1>&6
772   SET_MAKE=
773 else
774   echo "$ac_t""no" 1>&6
775   SET_MAKE="MAKE=${MAKE-make}"
776 fi
777
778 # Extract the first word of "gcc", so it can be a program name with args.
779 set dummy gcc; ac_word=$2
780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781 echo "configure:782: checking for $ac_word" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
783   echo $ac_n "(cached) $ac_c" 1>&6
784 else
785   if test -n "$CC"; then
786   ac_cv_prog_CC="$CC" # Let the user override the test.
787 else
788   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
789   ac_dummy="$PATH"
790   for ac_dir in $ac_dummy; do
791     test -z "$ac_dir" && ac_dir=.
792     if test -f $ac_dir/$ac_word; then
793       ac_cv_prog_CC="gcc"
794       break
795     fi
796   done
797   IFS="$ac_save_ifs"
798 fi
799 fi
800 CC="$ac_cv_prog_CC"
801 if test -n "$CC"; then
802   echo "$ac_t""$CC" 1>&6
803 else
804   echo "$ac_t""no" 1>&6
805 fi
806
807 if test -z "$CC"; then
808   # Extract the first word of "cc", so it can be a program name with args.
809 set dummy cc; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813   echo $ac_n "(cached) $ac_c" 1>&6
814 else
815   if test -n "$CC"; then
816   ac_cv_prog_CC="$CC" # Let the user override the test.
817 else
818   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
819   ac_prog_rejected=no
820   ac_dummy="$PATH"
821   for ac_dir in $ac_dummy; do
822     test -z "$ac_dir" && ac_dir=.
823     if test -f $ac_dir/$ac_word; then
824       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
825         ac_prog_rejected=yes
826         continue
827       fi
828       ac_cv_prog_CC="cc"
829       break
830     fi
831   done
832   IFS="$ac_save_ifs"
833 if test $ac_prog_rejected = yes; then
834   # We found a bogon in the path, so make sure we never use it.
835   set dummy $ac_cv_prog_CC
836   shift
837   if test $# -gt 0; then
838     # We chose a different compiler from the bogus one.
839     # However, it has the same basename, so the bogon will be chosen
840     # first if we set CC to just the basename; use the full file name.
841     shift
842     set dummy "$ac_dir/$ac_word" "$@"
843     shift
844     ac_cv_prog_CC="$@"
845   fi
846 fi
847 fi
848 fi
849 CC="$ac_cv_prog_CC"
850 if test -n "$CC"; then
851   echo "$ac_t""$CC" 1>&6
852 else
853   echo "$ac_t""no" 1>&6
854 fi
855
856   if test -z "$CC"; then
857     case "`uname -s`" in
858     *win32* | *WIN32*)
859       # Extract the first word of "cl", so it can be a program name with args.
860 set dummy cl; ac_word=$2
861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
862 echo "configure:863: checking for $ac_word" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
864   echo $ac_n "(cached) $ac_c" 1>&6
865 else
866   if test -n "$CC"; then
867   ac_cv_prog_CC="$CC" # Let the user override the test.
868 else
869   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
870   ac_dummy="$PATH"
871   for ac_dir in $ac_dummy; do
872     test -z "$ac_dir" && ac_dir=.
873     if test -f $ac_dir/$ac_word; then
874       ac_cv_prog_CC="cl"
875       break
876     fi
877   done
878   IFS="$ac_save_ifs"
879 fi
880 fi
881 CC="$ac_cv_prog_CC"
882 if test -n "$CC"; then
883   echo "$ac_t""$CC" 1>&6
884 else
885   echo "$ac_t""no" 1>&6
886 fi
887  ;;
888     esac
889   fi
890   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
891 fi
892
893 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
894 echo "configure:895: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
895
896 ac_ext=c
897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
898 ac_cpp='$CPP $CPPFLAGS'
899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
901 cross_compiling=$ac_cv_prog_cc_cross
902
903 cat > conftest.$ac_ext << EOF
904
905 #line 906 "configure"
906 #include "confdefs.h"
907
908 main(){return(0);}
909 EOF
910 if { (eval echo configure:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
911   ac_cv_prog_cc_works=yes
912   # If we can't run a trivial program, we are probably using a cross compiler.
913   if (./conftest; exit) 2>/dev/null; then
914     ac_cv_prog_cc_cross=no
915   else
916     ac_cv_prog_cc_cross=yes
917   fi
918 else
919   echo "configure: failed program was:" >&5
920   cat conftest.$ac_ext >&5
921   ac_cv_prog_cc_works=no
922 fi
923 rm -fr conftest*
924 ac_ext=c
925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
926 ac_cpp='$CPP $CPPFLAGS'
927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
929 cross_compiling=$ac_cv_prog_cc_cross
930
931 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
932 if test $ac_cv_prog_cc_works = no; then
933   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
934 fi
935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
936 echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
937 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
938 cross_compiling=$ac_cv_prog_cc_cross
939
940 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
941 echo "configure:942: checking whether we are using GNU C" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
943   echo $ac_n "(cached) $ac_c" 1>&6
944 else
945   cat > conftest.c <<EOF
946 #ifdef __GNUC__
947   yes;
948 #endif
949 EOF
950 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
951   ac_cv_prog_gcc=yes
952 else
953   ac_cv_prog_gcc=no
954 fi
955 fi
956
957 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
958
959 if test $ac_cv_prog_gcc = yes; then
960   GCC=yes
961 else
962   GCC=
963 fi
964
965 ac_test_CFLAGS="${CFLAGS+set}"
966 ac_save_CFLAGS="$CFLAGS"
967 CFLAGS=
968 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
969 echo "configure:970: checking whether ${CC-cc} accepts -g" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
971   echo $ac_n "(cached) $ac_c" 1>&6
972 else
973   echo 'void f(){}' > conftest.c
974 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
975   ac_cv_prog_cc_g=yes
976 else
977   ac_cv_prog_cc_g=no
978 fi
979 rm -f conftest*
980
981 fi
982
983 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
984 if test "$ac_test_CFLAGS" = set; then
985   CFLAGS="$ac_save_CFLAGS"
986 elif test $ac_cv_prog_cc_g = yes; then
987   if test "$GCC" = yes; then
988     CFLAGS="-g -O2"
989   else
990     CFLAGS="-g"
991   fi
992 else
993   if test "$GCC" = yes; then
994     CFLAGS="-O2"
995   else
996     CFLAGS=
997   fi
998 fi
999
1000 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1001 echo "configure:1002: checking how to run the C preprocessor" >&5
1002 # On Suns, sometimes $CPP names a directory.
1003 if test -n "$CPP" && test -d "$CPP"; then
1004   CPP=
1005 fi
1006 if test -z "$CPP"; then
1007 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1008   echo $ac_n "(cached) $ac_c" 1>&6
1009 else
1010     # This must be in double quotes, not single quotes, because CPP may get
1011   # substituted into the Makefile and "${CC-cc}" will confuse make.
1012   CPP="${CC-cc} -E"
1013   # On the NeXT, cc -E runs the code through the compiler's parser,
1014   # not just through cpp.
1015   cat > conftest.$ac_ext <<EOF
1016 #line 1017 "configure"
1017 #include "confdefs.h"
1018 #include <assert.h>
1019 Syntax Error
1020 EOF
1021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1022 { (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1024 if test -z "$ac_err"; then
1025   :
1026 else
1027   echo "$ac_err" >&5
1028   echo "configure: failed program was:" >&5
1029   cat conftest.$ac_ext >&5
1030   rm -rf conftest*
1031   CPP="${CC-cc} -E -traditional-cpp"
1032   cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1035 #include <assert.h>
1036 Syntax Error
1037 EOF
1038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1039 { (eval echo configure:1040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1041 if test -z "$ac_err"; then
1042   :
1043 else
1044   echo "$ac_err" >&5
1045   echo "configure: failed program was:" >&5
1046   cat conftest.$ac_ext >&5
1047   rm -rf conftest*
1048   CPP="${CC-cc} -nologo -E"
1049   cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1052 #include <assert.h>
1053 Syntax Error
1054 EOF
1055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1056 { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1058 if test -z "$ac_err"; then
1059   :
1060 else
1061   echo "$ac_err" >&5
1062   echo "configure: failed program was:" >&5
1063   cat conftest.$ac_ext >&5
1064   rm -rf conftest*
1065   CPP=/lib/cpp
1066 fi
1067 rm -f conftest*
1068 fi
1069 rm -f conftest*
1070 fi
1071 rm -f conftest*
1072   ac_cv_prog_CPP="$CPP"
1073 fi
1074   CPP="$ac_cv_prog_CPP"
1075 else
1076   ac_cv_prog_CPP="$CPP"
1077 fi
1078 echo "$ac_t""$CPP" 1>&6
1079
1080
1081 ALL_LINGUAS="de fr ru"
1082
1083 cat >> confdefs.h <<EOF
1084 #define PACKAGE "vlc"
1085 EOF
1086
1087 cat >> confdefs.h <<EOF
1088 #define VERSION "$VLC_VERSION"
1089 EOF
1090
1091 # Extract the first word of "ranlib", so it can be a program name with args.
1092 set dummy ranlib; ac_word=$2
1093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094 echo "configure:1095: checking for $ac_word" >&5
1095 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1096   echo $ac_n "(cached) $ac_c" 1>&6
1097 else
1098   if test -n "$RANLIB"; then
1099   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1100 else
1101   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1102   ac_dummy="$PATH"
1103   for ac_dir in $ac_dummy; do
1104     test -z "$ac_dir" && ac_dir=.
1105     if test -f $ac_dir/$ac_word; then
1106       ac_cv_prog_RANLIB="ranlib"
1107       break
1108     fi
1109   done
1110   IFS="$ac_save_ifs"
1111   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1112 fi
1113 fi
1114 RANLIB="$ac_cv_prog_RANLIB"
1115 if test -n "$RANLIB"; then
1116   echo "$ac_t""$RANLIB" 1>&6
1117 else
1118   echo "$ac_t""no" 1>&6
1119 fi
1120
1121
1122         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1123 echo "configure:1124: checking for strerror in -lcposix" >&5
1124 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1126   echo $ac_n "(cached) $ac_c" 1>&6
1127 else
1128   ac_save_LIBS="$LIBS"
1129 LIBS="-lcposix  $LIBS"
1130 cat > conftest.$ac_ext <<EOF
1131 #line 1132 "configure"
1132 #include "confdefs.h"
1133 /* Override any gcc2 internal prototype to avoid an error.  */
1134 /* We use char because int might match the return type of a gcc2
1135     builtin and then its argument prototype would still apply.  */
1136 char strerror();
1137
1138 int main() {
1139 strerror()
1140 ; return 0; }
1141 EOF
1142 if { (eval echo configure:1143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1143   rm -rf conftest*
1144   eval "ac_cv_lib_$ac_lib_var=yes"
1145 else
1146   echo "configure: failed program was:" >&5
1147   cat conftest.$ac_ext >&5
1148   rm -rf conftest*
1149   eval "ac_cv_lib_$ac_lib_var=no"
1150 fi
1151 rm -f conftest*
1152 LIBS="$ac_save_LIBS"
1153
1154 fi
1155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1156   echo "$ac_t""yes" 1>&6
1157   LIBS="$LIBS -lcposix"
1158 else
1159   echo "$ac_t""no" 1>&6
1160 fi
1161
1162   
1163
1164 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1165 echo "configure:1166: checking for ANSI C header files" >&5
1166 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1167   echo $ac_n "(cached) $ac_c" 1>&6
1168 else
1169   cat > conftest.$ac_ext <<EOF
1170 #line 1171 "configure"
1171 #include "confdefs.h"
1172 #include <stdlib.h>
1173 #include <stdarg.h>
1174 #include <string.h>
1175 #include <float.h>
1176 EOF
1177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1178 { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1180 if test -z "$ac_err"; then
1181   rm -rf conftest*
1182   ac_cv_header_stdc=yes
1183 else
1184   echo "$ac_err" >&5
1185   echo "configure: failed program was:" >&5
1186   cat conftest.$ac_ext >&5
1187   rm -rf conftest*
1188   ac_cv_header_stdc=no
1189 fi
1190 rm -f conftest*
1191
1192 if test $ac_cv_header_stdc = yes; then
1193   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1194 cat > conftest.$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1197 #include <string.h>
1198 EOF
1199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1200   egrep "memchr" >/dev/null 2>&1; then
1201   :
1202 else
1203   rm -rf conftest*
1204   ac_cv_header_stdc=no
1205 fi
1206 rm -f conftest*
1207
1208 fi
1209
1210 if test $ac_cv_header_stdc = yes; then
1211   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1212 cat > conftest.$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1215 #include <stdlib.h>
1216 EOF
1217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1218   egrep "free" >/dev/null 2>&1; then
1219   :
1220 else
1221   rm -rf conftest*
1222   ac_cv_header_stdc=no
1223 fi
1224 rm -f conftest*
1225
1226 fi
1227
1228 if test $ac_cv_header_stdc = yes; then
1229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1230 if test "$cross_compiling" = yes; then
1231   :
1232 else
1233   cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 #include <ctype.h>
1237 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1238 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1240 int main () { int i; for (i = 0; i < 256; i++)
1241 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1242 exit (0); }
1243
1244 EOF
1245 if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1246 then
1247   :
1248 else
1249   echo "configure: failed program was:" >&5
1250   cat conftest.$ac_ext >&5
1251   rm -fr conftest*
1252   ac_cv_header_stdc=no
1253 fi
1254 rm -fr conftest*
1255 fi
1256
1257 fi
1258 fi
1259
1260 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1261 if test $ac_cv_header_stdc = yes; then
1262   cat >> confdefs.h <<\EOF
1263 #define STDC_HEADERS 1
1264 EOF
1265
1266 fi
1267
1268 echo $ac_n "checking for working const""... $ac_c" 1>&6
1269 echo "configure:1270: checking for working const" >&5
1270 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1271   echo $ac_n "(cached) $ac_c" 1>&6
1272 else
1273   cat > conftest.$ac_ext <<EOF
1274 #line 1275 "configure"
1275 #include "confdefs.h"
1276
1277 int main() {
1278
1279 /* Ultrix mips cc rejects this.  */
1280 typedef int charset[2]; const charset x;
1281 /* SunOS 4.1.1 cc rejects this.  */
1282 char const *const *ccp;
1283 char **p;
1284 /* NEC SVR4.0.2 mips cc rejects this.  */
1285 struct point {int x, y;};
1286 static struct point const zero = {0,0};
1287 /* AIX XL C 1.02.0.0 rejects this.
1288    It does not let you subtract one const X* pointer from another in an arm
1289    of an if-expression whose if-part is not a constant expression */
1290 const char *g = "string";
1291 ccp = &g + (g ? g-g : 0);
1292 /* HPUX 7.0 cc rejects these. */
1293 ++ccp;
1294 p = (char**) ccp;
1295 ccp = (char const *const *) p;
1296 { /* SCO 3.2v4 cc rejects this.  */
1297   char *t;
1298   char const *s = 0 ? (char *) 0 : (char const *) 0;
1299
1300   *t++ = 0;
1301 }
1302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1303   int x[] = {25, 17};
1304   const int *foo = &x[0];
1305   ++foo;
1306 }
1307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1308   typedef const int *iptr;
1309   iptr p = 0;
1310   ++p;
1311 }
1312 { /* AIX XL C 1.02.0.0 rejects this saying
1313      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1314   struct s { int j; const int *ap[3]; };
1315   struct s *b; b->j = 5;
1316 }
1317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1318   const int foo = 10;
1319 }
1320
1321 ; return 0; }
1322 EOF
1323 if { (eval echo configure:1324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324   rm -rf conftest*
1325   ac_cv_c_const=yes
1326 else
1327   echo "configure: failed program was:" >&5
1328   cat conftest.$ac_ext >&5
1329   rm -rf conftest*
1330   ac_cv_c_const=no
1331 fi
1332 rm -f conftest*
1333 fi
1334
1335 echo "$ac_t""$ac_cv_c_const" 1>&6
1336 if test $ac_cv_c_const = no; then
1337   cat >> confdefs.h <<\EOF
1338 #define const 
1339 EOF
1340
1341 fi
1342
1343 echo $ac_n "checking for inline""... $ac_c" 1>&6
1344 echo "configure:1345: checking for inline" >&5
1345 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1346   echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348   ac_cv_c_inline=no
1349 for ac_kw in inline __inline__ __inline; do
1350   cat > conftest.$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1353
1354 int main() {
1355 } $ac_kw foo() {
1356 ; return 0; }
1357 EOF
1358 if { (eval echo configure:1359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1359   rm -rf conftest*
1360   ac_cv_c_inline=$ac_kw; break
1361 else
1362   echo "configure: failed program was:" >&5
1363   cat conftest.$ac_ext >&5
1364 fi
1365 rm -f conftest*
1366 done
1367
1368 fi
1369
1370 echo "$ac_t""$ac_cv_c_inline" 1>&6
1371 case "$ac_cv_c_inline" in
1372   inline | yes) ;;
1373   no) cat >> confdefs.h <<\EOF
1374 #define inline 
1375 EOF
1376  ;;
1377   *)  cat >> confdefs.h <<EOF
1378 #define inline $ac_cv_c_inline
1379 EOF
1380  ;;
1381 esac
1382
1383 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1384 echo "configure:1385: checking for off_t" >&5
1385 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1386   echo $ac_n "(cached) $ac_c" 1>&6
1387 else
1388   cat > conftest.$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1391 #include <sys/types.h>
1392 #if STDC_HEADERS
1393 #include <stdlib.h>
1394 #include <stddef.h>
1395 #endif
1396 EOF
1397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1398   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1399   rm -rf conftest*
1400   ac_cv_type_off_t=yes
1401 else
1402   rm -rf conftest*
1403   ac_cv_type_off_t=no
1404 fi
1405 rm -f conftest*
1406
1407 fi
1408 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1409 if test $ac_cv_type_off_t = no; then
1410   cat >> confdefs.h <<\EOF
1411 #define off_t long
1412 EOF
1413
1414 fi
1415
1416 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1417 echo "configure:1418: checking for size_t" >&5
1418 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1419   echo $ac_n "(cached) $ac_c" 1>&6
1420 else
1421   cat > conftest.$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1424 #include <sys/types.h>
1425 #if STDC_HEADERS
1426 #include <stdlib.h>
1427 #include <stddef.h>
1428 #endif
1429 EOF
1430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1431   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1432   rm -rf conftest*
1433   ac_cv_type_size_t=yes
1434 else
1435   rm -rf conftest*
1436   ac_cv_type_size_t=no
1437 fi
1438 rm -f conftest*
1439
1440 fi
1441 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1442 if test $ac_cv_type_size_t = no; then
1443   cat >> confdefs.h <<\EOF
1444 #define size_t unsigned
1445 EOF
1446
1447 fi
1448
1449 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1450 # for constant arguments.  Useless!
1451 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1452 echo "configure:1453: checking for working alloca.h" >&5
1453 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1454   echo $ac_n "(cached) $ac_c" 1>&6
1455 else
1456   cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1459 #include <alloca.h>
1460 int main() {
1461 char *p = alloca(2 * sizeof(int));
1462 ; return 0; }
1463 EOF
1464 if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1465   rm -rf conftest*
1466   ac_cv_header_alloca_h=yes
1467 else
1468   echo "configure: failed program was:" >&5
1469   cat conftest.$ac_ext >&5
1470   rm -rf conftest*
1471   ac_cv_header_alloca_h=no
1472 fi
1473 rm -f conftest*
1474 fi
1475
1476 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1477 if test $ac_cv_header_alloca_h = yes; then
1478   cat >> confdefs.h <<\EOF
1479 #define HAVE_ALLOCA_H 1
1480 EOF
1481
1482 fi
1483
1484 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1485 echo "configure:1486: checking for alloca" >&5
1486 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1487   echo $ac_n "(cached) $ac_c" 1>&6
1488 else
1489   cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1492
1493 #ifdef __GNUC__
1494 # define alloca __builtin_alloca
1495 #else
1496 # ifdef _MSC_VER
1497 #  include <malloc.h>
1498 #  define alloca _alloca
1499 # else
1500 #  if HAVE_ALLOCA_H
1501 #   include <alloca.h>
1502 #  else
1503 #   ifdef _AIX
1504  #pragma alloca
1505 #   else
1506 #    ifndef alloca /* predefined by HP cc +Olibcalls */
1507 char *alloca ();
1508 #    endif
1509 #   endif
1510 #  endif
1511 # endif
1512 #endif
1513
1514 int main() {
1515 char *p = (char *) alloca(1);
1516 ; return 0; }
1517 EOF
1518 if { (eval echo configure:1519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1519   rm -rf conftest*
1520   ac_cv_func_alloca_works=yes
1521 else
1522   echo "configure: failed program was:" >&5
1523   cat conftest.$ac_ext >&5
1524   rm -rf conftest*
1525   ac_cv_func_alloca_works=no
1526 fi
1527 rm -f conftest*
1528 fi
1529
1530 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1531 if test $ac_cv_func_alloca_works = yes; then
1532   cat >> confdefs.h <<\EOF
1533 #define HAVE_ALLOCA 1
1534 EOF
1535
1536 fi
1537
1538 if test $ac_cv_func_alloca_works = no; then
1539   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1540   # that cause trouble.  Some versions do not even contain alloca or
1541   # contain a buggy version.  If you still want to use their alloca,
1542   # use ar to extract alloca.o from them instead of compiling alloca.c.
1543   ALLOCA=alloca.${ac_objext}
1544   cat >> confdefs.h <<\EOF
1545 #define C_ALLOCA 1
1546 EOF
1547
1548
1549 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1550 echo "configure:1551: checking whether alloca needs Cray hooks" >&5
1551 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1552   echo $ac_n "(cached) $ac_c" 1>&6
1553 else
1554   cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 #if defined(CRAY) && ! defined(CRAY2)
1558 webecray
1559 #else
1560 wenotbecray
1561 #endif
1562
1563 EOF
1564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1565   egrep "webecray" >/dev/null 2>&1; then
1566   rm -rf conftest*
1567   ac_cv_os_cray=yes
1568 else
1569   rm -rf conftest*
1570   ac_cv_os_cray=no
1571 fi
1572 rm -f conftest*
1573
1574 fi
1575
1576 echo "$ac_t""$ac_cv_os_cray" 1>&6
1577 if test $ac_cv_os_cray = yes; then
1578 for ac_func in _getb67 GETB67 getb67; do
1579   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1580 echo "configure:1581: checking for $ac_func" >&5
1581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1582   echo $ac_n "(cached) $ac_c" 1>&6
1583 else
1584   cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 /* System header to define __stub macros and hopefully few prototypes,
1588     which can conflict with char $ac_func(); below.  */
1589 #include <assert.h>
1590 /* Override any gcc2 internal prototype to avoid an error.  */
1591 /* We use char because int might match the return type of a gcc2
1592     builtin and then its argument prototype would still apply.  */
1593 char $ac_func();
1594
1595 int main() {
1596
1597 /* The GNU C library defines this for functions which it implements
1598     to always fail with ENOSYS.  Some functions are actually named
1599     something starting with __ and the normal name is an alias.  */
1600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1601 choke me
1602 #else
1603 $ac_func();
1604 #endif
1605
1606 ; return 0; }
1607 EOF
1608 if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1609   rm -rf conftest*
1610   eval "ac_cv_func_$ac_func=yes"
1611 else
1612   echo "configure: failed program was:" >&5
1613   cat conftest.$ac_ext >&5
1614   rm -rf conftest*
1615   eval "ac_cv_func_$ac_func=no"
1616 fi
1617 rm -f conftest*
1618 fi
1619
1620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1621   echo "$ac_t""yes" 1>&6
1622   cat >> confdefs.h <<EOF
1623 #define CRAY_STACKSEG_END $ac_func
1624 EOF
1625
1626   break
1627 else
1628   echo "$ac_t""no" 1>&6
1629 fi
1630
1631 done
1632 fi
1633
1634 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1635 echo "configure:1636: checking stack direction for C alloca" >&5
1636 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1637   echo $ac_n "(cached) $ac_c" 1>&6
1638 else
1639   if test "$cross_compiling" = yes; then
1640   ac_cv_c_stack_direction=0
1641 else
1642   cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 find_stack_direction ()
1646 {
1647   static char *addr = 0;
1648   auto char dummy;
1649   if (addr == 0)
1650     {
1651       addr = &dummy;
1652       return find_stack_direction ();
1653     }
1654   else
1655     return (&dummy > addr) ? 1 : -1;
1656 }
1657 main ()
1658 {
1659   exit (find_stack_direction() < 0);
1660 }
1661 EOF
1662 if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1663 then
1664   ac_cv_c_stack_direction=1
1665 else
1666   echo "configure: failed program was:" >&5
1667   cat conftest.$ac_ext >&5
1668   rm -fr conftest*
1669   ac_cv_c_stack_direction=-1
1670 fi
1671 rm -fr conftest*
1672 fi
1673
1674 fi
1675
1676 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1677 cat >> confdefs.h <<EOF
1678 #define STACK_DIRECTION $ac_cv_c_stack_direction
1679 EOF
1680
1681 fi
1682
1683 for ac_hdr in unistd.h
1684 do
1685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_hdr" >&5
1688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1689   echo $ac_n "(cached) $ac_c" 1>&6
1690 else
1691   cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1694 #include <$ac_hdr>
1695 EOF
1696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1697 { (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1699 if test -z "$ac_err"; then
1700   rm -rf conftest*
1701   eval "ac_cv_header_$ac_safe=yes"
1702 else
1703   echo "$ac_err" >&5
1704   echo "configure: failed program was:" >&5
1705   cat conftest.$ac_ext >&5
1706   rm -rf conftest*
1707   eval "ac_cv_header_$ac_safe=no"
1708 fi
1709 rm -f conftest*
1710 fi
1711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1712   echo "$ac_t""yes" 1>&6
1713     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1714   cat >> confdefs.h <<EOF
1715 #define $ac_tr_hdr 1
1716 EOF
1717  
1718 else
1719   echo "$ac_t""no" 1>&6
1720 fi
1721 done
1722
1723 for ac_func in getpagesize
1724 do
1725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1726 echo "configure:1727: checking for $ac_func" >&5
1727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1728   echo $ac_n "(cached) $ac_c" 1>&6
1729 else
1730   cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1733 /* System header to define __stub macros and hopefully few prototypes,
1734     which can conflict with char $ac_func(); below.  */
1735 #include <assert.h>
1736 /* Override any gcc2 internal prototype to avoid an error.  */
1737 /* We use char because int might match the return type of a gcc2
1738     builtin and then its argument prototype would still apply.  */
1739 char $ac_func();
1740
1741 int main() {
1742
1743 /* The GNU C library defines this for functions which it implements
1744     to always fail with ENOSYS.  Some functions are actually named
1745     something starting with __ and the normal name is an alias.  */
1746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1747 choke me
1748 #else
1749 $ac_func();
1750 #endif
1751
1752 ; return 0; }
1753 EOF
1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1755   rm -rf conftest*
1756   eval "ac_cv_func_$ac_func=yes"
1757 else
1758   echo "configure: failed program was:" >&5
1759   cat conftest.$ac_ext >&5
1760   rm -rf conftest*
1761   eval "ac_cv_func_$ac_func=no"
1762 fi
1763 rm -f conftest*
1764 fi
1765
1766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1767   echo "$ac_t""yes" 1>&6
1768     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1769   cat >> confdefs.h <<EOF
1770 #define $ac_tr_func 1
1771 EOF
1772  
1773 else
1774   echo "$ac_t""no" 1>&6
1775 fi
1776 done
1777
1778 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1779 echo "configure:1780: checking for working mmap" >&5
1780 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1781   echo $ac_n "(cached) $ac_c" 1>&6
1782 else
1783   if test "$cross_compiling" = yes; then
1784   ac_cv_func_mmap_fixed_mapped=no
1785 else
1786   cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1789
1790 /* Thanks to Mike Haertel and Jim Avera for this test.
1791    Here is a matrix of mmap possibilities:
1792         mmap private not fixed
1793         mmap private fixed at somewhere currently unmapped
1794         mmap private fixed at somewhere already mapped
1795         mmap shared not fixed
1796         mmap shared fixed at somewhere currently unmapped
1797         mmap shared fixed at somewhere already mapped
1798    For private mappings, we should verify that changes cannot be read()
1799    back from the file, nor mmap's back from the file at a different
1800    address.  (There have been systems where private was not correctly
1801    implemented like the infamous i386 svr4.0, and systems where the
1802    VM page cache was not coherent with the filesystem buffer cache
1803    like early versions of FreeBSD and possibly contemporary NetBSD.)
1804    For shared mappings, we should conversely verify that changes get
1805    propogated back to all the places they're supposed to be.
1806
1807    Grep wants private fixed already mapped.
1808    The main things grep needs to know about mmap are:
1809    * does it exist and is it safe to write into the mmap'd area
1810    * how to use it (BSD variants)  */
1811 #include <sys/types.h>
1812 #include <fcntl.h>
1813 #include <sys/mman.h>
1814
1815 /* This mess was copied from the GNU getpagesize.h.  */
1816 #ifndef HAVE_GETPAGESIZE
1817 # ifdef HAVE_UNISTD_H
1818 #  include <unistd.h>
1819 # endif
1820
1821 /* Assume that all systems that can run configure have sys/param.h.  */
1822 # ifndef HAVE_SYS_PARAM_H
1823 #  define HAVE_SYS_PARAM_H 1
1824 # endif
1825
1826 # ifdef _SC_PAGESIZE
1827 #  define getpagesize() sysconf(_SC_PAGESIZE)
1828 # else /* no _SC_PAGESIZE */
1829 #  ifdef HAVE_SYS_PARAM_H
1830 #   include <sys/param.h>
1831 #   ifdef EXEC_PAGESIZE
1832 #    define getpagesize() EXEC_PAGESIZE
1833 #   else /* no EXEC_PAGESIZE */
1834 #    ifdef NBPG
1835 #     define getpagesize() NBPG * CLSIZE
1836 #     ifndef CLSIZE
1837 #      define CLSIZE 1
1838 #     endif /* no CLSIZE */
1839 #    else /* no NBPG */
1840 #     ifdef NBPC
1841 #      define getpagesize() NBPC
1842 #     else /* no NBPC */
1843 #      ifdef PAGESIZE
1844 #       define getpagesize() PAGESIZE
1845 #      endif /* PAGESIZE */
1846 #     endif /* no NBPC */
1847 #    endif /* no NBPG */
1848 #   endif /* no EXEC_PAGESIZE */
1849 #  else /* no HAVE_SYS_PARAM_H */
1850 #   define getpagesize() 8192   /* punt totally */
1851 #  endif /* no HAVE_SYS_PARAM_H */
1852 # endif /* no _SC_PAGESIZE */
1853
1854 #endif /* no HAVE_GETPAGESIZE */
1855
1856 #ifdef __cplusplus
1857 extern "C" { void *malloc(unsigned); }
1858 #else
1859 char *malloc();
1860 #endif
1861
1862 int
1863 main()
1864 {
1865         char *data, *data2, *data3;
1866         int i, pagesize;
1867         int fd;
1868
1869         pagesize = getpagesize();
1870
1871         /*
1872          * First, make a file with some known garbage in it.
1873          */
1874         data = malloc(pagesize);
1875         if (!data)
1876                 exit(1);
1877         for (i = 0; i < pagesize; ++i)
1878                 *(data + i) = rand();
1879         umask(0);
1880         fd = creat("conftestmmap", 0600);
1881         if (fd < 0)
1882                 exit(1);
1883         if (write(fd, data, pagesize) != pagesize)
1884                 exit(1);
1885         close(fd);
1886
1887         /*
1888          * Next, try to mmap the file at a fixed address which
1889          * already has something else allocated at it.  If we can,
1890          * also make sure that we see the same garbage.
1891          */
1892         fd = open("conftestmmap", O_RDWR);
1893         if (fd < 0)
1894                 exit(1);
1895         data2 = malloc(2 * pagesize);
1896         if (!data2)
1897                 exit(1);
1898         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1899         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1900             MAP_PRIVATE | MAP_FIXED, fd, 0L))
1901                 exit(1);
1902         for (i = 0; i < pagesize; ++i)
1903                 if (*(data + i) != *(data2 + i))
1904                         exit(1);
1905
1906         /*
1907          * Finally, make sure that changes to the mapped area
1908          * do not percolate back to the file as seen by read().
1909          * (This is a bug on some variants of i386 svr4.0.)
1910          */
1911         for (i = 0; i < pagesize; ++i)
1912                 *(data2 + i) = *(data2 + i) + 1;
1913         data3 = malloc(pagesize);
1914         if (!data3)
1915                 exit(1);
1916         if (read(fd, data3, pagesize) != pagesize)
1917                 exit(1);
1918         for (i = 0; i < pagesize; ++i)
1919                 if (*(data + i) != *(data3 + i))
1920                         exit(1);
1921         close(fd);
1922         unlink("conftestmmap");
1923         exit(0);
1924 }
1925
1926 EOF
1927 if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1928 then
1929   ac_cv_func_mmap_fixed_mapped=yes
1930 else
1931   echo "configure: failed program was:" >&5
1932   cat conftest.$ac_ext >&5
1933   rm -fr conftest*
1934   ac_cv_func_mmap_fixed_mapped=no
1935 fi
1936 rm -fr conftest*
1937 fi
1938
1939 fi
1940
1941 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1942 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1943   cat >> confdefs.h <<\EOF
1944 #define HAVE_MMAP 1
1945 EOF
1946
1947 fi
1948
1949
1950     echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
1951 echo "configure:1952: checking whether we are using the GNU C Library 2.1 or newer" >&5
1952 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
1953   echo $ac_n "(cached) $ac_c" 1>&6
1954 else
1955   cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1958
1959 #include <features.h>
1960 #ifdef __GNU_LIBRARY__
1961  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
1962   Lucky GNU user
1963  #endif
1964 #endif
1965         
1966 EOF
1967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1968   egrep "Lucky GNU user" >/dev/null 2>&1; then
1969   rm -rf conftest*
1970   ac_cv_gnu_library_2_1=yes
1971 else
1972   rm -rf conftest*
1973   ac_cv_gnu_library_2_1=no
1974 fi
1975 rm -f conftest*
1976
1977       
1978     
1979 fi
1980
1981 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
1982     
1983     GLIBC21="$ac_cv_gnu_library_2_1"
1984   
1985
1986                                     
1987    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
1988 stdlib.h string.h unistd.h sys/param.h
1989 do
1990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_hdr" >&5
1993 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <$ac_hdr>
2000 EOF
2001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002 { (eval echo configure:2003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2004 if test -z "$ac_err"; then
2005   rm -rf conftest*
2006   eval "ac_cv_header_$ac_safe=yes"
2007 else
2008   echo "$ac_err" >&5
2009   echo "configure: failed program was:" >&5
2010   cat conftest.$ac_ext >&5
2011   rm -rf conftest*
2012   eval "ac_cv_header_$ac_safe=no"
2013 fi
2014 rm -f conftest*
2015 fi
2016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2017   echo "$ac_t""yes" 1>&6
2018     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2019   cat >> confdefs.h <<EOF
2020 #define $ac_tr_hdr 1
2021 EOF
2022  
2023 else
2024   echo "$ac_t""no" 1>&6
2025 fi
2026 done
2027
2028    for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2029 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2030 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2031 do
2032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2033 echo "configure:2034: checking for $ac_func" >&5
2034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2035   echo $ac_n "(cached) $ac_c" 1>&6
2036 else
2037   cat > conftest.$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2040 /* System header to define __stub macros and hopefully few prototypes,
2041     which can conflict with char $ac_func(); below.  */
2042 #include <assert.h>
2043 /* Override any gcc2 internal prototype to avoid an error.  */
2044 /* We use char because int might match the return type of a gcc2
2045     builtin and then its argument prototype would still apply.  */
2046 char $ac_func();
2047
2048 int main() {
2049
2050 /* The GNU C library defines this for functions which it implements
2051     to always fail with ENOSYS.  Some functions are actually named
2052     something starting with __ and the normal name is an alias.  */
2053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2054 choke me
2055 #else
2056 $ac_func();
2057 #endif
2058
2059 ; return 0; }
2060 EOF
2061 if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2062   rm -rf conftest*
2063   eval "ac_cv_func_$ac_func=yes"
2064 else
2065   echo "configure: failed program was:" >&5
2066   cat conftest.$ac_ext >&5
2067   rm -rf conftest*
2068   eval "ac_cv_func_$ac_func=no"
2069 fi
2070 rm -f conftest*
2071 fi
2072
2073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2074   echo "$ac_t""yes" 1>&6
2075     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2076   cat >> confdefs.h <<EOF
2077 #define $ac_tr_func 1
2078 EOF
2079  
2080 else
2081   echo "$ac_t""no" 1>&6
2082 fi
2083 done
2084
2085
2086    
2087     
2088   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2089 if test "${with_libiconv_prefix+set}" = set; then
2090   withval="$with_libiconv_prefix"
2091   
2092     for dir in `echo "$withval" | tr : ' '`; do
2093       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2094       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2095     done
2096    
2097 fi
2098
2099
2100   echo $ac_n "checking for iconv""... $ac_c" 1>&6
2101 echo "configure:2102: checking for iconv" >&5
2102 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2103   echo $ac_n "(cached) $ac_c" 1>&6
2104 else
2105   
2106     am_cv_func_iconv="no, consider installing GNU libiconv"
2107     am_cv_lib_iconv=no
2108     cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2111 #include <stdlib.h>
2112 #include <iconv.h>
2113 int main() {
2114 iconv_t cd = iconv_open("","");
2115        iconv(cd,NULL,NULL,NULL,NULL);
2116        iconv_close(cd);
2117 ; return 0; }
2118 EOF
2119 if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2120   rm -rf conftest*
2121   am_cv_func_iconv=yes
2122 else
2123   echo "configure: failed program was:" >&5
2124   cat conftest.$ac_ext >&5
2125 fi
2126 rm -f conftest*
2127     if test "$am_cv_func_iconv" != yes; then
2128       am_save_LIBS="$LIBS"
2129       LIBS="$LIBS -liconv"
2130       cat > conftest.$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
2133 #include <stdlib.h>
2134 #include <iconv.h>
2135 int main() {
2136 iconv_t cd = iconv_open("","");
2137          iconv(cd,NULL,NULL,NULL,NULL);
2138          iconv_close(cd);
2139 ; return 0; }
2140 EOF
2141 if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2142   rm -rf conftest*
2143   am_cv_lib_iconv=yes
2144         am_cv_func_iconv=yes
2145 else
2146   echo "configure: failed program was:" >&5
2147   cat conftest.$ac_ext >&5
2148 fi
2149 rm -f conftest*
2150       LIBS="$am_save_LIBS"
2151     fi
2152   
2153 fi
2154
2155 echo "$ac_t""$am_cv_func_iconv" 1>&6
2156   if test "$am_cv_func_iconv" = yes; then
2157     cat >> confdefs.h <<\EOF
2158 #define HAVE_ICONV 1
2159 EOF
2160
2161     echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2162 echo "configure:2163: checking for iconv declaration" >&5
2163     if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2164   echo $ac_n "(cached) $ac_c" 1>&6
2165 else
2166   
2167       cat > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2170
2171 #include <stdlib.h>
2172 #include <iconv.h>
2173 extern
2174 #ifdef __cplusplus
2175 "C"
2176 #endif
2177 #if defined(__STDC__) || defined(__cplusplus)
2178 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2179 #else
2180 size_t iconv();
2181 #endif
2182
2183 int main() {
2184
2185 ; return 0; }
2186 EOF
2187 if { (eval echo configure:2188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2188   rm -rf conftest*
2189   am_cv_proto_iconv_arg1=""
2190 else
2191   echo "configure: failed program was:" >&5
2192   cat conftest.$ac_ext >&5
2193   rm -rf conftest*
2194   am_cv_proto_iconv_arg1="const"
2195 fi
2196 rm -f conftest*
2197       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2198 fi
2199
2200     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2201     echo "$ac_t""${ac_t:-
2202          }$am_cv_proto_iconv" 1>&6
2203     cat >> confdefs.h <<EOF
2204 #define ICONV_CONST $am_cv_proto_iconv_arg1
2205 EOF
2206
2207   fi
2208   LIBICONV=
2209   if test "$am_cv_lib_iconv" = yes; then
2210     LIBICONV="-liconv"
2211   fi
2212   
2213
2214    
2215   echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2216 echo "configure:2217: checking for nl_langinfo and CODESET" >&5
2217 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2218   echo $ac_n "(cached) $ac_c" 1>&6
2219 else
2220   cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 #include <langinfo.h>
2224 int main() {
2225 char* cs = nl_langinfo(CODESET);
2226 ; return 0; }
2227 EOF
2228 if { (eval echo configure:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2229   rm -rf conftest*
2230   am_cv_langinfo_codeset=yes
2231 else
2232   echo "configure: failed program was:" >&5
2233   cat conftest.$ac_ext >&5
2234   rm -rf conftest*
2235   am_cv_langinfo_codeset=no
2236 fi
2237 rm -f conftest*
2238     
2239 fi
2240
2241 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2242   if test $am_cv_langinfo_codeset = yes; then
2243     cat >> confdefs.h <<\EOF
2244 #define HAVE_LANGINFO_CODESET 1
2245 EOF
2246
2247   fi
2248
2249    if test $ac_cv_header_locale_h = yes; then
2250     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2251 echo "configure:2252: checking for LC_MESSAGES" >&5
2252 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2253   echo $ac_n "(cached) $ac_c" 1>&6
2254 else
2255   cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2258 #include <locale.h>
2259 int main() {
2260 return LC_MESSAGES
2261 ; return 0; }
2262 EOF
2263 if { (eval echo configure:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2264   rm -rf conftest*
2265   am_cv_val_LC_MESSAGES=yes
2266 else
2267   echo "configure: failed program was:" >&5
2268   cat conftest.$ac_ext >&5
2269   rm -rf conftest*
2270   am_cv_val_LC_MESSAGES=no
2271 fi
2272 rm -f conftest*
2273 fi
2274
2275 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2276     if test $am_cv_val_LC_MESSAGES = yes; then
2277       cat >> confdefs.h <<\EOF
2278 #define HAVE_LC_MESSAGES 1
2279 EOF
2280
2281     fi
2282   fi
2283    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2284 echo "configure:2285: checking whether NLS is requested" >&5
2285         # Check whether --enable-nls or --disable-nls was given.
2286 if test "${enable_nls+set}" = set; then
2287   enableval="$enable_nls"
2288   USE_NLS=$enableval
2289 else
2290   USE_NLS=yes
2291 fi
2292
2293     echo "$ac_t""$USE_NLS" 1>&6
2294     
2295
2296     BUILD_INCLUDED_LIBINTL=no
2297     USE_INCLUDED_LIBINTL=no
2298     INTLLIBS=
2299
2300         if test "$USE_NLS" = "yes"; then
2301       cat >> confdefs.h <<\EOF
2302 #define ENABLE_NLS 1
2303 EOF
2304
2305       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2306 echo "configure:2307: checking whether included gettext is requested" >&5
2307       # Check whether --with-included-gettext or --without-included-gettext was given.
2308 if test "${with_included_gettext+set}" = set; then
2309   withval="$with_included_gettext"
2310   nls_cv_force_use_gnu_gettext=$withval
2311 else
2312   nls_cv_force_use_gnu_gettext=no
2313 fi
2314
2315       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2316
2317       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2318       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2319                                 CATOBJEXT=NONE
2320
2321                 
2322         
2323
2324         ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2325 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2326 echo "configure:2327: checking for libintl.h" >&5
2327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2328   echo $ac_n "(cached) $ac_c" 1>&6
2329 else
2330   cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <libintl.h>
2334 EOF
2335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2336 { (eval echo configure:2337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2338 if test -z "$ac_err"; then
2339   rm -rf conftest*
2340   eval "ac_cv_header_$ac_safe=yes"
2341 else
2342   echo "$ac_err" >&5
2343   echo "configure: failed program was:" >&5
2344   cat conftest.$ac_ext >&5
2345   rm -rf conftest*
2346   eval "ac_cv_header_$ac_safe=no"
2347 fi
2348 rm -f conftest*
2349 fi
2350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2351   echo "$ac_t""yes" 1>&6
2352   echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2353 echo "configure:2354: checking for GNU gettext in libc" >&5
2354 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2355   echo $ac_n "(cached) $ac_c" 1>&6
2356 else
2357   cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 #include <libintl.h>
2361 extern int _nl_msg_cat_cntr;
2362 int main() {
2363 bindtextdomain ("", "");
2364 return (int) gettext ("") + _nl_msg_cat_cntr
2365 ; return 0; }
2366 EOF
2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368   rm -rf conftest*
2369   gt_cv_func_gnugettext1_libc=yes
2370 else
2371   echo "configure: failed program was:" >&5
2372   cat conftest.$ac_ext >&5
2373   rm -rf conftest*
2374   gt_cv_func_gnugettext1_libc=no
2375 fi
2376 rm -f conftest*
2377 fi
2378
2379 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2380
2381            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2382              echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2383 echo "configure:2384: checking for GNU gettext in libintl" >&5
2384 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2385   echo $ac_n "(cached) $ac_c" 1>&6
2386 else
2387   gt_save_LIBS="$LIBS"
2388                 LIBS="$LIBS -lintl $LIBICONV"
2389                 cat > conftest.$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2392 #include <libintl.h>
2393 extern int _nl_msg_cat_cntr;
2394 int main() {
2395 bindtextdomain ("", "");
2396 return (int) gettext ("") + _nl_msg_cat_cntr
2397 ; return 0; }
2398 EOF
2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2400   rm -rf conftest*
2401   gt_cv_func_gnugettext1_libintl=yes
2402 else
2403   echo "configure: failed program was:" >&5
2404   cat conftest.$ac_ext >&5
2405   rm -rf conftest*
2406   gt_cv_func_gnugettext1_libintl=no
2407 fi
2408 rm -f conftest*
2409                 LIBS="$gt_save_LIBS"
2410 fi
2411
2412 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2413            fi
2414
2415                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2416               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2417                    && test "$PACKAGE" != gettext; }; then
2418              cat >> confdefs.h <<\EOF
2419 #define HAVE_GETTEXT 1
2420 EOF
2421
2422
2423              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2424                                        INTLLIBS="-lintl $LIBICONV"
2425              fi
2426
2427              gt_save_LIBS="$LIBS"
2428              LIBS="$LIBS $INTLLIBS"
2429              for ac_func in dcgettext
2430 do
2431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2432 echo "configure:2433: checking for $ac_func" >&5
2433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2434   echo $ac_n "(cached) $ac_c" 1>&6
2435 else
2436   cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 /* System header to define __stub macros and hopefully few prototypes,
2440     which can conflict with char $ac_func(); below.  */
2441 #include <assert.h>
2442 /* Override any gcc2 internal prototype to avoid an error.  */
2443 /* We use char because int might match the return type of a gcc2
2444     builtin and then its argument prototype would still apply.  */
2445 char $ac_func();
2446
2447 int main() {
2448
2449 /* The GNU C library defines this for functions which it implements
2450     to always fail with ENOSYS.  Some functions are actually named
2451     something starting with __ and the normal name is an alias.  */
2452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2453 choke me
2454 #else
2455 $ac_func();
2456 #endif
2457
2458 ; return 0; }
2459 EOF
2460 if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2461   rm -rf conftest*
2462   eval "ac_cv_func_$ac_func=yes"
2463 else
2464   echo "configure: failed program was:" >&5
2465   cat conftest.$ac_ext >&5
2466   rm -rf conftest*
2467   eval "ac_cv_func_$ac_func=no"
2468 fi
2469 rm -f conftest*
2470 fi
2471
2472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2473   echo "$ac_t""yes" 1>&6
2474     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2475   cat >> confdefs.h <<EOF
2476 #define $ac_tr_func 1
2477 EOF
2478  
2479 else
2480   echo "$ac_t""no" 1>&6
2481 fi
2482 done
2483
2484              LIBS="$gt_save_LIBS"
2485
2486                      # Extract the first word of "msgfmt", so it can be a program name with args.
2487 set dummy msgfmt; ac_word=$2
2488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2489 echo "configure:2490: checking for $ac_word" >&5
2490 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2491   echo $ac_n "(cached) $ac_c" 1>&6
2492 else
2493   case "$MSGFMT" in
2494   /*)
2495   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2496   ;;
2497   *)
2498   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2499   for ac_dir in $PATH; do
2500     test -z "$ac_dir" && ac_dir=.
2501     if test -f $ac_dir/$ac_word; then
2502       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2503         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2504         break
2505       fi
2506     fi
2507   done
2508   IFS="$ac_save_ifs"
2509   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2510   ;;
2511 esac
2512 fi
2513 MSGFMT="$ac_cv_path_MSGFMT"
2514 if test "$MSGFMT" != ":"; then
2515   echo "$ac_t""$MSGFMT" 1>&6
2516 else
2517   echo "$ac_t""no" 1>&6
2518 fi
2519
2520              # Extract the first word of "gmsgfmt", so it can be a program name with args.
2521 set dummy gmsgfmt; ac_word=$2
2522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2523 echo "configure:2524: checking for $ac_word" >&5
2524 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2525   echo $ac_n "(cached) $ac_c" 1>&6
2526 else
2527   case "$GMSGFMT" in
2528   /*)
2529   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2530   ;;
2531   ?:/*)                  
2532   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2533   ;;
2534   *)
2535   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2536   ac_dummy="$PATH"
2537   for ac_dir in $ac_dummy; do 
2538     test -z "$ac_dir" && ac_dir=.
2539     if test -f $ac_dir/$ac_word; then
2540       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2541       break
2542     fi
2543   done
2544   IFS="$ac_save_ifs"
2545   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2546   ;;
2547 esac
2548 fi
2549 GMSGFMT="$ac_cv_path_GMSGFMT"
2550 if test -n "$GMSGFMT"; then
2551   echo "$ac_t""$GMSGFMT" 1>&6
2552 else
2553   echo "$ac_t""no" 1>&6
2554 fi
2555
2556
2557                      # Extract the first word of "xgettext", so it can be a program name with args.
2558 set dummy xgettext; ac_word=$2
2559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2560 echo "configure:2561: checking for $ac_word" >&5
2561 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2562   echo $ac_n "(cached) $ac_c" 1>&6
2563 else
2564   case "$XGETTEXT" in
2565   /*)
2566   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2567   ;;
2568   *)
2569   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2570   for ac_dir in $PATH; do
2571     test -z "$ac_dir" && ac_dir=.
2572     if test -f $ac_dir/$ac_word; then
2573       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2574         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2575         break
2576       fi
2577     fi
2578   done
2579   IFS="$ac_save_ifs"
2580   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2581   ;;
2582 esac
2583 fi
2584 XGETTEXT="$ac_cv_path_XGETTEXT"
2585 if test "$XGETTEXT" != ":"; then
2586   echo "$ac_t""$XGETTEXT" 1>&6
2587 else
2588   echo "$ac_t""no" 1>&6
2589 fi
2590
2591
2592              CATOBJEXT=.gmo
2593            fi
2594         
2595 else
2596   echo "$ac_t""no" 1>&6
2597 fi
2598
2599
2600         if test "$CATOBJEXT" = "NONE"; then
2601                           nls_cv_use_gnu_gettext=yes
2602         fi
2603       fi
2604
2605       if test "$nls_cv_use_gnu_gettext" = "yes"; then
2606                 INTLOBJS="\$(GETTOBJS)"
2607         # Extract the first word of "msgfmt", so it can be a program name with args.
2608 set dummy msgfmt; ac_word=$2
2609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2610 echo "configure:2611: checking for $ac_word" >&5
2611 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2612   echo $ac_n "(cached) $ac_c" 1>&6
2613 else
2614   case "$MSGFMT" in
2615   /*)
2616   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2617   ;;
2618   *)
2619   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2620   for ac_dir in $PATH; do
2621     test -z "$ac_dir" && ac_dir=.
2622     if test -f $ac_dir/$ac_word; then
2623       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2624         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2625         break
2626       fi
2627     fi
2628   done
2629   IFS="$ac_save_ifs"
2630   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2631   ;;
2632 esac
2633 fi
2634 MSGFMT="$ac_cv_path_MSGFMT"
2635 if test "$MSGFMT" != ":"; then
2636   echo "$ac_t""$MSGFMT" 1>&6
2637 else
2638   echo "$ac_t""no" 1>&6
2639 fi
2640
2641         # Extract the first word of "gmsgfmt", so it can be a program name with args.
2642 set dummy gmsgfmt; ac_word=$2
2643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2644 echo "configure:2645: checking for $ac_word" >&5
2645 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2646   echo $ac_n "(cached) $ac_c" 1>&6
2647 else
2648   case "$GMSGFMT" in
2649   /*)
2650   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2651   ;;
2652   ?:/*)                  
2653   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2654   ;;
2655   *)
2656   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2657   ac_dummy="$PATH"
2658   for ac_dir in $ac_dummy; do 
2659     test -z "$ac_dir" && ac_dir=.
2660     if test -f $ac_dir/$ac_word; then
2661       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2662       break
2663     fi
2664   done
2665   IFS="$ac_save_ifs"
2666   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2667   ;;
2668 esac
2669 fi
2670 GMSGFMT="$ac_cv_path_GMSGFMT"
2671 if test -n "$GMSGFMT"; then
2672   echo "$ac_t""$GMSGFMT" 1>&6
2673 else
2674   echo "$ac_t""no" 1>&6
2675 fi
2676
2677         # Extract the first word of "xgettext", so it can be a program name with args.
2678 set dummy xgettext; ac_word=$2
2679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_word" >&5
2681 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2682   echo $ac_n "(cached) $ac_c" 1>&6
2683 else
2684   case "$XGETTEXT" in
2685   /*)
2686   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2687   ;;
2688   *)
2689   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2690   for ac_dir in $PATH; do
2691     test -z "$ac_dir" && ac_dir=.
2692     if test -f $ac_dir/$ac_word; then
2693       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2694         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2695         break
2696       fi
2697     fi
2698   done
2699   IFS="$ac_save_ifs"
2700   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2701   ;;
2702 esac
2703 fi
2704 XGETTEXT="$ac_cv_path_XGETTEXT"
2705 if test "$XGETTEXT" != ":"; then
2706   echo "$ac_t""$XGETTEXT" 1>&6
2707 else
2708   echo "$ac_t""no" 1>&6
2709 fi
2710
2711         
2712         BUILD_INCLUDED_LIBINTL=yes
2713         USE_INCLUDED_LIBINTL=yes
2714         CATOBJEXT=.gmo
2715         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2716         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2717       fi
2718
2719                   if test "$GMSGFMT" != ":"; then
2720                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2721           : ;
2722         else
2723           echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2724           GMSGFMT=":"
2725         fi
2726       fi
2727
2728                   if test "$XGETTEXT" != ":"; then
2729                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2730           : ;
2731         else
2732           echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2733           XGETTEXT=":"
2734         fi
2735       fi
2736
2737             POSUB=po
2738     fi
2739     
2740
2741
2742             if test "$PACKAGE" = gettext; then
2743       BUILD_INCLUDED_LIBINTL=yes
2744     fi
2745
2746                                             for ac_prog in bison
2747 do
2748 # Extract the first word of "$ac_prog", so it can be a program name with args.
2749 set dummy $ac_prog; ac_word=$2
2750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2751 echo "configure:2752: checking for $ac_word" >&5
2752 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2753   echo $ac_n "(cached) $ac_c" 1>&6
2754 else
2755   if test -n "$INTLBISON"; then
2756   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2757 else
2758   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2759   ac_dummy="$PATH"
2760   for ac_dir in $ac_dummy; do
2761     test -z "$ac_dir" && ac_dir=.
2762     if test -f $ac_dir/$ac_word; then
2763       ac_cv_prog_INTLBISON="$ac_prog"
2764       break
2765     fi
2766   done
2767   IFS="$ac_save_ifs"
2768 fi
2769 fi
2770 INTLBISON="$ac_cv_prog_INTLBISON"
2771 if test -n "$INTLBISON"; then
2772   echo "$ac_t""$INTLBISON" 1>&6
2773 else
2774   echo "$ac_t""no" 1>&6
2775 fi
2776
2777 test -n "$INTLBISON" && break
2778 done
2779
2780     if test -z "$INTLBISON"; then
2781       ac_verc_fail=yes
2782     else
2783             echo $ac_n "checking version of bison""... $ac_c" 1>&6
2784 echo "configure:2785: checking version of bison" >&5
2785       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2786       case $ac_prog_version in
2787         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2788         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2789            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2790         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2791       esac
2792       echo "$ac_t""$ac_prog_version" 1>&6
2793     fi
2794     if test $ac_verc_fail = yes; then
2795       INTLBISON=:
2796     fi
2797
2798                 for lang in $ALL_LINGUAS; do
2799       GMOFILES="$GMOFILES $lang.gmo"
2800       POFILES="$POFILES $lang.po"
2801     done
2802
2803         
2804     
2805     
2806     
2807     
2808     
2809     
2810     
2811     
2812
2813         nls_cv_header_intl=
2814     nls_cv_header_libgt=
2815
2816         DATADIRNAME=share
2817     
2818
2819         INSTOBJEXT=.mo
2820     
2821
2822         GENCAT=gencat
2823     
2824   
2825
2826    if test "x$CATOBJEXT" != "x"; then
2827      if test "x$ALL_LINGUAS" = "x"; then
2828        LINGUAS=
2829      else
2830        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2831 echo "configure:2832: checking for catalogs to be installed" >&5
2832        NEW_LINGUAS=
2833        for presentlang in $ALL_LINGUAS; do
2834          useit=no
2835          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2836            # Use the presentlang catalog if desiredlang is
2837            #   a. equal to presentlang, or
2838            #   b. a variant of presentlang (because in this case,
2839            #      presentlang can be used as a fallback for messages
2840            #      which are not translated in the desiredlang catalog).
2841            case "$desiredlang" in
2842              "$presentlang"*) useit=yes;;
2843            esac
2844          done
2845          if test $useit = yes; then
2846            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2847          fi
2848        done
2849        LINGUAS=$NEW_LINGUAS
2850        echo "$ac_t""$LINGUAS" 1>&6
2851      fi
2852
2853           if test -n "$LINGUAS"; then
2854        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2855      fi
2856    fi
2857
2858             MKINSTALLDIRS=
2859    if test -n "$ac_aux_dir"; then
2860      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2861    fi
2862    if test -z "$MKINSTALLDIRS"; then
2863      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2864    fi
2865    
2866
2867       INTL_LIBTOOL_SUFFIX_PREFIX=
2868    
2869   
2870
2871 # Find a good install program.  We prefer a C program (faster),
2872 # so one script is as good as another.  But avoid the broken or
2873 # incompatible versions:
2874 # SysV /etc/install, /usr/sbin/install
2875 # SunOS /usr/etc/install
2876 # IRIX /sbin/install
2877 # AIX /bin/install
2878 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2879 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2880 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2881 # ./install, which can be erroneously created by make from ./install.sh.
2882 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2883 echo "configure:2884: checking for a BSD compatible install" >&5
2884 if test -z "$INSTALL"; then
2885 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2886   echo $ac_n "(cached) $ac_c" 1>&6
2887 else
2888     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
2889   for ac_dir in $PATH; do
2890     # Account for people who put trailing slashes in PATH elements.
2891     case "$ac_dir/" in
2892     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2893     *)
2894       # OSF1 and SCO ODT 3.0 have their own names for install.
2895       # Don't use installbsd from OSF since it installs stuff as root
2896       # by default.
2897       for ac_prog in ginstall scoinst install; do
2898         if test -f $ac_dir/$ac_prog; then
2899           if test $ac_prog = install &&
2900             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2901             # AIX install.  It has an incompatible calling convention.
2902             :
2903           else
2904             ac_cv_path_install="$ac_dir/$ac_prog -c"
2905             break 2
2906           fi
2907         fi
2908       done
2909       ;;
2910     esac
2911   done
2912   IFS="$ac_save_IFS"
2913
2914 fi
2915   if test "${ac_cv_path_install+set}" = set; then
2916     INSTALL="$ac_cv_path_install"
2917   else
2918     # As a last resort, use the slow shell script.  We don't cache a
2919     # path for INSTALL within a source directory, because that will
2920     # break other packages using the cache if that directory is
2921     # removed, or if the path is relative.
2922     INSTALL="$ac_install_sh"
2923   fi
2924 fi
2925 echo "$ac_t""$INSTALL" 1>&6
2926
2927 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2928 # It thinks the first close brace ends the variable substitution.
2929 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2930
2931 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2932
2933 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2934
2935
2936 # Check whether --with-words or --without-words was given.
2937 if test "${with_words+set}" = set; then
2938   withval="$with_words"
2939   :
2940 fi
2941
2942   case "x$withval" in
2943     xbig)
2944       ac_cv_c_bigendian=yes
2945       ;;
2946     xlittle)
2947       ac_cv_c_bigendian=no
2948       ;;
2949     *)
2950                   ac_cv_c_bigendian=unknown
2951       echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
2952 echo "configure:2953: checking what the byte order looks to be" >&5
2953         cat >conftest.c <<EOF
2954         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
2955         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
2956         void _a(void) { char*s = (char*)am; s = (char *)ai; }
2957         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
2958         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
2959         void _e(void) { char*s = (char*)em; s = (char*)ei; }
2960         int main(void) { _a(); _e(); return 0; }
2961 EOF
2962       
2963       if test -f conftest.c
2964       then 
2965         if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
2966             && test -f conftest.o
2967         then
2968           if test `grep -l BIGenDianSyS conftest.o`
2969           then
2970             echo "$ac_t"""big endian"" 1>&6
2971             ac_cv_c_bigendian=yes
2972           fi
2973           if test `grep -l LiTTleEnDian conftest.o`
2974           then
2975             echo "$ac_t"""little endian"" 1>&6
2976             ac_cv_c_bigendian=no
2977           fi
2978         fi
2979       fi
2980       if test $ac_cv_c_bigendian = xunknown
2981       then
2982         { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
2983       fi
2984             if test $ac_cv_c_bigendian = yes
2985       then
2986         cat >> confdefs.h <<\EOF
2987 #define WORDS_BIGENDIAN 1
2988 EOF
2989       fi
2990       ;;
2991   esac
2992
2993 for ac_func in gettimeofday select strerror strtod strtol isatty
2994 do
2995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2996 echo "configure:2997: checking for $ac_func" >&5
2997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2998   echo $ac_n "(cached) $ac_c" 1>&6
2999 else
3000   cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003 /* System header to define __stub macros and hopefully few prototypes,
3004     which can conflict with char $ac_func(); below.  */
3005 #include <assert.h>
3006 /* Override any gcc2 internal prototype to avoid an error.  */
3007 /* We use char because int might match the return type of a gcc2
3008     builtin and then its argument prototype would still apply.  */
3009 char $ac_func();
3010
3011 int main() {
3012
3013 /* The GNU C library defines this for functions which it implements
3014     to always fail with ENOSYS.  Some functions are actually named
3015     something starting with __ and the normal name is an alias.  */
3016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3017 choke me
3018 #else
3019 $ac_func();
3020 #endif
3021
3022 ; return 0; }
3023 EOF
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3025   rm -rf conftest*
3026   eval "ac_cv_func_$ac_func=yes"
3027 else
3028   echo "configure: failed program was:" >&5
3029   cat conftest.$ac_ext >&5
3030   rm -rf conftest*
3031   eval "ac_cv_func_$ac_func=no"
3032 fi
3033 rm -f conftest*
3034 fi
3035
3036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3037   echo "$ac_t""yes" 1>&6
3038     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3039   cat >> confdefs.h <<EOF
3040 #define $ac_tr_func 1
3041 EOF
3042  
3043 else
3044   echo "$ac_t""no" 1>&6
3045 fi
3046 done
3047
3048 echo $ac_n "checking for connect""... $ac_c" 1>&6
3049 echo "configure:3050: checking for connect" >&5
3050 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3051   echo $ac_n "(cached) $ac_c" 1>&6
3052 else
3053   cat > conftest.$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3056 /* System header to define __stub macros and hopefully few prototypes,
3057     which can conflict with char connect(); below.  */
3058 #include <assert.h>
3059 /* Override any gcc2 internal prototype to avoid an error.  */
3060 /* We use char because int might match the return type of a gcc2
3061     builtin and then its argument prototype would still apply.  */
3062 char connect();
3063
3064 int main() {
3065
3066 /* The GNU C library defines this for functions which it implements
3067     to always fail with ENOSYS.  Some functions are actually named
3068     something starting with __ and the normal name is an alias.  */
3069 #if defined (__stub_connect) || defined (__stub___connect)
3070 choke me
3071 #else
3072 connect();
3073 #endif
3074
3075 ; return 0; }
3076 EOF
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3078   rm -rf conftest*
3079   eval "ac_cv_func_connect=yes"
3080 else
3081   echo "configure: failed program was:" >&5
3082   cat conftest.$ac_ext >&5
3083   rm -rf conftest*
3084   eval "ac_cv_func_connect=no"
3085 fi
3086 rm -f conftest*
3087 fi
3088
3089 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3090   echo "$ac_t""yes" 1>&6
3091   :
3092 else
3093   echo "$ac_t""no" 1>&6
3094
3095   echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3096 echo "configure:3097: checking for connect in -lsocket" >&5
3097 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3099   echo $ac_n "(cached) $ac_c" 1>&6
3100 else
3101   ac_save_LIBS="$LIBS"
3102 LIBS="-lsocket  $LIBS"
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106 /* Override any gcc2 internal prototype to avoid an error.  */
3107 /* We use char because int might match the return type of a gcc2
3108     builtin and then its argument prototype would still apply.  */
3109 char connect();
3110
3111 int main() {
3112 connect()
3113 ; return 0; }
3114 EOF
3115 if { (eval echo configure:3116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3116   rm -rf conftest*
3117   eval "ac_cv_lib_$ac_lib_var=yes"
3118 else
3119   echo "configure: failed program was:" >&5
3120   cat conftest.$ac_ext >&5
3121   rm -rf conftest*
3122   eval "ac_cv_lib_$ac_lib_var=no"
3123 fi
3124 rm -f conftest*
3125 LIBS="$ac_save_LIBS"
3126
3127 fi
3128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3129   echo "$ac_t""yes" 1>&6
3130   LIB="${LIB} -lsocket"
3131 else
3132   echo "$ac_t""no" 1>&6
3133 fi
3134
3135
3136 fi
3137
3138 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3139 echo "configure:3140: checking for gethostbyname" >&5
3140 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3141   echo $ac_n "(cached) $ac_c" 1>&6
3142 else
3143   cat > conftest.$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 /* System header to define __stub macros and hopefully few prototypes,
3147     which can conflict with char gethostbyname(); below.  */
3148 #include <assert.h>
3149 /* Override any gcc2 internal prototype to avoid an error.  */
3150 /* We use char because int might match the return type of a gcc2
3151     builtin and then its argument prototype would still apply.  */
3152 char gethostbyname();
3153
3154 int main() {
3155
3156 /* The GNU C library defines this for functions which it implements
3157     to always fail with ENOSYS.  Some functions are actually named
3158     something starting with __ and the normal name is an alias.  */
3159 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3160 choke me
3161 #else
3162 gethostbyname();
3163 #endif
3164
3165 ; return 0; }
3166 EOF
3167 if { (eval echo configure:3168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3168   rm -rf conftest*
3169   eval "ac_cv_func_gethostbyname=yes"
3170 else
3171   echo "configure: failed program was:" >&5
3172   cat conftest.$ac_ext >&5
3173   rm -rf conftest*
3174   eval "ac_cv_func_gethostbyname=no"
3175 fi
3176 rm -f conftest*
3177 fi
3178
3179 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3180   echo "$ac_t""yes" 1>&6
3181   :
3182 else
3183   echo "$ac_t""no" 1>&6
3184
3185   echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3186 echo "configure:3187: checking for gethostbyname in -lnsl" >&5
3187 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3189   echo $ac_n "(cached) $ac_c" 1>&6
3190 else
3191   ac_save_LIBS="$LIBS"
3192 LIBS="-lnsl  $LIBS"
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 /* Override any gcc2 internal prototype to avoid an error.  */
3197 /* We use char because int might match the return type of a gcc2
3198     builtin and then its argument prototype would still apply.  */
3199 char gethostbyname();
3200
3201 int main() {
3202 gethostbyname()
3203 ; return 0; }
3204 EOF
3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3206   rm -rf conftest*
3207   eval "ac_cv_lib_$ac_lib_var=yes"
3208 else
3209   echo "configure: failed program was:" >&5
3210   cat conftest.$ac_ext >&5
3211   rm -rf conftest*
3212   eval "ac_cv_lib_$ac_lib_var=no"
3213 fi
3214 rm -f conftest*
3215 LIBS="$ac_save_LIBS"
3216
3217 fi
3218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3219   echo "$ac_t""yes" 1>&6
3220   LIB="${LIB} -lnsl"
3221 else
3222   echo "$ac_t""no" 1>&6
3223 fi
3224
3225
3226 fi
3227
3228 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3229 echo "configure:3230: checking for nanosleep" >&5
3230 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3231   echo $ac_n "(cached) $ac_c" 1>&6
3232 else
3233   cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3236 /* System header to define __stub macros and hopefully few prototypes,
3237     which can conflict with char nanosleep(); below.  */
3238 #include <assert.h>
3239 /* Override any gcc2 internal prototype to avoid an error.  */
3240 /* We use char because int might match the return type of a gcc2
3241     builtin and then its argument prototype would still apply.  */
3242 char nanosleep();
3243
3244 int main() {
3245
3246 /* The GNU C library defines this for functions which it implements
3247     to always fail with ENOSYS.  Some functions are actually named
3248     something starting with __ and the normal name is an alias.  */
3249 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3250 choke me
3251 #else
3252 nanosleep();
3253 #endif
3254
3255 ; return 0; }
3256 EOF
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3258   rm -rf conftest*
3259   eval "ac_cv_func_nanosleep=yes"
3260 else
3261   echo "configure: failed program was:" >&5
3262   cat conftest.$ac_ext >&5
3263   rm -rf conftest*
3264   eval "ac_cv_func_nanosleep=no"
3265 fi
3266 rm -f conftest*
3267 fi
3268
3269 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3270   echo "$ac_t""yes" 1>&6
3271   :
3272 else
3273   echo "$ac_t""no" 1>&6
3274
3275   echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3276 echo "configure:3277: checking for nanosleep in -lrt" >&5
3277 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3279   echo $ac_n "(cached) $ac_c" 1>&6
3280 else
3281   ac_save_LIBS="$LIBS"
3282 LIBS="-lrt  $LIBS"
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 /* Override any gcc2 internal prototype to avoid an error.  */
3287 /* We use char because int might match the return type of a gcc2
3288     builtin and then its argument prototype would still apply.  */
3289 char nanosleep();
3290
3291 int main() {
3292 nanosleep()
3293 ; return 0; }
3294 EOF
3295 if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3296   rm -rf conftest*
3297   eval "ac_cv_lib_$ac_lib_var=yes"
3298 else
3299   echo "configure: failed program was:" >&5
3300   cat conftest.$ac_ext >&5
3301   rm -rf conftest*
3302   eval "ac_cv_lib_$ac_lib_var=no"
3303 fi
3304 rm -f conftest*
3305 LIBS="$ac_save_LIBS"
3306
3307 fi
3308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3309   echo "$ac_t""yes" 1>&6
3310   LIB="${LIB} -lrt"
3311 else
3312   echo "$ac_t""no" 1>&6
3313
3314     echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3315 echo "configure:3316: checking for nanosleep in -lposix4" >&5
3316 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3318   echo $ac_n "(cached) $ac_c" 1>&6
3319 else
3320   ac_save_LIBS="$LIBS"
3321 LIBS="-lposix4  $LIBS"
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 /* Override any gcc2 internal prototype to avoid an error.  */
3326 /* We use char because int might match the return type of a gcc2
3327     builtin and then its argument prototype would still apply.  */
3328 char nanosleep();
3329
3330 int main() {
3331 nanosleep()
3332 ; return 0; }
3333 EOF
3334 if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3335   rm -rf conftest*
3336   eval "ac_cv_lib_$ac_lib_var=yes"
3337 else
3338   echo "configure: failed program was:" >&5
3339   cat conftest.$ac_ext >&5
3340   rm -rf conftest*
3341   eval "ac_cv_lib_$ac_lib_var=no"
3342 fi
3343 rm -f conftest*
3344 LIBS="$ac_save_LIBS"
3345
3346 fi
3347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3348   echo "$ac_t""yes" 1>&6
3349   LIB="${LIB} -lposix4"
3350 else
3351   echo "$ac_t""no" 1>&6
3352 fi
3353
3354   
3355 fi
3356
3357
3358 fi
3359
3360 for ac_func in usleep
3361 do
3362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3363 echo "configure:3364: checking for $ac_func" >&5
3364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3365   echo $ac_n "(cached) $ac_c" 1>&6
3366 else
3367   cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3370 /* System header to define __stub macros and hopefully few prototypes,
3371     which can conflict with char $ac_func(); below.  */
3372 #include <assert.h>
3373 /* Override any gcc2 internal prototype to avoid an error.  */
3374 /* We use char because int might match the return type of a gcc2
3375     builtin and then its argument prototype would still apply.  */
3376 char $ac_func();
3377
3378 int main() {
3379
3380 /* The GNU C library defines this for functions which it implements
3381     to always fail with ENOSYS.  Some functions are actually named
3382     something starting with __ and the normal name is an alias.  */
3383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3384 choke me
3385 #else
3386 $ac_func();
3387 #endif
3388
3389 ; return 0; }
3390 EOF
3391 if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3392   rm -rf conftest*
3393   eval "ac_cv_func_$ac_func=yes"
3394 else
3395   echo "configure: failed program was:" >&5
3396   cat conftest.$ac_ext >&5
3397   rm -rf conftest*
3398   eval "ac_cv_func_$ac_func=no"
3399 fi
3400 rm -f conftest*
3401 fi
3402
3403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3404   echo "$ac_t""yes" 1>&6
3405     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3406   cat >> confdefs.h <<EOF
3407 #define $ac_tr_func 1
3408 EOF
3409  
3410 else
3411   echo "$ac_t""no" 1>&6
3412 fi
3413 done
3414
3415 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3416 echo "configure:3417: checking for inet_aton" >&5
3417 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3418   echo $ac_n "(cached) $ac_c" 1>&6
3419 else
3420   cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 /* System header to define __stub macros and hopefully few prototypes,
3424     which can conflict with char inet_aton(); below.  */
3425 #include <assert.h>
3426 /* Override any gcc2 internal prototype to avoid an error.  */
3427 /* We use char because int might match the return type of a gcc2
3428     builtin and then its argument prototype would still apply.  */
3429 char inet_aton();
3430
3431 int main() {
3432
3433 /* The GNU C library defines this for functions which it implements
3434     to always fail with ENOSYS.  Some functions are actually named
3435     something starting with __ and the normal name is an alias.  */
3436 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3437 choke me
3438 #else
3439 inet_aton();
3440 #endif
3441
3442 ; return 0; }
3443 EOF
3444 if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3445   rm -rf conftest*
3446   eval "ac_cv_func_inet_aton=yes"
3447 else
3448   echo "configure: failed program was:" >&5
3449   cat conftest.$ac_ext >&5
3450   rm -rf conftest*
3451   eval "ac_cv_func_inet_aton=no"
3452 fi
3453 rm -f conftest*
3454 fi
3455
3456 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3457   echo "$ac_t""yes" 1>&6
3458   :
3459 else
3460   echo "$ac_t""no" 1>&6
3461
3462   echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3463 echo "configure:3464: checking for inet_aton in -lresolv" >&5
3464 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3466   echo $ac_n "(cached) $ac_c" 1>&6
3467 else
3468   ac_save_LIBS="$LIBS"
3469 LIBS="-lresolv  $LIBS"
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 /* Override any gcc2 internal prototype to avoid an error.  */
3474 /* We use char because int might match the return type of a gcc2
3475     builtin and then its argument prototype would still apply.  */
3476 char inet_aton();
3477
3478 int main() {
3479 inet_aton()
3480 ; return 0; }
3481 EOF
3482 if { (eval echo configure:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3483   rm -rf conftest*
3484   eval "ac_cv_lib_$ac_lib_var=yes"
3485 else
3486   echo "configure: failed program was:" >&5
3487   cat conftest.$ac_ext >&5
3488   rm -rf conftest*
3489   eval "ac_cv_lib_$ac_lib_var=no"
3490 fi
3491 rm -f conftest*
3492 LIBS="$ac_save_LIBS"
3493
3494 fi
3495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3496   echo "$ac_t""yes" 1>&6
3497   LIB="${LIB} -lresolv"
3498 else
3499   echo "$ac_t""no" 1>&6
3500 fi
3501
3502
3503 fi
3504
3505 for ac_func in vasprintf
3506 do
3507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3508 echo "configure:3509: checking for $ac_func" >&5
3509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3510   echo $ac_n "(cached) $ac_c" 1>&6
3511 else
3512   cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 /* System header to define __stub macros and hopefully few prototypes,
3516     which can conflict with char $ac_func(); below.  */
3517 #include <assert.h>
3518 /* Override any gcc2 internal prototype to avoid an error.  */
3519 /* We use char because int might match the return type of a gcc2
3520     builtin and then its argument prototype would still apply.  */
3521 char $ac_func();
3522
3523 int main() {
3524
3525 /* The GNU C library defines this for functions which it implements
3526     to always fail with ENOSYS.  Some functions are actually named
3527     something starting with __ and the normal name is an alias.  */
3528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3529 choke me
3530 #else
3531 $ac_func();
3532 #endif
3533
3534 ; return 0; }
3535 EOF
3536 if { (eval echo configure:3537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3537   rm -rf conftest*
3538   eval "ac_cv_func_$ac_func=yes"
3539 else
3540   echo "configure: failed program was:" >&5
3541   cat conftest.$ac_ext >&5
3542   rm -rf conftest*
3543   eval "ac_cv_func_$ac_func=no"
3544 fi
3545 rm -f conftest*
3546 fi
3547
3548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3549   echo "$ac_t""yes" 1>&6
3550     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3551   cat >> confdefs.h <<EOF
3552 #define $ac_tr_func 1
3553 EOF
3554  
3555 else
3556   echo "$ac_t""no" 1>&6
3557 fi
3558 done
3559
3560 for ac_func in swab
3561 do
3562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3563 echo "configure:3564: checking for $ac_func" >&5
3564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3565   echo $ac_n "(cached) $ac_c" 1>&6
3566 else
3567   cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3570 /* System header to define __stub macros and hopefully few prototypes,
3571     which can conflict with char $ac_func(); below.  */
3572 #include <assert.h>
3573 /* Override any gcc2 internal prototype to avoid an error.  */
3574 /* We use char because int might match the return type of a gcc2
3575     builtin and then its argument prototype would still apply.  */
3576 char $ac_func();
3577
3578 int main() {
3579
3580 /* The GNU C library defines this for functions which it implements
3581     to always fail with ENOSYS.  Some functions are actually named
3582     something starting with __ and the normal name is an alias.  */
3583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3584 choke me
3585 #else
3586 $ac_func();
3587 #endif
3588
3589 ; return 0; }
3590 EOF
3591 if { (eval echo configure:3592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3592   rm -rf conftest*
3593   eval "ac_cv_func_$ac_func=yes"
3594 else
3595   echo "configure: failed program was:" >&5
3596   cat conftest.$ac_ext >&5
3597   rm -rf conftest*
3598   eval "ac_cv_func_$ac_func=no"
3599 fi
3600 rm -f conftest*
3601 fi
3602
3603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3604   echo "$ac_t""yes" 1>&6
3605     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3606   cat >> confdefs.h <<EOF
3607 #define $ac_tr_func 1
3608 EOF
3609  
3610 else
3611   echo "$ac_t""no" 1>&6
3612 fi
3613 done
3614
3615 for ac_func in memalign valloc
3616 do
3617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3618 echo "configure:3619: checking for $ac_func" >&5
3619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3620   echo $ac_n "(cached) $ac_c" 1>&6
3621 else
3622   cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 /* System header to define __stub macros and hopefully few prototypes,
3626     which can conflict with char $ac_func(); below.  */
3627 #include <assert.h>
3628 /* Override any gcc2 internal prototype to avoid an error.  */
3629 /* We use char because int might match the return type of a gcc2
3630     builtin and then its argument prototype would still apply.  */
3631 char $ac_func();
3632
3633 int main() {
3634
3635 /* The GNU C library defines this for functions which it implements
3636     to always fail with ENOSYS.  Some functions are actually named
3637     something starting with __ and the normal name is an alias.  */
3638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3639 choke me
3640 #else
3641 $ac_func();
3642 #endif
3643
3644 ; return 0; }
3645 EOF
3646 if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3647   rm -rf conftest*
3648   eval "ac_cv_func_$ac_func=yes"
3649 else
3650   echo "configure: failed program was:" >&5
3651   cat conftest.$ac_ext >&5
3652   rm -rf conftest*
3653   eval "ac_cv_func_$ac_func=no"
3654 fi
3655 rm -f conftest*
3656 fi
3657
3658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3659   echo "$ac_t""yes" 1>&6
3660     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3661   cat >> confdefs.h <<EOF
3662 #define $ac_tr_func 1
3663 EOF
3664  
3665 else
3666   echo "$ac_t""no" 1>&6
3667 fi
3668 done
3669
3670
3671 for ac_func in sigrelse
3672 do
3673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3674 echo "configure:3675: checking for $ac_func" >&5
3675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3676   echo $ac_n "(cached) $ac_c" 1>&6
3677 else
3678   cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 /* System header to define __stub macros and hopefully few prototypes,
3682     which can conflict with char $ac_func(); below.  */
3683 #include <assert.h>
3684 /* Override any gcc2 internal prototype to avoid an error.  */
3685 /* We use char because int might match the return type of a gcc2
3686     builtin and then its argument prototype would still apply.  */
3687 char $ac_func();
3688
3689 int main() {
3690
3691 /* The GNU C library defines this for functions which it implements
3692     to always fail with ENOSYS.  Some functions are actually named
3693     something starting with __ and the normal name is an alias.  */
3694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3695 choke me
3696 #else
3697 $ac_func();
3698 #endif
3699
3700 ; return 0; }
3701 EOF
3702 if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3703   rm -rf conftest*
3704   eval "ac_cv_func_$ac_func=yes"
3705 else
3706   echo "configure: failed program was:" >&5
3707   cat conftest.$ac_ext >&5
3708   rm -rf conftest*
3709   eval "ac_cv_func_$ac_func=no"
3710 fi
3711 rm -f conftest*
3712 fi
3713
3714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3715   echo "$ac_t""yes" 1>&6
3716     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3717   cat >> confdefs.h <<EOF
3718 #define $ac_tr_func 1
3719 EOF
3720  
3721 else
3722   echo "$ac_t""no" 1>&6
3723 fi
3724 done
3725
3726
3727 NEED_GETOPT=0
3728 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3729 echo "configure:3730: checking for getopt_long" >&5
3730 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3731   echo $ac_n "(cached) $ac_c" 1>&6
3732 else
3733   cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 /* System header to define __stub macros and hopefully few prototypes,
3737     which can conflict with char getopt_long(); below.  */
3738 #include <assert.h>
3739 /* Override any gcc2 internal prototype to avoid an error.  */
3740 /* We use char because int might match the return type of a gcc2
3741     builtin and then its argument prototype would still apply.  */
3742 char getopt_long();
3743
3744 int main() {
3745
3746 /* The GNU C library defines this for functions which it implements
3747     to always fail with ENOSYS.  Some functions are actually named
3748     something starting with __ and the normal name is an alias.  */
3749 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3750 choke me
3751 #else
3752 getopt_long();
3753 #endif
3754
3755 ; return 0; }
3756 EOF
3757 if { (eval echo configure:3758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3758   rm -rf conftest*
3759   eval "ac_cv_func_getopt_long=yes"
3760 else
3761   echo "configure: failed program was:" >&5
3762   cat conftest.$ac_ext >&5
3763   rm -rf conftest*
3764   eval "ac_cv_func_getopt_long=no"
3765 fi
3766 rm -f conftest*
3767 fi
3768
3769 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3770   echo "$ac_t""yes" 1>&6
3771   cat >> confdefs.h <<\EOF
3772 #define HAVE_GETOPT_LONG 1
3773 EOF
3774
3775 else
3776   echo "$ac_t""no" 1>&6
3777  # FreeBSD has a gnugetopt library for this:
3778   echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3779 echo "configure:3780: checking for getopt_long in -lgnugetopt" >&5
3780 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3782   echo $ac_n "(cached) $ac_c" 1>&6
3783 else
3784   ac_save_LIBS="$LIBS"
3785 LIBS="-lgnugetopt  $LIBS"
3786 cat > conftest.$ac_ext <<EOF
3787 #line 3788 "configure"
3788 #include "confdefs.h"
3789 /* Override any gcc2 internal prototype to avoid an error.  */
3790 /* We use char because int might match the return type of a gcc2
3791     builtin and then its argument prototype would still apply.  */
3792 char getopt_long();
3793
3794 int main() {
3795 getopt_long()
3796 ; return 0; }
3797 EOF
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3799   rm -rf conftest*
3800   eval "ac_cv_lib_$ac_lib_var=yes"
3801 else
3802   echo "configure: failed program was:" >&5
3803   cat conftest.$ac_ext >&5
3804   rm -rf conftest*
3805   eval "ac_cv_lib_$ac_lib_var=no"
3806 fi
3807 rm -f conftest*
3808 LIBS="$ac_save_LIBS"
3809
3810 fi
3811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3812   echo "$ac_t""yes" 1>&6
3813   cat >> confdefs.h <<\EOF
3814 #define HAVE_GETOPT_LONG 1
3815 EOF
3816  LIB="${LIB} -lgnugetopt"
3817 else
3818   echo "$ac_t""no" 1>&6
3819 NEED_GETOPT=1
3820 fi
3821
3822 fi
3823
3824
3825 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3826 echo "configure:3827: checking return type of signal handlers" >&5
3827 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3828   echo $ac_n "(cached) $ac_c" 1>&6
3829 else
3830   cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 #include <sys/types.h>
3834 #include <signal.h>
3835 #ifdef signal
3836 #undef signal
3837 #endif
3838 #ifdef __cplusplus
3839 extern "C" void (*signal (int, void (*)(int)))(int);
3840 #else
3841 void (*signal ()) ();
3842 #endif
3843
3844 int main() {
3845 int i;
3846 ; return 0; }
3847 EOF
3848 if { (eval echo configure:3849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3849   rm -rf conftest*
3850   ac_cv_type_signal=void
3851 else
3852   echo "configure: failed program was:" >&5
3853   cat conftest.$ac_ext >&5
3854   rm -rf conftest*
3855   ac_cv_type_signal=int
3856 fi
3857 rm -f conftest*
3858 fi
3859
3860 echo "$ac_t""$ac_cv_type_signal" 1>&6
3861 cat >> confdefs.h <<EOF
3862 #define RETSIGTYPE $ac_cv_type_signal
3863 EOF
3864
3865
3866 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3867 echo "configure:3868: checking for dlopen in -ldl" >&5
3868 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3870   echo $ac_n "(cached) $ac_c" 1>&6
3871 else
3872   ac_save_LIBS="$LIBS"
3873 LIBS="-ldl  $LIBS"
3874 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3877 /* Override any gcc2 internal prototype to avoid an error.  */
3878 /* We use char because int might match the return type of a gcc2
3879     builtin and then its argument prototype would still apply.  */
3880 char dlopen();
3881
3882 int main() {
3883 dlopen()
3884 ; return 0; }
3885 EOF
3886 if { (eval echo configure:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3887   rm -rf conftest*
3888   eval "ac_cv_lib_$ac_lib_var=yes"
3889 else
3890   echo "configure: failed program was:" >&5
3891   cat conftest.$ac_ext >&5
3892   rm -rf conftest*
3893   eval "ac_cv_lib_$ac_lib_var=no"
3894 fi
3895 rm -f conftest*
3896 LIBS="$ac_save_LIBS"
3897
3898 fi
3899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3900   echo "$ac_t""yes" 1>&6
3901   LIB="${LIB} -ldl"
3902 else
3903   echo "$ac_t""no" 1>&6
3904 fi
3905
3906 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
3907 echo "configure:3908: checking for cos in -lm" >&5
3908 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
3909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3910   echo $ac_n "(cached) $ac_c" 1>&6
3911 else
3912   ac_save_LIBS="$LIBS"
3913 LIBS="-lm  $LIBS"
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 /* Override any gcc2 internal prototype to avoid an error.  */
3918 /* We use char because int might match the return type of a gcc2
3919     builtin and then its argument prototype would still apply.  */
3920 char cos();
3921
3922 int main() {
3923 cos()
3924 ; return 0; }
3925 EOF
3926 if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3927   rm -rf conftest*
3928   eval "ac_cv_lib_$ac_lib_var=yes"
3929 else
3930   echo "configure: failed program was:" >&5
3931   cat conftest.$ac_ext >&5
3932   rm -rf conftest*
3933   eval "ac_cv_lib_$ac_lib_var=no"
3934 fi
3935 rm -f conftest*
3936 LIBS="$ac_save_LIBS"
3937
3938 fi
3939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3940   echo "$ac_t""yes" 1>&6
3941   LIB_IMDCT="${LIB_IMDCT} -lm"
3942   LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
3943 else
3944   echo "$ac_t""no" 1>&6
3945 fi
3946
3947 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
3948 echo "configure:3949: checking for pow in -lm" >&5
3949 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
3950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3951   echo $ac_n "(cached) $ac_c" 1>&6
3952 else
3953   ac_save_LIBS="$LIBS"
3954 LIBS="-lm  $LIBS"
3955 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 /* Override any gcc2 internal prototype to avoid an error.  */
3959 /* We use char because int might match the return type of a gcc2
3960     builtin and then its argument prototype would still apply.  */
3961 char pow();
3962
3963 int main() {
3964 pow()
3965 ; return 0; }
3966 EOF
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3968   rm -rf conftest*
3969   eval "ac_cv_lib_$ac_lib_var=yes"
3970 else
3971   echo "configure: failed program was:" >&5
3972   cat conftest.$ac_ext >&5
3973   rm -rf conftest*
3974   eval "ac_cv_lib_$ac_lib_var=no"
3975 fi
3976 rm -f conftest*
3977 LIBS="$ac_save_LIBS"
3978
3979 fi
3980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3981   echo "$ac_t""yes" 1>&6
3982   LIB_IMDCT="${LIB_IMDCT} -lm"
3983   LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
3984   LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
3985
3986 else
3987   echo "$ac_t""no" 1>&6
3988 fi
3989
3990
3991 THREAD_LIB=error
3992 if test "x${THREAD_LIB}" = xerror; then
3993   echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
3994 echo "configure:3995: checking for pthread_attr_init in -lpthread" >&5
3995 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
3996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3997   echo $ac_n "(cached) $ac_c" 1>&6
3998 else
3999   ac_save_LIBS="$LIBS"
4000 LIBS="-lpthread  $LIBS"
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 /* Override any gcc2 internal prototype to avoid an error.  */
4005 /* We use char because int might match the return type of a gcc2
4006     builtin and then its argument prototype would still apply.  */
4007 char pthread_attr_init();
4008
4009 int main() {
4010 pthread_attr_init()
4011 ; return 0; }
4012 EOF
4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4014   rm -rf conftest*
4015   eval "ac_cv_lib_$ac_lib_var=yes"
4016 else
4017   echo "configure: failed program was:" >&5
4018   cat conftest.$ac_ext >&5
4019   rm -rf conftest*
4020   eval "ac_cv_lib_$ac_lib_var=no"
4021 fi
4022 rm -f conftest*
4023 LIBS="$ac_save_LIBS"
4024
4025 fi
4026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4027   echo "$ac_t""yes" 1>&6
4028   THREAD_LIB="-lpthread"
4029 else
4030   echo "$ac_t""no" 1>&6
4031 fi
4032
4033 fi
4034 if test "x${THREAD_LIB}" = xerror; then
4035   echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4036 echo "configure:4037: checking for pthread_attr_init in -lpthreads" >&5
4037 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4039   echo $ac_n "(cached) $ac_c" 1>&6
4040 else
4041   ac_save_LIBS="$LIBS"
4042 LIBS="-lpthreads  $LIBS"
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4046 /* Override any gcc2 internal prototype to avoid an error.  */
4047 /* We use char because int might match the return type of a gcc2
4048     builtin and then its argument prototype would still apply.  */
4049 char pthread_attr_init();
4050
4051 int main() {
4052 pthread_attr_init()
4053 ; return 0; }
4054 EOF
4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4056   rm -rf conftest*
4057   eval "ac_cv_lib_$ac_lib_var=yes"
4058 else
4059   echo "configure: failed program was:" >&5
4060   cat conftest.$ac_ext >&5
4061   rm -rf conftest*
4062   eval "ac_cv_lib_$ac_lib_var=no"
4063 fi
4064 rm -f conftest*
4065 LIBS="$ac_save_LIBS"
4066
4067 fi
4068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4069   echo "$ac_t""yes" 1>&6
4070   THREAD_LIB="-lpthreads"
4071 else
4072   echo "$ac_t""no" 1>&6
4073 fi
4074
4075 fi
4076 if test "x${THREAD_LIB}" = xerror; then
4077   echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4078 echo "configure:4079: checking for pthread_attr_init in -lc_r" >&5
4079 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4081   echo $ac_n "(cached) $ac_c" 1>&6
4082 else
4083   ac_save_LIBS="$LIBS"
4084 LIBS="-lc_r  $LIBS"
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4088 /* Override any gcc2 internal prototype to avoid an error.  */
4089 /* We use char because int might match the return type of a gcc2
4090     builtin and then its argument prototype would still apply.  */
4091 char pthread_attr_init();
4092
4093 int main() {
4094 pthread_attr_init()
4095 ; return 0; }
4096 EOF
4097 if { (eval echo configure:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4098   rm -rf conftest*
4099   eval "ac_cv_lib_$ac_lib_var=yes"
4100 else
4101   echo "configure: failed program was:" >&5
4102   cat conftest.$ac_ext >&5
4103   rm -rf conftest*
4104   eval "ac_cv_lib_$ac_lib_var=no"
4105 fi
4106 rm -f conftest*
4107 LIBS="$ac_save_LIBS"
4108
4109 fi
4110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4111   echo "$ac_t""yes" 1>&6
4112   THREAD_LIB="-lc_r"
4113 else
4114   echo "$ac_t""no" 1>&6
4115 fi
4116
4117 fi
4118 if test "x${THREAD_LIB}" = xerror; then
4119   echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4120 echo "configure:4121: checking for pthread_attr_init" >&5
4121 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4122   echo $ac_n "(cached) $ac_c" 1>&6
4123 else
4124   cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4127 /* System header to define __stub macros and hopefully few prototypes,
4128     which can conflict with char pthread_attr_init(); below.  */
4129 #include <assert.h>
4130 /* Override any gcc2 internal prototype to avoid an error.  */
4131 /* We use char because int might match the return type of a gcc2
4132     builtin and then its argument prototype would still apply.  */
4133 char pthread_attr_init();
4134
4135 int main() {
4136
4137 /* The GNU C library defines this for functions which it implements
4138     to always fail with ENOSYS.  Some functions are actually named
4139     something starting with __ and the normal name is an alias.  */
4140 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4141 choke me
4142 #else
4143 pthread_attr_init();
4144 #endif
4145
4146 ; return 0; }
4147 EOF
4148 if { (eval echo configure:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4149   rm -rf conftest*
4150   eval "ac_cv_func_pthread_attr_init=yes"
4151 else
4152   echo "configure: failed program was:" >&5
4153   cat conftest.$ac_ext >&5
4154   rm -rf conftest*
4155   eval "ac_cv_func_pthread_attr_init=no"
4156 fi
4157 rm -f conftest*
4158 fi
4159
4160 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4161   echo "$ac_t""yes" 1>&6
4162   :
4163 else
4164   echo "$ac_t""no" 1>&6
4165 fi
4166
4167   THREAD_LIB=""
4168 fi
4169
4170 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4171 echo "configure:4172: checking for cthread_fork in -lthreads" >&5
4172 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4174   echo $ac_n "(cached) $ac_c" 1>&6
4175 else
4176   ac_save_LIBS="$LIBS"
4177 LIBS="-lthreads  $LIBS"
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 /* Override any gcc2 internal prototype to avoid an error.  */
4182 /* We use char because int might match the return type of a gcc2
4183     builtin and then its argument prototype would still apply.  */
4184 char cthread_fork();
4185
4186 int main() {
4187 cthread_fork()
4188 ; return 0; }
4189 EOF
4190 if { (eval echo configure:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4191   rm -rf conftest*
4192   eval "ac_cv_lib_$ac_lib_var=yes"
4193 else
4194   echo "configure: failed program was:" >&5
4195   cat conftest.$ac_ext >&5
4196   rm -rf conftest*
4197   eval "ac_cv_lib_$ac_lib_var=no"
4198 fi
4199 rm -f conftest*
4200 LIBS="$ac_save_LIBS"
4201
4202 fi
4203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4204   echo "$ac_t""yes" 1>&6
4205   THREAD_LIB="-lthreads"
4206 else
4207   echo "$ac_t""no" 1>&6
4208 fi
4209
4210
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214 #include <pthread.h>
4215 EOF
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217   egrep "pthread_cond_t" >/dev/null 2>&1; then
4218   rm -rf conftest*
4219   
4220   cat >> confdefs.h <<\EOF
4221 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4222 EOF
4223
4224 fi
4225 rm -f conftest*
4226
4227 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4230 #include <strings.h>
4231 EOF
4232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233   egrep "strncasecmp" >/dev/null 2>&1; then
4234   rm -rf conftest*
4235   
4236   cat >> confdefs.h <<\EOF
4237 #define STRNCASECMP_IN_STRINGS_H 1
4238 EOF
4239
4240 fi
4241 rm -f conftest*
4242
4243
4244 for ac_hdr in getopt.h strings.h
4245 do
4246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4248 echo "configure:4249: checking for $ac_hdr" >&5
4249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4250   echo $ac_n "(cached) $ac_c" 1>&6
4251 else
4252   cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4255 #include <$ac_hdr>
4256 EOF
4257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4258 { (eval echo configure:4259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4260 if test -z "$ac_err"; then
4261   rm -rf conftest*
4262   eval "ac_cv_header_$ac_safe=yes"
4263 else
4264   echo "$ac_err" >&5
4265   echo "configure: failed program was:" >&5
4266   cat conftest.$ac_ext >&5
4267   rm -rf conftest*
4268   eval "ac_cv_header_$ac_safe=no"
4269 fi
4270 rm -f conftest*
4271 fi
4272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4273   echo "$ac_t""yes" 1>&6
4274     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4275   cat >> confdefs.h <<EOF
4276 #define $ac_tr_hdr 1
4277 EOF
4278  
4279 else
4280   echo "$ac_t""no" 1>&6
4281 fi
4282 done
4283
4284 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4285 do
4286 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4287 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4288 echo "configure:4289: checking for $ac_hdr" >&5
4289 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4290   echo $ac_n "(cached) $ac_c" 1>&6
4291 else
4292   cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295 #include <$ac_hdr>
4296 EOF
4297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4298 { (eval echo configure:4299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4300 if test -z "$ac_err"; then
4301   rm -rf conftest*
4302   eval "ac_cv_header_$ac_safe=yes"
4303 else
4304   echo "$ac_err" >&5
4305   echo "configure: failed program was:" >&5
4306   cat conftest.$ac_ext >&5
4307   rm -rf conftest*
4308   eval "ac_cv_header_$ac_safe=no"
4309 fi
4310 rm -f conftest*
4311 fi
4312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4313   echo "$ac_t""yes" 1>&6
4314     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4315   cat >> confdefs.h <<EOF
4316 #define $ac_tr_hdr 1
4317 EOF
4318  
4319 else
4320   echo "$ac_t""no" 1>&6
4321 fi
4322 done
4323
4324 for ac_hdr in sys/soundcard.h machine/soundcard.h
4325 do
4326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4328 echo "configure:4329: checking for $ac_hdr" >&5
4329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4330   echo $ac_n "(cached) $ac_c" 1>&6
4331 else
4332   cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 #include <$ac_hdr>
4336 EOF
4337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4338 { (eval echo configure:4339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4340 if test -z "$ac_err"; then
4341   rm -rf conftest*
4342   eval "ac_cv_header_$ac_safe=yes"
4343 else
4344   echo "$ac_err" >&5
4345   echo "configure: failed program was:" >&5
4346   cat conftest.$ac_ext >&5
4347   rm -rf conftest*
4348   eval "ac_cv_header_$ac_safe=no"
4349 fi
4350 rm -f conftest*
4351 fi
4352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4353   echo "$ac_t""yes" 1>&6
4354     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4355   cat >> confdefs.h <<EOF
4356 #define $ac_tr_hdr 1
4357 EOF
4358  
4359 else
4360   echo "$ac_t""no" 1>&6
4361 fi
4362 done
4363
4364 for ac_hdr in dlfcn.h image.h
4365 do
4366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4368 echo "configure:4369: checking for $ac_hdr" >&5
4369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4370   echo $ac_n "(cached) $ac_c" 1>&6
4371 else
4372   cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 #include <$ac_hdr>
4376 EOF
4377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4378 { (eval echo configure:4379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4380 if test -z "$ac_err"; then
4381   rm -rf conftest*
4382   eval "ac_cv_header_$ac_safe=yes"
4383 else
4384   echo "$ac_err" >&5
4385   echo "configure: failed program was:" >&5
4386   cat conftest.$ac_ext >&5
4387   rm -rf conftest*
4388   eval "ac_cv_header_$ac_safe=no"
4389 fi
4390 rm -f conftest*
4391 fi
4392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4393   echo "$ac_t""yes" 1>&6
4394     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4395   cat >> confdefs.h <<EOF
4396 #define $ac_tr_hdr 1
4397 EOF
4398  
4399 else
4400   echo "$ac_t""no" 1>&6
4401 fi
4402 done
4403
4404 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4405 do
4406 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4407 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4408 echo "configure:4409: checking for $ac_hdr" >&5
4409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4410   echo $ac_n "(cached) $ac_c" 1>&6
4411 else
4412   cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4415 #include <$ac_hdr>
4416 EOF
4417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4418 { (eval echo configure:4419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4420 if test -z "$ac_err"; then
4421   rm -rf conftest*
4422   eval "ac_cv_header_$ac_safe=yes"
4423 else
4424   echo "$ac_err" >&5
4425   echo "configure: failed program was:" >&5
4426   cat conftest.$ac_ext >&5
4427   rm -rf conftest*
4428   eval "ac_cv_header_$ac_safe=no"
4429 fi
4430 rm -f conftest*
4431 fi
4432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4433   echo "$ac_t""yes" 1>&6
4434     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4435   cat >> confdefs.h <<EOF
4436 #define $ac_tr_hdr 1
4437 EOF
4438  
4439 else
4440   echo "$ac_t""no" 1>&6
4441 fi
4442 done
4443
4444 for ac_hdr in machine/param.h
4445 do
4446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4448 echo "configure:4449: checking for $ac_hdr" >&5
4449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4450   echo $ac_n "(cached) $ac_c" 1>&6
4451 else
4452   cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 #include <$ac_hdr>
4456 EOF
4457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4458 { (eval echo configure:4459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4460 if test -z "$ac_err"; then
4461   rm -rf conftest*
4462   eval "ac_cv_header_$ac_safe=yes"
4463 else
4464   echo "$ac_err" >&5
4465   echo "configure: failed program was:" >&5
4466   cat conftest.$ac_ext >&5
4467   rm -rf conftest*
4468   eval "ac_cv_header_$ac_safe=no"
4469 fi
4470 rm -f conftest*
4471 fi
4472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4473   echo "$ac_t""yes" 1>&6
4474     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4475   cat >> confdefs.h <<EOF
4476 #define $ac_tr_hdr 1
4477 EOF
4478  
4479 else
4480   echo "$ac_t""no" 1>&6
4481 fi
4482 done
4483
4484
4485 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4486 echo "configure:4487: checking whether time.h and sys/time.h may both be included" >&5
4487 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4488   echo $ac_n "(cached) $ac_c" 1>&6
4489 else
4490   cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 #include <sys/types.h>
4494 #include <sys/time.h>
4495 #include <time.h>
4496 int main() {
4497 struct tm *tp;
4498 ; return 0; }
4499 EOF
4500 if { (eval echo configure:4501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4501   rm -rf conftest*
4502   ac_cv_header_time=yes
4503 else
4504   echo "configure: failed program was:" >&5
4505   cat conftest.$ac_ext >&5
4506   rm -rf conftest*
4507   ac_cv_header_time=no
4508 fi
4509 rm -f conftest*
4510 fi
4511
4512 echo "$ac_t""$ac_cv_header_time" 1>&6
4513 if test $ac_cv_header_time = yes; then
4514   cat >> confdefs.h <<\EOF
4515 #define TIME_WITH_SYS_TIME 1
4516 EOF
4517
4518 fi
4519
4520
4521 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4522 do
4523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4525 echo "configure:4526: checking for $ac_hdr" >&5
4526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4527   echo $ac_n "(cached) $ac_c" 1>&6
4528 else
4529   cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4532 #include <$ac_hdr>
4533 EOF
4534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4535 { (eval echo configure:4536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4537 if test -z "$ac_err"; then
4538   rm -rf conftest*
4539   eval "ac_cv_header_$ac_safe=yes"
4540 else
4541   echo "$ac_err" >&5
4542   echo "configure: failed program was:" >&5
4543   cat conftest.$ac_ext >&5
4544   rm -rf conftest*
4545   eval "ac_cv_header_$ac_safe=no"
4546 fi
4547 rm -f conftest*
4548 fi
4549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4550   echo "$ac_t""yes" 1>&6
4551     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4552   cat >> confdefs.h <<EOF
4553 #define $ac_tr_hdr 1
4554 EOF
4555  
4556 else
4557   echo "$ac_t""no" 1>&6
4558 fi
4559 done
4560
4561
4562 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4563 echo "configure:4564: checking for ntohl in sys/param.h" >&5
4564 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4565   echo $ac_n "(cached) $ac_c" 1>&6
4566 else
4567   CFLAGS="${save_CFLAGS} -Wall -Werror"
4568      cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 #include <sys/param.h>
4572 int main() {
4573 void foo() { int meuh; ntohl(meuh); }
4574 ; return 0; }
4575 EOF
4576 if { (eval echo configure:4577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4577   rm -rf conftest*
4578   ac_cv_c_ntohl_sys_param_h=yes
4579 else
4580   echo "configure: failed program was:" >&5
4581   cat conftest.$ac_ext >&5
4582   rm -rf conftest*
4583   ac_cv_c_ntohl_sys_param_h=no
4584 fi
4585 rm -f conftest*
4586 fi
4587
4588 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4589 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4590     cat >> confdefs.h <<\EOF
4591 #define NTOHL_IN_SYS_PARAM_H 1
4592 EOF
4593
4594 fi
4595
4596 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4597 echo "configure:4598: checking if \$CC accepts -finline-limit" >&5
4598 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4599   echo $ac_n "(cached) $ac_c" 1>&6
4600 else
4601   CFLAGS="${save_CFLAGS} -finline-limit-30000"
4602      cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4605
4606 int main() {
4607
4608 ; return 0; }
4609 EOF
4610 if { (eval echo configure:4611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4611   rm -rf conftest*
4612   ac_cv_c_inline_limit=yes
4613 else
4614   echo "configure: failed program was:" >&5
4615   cat conftest.$ac_ext >&5
4616   rm -rf conftest*
4617   ac_cv_c_inline_limit=no
4618 fi
4619 rm -f conftest*
4620 fi
4621
4622 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4623 if test x"$ac_cv_c_inline_limit" != x"no"; then
4624     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4625 fi
4626
4627 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
4628 echo "configure:4629: checking if \$CC accepts -bundle -undefined error" >&5
4629 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
4630   echo $ac_n "(cached) $ac_c" 1>&6
4631 else
4632   CFLAGS="${save_CFLAGS} -bundle -undefined error"
4633      cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636
4637 int main() {
4638
4639 ; return 0; }
4640 EOF
4641 if { (eval echo configure:4642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4642   rm -rf conftest*
4643   ac_cv_ld_darwin=yes
4644 else
4645   echo "configure: failed program was:" >&5
4646   cat conftest.$ac_ext >&5
4647   rm -rf conftest*
4648   ac_cv_ld_darwin=no
4649 fi
4650 rm -f conftest*
4651 fi
4652
4653 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
4654 if test x"$ac_cv_ld_darwin" != x"no"; then
4655     PLDFLAGS="${PLDFLAGS} -bundle -undefined error"
4656 fi
4657
4658 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
4659 echo "configure:4660: checking if \$CC accepts -shared" >&5
4660 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
4661   echo $ac_n "(cached) $ac_c" 1>&6
4662 else
4663   CFLAGS="${save_CFLAGS} -shared"
4664      cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667
4668 int main() {
4669
4670 ; return 0; }
4671 EOF
4672 if { (eval echo configure:4673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4673   rm -rf conftest*
4674   ac_cv_ld_plugins=yes
4675 else
4676   echo "configure: failed program was:" >&5
4677   cat conftest.$ac_ext >&5
4678   rm -rf conftest*
4679   ac_cv_ld_plugins=no
4680 fi
4681 rm -f conftest*
4682 fi
4683
4684 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
4685 if test x"$ac_cv_ld_plugins" != x"no"; then
4686     PLDFLAGS="${PLDFLAGS} -shared"
4687 fi
4688         
4689 if test x"${SOFLAGS}" = x; then
4690     echo $ac_n "checking for soname setting""... $ac_c" 1>&6
4691 echo "configure:4692: checking for soname setting" >&5
4692 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
4693   echo $ac_n "(cached) $ac_c" 1>&6
4694 else
4695   
4696         # Standard
4697         try_SOFLAGS="-Wl,-soname -Wl,"
4698         LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
4699         cat > conftest.$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702
4703 int main() {
4704
4705 ; return 0; }
4706 EOF
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4708   rm -rf conftest*
4709   ac_cv_ld_soname="${try_SOFLAGS}"
4710 else
4711   echo "configure: failed program was:" >&5
4712   cat conftest.$ac_ext >&5
4713   rm -rf conftest*
4714   
4715             # SunOS
4716             try_SOFLAGS="-Wl,-h -Wl,"
4717             LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
4718             cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721
4722 int main() {
4723
4724 ; return 0; }
4725 EOF
4726 if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4727   rm -rf conftest*
4728   ac_cv_ld_soname="${try_SOFLAGS}"
4729 else
4730   echo "configure: failed program was:" >&5
4731   cat conftest.$ac_ext >&5
4732   rm -rf conftest*
4733   ac_cv_ld_soname=none
4734 fi
4735 rm -f conftest*
4736         
4737 fi
4738 rm -f conftest*
4739 fi
4740
4741 echo "$ac_t""$ac_cv_ld_soname" 1>&6
4742     if test x"$ac_cv_ld_soname" != x"none"; then
4743         SOFLAGS=$ac_cv_ld_soname
4744     else
4745         echo "
4746 ------------
4747 Your system doesn't seem to have support for dynamic linking. You may
4748 have problems using libdvdcss.
4749 ------------
4750 "
4751     fi
4752 fi
4753
4754 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
4755 echo "configure:4756: checking __attribute__ ((aligned ())) support" >&5
4756 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
4757   echo $ac_n "(cached) $ac_c" 1>&6
4758 else
4759   ac_cv_c_attribute_aligned=0
4760         CFLAGS="${save_CFLAGS} -Werror"
4761     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
4762         cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765
4766 int main() {
4767 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
4768 ; return 0; }
4769 EOF
4770 if { (eval echo configure:4771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4771   rm -rf conftest*
4772   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
4773 else
4774   echo "configure: failed program was:" >&5
4775   cat conftest.$ac_ext >&5
4776 fi
4777 rm -f conftest*
4778     done
4779 fi
4780
4781 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
4782 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
4783     cat >> confdefs.h <<EOF
4784 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
4785 EOF
4786
4787 fi
4788
4789 CFLAGS="${save_CFLAGS}"
4790 LDFLAGS="${save_LDFLAGS}"
4791
4792 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
4793 echo "configure:4794: checking for boolean_t in sys/types.h" >&5
4794 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
4795   echo $ac_n "(cached) $ac_c" 1>&6
4796 else
4797   cat > conftest.$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4800 #include <sys/types.h>
4801 int main() {
4802 boolean_t foo;
4803 ; return 0; }
4804 EOF
4805 if { (eval echo configure:4806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4806   rm -rf conftest*
4807   ac_cv_c_boolean_t_sys_types_h=yes
4808 else
4809   echo "configure: failed program was:" >&5
4810   cat conftest.$ac_ext >&5
4811   rm -rf conftest*
4812   ac_cv_c_boolean_t_sys_types_h=no
4813 fi
4814 rm -f conftest*
4815 fi
4816
4817 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
4818 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
4819     cat >> confdefs.h <<\EOF
4820 #define BOOLEAN_T_IN_SYS_TYPES_H 1
4821 EOF
4822
4823 fi
4824
4825 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
4826 echo "configure:4827: checking for boolean_t in pthread.h" >&5
4827 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
4828   echo $ac_n "(cached) $ac_c" 1>&6
4829 else
4830   cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 #include <pthread.h>
4834 int main() {
4835 boolean_t foo;
4836 ; return 0; }
4837 EOF
4838 if { (eval echo configure:4839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4839   rm -rf conftest*
4840   ac_cv_c_boolean_t_pthread_h=yes
4841 else
4842   echo "configure: failed program was:" >&5
4843   cat conftest.$ac_ext >&5
4844   rm -rf conftest*
4845   ac_cv_c_boolean_t_pthread_h=no
4846 fi
4847 rm -f conftest*
4848 fi
4849
4850 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
4851 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
4852     cat >> confdefs.h <<\EOF
4853 #define BOOLEAN_T_IN_PTHREAD_H 1
4854 EOF
4855
4856 fi
4857
4858 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
4859 echo "configure:4860: checking for boolean_t in cthreads.h" >&5
4860 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
4861   echo $ac_n "(cached) $ac_c" 1>&6
4862 else
4863   cat > conftest.$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4866 #include <cthreads.h>
4867 int main() {
4868 boolean_t foo;
4869 ; return 0; }
4870 EOF
4871 if { (eval echo configure:4872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4872   rm -rf conftest*
4873   ac_cv_c_boolean_t_cthreads_h=yes
4874 else
4875   echo "configure: failed program was:" >&5
4876   cat conftest.$ac_ext >&5
4877   rm -rf conftest*
4878   ac_cv_c_boolean_t_cthreads_h=no
4879 fi
4880 rm -f conftest*
4881 fi
4882
4883 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
4884 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
4885     cat >> confdefs.h <<\EOF
4886 #define BOOLEAN_T_IN_CTHREADS_H 1
4887 EOF
4888
4889 fi
4890
4891 ARCH=${target_cpu}
4892
4893 BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix mpeg_adec lpcm_adec ac3_adec mpeg_vdec"
4894 PLUGINS="${PLUGINS} ac3_spdif spudec chroma_yv12_rgb16 filter_deinterlace filter_invert filter_wall filter_transform filter_distort"
4895
4896 MMX_MODULES="memcpymmx idctmmx motionmmx"
4897 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
4898 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
4899 SSE_MODULES="imdctsse downmixsse"
4900 ALTIVEC_MODULES="idctaltivec motionaltivec"
4901
4902 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
4903 echo "configure:4904: checking if \$CC groks MMX inline assembly" >&5
4904 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
4905   echo $ac_n "(cached) $ac_c" 1>&6
4906 else
4907   cat > conftest.$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4910
4911 int main() {
4912 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
4913 ; return 0; }
4914 EOF
4915 if { (eval echo configure:4916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4916   rm -rf conftest*
4917   ac_cv_mmx_inline=yes
4918 else
4919   echo "configure: failed program was:" >&5
4920   cat conftest.$ac_ext >&5
4921   rm -rf conftest*
4922   ac_cv_mmx_inline=no
4923 fi
4924 rm -f conftest*
4925 fi
4926
4927 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
4928 if test x"$ac_cv_mmx_inline" != x"no"; then
4929   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
4930 fi
4931
4932 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
4933 echo "configure:4934: checking if \$CC groks MMX EXT inline assembly" >&5
4934 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
4935   echo $ac_n "(cached) $ac_c" 1>&6
4936 else
4937   cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4940
4941 int main() {
4942 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
4943 ; return 0; }
4944 EOF
4945 if { (eval echo configure:4946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4946   rm -rf conftest*
4947   ac_cv_mmxext_inline=yes
4948 else
4949   echo "configure: failed program was:" >&5
4950   cat conftest.$ac_ext >&5
4951   rm -rf conftest*
4952   ac_cv_mmxext_inline=no
4953 fi
4954 rm -f conftest*
4955 fi
4956
4957 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
4958 if test x"$ac_cv_mmxext_inline" != x"no"; then
4959   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
4960 fi
4961
4962 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
4963 echo "configure:4964: checking if \$CC groks 3D Now! inline assembly" >&5
4964 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
4965   echo $ac_n "(cached) $ac_c" 1>&6
4966 else
4967   cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970
4971 int main() {
4972 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
4973 ; return 0; }
4974 EOF
4975 if { (eval echo configure:4976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4976   rm -rf conftest*
4977   ac_cv_3dnow_inline=yes
4978 else
4979   echo "configure: failed program was:" >&5
4980   cat conftest.$ac_ext >&5
4981   rm -rf conftest*
4982   ac_cv_3dnow_inline=no
4983 fi
4984 rm -f conftest*
4985 fi
4986
4987 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
4988 if test x"$ac_cv_3dnow_inline" != x"no"; then
4989   cat >> confdefs.h <<\EOF
4990 #define CAN_COMPILE_3DNOW 1
4991 EOF
4992
4993   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
4994 fi
4995
4996 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
4997 echo "configure:4998: checking if \$CC groks SSE inline assembly" >&5
4998 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
4999   echo $ac_n "(cached) $ac_c" 1>&6
5000 else
5001   cat > conftest.$ac_ext <<EOF
5002 #line 5003 "configure"
5003 #include "confdefs.h"
5004
5005 int main() {
5006 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5007 ; return 0; }
5008 EOF
5009 if { (eval echo configure:5010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5010   rm -rf conftest*
5011   ac_cv_sse_inline=yes
5012 else
5013   echo "configure: failed program was:" >&5
5014   cat conftest.$ac_ext >&5
5015   rm -rf conftest*
5016   ac_cv_sse_inline=no
5017 fi
5018 rm -f conftest*
5019 fi
5020
5021 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5022 if test x"$ac_cv_sse_inline" != x"no"; then
5023   cat >> confdefs.h <<\EOF
5024 #define CAN_COMPILE_SSE 1
5025 EOF
5026
5027   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5028 fi
5029
5030 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5031 echo "configure:5032: checking if \$CC groks Altivec inline assembly" >&5
5032 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5033   echo $ac_n "(cached) $ac_c" 1>&6
5034 else
5035   cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure"
5037 #include "confdefs.h"
5038
5039 int main() {
5040 asm volatile("vperm 0,1,2,3");
5041 ; return 0; }
5042 EOF
5043 if { (eval echo configure:5044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5044   rm -rf conftest*
5045   ac_cv_altivec_inline=yes
5046 else
5047   echo "configure: failed program was:" >&5
5048   cat conftest.$ac_ext >&5
5049   rm -rf conftest*
5050   save_CFLAGS=$CFLAGS
5051           CFLAGS="$CFLAGS -Wa,-m7400"
5052           cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055
5056 int main() {
5057 asm volatile("vperm 0,1,2,3");
5058 ; return 0; }
5059 EOF
5060 if { (eval echo configure:5061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5061   rm -rf conftest*
5062   ac_cv_altivec_inline="-Wa,-m7400"
5063 else
5064   echo "configure: failed program was:" >&5
5065   cat conftest.$ac_ext >&5
5066   rm -rf conftest*
5067   ac_cv_altivec_inline=no
5068 fi
5069 rm -f conftest*
5070           CFLAGS=$save_CFLAGS
5071          
5072 fi
5073 rm -f conftest*
5074 fi
5075
5076 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5077 if test x"$ac_cv_altivec_inline" != x"no"; then
5078   cat >> confdefs.h <<\EOF
5079 #define CAN_COMPILE_ALTIVEC 1
5080 EOF
5081
5082   if test x"$ac_cv_altivec_inline" != x"yes"; then
5083     CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5084     CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5085     CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5086   fi
5087   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5088 fi
5089
5090 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5091 echo "configure:5092: checking if \$CC groks Altivec C extensions" >&5
5092 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5093   echo $ac_n "(cached) $ac_c" 1>&6
5094 else
5095   save_CFLAGS=$CFLAGS
5096      CFLAGS="$CFLAGS -faltivec"
5097      # Darwin test
5098      cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101
5102 int main() {
5103 vec_mtvscr((vector unsigned int)(0));
5104 ; return 0; }
5105 EOF
5106 if { (eval echo configure:5107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5107   rm -rf conftest*
5108   ac_cv_c_altivec=-faltivec
5109 else
5110   echo "configure: failed program was:" >&5
5111   cat conftest.$ac_ext >&5
5112   rm -rf conftest*
5113   
5114         # Linux/PPC test
5115         CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5116         cat > conftest.$ac_ext <<EOF
5117 #line 5118 "configure"
5118 #include "confdefs.h"
5119
5120 int main() {
5121 vec_mtvscr((vector unsigned int)(0));
5122 ; return 0; }
5123 EOF
5124 if { (eval echo configure:5125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5125   rm -rf conftest*
5126   ac_cv_c_altivec="-fvec"
5127 else
5128   echo "configure: failed program was:" >&5
5129   cat conftest.$ac_ext >&5
5130   rm -rf conftest*
5131   ac_cv_c_altivec=no
5132 fi
5133 rm -f conftest*
5134         
5135 fi
5136 rm -f conftest*
5137      CFLAGS=$save_CFLAGS
5138     
5139 fi
5140
5141 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5142 if test x"$ac_cv_c_altivec" != x"no"; then
5143   cat >> confdefs.h <<\EOF
5144 #define CAN_COMPILE_C_ALTIVEC 1
5145 EOF
5146
5147   CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5148   CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5149   CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5150   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5151 fi
5152
5153 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5154 echo "configure:5155: checking if linker needs -framework vecLib" >&5
5155 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5156   echo $ac_n "(cached) $ac_c" 1>&6
5157 else
5158   save_LDFLAGS=$LDFLAGS
5159      LDFLAGS="$LDFLAGS -framework vecLib"
5160      cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163
5164 int main() {
5165
5166 ; return 0; }
5167 EOF
5168 if { (eval echo configure:5169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5169   rm -rf conftest*
5170   ac_cv_ld_altivec=yes
5171 else
5172   echo "configure: failed program was:" >&5
5173   cat conftest.$ac_ext >&5
5174   rm -rf conftest*
5175   ac_cv_ld_altivec=no
5176 fi
5177 rm -f conftest*
5178      LDFLAGS=$save_LDFLAGS
5179     
5180 fi
5181
5182 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5183 if test x"$ac_cv_ld_altivec" != x"no"; then
5184   LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5185   LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5186 fi
5187
5188 case ${target_os} in
5189   linux*)
5190     SYS=linux
5191     ;;
5192   bsdi*)
5193     SYS=bsdi
5194     ;;
5195   darwin*)
5196     SYS=darwin
5197     ;;
5198   *mingw32*)
5199     SYS=mingw32
5200     if test $host != $build; then
5201   ac_tool_prefix=${host_alias}-
5202 else
5203   ac_tool_prefix=
5204 fi
5205
5206 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5207 set dummy ${ac_tool_prefix}windres; ac_word=$2
5208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5209 echo "configure:5210: checking for $ac_word" >&5
5210 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5211   echo $ac_n "(cached) $ac_c" 1>&6
5212 else
5213   if test -n "$WINDRES"; then
5214   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5215 else
5216   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5217   ac_dummy="$PATH"
5218   for ac_dir in $ac_dummy; do
5219     test -z "$ac_dir" && ac_dir=.
5220     if test -f $ac_dir/$ac_word; then
5221       ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5222       break
5223     fi
5224   done
5225   IFS="$ac_save_ifs"
5226 fi
5227 fi
5228 WINDRES="$ac_cv_prog_WINDRES"
5229 if test -n "$WINDRES"; then
5230   echo "$ac_t""$WINDRES" 1>&6
5231 else
5232   echo "$ac_t""no" 1>&6
5233 fi
5234
5235
5236 if test -z "$ac_cv_prog_WINDRES"; then
5237 if test -n "$ac_tool_prefix"; then
5238   # Extract the first word of "windres", so it can be a program name with args.
5239 set dummy windres; ac_word=$2
5240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5241 echo "configure:5242: checking for $ac_word" >&5
5242 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5243   echo $ac_n "(cached) $ac_c" 1>&6
5244 else
5245   if test -n "$WINDRES"; then
5246   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5247 else
5248   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5249   ac_dummy="$PATH"
5250   for ac_dir in $ac_dummy; do
5251     test -z "$ac_dir" && ac_dir=.
5252     if test -f $ac_dir/$ac_word; then
5253       ac_cv_prog_WINDRES="windres"
5254       break
5255     fi
5256   done
5257   IFS="$ac_save_ifs"
5258   test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
5259 fi
5260 fi
5261 WINDRES="$ac_cv_prog_WINDRES"
5262 if test -n "$WINDRES"; then
5263   echo "$ac_t""$WINDRES" 1>&6
5264 else
5265   echo "$ac_t""no" 1>&6
5266 fi
5267
5268 else
5269   WINDRES=":"
5270 fi
5271 fi
5272
5273     LIB_MPEG_TS="-lws2_32"
5274     LIB_RC="-lws2_32"
5275     ;;
5276   *nto*)
5277     SYS=nto
5278     LIB_X11="${LIB_X11} -lsocket"
5279     LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
5280     ;;
5281   beos)
5282     SYS=beos
5283     LIB="${LIB} -lbe"
5284     LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
5285     PLDFLAGS="${PLDFLAGS} -nostart"
5286     ;;
5287   *)
5288     SYS=${target_os}
5289     ;;
5290 esac
5291
5292 case $SYS in
5293   mingw32)
5294     DVD_DEVICE="E:"
5295     VCD_DEVICE="E:"
5296     ;;
5297   *)
5298     DVD_DEVICE="/dev/dvd"
5299     VCD_DEVICE="/dev/cdrom"
5300     ;;
5301 esac
5302
5303 cat >> confdefs.h <<EOF
5304 #define DVD_DEVICE "$DVD_DEVICE"
5305 EOF
5306
5307 cat >> confdefs.h <<EOF
5308 #define VCD_DEVICE "$VCD_DEVICE"
5309 EOF
5310
5311
5312
5313
5314 CAN_BUILD_LIBDVDCSS=0
5315
5316 for ac_hdr in winioctl.h
5317 do
5318 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5320 echo "configure:5321: checking for $ac_hdr" >&5
5321 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5322   echo $ac_n "(cached) $ac_c" 1>&6
5323 else
5324   cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5327 #include <$ac_hdr>
5328 EOF
5329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5330 { (eval echo configure:5331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5332 if test -z "$ac_err"; then
5333   rm -rf conftest*
5334   eval "ac_cv_header_$ac_safe=yes"
5335 else
5336   echo "$ac_err" >&5
5337   echo "configure: failed program was:" >&5
5338   cat conftest.$ac_ext >&5
5339   rm -rf conftest*
5340   eval "ac_cv_header_$ac_safe=no"
5341 fi
5342 rm -f conftest*
5343 fi
5344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5345   echo "$ac_t""yes" 1>&6
5346     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5347   cat >> confdefs.h <<EOF
5348 #define $ac_tr_hdr 1
5349 EOF
5350  
5351   CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5352
5353 else
5354   echo "$ac_t""no" 1>&6
5355 fi
5356 done
5357
5358
5359 for ac_hdr in sys/ioctl.h
5360 do
5361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5363 echo "configure:5364: checking for $ac_hdr" >&5
5364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5365   echo $ac_n "(cached) $ac_c" 1>&6
5366 else
5367   cat > conftest.$ac_ext <<EOF
5368 #line 5369 "configure"
5369 #include "confdefs.h"
5370 #include <$ac_hdr>
5371 EOF
5372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5373 { (eval echo configure:5374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5375 if test -z "$ac_err"; then
5376   rm -rf conftest*
5377   eval "ac_cv_header_$ac_safe=yes"
5378 else
5379   echo "$ac_err" >&5
5380   echo "configure: failed program was:" >&5
5381   cat conftest.$ac_ext >&5
5382   rm -rf conftest*
5383   eval "ac_cv_header_$ac_safe=no"
5384 fi
5385 rm -f conftest*
5386 fi
5387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5388   echo "$ac_t""yes" 1>&6
5389     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5390   cat >> confdefs.h <<EOF
5391 #define $ac_tr_hdr 1
5392 EOF
5393  
5394   CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5395   for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5396 do
5397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5399 echo "configure:5400: checking for $ac_hdr" >&5
5400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5401   echo $ac_n "(cached) $ac_c" 1>&6
5402 else
5403   cat > conftest.$ac_ext <<EOF
5404 #line 5405 "configure"
5405 #include "confdefs.h"
5406 #include <$ac_hdr>
5407 EOF
5408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5409 { (eval echo configure:5410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5411 if test -z "$ac_err"; then
5412   rm -rf conftest*
5413   eval "ac_cv_header_$ac_safe=yes"
5414 else
5415   echo "$ac_err" >&5
5416   echo "configure: failed program was:" >&5
5417   cat conftest.$ac_ext >&5
5418   rm -rf conftest*
5419   eval "ac_cv_header_$ac_safe=no"
5420 fi
5421 rm -f conftest*
5422 fi
5423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5424   echo "$ac_t""yes" 1>&6
5425     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5426   cat >> confdefs.h <<EOF
5427 #define $ac_tr_hdr 1
5428 EOF
5429  
5430 else
5431   echo "$ac_t""no" 1>&6
5432 fi
5433 done
5434
5435   BSD_DVD_STRUCT=0
5436   LINUX_DVD_STRUCT=0
5437   OPENBSD_DVD_STRUCT=0
5438         cat > conftest.$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 #include <sys/cdio.h>
5442 EOF
5443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5444   egrep "dvd_struct" >/dev/null 2>&1; then
5445   rm -rf conftest*
5446   
5447     cat >> confdefs.h <<\EOF
5448 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5449 EOF
5450
5451     cat > conftest.$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5454 #include <sys/cdio.h>
5455 EOF
5456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5457   egrep "struct dvd_struct" >/dev/null 2>&1; then
5458   rm -rf conftest*
5459   
5460                     BSD_DVD_STRUCT=1
5461 else
5462   rm -rf conftest*
5463   LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5464 fi
5465 rm -f conftest*
5466
5467   
5468 fi
5469 rm -f conftest*
5470
5471         cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5474 #include <sys/dvdio.h>
5475 EOF
5476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5477   egrep "dvd_struct" >/dev/null 2>&1; then
5478   rm -rf conftest*
5479   
5480     cat >> confdefs.h <<\EOF
5481 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5482 EOF
5483
5484     cat > conftest.$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5487 #include <sys/dvdio.h>
5488 EOF
5489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5490   egrep "struct dvd_struct" >/dev/null 2>&1; then
5491   rm -rf conftest*
5492   
5493                     BSD_DVD_STRUCT=1
5494 else
5495   rm -rf conftest*
5496   LINUX_DVD_STRUCT=1
5497 fi
5498 rm -f conftest*
5499
5500   
5501 fi
5502 rm -f conftest*
5503
5504         cat > conftest.$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5507 #include <linux/cdrom.h>
5508 EOF
5509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5510   egrep "dvd_struct" >/dev/null 2>&1; then
5511   rm -rf conftest*
5512   
5513     cat >> confdefs.h <<\EOF
5514 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
5515 EOF
5516
5517     LINUX_DVD_STRUCT=1
5518   
5519 fi
5520 rm -f conftest*
5521
5522         NEED_BSDI_LIBDVD=0
5523   cat > conftest.$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5526 #include <dvd.h>
5527 EOF
5528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5529   egrep "dvd_struct" >/dev/null 2>&1; then
5530   rm -rf conftest*
5531   
5532     cat >> confdefs.h <<\EOF
5533 #define DVD_STRUCT_IN_DVD_H 1
5534 EOF
5535
5536     LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
5537     LINUX_DVD_STRUCT=1
5538   
5539 else
5540   rm -rf conftest*
5541   
5542                 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
5543 do
5544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5546 echo "configure:5547: checking for $ac_hdr" >&5
5547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5548   echo $ac_n "(cached) $ac_c" 1>&6
5549 else
5550   cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5553 #include <$ac_hdr>
5554 EOF
5555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5556 { (eval echo configure:5557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5558 if test -z "$ac_err"; then
5559   rm -rf conftest*
5560   eval "ac_cv_header_$ac_safe=yes"
5561 else
5562   echo "$ac_err" >&5
5563   echo "configure: failed program was:" >&5
5564   cat conftest.$ac_ext >&5
5565   rm -rf conftest*
5566   eval "ac_cv_header_$ac_safe=no"
5567 fi
5568 rm -f conftest*
5569 fi
5570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5571   echo "$ac_t""yes" 1>&6
5572     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5573   cat >> confdefs.h <<EOF
5574 #define $ac_tr_hdr 1
5575 EOF
5576  
5577       NEED_BSDI_LIBDVD=1
5578       cat >> confdefs.h <<\EOF
5579 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
5580 EOF
5581
5582       SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
5583       LINUX_DVD_STRUCT=1
5584     
5585 else
5586   echo "$ac_t""no" 1>&6
5587 fi
5588 done
5589
5590   
5591 fi
5592 rm -f conftest*
5593
5594         ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
5595 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
5596 echo "configure:5597: checking for sys/scsi/scsi_types.h" >&5
5597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5598   echo $ac_n "(cached) $ac_c" 1>&6
5599 else
5600   cat > conftest.$ac_ext <<EOF
5601 #line 5602 "configure"
5602 #include "confdefs.h"
5603 #include <sys/scsi/scsi_types.h>
5604 EOF
5605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5606 { (eval echo configure:5607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5608 if test -z "$ac_err"; then
5609   rm -rf conftest*
5610   eval "ac_cv_header_$ac_safe=yes"
5611 else
5612   echo "$ac_err" >&5
5613   echo "configure: failed program was:" >&5
5614   cat conftest.$ac_ext >&5
5615   rm -rf conftest*
5616   eval "ac_cv_header_$ac_safe=no"
5617 fi
5618 rm -f conftest*
5619 fi
5620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5621   echo "$ac_t""yes" 1>&6
5622   
5623     ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
5624 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
5625 echo "configure:5626: checking for sys/scsi/impl/uscsi.h" >&5
5626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5627   echo $ac_n "(cached) $ac_c" 1>&6
5628 else
5629   cat > conftest.$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5632 #include <sys/scsi/impl/uscsi.h>
5633 EOF
5634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5635 { (eval echo configure:5636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5637 if test -z "$ac_err"; then
5638   rm -rf conftest*
5639   eval "ac_cv_header_$ac_safe=yes"
5640 else
5641   echo "$ac_err" >&5
5642   echo "configure: failed program was:" >&5
5643   cat conftest.$ac_ext >&5
5644   rm -rf conftest*
5645   eval "ac_cv_header_$ac_safe=no"
5646 fi
5647 rm -f conftest*
5648 fi
5649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5650   echo "$ac_t""yes" 1>&6
5651   
5652       cat >> confdefs.h <<\EOF
5653 #define SOLARIS_USCSI 1
5654 EOF
5655
5656     
5657 else
5658   echo "$ac_t""no" 1>&6
5659 fi
5660
5661   
5662 else
5663   echo "$ac_t""no" 1>&6
5664 fi
5665
5666         ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
5667 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
5668 echo "configure:5669: checking for sys/scsi.h" >&5
5669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5670   echo $ac_n "(cached) $ac_c" 1>&6
5671 else
5672   cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure"
5674 #include "confdefs.h"
5675 #include <sys/scsi.h>
5676 EOF
5677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5678 { (eval echo configure:5679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5680 if test -z "$ac_err"; then
5681   rm -rf conftest*
5682   eval "ac_cv_header_$ac_safe=yes"
5683 else
5684   echo "$ac_err" >&5
5685   echo "configure: failed program was:" >&5
5686   cat conftest.$ac_ext >&5
5687   rm -rf conftest*
5688   eval "ac_cv_header_$ac_safe=no"
5689 fi
5690 rm -f conftest*
5691 fi
5692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5693   echo "$ac_t""yes" 1>&6
5694   
5695     cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5698 #include <sys/scsi.h>
5699 EOF
5700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5701   egrep "sctl_io" >/dev/null 2>&1; then
5702   rm -rf conftest*
5703   
5704       cat >> confdefs.h <<\EOF
5705 #define HPUX_SCTL_IO 1
5706 EOF
5707
5708     
5709 fi
5710 rm -f conftest*
5711
5712   
5713 else
5714   echo "$ac_t""no" 1>&6
5715 fi
5716
5717         if test x$LINUX_DVD_STRUCT = x1; then
5718     cat >> confdefs.h <<\EOF
5719 #define HAVE_LINUX_DVD_STRUCT 1
5720 EOF
5721
5722     if test x$OPENBSD_DVD_STRUCT = x1; then
5723       cat >> confdefs.h <<\EOF
5724 #define HAVE_OPENBSD_DVD_STRUCT 1
5725 EOF
5726
5727     fi
5728   else
5729     if test x$BSD_DVD_STRUCT = x1; then
5730       cat >> confdefs.h <<\EOF
5731 #define HAVE_BSD_DVD_STRUCT 1
5732 EOF
5733
5734     fi
5735   fi
5736
5737 else
5738   echo "$ac_t""no" 1>&6
5739 fi
5740 done
5741
5742
5743 # Check whether --with-tuning or --without-tuning was given.
5744 if test "${with_tuning+set}" = set; then
5745   withval="$with_tuning"
5746   :
5747 fi
5748
5749 if test "x$withval" != "x"; then
5750     TUNING=$withval
5751 else
5752     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5753     else
5754         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5755     fi
5756 fi
5757
5758 # Check whether --enable-release or --disable-release was given.
5759 if test "${enable_release+set}" = set; then
5760   enableval="$enable_release"
5761    if test x$enableval = xyes; then RELEASE=1; fi 
5762 else
5763    VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
5764   LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`"; 
5765 fi
5766
5767
5768 # Check whether --enable-mmx or --disable-mmx was given.
5769 if test "${enable_mmx+set}" = set; then
5770   enableval="$enable_mmx"
5771    if test x$enableval = xyes; then ARCH="${ARCH} mmx";
5772     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
5773 else
5774    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";
5775     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
5776 fi
5777
5778
5779 # Check whether --enable-altivec or --disable-altivec was given.
5780 if test "${enable_altivec+set}" = set; then
5781   enableval="$enable_altivec"
5782    if test x$enableval = xyes; then ARCH="${ARCH} altivec";
5783     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
5784 else
5785    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5786     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
5787 fi
5788
5789
5790 DEBUG=0
5791 # Check whether --enable-debug or --disable-debug was given.
5792 if test "${enable_debug+set}" = set; then
5793   enableval="$enable_debug"
5794    if test x$enableval = xyes; then DEBUG=1; fi 
5795 fi
5796
5797
5798 TRACE=0
5799 # Check whether --enable-trace or --disable-trace was given.
5800 if test "${enable_trace+set}" = set; then
5801   enableval="$enable_trace"
5802    if test x$enableval = xyes; then TRACE=1; fi 
5803 fi
5804
5805
5806 GPROF=0
5807 # Check whether --enable-gprof or --disable-gprof was given.
5808 if test "${enable_gprof+set}" = set; then
5809   enableval="$enable_gprof"
5810    if test x$enableval = xyes; then GPROF=1; fi 
5811 fi
5812
5813
5814 CPROF=0
5815 # Check whether --enable-cprof or --disable-cprof was given.
5816 if test "${enable_cprof+set}" = set; then
5817   enableval="$enable_cprof"
5818    if test x$enableval = xyes;
5819   then
5820     LIB="${LIB} -lcprof"
5821     CPROF=1
5822   fi
5823
5824 fi
5825
5826
5827 # Check whether --enable-optimizations or --disable-optimizations was given.
5828 if test "${enable_optimizations+set}" = set; then
5829   enableval="$enable_optimizations"
5830    if test x$enableval = xno; then OPTIMS=0; fi 
5831 else
5832    OPTIMS=1 
5833 fi
5834
5835
5836 # Check whether --enable-pth or --disable-pth was given.
5837 if test "${enable_pth+set}" = set; then
5838   enableval="$enable_pth"
5839    if test x$enableval = xyes; then
5840     echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
5841 echo "configure:5842: checking for pth_init in -lpth" >&5
5842 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
5843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5844   echo $ac_n "(cached) $ac_c" 1>&6
5845 else
5846   ac_save_LIBS="$LIBS"
5847 LIBS="-lpth  $LIBS"
5848 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure"
5850 #include "confdefs.h"
5851 /* Override any gcc2 internal prototype to avoid an error.  */
5852 /* We use char because int might match the return type of a gcc2
5853     builtin and then its argument prototype would still apply.  */
5854 char pth_init();
5855
5856 int main() {
5857 pth_init()
5858 ; return 0; }
5859 EOF
5860 if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5861   rm -rf conftest*
5862   eval "ac_cv_lib_$ac_lib_var=yes"
5863 else
5864   echo "configure: failed program was:" >&5
5865   cat conftest.$ac_ext >&5
5866   rm -rf conftest*
5867   eval "ac_cv_lib_$ac_lib_var=no"
5868 fi
5869 rm -f conftest*
5870 LIBS="$ac_save_LIBS"
5871
5872 fi
5873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5874   echo "$ac_t""yes" 1>&6
5875     ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5876     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5877   cat >> confdefs.h <<EOF
5878 #define $ac_tr_lib 1
5879 EOF
5880
5881   LIBS="-lpth $LIBS"
5882
5883 else
5884   echo "$ac_t""no" 1>&6
5885 fi
5886
5887     cat > conftest.$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5890 #include <pth.h>
5891 EOF
5892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893   egrep "pth_init" >/dev/null 2>&1; then
5894   rm -rf conftest*
5895   
5896       cat >> confdefs.h <<\EOF
5897 #define PTH_INIT_IN_PTH_H 1
5898 EOF
5899
5900     THREAD_LIB="-lpth"
5901     fi
5902 fi
5903 rm -f conftest*
5904
5905
5906 fi
5907
5908
5909 LIB="${LIB} ${THREAD_LIB}"
5910
5911 NEED_LIBDVDCSS=0
5912 STATIC_LIBDVDCSS=0
5913 DUMMY_LIBDVDCSS=0
5914 # Check whether --with-dvdcss or --without-dvdcss was given.
5915 if test "${with_dvdcss+set}" = set; then
5916   withval="$with_dvdcss"
5917    case "x${withval}" in
5918     xlocal-static|xyes)
5919       # local libdvdcss, statically linked
5920       if test x${CAN_BUILD_LIBDVDCSS} = x1
5921       then
5922         NEED_LIBDVDCSS=1
5923         STATIC_LIBDVDCSS=1
5924         BUILTINS="${BUILTINS} dvd"
5925         CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
5926         LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5927         LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5928         LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5929       fi
5930     ;;
5931     xlocal-shared)
5932       # local libdvdcss, dynamically linked
5933       if test x${CAN_BUILD_LIBDVDCSS} = x1
5934       then
5935         NEED_LIBDVDCSS=1
5936         BUILTINS="${BUILTINS} dvd"
5937         CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
5938         LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
5939         LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
5940         LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -L../../lib -ldvdcss"
5941       fi
5942     ;;
5943     xno)
5944       # don't use libdvdcss at all, build a DVD module that can dlopen() it
5945       DUMMY_LIBDVDCSS=1
5946       BUILTINS="${BUILTINS} dvd"
5947       SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
5948       CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
5949       CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
5950       LIB_DVD="${LIB_DVD} -ldl"
5951       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
5952       LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -ldl"
5953     ;;
5954     *)
5955       # existing libdvdcss
5956       BUILTINS="${BUILTINS} dvd"
5957       if test "x$withval" != "xyes"
5958       then
5959         LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
5960         LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -L"$withval"/lib"
5961         CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
5962       fi
5963       LIB_DVD="${LIB_DVD} -ldvdcss"
5964       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
5965       LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -ldvdcss"
5966     esac 
5967 else
5968   # user didn't decide, we choose to use local libdvdcss and link statically
5969   # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
5970    if test x${CAN_BUILD_LIBDVDCSS} = x1
5971     then
5972       NEED_LIBDVDCSS=1
5973       STATIC_LIBDVDCSS=1
5974       BUILTINS="${BUILTINS} dvd"
5975       CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
5976       LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5977       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5978       LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5979     else
5980       # XXX: no check for libdl is done, don't try this at home !
5981       DUMMY_LIBDVDCSS=1
5982       BUILTINS="${BUILTINS} dvd"
5983       SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
5984       CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
5985       LIB_DVD="${LIB_DVD} -ldl"
5986       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
5987       LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -ldl"
5988     fi 
5989 fi
5990
5991
5992 # Check whether --enable-dvdread or --disable-dvdread was given.
5993 if test "${enable_dvdread+set}" = set; then
5994   enableval="$enable_dvdread"
5995    if test x$enableval = xyes
5996   then
5997     NEED_LIBDVDCSS=1
5998     STATIC_LIBDVDCSS=1
5999     BUILTINS="${BUILTINS} dvdread" 
6000     CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6001     LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a lib/libdvdcss.a"
6002   fi 
6003 fi
6004
6005
6006 # Check whether --enable-vcd or --disable-vcd was given.
6007 if test "${enable_vcd+set}" = set; then
6008   enableval="$enable_vcd"
6009   :
6010 fi
6011
6012
6013 if test x$enable_vcd != xno
6014 then
6015   cat > conftest.$ac_ext <<EOF
6016 #line 6017 "configure"
6017 #include "confdefs.h"
6018 #include <linux/cdrom.h>
6019 EOF
6020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6021   egrep "cdrom_msf0" >/dev/null 2>&1; then
6022   rm -rf conftest*
6023   
6024     BUILTINS="${BUILTINS} vcd"
6025   
6026 fi
6027 rm -f conftest*
6028
6029 fi
6030
6031 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
6032 then
6033   BUILTINS="${BUILTINS} vcd"
6034 fi
6035
6036 # Check whether --enable-dummy or --disable-dummy was given.
6037 if test "${enable_dummy+set}" = set; then
6038   enableval="$enable_dummy"
6039   :
6040 fi
6041
6042
6043 if test x$enable_dummy != xno
6044 then
6045   BUILTINS="${BUILTINS} dummy"
6046 fi
6047
6048 # Check whether --enable-null or --disable-null was given.
6049 if test "${enable_null+set}" = set; then
6050   enableval="$enable_null"
6051   :
6052 fi
6053
6054
6055 if test x$enable_null != xno
6056 then
6057   BUILTINS="${BUILTINS} null"
6058 fi
6059
6060 # Check whether --enable-rc or --disable-rc was given.
6061 if test "${enable_rc+set}" = set; then
6062   enableval="$enable_rc"
6063   :
6064 fi
6065
6066
6067 if test x$enable_rc != xno
6068 then
6069   BUILTINS="${BUILTINS} rc"
6070 fi
6071
6072 # Check whether --with-mad or --without-mad was given.
6073 if test "${with_mad+set}" = set; then
6074   withval="$with_mad"
6075    if test "x$with_val" != "xno"; then
6076       if test -n $with_val; then
6077             CFLAGS_MAD="-I$with_val/include"
6078         LIB_MAD="-L$with_val/lib -lmad"
6079       else
6080         LIB_MAD="-lmad"
6081       fi
6082       save_CFLAGS=$CFLAGS
6083       save_LDFLAGS=$LDFLAGS
6084       CFLAGS="$CFLAGS $CFLAGS_MAD"
6085       LDFLAGS="$LDFLAGS $LIB_MAD"
6086       for ac_hdr in mad.h
6087 do
6088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6090 echo "configure:6091: checking for $ac_hdr" >&5
6091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6092   echo $ac_n "(cached) $ac_c" 1>&6
6093 else
6094   cat > conftest.$ac_ext <<EOF
6095 #line 6096 "configure"
6096 #include "confdefs.h"
6097 #include <$ac_hdr>
6098 EOF
6099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6100 { (eval echo configure:6101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6102 if test -z "$ac_err"; then
6103   rm -rf conftest*
6104   eval "ac_cv_header_$ac_safe=yes"
6105 else
6106   echo "$ac_err" >&5
6107   echo "configure: failed program was:" >&5
6108   cat conftest.$ac_ext >&5
6109   rm -rf conftest*
6110   eval "ac_cv_header_$ac_safe=no"
6111 fi
6112 rm -f conftest*
6113 fi
6114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6115   echo "$ac_t""yes" 1>&6
6116     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6117   cat >> confdefs.h <<EOF
6118 #define $ac_tr_hdr 1
6119 EOF
6120  
6121 else
6122   echo "$ac_t""no" 1>&6
6123 echo "Cannot find development headers for libmad..."
6124         exit 1
6125       
6126 fi
6127 done
6128
6129       echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6130 echo "configure:6131: checking for mad_bit_init in -lmad" >&5
6131 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6133   echo $ac_n "(cached) $ac_c" 1>&6
6134 else
6135   ac_save_LIBS="$LIBS"
6136 LIBS="-lmad  $LIBS"
6137 cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6140 /* Override any gcc2 internal prototype to avoid an error.  */
6141 /* We use char because int might match the return type of a gcc2
6142     builtin and then its argument prototype would still apply.  */
6143 char mad_bit_init();
6144
6145 int main() {
6146 mad_bit_init()
6147 ; return 0; }
6148 EOF
6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6150   rm -rf conftest*
6151   eval "ac_cv_lib_$ac_lib_var=yes"
6152 else
6153   echo "configure: failed program was:" >&5
6154   cat conftest.$ac_ext >&5
6155   rm -rf conftest*
6156   eval "ac_cv_lib_$ac_lib_var=no"
6157 fi
6158 rm -f conftest*
6159 LIBS="$ac_save_LIBS"
6160
6161 fi
6162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6163   echo "$ac_t""yes" 1>&6
6164     ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6165     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6166   cat >> confdefs.h <<EOF
6167 #define $ac_tr_lib 1
6168 EOF
6169
6170   LIBS="-lmad $LIBS"
6171
6172 else
6173   echo "$ac_t""no" 1>&6
6174  echo "Cannot find libmad library..."
6175         exit 1
6176       
6177 fi
6178
6179       CFLAGS=$save_CFLAGS
6180       LDFLAGS=$save_LDFLAGS
6181       PLUGINS="${PLUGINS} mad"
6182     fi 
6183 fi
6184
6185
6186 if test x$SYS = xbeos
6187 then
6188     BUILTINS="${BUILTINS} beos"
6189
6190 else
6191
6192 # Check whether --enable-dsp or --disable-dsp was given.
6193 if test "${enable_dsp+set}" = set; then
6194   enableval="$enable_dsp"
6195   :
6196 fi
6197
6198
6199 if test x$enable_dsp != xno &&
6200   (test $SYS != mingw32 || test x$enable_dsp = xyes)
6201 then
6202   if test -c /dev/dsp
6203   then
6204     PLUGINS="${PLUGINS} dsp"
6205   fi
6206 fi
6207
6208 # Check whether --enable-esd or --disable-esd was given.
6209 if test "${enable_esd+set}" = set; then
6210   enableval="$enable_esd"
6211   if test x$enable_esd = xyes
6212    then
6213      # Extract the first word of "esd-config", so it can be a program name with args.
6214 set dummy esd-config; ac_word=$2
6215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6216 echo "configure:6217: checking for $ac_word" >&5
6217 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6218   echo $ac_n "(cached) $ac_c" 1>&6
6219 else
6220   case "$ESD_CONFIG" in
6221   /*)
6222   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6223   ;;
6224   ?:/*)                  
6225   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6226   ;;
6227   *)
6228   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6229   ac_dummy="$PATH"
6230   for ac_dir in $ac_dummy; do 
6231     test -z "$ac_dir" && ac_dir=.
6232     if test -f $ac_dir/$ac_word; then
6233       ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6234       break
6235     fi
6236   done
6237   IFS="$ac_save_ifs"
6238   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6239   ;;
6240 esac
6241 fi
6242 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6243 if test -n "$ESD_CONFIG"; then
6244   echo "$ac_t""$ESD_CONFIG" 1>&6
6245 else
6246   echo "$ac_t""no" 1>&6
6247 fi
6248
6249      if test x${ESD_CONFIG} != xno
6250      then
6251        PLUGINS="${PLUGINS} esd"
6252        CFLAGS_ESD="`${ESD_CONFIG} --cflags`"
6253        LIB_ESD="`${ESD_CONFIG} --libs`"
6254      fi
6255    fi
6256 fi
6257
6258
6259 # Check whether --enable-arts or --disable-arts was given.
6260 if test "${enable_arts+set}" = set; then
6261   enableval="$enable_arts"
6262   if test x$enable_arts = xyes
6263    then
6264      # Extract the first word of "artsc-config", so it can be a program name with args.
6265 set dummy artsc-config; ac_word=$2
6266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6267 echo "configure:6268: checking for $ac_word" >&5
6268 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6269   echo $ac_n "(cached) $ac_c" 1>&6
6270 else
6271   case "$ARTS_CONFIG" in
6272   /*)
6273   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6274   ;;
6275   ?:/*)                  
6276   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6277   ;;
6278   *)
6279   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6280   ac_dummy="$PATH"
6281   for ac_dir in $ac_dummy; do 
6282     test -z "$ac_dir" && ac_dir=.
6283     if test -f $ac_dir/$ac_word; then
6284       ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6285       break
6286     fi
6287   done
6288   IFS="$ac_save_ifs"
6289   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6290   ;;
6291 esac
6292 fi
6293 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6294 if test -n "$ARTS_CONFIG"; then
6295   echo "$ac_t""$ARTS_CONFIG" 1>&6
6296 else
6297   echo "$ac_t""no" 1>&6
6298 fi
6299
6300      if test x${ARTS_CONFIG} != xno
6301      then
6302        PLUGINS="${PLUGINS} arts"
6303        CFLAGS_ARTS="`${ARTS_CONFIG} --cflags`"
6304        LIB_ARTS="`${ARTS_CONFIG} --libs `"
6305      fi
6306    fi
6307 fi
6308
6309
6310 # Check whether --enable-macosx or --disable-macosx was given.
6311 if test "${enable_macosx+set}" = set; then
6312   enableval="$enable_macosx"
6313   if test x$enable_macosx = xyes
6314    then
6315      BUILTINS="${BUILTINS} macosx"
6316      LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6317      CFLAGS_MACOSX="-ObjC"
6318      LIB="${LIB} -ObjC"
6319    fi
6320 else
6321   for ac_hdr in Cocoa/Cocoa.h
6322 do
6323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6325 echo "configure:6326: checking for $ac_hdr" >&5
6326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6327   echo $ac_n "(cached) $ac_c" 1>&6
6328 else
6329   cat > conftest.$ac_ext <<EOF
6330 #line 6331 "configure"
6331 #include "confdefs.h"
6332 #include <$ac_hdr>
6333 EOF
6334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6335 { (eval echo configure:6336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6337 if test -z "$ac_err"; then
6338   rm -rf conftest*
6339   eval "ac_cv_header_$ac_safe=yes"
6340 else
6341   echo "$ac_err" >&5
6342   echo "configure: failed program was:" >&5
6343   cat conftest.$ac_ext >&5
6344   rm -rf conftest*
6345   eval "ac_cv_header_$ac_safe=no"
6346 fi
6347 rm -f conftest*
6348 fi
6349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6350   echo "$ac_t""yes" 1>&6
6351     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6352   cat >> confdefs.h <<EOF
6353 #define $ac_tr_hdr 1
6354 EOF
6355  BUILTINS="${BUILTINS} macosx"
6356      LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6357      CFLAGS_MACOSX="-ObjC"
6358      LIB="${LIB} -ObjC"
6359    
6360 else
6361   echo "$ac_t""no" 1>&6
6362 fi
6363 done
6364
6365 fi
6366
6367
6368 # Check whether --enable-qnx or --disable-qnx was given.
6369 if test "${enable_qnx+set}" = set; then
6370   enableval="$enable_qnx"
6371   :
6372 fi
6373
6374     if test x$enable_qnx != xno
6375     then
6376       for ac_hdr in Ph.h
6377 do
6378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6380 echo "configure:6381: checking for $ac_hdr" >&5
6381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6382   echo $ac_n "(cached) $ac_c" 1>&6
6383 else
6384   cat > conftest.$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6387 #include <$ac_hdr>
6388 EOF
6389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6390 { (eval echo configure:6391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6392 if test -z "$ac_err"; then
6393   rm -rf conftest*
6394   eval "ac_cv_header_$ac_safe=yes"
6395 else
6396   echo "$ac_err" >&5
6397   echo "configure: failed program was:" >&5
6398   cat conftest.$ac_ext >&5
6399   rm -rf conftest*
6400   eval "ac_cv_header_$ac_safe=no"
6401 fi
6402 rm -f conftest*
6403 fi
6404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6405   echo "$ac_t""yes" 1>&6
6406     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6407   cat >> confdefs.h <<EOF
6408 #define $ac_tr_hdr 1
6409 EOF
6410  
6411         PLUGINS="${PLUGINS} qnx"
6412         LIB_QNX="-lasound -lph"
6413       
6414 else
6415   echo "$ac_t""no" 1>&6
6416 fi
6417 done
6418
6419     fi
6420
6421 # Check whether --enable-fb or --disable-fb was given.
6422 if test "${enable_fb+set}" = set; then
6423   enableval="$enable_fb"
6424    if test x$enable_fb = xyes
6425     then
6426       PLUGINS="${PLUGINS} fb"
6427     fi 
6428 fi
6429
6430
6431 # Check whether --with-ggi or --without-ggi was given.
6432 if test "${with_ggi+set}" = set; then
6433   withval="$with_ggi"
6434    if test "x$withval" != "xno"
6435     then
6436       PLUGINS="${PLUGINS} ggi"
6437       if test "x$withval" != "xyes"
6438       then
6439         LIB_GGI="-l"$withval
6440       else
6441         LIB_GGI="-lggi"
6442       fi
6443     fi 
6444 fi
6445
6446
6447 # Check whether --enable-sdl or --disable-sdl was given.
6448 if test "${enable_sdl+set}" = set; then
6449   enableval="$enable_sdl"
6450   :
6451 fi
6452
6453 if test "x$enable_sdl" != "xno"
6454 then
6455   SDL_PATH=$PATH
6456   # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6457 if test "${with_sdl_config_path+set}" = set; then
6458   withval="$with_sdl_config_path"
6459    if test "x$withval" != "xno"
6460       then
6461         SDL_PATH=$withval:$PATH
6462       fi 
6463 fi
6464
6465   # Extract the first word of "sdl12-config", so it can be a program name with args.
6466 set dummy sdl12-config; ac_word=$2
6467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6468 echo "configure:6469: checking for $ac_word" >&5
6469 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6470   echo $ac_n "(cached) $ac_c" 1>&6
6471 else
6472   case "$SDL12_CONFIG" in
6473   /*)
6474   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6475   ;;
6476   ?:/*)                  
6477   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6478   ;;
6479   *)
6480   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6481   ac_dummy="$SDL_PATH"
6482   for ac_dir in $ac_dummy; do 
6483     test -z "$ac_dir" && ac_dir=.
6484     if test -f $ac_dir/$ac_word; then
6485       ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6486       break
6487     fi
6488   done
6489   IFS="$ac_save_ifs"
6490   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6491   ;;
6492 esac
6493 fi
6494 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6495 if test -n "$SDL12_CONFIG"; then
6496   echo "$ac_t""$SDL12_CONFIG" 1>&6
6497 else
6498   echo "$ac_t""no" 1>&6
6499 fi
6500
6501   SDL_CONFIG=${SDL12_CONFIG}
6502   SDL_HEADER="SDL12/SDL.h"
6503   if test x${SDL_CONFIG} = xno
6504   then
6505     # Extract the first word of "sdl11-config", so it can be a program name with args.
6506 set dummy sdl11-config; ac_word=$2
6507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6508 echo "configure:6509: checking for $ac_word" >&5
6509 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6510   echo $ac_n "(cached) $ac_c" 1>&6
6511 else
6512   case "$SDL11_CONFIG" in
6513   /*)
6514   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6515   ;;
6516   ?:/*)                  
6517   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6518   ;;
6519   *)
6520   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6521   ac_dummy="$SDL_PATH"
6522   for ac_dir in $ac_dummy; do 
6523     test -z "$ac_dir" && ac_dir=.
6524     if test -f $ac_dir/$ac_word; then
6525       ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6526       break
6527     fi
6528   done
6529   IFS="$ac_save_ifs"
6530   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6531   ;;
6532 esac
6533 fi
6534 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6535 if test -n "$SDL11_CONFIG"; then
6536   echo "$ac_t""$SDL11_CONFIG" 1>&6
6537 else
6538   echo "$ac_t""no" 1>&6
6539 fi
6540
6541     SDL_CONFIG=${SDL11_CONFIG}
6542     SDL_HEADER="SDL11/SDL.h"
6543   fi
6544   if test x${SDL_CONFIG} = xno
6545   then
6546     # Extract the first word of "sdl-config", so it can be a program name with args.
6547 set dummy sdl-config; ac_word=$2
6548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6549 echo "configure:6550: checking for $ac_word" >&5
6550 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6551   echo $ac_n "(cached) $ac_c" 1>&6
6552 else
6553   case "$SDL_CONFIG" in
6554   /*)
6555   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6556   ;;
6557   ?:/*)                  
6558   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6559   ;;
6560   *)
6561   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6562   ac_dummy="$SDL_PATH"
6563   for ac_dir in $ac_dummy; do 
6564     test -z "$ac_dir" && ac_dir=.
6565     if test -f $ac_dir/$ac_word; then
6566       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6567       break
6568     fi
6569   done
6570   IFS="$ac_save_ifs"
6571   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6572   ;;
6573 esac
6574 fi
6575 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6576 if test -n "$SDL_CONFIG"; then
6577   echo "$ac_t""$SDL_CONFIG" 1>&6
6578 else
6579   echo "$ac_t""no" 1>&6
6580 fi
6581
6582     SDL_HEADER="SDL/SDL.h"
6583   fi
6584   if test x${SDL_CONFIG} != xno
6585   then
6586     PLUGINS="${PLUGINS} sdl"
6587     CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
6588     LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6589     save_CPPFLAGS=$CPPFLAGS
6590     CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
6591     for ac_hdr in ${SDL_HEADER}
6592 do
6593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6595 echo "configure:6596: checking for $ac_hdr" >&5
6596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6597   echo $ac_n "(cached) $ac_c" 1>&6
6598 else
6599   cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure"
6601 #include "confdefs.h"
6602 #include <$ac_hdr>
6603 EOF
6604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6605 { (eval echo configure:6606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6607 if test -z "$ac_err"; then
6608   rm -rf conftest*
6609   eval "ac_cv_header_$ac_safe=yes"
6610 else
6611   echo "$ac_err" >&5
6612   echo "configure: failed program was:" >&5
6613   cat conftest.$ac_ext >&5
6614   rm -rf conftest*
6615   eval "ac_cv_header_$ac_safe=no"
6616 fi
6617 rm -f conftest*
6618 fi
6619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6620   echo "$ac_t""yes" 1>&6
6621     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6622   cat >> confdefs.h <<EOF
6623 #define $ac_tr_hdr 1
6624 EOF
6625  cat >> confdefs.h <<EOF
6626 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6627 EOF
6628
6629 else
6630   echo "$ac_t""no" 1>&6
6631 { echo "configure: error: The development package for SDL is not installed. 
6632 Please install it and try again. Alternatively you can also configure with 
6633 --disable-sdl." 1>&2; exit 1; }
6634       
6635 fi
6636 done
6637
6638     CPPFLAGS=$save_CPPFLAGS
6639     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6640     then
6641       { echo "configure: error: The development package for SDL is not installed.
6642 Please install it and try again. Alternatively you can also configure with
6643 --disable-sdl." 1>&2; exit 1; }
6644     fi
6645   elif test "x$enable_sdl" =  "xyes"
6646   then
6647     { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6648 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6649     " 1>&2; exit 1; }
6650   fi
6651 fi
6652
6653 # Check whether --enable-directx or --disable-directx was given.
6654 if test "${enable_directx+set}" = set; then
6655   enableval="$enable_directx"
6656   :
6657 fi
6658
6659 if test "x$enableval" != "xno"
6660 then
6661   if test $SYS = mingw32
6662   then
6663     # Check whether --with-directx-path or --without-directx-path was given.
6664 if test "${with_directx_path+set}" = set; then
6665   withval="$with_directx_path"
6666   :
6667 fi
6668
6669     if test "x$with_directx_path" = "x"
6670     then
6671       for ac_hdr in directx.h
6672 do
6673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6675 echo "configure:6676: checking for $ac_hdr" >&5
6676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6677   echo $ac_n "(cached) $ac_c" 1>&6
6678 else
6679   cat > conftest.$ac_ext <<EOF
6680 #line 6681 "configure"
6681 #include "confdefs.h"
6682 #include <$ac_hdr>
6683 EOF
6684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6685 { (eval echo configure:6686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6687 if test -z "$ac_err"; then
6688   rm -rf conftest*
6689   eval "ac_cv_header_$ac_safe=yes"
6690 else
6691   echo "$ac_err" >&5
6692   echo "configure: failed program was:" >&5
6693   cat conftest.$ac_ext >&5
6694   rm -rf conftest*
6695   eval "ac_cv_header_$ac_safe=no"
6696 fi
6697 rm -f conftest*
6698 fi
6699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6700   echo "$ac_t""yes" 1>&6
6701     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6702   cat >> confdefs.h <<EOF
6703 #define $ac_tr_hdr 1
6704 EOF
6705   PLUGINS="${PLUGINS} directx"
6706         LIB_DIRECTX="-lgdi32 -ldxguid" 
6707 else
6708   echo "$ac_t""no" 1>&6
6709 fi
6710 done
6711
6712     else
6713       echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
6714 echo "configure:6715: checking for directX headers in ${withval}" >&5
6715       if test -f ${withval}/include/directx.h
6716       then
6717         PLUGINS="${PLUGINS} directx"
6718         LIB_DIRECTX="-L${withval}/lib -lgdi32 -ldxguid"
6719         INCLUDE="${INCLUDE} -I${withval}/include"
6720         echo "$ac_t""yes" 1>&6
6721       else
6722         echo "$ac_t""no" 1>&6
6723         { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; }
6724       fi
6725     fi
6726   fi
6727 fi
6728
6729 # Check whether --with-glide or --without-glide was given.
6730 if test "${with_glide+set}" = set; then
6731   withval="$with_glide"
6732    if test "x$withval" != "xno"
6733     then
6734       PLUGINS="${PLUGINS} glide"
6735       if test "x$withval" != "xyes"
6736       then
6737         LIB_GLIDE="-l"$withval" -lm"
6738       else
6739         LIB_GLIDE="-lglide2x -lm"
6740       fi
6741       CFLAGS_GLIDE="-I/usr/include/glide"
6742     fi 
6743 fi
6744
6745
6746 # Check whether --enable-ncurses or --disable-ncurses was given.
6747 if test "${enable_ncurses+set}" = set; then
6748   enableval="$enable_ncurses"
6749   if test x$enable_ncurses = xyes; then
6750      PLUGINS="${PLUGINS} ncurses"
6751      LIB_NCURSES="-lncurses"
6752    fi
6753 fi
6754
6755
6756 # Check whether --enable-qt or --disable-qt was given.
6757 if test "${enable_qt+set}" = set; then
6758   enableval="$enable_qt"
6759   if test x$enable_qt = xyes; then
6760      PLUGINS="${PLUGINS} qt"
6761      ALIASES="${ALIASES} qvlc"
6762      LIB_QT="-lqt -L${QTDIR}/lib"
6763      CFLAGS_QT="-I/usr/include/qt -I${QTDIR}/include"
6764      if test -x ${QTDIR}/bin/moc
6765      then
6766        MOC=${QTDIR}/bin/moc
6767      else
6768        MOC=moc
6769      fi
6770    fi
6771 fi
6772
6773
6774 # Check whether --enable-kde or --disable-kde was given.
6775 if test "${enable_kde+set}" = set; then
6776   enableval="$enable_kde"
6777   if test x$enable_kde = xyes; then
6778      PLUGINS="${PLUGINS} kde"
6779      ALIASES="${ALIASES} kvlc"
6780      LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
6781      CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
6782      CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
6783      if test -x ${QTDIR}/bin/moc
6784      then
6785        MOC=${QTDIR}/bin/moc
6786      else
6787        MOC=moc
6788      fi
6789    fi
6790 fi
6791
6792
6793 # Check whether --enable-gnome or --disable-gnome was given.
6794 if test "${enable_gnome+set}" = set; then
6795   enableval="$enable_gnome"
6796   if test x$enable_gnome = xyes; then
6797     # look for gnome-config
6798     # Extract the first word of "gnome-config", so it can be a program name with args.
6799 set dummy gnome-config; ac_word=$2
6800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6801 echo "configure:6802: checking for $ac_word" >&5
6802 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
6803   echo $ac_n "(cached) $ac_c" 1>&6
6804 else
6805   case "$GNOME_CONFIG" in
6806   /*)
6807   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
6808   ;;
6809   ?:/*)                  
6810   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
6811   ;;
6812   *)
6813   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6814   ac_dummy="$PATH"
6815   for ac_dir in $ac_dummy; do 
6816     test -z "$ac_dir" && ac_dir=.
6817     if test -f $ac_dir/$ac_word; then
6818       ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
6819       break
6820     fi
6821   done
6822   IFS="$ac_save_ifs"
6823   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
6824   ;;
6825 esac
6826 fi
6827 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
6828 if test -n "$GNOME_CONFIG"; then
6829   echo "$ac_t""$GNOME_CONFIG" 1>&6
6830 else
6831   echo "$ac_t""no" 1>&6
6832 fi
6833
6834     if test -x ${GNOME_CONFIG}
6835     then
6836        CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gtk gnomeui`"
6837        LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
6838     fi
6839     # now look for the gnome.h header
6840     saved_CPPFLAGS=$CPPFLAGS
6841     CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
6842     for ac_hdr in gnome.h
6843 do
6844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6846 echo "configure:6847: checking for $ac_hdr" >&5
6847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6848   echo $ac_n "(cached) $ac_c" 1>&6
6849 else
6850   cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure"
6852 #include "confdefs.h"
6853 #include <$ac_hdr>
6854 EOF
6855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6856 { (eval echo configure:6857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6858 if test -z "$ac_err"; then
6859   rm -rf conftest*
6860   eval "ac_cv_header_$ac_safe=yes"
6861 else
6862   echo "$ac_err" >&5
6863   echo "configure: failed program was:" >&5
6864   cat conftest.$ac_ext >&5
6865   rm -rf conftest*
6866   eval "ac_cv_header_$ac_safe=no"
6867 fi
6868 rm -f conftest*
6869 fi
6870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6871   echo "$ac_t""yes" 1>&6
6872     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6873   cat >> confdefs.h <<EOF
6874 #define $ac_tr_hdr 1
6875 EOF
6876  
6877       PLUGINS="${PLUGINS} gnome"
6878       ALIASES="${ALIASES} gnome-vlc"
6879      
6880 else
6881   echo "$ac_t""no" 1>&6
6882 { echo "configure: error: Can't find gnome headers. Please install the gnome
6883 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
6884      
6885 fi
6886 done
6887
6888   
6889     CPPFLAGS=$saved_CPPFLAGS
6890   fi
6891 fi
6892
6893
6894 # Check whether --enable-gtk or --disable-gtk was given.
6895 if test "${enable_gtk+set}" = set; then
6896   enableval="$enable_gtk"
6897   :
6898 fi
6899
6900 if test x$enable_gtk != xno
6901 then
6902   GTK_PATH=$PATH
6903   # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
6904 if test "${with_gtk_config_path+set}" = set; then
6905   withval="$with_gtk_config_path"
6906    if test "x$withval" != "xno"
6907       then
6908         GTK_PATH=$withval:$PATH
6909       fi 
6910 fi
6911
6912   # look for gtk-config
6913   # Extract the first word of "gtk-config", so it can be a program name with args.
6914 set dummy gtk-config; ac_word=$2
6915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6916 echo "configure:6917: checking for $ac_word" >&5
6917 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6918   echo $ac_n "(cached) $ac_c" 1>&6
6919 else
6920   case "$GTK_CONFIG" in
6921   /*)
6922   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6923   ;;
6924   ?:/*)                  
6925   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6926   ;;
6927   *)
6928   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6929   ac_dummy="$GTK_PATH"
6930   for ac_dir in $ac_dummy; do 
6931     test -z "$ac_dir" && ac_dir=.
6932     if test -f $ac_dir/$ac_word; then
6933       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6934       break
6935     fi
6936   done
6937   IFS="$ac_save_ifs"
6938   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6939   ;;
6940 esac
6941 fi
6942 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6943 if test -n "$GTK_CONFIG"; then
6944   echo "$ac_t""$GTK_CONFIG" 1>&6
6945 else
6946   echo "$ac_t""no" 1>&6
6947 fi
6948
6949   if test -x ${GTK_CONFIG}
6950   then
6951     CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
6952     LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
6953   fi
6954   # now look for the gtk.h header
6955   saved_CPPFLAGS=$CPPFLAGS
6956   CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
6957   ac_cv_gtk_headers=yes
6958   for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
6959 do
6960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6962 echo "configure:6963: checking for $ac_hdr" >&5
6963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6964   echo $ac_n "(cached) $ac_c" 1>&6
6965 else
6966   cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6969 #include <$ac_hdr>
6970 EOF
6971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6972 { (eval echo configure:6973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6974 if test -z "$ac_err"; then
6975   rm -rf conftest*
6976   eval "ac_cv_header_$ac_safe=yes"
6977 else
6978   echo "$ac_err" >&5
6979   echo "configure: failed program was:" >&5
6980   cat conftest.$ac_ext >&5
6981   rm -rf conftest*
6982   eval "ac_cv_header_$ac_safe=no"
6983 fi
6984 rm -f conftest*
6985 fi
6986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6987   echo "$ac_t""yes" 1>&6
6988     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6989   cat >> confdefs.h <<EOF
6990 #define $ac_tr_hdr 1
6991 EOF
6992  
6993 else
6994   echo "$ac_t""no" 1>&6
6995 ac_cv_gtk_headers=no
6996     echo "Cannot find gtk development headers."
6997   
6998 fi
6999 done
7000
7001   if test "x$ac_cv_gtk_headers" = xyes
7002   then
7003     PLUGINS="${PLUGINS} gtk"
7004     ALIASES="${ALIASES} gvlc"
7005   fi
7006   CPPFLAGS=$saved_CPPFLAGS
7007 fi
7008
7009 # Check whether --enable-x11 or --disable-x11 was given.
7010 if test "${enable_x11+set}" = set; then
7011   enableval="$enable_x11"
7012   :
7013 fi
7014
7015 if test x$enable_x11 != xno &&
7016   (test $SYS != mingw32 || test x$enable_x11 = xyes); then
7017   if test x$x_includes = xNONE; then
7018     x_includes=/usr/X11R6/include
7019   fi
7020   if test x$x_libraries = xNONE; then
7021     x_libraries=/usr/X11R6/lib
7022   fi
7023   saved_CPPFLAGS=$CPPFLAGS
7024   CPPFLAGS="$CPPFLAGS -I$x_includes"
7025   for ac_hdr in X11/Xlib.h
7026 do
7027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7029 echo "configure:7030: checking for $ac_hdr" >&5
7030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7031   echo $ac_n "(cached) $ac_c" 1>&6
7032 else
7033   cat > conftest.$ac_ext <<EOF
7034 #line 7035 "configure"
7035 #include "confdefs.h"
7036 #include <$ac_hdr>
7037 EOF
7038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7039 { (eval echo configure:7040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7041 if test -z "$ac_err"; then
7042   rm -rf conftest*
7043   eval "ac_cv_header_$ac_safe=yes"
7044 else
7045   echo "$ac_err" >&5
7046   echo "configure: failed program was:" >&5
7047   cat conftest.$ac_ext >&5
7048   rm -rf conftest*
7049   eval "ac_cv_header_$ac_safe=no"
7050 fi
7051 rm -f conftest*
7052 fi
7053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7054   echo "$ac_t""yes" 1>&6
7055     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7056   cat >> confdefs.h <<EOF
7057 #define $ac_tr_hdr 1
7058 EOF
7059  
7060     PLUGINS="${PLUGINS} x11"
7061     LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
7062     CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
7063   
7064   CPPFLAGS=$saved_CPPFLAGS
7065 else
7066   echo "$ac_t""no" 1>&6
7067 fi
7068 done
7069
7070 fi
7071
7072 # Check whether --enable-xvideo or --disable-xvideo was given.
7073 if test "${enable_xvideo+set}" = set; then
7074   enableval="$enable_xvideo"
7075   :
7076 fi
7077
7078 if test x$enable_xvideo != xno &&
7079   (test $SYS != mingw32 || test x$enable_xvideo = xyes); then
7080   if test x$x_includes = xNONE; then
7081     x_includes=/usr/X11R6/include
7082   fi
7083   if test x$x_libraries = xNONE; then
7084     x_libraries=/usr/X11R6/lib
7085   fi
7086   saved_CPPFLAGS=$CPPFLAGS
7087   CPPFLAGS="$CPPFLAGS -I$x_includes"
7088   for ac_hdr in X11/extensions/Xv.h
7089 do
7090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7092 echo "configure:7093: checking for $ac_hdr" >&5
7093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7094   echo $ac_n "(cached) $ac_c" 1>&6
7095 else
7096   cat > conftest.$ac_ext <<EOF
7097 #line 7098 "configure"
7098 #include "confdefs.h"
7099 #include <$ac_hdr>
7100 EOF
7101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7102 { (eval echo configure:7103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7104 if test -z "$ac_err"; then
7105   rm -rf conftest*
7106   eval "ac_cv_header_$ac_safe=yes"
7107 else
7108   echo "$ac_err" >&5
7109   echo "configure: failed program was:" >&5
7110   cat conftest.$ac_ext >&5
7111   rm -rf conftest*
7112   eval "ac_cv_header_$ac_safe=no"
7113 fi
7114 rm -f conftest*
7115 fi
7116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7117   echo "$ac_t""yes" 1>&6
7118     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7119   cat >> confdefs.h <<EOF
7120 #define $ac_tr_hdr 1
7121 EOF
7122  
7123     BUILTINS="${BUILTINS} xvideo"
7124     LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
7125     CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7126   
7127   CPPFLAGS=$saved_CPPFLAGS
7128 else
7129   echo "$ac_t""no" 1>&6
7130 fi
7131 done
7132
7133 fi
7134
7135 # Check whether --enable-alsa or --disable-alsa was given.
7136 if test "${enable_alsa+set}" = set; then
7137   enableval="$enable_alsa"
7138   if test x$enable_alsa = xyes
7139    then
7140      ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7141 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7142 echo "configure:7143: checking for alsa/asoundlib.h" >&5
7143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7144   echo $ac_n "(cached) $ac_c" 1>&6
7145 else
7146   cat > conftest.$ac_ext <<EOF
7147 #line 7148 "configure"
7148 #include "confdefs.h"
7149 #include <alsa/asoundlib.h>
7150 EOF
7151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7152 { (eval echo configure:7153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7154 if test -z "$ac_err"; then
7155   rm -rf conftest*
7156   eval "ac_cv_header_$ac_safe=yes"
7157 else
7158   echo "$ac_err" >&5
7159   echo "configure: failed program was:" >&5
7160   cat conftest.$ac_ext >&5
7161   rm -rf conftest*
7162   eval "ac_cv_header_$ac_safe=no"
7163 fi
7164 rm -f conftest*
7165 fi
7166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7167   echo "$ac_t""yes" 1>&6
7168   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7169 echo "configure:7170: checking for main in -lasound" >&5
7170 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7172   echo $ac_n "(cached) $ac_c" 1>&6
7173 else
7174   ac_save_LIBS="$LIBS"
7175 LIBS="-lasound  $LIBS"
7176 cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179
7180 int main() {
7181 main()
7182 ; return 0; }
7183 EOF
7184 if { (eval echo configure:7185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7185   rm -rf conftest*
7186   eval "ac_cv_lib_$ac_lib_var=yes"
7187 else
7188   echo "configure: failed program was:" >&5
7189   cat conftest.$ac_ext >&5
7190   rm -rf conftest*
7191   eval "ac_cv_lib_$ac_lib_var=no"
7192 fi
7193 rm -f conftest*
7194 LIBS="$ac_save_LIBS"
7195
7196 fi
7197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7198   echo "$ac_t""yes" 1>&6
7199   have_alsa="true"
7200 else
7201   echo "$ac_t""no" 1>&6
7202 have_alsa="false"
7203 fi
7204
7205 else
7206   echo "$ac_t""no" 1>&6
7207 have_alsa="false"
7208 fi
7209
7210      if test x$have_alsa = xtrue
7211      then
7212        PLUGINS="${PLUGINS} alsa"
7213        LIB_ALSA="-lasound -lm -ldl"
7214      fi
7215    fi
7216 fi
7217
7218
7219 fi
7220
7221 # Check whether --enable-plugins or --disable-plugins was given.
7222 if test "${enable_plugins+set}" = set; then
7223   enableval="$enable_plugins"
7224   if test x$enable_plugins = xno
7225    then
7226      BUILTINS="${BUILTINS} ${PLUGINS}"
7227      PLUGINS=
7228    fi
7229 fi
7230
7231
7232 DLL_PATH=.
7233 # Check whether --with-dll-path or --without-dll-path was given.
7234 if test "${with_dll_path+set}" = set; then
7235   withval="$with_dll_path"
7236    if test "x$withval" != "xno"
7237     then
7238       DLL_PATH=$withval
7239     fi 
7240 fi
7241
7242
7243 cat >> confdefs.h <<EOF
7244 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
7245 EOF
7246
7247 cat >> confdefs.h <<EOF
7248 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
7249 EOF
7250
7251
7252 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
7253 cat >> confdefs.h <<EOF
7254 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
7255 EOF
7256
7257 cat >> confdefs.h <<EOF
7258 #define MODULE_SYMBOL $VLC_SYMBOL
7259 EOF
7260
7261
7262 DATA_PATH="${ac_tool_prefix}/share/videolan"
7263
7264 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353 trap '' 1 2 15
7354 cat > confcache <<\EOF
7355 # This file is a shell script that caches the results of configure
7356 # tests run on this system so they can be shared between configure
7357 # scripts and configure runs.  It is not useful on other systems.
7358 # If it contains results you don't want to keep, you may remove or edit it.
7359 #
7360 # By default, configure uses ./config.cache as the cache file,
7361 # creating it if it does not exist already.  You can give configure
7362 # the --cache-file=FILE option to use a different cache file; that is
7363 # what configure does when it calls configure scripts in
7364 # subdirectories, so they share the cache.
7365 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7366 # config.status only pays attention to the cache file if you give it the
7367 # --recheck option to rerun configure.
7368 #
7369 EOF
7370 # The following way of writing the cache mishandles newlines in values,
7371 # but we know of no workaround that is simple, portable, and efficient.
7372 # So, don't put newlines in cache variables' values.
7373 # Ultrix sh set writes to stderr and can't be redirected directly,
7374 # and sets the high bit in the cache file unless we assign to the vars.
7375 (set) 2>&1 |
7376   case `(ac_space=' '; set | grep ac_space) 2>&1` in
7377   *ac_space=\ *)
7378     # `set' does not quote correctly, so add quotes (double-quote substitution
7379     # turns \\\\ into \\, and sed turns \\ into \).
7380     sed -n \
7381       -e "s/'/'\\\\''/g" \
7382       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7383     ;;
7384   *)
7385     # `set' quotes correctly as required by POSIX, so do not add quotes.
7386     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7387     ;;
7388   esac >> confcache
7389 if cmp -s $cache_file confcache; then
7390   :
7391 else
7392   if test -w $cache_file; then
7393     echo "updating cache $cache_file"
7394     cat confcache > $cache_file
7395   else
7396     echo "not updating unwritable cache $cache_file"
7397   fi
7398 fi
7399 rm -f confcache
7400
7401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7402
7403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7404 # Let make expand exec_prefix.
7405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7406
7407 # Any assignment to VPATH causes Sun make to only execute
7408 # the first set of double-colon rules, so remove it if not needed.
7409 # If there is a colon in the path, we need to keep it.
7410 if test "x$srcdir" = x.; then
7411   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
7412 fi
7413
7414 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7415
7416 DEFS=-DHAVE_CONFIG_H
7417
7418 # Without the "./", some shells look in PATH for config.status.
7419 : ${CONFIG_STATUS=./config.status}
7420
7421 echo creating $CONFIG_STATUS
7422 rm -f $CONFIG_STATUS
7423 cat > $CONFIG_STATUS <<EOF
7424 #! /bin/sh
7425 # Generated automatically by configure.
7426 # Run this file to recreate the current configuration.
7427 # This directory was configured as follows,
7428 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7429 #
7430 # $0 $ac_configure_args
7431 #
7432 # Compiler output produced by configure, useful for debugging
7433 # configure, is in ./config.log if it exists.
7434
7435 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7436 for ac_option
7437 do
7438   case "\$ac_option" in
7439   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7440     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7441     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7442   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7443     echo "$CONFIG_STATUS generated by autoconf version 2.13"
7444     exit 0 ;;
7445   -help | --help | --hel | --he | --h)
7446     echo "\$ac_cs_usage"; exit 0 ;;
7447   *) echo "\$ac_cs_usage"; exit 1 ;;
7448   esac
7449 done
7450
7451 ac_given_srcdir=$srcdir
7452 ac_given_INSTALL="$INSTALL"
7453
7454 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7455 EOF
7456 cat >> $CONFIG_STATUS <<EOF
7457
7458 # Protect against being on the right side of a sed subst in config.status.
7459 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7460  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7461 $ac_vpsub
7462 $extrasub
7463 s%@SHELL@%$SHELL%g
7464 s%@CFLAGS@%$CFLAGS%g
7465 s%@CPPFLAGS@%$CPPFLAGS%g
7466 s%@CXXFLAGS@%$CXXFLAGS%g
7467 s%@FFLAGS@%$FFLAGS%g
7468 s%@DEFS@%$DEFS%g
7469 s%@LDFLAGS@%$LDFLAGS%g
7470 s%@LIBS@%$LIBS%g
7471 s%@exec_prefix@%$exec_prefix%g
7472 s%@prefix@%$prefix%g
7473 s%@program_transform_name@%$program_transform_name%g
7474 s%@bindir@%$bindir%g
7475 s%@sbindir@%$sbindir%g
7476 s%@libexecdir@%$libexecdir%g
7477 s%@datadir@%$datadir%g
7478 s%@sysconfdir@%$sysconfdir%g
7479 s%@sharedstatedir@%$sharedstatedir%g
7480 s%@localstatedir@%$localstatedir%g
7481 s%@libdir@%$libdir%g
7482 s%@includedir@%$includedir%g
7483 s%@oldincludedir@%$oldincludedir%g
7484 s%@infodir@%$infodir%g
7485 s%@mandir@%$mandir%g
7486 s%@host@%$host%g
7487 s%@host_alias@%$host_alias%g
7488 s%@host_cpu@%$host_cpu%g
7489 s%@host_vendor@%$host_vendor%g
7490 s%@host_os@%$host_os%g
7491 s%@target@%$target%g
7492 s%@target_alias@%$target_alias%g
7493 s%@target_cpu@%$target_cpu%g
7494 s%@target_vendor@%$target_vendor%g
7495 s%@target_os@%$target_os%g
7496 s%@build@%$build%g
7497 s%@build_alias@%$build_alias%g
7498 s%@build_cpu@%$build_cpu%g
7499 s%@build_vendor@%$build_vendor%g
7500 s%@build_os@%$build_os%g
7501 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
7502 s%@SET_MAKE@%$SET_MAKE%g
7503 s%@CC@%$CC%g
7504 s%@CPP@%$CPP%g
7505 s%@RANLIB@%$RANLIB%g
7506 s%@ALLOCA@%$ALLOCA%g
7507 s%@GLIBC21@%$GLIBC21%g
7508 s%@LIBICONV@%$LIBICONV%g
7509 s%@USE_NLS@%$USE_NLS%g
7510 s%@MSGFMT@%$MSGFMT%g
7511 s%@GMSGFMT@%$GMSGFMT%g
7512 s%@XGETTEXT@%$XGETTEXT%g
7513 s%@INTLBISON@%$INTLBISON%g
7514 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
7515 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7516 s%@CATALOGS@%$CATALOGS%g
7517 s%@CATOBJEXT@%$CATOBJEXT%g
7518 s%@GMOFILES@%$GMOFILES%g
7519 s%@INTLLIBS@%$INTLLIBS%g
7520 s%@INTLOBJS@%$INTLOBJS%g
7521 s%@POFILES@%$POFILES%g
7522 s%@POSUB@%$POSUB%g
7523 s%@DATADIRNAME@%$DATADIRNAME%g
7524 s%@INSTOBJEXT@%$INSTOBJEXT%g
7525 s%@GENCAT@%$GENCAT%g
7526 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7527 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
7528 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7529 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7530 s%@INSTALL_DATA@%$INSTALL_DATA%g
7531 s%@WINDRES@%$WINDRES%g
7532 s%@ESD_CONFIG@%$ESD_CONFIG%g
7533 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
7534 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
7535 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
7536 s%@SDL_CONFIG@%$SDL_CONFIG%g
7537 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
7538 s%@GTK_CONFIG@%$GTK_CONFIG%g
7539 s%@DATA_PATH@%$DATA_PATH%g
7540 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
7541 s%@SYS@%$SYS%g
7542 s%@ARCH@%$ARCH%g
7543 s%@PLUGINS@%$PLUGINS%g
7544 s%@BUILTINS@%$BUILTINS%g
7545 s%@ALIASES@%$ALIASES%g
7546 s%@DEFINE@%$DEFINE%g
7547 s%@INCLUDE@%$INCLUDE%g
7548 s%@DEBUG@%$DEBUG%g
7549 s%@ASM@%$ASM%g
7550 s%@TRACE@%$TRACE%g
7551 s%@CPROF@%$CPROF%g
7552 s%@GPROF@%$GPROF%g
7553 s%@OPTIMS@%$OPTIMS%g
7554 s%@TUNING@%$TUNING%g
7555 s%@RELEASE@%$RELEASE%g
7556 s%@MOC@%$MOC%g
7557 s%@DLL_PATH@%$DLL_PATH%g
7558 s%@PACKAGE@%$PACKAGE%g
7559 s%@VERSION@%$VERSION%g
7560 s%@VCD_DEVICE@%$VCD_DEVICE%g
7561 s%@DVD_DEVICE@%$DVD_DEVICE%g
7562 s%@PLDFLAGS@%$PLDFLAGS%g
7563 s%@SOFLAGS@%$SOFLAGS%g
7564 s%@LIB@%$LIB%g
7565 s%@LIB_ALSA@%$LIB_ALSA%g
7566 s%@LIB_ARTS@%$LIB_ARTS%g
7567 s%@LIB_BEOS@%$LIB_BEOS%g
7568 s%@LIB_DARWIN@%$LIB_DARWIN%g
7569 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
7570 s%@LIB_DVD@%$LIB_DVD%g
7571 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
7572 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
7573 s%@LIB_DVDREAD_PLUGIN@%$LIB_DVDREAD_PLUGIN%g
7574 s%@LIB_ESD@%$LIB_ESD%g
7575 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
7576 s%@LIB_GGI@%$LIB_GGI%g
7577 s%@LIB_GLIDE@%$LIB_GLIDE%g
7578 s%@LIB_GNOME@%$LIB_GNOME%g
7579 s%@LIB_GTK@%$LIB_GTK%g
7580 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
7581 s%@LIB_IMDCT@%$LIB_IMDCT%g
7582 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
7583 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
7584 s%@LIB_KDE@%$LIB_KDE%g
7585 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
7586 s%@LIB_MACOSX@%$LIB_MACOSX%g
7587 s%@LIB_MAD@%$LIB_MAD%g
7588 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
7589 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
7590 s%@LIB_NCURSES@%$LIB_NCURSES%g
7591 s%@LIB_QNX@%$LIB_QNX%g
7592 s%@LIB_QT@%$LIB_QT%g
7593 s%@LIB_RC@%$LIB_RC%g
7594 s%@LIB_SDL@%$LIB_SDL%g
7595 s%@LIB_X11@%$LIB_X11%g
7596 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
7597 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
7598 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
7599 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
7600 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
7601 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
7602 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
7603 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
7604 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
7605 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
7606 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
7607 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
7608 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
7609 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
7610 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
7611 s%@CFLAGS_QT@%$CFLAGS_QT%g
7612 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
7613 s%@CFLAGS_X11@%$CFLAGS_X11%g
7614 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
7615 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
7616 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
7617 s%@NEED_GETOPT@%$NEED_GETOPT%g
7618 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
7619
7620 CEOF
7621 EOF
7622
7623 cat >> $CONFIG_STATUS <<\EOF
7624
7625 # Split the substitutions into bite-sized pieces for seds with
7626 # small command number limits, like on Digital OSF/1 and HP-UX.
7627 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7628 ac_file=1 # Number of current file.
7629 ac_beg=1 # First line for current file.
7630 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7631 ac_more_lines=:
7632 ac_sed_cmds=""
7633 while $ac_more_lines; do
7634   if test $ac_beg -gt 1; then
7635     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7636   else
7637     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7638   fi
7639   if test ! -s conftest.s$ac_file; then
7640     ac_more_lines=false
7641     rm -f conftest.s$ac_file
7642   else
7643     if test -z "$ac_sed_cmds"; then
7644       ac_sed_cmds="sed -f conftest.s$ac_file"
7645     else
7646       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7647     fi
7648     ac_file=`expr $ac_file + 1`
7649     ac_beg=$ac_end
7650     ac_end=`expr $ac_end + $ac_max_sed_cmds`
7651   fi
7652 done
7653 if test -z "$ac_sed_cmds"; then
7654   ac_sed_cmds=cat
7655 fi
7656 EOF
7657
7658 cat >> $CONFIG_STATUS <<EOF
7659
7660 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
7661 EOF
7662 cat >> $CONFIG_STATUS <<\EOF
7663 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7664   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7665   case "$ac_file" in
7666   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7667        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7668   *) ac_file_in="${ac_file}.in" ;;
7669   esac
7670
7671   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7672
7673   # Remove last slash and all that follows it.  Not all systems have dirname.
7674   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7675   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7676     # The file is in a subdirectory.
7677     test ! -d "$ac_dir" && mkdir "$ac_dir"
7678     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7679     # A "../" for each directory in $ac_dir_suffix.
7680     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7681   else
7682     ac_dir_suffix= ac_dots=
7683   fi
7684
7685   case "$ac_given_srcdir" in
7686   .)  srcdir=.
7687       if test -z "$ac_dots"; then top_srcdir=.
7688       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7689   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7690   *) # Relative path.
7691     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7692     top_srcdir="$ac_dots$ac_given_srcdir" ;;
7693   esac
7694
7695   case "$ac_given_INSTALL" in
7696   [/$]*) INSTALL="$ac_given_INSTALL" ;;
7697   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7698   esac
7699
7700   echo creating "$ac_file"
7701   rm -f "$ac_file"
7702   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7703   case "$ac_file" in
7704   *Makefile*) ac_comsub="1i\\
7705 # $configure_input" ;;
7706   *) ac_comsub= ;;
7707   esac
7708
7709   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7710   sed -e "$ac_comsub
7711 s%@configure_input@%$configure_input%g
7712 s%@srcdir@%$srcdir%g
7713 s%@top_srcdir@%$top_srcdir%g
7714 s%@INSTALL@%$INSTALL%g
7715 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7716 fi; done
7717 rm -f conftest.s*
7718
7719 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7720 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7721 #
7722 # ac_d sets the value in "#define NAME VALUE" lines.
7723 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7724 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
7725 ac_dC='\3'
7726 ac_dD='%g'
7727 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7728 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7729 ac_uB='\([      ]\)%\1#\2define\3'
7730 ac_uC=' '
7731 ac_uD='\4%g'
7732 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7733 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7734 ac_eB='$%\1#\2define\3'
7735 ac_eC=' '
7736 ac_eD='%g'
7737
7738 if test "${CONFIG_HEADERS+set}" != set; then
7739 EOF
7740 cat >> $CONFIG_STATUS <<EOF
7741   CONFIG_HEADERS="include/defs.h"
7742 EOF
7743 cat >> $CONFIG_STATUS <<\EOF
7744 fi
7745 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7746   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7747   case "$ac_file" in
7748   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7749        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7750   *) ac_file_in="${ac_file}.in" ;;
7751   esac
7752
7753   echo creating $ac_file
7754
7755   rm -f conftest.frag conftest.in conftest.out
7756   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7757   cat $ac_file_inputs > conftest.in
7758
7759 EOF
7760
7761 # Transform confdefs.h into a sed script conftest.vals that substitutes
7762 # the proper values into config.h.in to produce config.h.  And first:
7763 # Protect against being on the right side of a sed subst in config.status.
7764 # Protect against being in an unquoted here document in config.status.
7765 rm -f conftest.vals
7766 cat > conftest.hdr <<\EOF
7767 s/[\\&%]/\\&/g
7768 s%[\\$`]%\\&%g
7769 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7770 s%ac_d%ac_u%gp
7771 s%ac_u%ac_e%gp
7772 EOF
7773 sed -n -f conftest.hdr confdefs.h > conftest.vals
7774 rm -f conftest.hdr
7775
7776 # This sed command replaces #undef with comments.  This is necessary, for
7777 # example, in the case of _POSIX_SOURCE, which is predefined and required
7778 # on some systems where configure will not decide to define it.
7779 cat >> conftest.vals <<\EOF
7780 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7781 EOF
7782
7783 # Break up conftest.vals because some shells have a limit on
7784 # the size of here documents, and old seds have small limits too.
7785
7786 rm -f conftest.tail
7787 while :
7788 do
7789   ac_lines=`grep -c . conftest.vals`
7790   # grep -c gives empty output for an empty file on some AIX systems.
7791   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7792   # Write a limited-size here document to conftest.frag.
7793   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7794   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7795   echo 'CEOF
7796   sed -f conftest.frag conftest.in > conftest.out
7797   rm -f conftest.in
7798   mv conftest.out conftest.in
7799 ' >> $CONFIG_STATUS
7800   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7801   rm -f conftest.vals
7802   mv conftest.tail conftest.vals
7803 done
7804 rm -f conftest.vals
7805
7806 cat >> $CONFIG_STATUS <<\EOF
7807   rm -f conftest.frag conftest.h
7808   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
7809   cat conftest.in >> conftest.h
7810   rm -f conftest.in
7811   if cmp -s $ac_file conftest.h 2>/dev/null; then
7812     echo "$ac_file is unchanged"
7813     rm -f conftest.h
7814   else
7815     # Remove last slash and all that follows it.  Not all systems have dirname.
7816       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7817       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7818       # The file is in a subdirectory.
7819       test ! -d "$ac_dir" && mkdir "$ac_dir"
7820     fi
7821     rm -f $ac_file
7822     mv conftest.h $ac_file
7823   fi
7824 fi; done
7825
7826 EOF
7827 cat >> $CONFIG_STATUS <<EOF
7828
7829
7830 EOF
7831 cat >> $CONFIG_STATUS <<\EOF
7832 for ac_file in $CONFIG_FILES; do
7833         # Support "outfile[:infile[:infile...]]"
7834         case "$ac_file" in
7835           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7836         esac
7837         # PO directories have a Makefile.in generated from Makefile.in.in.
7838         case "$ac_file" in */Makefile.in)
7839           # Adjust a relative srcdir.
7840           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7841           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7842           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7843           # In autoconf-2.13 it is called $ac_given_srcdir.
7844           # In autoconf-2.50 it is called $srcdir.
7845           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7846           case "$ac_given_srcdir" in
7847             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7848             /*) top_srcdir="$ac_given_srcdir" ;;
7849             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
7850           esac
7851           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7852             rm -f "$ac_dir/POTFILES"
7853             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7854             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
7855             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7856             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7857           fi
7858           ;;
7859         esac
7860       done
7861
7862 exit 0
7863 EOF
7864 chmod +x $CONFIG_STATUS
7865 rm -fr confdefs* $ac_clean_files
7866 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7867
7868
7869 echo "
7870 global configuration
7871 --------------------
7872 system                : ${SYS}
7873 architecture          : ${ARCH}
7874 optimizations         : ${OPTIMS}
7875 tuning:               : ${TUNING}
7876 release:              : ${RELEASE}"
7877
7878 if test x${HAVE_VLC} = x1
7879 then
7880   echo "
7881 vlc configuration
7882 -----------------
7883 vlc version           : ${VLC_VERSION}
7884 debug mode            : ${DEBUG}
7885 trace mode            : ${TRACE}
7886 cprof/gprof support   : ${CPROF}/${GPROF}
7887 need builtin getopt   : ${NEED_GETOPT}
7888 built-in modules      :${BUILTINS}
7889 plug-in modules       :${PLUGINS}
7890 vlc aliases           :${ALIASES}"
7891 fi
7892
7893 echo "
7894 libdvdcss configuration
7895 -----------------------
7896 can be built          : ${CAN_BUILD_LIBDVDCSS}
7897 will be built         : ${NEED_LIBDVDCSS}"
7898 if test x${NEED_LIBDVDCSS} = x1
7899 then
7900   echo "need BSDI libdvd      : ${NEED_BSDI_LIBDVD}"
7901   echo "link statically       : ${STATIC_LIBDVDCSS}"
7902 else
7903   echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
7904 fi
7905
7906 echo "
7907 You may now tune Makefile.opts at your convenience, for instance to choose
7908 which modules get compiled as plugins.
7909 "
7910 if test x${HAVE_VLC} = x1
7911 then
7912   echo "To build vlc and its plugins, type \`make vlc plugins'."
7913 fi
7914 if test x${HAVE_LIBDVDCSS} = x1
7915 then
7916   echo "To build libdvdcss only, type \`make libdvdcss'."
7917 fi
7918 echo ""
7919