configure 140 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 14 15 16 17 18 19 20 21 22 23 24 25
# Any additions from configure.in:
ac_help="$ac_help
  --disable-ppro          Disable PentiumPro optimizations (default enabled for x86)"
ac_help="$ac_help
  --disable-mmx           Disable MMX optimizations (default enabled for x86)"
ac_help="$ac_help
  --enable-altivec        Enable altivec optimizations (default disabled since it is broken)"
ac_help="$ac_help
  --enable-debug          Enable debug mode (default disabled)"
ac_help="$ac_help
  --enable-stats          Enable printing of statistics (default disabled)"
ac_help="$ac_help
  --enable-trace          Enable trace mode (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
26 27
ac_help="$ac_help
  --enable-profiling      Enable gprof profiling (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
28 29
ac_help="$ac_help
  --disable-optimizations Disable compiler optimizations (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
30 31 32 33
ac_help="$ac_help
  --enable-pth            Enable GNU Pth support (default disabled)"
ac_help="$ac_help
  --disable-css           Disable DVD CSS decryption (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
34 35 36 37 38 39
ac_help="$ac_help
  --disable-dummy         dummy module (default enabled)"
ac_help="$ac_help
  --disable-null          Null module (default enabled)"
ac_help="$ac_help
  --disable-rc            rc module (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
40 41 42 43 44 45 46 47
ac_help="$ac_help
  --disable-dsp           Linux /dev/dsp support (default enabled)"
ac_help="$ac_help
  --enable-esd            Esound library support (default disabled)"
ac_help="$ac_help
  --enable-darwin         Darwin sound support (default disabled)"
ac_help="$ac_help
  --enable-macosx         Mac OS X interface support (default enabled in Mac OS X)"
48 49
ac_help="$ac_help
  --disable-qnx           QNX RTOS support (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
50 51 52 53 54 55
ac_help="$ac_help
  --enable-fb             Linux framebuffer support (default disabled)"
ac_help="$ac_help
  --with-ggi[=name]       GGI support (default disabled)"
ac_help="$ac_help
  --with-sdl[=name]       SDL support (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
56 57
ac_help="$ac_help
  --with-directx[=name]   Windows DirectX support (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
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)"
ac_help="$ac_help
  --disable-x11           X11 support (default enabled)"
ac_help="$ac_help
  --disable-xvideo        XVideo support (default enabled)"
ac_help="$ac_help
  --enable-alsa           Alsa sound drivers support (Only for linux) (default disabled)"
76 77 78 79

# 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
80 81
build=NONE
cache_file=./config.cache
82
exec_prefix=NONE
Sam Hocevar's avatar
 
Sam Hocevar committed
83
host=NONE
84
no_create=
Sam Hocevar's avatar
 
Sam Hocevar committed
85
nonopt=NONE
86 87 88 89 90 91 92 93
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
94
target=NONE
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
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
111 112 113 114 115 116
# 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
117 118 119 120

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

122 123 124 125 126 127 128
  # 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
129 130 131 132
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac
133 134 135

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

Sam Hocevar's avatar
 
Sam Hocevar committed
136
  case "$ac_option" in
137 138 139 140

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
141
    bindir="$ac_optarg" ;;
142 143

  -build | --build | --buil | --bui | --bu)
Sam Hocevar's avatar
 
Sam Hocevar committed
144
    ac_prev=build ;;
145
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
146
    build="$ac_optarg" ;;
147 148 149 150 151 152

  -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
153
    cache_file="$ac_optarg" ;;
154 155 156 157 158

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
159
    datadir="$ac_optarg" ;;
160 161

  -disable-* | --disable-*)
Sam Hocevar's avatar
 
Sam Hocevar committed
162
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
 
Sam Hocevar committed
164 165 166 167 168
    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" ;;
169 170

  -enable-* | --enable-*)
Sam Hocevar's avatar
 
Sam Hocevar committed
171
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
 
Sam Hocevar committed
173 174 175 176 177 178
    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
      *=*) ;;
179 180
      *) ac_optarg=yes ;;
    esac
Sam Hocevar's avatar
 
Sam Hocevar committed
181
    eval "enable_${ac_feature}='$ac_optarg'" ;;
182 183 184 185 186 187 188 189

  -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
190
    exec_prefix="$ac_optarg" ;;
191 192 193 194 195

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

Sam Hocevar's avatar
 
Sam Hocevar committed
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
  -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 ;;
250 251

  -host | --host | --hos | --ho)
Sam Hocevar's avatar
 
Sam Hocevar committed
252
    ac_prev=host ;;
253
  -host=* | --host=* | --hos=* | --ho=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
254
    host="$ac_optarg" ;;
255 256 257 258 259 260

  -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
261
    includedir="$ac_optarg" ;;
262 263 264 265

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
266
    infodir="$ac_optarg" ;;
267 268 269 270

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
271
    libdir="$ac_optarg" ;;
272 273 274 275 276 277

  -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
278
    libexecdir="$ac_optarg" ;;
279 280 281 282 283 284 285 286

  -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
287
    localstatedir="$ac_optarg" ;;
288 289 290 291

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
292
    mandir="$ac_optarg" ;;
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312

  -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
313
    oldincludedir="$ac_optarg" ;;
314 315 316 317

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
318
    prefix="$ac_optarg" ;;
319 320 321 322 323 324

  -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
325
    program_prefix="$ac_optarg" ;;
326 327 328 329 330 331

  -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
332
    program_suffix="$ac_optarg" ;;
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348

  -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
349
    program_transform_name="$ac_optarg" ;;
350 351 352 353 354 355 356 357 358

  -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
359
    sbindir="$ac_optarg" ;;
360 361 362 363 364 365 366 367 368 369

  -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
370
    sharedstatedir="$ac_optarg" ;;
371 372 373 374

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
375
    site="$ac_optarg" ;;
376 377 378 379

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
380
    srcdir="$ac_optarg" ;;
381 382 383 384 385 386

  -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
387
    sysconfdir="$ac_optarg" ;;
388 389

  -target | --target | --targe | --targ | --tar | --ta | --t)
Sam Hocevar's avatar
 
Sam Hocevar committed
390
    ac_prev=target ;;
391
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Sam Hocevar's avatar
 
Sam Hocevar committed
392
    target="$ac_optarg" ;;
393 394 395 396

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

Sam Hocevar's avatar
 
Sam Hocevar committed
397 398 399
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;
400 401

  -with-* | --with-*)
Sam Hocevar's avatar
 
Sam Hocevar committed
402
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
 
Sam Hocevar committed
404 405 406
    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
407
    ac_package=`echo $ac_package| sed 's/-/_/g'`
Sam Hocevar's avatar
 
Sam Hocevar committed
408 409
    case "$ac_option" in
      *=*) ;;
410 411
      *) ac_optarg=yes ;;
    esac
Sam Hocevar's avatar
 
Sam Hocevar committed
412
    eval "with_${ac_package}='$ac_optarg'" ;;
413 414

  -without-* | --without-*)
Sam Hocevar's avatar
 
Sam Hocevar committed
415
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416
    # Reject names that are not valid shell variable names.
Sam Hocevar's avatar
 
Sam Hocevar committed
417 418 419 420 421
    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" ;;
422 423 424 425 426 427 428 429 430 431

  --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
432
    x_includes="$ac_optarg" ;;
433 434 435 436 437 438

  -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
439
    x_libraries="$ac_optarg" ;;
440

Sam Hocevar's avatar
 
Sam Hocevar committed
441
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442 443 444
    ;;

  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
445 446 447 448 449 450 451
    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"
452 453 454 455 456 457
    ;;

  esac
done

