configure 236 KB
Newer Older
1
#! /bin/sh
Sam Hocevar's avatar
   
Sam Hocevar committed
2

3
# Guess values for system-dependent variables and create Makefiles.
Sam Hocevar's avatar
   
Sam Hocevar committed
4
5
# Generated automatically using autoconf version 2.13 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6
7
8
9
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

Sam Hocevar's avatar
   
Sam Hocevar committed
10
11
# Defaults:
ac_help=
12
ac_default_prefix=/usr/local
Sam Hocevar's avatar
   
Sam Hocevar committed
13
# Any additions from configure.in:
Sam Hocevar's avatar
   
Sam Hocevar committed
14
15
16
17
18
19
ac_help="$ac_help
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
ac_help="$ac_help
  --disable-nls           do not use Native Language Support"
ac_help="$ac_help
  --with-included-gettext use the GNU gettext library included here"
20
21
ac_help="$ac_help
  --with-words=endianness Set endianness (big or little)"
Sam Hocevar's avatar
   
Sam Hocevar committed
22
ac_help="$ac_help
23
24
  --with-tuning=[arch]    Enable special tuning for an architecture
                          (default i686 on IA-32 and 750 on PPC)"
25
26
ac_help="$ac_help
  --enable-release        Activate extra optimizations (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
27
ac_help="$ac_help
28
  --disable-altivec       Disable altivec optimizations (default enabled on PPC)"
Sam Hocevar's avatar
   
Sam Hocevar committed
29
30
31
32
ac_help="$ac_help
  --enable-debug          Enable debug mode (default disabled)"
ac_help="$ac_help
  --enable-trace          Enable trace mode (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
33
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
34
35
36
  --enable-gprof          Enable gprof profiling (default disabled)"
ac_help="$ac_help
  --enable-cprof          Enable cprof profiling (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
37
38
ac_help="$ac_help
  --disable-optimizations Disable compiler optimizations (default enabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
39
40
ac_help="$ac_help
  --enable-pth            Enable GNU Pth support (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
41
ac_help="$ac_help
42
43
44
45
  --with-dvdcss[=name]    way to use libdvdcss, either 'yes' or 'no',
                          or 'local-static', 'local-shared', or a path to
                          another libdvdcss such as '/usr/local'
                          (default 'local-static')"
Stéphane Borel's avatar
Stéphane Borel committed
46
ac_help="$ac_help
47
48
  --with-dvdread[=name]   way to use libdvdread,
                          same options as --with-dvdcss (default no)"
49
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
50
  --enable-vcd            VCD support for Linux (default enabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
51
52
53
54
55
ac_help="$ac_help
  --disable-dummy         dummy module (default enabled)"
ac_help="$ac_help
  --disable-null          Null module (default enabled)"
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
56
  --disable-rc            Remote Control module (default enabled)"
57
ac_help="$ac_help
Sam Hocevar's avatar
   
Sam Hocevar committed
58
  --with-mad[=PATH]       libmad module (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
59
60
61
62
ac_help="$ac_help
  --disable-dsp           Linux /dev/dsp support (default enabled)"
ac_help="$ac_help
  --enable-esd            Esound library support (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
63
64
ac_help="$ac_help
  --enable-arts           aRts sound server (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
65
ac_help="$ac_help
66
  --enable-macosx         MacOS X support (default enabled on MacOS X)"
67
ac_help="$ac_help
68
  --disable-qnx           QNX RTOS support (default enabled on QNX RTOS)"
gbazin's avatar
   
gbazin committed
69
ac_help="$ac_help
gbazin's avatar
   
gbazin committed
70
  --disable-a52           AC3 support with liba52 (default enabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
71
72
ac_help="$ac_help
  --enable-fb             Linux framebuffer support (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
73
74
ac_help="$ac_help
  --enable-mga            Linux kernel Matrox support (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
75
76
77
ac_help="$ac_help
  --with-ggi[=name]       GGI support (default disabled)"
ac_help="$ac_help
78
  --disable-sdl           SDL support (default enabled)"
79
80
ac_help="$ac_help
  --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
Sam Hocevar's avatar
   
Sam Hocevar committed
81
ac_help="$ac_help
gbazin's avatar
   
gbazin committed
82
  --disable-directx       Win32 DirectX support (default enabled on Win32)"
Xavier Marchesini's avatar
   
Xavier Marchesini committed
83
ac_help="$ac_help
gbazin's avatar
   
gbazin committed
84
  --with-directx-path=path Win32 DirectX headers and libraries"
Sam Hocevar's avatar
   
Sam Hocevar committed
85
ac_help="$ac_help
gbazin's avatar
   
gbazin committed
86
87
88
  --disable-waveout       Win32 waveOut module (default enabled on Win32)"
ac_help="$ac_help
  --enable-win32          Win32 interface support (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
89
90
91
92
93
94
95
96
97
98
99
100
ac_help="$ac_help
  --with-glide[=name]     Glide (3dfx) support (default disabled)"
ac_help="$ac_help
  --enable-ncurses        ncurses interface support (default disabled)"
ac_help="$ac_help
  --enable-qt             Qt interface support (default disabled)"
ac_help="$ac_help
  --enable-kde            KDE interface support (default disabled)"
ac_help="$ac_help
  --enable-gnome          Gnome interface support (default disabled)"
ac_help="$ac_help
  --disable-gtk           Gtk+ support (default enabled)"
101
102
ac_help="$ac_help
  --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
Sam Hocevar's avatar
   
Sam Hocevar committed
103
104
105
106
ac_help="$ac_help
  --disable-x11           X11 support (default enabled)"
ac_help="$ac_help
  --disable-xvideo        XVideo support (default enabled)"
107
108
ac_help="$ac_help
  --enable-lirc           lirc support (default disabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
109
ac_help="$ac_help
110
111
  --enable-alsa           Alsa sound drivers support (Only for linux)
                          (default disabled)"
112
113
ac_help="$ac_help
  --disable-plugins       Make all plug-ins built-in (default plug-ins enabled)"
Sam Hocevar's avatar
   
Sam Hocevar committed
114
115
ac_help="$ac_help
  --with-dll-path=path    Path to Win32 DLLs (default search in \$PWD)"
116
117
118
119

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
Sam Hocevar's avatar
   
Sam Hocevar committed
120
121
build=NONE
cache_file=./config.cache
122
exec_prefix=NONE
Sam Hocevar's avatar
   
Sam Hocevar committed
123
host=NONE
124
no_create=
Sam Hocevar's avatar
   
Sam Hocevar committed
125
nonopt=NONE
126
127
128
129
130
131
132
133
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
Sam Hocevar's avatar
   
Sam Hocevar committed
134
target=NONE
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

Sam Hocevar's avatar
   
Sam Hocevar committed
151
152
153
154
155
156
# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
157
158
159
160

ac_prev=
for ac_option
do
Sam Hocevar's avatar
   
Sam Hocevar committed
161

162
163
164
165
166
167
168
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

Sam Hocevar's avatar
   
Sam Hocevar committed
169
170
171
172
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac
173
174
175

  # Accept the important Cygnus configure options, so we can diagnose typos.

Sam Hocevar's avatar
   
Sam Hocevar committed
176
  case "$ac_option" in
177
178
179
180

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
181
    bindir="$ac_optarg" ;;
182
183

  -build | --build | --buil | --bui | --bu)
Sam Hocevar's avatar
   
Sam Hocevar committed
184
    ac_prev=build ;;
185
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
186
    build="$ac_optarg" ;;
187
188
189
190
191
192

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
193
    cache_file="$ac_optarg" ;;
194
195
196
197
198

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
199
    datadir="$ac_optarg" ;;
200
201

  -disable-* | --disable-*)
Sam Hocevar's avatar
   
Sam Hocevar committed
202
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
203
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
   
Sam Hocevar committed
204
205
206
207
208
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;
209
210

  -enable-* | --enable-*)
Sam Hocevar's avatar
   
Sam Hocevar committed
211
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
212
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
   
Sam Hocevar committed
213
214
215
216
217
218
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
219
220
      *) ac_optarg=yes ;;
    esac
Sam Hocevar's avatar
   
Sam Hocevar committed
221
    eval "enable_${ac_feature}='$ac_optarg'" ;;
222
223
224
225
226
227
228
229

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
230
    exec_prefix="$ac_optarg" ;;
231
232
233
234
235

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

Sam Hocevar's avatar
   
Sam Hocevar committed
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
    exit 0 ;;
290
291

  -host | --host | --hos | --ho)
Sam Hocevar's avatar
   
Sam Hocevar committed
292
    ac_prev=host ;;
293
  -host=* | --host=* | --hos=* | --ho=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
294
    host="$ac_optarg" ;;
295
296
297
298
299
300

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
301
    includedir="$ac_optarg" ;;
302
303
304
305

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
306
    infodir="$ac_optarg" ;;
307
308
309
310

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
311
    libdir="$ac_optarg" ;;
312
313
314
315
316
317

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
318
    libexecdir="$ac_optarg" ;;
319
320
321
322
323
324
325
326

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
327
    localstatedir="$ac_optarg" ;;
328
329
330
331

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
332
    mandir="$ac_optarg" ;;
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
353
    oldincludedir="$ac_optarg" ;;
354
355
356
357

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
358
    prefix="$ac_optarg" ;;
359
360
361
362
363
364

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
365
    program_prefix="$ac_optarg" ;;
366
367
368
369
370
371

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
372
    program_suffix="$ac_optarg" ;;
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
389
    program_transform_name="$ac_optarg" ;;
390
391
392
393
394
395
396
397
398

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
399
    sbindir="$ac_optarg" ;;
400
401
402
403
404
405
406
407
408
409

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
410
    sharedstatedir="$ac_optarg" ;;
411
412
413
414

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
415
    site="$ac_optarg" ;;
416
417
418
419

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
420
    srcdir="$ac_optarg" ;;
421
422
423
424
425
426

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
427
    sysconfdir="$ac_optarg" ;;
428
429

  -target | --target | --targe | --targ | --tar | --ta | --t)
Sam Hocevar's avatar
   
Sam Hocevar committed
430
    ac_prev=target ;;
431
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
432
    target="$ac_optarg" ;;
433
434
435
436

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

Sam Hocevar's avatar
   
Sam Hocevar committed
437
438
439
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;
440
441

  -with-* | --with-*)
Sam Hocevar's avatar
   
Sam Hocevar committed
442
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
443
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
   
Sam Hocevar committed
444
445
446
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
447
    ac_package=`echo $ac_package| sed 's/-/_/g'`
Sam Hocevar's avatar
   
Sam Hocevar committed
448
449
    case "$ac_option" in
      *=*) ;;
450
451
      *) ac_optarg=yes ;;
    esac
Sam Hocevar's avatar
   
Sam Hocevar committed
452
    eval "with_${ac_package}='$ac_optarg'" ;;
453
454

  -without-* | --without-*)
Sam Hocevar's avatar
   
Sam Hocevar committed
455
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
456
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
   
Sam Hocevar committed
457
458
459
460
461
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;
462
463
464
465
466
467
468
469
470
471

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
472
    x_includes="$ac_optarg" ;;
473
474
475
476
477
478

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Sam Hocevar's avatar
   
Sam Hocevar committed
479
    x_libraries="$ac_optarg" ;;
480

Sam Hocevar's avatar
   
Sam Hocevar committed
481
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
482
483
484
    ;;

  *)
Sam Hocevar's avatar
   
Sam Hocevar committed
485
486
487
488
489
490
491
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
492
493
494
495
496
497
    ;;

  esac
done

if test -n "$ac_prev"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
515
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
516
517
518
519
520
521
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5
522

Sam Hocevar's avatar
   
Sam Hocevar committed
523
524
525
526
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
527
do
Sam Hocevar's avatar
   
Sam Hocevar committed
528
529
530
531
532
533
534
535
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
536
537
538
  esac
done

Sam Hocevar's avatar
   
Sam Hocevar committed
539
540
541
542
543
544
545
546
547
# NLS nuisances.
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
548

Sam Hocevar's avatar
   
Sam Hocevar committed
549
550
551
552
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
553

Sam Hocevar's avatar
   
Sam Hocevar committed
554
555
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
Sam Hocevar's avatar
   
Sam Hocevar committed
556
ac_unique_file=include/main.h
557
558
559
560
561
562

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  ac_prog=$0
Sam Hocevar's avatar
   
Sam Hocevar committed
563
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
564
565
566
567
568
569
570
571
572
573
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
Sam Hocevar's avatar
   
Sam Hocevar committed
574
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
575
  else
Sam Hocevar's avatar
   
Sam Hocevar committed
576
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
577
578
  fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
579
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
580
581
582
583
584
585
586
587
588
589
590

# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
591
    echo "loading site script $ac_site_file"
592
593
594
595
596
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
597
598
  echo "loading cache $cache_file"
  . $cache_file
599
else
Sam Hocevar's avatar
   
Sam Hocevar committed
600
601
  echo "creating cache $cache_file"
  > $cache_file
602
603
604
fi

ac_ext=c
Sam Hocevar's avatar
   
Sam Hocevar committed
605
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
606
ac_cpp='$CPP $CPPFLAGS'
Sam Hocevar's avatar
   
Sam Hocevar committed
607
608
609
610
611
612
613
614
615
616
617
618
619
620
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
621
else
Sam Hocevar's avatar
   
Sam Hocevar committed
622
  ac_n= ac_c='\c' ac_t=
623
624
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
625
626


627

628
629
630
631
632
633
634
635
636
637
638
639
640
ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
641
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
642
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
643
644
645
646
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.

647

648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
# Do some error checking and defaulting for the host and target type.
# The inputs are:
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
#
# The rules are:
# 1. You are not allowed to specify --host, --target, and nonopt at the
#    same time.
# 2. Host defaults to nonopt.
# 3. If nonopt is not specified, then host defaults to the current host,
#    as determined by config.guess.
# 4. Target and build default to nonopt.
# 5. If nonopt is not specified, then target and build default to host.

# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
case $host---$target---$nonopt in
NONE---*---* | *---NONE---* | *---*---NONE) ;;
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
esac


669
# Make sure we can run config.sub.
Sam Hocevar's avatar
   
Sam Hocevar committed
670
671
672
673
674
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi

echo $ac_n "checking host system type""... $ac_c" 1>&6
675
echo "configure:676: checking host system type" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694

host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac

host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6

695
echo $ac_n "checking target system type""... $ac_c" 1>&6
696
echo "configure:697: checking target system type" >&5
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713

target_alias=$target
case "$target_alias" in
NONE)
  case $nonopt in
  NONE) target_alias=$host_alias ;;
  *) target_alias=$nonopt ;;
  esac ;;
