configure 144 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
ac_help="$ac_help
  --enable-pth            Enable GNU Pth support (default disabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
32
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
33
  --with-dvdcss[=name]    way to use libdvdcss, either local-static, local-shared or a path to another libdvdcss such as /usr/local (default local-static)"
Sam Hocevar's avatar
 
Sam Hocevar committed
34 35
ac_help="$ac_help
  --disable-css           Disable DVD CSS decryption (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
36 37 38 39 40 41
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
42 43 44 45 46 47 48 49
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)"
50
ac_help="$ac_help
Sam Hocevar's avatar
 
Sam Hocevar committed
51
  --disable-qnx           QNX RTOS support (default enabled in QNX RTOS)"
Sam Hocevar's avatar
 
Sam Hocevar committed
52 53 54 55 56
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
57
  --disable-sdl           SDL support (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
58 59
ac_help="$ac_help
  --with-directx[=name]   Windows DirectX support (default enabled)"
Sam Hocevar's avatar
 
Sam Hocevar committed
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
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)"
78 79 80 81

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

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
138
  case "$ac_option" in
139 140 141 142

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

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

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

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

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

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
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 250 251
  -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 ;;
252 253

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  -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
389
    sysconfdir="$ac_optarg" ;;
390 391

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

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

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

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

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

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

  -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
441
    x_libraries="$ac_optarg" ;;
442

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

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

  esac
done

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

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

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

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

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

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

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
587 588


589

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

609 610

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

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

636

Sam Hocevar's avatar
 
Sam Hocevar committed
637
VLC_VERSION=0.2.81
638

Sam Hocevar's avatar
 
Sam Hocevar committed
639
LIBDVDCSS_VERSION=0.0.2
Sam Hocevar's avatar
 
Sam Hocevar committed
640

Sam Hocevar's avatar
 
Sam Hocevar committed
641
VLC_CODENAME=Ourumov
642

Sam Hocevar's avatar
 
Sam Hocevar committed
643

Sam Hocevar's avatar
 
Sam Hocevar committed
644 645
save_CFLAGS="${CFLAGS}"

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

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

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
798
cat > conftest.$ac_ext << EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
799

Sam Hocevar's avatar
 
Sam Hocevar committed
800
#line 801 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
801 802
#include "confdefs.h"

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

Sam Hocevar's avatar
 
Sam Hocevar committed
852
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
853

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
876
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
877 878

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
975 976 977
# 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
Sam Hocevar's avatar
 
Sam Hocevar committed
978
echo "configure:979: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
979 980
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
981 982 983 984
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
985 986 987 988 989 990 991 992 993 994 995
  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
996 997
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
998
RANLIB="$ac_cv_prog_RANLIB"
Sam Hocevar's avatar
 
Sam Hocevar committed
999
if test -n "$RANLIB"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1000
  echo "$ac_t""$RANLIB" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1001
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1002
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1003 1004
fi

1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016

# 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
1017
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1018
echo "configure:1019: checking for a BSD compatible install" >&5
1019
if test -z "$INSTALL"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1020 1021
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1022
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1023
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
1024 1025
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
Sam Hocevar's avatar
 
Sam Hocevar committed
1026 1027
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1028 1029 1030 1031 1032
    *)
      # 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
1033
        if test -f $ac_dir/$ac_prog; then
1034
	  if test $ac_prog = install &&
Sam Hocevar's avatar
 
Sam Hocevar committed
1035
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046
	    # 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
1047
  IFS="$ac_save_IFS"
1048 1049 1050

fi
  if test "${ac_cv_path_install+set}" = set; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1051
    INSTALL="$ac_cv_path_install"
1052 1053 1054 1055 1056
  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
1057
    INSTALL="$ac_install_sh"
1058 1059
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1060
echo "$ac_t""$INSTALL" 1>&6
1061 1062 1063 1064 1065

# 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
1066
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1067 1068 1069

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

Sam Hocevar's avatar
 
Sam Hocevar committed
1070 1071

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