if test -n "$ac_prev"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474
  { 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
475
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
476 477 478 479 480 481
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
482

Sam Hocevar's avatar
 
Sam Hocevar committed
483 484 485 486
# 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
487
do
Sam Hocevar's avatar
 
Sam Hocevar committed
488 489 490 491 492 493 494 495
  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" ;;
496 497 498
  esac
done

Sam Hocevar's avatar
 
Sam Hocevar committed
499 500 501 502 503 504 505 506 507
# 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
508

Sam Hocevar's avatar
 
Sam Hocevar committed
509 510 511 512
# 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
513

Sam Hocevar's avatar
 
Sam Hocevar committed
514 515
# 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
516
ac_unique_file=include/main.h
517 518 519 520 521 522

# 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
523
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 525 526 527 528 529 530 531 532 533
  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
534
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535
  else
Sam Hocevar's avatar
 
Sam Hocevar committed
536
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 538
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
539
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 541 542 543 544 545 546 547 548 549 550

# 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
551
    echo "loading site script $ac_site_file"
552 553 554 555 556
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
557 558
  echo "loading cache $cache_file"
  . $cache_file
559
else
Sam Hocevar's avatar
 
Sam Hocevar committed
560 561
  echo "creating cache $cache_file"
  > $cache_file
562 563 564
fi

ac_ext=c
Sam Hocevar's avatar
 
Sam Hocevar committed
565
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566
ac_cpp='$CPP $CPPFLAGS'
Sam Hocevar's avatar
 
Sam Hocevar committed
567 568 569 570 571 572 573 574 575 576 577 578 579 580
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
581
else
Sam Hocevar's avatar
 
Sam Hocevar committed
582
  ac_n= ac_c='\c' ac_t=
583 584
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
585 586


587

588 589 590 591 592 593 594 595 596 597 598 599 600
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
601
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
602
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
603 604 605 606
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.

607 608

# Make sure we can run config.sub.
Sam Hocevar's avatar
 
Sam Hocevar committed
609 610 611 612 613
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
614
echo "configure:615: checking host system type" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633

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

634

Sam Hocevar's avatar
 
Sam Hocevar committed
635
VLC_VERSION=0.2.80
636

Sam Hocevar's avatar
 
Sam Hocevar committed
637 638
LIBDVDCSS_VERSION=0.0.1

Sam Hocevar's avatar
 
Sam Hocevar committed
639
VLC_CODENAME=Ourumov
640

Sam Hocevar's avatar
 
Sam Hocevar committed
641

Sam Hocevar's avatar
 
Sam Hocevar committed
642 643
save_CFLAGS="${CFLAGS}"

Sam Hocevar's avatar
 
Sam Hocevar committed
644
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
645
echo "configure:646: checking whether ${MAKE-make} sets \${MAKE}" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
646 647 648
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
649
else
Sam Hocevar's avatar
 
Sam Hocevar committed
650
  cat > conftestmake <<\EOF
651 652 653 654
all:
	@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Sam Hocevar's avatar
 
Sam Hocevar committed
655
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
656 657 658 659 660
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
661
rm -f conftestmake
662 663
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
664
  echo "$ac_t""yes" 1>&6
665 666
  SET_MAKE=
else
Sam Hocevar's avatar
 
Sam Hocevar committed
667
  echo "$ac_t""no" 1>&6
668 669 670
  SET_MAKE="MAKE=${MAKE-make}"
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
671
# Extract the first word of "gcc", so it can be a program name with args.
672
set dummy gcc; ac_word=$2
Sam Hocevar's avatar
 
Sam Hocevar committed
673
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
674
echo "configure:675: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
675 676
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
677 678 679 680
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
681 682 683 684 685 686 687 688 689 690
  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"
691 692
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
693
CC="$ac_cv_prog_CC"
694
if test -n "$CC"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
695
  echo "$ac_t""$CC" 1>&6
696
else
Sam Hocevar's avatar
 
Sam Hocevar committed
697
  echo "$ac_t""no" 1>&6
698 699 700 701 702
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
703
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
704
echo "configure:705: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
705 706
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
707 708 709 710
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
711
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
712
  ac_prog_rejected=no
Sam Hocevar's avatar
 
Sam Hocevar committed
713 714 715 716 717 718 719 720 721 722 723 724 725
  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"
726 727 728 729
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
730
  if test $# -gt 0; then
731 732 733 734
    # 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
735
    set dummy "$ac_dir/$ac_word" "$@"
736 737 738 739 740 741
    shift
    ac_cv_prog_CC="$@"
  fi
fi
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
742
CC="$ac_cv_prog_CC"
743
if test -n "$CC"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
744
  echo "$ac_t""$CC" 1>&6
745
else
Sam Hocevar's avatar
 
Sam Hocevar committed
746
  echo "$ac_t""no" 1>&6
747 748
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
749 750 751 752 753 754
  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
755
echo "configure:756: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
756 757
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
758 759 760 761
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
762 763 764 765 766 767 768 769 770 771
  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"
772 773
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
774
CC="$ac_cv_prog_CC"
775
if test -n "$CC"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
776
  echo "$ac_t""$CC" 1>&6
777
else
Sam Hocevar's avatar
 
Sam Hocevar committed
778
  echo "$ac_t""no" 1>&6
779
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
780 781 782 783
 ;;
    esac
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
784 785
fi

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

Sam Hocevar's avatar
 
Sam Hocevar committed
789 790 791 792 793 794
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
795

Sam Hocevar's avatar
 
Sam Hocevar committed
796
cat > conftest.$ac_ext << EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
797

798
#line 799 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
799 800
#include "confdefs.h"

Sam Hocevar's avatar
 
Sam Hocevar committed
801 802
main(){return(0);}
EOF
803
if { (eval echo configure:804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
804 805 806 807
  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
808
  else
Sam Hocevar's avatar
 
Sam Hocevar committed
809
    ac_cv_prog_cc_cross=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
810
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
811 812 813 814
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
815
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
816 817 818 819 820 821 822 823 824 825 826 827 828
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
829
echo "configure:830: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
830 831 832 833
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
834
echo "configure:835: checking whether we are using GNU C" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
835 836 837 838 839 840 841 842
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
843
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
844
  ac_cv_prog_gcc=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
845
else
Sam Hocevar's avatar
 
Sam Hocevar committed
846 847
  ac_cv_prog_gcc=no
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
848 849
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
850
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
851

Sam Hocevar's avatar
 
Sam Hocevar committed
852 853
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
Sam Hocevar's avatar
 
Sam Hocevar committed
854
else
Sam Hocevar's avatar
 
Sam Hocevar committed
855
  GCC=
Sam Hocevar's avatar
 
Sam Hocevar committed
856 857
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
858 859 860 861
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
862
echo "configure:863: checking whether ${CC-cc} accepts -g" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
863 864
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
865
else
Sam Hocevar's avatar
 
Sam Hocevar committed
866 867
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
868 869
  ac_cv_prog_cc_g=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
870
  ac_cv_prog_cc_g=no
Sam Hocevar's avatar
 
Sam Hocevar committed
871
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
872 873
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
874
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
875 876

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
877
if test "$ac_test_CFLAGS" = set; then
Sam Hocevar's avatar
 
Sam Hocevar committed
878
  CFLAGS="$ac_save_CFLAGS"
879 880 881 882 883 884 885 886 887 888 889 890 891
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
892

Sam Hocevar's avatar
 
Sam Hocevar committed
893
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
894
echo "configure:895: checking how to run the C preprocessor" >&5
895 896 897 898 899
# 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
900 901 902 903 904 905
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"
906
  # On the NeXT, cc -E runs the code through the compiler's parser,
Sam Hocevar's avatar
 
Sam Hocevar committed
907 908
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
909
#line 910 "configure"
910 911
#include "confdefs.h"
#include <assert.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
912 913 914
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
915
{ (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
916 917
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
918 919
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
920 921
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
922
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
923 924 925
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
926
#line 927 "configure"
927
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
928 929 930 931
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932
{ (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
933 934 935
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
936
else
Sam Hocevar's avatar
 
Sam Hocevar committed
937 938
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
939
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
940 941 942
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
943
#line 944 "configure"
944 945
#include "confdefs.h"
#include <assert.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
946 947 948
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
949
{ (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
950 951
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
952 953
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
954 955
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
956
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
957 958
  rm -rf conftest*
  CPP=/lib/cpp
959
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
960
rm -f conftest*
961
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
962
rm -f conftest*
963
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
964 965 966 967
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
  CPP="$ac_cv_prog_CPP"
968
else
Sam Hocevar's avatar
 
Sam Hocevar committed
969
  ac_cv_prog_CPP="$CPP"
970
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
971
echo "$ac_t""$CPP" 1>&6
972

Sam Hocevar's avatar
 
Sam Hocevar committed
973 974 975
# 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
976
echo "configure:977: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
977 978
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
979 980 981 982
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
Sam Hocevar's avatar
 
Sam Hocevar committed
983 984 985 986 987 988 989 990 991 992 993
  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=":"
Sam Hocevar's avatar
 
Sam Hocevar committed
994 995
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
996
RANLIB="$ac_cv_prog_RANLIB"
Sam Hocevar's avatar
 
Sam Hocevar committed
997
if test -n "$RANLIB"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
998
  echo "$ac_t""$RANLIB" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
999
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1000
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1001 1002
fi

1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
Sam Hocevar's avatar
 
Sam Hocevar committed
1015
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1016
echo "configure:1017: checking for a BSD compatible install" >&5
1017
if test -z "$INSTALL"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1018 1019
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1020
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1021
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
1022 1023
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
Sam Hocevar's avatar
 
Sam Hocevar committed
1024 1025
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1026 1027 1028 1029 1030
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
Sam Hocevar's avatar
 
Sam Hocevar committed
1031
        if test -f $ac_dir/$ac_prog; then
1032
	  if test $ac_prog = install &&
Sam Hocevar's avatar
 
Sam Hocevar committed
1033
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044
	    # AIX install.  It has an incompatible calling convention.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done
Sam Hocevar's avatar
 
Sam Hocevar committed
1045
  IFS="$ac_save_IFS"
1046 1047 1048

fi
  if test "${ac_cv_path_install+set}" = set; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1049
    INSTALL="$ac_cv_path_install"
1050 1051 1052 1053 1054
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
Sam Hocevar's avatar
 
Sam Hocevar committed
1055
    INSTALL="$ac_install_sh"
1056 1057
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1058
echo "$ac_t""$INSTALL" 1>&6
1059 1060 1061 1062 1063

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

Sam Hocevar's avatar
 
Sam Hocevar committed
1064
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1065 1066 1067

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

Sam Hocevar's avatar
 
Sam Hocevar committed
1068 1069

echo $ac_n "checking for working const""... $ac_c" 1>&6
1070
echo "configure:1071: checking for working const" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1071 1072
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1073
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1074
  cat > conftest.$ac_ext <<EOF
1075
#line 1076 "configure"
1076
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
1077 1078 1079 1080

int main() {

/* Ultrix mips cc rejects this.  */
1081
typedef int charset[2]; const charset x = {0,0};
Sam Hocevar's avatar
 
Sam Hocevar committed
1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101
/* 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;
1102
}
Sam Hocevar's avatar
 
Sam Hocevar committed
1103 1104 1105 1106
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  const int *foo = &x[0];
  ++foo;
1107
}
Sam Hocevar's avatar
 
Sam Hocevar committed
1108 1109 1110 1111
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
1112
}
Sam Hocevar's avatar
 
Sam Hocevar committed
1113 1114 1115 1116
{ /* 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;
Sam Hocevar's avatar
 
Sam Hocevar committed
1117
}
Sam Hocevar's avatar
 
Sam Hocevar committed
1118 1119 1120 1121 1122 1123
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}

; return 0; }
EOF
1124
if { (eval echo configure:1125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1125
  rm -rf conftest*
1126 1127
  ac_cv_c_const=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1128 1129 1130 1131
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_const=no
1132
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1133
rm -f conftest*
1134
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1135

Sam Hocevar's avatar
 
Sam Hocevar committed
1136 1137 1138 1139
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
1140 1141 1142 1143
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1144

Sam Hocevar's avatar
 
Sam Hocevar committed
1145
if test x${cross_compiling} != xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1146
  echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1147
echo "configure:1148: checking whether byte ordering is bigendian" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1148 1149
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1150 1151 1152
else
  ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
Sam Hocevar's avatar
 
Sam Hocevar committed
1153
cat > conftest.$ac_ext <<EOF
1154
#line 1155 "configure"
1155 1156 1157
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
1158
int main() {
1159 1160 1161 1162

#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
Sam Hocevar's avatar
 
Sam Hocevar committed
1163 1164
; return 0; }
EOF
1165
if { (eval echo configure:1166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1166
  rm -rf conftest*
1167
  # It does; now see whether it defined to BIG_ENDIAN or not.
Sam Hocevar's avatar
 
Sam Hocevar committed
1168
cat > conftest.$ac_ext <<EOF
1169
#line 1170 "configure"
1170 1171 1172
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
1173
int main() {
1174 1175 1176 1177

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
Sam Hocevar's avatar
 
Sam Hocevar committed
1178 1179
; return 0; }
EOF
1180
if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1181
  rm -rf conftest*
1182 1183
  ac_cv_c_bigendian=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1184 1185 1186 1187
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_bigendian=no
1188
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1189
rm -f conftest*
1190
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1191 1192
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1193
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1194
rm -f conftest*
1195 1196
if test $ac_cv_c_bigendian = unknown; then
if test "$cross_compiling" = yes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1197
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1198
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1199
  cat > conftest.$ac_ext <<EOF
1200
#line 1201 "configure"
1201
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
1202
main () {
1203 1204 1205 1206 1207 1208 1209 1210 1211
  /* Are we little or big endian?  From Harbison&Steele.  */
  union
  {
    long l;
    char c[sizeof (long)];
  } u;
  u.l = 1;
  exit (u.c[sizeof (long) - 1] == 1);
}
Sam Hocevar's avatar
 
Sam Hocevar committed
1212
EOF
1213
if { (eval echo configure:1214: \"$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
1214
then
1215 1216
  ac_cv_c_bigendian=no
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1217 1218 1219 1220
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_c_bigendian=yes
1221
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1222
rm -fr conftest*
1223
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1224

1225 1226
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1227

Sam Hocevar's avatar
 
Sam Hocevar committed
1228 1229 1230
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
  cat >> confdefs.h <<\EOF
1231 1232 1233 1234 1235
#define WORDS_BIGENDIAN 1
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1236
fi
1237 1238 1239

for ac_func in gettimeofday select strerror strtod strtol
do
Sam Hocevar's avatar
 
Sam Hocevar committed
1240
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1241
echo "configure:1242: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1242 1243 1244 1245
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
1246
#line 1247 "configure"
1247 1248
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1249
    which can conflict with char $ac_func(); below.  */
1250 1251 1252
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
1253 1254 1255 1256
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
1257 1258 1259 1260 1261 1262 1263

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
1264
$ac_func();
1265 1266
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1267
; return 0; }
1268
EOF
1269
if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1270 1271 1272 1273 1274 1275 1276 1277 1278 1279
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
1280

Sam Hocevar's avatar
 
Sam Hocevar committed
1281 1282 1283 1284 1285 1286 1287 1288 1289
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
1290 1291 1292 1293 1294
fi
done

for ac_func in setenv putenv
do
Sam Hocevar's avatar
 
Sam Hocevar committed
1295
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1296
echo "configure:1297: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1297 1298
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1299
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1300
  cat > conftest.$ac_ext <<EOF
1301
#line 1302 "configure"
1302 1303
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1304
    which can conflict with char $ac_func(); below.  */
1305 1306 1307
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
1308 1309 1310 1311
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
1312 1313 1314 1315 1316 1317 1318

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
1319
$ac_func();
1320 1321
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1322
; return 0; }
1323
EOF
1324
if { (eval echo configure:1325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1325 1326 1327 1328 1329 1330 1331 1332 1333 1334
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
1335

Sam Hocevar's avatar
 
Sam Hocevar committed
1336 1337 1338 1339 1340 1341 1342 1343 1344
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
1345 1346 1347
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
1348
echo $ac_n "checking for connect""... $ac_c" 1>&6
1349
echo "configure:1350: checking for connect" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1350 1351
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1352
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1353
  cat > conftest.$ac_ext <<EOF
1354
#line 1355 "configure"
1355 1356
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1357
    which can conflict with char connect(); below.  */
1358 1359 1360
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
1361 1362 1363 1364
    builtin and then its argument prototype would still apply.  */
char connect();

int main() {
1365 1366 1367 1368 1369 1370 1371

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_connect) || defined (__stub___connect)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
1372
connect();
1373 1374
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1375 1376
; return 0; }
EOF
1377
if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390
  rm -rf conftest*
  eval "ac_cv_func_connect=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_connect=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  echo "$ac_t""yes" 1>&6
1391 1392
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1393
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1394

Sam Hocevar's avatar
 
Sam Hocevar committed
1395
  echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1396
echo "configure:1397: checking for connect in -lsocket" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1397 1398 1399
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1400
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1401
  ac_save_LIBS="$LIBS"
1402
LIBS="-lsocket  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
1403
cat > conftest.$ac_ext <<EOF
1404
#line 1405 "configure"
1405 1406 1407
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1408 1409 1410 1411 1412 1413 1414
    builtin and then its argument prototype would still apply.  */
char connect();

int main() {
connect()
; return 0; }
EOF
1415
if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
1430
  LIB="${LIB} -lsocket"
Sam Hocevar's avatar
 
Sam Hocevar committed
1431 1432
else
  echo "$ac_t""no" 1>&6
1433 1434
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1435

1436 1437
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1438
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1439
echo "configure:1440: checking for gethostbyname" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1440 1441
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1442
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1443
  cat > conftest.$ac_ext <<EOF
1444
#line 1445 "configure"
1445 1446
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1447
    which can conflict with char gethostbyname(); below.  */
1448 1449 1450
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
1451 1452 1453 1454
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {
1455 1456 1457 1458 1459 1460 1461

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
1462
gethostbyname();
1463 1464
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1465 1466
; return 0; }
EOF
1467
if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  echo "$ac_t""yes" 1>&6
1481 1482
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1483
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1484

Sam Hocevar's avatar
 
Sam Hocevar committed
1485
  echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1486
echo "configure:1487: checking for gethostbyname in -lnsl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1487 1488 1489
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1490
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1491
  ac_save_LIBS="$LIBS"
1492
LIBS="-lnsl  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
1493
cat > conftest.$ac_ext <<EOF
1494
#line 1495 "configure"
1495 1496 1497
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1498 1499 1500 1501 1502 1503 1504
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {
gethostbyname()
; return 0; }
EOF
1505
if { (eval echo configure:1506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
1520
  LIB="${LIB} -lnsl"
Sam Hocevar's avatar
 
Sam Hocevar committed
1521 1522
else
  echo "$ac_t""no" 1>&6
1523 1524
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1525

1526 1527
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1528
echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1529
echo "configure:1530: checking for nanosleep" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1530 1531
if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1532
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1533
  cat > conftest.$ac_ext <<EOF
1534
#line 1535 "configure"
1535 1536
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1537
    which can conflict with char nanosleep(); below.  */
1538 1539 1540
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
1541 1542 1543 1544
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
1545 1546 1547 1548 1549 1550 1551

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_nanosleep) || defined (__stub___nanosleep)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
1552
nanosleep();
1553 1554
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1555 1556
; return 0; }
EOF
1557
if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570
  rm -rf conftest*
  eval "ac_cv_func_nanosleep=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_nanosleep=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
  echo "$ac_t""yes" 1>&6
1571 1572
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1573
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1574

Sam Hocevar's avatar
 
Sam Hocevar committed
1575
  echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1576
echo "configure:1577: checking for nanosleep in -lrt" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1577 1578 1579
ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1580
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1581
  ac_save_LIBS="$LIBS"
1582
LIBS="-lrt  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
1583
cat > conftest.$ac_ext <<EOF
1584
#line 1585 "configure"
1585 1586 1587
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1588 1589 1590 1591 1592 1593 1594
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
nanosleep()
; return 0; }
EOF
1595
if { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
1610
  LIB="${LIB} -lrt"
1611
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1612
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1613

Sam Hocevar's avatar
 
Sam Hocevar committed
1614
    echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1615
echo "configure:1616: checking for nanosleep in -lposix4" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1616 1617 1618
ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1619
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1620
  ac_save_LIBS="$LIBS"
1621
LIBS="-lposix4  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
1622
cat > conftest.$ac_ext <<EOF
1623
#line 1624 "configure"
1624 1625 1626
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1627 1628 1629 1630 1631 1632 1633
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
nanosleep()
; return 0; }
EOF
1634
if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
1649
  LIB="${LIB} -lposix4"
Sam Hocevar's avatar
 
Sam Hocevar committed
1650 1651
else
  echo "$ac_t""no" 1>&6
1652 1653
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1654
  
1655 1656
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1657

1658 1659 1660 1661
fi

for ac_func in usleep
do
Sam Hocevar's avatar
 
Sam Hocevar committed
1662
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1663
echo "configure:1664: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1664 1665 1666 1667
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
1668
#line 1669 "configure"
1669 1670
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1671
    which can conflict with char $ac_func(); below.  */
1672 1673 1674
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
1675 1676 1677 1678
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
1679 1680 1681 1682 1683

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Sam Hocevar's avatar
 
Sam Hocevar committed
1684 1685
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
1686
$ac_func();
Sam Hocevar's avatar
 
Sam Hocevar committed
1687
#endif
1688

Sam Hocevar's avatar
 
Sam Hocevar committed
1689
; return 0; }
1690
EOF
1691
if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1692 1693 1694 1695 1696 1697 1698 1699 1700 1701
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1702

Sam Hocevar's avatar
 
Sam Hocevar committed
1703 1704 1705 1706 1707 1708 1709 1710 1711
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
1712 1713 1714
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
1715
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1716
echo "configure:1717: checking for inet_aton" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1717 1718
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1719
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1720
  cat > conftest.$ac_ext <<EOF
1721
#line 1722 "configure"
1722 1723
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1724
    which can conflict with char inet_aton(); below.  */
1725 1726 1727
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
1728 1729 1730 1731
    builtin and then its argument prototype would still apply.  */
char inet_aton();

int main() {
1732 1733 1734 1735 1736 1737 1738

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
1739
inet_aton();
1740 1741
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1742 1743
; return 0; }
EOF
1744
if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757
  rm -rf conftest*
  eval "ac_cv_func_inet_aton=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_inet_aton=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
  echo "$ac_t""yes" 1>&6
1758 1759
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1760
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1761

Sam Hocevar's avatar
 
Sam Hocevar committed
1762
  echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1763
echo "configure:1764: checking for inet_aton in -lresolv" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1764 1765 1766
ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1767
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1768
  ac_save_LIBS="$LIBS"
1769
LIBS="-lresolv  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
1770
cat > conftest.$ac_ext <<EOF
1771
#line 1772 "configure"
1772 1773 1774
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1775 1776 1777 1778 1779 1780 1781
    builtin and then its argument prototype would still apply.  */
char inet_aton();

int main() {
inet_aton()
; return 0; }
EOF
1782
if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
1797
  LIB="${LIB} -lresolv"
Sam Hocevar's avatar
 
Sam Hocevar committed
1798 1799
else
  echo "$ac_t""no" 1>&6
1800 1801
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1802

1803 1804
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1805 1806
for ac_func in vasprintf
do
Sam Hocevar's avatar
 
Sam Hocevar committed
1807
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1808
echo "configure:1809: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1809 1810 1811 1812
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
1813
#line 1814 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1814 1815
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1816
    which can conflict with char $ac_func(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
1817 1818 1819
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
1820 1821 1822 1823
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
1824 1825 1826 1827 1828 1829 1830

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
1831
$ac_func();
Sam Hocevar's avatar
 
Sam Hocevar committed
1832 1833
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1834
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
1835
EOF
1836
if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1837 1838 1839 1840 1841 1842 1843 1844 1845 1846
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1847

Sam Hocevar's avatar
 
Sam Hocevar committed
1848 1849 1850 1851 1852 1853 1854 1855 1856
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1857 1858 1859
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
1860 1861
for ac_func in swab
do
Sam Hocevar's avatar
 
Sam Hocevar committed
1862
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1863
echo "configure:1864: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1864 1865 1866 1867
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
1868
#line 1869 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.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 $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
1891
if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


for ac_func in sigrelse
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1919
echo "configure:1920: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1920 1921 1922 1923
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
1924
#line 1925 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1925 1926
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1927
    which can conflict with char $ac_func(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
1928 1929 1930
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
1931 1932 1933 1934
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
1935 1936 1937 1938 1939 1940 1941

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
1942
$ac_func();
Sam Hocevar's avatar
 
Sam Hocevar committed
1943 1944
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1945
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
1946
EOF
1947
if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1948 1949 1950 1951 1952 1953 1954 1955 1956 1957
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1958

Sam Hocevar's avatar
 
Sam Hocevar committed
1959 1960 1961 1962 1963 1964 1965 1966 1967
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1968 1969 1970
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
1971 1972

echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1973
echo "configure:1974: checking for getopt_long" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1974 1975
if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1976
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1977
  cat > conftest.$ac_ext <<EOF
1978
#line 1979 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1979 1980
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1981
    which can conflict with char getopt_long(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
1982 1983 1984
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
1985 1986 1987 1988
    builtin and then its argument prototype would still apply.  */
char getopt_long();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
1989 1990 1991 1992 1993 1994 1995

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
1996
getopt_long();
Sam Hocevar's avatar
 
Sam Hocevar committed
1997 1998
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1999 2000
; return 0; }
EOF
2001
if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015
  rm -rf conftest*
  eval "ac_cv_func_getopt_long=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_getopt_long=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2016 2017 2018 2019
#define HAVE_GETOPT_LONG 1
EOF

else
Sam Hocevar's avatar
 
Sam Hocevar committed
2020 2021 2022
  echo "$ac_t""no" 1>&6
 # FreeBSD has a gnugetopt library for this:
  echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2023
echo "configure:2024: checking for getopt_long in -lgnugetopt" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2024 2025 2026
ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2027
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2028
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2029
LIBS="-lgnugetopt  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2030
cat > conftest.$ac_ext <<EOF
2031
#line 2032 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2032 2033 2034
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2035 2036 2037 2038 2039 2040 2041
    builtin and then its argument prototype would still apply.  */
char getopt_long();

int main() {
getopt_long()
; return 0; }
EOF
2042
if { (eval echo configure:2043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057
  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
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2058 2059
#define HAVE_GETOPT_LONG 1
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2060
 LIB="${LIB} -lgnugetopt"
Sam Hocevar's avatar
 
Sam Hocevar committed
2061
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2062 2063
  echo "$ac_t""no" 1>&6
GETOPT=1
Sam Hocevar's avatar
 
Sam Hocevar committed
2064 2065 2066 2067
fi

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2068 2069 2070


for ac_hdr in unistd.h
2071
do
Sam Hocevar's avatar
 
Sam Hocevar committed
2072 2073
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2074
echo "configure:2075: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2075 2076 2077 2078
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
2079
#line 2080 "configure"
2080
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
2081 2082 2083
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2084
{ (eval echo configure:2085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2085 2086 2087 2088 2089 2090 2091
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
2092
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2093 2094
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
2095
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2096
rm -f conftest*
2097
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2098 2099 2100 2101 2102
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
2103
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2104 2105 2106
 
else
  echo "$ac_t""no" 1>&6
2107 2108 2109 2110 2111
fi
done

for ac_func in getpagesize
do
Sam Hocevar's avatar
 
Sam Hocevar committed
2112
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2113
echo "configure:2114: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2114 2115 2116 2117
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
2118
#line 2119 "configure"
2119 2120
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
2121
    which can conflict with char $ac_func(); below.  */
2122 2123 2124
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
2125 2126 2127 2128
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
2129 2130 2131 2132 2133 2134 2135

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
2136
$ac_func();
2137 2138
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2142 2143 2144 2145 2146 2147 2148 2149 2150 2151
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
2152

Sam Hocevar's avatar
 
Sam Hocevar committed
2153 2154 2155 2156 2157 2158 2159 2160 2161
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
2162 2163 2164
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
2165
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2166
echo "configure:2167: checking for working mmap" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2167 2168
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
2169 2170 2171 2172
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2173
  cat > conftest.$ac_ext <<EOF
2174
#line 2175 "configure"
2175
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
2176

2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188
/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
Sam Hocevar's avatar
 
Sam Hocevar committed
2189
   VM page cache was not coherent with the filesystem buffer cache
2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propogated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */
#include <sys/types.h>
#include <fcntl.h>
#include <sys/mman.h>
2201 2202 2203 2204 2205 2206
#include <stdlib.h>
#include <sys/stat.h>

#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
2207

Sam Hocevar's avatar
 
Sam Hocevar committed
2208
/* This mess was copied from the GNU getpagesize.h.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
2209 2210
#ifndef HAVE_GETPAGESIZE

2211
/* Assume that all systems that can run configure have sys/param.h.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
2212
# ifndef HAVE_SYS_PARAM_H
2213 2214 2215 2216 2217 2218
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
Sam Hocevar's avatar
 
Sam Hocevar committed
2219
#  ifdef HAVE_SYS_PARAM_H
2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

Sam Hocevar's avatar
 
Sam Hocevar committed
2246 2247 2248 2249 2250 2251
#ifdef __cplusplus
extern "C" { void *malloc(unsigned); }
#else
char *malloc();
#endif

2252
int
Sam Hocevar's avatar
 
Sam Hocevar committed
2253
main()
2254
{
Sam Hocevar's avatar
 
Sam Hocevar committed
2255 2256 2257 2258 2259 2260 2261 2262 2263
	char *data, *data2, *data3;
	int i, pagesize;
	int fd;

	pagesize = getpagesize();

	/*
	 * First, make a file with some known garbage in it.
	 */
2264
	data = (char*)malloc(pagesize);
Sam Hocevar's avatar
 
Sam Hocevar committed
2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284
	if (!data)
		exit(1);
	for (i = 0; i < pagesize; ++i)
		*(data + i) = rand();
	umask(0);
	fd = creat("conftestmmap", 0600);
	if (fd < 0)
		exit(1);
	if (write(fd, data, pagesize) != pagesize)
		exit(1);
	close(fd);

	/*
	 * Next, try to mmap the file at a fixed address which
	 * already has something else allocated at it.  If we can,
	 * also make sure that we see the same garbage.
	 */
	fd = open("conftestmmap", O_RDWR);
	if (fd < 0)
		exit(1);
2285
	data2 = (char*)malloc(2 * pagesize);
Sam Hocevar's avatar
 
Sam Hocevar committed
2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302
	if (!data2)
		exit(1);
	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
		exit(1);
	for (i = 0; i < pagesize; ++i)
		if (*(data + i) != *(data2 + i))
			exit(1);

	/*
	 * Finally, make sure that changes to the mapped area
	 * do not percolate back to the file as seen by read().
	 * (This is a bug on some variants of i386 svr4.0.)
	 */
	for (i = 0; i < pagesize; ++i)
		*(data2 + i) = *(data2 + i) + 1;
2303
	data3 = (char*)malloc(pagesize);
Sam Hocevar's avatar
 
Sam Hocevar committed
2304 2305 2306 2307 2308 2309 2310 2311 2312 2313
	if (!data3)
		exit(1);
	if (read(fd, data3, pagesize) != pagesize)
		exit(1);
	for (i = 0; i < pagesize; ++i)
		if (*(data + i) != *(data3 + i))
			exit(1);
	close(fd);
	unlink("conftestmmap");
	exit(0);
2314
}
Sam Hocevar's avatar
 
Sam Hocevar committed
2315 2316

EOF
2317
if { (eval echo configure:2318: \"$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
2318
then
2319 2320
  ac_cv_func_mmap_fixed_mapped=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2321 2322 2323 2324
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_mmap_fixed_mapped=no
2325
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2326
rm -fr conftest*
2327
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2328

2329
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2330

Sam Hocevar's avatar
 
Sam Hocevar committed
2331 2332 2333
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then
  cat >> confdefs.h <<\EOF
2334 2335 2336 2337 2338
#define HAVE_MMAP 1
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2339
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2340
echo "configure:2341: checking return type of signal handlers" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2341 2342
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
2343
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2344
  cat > conftest.$ac_ext <<EOF
2345
#line 2346 "configure"
2346 2347 2348 2349
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
Sam Hocevar's avatar
 
Sam Hocevar committed
2350
#undef signal
2351 2352 2353 2354 2355 2356 2357
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
2358
int main() {
2359
int i;
Sam Hocevar's avatar
 
Sam Hocevar committed
2360 2361
; return 0; }
EOF
2362
if { (eval echo configure:2363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2363
  rm -rf conftest*
2364 2365
  ac_cv_type_signal=void
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2366 2367 2368 2369
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_signal=int
2370
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2371
rm -f conftest*
2372 2373
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2374 2375
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
2376 2377 2378
#define RETSIGTYPE $ac_cv_type_signal
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
2379 2380

echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2381
echo "configure:2382: checking for dlopen in -ldl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2382 2383 2384
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
2385
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2386
  ac_save_LIBS="$LIBS"
2387
LIBS="-ldl  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2388
cat > conftest.$ac_ext <<EOF
2389
#line 2390 "configure"
2390 2391 2392
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2393 2394 2395 2396 2397 2398 2399
    builtin and then its argument prototype would still apply.  */
char dlopen();

int main() {
dlopen()
; return 0; }
EOF
2400
if { (eval echo configure:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2415
  LIB="${LIB} -ldl"
Sam Hocevar's avatar
 
Sam Hocevar committed
2416 2417
else
  echo "$ac_t""no" 1>&6
2418 2419
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2420
echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2421
echo "configure:2422: checking for pow in -lm" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2422 2423 2424
ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
2425
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2426
  ac_save_LIBS="$LIBS"
2427
LIBS="-lm  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2428
cat > conftest.$ac_ext <<EOF
2429
#line 2430 "configure"
2430 2431 2432
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2433 2434 2435 2436 2437 2438 2439
    builtin and then its argument prototype would still apply.  */
char pow();

int main() {
pow()
; return 0; }
EOF
2440
if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2455
  LIB_YUV="${LIB_YUV} -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
2456 2457
else
  echo "$ac_t""no" 1>&6
2458 2459
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2460

Sam Hocevar's avatar
 
Sam Hocevar committed
2461 2462 2463 2464
CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
CFLAGS="${CFLAGS} -I/usr/local/include"

PTHREAD_LIBS=error
Sam Hocevar's avatar
 
Sam Hocevar committed
2465
echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2466
echo "configure:2467: checking for pthread_attr_init in -lpthread" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2467 2468 2469
ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
2470
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2471
  ac_save_LIBS="$LIBS"
2472
LIBS="-lpthread  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2473
cat > conftest.$ac_ext <<EOF
2474
#line 2475 "configure"
2475 2476 2477
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2478 2479 2480 2481 2482 2483 2484
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
EOF
2485
if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2500
  THREAD_LIB="-lpthread"
Sam Hocevar's avatar
 
Sam Hocevar committed
2501 2502
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2503 2504
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2505
if test "x${THREAD_LIB}" = xerror; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2506
  echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2507
echo "configure:2508: checking for pthread_attr_init in -lpthreads" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2508 2509 2510
ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2511
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2512
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2513
LIBS="-lpthreads  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2514
cat > conftest.$ac_ext <<EOF
2515
#line 2516 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2516
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
2517 2518
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
2519 2520 2521 2522 2523 2524 2525
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
EOF
2526
if { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2541
  THREAD_LIB="-lpthreads"
Sam Hocevar's avatar
 
Sam Hocevar committed
2542 2543
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2544
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2545

Sam Hocevar's avatar
 
Sam Hocevar committed
2546
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2547
if test "x${THREAD_LIB}" = xerror; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2548
  echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2549
echo "configure:2550: checking for pthread_attr_init in -lc_r" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2550 2551 2552
ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
2553
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2554
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2555
LIBS="-lc_r  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2556
cat > conftest.$ac_ext <<EOF
2557
#line 2558 "configure"
2558 2559 2560
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
2561 2562 2563 2564 2565 2566 2567
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
pthread_attr_init()
; return 0; }
EOF
2568
if { (eval echo configure:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2583
  THREAD_LIB="-lc_r"
Sam Hocevar's avatar
 
Sam Hocevar committed
2584 2585
else
  echo "$ac_t""no" 1>&6
2586 2587
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2588
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2589 2590
if test "x${THREAD_LIB}" = xerror; then
  THREAD_LIBS=""
Sam Hocevar's avatar
 
Sam Hocevar committed
2591
  echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2592
echo "configure:2593: checking for pthread_attr_init" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2593 2594
if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2595
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2596
  cat > conftest.$ac_ext <<EOF
2597
#line 2598 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2598 2599
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
2600
    which can conflict with char pthread_attr_init(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
2601 2602 2603
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
Sam Hocevar's avatar
 
Sam Hocevar committed
2604 2605 2606 2607
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
2608 2609 2610 2611 2612 2613 2614

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
2615
pthread_attr_init();
Sam Hocevar's avatar
 
Sam Hocevar committed
2616 2617
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
2618 2619
; return 0; }
EOF
2620
if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637
  rm -rf conftest*
  eval "ac_cv_func_pthread_attr_init=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_pthread_attr_init=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2638 2639 2640

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2641
cat > conftest.$ac_ext <<EOF
2642
#line 2643 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2643 2644
#include "confdefs.h"
#include <pthread.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
2645
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2646 2647
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "pthread_cond_t" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2648 2649 2650
  rm -rf conftest*
  
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2651 2652 2653 2654 2655 2656
#define PTHREAD_COND_T_IN_PTHREAD_H 1
EOF

fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
2657
cat > conftest.$ac_ext <<EOF
2658
#line 2659 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2659 2660
#include "confdefs.h"
#include <strings.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
2661
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2662 2663
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "strncasecmp" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2664 2665 2666
  rm -rf conftest*
  
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2667 2668 2669 2670 2671
#define STRNCASECMP_IN_STRINGS_H 1
EOF

fi
rm -f conftest*
2672

Sam Hocevar's avatar
 
Sam Hocevar committed
2673 2674

for ac_hdr in stddef.h getopt.h strings.h
Christophe Massiot's avatar
Christophe Massiot committed
2675
do
Sam Hocevar's avatar
 
Sam Hocevar committed
2676 2677
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2678
echo "configure:2679: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2679 2680 2681 2682
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
2683
#line 2684 "configure"
Christophe Massiot's avatar
Christophe Massiot committed
2684
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
2685 2686 2687
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2688
{ (eval echo configure:2689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2689 2690 2691 2692 2693 2694 2695
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
Christophe Massiot's avatar
Christophe Massiot committed
2696
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2697 2698
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Christophe Massiot's avatar
Christophe Massiot committed
2699
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2700
rm -f conftest*
Christophe Massiot's avatar
Christophe Massiot committed
2701
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2702 2703 2704 2705 2706
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
Christophe Massiot's avatar
Christophe Massiot committed
2707
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2708 2709 2710
 
else
  echo "$ac_t""no" 1>&6
Christophe Massiot's avatar
Christophe Massiot committed
2711 2712 2713
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
2714
for ac_hdr in sys/sockio.h fcntl.h sys/time.h unistd.h
2715
do
Sam Hocevar's avatar
 
Sam Hocevar committed
2716 2717
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2718
echo "configure:2719: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2719 2720 2721 2722
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
2723
#line 2724 "configure"
2724
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
2725 2726 2727
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2728
{ (eval echo configure:2729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2729 2730 2731 2732 2733 2734 2735
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
2736
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2737 2738
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
2739
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2740
rm -f conftest*
2741
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2742 2743 2744 2745 2746
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
2747
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2748 2749 2750
 
else
  echo "$ac_t""no" 1>&6
2751 2752 2753
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
2754
for ac_hdr in sys/soundcard.h machine/soundcard.h
2755
do
Sam Hocevar's avatar
 
Sam Hocevar committed
2756 2757
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2758
echo "configure:2759: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2759 2760 2761 2762
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
2763
#line 2764 "configure"
2764
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
2765 2766 2767
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768
{ (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2769 2770 2771 2772 2773 2774 2775
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
2776
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2777 2778
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
2779
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2780
rm -f conftest*
2781
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2782 2783 2784 2785 2786
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
2787
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2788 2789 2790
 
else
  echo "$ac_t""no" 1>&6
2791 2792 2793
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
2794
for ac_hdr in dlfcn.h image.h
2795
do
Sam Hocevar's avatar
 
Sam Hocevar committed
2796 2797
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2798
echo "configure:2799: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2799 2800 2801 2802
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
2803
#line 2804 "configure"
2804
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
2805 2806 2807
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2808
{ (eval echo configure:2809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2809 2810 2811 2812 2813 2814 2815
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
2816
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2817 2818
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
2819
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2820
rm -f conftest*
2821
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2822 2823 2824 2825 2826
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
2827
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2828 2829 2830
 
else
  echo "$ac_t""no" 1>&6
2831 2832 2833
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
2834
for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2835
do
Sam Hocevar's avatar
 
Sam Hocevar committed
2836 2837
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2838
echo "configure:2839: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2839 2840 2841 2842
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
2843
#line 2844 "configure"
2844
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
2845 2846 2847
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2848
{ (eval echo configure:2849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2849 2850 2851 2852 2853 2854 2855
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
2856
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2857 2858
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
2859
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2860
rm -f conftest*
2861
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2862 2863 2864 2865 2866
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
2867
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2868 2869 2870
 
else
  echo "$ac_t""no" 1>&6
2871 2872 2873
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
2874
for ac_hdr in machine/param.h
Benoit Steiner's avatar
 
Benoit Steiner committed
2875
do
Sam Hocevar's avatar
 
Sam Hocevar committed
2876 2877
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2878
echo "configure:2879: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2879 2880 2881 2882
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
2883
#line 2884 "configure"
Benoit Steiner's avatar
 
Benoit Steiner committed
2884
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
2885 2886 2887
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2888
{ (eval echo configure:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2889 2890 2891 2892 2893 2894 2895
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
Benoit Steiner's avatar
 
Benoit Steiner committed
2896
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2897 2898
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Benoit Steiner's avatar
 
Benoit Steiner committed
2899
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2900
rm -f conftest*
Benoit Steiner's avatar
 
Benoit Steiner committed
2901
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2902 2903 2904 2905 2906
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
Benoit Steiner's avatar
 
Benoit Steiner committed
2907
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2908 2909 2910
 
else
  echo "$ac_t""no" 1>&6
Benoit Steiner's avatar
 
Benoit Steiner committed
2911 2912 2913
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
2914 2915

for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
Benoit Steiner's avatar
 
Benoit Steiner committed
2916
do
Sam Hocevar's avatar
 
Sam Hocevar committed
2917 2918
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2919
echo "configure:2920: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2920 2921 2922 2923
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
2924
#line 2925 "configure"
Christophe Massiot's avatar
Christophe Massiot committed
2925
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
2926 2927 2928
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2929
{ (eval echo configure:2930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
2930 2931 2932 2933 2934 2935 2936
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
Christophe Massiot's avatar
Christophe Massiot committed
2937
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2938 2939
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Christophe Massiot's avatar
Christophe Massiot committed
2940
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2941
rm -f conftest*
Christophe Massiot's avatar
Christophe Massiot committed
2942
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2943 2944 2945 2946 2947
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
Christophe Massiot's avatar
Christophe Massiot committed
2948
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2949 2950 2951
 
else
  echo "$ac_t""no" 1>&6
Christophe Massiot's avatar
Christophe Massiot committed
2952 2953 2954
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
2955

Sam Hocevar's avatar
 
Sam Hocevar committed
2956
CFLAGS="${save_CFLAGS} -Wall -Werror"
Sam Hocevar's avatar
 
Sam Hocevar committed
2957
echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2958
echo "configure:2959: checking for ntohl in sys/param.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2959
cat > conftest.$ac_ext <<EOF
2960
#line 2961 "configure"
Christophe Massiot's avatar
Christophe Massiot committed
2961 2962 2963
#include "confdefs.h"
#include <sys/param.h>
void foo() { int meuh; ntohl(meuh); }
Sam Hocevar's avatar
 
Sam Hocevar committed
2964
int main() {
Christophe Massiot's avatar
Christophe Massiot committed
2965

Sam Hocevar's avatar
 
Sam Hocevar committed
2966 2967
; return 0; }
EOF
2968
if { (eval echo configure:2969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2969 2970
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
Christophe Massiot's avatar
Christophe Massiot committed
2971 2972 2973
#define NTOHL_IN_SYS_PARAM_H 1
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
2974
 echo "$ac_t""yes" 1>&6
Christophe Massiot's avatar
Christophe Massiot committed
2975
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2976 2977 2978 2979
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
Christophe Massiot's avatar
Christophe Massiot committed
2980
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2981
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
2982

Sam Hocevar's avatar
 
Sam Hocevar committed
2983 2984
CFLAGS="${save_CFLAGS} -bundle -undefined suppress"
echo $ac_n "checking if \$CC compiles plugins with -bundle -undefined suppress""... $ac_c" 1>&6
2985
echo "configure:2986: checking if \$CC compiles plugins with -bundle -undefined suppress" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2986
cat > conftest.$ac_ext <<EOF
2987
#line 2988 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2988 2989 2990 2991 2992 2993
#include "confdefs.h"

int main() {

; return 0; }
EOF
2994
if { (eval echo configure:2995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006
  rm -rf conftest*
  PLCFLAGS="${PLCFLAGS} -bundle -undefined suppress"; echo "$ac_t""yes" 1>&6
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
fi
rm -f conftest*

CFLAGS="${save_CFLAGS} -shared"
echo $ac_n "checking if \$CC compiles plugins with -shared""... $ac_c" 1>&6
3007
echo "configure:3008: checking if \$CC compiles plugins with -shared" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3008
cat > conftest.$ac_ext <<EOF
3009
#line 3010 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3010 3011 3012 3013 3014 3015
#include "confdefs.h"

int main() {

; return 0; }
EOF
3016
if { (eval echo configure:3017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3017 3018 3019 3020 3021 3022 3023 3024 3025 3026
  rm -rf conftest*
  PLCFLAGS="${PLCFLAGS} -shared"; echo "$ac_t""yes" 1>&6
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
3027
CFLAGS="${save_CFLAGS}"
Christophe Massiot's avatar
Christophe Massiot committed
3028

Sam Hocevar's avatar
 
Sam Hocevar committed
3029
echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3030
echo "configure:3031: checking for boolean_t in sys/types.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3031
cat > conftest.$ac_ext <<EOF
3032
#line 3033 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3033 3034 3035
#include "confdefs.h"
#include <sys/types.h>
void quux() { boolean_t foo; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3036
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
3037

Sam Hocevar's avatar
 
Sam Hocevar committed
3038 3039
; return 0; }
EOF
3040
if { (eval echo configure:3041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3041 3042
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3043 3044 3045
#define BOOLEAN_T_IN_SYS_TYPES_H 1
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
3046
 echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3047
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3048 3049 3050 3051
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3052
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3053 3054
rm -f conftest*
echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3055
echo "configure:3056: checking for boolean_t in pthread.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3056
cat > conftest.$ac_ext <<EOF
3057
#line 3058 "configure"
3058 3059 3060
#include "confdefs.h"
#include <pthread.h>
void quux() { boolean_t foo; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3061
int main() {
3062

Sam Hocevar's avatar
 
Sam Hocevar committed
3063 3064
; return 0; }
EOF
3065
if { (eval echo configure:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3066 3067
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
3068 3069 3070
#define BOOLEAN_T_IN_PTHREAD_H 1
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
3071
 echo "$ac_t""yes" 1>&6
3072
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3073 3074 3075 3076
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
3077
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3078
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3079

Sam Hocevar's avatar
 
Sam Hocevar committed
3080
echo $ac_n "checking for working const""... $ac_c" 1>&6
3081
echo "configure:3082: checking for working const" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3082 3083
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3084
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3085
  cat > conftest.$ac_ext <<EOF
3086
#line 3087 "configure"
3087 3088
#include "confdefs.h"

Sam Hocevar's avatar
 
Sam Hocevar committed
3089 3090 3091
int main() {

/* Ultrix mips cc rejects this.  */
3092
typedef int charset[2]; const charset x = {0,0};
Sam Hocevar's avatar
 
Sam Hocevar committed
3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127
/* 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;
Sam Hocevar's avatar
 
Sam Hocevar committed
3128
}
Sam Hocevar's avatar
 
Sam Hocevar committed
3129 3130 3131 3132 3133 3134
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}

; return 0; }
EOF
3135
if { (eval echo configure:3136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3136
  rm -rf conftest*
3137 3138
  ac_cv_c_const=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3139 3140 3141 3142
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_const=no
3143
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3144
rm -f conftest*
3145
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3146

Sam Hocevar's avatar
 
Sam Hocevar committed
3147 3148 3149 3150
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
3151 3152 3153 3154
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3155
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3156
echo "configure:3157: checking for ANSI C header files" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3157 3158
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3159
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3160
  cat > conftest.$ac_ext <<EOF
3161
#line 3162 "configure"
3162 3163 3164 3165 3166
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3167 3168
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3169
{ (eval echo configure:3170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3170 3171 3172
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
3173 3174
  ac_cv_header_stdc=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3175 3176
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
3177
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3178
  rm -rf conftest*
3179 3180
  ac_cv_header_stdc=no
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3181
rm -f conftest*
3182 3183 3184

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Sam Hocevar's avatar
 
Sam Hocevar committed
3185
cat > conftest.$ac_ext <<EOF
3186
#line 3187 "configure"
3187 3188
#include "confdefs.h"
#include <string.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3189
EOF
3190 3191 3192 3193
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3194
  rm -rf conftest*
3195 3196 3197 3198 3199 3200 3201 3202
  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.
Sam Hocevar's avatar
 
Sam Hocevar committed
3203
cat > conftest.$ac_ext <<EOF
3204
#line 3205 "configure"
3205 3206
#include "confdefs.h"
#include <stdlib.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3207
EOF
3208 3209 3210 3211
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3212
  rm -rf conftest*
3213 3214 3215 3216 3217 3218 3219 3220
  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.
Sam Hocevar's avatar
 
Sam Hocevar committed
3221
if test "$cross_compiling" = yes; then
3222 3223
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3224
  cat > conftest.$ac_ext <<EOF
3225
#line 3226 "configure"
3226 3227
#include "confdefs.h"
#include <ctype.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3228 3229
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Sam Hocevar's avatar
 
Sam Hocevar committed
3230
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Sam Hocevar's avatar
 
Sam Hocevar committed
3231 3232 3233 3234 3235
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
3236
if { (eval echo configure:3237: \"$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
3237
then
3238 3239
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3240 3241 3242 3243
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
3244
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3245
rm -fr conftest*
3246
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3247

3248 3249
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3250

Sam Hocevar's avatar
 
Sam Hocevar committed
3251 3252 3253
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
3254 3255 3256 3257 3258
#define STDC_HEADERS 1
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3259
echo $ac_n "checking for size_t""... $ac_c" 1>&6
3260
echo "configure:3261: checking for size_t" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3261 3262
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3263
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3264
  cat > conftest.$ac_ext <<EOF
3265
#line 3266 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3266
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
3267 3268 3269 3270 3271 3272 3273 3274 3275
#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*
3276 3277
  ac_cv_type_size_t=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3278 3279
  rm -rf conftest*
  ac_cv_type_size_t=no
3280
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3281
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3282

Sam Hocevar's avatar
 
Sam Hocevar committed
3283 3284 3285 3286
fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
  cat >> confdefs.h <<\EOF
3287 3288 3289 3290 3291
#define size_t unsigned
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3292
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3293
echo "configure:3294: checking whether time.h and sys/time.h may both be included" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3294 3295
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3296
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3297
  cat > conftest.$ac_ext <<EOF
3298
#line 3299 "configure"
3299 3300 3301 3302
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3303
int main() {
3304
struct tm *tp;
Sam Hocevar's avatar
 
Sam Hocevar committed
3305 3306
; return 0; }
EOF
3307
if { (eval echo configure:3308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3308
  rm -rf conftest*
3309 3310
  ac_cv_header_time=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3311 3312 3313 3314
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_time=no
3315
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3316
rm -f conftest*
3317
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3318

Sam Hocevar's avatar
 
Sam Hocevar committed
3319 3320 3321
echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
  cat >> confdefs.h <<\EOF
3322 3323 3324 3325 3326
#define TIME_WITH_SYS_TIME 1
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3327

Sam Hocevar's avatar
 
Sam Hocevar committed
3328 3329
ARCH=${host_cpu}

Sam Hocevar's avatar
 
Sam Hocevar committed
3330 3331
BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
PLUGINS="${PLUGINS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
3332

Gildas Bazin's avatar
 
Gildas Bazin committed
3333 3334
MMX_MODULES="yuvmmx idctmmx motionmmx"
MMXEXT_MODULES="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
Sam Hocevar's avatar
 
Sam Hocevar committed
3335

Sam Hocevar's avatar
 
Sam Hocevar committed
3336
echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3337
echo "configure:3338: checking if \$CC groks MMX inline assembly" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3338
cat > conftest.$ac_ext <<EOF
3339
#line 3340 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3340 3341
#include "confdefs.h"
void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
Sam Hocevar's avatar
 
Sam Hocevar committed
3342
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
3343

Sam Hocevar's avatar
 
Sam Hocevar committed
3344 3345
; return 0; }
EOF
3346
if { (eval echo configure:3347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3347
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3348
  ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
Sam Hocevar's avatar
 
Sam Hocevar committed
3349
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3350
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3351 3352 3353 3354
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3355
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3356
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3357

Sam Hocevar's avatar
 
Sam Hocevar committed
3358
echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
3359
echo "configure:3360: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3360
cat > conftest.$ac_ext <<EOF
3361
#line 3362 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3362 3363
#include "confdefs.h"
void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
Sam Hocevar's avatar
 
Sam Hocevar committed
3364
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
3365

Sam Hocevar's avatar
 
Sam Hocevar committed
3366 3367
; return 0; }
EOF
3368
if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3369
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3370
  ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
Sam Hocevar's avatar
 
Sam Hocevar committed
3371
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3372
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3373 3374 3375 3376
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3377
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3378
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3379

Sam Hocevar's avatar
 
Sam Hocevar committed
3380 3381 3382 3383 3384

for ac_hdr in winioctl.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3385
echo "configure:3386: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3386 3387 3388 3389
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
3390
#line 3391 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3391 3392 3393 3394
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3395
{ (eval echo configure:3396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
  LIBDVDCSS=1

else
  echo "$ac_t""no" 1>&6
fi
done


Sam Hocevar's avatar
 
Sam Hocevar committed
3424
for ac_hdr in sys/ioctl.h
3425
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3426 3427
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3428
echo "configure:3429: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3429 3430 3431 3432
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
3433
#line 3434 "configure"
3434
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
3435 3436 3437
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3438
{ (eval echo configure:3439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3439 3440 3441 3442 3443 3444 3445
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
3446
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3447 3448
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
3449
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3450
rm -f conftest*
3451
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3452 3453 3454 3455 3456
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
3457
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3458
 
Sam Hocevar's avatar
 
Sam Hocevar committed
3459
  LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
3460
  for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h
3461
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3462 3463
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3464
echo "configure:3465: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3465 3466 3467 3468
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
3469
#line 3470 "configure"
3470
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
3471 3472 3473
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3474
{ (eval echo configure:3475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3475 3476 3477 3478 3479 3480 3481
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
3482
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3483 3484
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
3485
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3486
rm -f conftest*
3487
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3488 3489 3490 3491 3492
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
3493
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3494 3495 3496
 
else
  echo "$ac_t""no" 1>&6
3497 3498 3499
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
3500
  BSD_DVD_STRUCT=0
Sam Hocevar's avatar
 
Sam Hocevar committed
3501
        cat > conftest.$ac_ext <<EOF
3502
#line 3503 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3503 3504
#include "confdefs.h"
#include <sys/dvdio.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3505
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3506 3507
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "dvd_struct" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3508 3509 3510
  rm -rf conftest*
  
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3511 3512 3513 3514
#define DVD_STRUCT_IN_SYS_DVDIO_H 1
EOF

    BSD_DVD_STRUCT=1
Sam Hocevar's avatar
 
Sam Hocevar committed
3515
  
Sam Hocevar's avatar
 
Sam Hocevar committed
3516 3517 3518
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
3519
        cat > conftest.$ac_ext <<EOF
3520
#line 3521 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3521 3522
#include "confdefs.h"
#include <sys/cdio.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3523
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3524 3525
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "dvd_struct" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3526 3527 3528
  rm -rf conftest*
  
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3529 3530 3531 3532
#define DVD_STRUCT_IN_SYS_CDIO_H 1
EOF

    BSD_DVD_STRUCT=1
Sam Hocevar's avatar
 
Sam Hocevar committed
3533
  
Sam Hocevar's avatar
 
Sam Hocevar committed
3534 3535 3536 3537
fi
rm -f conftest*

  if test x$BSD_DVD_STRUCT = x1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3538
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3539 3540 3541 3542
#define HAVE_BSD_DVD_STRUCT 1
EOF

  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3543
        cat > conftest.$ac_ext <<EOF
3544
#line 3545 "configure"
3545 3546
#include "confdefs.h"
#include <linux/cdrom.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3547
EOF
3548
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Sam Hocevar's avatar
 
Sam Hocevar committed
3549
  egrep "dvd_struct" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3550 3551 3552
  rm -rf conftest*
  
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3553
#define DVD_STRUCT_IN_LINUX_CDROM_H 1
3554 3555
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
3556
  
3557 3558 3559
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
3560 3561 3562

else
  echo "$ac_t""no" 1>&6
3563 3564 3565
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
3566

Sam Hocevar's avatar
 
Sam Hocevar committed
3567 3568 3569 3570 3571 3572 3573 3574 3575
case ${host_os} in
  darwin*)
    SYS=darwin
    ;;
  *)
    SYS=${host_os}
    ;;
esac

Sam Hocevar's avatar
 
Sam Hocevar committed
3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643
# Check whether --enable-ppro or --disable-ppro was given.
if test "${enable_ppro+set}" = set; then
  enableval="$enable_ppro"
   if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi 
else
   if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi 
fi


# Check whether --enable-mmx or --disable-mmx was given.
if test "${enable_mmx+set}" = set; then
  enableval="$enable_mmx"
   if test x$enableval = xyes; then ARCH="${ARCH} mmx";
  BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
else
   if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86 -o x${host_cpu} = xi386; then ARCH="${ARCH} mmx";
  BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
fi


# Check whether --enable-altivec or --disable-altivec was given.
if test "${enable_altivec+set}" = set; then
  enableval="$enable_altivec"
   if test x$enableval = xyes; then ARCH="${ARCH} altivec";
    BUILTINS="${BUILTINS} idctaltivec"
    LIB_IDCTALTIVEC="-framework vecLib"
  fi 
fi

#[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])

# Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
  enableval="$enable_debug"
   if test x$enableval = xyes; then DEBUG=1; fi 
fi


# Check whether --enable-stats or --disable-stats was given.
if test "${enable_stats+set}" = set; then
  enableval="$enable_stats"
   if test x$enableval = xyes; then STATS=1; fi 
fi


# Check whether --enable-trace or --disable-trace was given.
if test "${enable_trace+set}" = set; then
  enableval="$enable_trace"
   if test x$enableval = xyes; then TRACE=1; fi 
fi


# Check whether --enable-profiling or --disable-profiling was given.
if test "${enable_profiling+set}" = set; then
  enableval="$enable_profiling"
   if test x$enableval = xyes; then PROFILING=1; fi 
fi


# Check whether --enable-optimizations or --disable-optimizations was given.
if test "${enable_optimizations+set}" = set; then
  enableval="$enable_optimizations"
   if test x$enableval = xno; then OPTIMS=0; fi 
else
   OPTIMS=1 
fi


Sam Hocevar's avatar
 
Sam Hocevar committed
3644 3645 3646 3647 3648
# Check whether --enable-pth or --disable-pth was given.
if test "${enable_pth+set}" = set; then
  enableval="$enable_pth"
   if test x$enableval = xyes; then
    echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
3649
echo "configure:3650: checking for pth_init in -lpth" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3650 3651 3652 3653 3654 3655 3656
ac_lib_var=`echo pth'_'pth_init | 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="-lpth  $LIBS"
cat > conftest.$ac_ext <<EOF
3657
#line 3658 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3658 3659 3660 3661 3662 3663 3664 3665 3666 3667
#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 pth_init();

int main() {
pth_init()
; return 0; }
EOF
3668
if { (eval echo configure:3669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3669 3670 3671 3672 3673 3674 3675
  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"
Sam Hocevar's avatar
 
Sam Hocevar committed
3676
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3677 3678
rm -f conftest*
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3679

Sam Hocevar's avatar
 
Sam Hocevar committed
3680 3681 3682 3683 3684 3685 3686 3687
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3688

Sam Hocevar's avatar
 
Sam Hocevar committed
3689 3690 3691 3692
  LIBS="-lpth $LIBS"

else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3693
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3694

Sam Hocevar's avatar
 
Sam Hocevar committed
3695
    cat > conftest.$ac_ext <<EOF
3696
#line 3697 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3697 3698 3699 3700 3701 3702 3703 3704 3705 3706
#include "confdefs.h"
#include <pth.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "pth_init" >/dev/null 2>&1; then
  rm -rf conftest*
  
      cat >> confdefs.h <<\EOF
#define PTH_INIT_IN_PTH_H 1
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3707

Sam Hocevar's avatar
 
Sam Hocevar committed
3708 3709
    THREAD_LIB="-lpth"
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3710
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3711
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3712

Sam Hocevar's avatar
 
Sam Hocevar committed
3713 3714 3715 3716 3717

fi


LIB="${LIB} ${THREAD_LIB}"
Sam Hocevar's avatar
 
Sam Hocevar committed
3718

Sam Hocevar's avatar
 
Sam Hocevar committed
3719 3720 3721
# Check whether --enable-css or --disable-css was given.
if test "${enable_css+set}" = set; then
  enableval="$enable_css"
Sam Hocevar's avatar
 
Sam Hocevar committed
3722
   if test x$enableval = xyes; then CSS=1; else CSS=0; fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
3723
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3724 3725 3726 3727
   CSS=1; 
fi

if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3728 3729 3730
#define HAVE_CSS 1
EOF
 fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3731

Sam Hocevar's avatar
 
Sam Hocevar committed
3732 3733 3734 3735
for ac_hdr in videolan/dvdcss.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3736
echo "configure:3737: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3737 3738 3739 3740
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
3741
#line 3742 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3742 3743 3744 3745
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3746
{ (eval echo configure:3747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
  # installed libdvdcss
  BUILTINS="${BUILTINS} dvd"
  LIB_DVD="${LIB_DVD} -ldvdcss"
else
  echo "$ac_t""no" 1>&6
if test x${LIBDVDCSS} = x1; then
    # local libdvdcss
    LOCAL_LIBDVDCSS=1
    BUILTINS="${BUILTINS} dvd"
    CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
  fi
fi
done


# Check whether --enable-dummy or --disable-dummy was given.
if test "${enable_dummy+set}" = set; then
  enableval="$enable_dummy"
  :
fi

if test x$enable_dummy != xno; then
  BUILTINS="${BUILTINS} dummy"; fi

# Check whether --enable-null or --disable-null was given.
if test "${enable_null+set}" = set; then
  enableval="$enable_null"
  :
fi

if test x$enable_null != xno; then
  BUILTINS="${BUILTINS} null"; fi

# Check whether --enable-rc or --disable-rc was given.
if test "${enable_rc+set}" = set; then
  enableval="$enable_rc"
  :
fi

if test x$enable_rc != xno; then
  BUILTINS="${BUILTINS} rc"; fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3809
if test x$SYS = xbeos; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3810
    BUILTINS="${BUILTINS} beos"
Sam Hocevar's avatar
 
Sam Hocevar committed
3811
    LIB_BEOS="-lbe -lgame -lroot -ltracker"
Sam Hocevar's avatar
 
Sam Hocevar committed
3812
    PLCFLAGS="${PLCFLAGS} -nostart"
3813 3814 3815 3816 3817 3818

else

# Check whether --enable-dsp or --disable-dsp was given.
if test "${enable_dsp+set}" = set; then
  enableval="$enable_dsp"
Sam Hocevar's avatar
 
Sam Hocevar committed
3819 3820
  :
fi
3821

3822
if test x$enable_dsp != xno; then
3823
  if test -c /dev/dsp; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3824
    PLUGINS="${PLUGINS} dsp"
3825 3826
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3827

3828 3829 3830
# Check whether --enable-esd or --disable-esd was given.
if test "${enable_esd+set}" = set; then
  enableval="$enable_esd"
Sam Hocevar's avatar
 
Sam Hocevar committed
3831
  if test x$enable_esd = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3832 3833
     # Extract the first word of "esd-config", so it can be a program name with args.
set dummy esd-config; ac_word=$2
Sam Hocevar's avatar
 
Sam Hocevar committed
3834
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3835
echo "configure:3836: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3836 3837
if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3838
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3839 3840
  case "$ESD_CONFIG" in
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
3841 3842
  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
3843 3844 3845
  ?:/*)			 
  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
3846
  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
3847 3848 3849 3850 3851 3852 3853 3854 3855 3856
  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_path_ESD_CONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
3857 3858 3859 3860
  test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  ;;
esac
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3861
ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
Sam Hocevar's avatar
 
Sam Hocevar committed
3862
if test -n "$ESD_CONFIG"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3863
  echo "$ac_t""$ESD_CONFIG" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3864
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3865
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3866 3867 3868
fi

     if test x${ESD_CONFIG} != xno; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3869
       PLUGINS="${PLUGINS} esd"
Sam Hocevar's avatar
 
Sam Hocevar committed
3870 3871
       LIB_ESD="`${ESD_CONFIG} --libs`"
     fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3872
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3873 3874
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3875

Sam Hocevar's avatar
 
Sam Hocevar committed
3876 3877 3878
# Check whether --enable-darwin or --disable-darwin was given.
if test "${enable_darwin+set}" = set; then
  enableval="$enable_darwin"
Sam Hocevar's avatar
 
Sam Hocevar committed
3879
  if test x$enable_darwin = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3880
     PLUGINS="${PLUGINS} darwin"
Sam Hocevar's avatar
 
Sam Hocevar committed
3881 3882
     LIB_DARWIN="-framework CoreAudio"
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3883 3884
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3885

3886 3887 3888
# Check whether --enable-macosx or --disable-macosx was given.
if test "${enable_macosx+set}" = set; then
  enableval="$enable_macosx"
Sam Hocevar's avatar
 
Sam Hocevar committed
3889
  if test x$enable_macosx = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3890
     BUILTINS="${BUILTINS} macosx"
Sam Hocevar's avatar
 
Sam Hocevar committed
3891
     LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
Sam Hocevar's avatar
 
Sam Hocevar committed
3892 3893
     LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
     LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
Sam Hocevar's avatar
 
Sam Hocevar committed
3894
   fi
3895
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3896
  for ac_hdr in Carbon/Carbon.h
3897
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3898 3899
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3900
echo "configure:3901: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3901 3902 3903 3904
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
3905
#line 3906 "configure"
3906
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
3907 3908 3909
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3910
{ (eval echo configure:3911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3911 3912 3913 3914 3915 3916 3917
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
3918
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3919 3920
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
3921
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3922
rm -f conftest*
3923
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3924 3925 3926 3927 3928
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
3929
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3930
 BUILTINS="${BUILTINS} macosx"
Sam Hocevar's avatar
 
Sam Hocevar committed
3931
     LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
Sam Hocevar's avatar
 
Sam Hocevar committed
3932 3933
     LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
     LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
Sam Hocevar's avatar
 
Sam Hocevar committed
3934 3935 3936
   
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3937
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3938
done
Sam Hocevar's avatar
 
Sam Hocevar committed
3939

Sam Hocevar's avatar
 
Sam Hocevar committed
3940 3941
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3942

3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994
# Check whether --enable-qnx or --disable-qnx was given.
if test "${enable_qnx+set}" = set; then
  enableval="$enable_qnx"
  :
fi

    if test x$enable_qnx != xno; then
      for ac_hdr in Ph.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3955: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3960 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
        PLUGINS="${PLUGINS} qnx"
        LIB_QNX="-lasound -lph"
      
else
  echo "$ac_t""no" 1>&6
fi
done

    fi

3995 3996 3997
# Check whether --enable-fb or --disable-fb was given.
if test "${enable_fb+set}" = set; then
  enableval="$enable_fb"
Sam Hocevar's avatar
 
Sam Hocevar committed
3998
  if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3999 4000
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4001

Christophe Massiot's avatar
Christophe Massiot committed
4002 4003 4004
# Check whether --with-ggi or --without-ggi was given.
if test "${with_ggi+set}" = set; then
  withval="$with_ggi"
Sam Hocevar's avatar
 
Sam Hocevar committed
4005
   if test "x$withval" != "xno";
Christophe Massiot's avatar
Christophe Massiot committed
4006
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
4007
      PLUGINS="${PLUGINS} ggi";
Sam Hocevar's avatar
 
Sam Hocevar committed
4008 4009 4010 4011 4012
      if test "x$withval" != "xyes";
      then
        LIB_GGI="-l"$withval
      else
        LIB_GGI="-lggi"
Sam Hocevar's avatar
 
Sam Hocevar committed
4013
      fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4014 4015 4016
    fi 
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4017

Christophe Massiot's avatar
Christophe Massiot committed
4018 4019 4020
# Check whether --with-sdl or --without-sdl was given.
if test "${with_sdl+set}" = set; then
  withval="$with_sdl"
Sam Hocevar's avatar
 
Sam Hocevar committed
4021
   if test "x$withval" != "xno";
Christophe Massiot's avatar
Christophe Massiot committed
4022
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
4023
      PLUGINS="${PLUGINS} sdl";
Sam Hocevar's avatar
 
Sam Hocevar committed
4024 4025
      if test "x$withval" != "xyes";
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
4026
        LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -L"$withval"/lib -lSDL"
Sam Hocevar's avatar
 
Sam Hocevar committed
4027
        CFLAGS_SDL="-I"$withval"/include"
Sam Hocevar's avatar
 
Sam Hocevar committed
4028
      else
Sam Hocevar's avatar
 
Sam Hocevar committed
4029
        for ac_hdr in SDL/SDL.h
4030
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4031 4032
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4033
echo "configure:4034: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4034 4035 4036 4037
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
4038
#line 4039 "configure"
4039
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4040 4041 4042
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4043
{ (eval echo configure:4044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4044 4045 4046 4047 4048 4049 4050
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
4051
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4052 4053
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4054
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4055
rm -f conftest*
4056
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4057 4058 4059 4060 4061
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
4062
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4063
 
4064
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4065 4066
  echo "$ac_t""no" 1>&6
echo "Cannot find SDL headers !"; exit
4067 4068 4069
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4070
        LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
Sam Hocevar's avatar
 
Sam Hocevar committed
4071
      fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4072 4073 4074
    fi 
fi

4075
    if test "x$withval" = "x";
Sam Hocevar's avatar
 
Sam Hocevar committed
4076
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
4077
      for ac_hdr in SDL/SDL.h
4078
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4079 4080
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4081
echo "configure:4082: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4082 4083 4084 4085
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
4086
#line 4087 "configure"
4087
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4088 4089 4090
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4091
{ (eval echo configure:4092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4092 4093 4094 4095 4096 4097 4098
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
4099
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4100 4101
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4102
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4103
rm -f conftest*
4104
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4105 4106 4107 4108 4109
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
4110
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4111 4112
 PLUGINS="${PLUGINS} sdl"
       LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
Sam Hocevar's avatar
 
Sam Hocevar committed
4113 4114
else
  echo "$ac_t""no" 1>&6
4115 4116 4117
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4118
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4119

Sam Hocevar's avatar
 
Sam Hocevar committed
4120 4121 4122 4123 4124 4125 4126 4127
# Check whether --with-directx or --without-directx was given.
if test "${with_directx+set}" = set; then
  withval="$with_directx"
   if test "x$withval" != "xno";
    then
      PLUGINS="${PLUGINS} directx";
      if test "x$withval" != "xyes";
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
4128
        LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
Sam Hocevar's avatar
 
Sam Hocevar committed
4129 4130 4131 4132 4133 4134
        INCLUDE="${INCLUDE} -I"$withval"/include"
      else
        for ac_hdr in directx.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4135
echo "configure:4136: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4136 4137 4138 4139
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
4140
#line 4141 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4141 4142 4143 4144
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4145
{ (eval echo configure:4146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
echo "Cannot find DirectX headers !"; exit
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4172
        LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
Sam Hocevar's avatar
 
Sam Hocevar committed
4173 4174 4175 4176 4177 4178 4179 4180 4181 4182
      fi
    fi 
fi

    if test "x$withval" = "x";
    then
      for ac_hdr in directx.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4183
echo "configure:4184: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4184 4185 4186 4187
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
4188
#line 4189 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4189 4190 4191 4192
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4193
{ (eval echo configure:4194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 PLUGINS="${PLUGINS} directx"
Sam Hocevar's avatar
 
Sam Hocevar committed
4214
       LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
Sam Hocevar's avatar
 
Sam Hocevar committed
4215 4216 4217 4218 4219 4220 4221
else
  echo "$ac_t""no" 1>&6
fi
done

    fi

Christophe Massiot's avatar
Christophe Massiot committed
4222 4223 4224
# Check whether --with-glide or --without-glide was given.
if test "${with_glide+set}" = set; then
  withval="$with_glide"
Sam Hocevar's avatar
 
Sam Hocevar committed
4225
   if test "x$withval" != "xno";
Christophe Massiot's avatar
Christophe Massiot committed
4226
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
4227
      PLUGINS="${PLUGINS} glide";
Sam Hocevar's avatar
 
Sam Hocevar committed
4228 4229
      if test "x$withval" != "xyes";
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
4230
        LIB_GLIDE="-l"$withval" -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
4231
      else
Sam Hocevar's avatar
 
Sam Hocevar committed
4232
        LIB_GLIDE="-lglide2x -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
4233
      fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4234 4235 4236
    fi 
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4237

Sam Hocevar's avatar
 
Sam Hocevar committed
4238 4239 4240
# Check whether --enable-ncurses or --disable-ncurses was given.
if test "${enable_ncurses+set}" = set; then
  enableval="$enable_ncurses"
Sam Hocevar's avatar
 
Sam Hocevar committed
4241
  if test x$enable_ncurses = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4242
     PLUGINS="${PLUGINS} ncurses"
Sam Hocevar's avatar
 
Sam Hocevar committed
4243 4244
     LIB_NCURSES="-lncurses"
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4245 4246
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4247

Sam Hocevar's avatar
 
Sam Hocevar committed
4248 4249 4250
# Check whether --enable-qt or --disable-qt was given.
if test "${enable_qt+set}" = set; then
  enableval="$enable_qt"
Sam Hocevar's avatar
 
Sam Hocevar committed
4251
  if test x$enable_qt = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4252 4253
     PLUGINS="${PLUGINS} qt"
     ALIASES="${ALIASES} qvlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
4254
     LIB_QT="-lqt -L${QTDIR}/lib"
Sam Hocevar's avatar
 
Sam Hocevar committed
4255 4256 4257 4258 4259 4260
     if test -x ${QTDIR}/bin/moc ;
     then
       MOC=${QTDIR}/bin/moc
     else
       MOC=moc
     fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4261
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4262 4263
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4264

4265 4266 4267
# Check whether --enable-kde or --disable-kde was given.
if test "${enable_kde+set}" = set; then
  enableval="$enable_kde"
Sam Hocevar's avatar
 
Sam Hocevar committed
4268 4269 4270 4271 4272
  if test x$enable_kde = xyes; then
     PLUGINS="${PLUGINS} kde";
     ALIASES="${ALIASES} kvlc";
     LIB_KDE="-lkfile"
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4273 4274
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4275

4276 4277 4278
# Check whether --enable-gnome or --disable-gnome was given.
if test "${enable_gnome+set}" = set; then
  enableval="$enable_gnome"
Sam Hocevar's avatar
 
Sam Hocevar committed
4279
  if test x$enable_gnome = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4280 4281
     PLUGINS="${PLUGINS} gnome"
     ALIASES="${ALIASES} gnome-vlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
4282 4283
     LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4284 4285
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4286

Sam Hocevar's avatar
 
Sam Hocevar committed
4287 4288 4289
# Check whether --enable-gtk or --disable-gtk was given.
if test "${enable_gtk+set}" = set; then
  enableval="$enable_gtk"
Sam Hocevar's avatar
 
Sam Hocevar committed
4290 4291
  :
fi
4292

4293
if test x$enable_gtk != xno; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4294 4295
  # Extract the first word of "gtk-config", so it can be a program name with args.
set dummy gtk-config; ac_word=$2
Sam Hocevar's avatar
 
Sam Hocevar committed
4296
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4297
echo "configure:4298: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4298 4299
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4300
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4301 4302
  case "$GTK_CONFIG" in
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
4303 4304
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
4305 4306 4307
  ?:/*)			 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
4308
  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
4309 4310 4311 4312 4313 4314 4315 4316 4317 4318
  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_path_GTK_CONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
Sam Hocevar's avatar
 
Sam Hocevar committed
4319 4320 4321 4322
  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  ;;
esac
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4323
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
Sam Hocevar's avatar
 
Sam Hocevar committed
4324
if test -n "$GTK_CONFIG"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4325
  echo "$ac_t""$GTK_CONFIG" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4326
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4327
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4328 4329 4330
fi

  if test x${GTK_CONFIG} != xno; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4331 4332
    PLUGINS="${PLUGINS} gtk"
    ALIASES="${ALIASES} gvlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
4333 4334
    CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
    LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
4335 4336
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4337

4338 4339 4340
# Check whether --enable-x11 or --disable-x11 was given.
if test "${enable_x11+set}" = set; then
  enableval="$enable_x11"
Sam Hocevar's avatar
 
Sam Hocevar committed
4341 4342
  :
fi
Henri Fallon's avatar
 
Henri Fallon committed
4343

4344
if test x$enable_x11 != xno; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4345 4346 4347 4348 4349 4350 4351 4352
  if test x$x_includes = xNONE; then
    x_includes=/usr/X11R6/include
  fi
  if test x$x_libraries = xNONE; then
    x_libraries=/usr/X11R6/lib
  fi
  saved_CPPFLAGS=$CPPFLAGS
  CPPFLAGS="$CPPFLAGS -I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4353
  for ac_hdr in X11/Xlib.h
4354
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4355 4356
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4357
echo "configure:4358: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4358 4359 4360 4361
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
4362
#line 4363 "configure"
4363
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4364 4365 4366
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4367
{ (eval echo configure:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4368 4369 4370 4371 4372 4373 4374
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
4375
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4376 4377
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4378
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4379
rm -f conftest*
4380
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4381 4382 4383 4384 4385
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
4386
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4387
 
Sam Hocevar's avatar
 
Sam Hocevar committed
4388
    PLUGINS="${PLUGINS} x11"
Sam Hocevar's avatar
 
Sam Hocevar committed
4389 4390
    LIB_X11="-L$x_libraries -lX11 -lXext"
    CFLAGS_X11="-I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4391
  
Sam Hocevar's avatar
 
Sam Hocevar committed
4392
  CPPFLAGS=$saved_CPPFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
4393 4394
else
  echo "$ac_t""no" 1>&6
4395 4396 4397 4398
fi
done

fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4399

Sam Hocevar's avatar
 
Sam Hocevar committed
4400 4401 4402
# Check whether --enable-xvideo or --disable-xvideo was given.
if test "${enable_xvideo+set}" = set; then
  enableval="$enable_xvideo"
Sam Hocevar's avatar
 
Sam Hocevar committed
4403 4404
  :
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4405 4406 4407 4408 4409 4410 4411 4412 4413 4414

if test x$enable_xvideo != xno; then
  if test x$x_includes = xNONE; then
    x_includes=/usr/X11R6/include
  fi
  if test x$x_libraries = xNONE; then
    x_libraries=/usr/X11R6/lib
  fi
  saved_CPPFLAGS=$CPPFLAGS
  CPPFLAGS="$CPPFLAGS -I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4415
  for ac_hdr in X11/extensions/Xv.h
Sam Hocevar's avatar
 
Sam Hocevar committed
4416
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4417 4418
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4419
echo "configure:4420: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4420 4421 4422 4423
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
4424
#line 4425 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4425
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4426 4427 4428
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4429
{ (eval echo configure:4430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4430 4431 4432 4433 4434 4435 4436
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4437
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4438 4439
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
4440
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4441
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4442
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4443 4444 4445 4446 4447
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
Sam Hocevar's avatar
 
Sam Hocevar committed
4448
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4449
 
Sam Hocevar's avatar
 
Sam Hocevar committed
4450 4451 4452
    PLUGINS="${PLUGINS} xvideo"
    LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
    CFLAGS_X11="-I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4453
  
Sam Hocevar's avatar
 
Sam Hocevar committed
4454
  CPPFLAGS=$saved_CPPFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
4455 4456
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4457 4458
fi
done
Sam Hocevar's avatar
 
Sam Hocevar committed
4459

Sam Hocevar's avatar
 
Sam Hocevar committed
4460
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4461

Henri Fallon's avatar
 
Henri Fallon committed
4462 4463 4464
# Check whether --enable-alsa or --disable-alsa was given.
if test "${enable_alsa+set}" = set; then
  enableval="$enable_alsa"
Sam Hocevar's avatar
 
Sam Hocevar committed
4465 4466
  if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
4467
echo "configure:4468: checking for sys/asoundlib.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4468 4469 4470 4471
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
4472
#line 4473 "configure"
Henri Fallon's avatar
 
Henri Fallon committed
4473 4474
#include "confdefs.h"
#include <sys/asoundlib.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
4475 4476
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4477
{ (eval echo configure:4478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4478 4479 4480 4481 4482 4483 4484
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
Henri Fallon's avatar
 
Henri Fallon committed
4485
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4486 4487
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Henri Fallon's avatar
 
Henri Fallon committed
4488
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4489
rm -f conftest*
Henri Fallon's avatar
 
Henri Fallon committed
4490
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4491 4492 4493
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
4494
echo "configure:4495: checking for main in -lasound" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4495 4496 4497
ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Henri Fallon's avatar
 
Henri Fallon committed
4498
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4499
  ac_save_LIBS="$LIBS"
Henri Fallon's avatar
 
Henri Fallon committed
4500
LIBS="-lasound  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4501
cat > conftest.$ac_ext <<EOF
4502
#line 4503 "configure"
Henri Fallon's avatar
 
Henri Fallon committed
4503 4504
#include "confdefs.h"

Sam Hocevar's avatar
 
Sam Hocevar committed
4505 4506 4507 4508
int main() {
main()
; return 0; }
EOF
4509
if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523
  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
Henri Fallon's avatar
 
Henri Fallon committed
4524 4525
  have_alsa="true"
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4526 4527
  echo "$ac_t""no" 1>&6
have_alsa="false"
Henri Fallon's avatar
 
Henri Fallon committed
4528 4529 4530
fi

else
Sam Hocevar's avatar
 
Sam Hocevar committed
4531 4532
  echo "$ac_t""no" 1>&6
have_alsa="false"
Henri Fallon's avatar
 
Henri Fallon committed
4533
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4534 4535
 if test x$have_alsa = xtrue; then
     PLUGINS="${PLUGINS} alsa"
Sam Hocevar's avatar
 
Sam Hocevar committed
4536 4537
     LIB_ALSA="-lasound"
   fi; fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4538 4539
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4540

4541 4542 4543 4544 4545 4546 4547
fi






Henri Fallon's avatar
 
Henri Fallon committed
4548 4549 4550



Christophe Massiot's avatar
Christophe Massiot committed
4551 4552 4553



Sam Hocevar's avatar
 
Sam Hocevar committed
4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567














Sam Hocevar's avatar
 
Sam Hocevar committed
4568

Sam Hocevar's avatar
 
Sam Hocevar committed
4569

Sam Hocevar's avatar
 
Sam Hocevar committed
4570 4571 4572 4573




Sam Hocevar's avatar
 
Sam Hocevar committed
4574

Sam Hocevar's avatar
 
Sam Hocevar committed
4575 4576


4577

Sam Hocevar's avatar
 
Sam Hocevar committed
4578

Sam Hocevar's avatar
 
Sam Hocevar committed
4579

Sam Hocevar's avatar
 
Sam Hocevar committed
4580

Sam Hocevar's avatar
 
Sam Hocevar committed
4581

Sam Hocevar's avatar
 
Sam Hocevar committed
4582

Sam Hocevar's avatar
 
Sam Hocevar committed
4583 4584 4585



Sam Hocevar's avatar
 
Sam Hocevar committed
4586

Sam Hocevar's avatar
 
Sam Hocevar committed
4587

Sam Hocevar's avatar
 
Sam Hocevar committed
4588

Sam Hocevar's avatar
 
Sam Hocevar committed
4589

Sam Hocevar's avatar
 
Sam Hocevar committed
4590

4591

4592

Sam Hocevar's avatar
 
Sam Hocevar committed
4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638

trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
4639
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4640
rm -f confcache
4641

Sam Hocevar's avatar
 
Sam Hocevar committed
4642
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
Sam Hocevar's avatar
 
Sam Hocevar committed
4643

Sam Hocevar's avatar
 
Sam Hocevar committed
4644 4645 4646
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4647

Sam Hocevar's avatar
 
Sam Hocevar committed
4648 4649 4650 4651 4652 4653 4654 4655 4656 4657
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
fi

trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15

DEFS=-DHAVE_CONFIG_H
4658

Sam Hocevar's avatar
 
Sam Hocevar committed
4659 4660
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
4661

Sam Hocevar's avatar
 
Sam Hocevar committed
4662 4663 4664 4665 4666 4667 4668 4669
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4670
#
Sam Hocevar's avatar
 
Sam Hocevar committed
4671
# $0 $ac_configure_args
4672
#
Sam Hocevar's avatar
 
Sam Hocevar committed
4673 4674
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
4675

Sam Hocevar's avatar
 
Sam Hocevar committed
4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
  case "\$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  esac
done

ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
Sam Hocevar's avatar
 
Sam Hocevar committed
4694

Sam Hocevar's avatar
 
Sam Hocevar committed
4695
trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4696
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4697
cat >> $CONFIG_STATUS <<EOF
4698

Sam Hocevar's avatar
 
Sam Hocevar committed
4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@VLC_VERSION@%$VLC_VERSION%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4733
s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753
s%@VLC_CODENAME@%$VLC_CODENAME%g
s%@SET_MAKE@%$SET_MAKE%g
s%@CC@%$CC%g
s%@CPP@%$CPP%g
s%@RANLIB@%$RANLIB%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@GETOPT@%$GETOPT%g
s%@ESD_CONFIG@%$ESD_CONFIG%g
s%@GTK_CONFIG@%$GTK_CONFIG%g
s%@SYS@%$SYS%g
s%@ARCH@%$ARCH%g
s%@PLUGINS@%$PLUGINS%g
s%@BUILTINS@%$BUILTINS%g
s%@ALIASES@%$ALIASES%g
s%@DEFINE@%$DEFINE%g
s%@INCLUDE@%$INCLUDE%g
s%@DEBUG@%$DEBUG%g
s%@STATS@%$STATS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4754
s%@ASM@%$ASM%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4755
s%@TRACE@%$TRACE%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4756
s%@PROFILING@%$PROFILING%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4757 4758 4759
s%@OPTIMS@%$OPTIMS%g
s%@CSS@%$CSS%g
s%@MOC@%$MOC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4760
s%@WINDRES@%$WINDRES%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4761
s%@LCFLAGS@%$LCFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4762
s%@PLCFLAGS@%$PLCFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4763 4764 4765 4766
s%@LIB@%$LIB%g
s%@LIB_ALSA@%$LIB_ALSA%g
s%@LIB_BEOS@%$LIB_BEOS%g
s%@LIB_DARWIN@%$LIB_DARWIN%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4767
s%@LIB_DVD@%$LIB_DVD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4768 4769 4770 4771 4772 4773
s%@LIB_ESD@%$LIB_ESD%g
s%@LIB_GGI@%$LIB_GGI%g
s%@LIB_GLIDE@%$LIB_GLIDE%g
s%@LIB_GNOME@%$LIB_GNOME%g
s%@LIB_GTK@%$LIB_GTK%g
s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4774
s%@LIB_KDE@%$LIB_KDE%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4775
s%@LIB_MACOSX@%$LIB_MACOSX%g
4776
s%@LIB_QNX@%$LIB_QNX%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4777 4778 4779 4780
s%@LIB_NCURSES@%$LIB_NCURSES%g
s%@LIB_QT@%$LIB_QT%g
s%@LIB_TS@%$LIB_TS%g
s%@LIB_SDL@%$LIB_SDL%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4781
s%@LIB_DIRECTX@%$LIB_DIRECTX%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4782 4783 4784 4785
s%@LIB_X11@%$LIB_X11%g
s%@LIB_XVIDEO@%$LIB_XVIDEO%g
s%@LIB_YUV@%$LIB_YUV%g
s%@CFLAGS_VLC@%$CFLAGS_VLC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4786
s%@CFLAGS_DVD@%$CFLAGS_DVD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4787
s%@CFLAGS_GTK@%$CFLAGS_GTK%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4788
s%@CFLAGS_SDL@%$CFLAGS_SDL%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4789
s%@CFLAGS_X11@%$CFLAGS_X11%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4790
s%@LOCAL_LIBDVDCSS@%$LOCAL_LIBDVDCSS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816

CEOF
EOF

cat >> $CONFIG_STATUS <<\EOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
Sam Hocevar's avatar
 
Sam Hocevar committed
4817
    else
Sam Hocevar's avatar
 
Sam Hocevar committed
4818
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4819
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4820 4821 4822
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4823
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4824 4825 4826 4827 4828
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF
4829

Sam Hocevar's avatar
 
Sam Hocevar committed
4830 4831 4832
cat >> $CONFIG_STATUS <<EOF

CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
4833
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4834 4835
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4836
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Sam Hocevar's avatar
 
Sam Hocevar committed
4837 4838 4839 4840
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
4841 4842
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
4843
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Sam Hocevar's avatar
 
Sam Hocevar committed
4844

Sam Hocevar's avatar
 
Sam Hocevar committed
4845 4846 4847 4848 4849 4850
  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4851
    # A "../" for each directory in $ac_dir_suffix.
Sam Hocevar's avatar
 
Sam Hocevar committed
4852
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4853 4854 4855 4856
  else
    ac_dir_suffix= ac_dots=
  fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4857 4858 4859 4860 4861
  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4862
  *) # Relative path.
Sam Hocevar's avatar
 
Sam Hocevar committed
4863 4864
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4865 4866
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
4867 4868 4869
  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4870 4871
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
4872 4873 4874 4875 4876 4877 4878 4879
  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac
4880

Sam Hocevar's avatar
 
Sam Hocevar committed
4881 4882 4883 4884 4885 4886 4887 4888 4889
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
4890 4891 4892 4893 4894

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
Sam Hocevar's avatar
 
Sam Hocevar committed
4895 4896 4897 4898 4899 4900 4901
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
4902
ac_uC=' '
Sam Hocevar's avatar
 
Sam Hocevar committed
4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'

if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="include/defs.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4918
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Sam Hocevar's avatar
 
Sam Hocevar committed
4919 4920 4921 4922
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
4923 4924
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
4925 4926 4927 4928 4929
  echo creating $ac_file

  rm -f conftest.frag conftest.in conftest.out
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in
4930 4931 4932

EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h.  And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
4944
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4945 4946
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
4947 4948 4949 4950

# This sed command replaces #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
Sam Hocevar's avatar
 
Sam Hocevar committed
4951 4952
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4953 4954
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
4955 4956
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
4957 4958

rm -f conftest.tail
Sam Hocevar's avatar
 
Sam Hocevar committed
4959
while :
4960
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4961 4962 4963 4964 4965 4966
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  # Write a limited-size here document to conftest.frag.
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4967
  echo 'CEOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4968 4969 4970 4971 4972 4973 4974
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in
' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
4975
done
Sam Hocevar's avatar
 
Sam Hocevar committed
4976 4977 4978 4979 4980 4981 4982 4983 4984 4985
rm -f conftest.vals

cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    rm -f conftest.h
4986
  else
Sam Hocevar's avatar
 
Sam Hocevar committed
4987 4988
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4989
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4990 4991
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
4992
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4993 4994
    rm -f $ac_file
    mv conftest.h $ac_file
4995
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4996 4997
fi; done

4998
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4999
cat >> $CONFIG_STATUS <<EOF
5000

Sam Hocevar's avatar
 
Sam Hocevar committed
5001 5002
EOF
cat >> $CONFIG_STATUS <<\EOF
5003

Sam Hocevar's avatar
 
Sam Hocevar committed
5004
exit 0
5005 5006
EOF
chmod +x $CONFIG_STATUS
Sam Hocevar's avatar
 
Sam Hocevar committed
5007 5008 5009
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1

5010

5011
echo "
Sam Hocevar's avatar
 
Sam Hocevar committed
5012 5013 5014 5015 5016
global configuration
--------------------
system                : ${SYS}
architecture          : ${ARCH}
optimizations         : ${OPTIMS}
Sam Hocevar's avatar
 
Sam Hocevar committed
5017
inline assembly       : ${ASM}
Sam Hocevar's avatar
 
Sam Hocevar committed
5018

5019 5020 5021
vlc configuration
-----------------
vlc version           : ${VLC_VERSION}
5022 5023
debug mode            : ${DEBUG}
statistics            : ${STATS}
5024
trace mode            : ${TRACE}
Sam Hocevar's avatar
 
Sam Hocevar committed
5025
profiling             : ${PROFILING}
Sam Hocevar's avatar
 
Sam Hocevar committed
5026
need builtin getopt   : ${GETOPT}
Sam Hocevar's avatar
 
Sam Hocevar committed
5027
built-in modules      :${BUILTINS}
Sam Hocevar's avatar
 
Sam Hocevar committed
5028
plugin modules        :${PLUGINS}
Sam Hocevar's avatar
 
Sam Hocevar committed
5029
vlc aliases           :${ALIASES}
Sam Hocevar's avatar
 
Sam Hocevar committed
5030

Sam Hocevar's avatar
 
Sam Hocevar committed
5031 5032 5033 5034 5035 5036
libdvdcss configuration
-----------------------
CSS decryption        : ${CSS}

You may now tune Makefile.opts at your convenience. To build vlc, type
\`make vlc'. To build libdvdcss only, type \`make libdvdcss'."
5037