esac

target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$target" 1>&6

echo $ac_n "checking build system type""... $ac_c" 1>&6
714
echo "configure:715: checking build system type" >&5
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735

build_alias=$build
case "$build_alias" in
NONE)
  case $nonopt in
  NONE) build_alias=$host_alias ;;
  *) build_alias=$nonopt ;;
  esac ;;
esac

build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6

test "$host_alias" != "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-

736

Sam Hocevar's avatar
   
Sam Hocevar committed
737
738
739
HAVE_VLC=0
if test -r src/interface/main.c; then
  HAVE_VLC=1
740
  VLC_VERSION="0.2.92-dev"
Sam Hocevar's avatar
   
Sam Hocevar committed
741
742
  VLC_CODENAME=Ourumov
fi
743

Sam Hocevar's avatar
   
Sam Hocevar committed
744
745
746
HAVE_LIBDVDCSS=0
if test -r extras/libdvdcss/libdvdcss.c; then
  HAVE_LIBDVDCSS=1
747
  LIBDVDCSS_VERSION="1.0.1-dev"
Sam Hocevar's avatar
   
Sam Hocevar committed
748
  
749
750
751
752
753
754
  if test -r extras/libdvdcss/csskeys.h; then
    cat >> confdefs.h <<\EOF
#define HAVE_CSSKEYS 1
EOF

  fi