int main() {

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

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

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

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1146

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

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

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

1227 1228
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
1229

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

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1238
fi
1239 1240 1241

for ac_func in gettimeofday select strerror strtod strtol
do
Sam Hocevar's avatar
 
Sam Hocevar committed
1242
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1243
echo "configure:1244: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1244 1245 1246 1247
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1248
#line 1249 "configure"
1249 1250
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1251
    which can conflict with char $ac_func(); below.  */
1252 1253 1254
#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
1255 1256 1257 1258
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
1259 1260 1261 1262 1263 1264 1265

/* 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
1266
$ac_func();
1267 1268
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1269
; return 0; }
1270
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1271
if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281
  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
1282

Sam Hocevar's avatar
 
Sam Hocevar committed
1283 1284 1285 1286 1287 1288 1289 1290 1291
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
1292 1293 1294 1295 1296
fi
done

for ac_func in setenv putenv
do
Sam Hocevar's avatar
 
Sam Hocevar committed
1297
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1298
echo "configure:1299: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1299 1300
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1301
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1302
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1303
#line 1304 "configure"
1304 1305
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1306
    which can conflict with char $ac_func(); below.  */
1307 1308 1309
#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
1310 1311 1312 1313
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
1314 1315 1316 1317 1318 1319 1320

/* 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
1321
$ac_func();
1322 1323
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1324
; return 0; }
1325
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1326
if { (eval echo configure:1327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1327 1328 1329 1330 1331 1332 1333 1334 1335 1336
  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
1337

Sam Hocevar's avatar
 
Sam Hocevar committed
1338 1339 1340 1341 1342 1343 1344 1345 1346
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
1347 1348 1349
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
1350
echo $ac_n "checking for connect""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1351
echo "configure:1352: checking for connect" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1352 1353
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1354
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1355
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1356
#line 1357 "configure"
1357 1358
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1359
    which can conflict with char connect(); below.  */
1360 1361 1362
#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
1363 1364 1365 1366
    builtin and then its argument prototype would still apply.  */
char connect();

int main() {
1367 1368 1369 1370 1371 1372 1373

/* 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
1374
connect();
1375 1376
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1377 1378
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1379
if { (eval echo configure:1380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392
  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
1393 1394
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1395
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1396

Sam Hocevar's avatar
 
Sam Hocevar committed
1397
  echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1398
echo "configure:1399: checking for connect in -lsocket" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1399 1400 1401
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
1402
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1403
  ac_save_LIBS="$LIBS"
1404
LIBS="-lsocket  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
1405
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1406
#line 1407 "configure"
1407 1408 1409
#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
1410 1411 1412 1413 1414 1415 1416
    builtin and then its argument prototype would still apply.  */
char connect();

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

Sam Hocevar's avatar
 
Sam Hocevar committed
1437

1438 1439
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1440
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1441
echo "configure:1442: checking for gethostbyname" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1442 1443
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1444
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1445
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1446
#line 1447 "configure"
1447 1448
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1449
    which can conflict with char gethostbyname(); below.  */
1450 1451 1452
#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
1453 1454 1455 1456
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {
1457 1458 1459 1460 1461 1462 1463

/* 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
1464
gethostbyname();
1465 1466
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1467 1468
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1469
if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482
  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
1483 1484
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1485
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1486

Sam Hocevar's avatar
 
Sam Hocevar committed
1487
  echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1488
echo "configure:1489: checking for gethostbyname in -lnsl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1489 1490 1491
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
1492
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1493
  ac_save_LIBS="$LIBS"
1494
LIBS="-lnsl  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
1495
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1496
#line 1497 "configure"
1497 1498 1499
#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
1500 1501 1502 1503 1504 1505 1506
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

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

Sam Hocevar's avatar
 
Sam Hocevar committed
1527

1528 1529
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1530
echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1531
echo "configure:1532: checking for nanosleep" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1532 1533
if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1534
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1535
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1536
#line 1537 "configure"
1537 1538
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1539
    which can conflict with char nanosleep(); below.  */
1540 1541 1542
#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
1543 1544 1545 1546
    builtin and then its argument prototype would still apply.  */
char nanosleep();

int main() {
1547 1548 1549 1550 1551 1552 1553

/* 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
1554
nanosleep();
1555 1556
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1557 1558
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1559
if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572
  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
1573 1574
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1575
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1576

Sam Hocevar's avatar
 
Sam Hocevar committed
1577
  echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1578
echo "configure:1579: checking for nanosleep in -lrt" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1579 1580 1581
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
1582
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1583
  ac_save_LIBS="$LIBS"
1584
LIBS="-lrt  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
1585
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1586
#line 1587 "configure"
1587 1588 1589
#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
1590 1591 1592 1593 1594 1595 1596
    builtin and then its argument prototype would still apply.  */
char nanosleep();

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

Sam Hocevar's avatar
 
Sam Hocevar committed
1616
    echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1617
echo "configure:1618: checking for nanosleep in -lposix4" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1618 1619 1620
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
1621
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1622
  ac_save_LIBS="$LIBS"
1623
LIBS="-lposix4  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
1624
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1625
#line 1626 "configure"
1626 1627 1628
#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
1629 1630 1631 1632 1633 1634 1635
    builtin and then its argument prototype would still apply.  */
char nanosleep();

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

Sam Hocevar's avatar
 
Sam Hocevar committed
1656
  
1657 1658
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1659

1660 1661 1662 1663
fi

for ac_func in usleep
do
Sam Hocevar's avatar
 
Sam Hocevar committed
1664
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1665
echo "configure:1666: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1666 1667 1668 1669
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1670
#line 1671 "configure"
1671 1672
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1673
    which can conflict with char $ac_func(); below.  */
1674 1675 1676
#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
1677 1678 1679 1680
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
1681 1682 1683 1684 1685

/* 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
1686 1687
choke me
#else
Sam Hocevar's avatar
 
Sam Hocevar committed
1688
$ac_func();
Sam Hocevar's avatar
 
Sam Hocevar committed
1689
#endif
1690

Sam Hocevar's avatar
 
Sam Hocevar committed
1691
; return 0; }
1692
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1693
if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1694 1695 1696 1697 1698 1699 1700 1701 1702 1703
  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
1704

Sam Hocevar's avatar
 
Sam Hocevar committed
1705 1706 1707 1708 1709 1710 1711 1712 1713
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
1714 1715 1716
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
1717
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1718
echo "configure:1719: checking for inet_aton" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1719 1720
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
1721
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1722
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1723
#line 1724 "configure"
1724 1725
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1726
    which can conflict with char inet_aton(); below.  */
1727 1728 1729
#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
1730 1731 1732 1733
    builtin and then its argument prototype would still apply.  */
char inet_aton();

int main() {
1734 1735 1736 1737 1738 1739 1740

/* 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
1741
inet_aton();
1742 1743
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1744 1745
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1746
if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759
  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
1760 1761
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1762
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1763

Sam Hocevar's avatar
 
Sam Hocevar committed
1764
  echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1765
echo "configure:1766: checking for inet_aton in -lresolv" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1766 1767 1768
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
1769
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1770
  ac_save_LIBS="$LIBS"
1771
LIBS="-lresolv  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
1772
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1773
#line 1774 "configure"
1774 1775 1776
#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
1777 1778 1779 1780 1781 1782 1783
    builtin and then its argument prototype would still apply.  */
char inet_aton();

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

Sam Hocevar's avatar
 
Sam Hocevar committed
1804

1805 1806
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
1807 1808
for ac_func in vasprintf
do
Sam Hocevar's avatar
 
Sam Hocevar committed
1809
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1810
echo "configure:1811: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1811 1812 1813 1814
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1815
#line 1816 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1816 1817
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1818
    which can conflict with char $ac_func(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
1819 1820 1821
#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
1822 1823 1824 1825
    builtin and then its argument prototype would still apply.  */
char $ac_func();

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

/* 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
1833
$ac_func();
Sam Hocevar's avatar
 
Sam Hocevar committed
1834 1835
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1836
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
1837
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1838
if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1839 1840 1841 1842 1843 1844 1845 1846 1847 1848
  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
1849

Sam Hocevar's avatar
 
Sam Hocevar committed
1850 1851 1852 1853 1854 1855 1856 1857 1858
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
1859 1860 1861
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
1862 1863
for ac_func in swab
do
Sam Hocevar's avatar
 
Sam Hocevar committed
1864
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1865
echo "configure:1866: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1866 1867 1868 1869
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1870
#line 1871 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
1893
if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
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 1919 1920
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
1921
echo "configure:1922: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1922 1923 1924 1925
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
Sam Hocevar's avatar
 
Sam Hocevar committed
1926
#line 1927 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1927 1928
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1929
    which can conflict with char $ac_func(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
1930 1931 1932
#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
1933 1934 1935 1936
    builtin and then its argument prototype would still apply.  */
char $ac_func();

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

/* 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
1944
$ac_func();
Sam Hocevar's avatar
 
Sam Hocevar committed
1945 1946
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
1947
; return 0; }
Sam Hocevar's avatar
 
Sam Hocevar committed
1948
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1949
if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
1950 1951 1952 1953 1954 1955 1956 1957 1958 1959
  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
1960

Sam Hocevar's avatar
 
Sam Hocevar committed
1961 1962 1963 1964 1965 1966 1967 1968 1969
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
1970 1971 1972
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
1973

Sam Hocevar's avatar
 
Sam Hocevar committed
1974
GETOPT=0
Sam Hocevar's avatar
 
Sam Hocevar committed
1975
echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
1976
echo "configure:1977: checking for getopt_long" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
1977 1978
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
1979
else
Sam Hocevar's avatar
 
Sam Hocevar committed
1980
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
1981
#line 1982 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
1982 1983
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
1984
    which can conflict with char getopt_long(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
1985 1986 1987
#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
1988 1989 1990 1991
    builtin and then its argument prototype would still apply.  */
char getopt_long();

int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
1992 1993 1994 1995 1996 1997 1998

/* 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
1999
getopt_long();
Sam Hocevar's avatar
 
Sam Hocevar committed
2000 2001
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
2002 2003
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2004
if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018
  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
2019 2020 2021 2022
#define HAVE_GETOPT_LONG 1
EOF

else
Sam Hocevar's avatar
 
Sam Hocevar committed
2023 2024 2025
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
2026
echo "configure:2027: checking for getopt_long in -lgnugetopt" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2027 2028 2029
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
2030
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2031
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2032
LIBS="-lgnugetopt  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2033
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2034
#line 2035 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2035 2036 2037
#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
2038 2039 2040 2041 2042 2043 2044
    builtin and then its argument prototype would still apply.  */
char getopt_long();

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

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2071 2072

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

for ac_func in getpagesize
do
Sam Hocevar's avatar
 
Sam Hocevar committed
2114
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2115
echo "configure:2116: checking for $ac_func" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2116 2117 2118 2119
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
Sam Hocevar's avatar
 
Sam Hocevar committed
2120
#line 2121 "configure"
2121 2122
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
2123
    which can conflict with char $ac_func(); below.  */
2124 2125 2126
#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
2127 2128 2129 2130
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
2131 2132 2133 2134 2135 2136 2137

/* 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
2138
$ac_func();
2139 2140
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
2141
; return 0; }
2142
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2143
if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2144 2145 2146 2147 2148 2149 2150 2151 2152 2153
  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
2154

Sam Hocevar's avatar
 
Sam Hocevar committed
2155 2156 2157 2158 2159 2160 2161 2162 2163
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
2164 2165 2166
fi
done

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

2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190
/* 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
2191
   VM page cache was not coherent with the filesystem buffer cache
2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203
   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>

Sam Hocevar's avatar
 
Sam Hocevar committed
2204
/* This mess was copied from the GNU getpagesize.h.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
2205
#ifndef HAVE_GETPAGESIZE
Sam Hocevar's avatar
 
Sam Hocevar committed
2206 2207 2208
# ifdef HAVE_UNISTD_H
#  include <unistd.h>
# endif
Sam Hocevar's avatar
 
Sam Hocevar committed
2209

2210
/* Assume that all systems that can run configure have sys/param.h.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
2211
# ifndef HAVE_SYS_PARAM_H
2212 2213 2214 2215 2216 2217
#  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
2218
#  ifdef HAVE_SYS_PARAM_H
2219 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
#   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
2245 2246 2247 2248 2249 2250
#ifdef __cplusplus
extern "C" { void *malloc(unsigned); }
#else
char *malloc();
#endif

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

	pagesize = getpagesize();

	/*
	 * First, make a file with some known garbage in it.
	 */
Sam Hocevar's avatar
 
Sam Hocevar committed
2263
	data = malloc(pagesize);
Sam Hocevar's avatar
 
Sam Hocevar committed
2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283
	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);
Sam Hocevar's avatar
 
Sam Hocevar committed
2284
	data2 = malloc(2 * pagesize);
Sam Hocevar's avatar
 
Sam Hocevar committed
2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301
	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;
Sam Hocevar's avatar
 
Sam Hocevar committed
2302
	data3 = malloc(pagesize);
Sam Hocevar's avatar
 
Sam Hocevar committed
2303 2304 2305 2306 2307 2308 2309 2310 2311 2312
	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);
2313
}
Sam Hocevar's avatar
 
Sam Hocevar committed
2314 2315

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

2328
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2329

Sam Hocevar's avatar
 
Sam Hocevar committed
2330 2331 2332
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
2333 2334 2335 2336 2337
#define HAVE_MMAP 1
EOF

fi

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
2378 2379

echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2380
echo "configure:2381: checking for dlopen in -ldl" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2381 2382 2383
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
2384
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2385
  ac_save_LIBS="$LIBS"
2386
LIBS="-ldl  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2387
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2388
#line 2389 "configure"
2389 2390 2391
#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
2392 2393 2394 2395 2396 2397 2398
    builtin and then its argument prototype would still apply.  */
char dlopen();

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

Sam Hocevar's avatar
 
Sam Hocevar committed
2419
echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2420
echo "configure:2421: checking for pow in -lm" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2421 2422 2423
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
2424
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2425
  ac_save_LIBS="$LIBS"
2426
LIBS="-lm  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2427
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2428
#line 2429 "configure"
2429 2430 2431
#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
2432 2433 2434 2435 2436 2437 2438
    builtin and then its argument prototype would still apply.  */
char pow();

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

Sam Hocevar's avatar
 
Sam Hocevar committed
2459

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

PTHREAD_LIBS=error
Sam Hocevar's avatar
 
Sam Hocevar committed
2464
echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2465
echo "configure:2466: checking for pthread_attr_init in -lpthread" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2466 2467 2468
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
2469
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2470
  ac_save_LIBS="$LIBS"
2471
LIBS="-lpthread  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2472
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2473
#line 2474 "configure"
2474 2475 2476
#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
2477 2478 2479 2480 2481 2482 2483
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

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

Sam Hocevar's avatar
 
Sam Hocevar committed
2504
if test "x${THREAD_LIB}" = xerror; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2505
  echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2506
echo "configure:2507: checking for pthread_attr_init in -lpthreads" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2507 2508 2509
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
2510
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2511
  ac_save_LIBS="$LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2512
LIBS="-lpthreads  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
2513
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2514
#line 2515 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2515
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
2516 2517
/* 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
2518 2519 2520 2521 2522 2523 2524
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
2587
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2588 2589
if test "x${THREAD_LIB}" = xerror; then
  THREAD_LIBS=""
Sam Hocevar's avatar
 
Sam Hocevar committed
2590
  echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
2591
echo "configure:2592: checking for pthread_attr_init" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
2592 2593
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
2594
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2595
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2596
#line 2597 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2597 2598
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
Sam Hocevar's avatar
 
Sam Hocevar committed
2599
    which can conflict with char pthread_attr_init(); below.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
2600 2601 2602
#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
2603 2604 2605 2606
    builtin and then its argument prototype would still apply.  */
char pthread_attr_init();

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

/* 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
2614
pthread_attr_init();
Sam Hocevar's avatar
 
Sam Hocevar committed
2615 2616
#endif

Sam Hocevar's avatar
 
Sam Hocevar committed
2617 2618
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2619
if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636
  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
2637 2638 2639

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
2640
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2641
#line 2642 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
2642 2643
#include "confdefs.h"
#include <pthread.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
2644
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2645 2646
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
2647 2648 2649
  rm -rf conftest*
  
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2650 2651 2652 2653 2654 2655
#define PTHREAD_COND_T_IN_PTHREAD_H 1
EOF

fi
rm -f conftest*

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

fi
rm -f conftest*
2671

Sam Hocevar's avatar
 
Sam Hocevar committed
2672 2673

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

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

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

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

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
2913 2914

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

Sam Hocevar's avatar
 
Sam Hocevar committed
2954

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

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

Sam Hocevar's avatar
 
Sam Hocevar committed
2973
 echo "$ac_t""yes" 1>&6
Christophe Massiot's avatar
Christophe Massiot committed
2974
else
Sam Hocevar's avatar
 
Sam Hocevar committed
2975 2976 2977 2978
  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
2979
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
2980
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
2981

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

int main() {

; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
2993
if { (eval echo configure:2994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
2994 2995 2996 2997 2998 2999 3000 3001 3002 3003
  rm -rf conftest*
  save_CFLAGS="${save_CFLAGS} -finline-limit=31337"; 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
3004 3005
CFLAGS="${save_CFLAGS} -bundle -undefined suppress"
echo $ac_n "checking if \$CC compiles plugins with -bundle -undefined suppress""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3006
echo "configure:3007: checking if \$CC compiles plugins with -bundle -undefined suppress" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3007
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3008
#line 3009 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3009 3010 3011 3012 3013 3014
#include "confdefs.h"

int main() {

; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3015
if { (eval echo configure:3016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027
  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
Sam Hocevar's avatar
 
Sam Hocevar committed
3028
echo "configure:3029: checking if \$CC compiles plugins with -shared" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3029
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3030
#line 3031 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3031 3032 3033 3034 3035 3036
#include "confdefs.h"

int main() {

; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3037
if { (eval echo configure:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3038 3039 3040 3041 3042 3043 3044 3045 3046 3047
  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
3048
CFLAGS="${save_CFLAGS}"
Christophe Massiot's avatar
Christophe Massiot committed
3049

Sam Hocevar's avatar
 
Sam Hocevar committed
3050
echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3051
echo "configure:3052: checking for boolean_t in sys/types.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3052
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3053
#line 3054 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3054 3055 3056
#include "confdefs.h"
#include <sys/types.h>
void quux() { boolean_t foo; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3057
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
3058

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

Sam Hocevar's avatar
 
Sam Hocevar committed
3067
 echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3068
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3069 3070 3071 3072
  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
3073
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3074 3075
rm -f conftest*
echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3076
echo "configure:3077: checking for boolean_t in pthread.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3077
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3078
#line 3079 "configure"
3079 3080 3081
#include "confdefs.h"
#include <pthread.h>
void quux() { boolean_t foo; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3082
int main() {
3083

Sam Hocevar's avatar
 
Sam Hocevar committed
3084 3085
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3086
if { (eval echo configure:3087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3087 3088
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
3089 3090 3091
#define BOOLEAN_T_IN_PTHREAD_H 1
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
3092
 echo "$ac_t""yes" 1>&6
3093
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3094 3095 3096 3097
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
3098
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3099
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3100

Sam Hocevar's avatar
 
Sam Hocevar committed
3101
echo $ac_n "checking for working const""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3102
echo "configure:3103: checking for working const" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3103 3104
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3105
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3106
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3107
#line 3108 "configure"
3108 3109
#include "confdefs.h"

Sam Hocevar's avatar
 
Sam Hocevar committed
3110 3111 3112
int main() {

/* Ultrix mips cc rejects this.  */
Sam Hocevar's avatar
 
Sam Hocevar committed
3113
typedef int charset[2]; const charset x;
Sam Hocevar's avatar
 
Sam Hocevar committed
3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148
/* 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
3149
}
Sam Hocevar's avatar
 
Sam Hocevar committed
3150 3151 3152 3153 3154 3155
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}

; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3156
if { (eval echo configure:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3157
  rm -rf conftest*
3158 3159
  ac_cv_c_const=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3160 3161 3162 3163
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_const=no
3164
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3165
rm -f conftest*
3166
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3167

Sam Hocevar's avatar
 
Sam Hocevar committed
3168 3169 3170 3171
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
3172 3173 3174 3175
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3176
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3177
echo "configure:3178: checking for ANSI C header files" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3178 3179
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3180
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3181
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3182
#line 3183 "configure"
3183 3184 3185 3186 3187
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3188 3189
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
3190
{ (eval echo configure:3191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3191 3192 3193
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
3194 3195
  ac_cv_header_stdc=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3196 3197
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
3198
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3199
  rm -rf conftest*
3200 3201
  ac_cv_header_stdc=no
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3202
rm -f conftest*
3203 3204 3205

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
3206
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3207
#line 3208 "configure"
3208 3209
#include "confdefs.h"
#include <string.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3210
EOF
3211 3212 3213 3214
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3215
  rm -rf conftest*
3216 3217 3218 3219 3220 3221 3222 3223
  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
3224
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3225
#line 3226 "configure"
3226 3227
#include "confdefs.h"
#include <stdlib.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3228
EOF
3229 3230 3231 3232
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3233
  rm -rf conftest*
3234 3235 3236 3237 3238 3239 3240 3241
  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
3242
if test "$cross_compiling" = yes; then
3243 3244
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3245
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3246
#line 3247 "configure"
3247 3248
#include "confdefs.h"
#include <ctype.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3249 3250
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Sam Hocevar's avatar
 
Sam Hocevar committed
3251
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Sam Hocevar's avatar
 
Sam Hocevar committed
3252 3253 3254 3255 3256
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3257
if { (eval echo configure:3258: \"$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
3258
then
3259 3260
  :
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3261 3262 3263 3264
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
3265
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3266
rm -fr conftest*
3267
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3268

3269 3270
fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3271

Sam Hocevar's avatar
 
Sam Hocevar committed
3272 3273 3274
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
3275 3276 3277 3278 3279
#define STDC_HEADERS 1
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3280
echo $ac_n "checking for size_t""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3281
echo "configure:3282: checking for size_t" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3282 3283
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
3284
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3285
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3286
#line 3287 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3287
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
3288 3289 3290 3291 3292 3293 3294 3295 3296
#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*
3297 3298
  ac_cv_type_size_t=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3299 3300
  rm -rf conftest*
  ac_cv_type_size_t=no
3301
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3302
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3303

Sam Hocevar's avatar
 
Sam Hocevar committed
3304 3305 3306 3307
fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
  cat >> confdefs.h <<\EOF
3308 3309 3310 3311 3312
#define size_t unsigned
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3313
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3314
echo "configure:3315: checking whether time.h and sys/time.h may both be included" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3315 3316
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
3317
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3318
  cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3319
#line 3320 "configure"
3320 3321 3322 3323
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3324
int main() {
3325
struct tm *tp;
Sam Hocevar's avatar
 
Sam Hocevar committed
3326 3327
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3328
if { (eval echo configure:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3329
  rm -rf conftest*
3330 3331
  ac_cv_header_time=yes
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3332 3333 3334 3335
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_time=no
3336
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3337
rm -f conftest*
3338
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3339

Sam Hocevar's avatar
 
Sam Hocevar committed
3340 3341 3342
echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
  cat >> confdefs.h <<\EOF
3343 3344 3345 3346 3347
#define TIME_WITH_SYS_TIME 1
EOF

fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3348

Sam Hocevar's avatar
 
Sam Hocevar committed
3349 3350
ARCH=${host_cpu}

Sam Hocevar's avatar
 
Sam Hocevar committed
3351 3352
BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
PLUGINS="${PLUGINS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
3353

Gildas Bazin's avatar
 
Gildas Bazin committed
3354 3355
MMX_MODULES="yuvmmx idctmmx motionmmx"
MMXEXT_MODULES="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
Sam Hocevar's avatar
 
Sam Hocevar committed
3356

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

Sam Hocevar's avatar
 
Sam Hocevar committed
3365 3366
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3367
if { (eval echo configure:3368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3368
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3369
  ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
Sam Hocevar's avatar
 
Sam Hocevar committed
3370
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3371
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3372 3373 3374 3375
  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
3376
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3377
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3378

Sam Hocevar's avatar
 
Sam Hocevar committed
3379
echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3380
echo "configure:3381: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3381
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3382
#line 3383 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3383 3384
#include "confdefs.h"
void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
Sam Hocevar's avatar
 
Sam Hocevar committed
3385
int main() {
Sam Hocevar's avatar
 
Sam Hocevar committed
3386

Sam Hocevar's avatar
 
Sam Hocevar committed
3387 3388
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3389
if { (eval echo configure:3390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3390
  rm -rf conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3391
  ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
Sam Hocevar's avatar
 
Sam Hocevar committed
3392
  echo "$ac_t""yes" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3393
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3394 3395 3396 3397
  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
3398
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3399
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3400

Sam Hocevar's avatar
 
Sam Hocevar committed
3401 3402 3403 3404 3405

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
Sam Hocevar's avatar
 
Sam Hocevar committed
3406
echo "configure:3407: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3407 3408 3409 3410
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3411
#line 3412 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3412 3413 3414 3415
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
3416
{ (eval echo configure:3417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436
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
 
Sam Hocevar's avatar
 
Sam Hocevar committed
3437
  CAN_BUILD_LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
3438 3439 3440 3441 3442 3443 3444

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


Sam Hocevar's avatar
 
Sam Hocevar committed
3445
for ac_hdr in sys/ioctl.h
3446
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3447 3448
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3449
echo "configure:3450: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3450 3451 3452 3453
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3454
#line 3455 "configure"
3455
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
3456 3457 3458
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
3459
{ (eval echo configure:3460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3460 3461 3462 3463 3464 3465 3466
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
3467
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3468 3469
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
3470
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3471
rm -f conftest*
3472
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3473 3474 3475 3476 3477
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
3478
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3479
 
Sam Hocevar's avatar
 
Sam Hocevar committed
3480
  CAN_BUILD_LIBDVDCSS=1
Sam Hocevar's avatar
 
Sam Hocevar committed
3481
  for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h
3482
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3483 3484
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3485
echo "configure:3486: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3486 3487 3488 3489
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3490
#line 3491 "configure"
3491
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
3492 3493 3494
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
3495
{ (eval echo configure:3496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3496 3497 3498 3499 3500 3501 3502
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
3503
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3504 3505
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
3506
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3507
rm -f conftest*
3508
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3509 3510 3511 3512 3513
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
3514
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3515 3516 3517
 
else
  echo "$ac_t""no" 1>&6
3518 3519 3520
fi
done

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

    BSD_DVD_STRUCT=1
Sam Hocevar's avatar
 
Sam Hocevar committed
3536
  
Sam Hocevar's avatar
 
Sam Hocevar committed
3537 3538 3539
fi
rm -f conftest*

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

    BSD_DVD_STRUCT=1
Sam Hocevar's avatar
 
Sam Hocevar committed
3554
  
Sam Hocevar's avatar
 
Sam Hocevar committed
3555 3556 3557 3558
fi
rm -f conftest*

  if test x$BSD_DVD_STRUCT = x1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3559
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3560 3561 3562 3563
#define HAVE_BSD_DVD_STRUCT 1
EOF

  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3564
        cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3565
#line 3566 "configure"
3566 3567
#include "confdefs.h"
#include <linux/cdrom.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
3568
EOF
3569
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Sam Hocevar's avatar
 
Sam Hocevar committed
3570
  egrep "dvd_struct" >/dev/null 2>&1; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3571 3572 3573
  rm -rf conftest*
  
    cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3574
#define DVD_STRUCT_IN_LINUX_CDROM_H 1
3575 3576
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
3577
  
3578 3579 3580
fi
rm -f conftest*

Sam Hocevar's avatar
 
Sam Hocevar committed
3581 3582 3583

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

Sam Hocevar's avatar
 
Sam Hocevar committed
3587

Sam Hocevar's avatar
 
Sam Hocevar committed
3588 3589 3590 3591 3592 3593 3594 3595 3596
case ${host_os} in
  darwin*)
    SYS=darwin
    ;;
  *)
    SYS=${host_os}
    ;;
esac

Sam Hocevar's avatar
 
Sam Hocevar committed
3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619
# 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"
Sam Hocevar's avatar
 
Sam Hocevar committed
3620
   if test x$enableval = xyes; then ARCH="${ARCH} altivec"
Sam Hocevar's avatar
 
Sam Hocevar committed
3621 3622 3623 3624 3625 3626 3627
    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 ])

Sam Hocevar's avatar
 
Sam Hocevar committed
3628
DEBUG=0
Sam Hocevar's avatar
 
Sam Hocevar committed
3629 3630 3631 3632 3633 3634 3635
# 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


Sam Hocevar's avatar
 
Sam Hocevar committed
3636
STATS=0
Sam Hocevar's avatar
 
Sam Hocevar committed
3637 3638 3639 3640 3641 3642 3643
# 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


Sam Hocevar's avatar
 
Sam Hocevar committed
3644
TRACE=0
Sam Hocevar's avatar
 
Sam Hocevar committed
3645 3646 3647 3648 3649 3650 3651
# 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


Sam Hocevar's avatar
 
Sam Hocevar committed
3652
PROFILING=0
Sam Hocevar's avatar
 
Sam Hocevar committed
3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668
# 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
3669 3670 3671 3672 3673
# 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
Sam Hocevar's avatar
 
Sam Hocevar committed
3674
echo "configure:3675: checking for pth_init in -lpth" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3675 3676 3677 3678 3679 3680 3681
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3682
#line 3683 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3683 3684 3685 3686 3687 3688 3689 3690 3691 3692
#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
Sam Hocevar's avatar
 
Sam Hocevar committed
3693
if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3694 3695 3696 3697 3698 3699 3700
  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
3701
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3702 3703
rm -f conftest*
LIBS="$ac_save_LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
3704

Sam Hocevar's avatar
 
Sam Hocevar committed
3705 3706 3707 3708 3709 3710 3711 3712
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
3713

Sam Hocevar's avatar
 
Sam Hocevar committed
3714 3715 3716 3717
  LIBS="-lpth $LIBS"

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

Sam Hocevar's avatar
 
Sam Hocevar committed
3720
    cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3721
#line 3722 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
3722 3723 3724 3725 3726 3727 3728 3729 3730 3731
#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
3732

Sam Hocevar's avatar
 
Sam Hocevar committed
3733 3734
    THREAD_LIB="-lpth"
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3735
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3736
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
3737

Sam Hocevar's avatar
 
Sam Hocevar committed
3738 3739 3740 3741 3742

fi


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

Sam Hocevar's avatar
 
Sam Hocevar committed
3744 3745 3746 3747 3748
LOCAL_LIBDVDCSS=0
STATIC_LIBDVDCSS=0
# Check whether --with-dvdcss or --without-dvdcss was given.
if test "${with_dvdcss+set}" = set; then
  withval="$with_dvdcss"
Sam Hocevar's avatar
 
Sam Hocevar committed
3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763
   case "x${withval}" in
    xlocal-static|xyes)
      # local libdvdcss, statically linked
      if test x${CAN_BUILD_LIBDVDCSS} = x1
      then
        LOCAL_LIBDVDCSS=1
        STATIC_LIBDVDCSS=1
        BUILTINS="${BUILTINS} dvd"
        CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
        LIB_DVD="${LIB_DVD} lib/libdvdcss.a"
        LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a"
      fi
    ;;
    xlocal-shared)
      # local libdvdcss, dynamically linked
Sam Hocevar's avatar
 
Sam Hocevar committed
3764 3765 3766 3767 3768 3769 3770 3771
      if test x${CAN_BUILD_LIBDVDCSS} = x1
      then
        LOCAL_LIBDVDCSS=1
        BUILTINS="${BUILTINS} dvd"
        CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
        LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
        LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
      fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3772 3773
    ;;
    *)
Sam Hocevar's avatar
 
Sam Hocevar committed
3774 3775 3776 3777 3778 3779 3780 3781 3782
      # existing libdvdcss
      BUILTINS="${BUILTINS} dvd"
      if test "x$withval" != "xyes"
      then
        LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
        CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
      fi
      LIB_DVD="${LIB_DVD} -ldvdcss"
      LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
Sam Hocevar's avatar
 
Sam Hocevar committed
3783
    esac 
Sam Hocevar's avatar
 
Sam Hocevar committed
3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798
else
  # user didn't decide, we choose to use local libdvdcss and link statically
   if test x${CAN_BUILD_LIBDVDCSS} = x1
    then
      LOCAL_LIBDVDCSS=1
      STATIC_LIBDVDCSS=1
      BUILTINS="${BUILTINS} dvd"
      CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
      LIB_DVD="${LIB_DVD} lib/libdvdcss.a"
      LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a"
    fi 
fi


CSS=0
Sam Hocevar's avatar
 
Sam Hocevar committed
3799 3800 3801
# 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
3802 3803 3804 3805
   if test x$enableval = xyes
    then
      CSS=1
    fi 
Sam Hocevar's avatar
 
Sam Hocevar committed
3806
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3807 3808 3809
   CSS=1; 
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3810 3811 3812 3813

if test x${CSS} = x1
then
  cat >> confdefs.h <<\EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3814 3815
#define HAVE_CSS 1
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3816

Sam Hocevar's avatar
 
Sam Hocevar committed
3817 3818 3819 3820 3821 3822 3823 3824
fi

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

Sam Hocevar's avatar
 
Sam Hocevar committed
3825 3826 3827 3828 3829

if test x$enable_dummy != xno
then
  BUILTINS="${BUILTINS} dummy"
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3830 3831 3832 3833 3834 3835 3836

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

Sam Hocevar's avatar
 
Sam Hocevar committed
3837 3838 3839 3840 3841

if test x$enable_null != xno
then
  BUILTINS="${BUILTINS} null"
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3842 3843 3844 3845 3846 3847 3848 3849

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


Sam Hocevar's avatar
 
Sam Hocevar committed
3850 3851 3852 3853 3854 3855 3856
if test x$enable_rc != xno
then
  BUILTINS="${BUILTINS} rc"
fi

if test x$SYS = xbeos
then
Sam Hocevar's avatar
 
Sam Hocevar committed
3857
    BUILTINS="${BUILTINS} beos"
Sam Hocevar's avatar
 
Sam Hocevar committed
3858
    LIB_BEOS="-lbe -lgame -lroot -ltracker"
Sam Hocevar's avatar
 
Sam Hocevar committed
3859
    PLCFLAGS="${PLCFLAGS} -nostart"
3860 3861 3862 3863 3864 3865

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
3866 3867
  :
fi
3868

Sam Hocevar's avatar
 
Sam Hocevar committed
3869 3870 3871 3872 3873

if test x$enable_dsp != xno
then
  if test -c /dev/dsp
  then
Sam Hocevar's avatar
 
Sam Hocevar committed
3874
    PLUGINS="${PLUGINS} dsp"
3875 3876
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3877

3878 3879 3880
# 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
3881 3882
  if test x$enable_esd = xyes
   then
Sam Hocevar's avatar
 
Sam Hocevar committed
3883 3884
     # 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
3885
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3886
echo "configure:3887: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3887 3888
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
3889
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3890 3891
  case "$ESD_CONFIG" in
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
3892 3893
  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
3894 3895 3896
  ?:/*)			 
  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
3897
  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
3898 3899 3900 3901 3902 3903 3904 3905 3906 3907
  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
3908 3909 3910 3911
  test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  ;;
esac
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3912
ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
Sam Hocevar's avatar
 
Sam Hocevar committed
3913
if test -n "$ESD_CONFIG"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3914
  echo "$ac_t""$ESD_CONFIG" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3915
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3916
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3917 3918
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3919 3920
     if test x${ESD_CONFIG} != xno
     then
Sam Hocevar's avatar
 
Sam Hocevar committed
3921
       PLUGINS="${PLUGINS} esd"
Sam Hocevar's avatar
 
Sam Hocevar committed
3922 3923
       LIB_ESD="`${ESD_CONFIG} --libs`"
     fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3924
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3925 3926
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3927

Sam Hocevar's avatar
 
Sam Hocevar committed
3928 3929 3930
# 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
3931
  if test x$enable_darwin = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
3932
     PLUGINS="${PLUGINS} darwin"
Sam Hocevar's avatar
 
Sam Hocevar committed
3933 3934
     LIB_DARWIN="-framework CoreAudio"
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3935 3936
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3937

3938 3939 3940
# 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
3941 3942
  if test x$enable_macosx = xyes
   then
Sam Hocevar's avatar
 
Sam Hocevar committed
3943
     BUILTINS="${BUILTINS} macosx"
Sam Hocevar's avatar
 
Sam Hocevar committed
3944
     LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
Sam Hocevar's avatar
 
Sam Hocevar committed
3945 3946
     LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
     LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
Sam Hocevar's avatar
 
Sam Hocevar committed
3947
   fi
3948
else
Sam Hocevar's avatar
 
Sam Hocevar committed
3949
  for ac_hdr in Carbon/Carbon.h
3950
do
Sam Hocevar's avatar
 
Sam Hocevar committed
3951 3952
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3953
echo "configure:3954: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3954 3955 3956 3957
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
Sam Hocevar's avatar
 
Sam Hocevar committed
3958
#line 3959 "configure"
3959
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
3960 3961 3962
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
3963
{ (eval echo configure:3964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
3964 3965 3966 3967 3968 3969 3970
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
3971
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
3972 3973
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
3974
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3975
rm -f conftest*
3976
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3977 3978 3979 3980 3981
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
3982
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
3983
 BUILTINS="${BUILTINS} macosx"
Sam Hocevar's avatar
 
Sam Hocevar committed
3984
     LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
Sam Hocevar's avatar
 
Sam Hocevar committed
3985 3986
     LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
     LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
Sam Hocevar's avatar
 
Sam Hocevar committed
3987 3988 3989
   
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
3990
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
3991
done
Sam Hocevar's avatar
 
Sam Hocevar committed
3992

Sam Hocevar's avatar
 
Sam Hocevar committed
3993 3994
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
3995

3996 3997 3998 3999 4000 4001
# Check whether --enable-qnx or --disable-qnx was given.
if test "${enable_qnx+set}" = set; then
  enableval="$enable_qnx"
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4002 4003
    if test x$enable_qnx != xno
    then
4004 4005 4006 4007
      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
Sam Hocevar's avatar
 
Sam Hocevar committed
4008
echo "configure:4009: checking for $ac_hdr" >&5
4009 4010 4011 4012
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
Sam Hocevar's avatar
 
Sam Hocevar committed
4013
#line 4014 "configure"
4014 4015 4016 4017
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
4018
{ (eval echo configure:4019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048
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

4049 4050 4051
# 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
4052
  if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4053 4054
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4055

Christophe Massiot's avatar
Christophe Massiot committed
4056 4057 4058
# 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
4059
   if test "x$withval" != "xno"
Christophe Massiot's avatar
Christophe Massiot committed
4060
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
4061 4062
      PLUGINS="${PLUGINS} ggi"
      if test "x$withval" != "xyes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4063 4064 4065 4066
      then
        LIB_GGI="-l"$withval
      else
        LIB_GGI="-lggi"
Sam Hocevar's avatar
 
Sam Hocevar committed
4067
      fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4068 4069 4070
    fi 
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4071

4072 4073 4074 4075 4076 4077
# Check whether --enable-sdl or --disable-sdl was given.
if test "${enable_sdl+set}" = set; then
  enableval="$enable_sdl"
  :
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4078
if test "x$withval" != "xno"
4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094
then
  cat >> confdefs.h <<\EOF
#define HAVE_SDL_SDL_H 0
EOF

  cat >> confdefs.h <<\EOF
#define HAVE_SDL11_SDL_H 0
EOF

  cat >> confdefs.h <<\EOF
#define HAVE_SDL12_SDL_H 0
EOF

  # Extract the first word of "sdl-config", so it can be a program name with args.
set dummy sdl-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4095
echo "configure:4096: checking for $ac_word" >&5
4096
if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4097 4098
  echo $ac_n "(cached) $ac_c" 1>&6
else
4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123
  case "$SDL_CONFIG" in
  /*)
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
  ;;
  *)
  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_SDL_CONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  ;;
esac
fi
SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
if test -n "$SDL_CONFIG"; then
  echo "$ac_t""$SDL_CONFIG" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4124
else
4125
  echo "$ac_t""no" 1>&6
4126
fi
4127 4128 4129 4130 4131 4132

  SDL_HEADER="SDL/SDL.h"
  if test x${SDL_CONFIG} = xno; then
    # Extract the first word of "sdl11-config", so it can be a program name with args.
set dummy sdl11-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4133
echo "configure:4134: checking for $ac_word" >&5
4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157
if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$SDL_CONFIG" in
  /*)
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
  ;;
  *)
  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_SDL_CONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  ;;
esac
4158
fi
4159 4160 4161
SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
if test -n "$SDL_CONFIG"; then
  echo "$ac_t""$SDL_CONFIG" 1>&6
4162
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4163
  echo "$ac_t""no" 1>&6
4164 4165
fi

4166 4167 4168 4169 4170 4171
    SDL_HEADER="SDL11/SDL.h"
  fi
  if test x${SDL_CONFIG} = xno; then
    # Extract the first word of "sdl12-config", so it can be a program name with args.
set dummy sdl12-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4172
echo "configure:4173: checking for $ac_word" >&5
4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202
if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$SDL_CONFIG" in
  /*)
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
  ;;
  *)
  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_SDL_CONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  ;;
esac
fi
SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
if test -n "$SDL_CONFIG"; then
  echo "$ac_t""$SDL_CONFIG" 1>&6
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4203 4204
fi

4205 4206 4207 4208
    SDL_HEADER="SDL12/SDL.h"
  fi
  if test x${SDL_CONFIG} != xno; then
    for ac_hdr in $SDL_HEADER
4209
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4210 4211
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4212
echo "configure:4213: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4213 4214 4215 4216
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
Sam Hocevar's avatar
 
Sam Hocevar committed
4217
#line 4218 "configure"
4218
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4219 4220 4221
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
4222
{ (eval echo configure:4223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4223 4224 4225 4226 4227 4228 4229
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
4230
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4231 4232
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4233
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4234
rm -f conftest*
4235
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4236 4237 4238 4239 4240
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
4241
EOF
4242
 
Sam Hocevar's avatar
 
Sam Hocevar committed
4243 4244
else
  echo "$ac_t""no" 1>&6
4245 4246 4247
echo "The development package for SDL is not installed. Please install it"
	  echo "and try again."
	  exit 
4248 4249 4250
fi
done

Sam Hocevar's avatar
 
Sam Hocevar committed
4251 4252
    if expr 1.1.5 \> $($SDL_CONFIG --version) >/dev/null
    then
4253
      echo "You need SDL version 1.1.5 or later."
4254
      exit
Sam Hocevar's avatar
 
Sam Hocevar committed
4255
    fi
4256 4257 4258
    PLUGINS="${PLUGINS} sdl"
    CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
    LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
Sam Hocevar's avatar
 
Sam Hocevar committed
4259 4260
  elif test "x$withval" =  "xyes"
  then
4261 4262 4263 4264 4265
    echo "I couldn't find the SDL package. You can download libSDL from"
    echo "http://www.libsdl.org/."
    exit
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4266

Sam Hocevar's avatar
 
Sam Hocevar committed
4267 4268 4269
# Check whether --with-directx or --without-directx was given.
if test "${with_directx+set}" = set; then
  withval="$with_directx"
Sam Hocevar's avatar
 
Sam Hocevar committed
4270
   if test "x$withval" != "xno"
Sam Hocevar's avatar
 
Sam Hocevar committed
4271
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
4272 4273
      PLUGINS="${PLUGINS} directx"
      if test "x$withval" != "xyes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4274
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
4275
        LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
Sam Hocevar's avatar
 
Sam Hocevar committed
4276 4277 4278 4279 4280 4281
        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
Sam Hocevar's avatar
 
Sam Hocevar committed
4282
echo "configure:4283: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4283 4284 4285 4286
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
Sam Hocevar's avatar
 
Sam Hocevar committed
4287
#line 4288 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4288 4289 4290 4291
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
4292
{ (eval echo configure:4293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318
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
4319
        LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
Sam Hocevar's avatar
 
Sam Hocevar committed
4320 4321 4322 4323
      fi
    fi 
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4324
    if test "x$withval" = "x"
Sam Hocevar's avatar
 
Sam Hocevar committed
4325 4326 4327 4328 4329
    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
Sam Hocevar's avatar
 
Sam Hocevar committed
4330
echo "configure:4331: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4331 4332 4333 4334
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
Sam Hocevar's avatar
 
Sam Hocevar committed
4335
#line 4336 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4336 4337 4338 4339
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
4340
{ (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360
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
4361
       LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
Sam Hocevar's avatar
 
Sam Hocevar committed
4362 4363 4364 4365 4366 4367 4368
else
  echo "$ac_t""no" 1>&6
fi
done

    fi

Christophe Massiot's avatar
Christophe Massiot committed
4369 4370 4371
# 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
4372
   if test "x$withval" != "xno"
Christophe Massiot's avatar
Christophe Massiot committed
4373
    then
Sam Hocevar's avatar
 
Sam Hocevar committed
4374 4375
      PLUGINS="${PLUGINS} glide"
      if test "x$withval" != "xyes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4376
      then
Sam Hocevar's avatar
 
Sam Hocevar committed
4377
        LIB_GLIDE="-l"$withval" -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
4378
      else
Sam Hocevar's avatar
 
Sam Hocevar committed
4379
        LIB_GLIDE="-lglide2x -lm"
Sam Hocevar's avatar
 
Sam Hocevar committed
4380
      fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4381 4382 4383
    fi 
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4384

Sam Hocevar's avatar
 
Sam Hocevar committed
4385 4386 4387
# 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
4388
  if test x$enable_ncurses = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4389
     PLUGINS="${PLUGINS} ncurses"
Sam Hocevar's avatar
 
Sam Hocevar committed
4390 4391
     LIB_NCURSES="-lncurses"
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4392 4393
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4394

Sam Hocevar's avatar
 
Sam Hocevar committed
4395 4396 4397
# 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
4398
  if test x$enable_qt = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4399 4400
     PLUGINS="${PLUGINS} qt"
     ALIASES="${ALIASES} qvlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
4401
     LIB_QT="-lqt -L${QTDIR}/lib"
Sam Hocevar's avatar
 
Sam Hocevar committed
4402
     if test -x ${QTDIR}/bin/moc
Sam Hocevar's avatar
 
Sam Hocevar committed
4403 4404 4405 4406 4407
     then
       MOC=${QTDIR}/bin/moc
     else
       MOC=moc
     fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4408
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4409 4410
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4411

4412 4413 4414
# 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
4415
  if test x$enable_kde = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4416 4417
     PLUGINS="${PLUGINS} kde"
     ALIASES="${ALIASES} kvlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
4418 4419
     LIB_KDE="-lkfile"
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4420 4421
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4422

4423 4424 4425
# 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
4426
  if test x$enable_gnome = xyes; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4427 4428
     PLUGINS="${PLUGINS} gnome"
     ALIASES="${ALIASES} gnome-vlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
4429 4430
     LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4431 4432
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4433

Sam Hocevar's avatar
 
Sam Hocevar committed
4434 4435 4436
# 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
4437 4438
  :
fi
4439

4440
if test x$enable_gtk != xno; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4441 4442
  # 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
4443
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4444
echo "configure:4445: checking for $ac_word" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4445 4446
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
4447
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4448 4449
  case "$GTK_CONFIG" in
  /*)
Sam Hocevar's avatar
 
Sam Hocevar committed
4450 4451
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
4452 4453 4454
  ?:/*)			 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  ;;
Sam Hocevar's avatar
 
Sam Hocevar committed
4455
  *)
Sam Hocevar's avatar
 
Sam Hocevar committed
4456 4457 4458 4459 4460 4461 4462 4463 4464 4465
  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
4466 4467 4468 4469
  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  ;;
esac
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4470
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
Sam Hocevar's avatar
 
Sam Hocevar committed
4471
if test -n "$GTK_CONFIG"; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4472
  echo "$ac_t""$GTK_CONFIG" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4473
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4474
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4475 4476 4477
fi

  if test x${GTK_CONFIG} != xno; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4478 4479
    PLUGINS="${PLUGINS} gtk"
    ALIASES="${ALIASES} gvlc"
Sam Hocevar's avatar
 
Sam Hocevar committed
4480 4481
    CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
    LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
4482 4483
  fi
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4484

4485 4486 4487
# 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
4488 4489
  :
fi
Henri Fallon's avatar
 
Henri Fallon committed
4490

4491
if test x$enable_x11 != xno; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4492 4493 4494 4495 4496 4497 4498 4499
  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
4500
  for ac_hdr in X11/Xlib.h
4501
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4502 4503
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4504
echo "configure:4505: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4505 4506 4507 4508
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
Sam Hocevar's avatar
 
Sam Hocevar committed
4509
#line 4510 "configure"
4510
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4511 4512 4513
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
4514
{ (eval echo configure:4515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4515 4516 4517 4518 4519 4520 4521
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
4522
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4523 4524
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
4525
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4526
rm -f conftest*
4527
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4528 4529 4530 4531 4532
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
4533
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4534
 
Sam Hocevar's avatar
 
Sam Hocevar committed
4535
    PLUGINS="${PLUGINS} x11"
Sam Hocevar's avatar
 
Sam Hocevar committed
4536 4537
    LIB_X11="-L$x_libraries -lX11 -lXext"
    CFLAGS_X11="-I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4538
  
Sam Hocevar's avatar
 
Sam Hocevar committed
4539
  CPPFLAGS=$saved_CPPFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
4540 4541
else
  echo "$ac_t""no" 1>&6
4542 4543 4544 4545
fi
done

fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4546

Sam Hocevar's avatar
 
Sam Hocevar committed
4547 4548 4549
# 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
4550 4551
  :
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4552 4553 4554 4555 4556 4557 4558 4559 4560 4561

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
4562
  for ac_hdr in X11/extensions/Xv.h
Sam Hocevar's avatar
 
Sam Hocevar committed
4563
do
Sam Hocevar's avatar
 
Sam Hocevar committed
4564 4565
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4566
echo "configure:4567: checking for $ac_hdr" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4567 4568 4569 4570
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
Sam Hocevar's avatar
 
Sam Hocevar committed
4571
#line 4572 "configure"
Sam Hocevar's avatar
 
Sam Hocevar committed
4572
#include "confdefs.h"
Sam Hocevar's avatar
 
Sam Hocevar committed
4573 4574 4575
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
4576
{ (eval echo configure:4577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4577 4578 4579 4580 4581 4582 4583
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
4584
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4585 4586
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Sam Hocevar's avatar
 
Sam Hocevar committed
4587
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4588
rm -f conftest*
Sam Hocevar's avatar
 
Sam Hocevar committed
4589
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4590 4591 4592 4593 4594
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
4595
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4596
 
Sam Hocevar's avatar
 
Sam Hocevar committed
4597 4598 4599
    PLUGINS="${PLUGINS} xvideo"
    LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
    CFLAGS_X11="-I$x_includes"
Sam Hocevar's avatar
 
Sam Hocevar committed
4600
  
Sam Hocevar's avatar
 
Sam Hocevar committed
4601
  CPPFLAGS=$saved_CPPFLAGS
Sam Hocevar's avatar
 
Sam Hocevar committed
4602 4603
else
  echo "$ac_t""no" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4604 4605
fi
done
Sam Hocevar's avatar
 
Sam Hocevar committed
4606

Sam Hocevar's avatar
 
Sam Hocevar committed
4607
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4608

Henri Fallon's avatar
 
Henri Fallon committed
4609 4610 4611
# 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
4612 4613 4614
  if test x$enable_alsa = xyes
   then
     ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
Sam Hocevar's avatar
 
Sam Hocevar committed
4615
echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
Sam Hocevar's avatar
 
Sam Hocevar committed
4616
echo "configure:4617: checking for sys/asoundlib.h" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4617 4618 4619 4620
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
Sam Hocevar's avatar
 
Sam Hocevar committed
4621
#line 4622 "configure"
Henri Fallon's avatar
 
Henri Fallon committed
4622 4623
#include "confdefs.h"
#include <sys/asoundlib.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
4624 4625
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Sam Hocevar's avatar
 
Sam Hocevar committed
4626
{ (eval echo configure:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Sam Hocevar's avatar
 
Sam Hocevar committed
4627 4628 4629 4630 4631 4632 4633
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
4634
  cat conftest.$ac_ext >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4635 4636
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Henri Fallon's avatar
 
Henri Fallon committed
4637
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4638
rm -f conftest*
Henri Fallon's avatar
 
Henri Fallon committed
4639
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4640 4641 4642
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
Sam Hocevar's avatar
 
Sam Hocevar committed
4643
echo "configure:4644: checking for main in -lasound" >&5
Sam Hocevar's avatar
 
Sam Hocevar committed
4644 4645 4646
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
4647
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4648
  ac_save_LIBS="$LIBS"
Henri Fallon's avatar
 
Henri Fallon committed
4649
LIBS="-lasound  $LIBS"
Sam Hocevar's avatar
 
Sam Hocevar committed
4650
cat > conftest.$ac_ext <<EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4651
#line 4652 "configure"
Henri Fallon's avatar
 
Henri Fallon committed
4652 4653
#include "confdefs.h"

Sam Hocevar's avatar
 
Sam Hocevar committed
4654 4655 4656 4657
int main() {
main()
; return 0; }
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4658
if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Sam Hocevar's avatar
 
Sam Hocevar committed
4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672
  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
4673 4674
  have_alsa="true"
else
Sam Hocevar's avatar
 
Sam Hocevar committed
4675 4676
  echo "$ac_t""no" 1>&6
have_alsa="false"
Henri Fallon's avatar
 
Henri Fallon committed
4677 4678 4679
fi

else
Sam Hocevar's avatar
 
Sam Hocevar committed
4680 4681
  echo "$ac_t""no" 1>&6
have_alsa="false"
Henri Fallon's avatar
 
Henri Fallon committed
4682
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4683 4684 4685 4686 4687 4688 4689

     if test x$have_alsa = xtrue
     then
       PLUGINS="${PLUGINS} alsa"
       LIB_ALSA="-lasound"
     fi
   fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4690 4691
fi

Sam Hocevar's avatar
 
Sam Hocevar committed
4692

4693 4694 4695 4696 4697 4698 4699
fi






Henri Fallon's avatar
 
Henri Fallon committed
4700 4701 4702



Christophe Massiot's avatar
Christophe Massiot committed
4703 4704 4705



Sam Hocevar's avatar
 
Sam Hocevar committed
4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719














Sam Hocevar's avatar
 
Sam Hocevar committed
4720

Sam Hocevar's avatar
 
Sam Hocevar committed
4721

Sam Hocevar's avatar
 
Sam Hocevar committed
4722 4723 4724 4725




Sam Hocevar's avatar
 
Sam Hocevar committed
4726

Sam Hocevar's avatar
 
Sam Hocevar committed
4727 4728


4729

Sam Hocevar's avatar
 
Sam Hocevar committed
4730

Sam Hocevar's avatar
 
Sam Hocevar committed
4731

Sam Hocevar's avatar
 
Sam Hocevar committed
4732

Sam Hocevar's avatar
 
Sam Hocevar committed
4733

Sam Hocevar's avatar
 
Sam Hocevar committed
4734

Sam Hocevar's avatar
 
Sam Hocevar committed
4735 4736 4737



Sam Hocevar's avatar
 
Sam Hocevar committed
4738

Sam Hocevar's avatar
 
Sam Hocevar committed
4739

Sam Hocevar's avatar
 
Sam Hocevar committed
4740

Sam Hocevar's avatar
 
Sam Hocevar committed
4741

Sam Hocevar's avatar
 
Sam Hocevar committed
4742

Sam Hocevar's avatar
 
Sam Hocevar committed
4743 4744


4745

4746

Sam Hocevar's avatar
 
Sam Hocevar committed
4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792

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
4793
fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4794
rm -f confcache
4795

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

Sam Hocevar's avatar
 
Sam Hocevar committed
4798 4799 4800
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4801

Sam Hocevar's avatar
 
Sam Hocevar committed
4802 4803 4804 4805 4806 4807 4808 4809 4810 4811
# 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
4812

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

Sam Hocevar's avatar
 
Sam Hocevar committed
4816 4817 4818 4819 4820 4821 4822 4823
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`:
4824
#
Sam Hocevar's avatar
 
Sam Hocevar committed
4825
# $0 $ac_configure_args
4826
#
Sam Hocevar's avatar
 
Sam Hocevar committed
4827 4828
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
4829

Sam Hocevar's avatar
 
Sam Hocevar committed
4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847
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
4848

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

Sam Hocevar's avatar
 
Sam Hocevar committed
4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886
# 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
4887
s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4888 4889 4890 4891 4892 4893 4894 4895 4896
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%@ESD_CONFIG@%$ESD_CONFIG%g
4897
s%@SDL_CONFIG@%$SDL_CONFIG%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4898 4899 4900 4901 4902 4903 4904 4905 4906 4907
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
4908
s%@ASM@%$ASM%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4909
s%@TRACE@%$TRACE%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4910
s%@PROFILING@%$PROFILING%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4911
s%@OPTIMS@%$OPTIMS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4912
s%@GETOPT@%$GETOPT%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4913 4914
s%@CSS@%$CSS%g
s%@MOC@%$MOC%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4915
s%@WINDRES@%$WINDRES%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4916
s%@LCFLAGS@%$LCFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4917
s%@PLCFLAGS@%$PLCFLAGS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4918 4919 4920 4921
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
4922
s%@LIB_DVD@%$LIB_DVD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4923
s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4924 4925 4926 4927 4928 4929
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
4930
s%@LIB_KDE@%$LIB_KDE%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4931
s%@LIB_MACOSX@%$LIB_MACOSX%g
4932
s%@LIB_QNX@%$LIB_QNX%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4933 4934 4935 4936
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
4937
s%@LIB_DIRECTX@%$LIB_DIRECTX%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4938 4939 4940 4941
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
4942
s%@CFLAGS_DVD@%$CFLAGS_DVD%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4943
s%@CFLAGS_GTK@%$CFLAGS_GTK%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4944
s%@CFLAGS_SDL@%$CFLAGS_SDL%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4945
s%@CFLAGS_X11@%$CFLAGS_X11%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4946
s%@LOCAL_LIBDVDCSS@%$LOCAL_LIBDVDCSS%g
Sam Hocevar's avatar
 
Sam Hocevar committed
4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972

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
4973
    else
Sam Hocevar's avatar
 
Sam Hocevar committed
4974
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4975
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4976 4977 4978
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4979
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
4980 4981 4982 4983 4984
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF
4985

Sam Hocevar's avatar
 
Sam Hocevar committed
4986 4987 4988
cat >> $CONFIG_STATUS <<EOF

CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
4989
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
4990 4991
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4992
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Sam Hocevar's avatar
 
Sam Hocevar committed
4993 4994 4995 4996
  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" ;;
4997 4998
  esac

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

Sam Hocevar's avatar
 
Sam Hocevar committed
5001 5002 5003 5004 5005 5006
  # 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%^\./%%'`"
5007
    # A "../" for each directory in $ac_dir_suffix.
Sam Hocevar's avatar
 
Sam Hocevar committed
5008
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5009 5010 5011 5012
  else
    ac_dir_suffix= ac_dots=
  fi

Sam Hocevar's avatar
 
Sam Hocevar committed
5013 5014 5015 5016 5017
  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" ;;
5018
  *) # Relative path.
Sam Hocevar's avatar
 
Sam Hocevar committed
5019 5020
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
5021 5022
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
5023 5024 5025
  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5026 5027
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
5028 5029 5030 5031 5032 5033 5034 5035
  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
5036

Sam Hocevar's avatar
 
Sam Hocevar committed
5037 5038 5039 5040 5041 5042 5043 5044 5045
  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*
5046 5047 5048 5049 5050

# 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
5051 5052 5053 5054 5055 5056 5057
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'
5058
ac_uC=' '
Sam Hocevar's avatar
 
Sam Hocevar committed
5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073
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
5074
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Sam Hocevar's avatar
 
Sam Hocevar committed
5075 5076 5077 5078
  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" ;;
5079 5080
  esac

Sam Hocevar's avatar
 
Sam Hocevar committed
5081 5082 5083 5084 5085
  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
5086 5087 5088

EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099
# 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
5100
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5101 5102
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
5103 5104 5105 5106

# 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
5107 5108
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5109 5110
EOF

Sam Hocevar's avatar
 
Sam Hocevar committed
5111 5112
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
5113 5114

rm -f conftest.tail
Sam Hocevar's avatar
 
Sam Hocevar committed
5115
while :
5116
do
Sam Hocevar's avatar
 
Sam Hocevar committed
5117 5118 5119 5120 5121 5122
  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
5123
  echo 'CEOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5124 5125 5126 5127 5128 5129 5130
  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
5131
done
Sam Hocevar's avatar
 
Sam Hocevar committed
5132 5133 5134 5135 5136 5137 5138 5139 5140 5141
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
5142
  else
Sam Hocevar's avatar
 
Sam Hocevar committed
5143 5144
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5145
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
Sam Hocevar's avatar
 
Sam Hocevar committed
5146 5147
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
5148
    fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5149 5150
    rm -f $ac_file
    mv conftest.h $ac_file
5151
  fi
Sam Hocevar's avatar
 
Sam Hocevar committed
5152 5153
fi; done

5154
EOF
Sam Hocevar's avatar
 
Sam Hocevar committed
5155
cat >> $CONFIG_STATUS <<EOF
5156

Sam Hocevar's avatar
 
Sam Hocevar committed
5157 5158
EOF
cat >> $CONFIG_STATUS <<\EOF
5159

Sam Hocevar's avatar
 
Sam Hocevar committed
5160
exit 0
5161 5162
EOF
chmod +x $CONFIG_STATUS
Sam Hocevar's avatar
 
Sam Hocevar committed
5163 5164 5165
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1

5166

5167
echo "
Sam Hocevar's avatar
 
Sam Hocevar committed
5168 5169 5170 5171 5172 5173
global configuration
--------------------
system                : ${SYS}
architecture          : ${ARCH}
optimizations         : ${OPTIMS}

5174 5175 5176
vlc configuration
-----------------
vlc version           : ${VLC_VERSION}
5177 5178
debug mode            : ${DEBUG}
statistics            : ${STATS}
5179
trace mode            : ${TRACE}
Sam Hocevar's avatar
 
Sam Hocevar committed
5180
profiling             : ${PROFILING}
Sam Hocevar's avatar
 
Sam Hocevar committed
5181
need builtin getopt   : ${GETOPT}
Sam Hocevar's avatar
 
Sam Hocevar committed
5182
built-in modules      :${BUILTINS}
Sam Hocevar's avatar
 
Sam Hocevar committed
5183
plugin modules        :${PLUGINS}
Sam Hocevar's avatar
 
Sam Hocevar committed
5184
vlc aliases           :${ALIASES}
Sam Hocevar's avatar
 
Sam Hocevar committed
5185

Sam Hocevar's avatar
 
Sam Hocevar committed
5186 5187
libdvdcss configuration
-----------------------
Sam Hocevar's avatar
 
Sam Hocevar committed
5188
need to be built      : ${LOCAL_LIBDVDCSS}"
Sam Hocevar's avatar
 
Sam Hocevar committed
5189

Sam Hocevar's avatar
 
Sam Hocevar committed
5190 5191 5192 5193 5194 5195 5196
if test x${LOCAL_LIBDVDCSS} = x1
then
  echo "link statically       : ${STATIC_LIBDVDCSS}
CSS decryption        : ${CSS}"
fi

echo "
Sam Hocevar's avatar
 
Sam Hocevar committed
5197 5198
You may now tune Makefile.opts at your convenience. To build vlc, type
\`make vlc'. To build libdvdcss only, type \`make libdvdcss'."
5199