Sam Hocevar's avatar
   
Sam Hocevar committed
755
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
756

Sam Hocevar's avatar
   
Sam Hocevar committed
757
save_CFLAGS="${CFLAGS}"
Sam Hocevar's avatar
   
Sam Hocevar committed
758
save_LDFLAGS="${LDFLAGS}"
Sam Hocevar's avatar
   
Sam Hocevar committed
759

Sam Hocevar's avatar
   
Sam Hocevar committed
760
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
761
echo "configure:762: checking whether ${MAKE-make} sets \${MAKE}" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
762
763
764
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
765
else
Sam Hocevar's avatar
   
Sam Hocevar committed
766
  cat > conftestmake <<\EOF
767
768
769
770
all:
	@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Sam Hocevar's avatar
   
Sam Hocevar committed
771
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
772
773
774
775
776
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
777
rm -f conftestmake
778
779
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
780
  echo "$ac_t""yes" 1>&6
781
782
  SET_MAKE=
else
Sam Hocevar's avatar
   
Sam Hocevar committed
783
  echo "$ac_t""no" 1>&6
784
785
786
  SET_MAKE="MAKE=${MAKE-make}"
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
787
# Extract the first word of "gcc", so it can be a program name with args.
788
set dummy gcc; ac_word=$2
Sam Hocevar's avatar
   
Sam Hocevar committed
789
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
790
echo "configure:791: checking for $ac_word" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
791
792
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
793
794
795
796
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
Sam Hocevar's avatar
   
Sam Hocevar committed
797
798
799
800
801
802
803
804
805
806
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
807
808
fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
809
CC="$ac_cv_prog_CC"
810
if test -n "$CC"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
811
  echo "$ac_t""$CC" 1>&6
812
else
Sam Hocevar's avatar
   
Sam Hocevar committed
813
  echo "$ac_t""no" 1>&6
814
815
816
817
818
fi

if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
Sam Hocevar's avatar
   
Sam Hocevar committed
819
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820
echo "configure:821: checking for $ac_word" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
821
822
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
823
824
825
826
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
Sam Hocevar's avatar
   
Sam Hocevar committed
827
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
828
  ac_prog_rejected=no
Sam Hocevar's avatar
   
Sam Hocevar committed
829
830
831
832
833
834
835
836
837
838
839
840
841
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
842
843
844
845
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
Sam Hocevar's avatar
   
Sam Hocevar committed
846
  if test $# -gt 0; then
847
848
849
850
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
Sam Hocevar's avatar
   
Sam Hocevar committed
851
    set dummy "$ac_dir/$ac_word" "$@"
852
853
854
855
856
857
    shift
    ac_cv_prog_CC="$@"
  fi
fi
fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
858
CC="$ac_cv_prog_CC"
859
if test -n "$CC"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
860
  echo "$ac_t""$CC" 1>&6
861
else
Sam Hocevar's avatar
   
Sam Hocevar committed
862
  echo "$ac_t""no" 1>&6
863
864
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
865
866
867
868
869
870
  if test -z "$CC"; then
    case "`uname -s`" in
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871
echo "configure:872: checking for $ac_word" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
872
873
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
874
875
876
877
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
Sam Hocevar's avatar
   
Sam Hocevar committed
878
879
880
881
882
883
884
885
886
887
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cl"
      break
    fi
  done
  IFS="$ac_save_ifs"
888
889
fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
890
CC="$ac_cv_prog_CC"
891
if test -n "$CC"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
892
  echo "$ac_t""$CC" 1>&6
893
else
Sam Hocevar's avatar
   
Sam Hocevar committed
894
  echo "$ac_t""no" 1>&6
895
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
896
897
898
899
 ;;
    esac
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
900
901
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
902
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
903
echo "configure:904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
904

Sam Hocevar's avatar
   
Sam Hocevar committed
905
906
907
908
909
910
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
911

Sam Hocevar's avatar
   
Sam Hocevar committed
912
cat > conftest.$ac_ext << EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
913

914
#line 915 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
915
916
#include "confdefs.h"

Sam Hocevar's avatar
   
Sam Hocevar committed
917
918
main(){return(0);}
EOF
919
if { (eval echo configure:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
   
Sam Hocevar committed
920
921
922
923
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
Sam Hocevar's avatar
   
Sam Hocevar committed
924
  else
Sam Hocevar's avatar
   
Sam Hocevar committed
925
    ac_cv_prog_cc_cross=yes
Sam Hocevar's avatar
   
Sam Hocevar committed
926
  fi
Sam Hocevar's avatar
   
Sam Hocevar committed
927
928
929
930
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
931
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
932
933
934
935
936
937
938
939
940
941
942
943
944
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
945
echo "configure:946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
946
947
948
949
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
950
echo "configure:951: checking whether we are using GNU C" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
951
952
953
954
955
956
957
958
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
959
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Sam Hocevar's avatar
   
Sam Hocevar committed
960
  ac_cv_prog_gcc=yes
Sam Hocevar's avatar
   
Sam Hocevar committed
961
else
Sam Hocevar's avatar
   
Sam Hocevar committed
962
963
  ac_cv_prog_gcc=no
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
964
965
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
966
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
967

Sam Hocevar's avatar
   
Sam Hocevar committed
968
969
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
Sam Hocevar's avatar
   
Sam Hocevar committed
970
else
Sam Hocevar's avatar
   
Sam Hocevar committed
971
  GCC=
Sam Hocevar's avatar
   
Sam Hocevar committed
972
973
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
974
975
976
977
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
978
echo "configure:979: checking whether ${CC-cc} accepts -g" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
979
980
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
   
Sam Hocevar committed
981
else
Sam Hocevar's avatar
   
Sam Hocevar committed
982
983
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
984
985
  ac_cv_prog_cc_g=yes
else
Sam Hocevar's avatar
   
Sam Hocevar committed
986
  ac_cv_prog_cc_g=no
Sam Hocevar's avatar
   
Sam Hocevar committed
987
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
988
989
rm -f conftest*

Sam Hocevar's avatar
   
Sam Hocevar committed
990
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
991
992

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
993
if test "$ac_test_CFLAGS" = set; then
Sam Hocevar's avatar
   
Sam Hocevar committed
994
  CFLAGS="$ac_save_CFLAGS"
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1008

Sam Hocevar's avatar
   
Sam Hocevar committed
1009
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1010
echo "configure:1011: checking how to run the C preprocessor" >&5
1011
1012
1013
1014
1015
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1016
1017
1018
1019
1020
1021
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
1022
  # On the NeXT, cc -E runs the code through the compiler's parser,
Sam Hocevar's avatar
   
Sam Hocevar committed
1023
1024
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
1025
#line 1026 "configure"
1026
1027
#include "confdefs.h"
#include <assert.h>
Sam Hocevar's avatar
   
Sam Hocevar committed
1028
1029
1030
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031
{ (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
   
Sam Hocevar committed
1032
1033
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
1034
1035
  :
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1036
1037
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
1038
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1039
1040
1041
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
1042
#line 1043 "configure"
1043
#include "confdefs.h"
Sam Hocevar's avatar
   
Sam Hocevar committed
1044
1045
1046
1047
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048
{ (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
   
Sam Hocevar committed
1049
1050
1051
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
1052
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1053
1054
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
1055
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1056
1057
1058
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
1059
#line 1060 "configure"
1060
1061
#include "confdefs.h"
#include <assert.h>
Sam Hocevar's avatar
   
Sam Hocevar committed
1062
1063
1064
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1065
{ (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
   
Sam Hocevar committed
1066
1067
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
1068
1069
  :
else
Sam Hocevar's avatar
   
Sam Hocevar committed
1070
1071
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
1072
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1073
1074
  rm -rf conftest*
  CPP=/lib/cpp
1075
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1076
rm -f conftest*
1077
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1078
rm -f conftest*
1079
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1080
1081
1082
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
1083
1084
1085
1086
1087
1088
1089
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6


gbazin's avatar
   
gbazin committed
1090
1091
1092
1093
1094
1095
1096
1097
1098
if test $host != $build; then
  ac_tool_prefix=${host_alias}-
else
  ac_tool_prefix=
fi

# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1099
echo "configure:1100: checking for $ac_word" >&5
gbazin's avatar
   
gbazin committed
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


if test -z "$ac_cv_prog_RANLIB"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1131
echo "configure:1132: checking for $ac_word" >&5
gbazin's avatar
   
gbazin committed
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

else
  RANLIB=":"
fi
fi


Sam Hocevar's avatar
   
Sam Hocevar committed
1164
ALL_LINGUAS="de fr ru"
Sam Hocevar's avatar
Sam Hocevar committed
1165

Sam Hocevar's avatar
   
Sam Hocevar committed
1166
cat >> confdefs.h <<EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1167
#define PACKAGE "vlc"
Sam Hocevar's avatar
   
Sam Hocevar committed
1168
1169
1170
EOF

cat >> confdefs.h <<EOF
Sam Hocevar's avatar
   
Sam Hocevar committed
1171
#define VERSION "$VLC_VERSION"
Sam Hocevar's avatar
   
Sam Hocevar committed
1172
1173
1174
1175
1176
EOF

# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1177
echo "configure:1178: checking for $ac_word" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


        echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1206
echo "configure:1207: checking for strerror in -lcposix" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1207
1208
1209
1210
1211
1212
1213
ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lcposix  $LIBS"
cat > conftest.$ac_ext <<EOF
1214
#line 1215 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char strerror();

int main() {
strerror()
; return 0; }
EOF
1225
if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -lcposix"
else
  echo "$ac_t""no" 1>&6
fi

  

echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1248
echo "configure:1249: checking for ANSI C header files" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1249
1250
1251
1252
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
1253
#line 1254 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
1254
1255
1256
1257
1258
1259
1260
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261
{ (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
   
Sam Hocevar committed
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
1278
#line 1279 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
1296
#line 1297 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
1317
#line 1318 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

EOF
1328
if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Sam Hocevar's avatar
   
Sam Hocevar committed
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
fi
rm -fr conftest*
fi

fi
fi

echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

echo $ac_n "checking for working const""... $ac_c" 1>&6
1352
echo "configure:1353: checking for working const" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1353
1354
1355
1356
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
1357
#line 1358 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
#include "confdefs.h"

int main() {

/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
   It does not let you subtract one const X* pointer from another in an arm
   of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}

; return 0; }
EOF
1406
if { (eval echo configure:1407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
  rm -rf conftest*
  ac_cv_c_const=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_const=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF

fi

echo $ac_n "checking for inline""... $ac_c" 1>&6
1427
echo "configure:1428: checking for inline" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1428
1429
1430
1431
1432
1433
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat > conftest.$ac_ext <<EOF
1434
#line 1435 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
1435
1436
1437
1438
1439
1440
#include "confdefs.h"

int main() {
} $ac_kw foo() {
; return 0; }
EOF
1441
if { (eval echo configure:1442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
  rm -rf conftest*
  ac_cv_c_inline=$ac_kw; break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
done

fi

echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
  inline | yes) ;;
  no) cat >> confdefs.h <<\EOF
#define inline 
EOF
 ;;
  *)  cat >> confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac

echo $ac_n "checking for off_t""... $ac_c" 1>&6
1467
echo "configure:1468: checking for off_t" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1468
1469
1470
1471
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
1472
#line 1473 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_off_t=yes
else
  rm -rf conftest*
  ac_cv_type_off_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_off_t" 1>&6
if test $ac_cv_type_off_t = no; then
  cat >> confdefs.h <<\EOF
#define off_t long
EOF

fi

echo $ac_n "checking for size_t""... $ac_c" 1>&6
1500
echo "configure:1501: checking for size_t" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1501
1502
1503
1504
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
1505
#line 1506 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_size_t=yes
else
  rm -rf conftest*
  ac_cv_type_size_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
  cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1535
echo "configure:1536: checking for working alloca.h" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1536
1537
1538
1539
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
1540
#line 1541 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
1541
1542
1543
1544
1545
1546
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
1547
if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
   
Sam Hocevar committed
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
  rm -rf conftest*
  ac_cv_header_alloca_h=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_alloca_h=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
if test $ac_cv_header_alloca_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA_H 1
EOF

fi

echo $ac_n "checking for alloca""... $ac_c" 1>&6
1568
echo "configure:1569: checking for alloca" >&5
Sam Hocevar's avatar
   
Sam Hocevar committed
1569
1570
1571
1572
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
1573
#line 1574 "configure"
Sam Hocevar's avatar
   
Sam Hocevar committed
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
#include "confdefs.h"

#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  if HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
#    endif
#   endif
#  endif
# endif
#endif

int main() {
char *p = (char *) alloca(1);
; return 0; }
EOF