configure
author Sam Lantinga <slouken@lokigames.com>
Tue, 23 Nov 1999 05:25:15 +0000
changeset 20 ef0f22476bc5
parent 6 cb0e8db1f996
child 24 a25bb2d59ce8
permissions -rwxr-xr-x
Updated for SDL 1.0
slouken@0
     1
#! /bin/sh
slouken@0
     2
slouken@0
     3
# Guess values for system-dependent variables and create Makefiles.
slouken@0
     4
# Generated automatically using autoconf version 2.13 
slouken@0
     5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
slouken@0
     6
#
slouken@0
     7
# This configure script is free software; the Free Software Foundation
slouken@0
     8
# gives unlimited permission to copy, distribute and modify it.
slouken@0
     9
slouken@0
    10
# Defaults:
slouken@0
    11
ac_help=
slouken@0
    12
ac_default_prefix=/usr/local
slouken@0
    13
# Any additions from configure.in:
slouken@0
    14
ac_help="$ac_help
slouken@0
    15
  --enable-shared[=PKGS]  build shared libraries [default=yes]"
slouken@0
    16
ac_help="$ac_help
slouken@0
    17
  --enable-static[=PKGS]  build static libraries [default=yes]"
slouken@0
    18
ac_help="$ac_help
slouken@0
    19
  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
slouken@0
    20
ac_help="$ac_help
slouken@0
    21
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
slouken@0
    22
ac_help="$ac_help
slouken@0
    23
  --disable-libtool-lock  avoid locking (might break parallel builds)"
slouken@0
    24
ac_help="$ac_help
slouken@0
    25
  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
slouken@0
    26
ac_help="$ac_help
slouken@0
    27
  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)"
slouken@0
    28
ac_help="$ac_help
slouken@0
    29
  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
slouken@0
    30
ac_help="$ac_help
slouken@0
    31
  --disable-sdltest       Do not try to compile and run a test SDL program"
slouken@0
    32
ac_help="$ac_help
slouken@0
    33
  --enable-music-cmd      support an external music player [default=yes]"
slouken@0
    34
ac_help="$ac_help
slouken@0
    35
  --enable-music-wave     enable streaming WAVE music [default=yes]"
slouken@0
    36
ac_help="$ac_help
slouken@1
    37
  --enable-music-mod      enable MOD music via mikmod [default=yes]"
slouken@1
    38
ac_help="$ac_help
slouken@0
    39
  --enable-music-midi     enable MIDI music via timidity [default=yes]"
slouken@0
    40
ac_help="$ac_help
slouken@0
    41
  --enable-music-mp3      enable MP3 music via smpeg [default=yes]"
slouken@0
    42
slouken@0
    43
# Initialize some variables set by options.
slouken@0
    44
# The variables have the same names as the options, with
slouken@0
    45
# dashes changed to underlines.
slouken@0
    46
build=NONE
slouken@0
    47
cache_file=./config.cache
slouken@0
    48
exec_prefix=NONE
slouken@0
    49
host=NONE
slouken@0
    50
no_create=
slouken@0
    51
nonopt=NONE
slouken@0
    52
no_recursion=
slouken@0
    53
prefix=NONE
slouken@0
    54
program_prefix=NONE
slouken@0
    55
program_suffix=NONE
slouken@0
    56
program_transform_name=s,x,x,
slouken@0
    57
silent=
slouken@0
    58
site=
slouken@0
    59
srcdir=
slouken@0
    60
target=NONE
slouken@0
    61
verbose=
slouken@0
    62
x_includes=NONE
slouken@0
    63
x_libraries=NONE
slouken@0
    64
bindir='${exec_prefix}/bin'
slouken@0
    65
sbindir='${exec_prefix}/sbin'
slouken@0
    66
libexecdir='${exec_prefix}/libexec'
slouken@0
    67
datadir='${prefix}/share'
slouken@0
    68
sysconfdir='${prefix}/etc'
slouken@0
    69
sharedstatedir='${prefix}/com'
slouken@0
    70
localstatedir='${prefix}/var'
slouken@0
    71
libdir='${exec_prefix}/lib'
slouken@0
    72
includedir='${prefix}/include'
slouken@0
    73
oldincludedir='/usr/include'
slouken@0
    74
infodir='${prefix}/info'
slouken@0
    75
mandir='${prefix}/man'
slouken@0
    76
slouken@0
    77
# Initialize some other variables.
slouken@0
    78
subdirs=
slouken@0
    79
MFLAGS= MAKEFLAGS=
slouken@0
    80
SHELL=${CONFIG_SHELL-/bin/sh}
slouken@0
    81
# Maximum number of lines to put in a shell here document.
slouken@0
    82
ac_max_here_lines=12
slouken@0
    83
slouken@0
    84
ac_prev=
slouken@0
    85
for ac_option
slouken@0
    86
do
slouken@0
    87
slouken@0
    88
  # If the previous option needs an argument, assign it.
slouken@0
    89
  if test -n "$ac_prev"; then
slouken@0
    90
    eval "$ac_prev=\$ac_option"
slouken@0
    91
    ac_prev=
slouken@0
    92
    continue
slouken@0
    93
  fi
slouken@0
    94
slouken@0
    95
  case "$ac_option" in
slouken@0
    96
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
slouken@0
    97
  *) ac_optarg= ;;
slouken@0
    98
  esac
slouken@0
    99
slouken@0
   100
  # Accept the important Cygnus configure options, so we can diagnose typos.
slouken@0
   101
slouken@0
   102
  case "$ac_option" in
slouken@0
   103
slouken@0
   104
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
slouken@0
   105
    ac_prev=bindir ;;
slouken@0
   106
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
slouken@0
   107
    bindir="$ac_optarg" ;;
slouken@0
   108
slouken@0
   109
  -build | --build | --buil | --bui | --bu)
slouken@0
   110
    ac_prev=build ;;
slouken@0
   111
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
slouken@0
   112
    build="$ac_optarg" ;;
slouken@0
   113
slouken@0
   114
  -cache-file | --cache-file | --cache-fil | --cache-fi \
slouken@0
   115
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
slouken@0
   116
    ac_prev=cache_file ;;
slouken@0
   117
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
slouken@0
   118
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
slouken@0
   119
    cache_file="$ac_optarg" ;;
slouken@0
   120
slouken@0
   121
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
slouken@0
   122
    ac_prev=datadir ;;
slouken@0
   123
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
slouken@0
   124
  | --da=*)
slouken@0
   125
    datadir="$ac_optarg" ;;
slouken@0
   126
slouken@0
   127
  -disable-* | --disable-*)
slouken@0
   128
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
slouken@0
   129
    # Reject names that are not valid shell variable names.
slouken@0
   130
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
slouken@0
   131
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
slouken@0
   132
    fi
slouken@0
   133
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
slouken@0
   134
    eval "enable_${ac_feature}=no" ;;
slouken@0
   135
slouken@0
   136
  -enable-* | --enable-*)
slouken@0
   137
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
slouken@0
   138
    # Reject names that are not valid shell variable names.
slouken@0
   139
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
slouken@0
   140
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
slouken@0
   141
    fi
slouken@0
   142
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
slouken@0
   143
    case "$ac_option" in
slouken@0
   144
      *=*) ;;
slouken@0
   145
      *) ac_optarg=yes ;;
slouken@0
   146
    esac
slouken@0
   147
    eval "enable_${ac_feature}='$ac_optarg'" ;;
slouken@0
   148
slouken@0
   149
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
slouken@0
   150
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
slouken@0
   151
  | --exec | --exe | --ex)
slouken@0
   152
    ac_prev=exec_prefix ;;
slouken@0
   153
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
slouken@0
   154
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
slouken@0
   155
  | --exec=* | --exe=* | --ex=*)
slouken@0
   156
    exec_prefix="$ac_optarg" ;;
slouken@0
   157
slouken@0
   158
  -gas | --gas | --ga | --g)
slouken@0
   159
    # Obsolete; use --with-gas.
slouken@0
   160
    with_gas=yes ;;
slouken@0
   161
slouken@0
   162
  -help | --help | --hel | --he)
slouken@0
   163
    # Omit some internal or obsolete options to make the list less imposing.
slouken@0
   164
    # This message is too long to be a string in the A/UX 3.1 sh.
slouken@0
   165
    cat << EOF
slouken@0
   166
Usage: configure [options] [host]
slouken@0
   167
Options: [defaults in brackets after descriptions]
slouken@0
   168
Configuration:
slouken@0
   169
  --cache-file=FILE       cache test results in FILE
slouken@0
   170
  --help                  print this message
slouken@0
   171
  --no-create             do not create output files
slouken@0
   172
  --quiet, --silent       do not print \`checking...' messages
slouken@0
   173
  --version               print the version of autoconf that created configure
slouken@0
   174
Directory and file names:
slouken@0
   175
  --prefix=PREFIX         install architecture-independent files in PREFIX
slouken@0
   176
                          [$ac_default_prefix]
slouken@0
   177
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
slouken@0
   178
                          [same as prefix]
slouken@0
   179
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
slouken@0
   180
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
slouken@0
   181
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
slouken@0
   182
  --datadir=DIR           read-only architecture-independent data in DIR
slouken@0
   183
                          [PREFIX/share]
slouken@0
   184
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
slouken@0
   185
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
slouken@0
   186
                          [PREFIX/com]
slouken@0
   187
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
slouken@0
   188
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
slouken@0
   189
  --includedir=DIR        C header files in DIR [PREFIX/include]
slouken@0
   190
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
slouken@0
   191
  --infodir=DIR           info documentation in DIR [PREFIX/info]
slouken@0
   192
  --mandir=DIR            man documentation in DIR [PREFIX/man]
slouken@0
   193
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
slouken@0
   194
  --program-prefix=PREFIX prepend PREFIX to installed program names
slouken@0
   195
  --program-suffix=SUFFIX append SUFFIX to installed program names
slouken@0
   196
  --program-transform-name=PROGRAM
slouken@0
   197
                          run sed PROGRAM on installed program names
slouken@0
   198
EOF
slouken@0
   199
    cat << EOF
slouken@0
   200
Host type:
slouken@0
   201
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
slouken@0
   202
  --host=HOST             configure for HOST [guessed]
slouken@0
   203
  --target=TARGET         configure for TARGET [TARGET=HOST]
slouken@0
   204
Features and packages:
slouken@0
   205
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
slouken@0
   206
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
slouken@0
   207
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
slouken@0
   208
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
slouken@0
   209
  --x-includes=DIR        X include files are in DIR
slouken@0
   210
  --x-libraries=DIR       X library files are in DIR
slouken@0
   211
EOF
slouken@0
   212
    if test -n "$ac_help"; then
slouken@0
   213
      echo "--enable and --with options recognized:$ac_help"
slouken@0
   214
    fi
slouken@0
   215
    exit 0 ;;
slouken@0
   216
slouken@0
   217
  -host | --host | --hos | --ho)
slouken@0
   218
    ac_prev=host ;;
slouken@0
   219
  -host=* | --host=* | --hos=* | --ho=*)
slouken@0
   220
    host="$ac_optarg" ;;
slouken@0
   221
slouken@0
   222
  -includedir | --includedir | --includedi | --included | --include \
slouken@0
   223
  | --includ | --inclu | --incl | --inc)
slouken@0
   224
    ac_prev=includedir ;;
slouken@0
   225
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
slouken@0
   226
  | --includ=* | --inclu=* | --incl=* | --inc=*)
slouken@0
   227
    includedir="$ac_optarg" ;;
slouken@0
   228
slouken@0
   229
  -infodir | --infodir | --infodi | --infod | --info | --inf)
slouken@0
   230
    ac_prev=infodir ;;
slouken@0
   231
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
slouken@0
   232
    infodir="$ac_optarg" ;;
slouken@0
   233
slouken@0
   234
  -libdir | --libdir | --libdi | --libd)
slouken@0
   235
    ac_prev=libdir ;;
slouken@0
   236
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
slouken@0
   237
    libdir="$ac_optarg" ;;
slouken@0
   238
slouken@0
   239
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
slouken@0
   240
  | --libexe | --libex | --libe)
slouken@0
   241
    ac_prev=libexecdir ;;
slouken@0
   242
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
slouken@0
   243
  | --libexe=* | --libex=* | --libe=*)
slouken@0
   244
    libexecdir="$ac_optarg" ;;
slouken@0
   245
slouken@0
   246
  -localstatedir | --localstatedir | --localstatedi | --localstated \
slouken@0
   247
  | --localstate | --localstat | --localsta | --localst \
slouken@0
   248
  | --locals | --local | --loca | --loc | --lo)
slouken@0
   249
    ac_prev=localstatedir ;;
slouken@0
   250
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
slouken@0
   251
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
slouken@0
   252
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
slouken@0
   253
    localstatedir="$ac_optarg" ;;
slouken@0
   254
slouken@0
   255
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
slouken@0
   256
    ac_prev=mandir ;;
slouken@0
   257
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
slouken@0
   258
    mandir="$ac_optarg" ;;
slouken@0
   259
slouken@0
   260
  -nfp | --nfp | --nf)
slouken@0
   261
    # Obsolete; use --without-fp.
slouken@0
   262
    with_fp=no ;;
slouken@0
   263
slouken@0
   264
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
slouken@0
   265
  | --no-cr | --no-c)
slouken@0
   266
    no_create=yes ;;
slouken@0
   267
slouken@0
   268
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
slouken@0
   269
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
slouken@0
   270
    no_recursion=yes ;;
slouken@0
   271
slouken@0
   272
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
slouken@0
   273
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
slouken@0
   274
  | --oldin | --oldi | --old | --ol | --o)
slouken@0
   275
    ac_prev=oldincludedir ;;
slouken@0
   276
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
slouken@0
   277
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
slouken@0
   278
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
slouken@0
   279
    oldincludedir="$ac_optarg" ;;
slouken@0
   280
slouken@0
   281
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
slouken@0
   282
    ac_prev=prefix ;;
slouken@0
   283
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
slouken@0
   284
    prefix="$ac_optarg" ;;
slouken@0
   285
slouken@0
   286
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
slouken@0
   287
  | --program-pre | --program-pr | --program-p)
slouken@0
   288
    ac_prev=program_prefix ;;
slouken@0
   289
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
slouken@0
   290
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
slouken@0
   291
    program_prefix="$ac_optarg" ;;
slouken@0
   292
slouken@0
   293
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
slouken@0
   294
  | --program-suf | --program-su | --program-s)
slouken@0
   295
    ac_prev=program_suffix ;;
slouken@0
   296
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
slouken@0
   297
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
slouken@0
   298
    program_suffix="$ac_optarg" ;;
slouken@0
   299
slouken@0
   300
  -program-transform-name | --program-transform-name \
slouken@0
   301
  | --program-transform-nam | --program-transform-na \
slouken@0
   302
  | --program-transform-n | --program-transform- \
slouken@0
   303
  | --program-transform | --program-transfor \
slouken@0
   304
  | --program-transfo | --program-transf \
slouken@0
   305
  | --program-trans | --program-tran \
slouken@0
   306
  | --progr-tra | --program-tr | --program-t)
slouken@0
   307
    ac_prev=program_transform_name ;;
slouken@0
   308
  -program-transform-name=* | --program-transform-name=* \
slouken@0
   309
  | --program-transform-nam=* | --program-transform-na=* \
slouken@0
   310
  | --program-transform-n=* | --program-transform-=* \
slouken@0
   311
  | --program-transform=* | --program-transfor=* \
slouken@0
   312
  | --program-transfo=* | --program-transf=* \
slouken@0
   313
  | --program-trans=* | --program-tran=* \
slouken@0
   314
  | --progr-tra=* | --program-tr=* | --program-t=*)
slouken@0
   315
    program_transform_name="$ac_optarg" ;;
slouken@0
   316
slouken@0
   317
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
slouken@0
   318
  | -silent | --silent | --silen | --sile | --sil)
slouken@0
   319
    silent=yes ;;
slouken@0
   320
slouken@0
   321
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
slouken@0
   322
    ac_prev=sbindir ;;
slouken@0
   323
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
slouken@0
   324
  | --sbi=* | --sb=*)
slouken@0
   325
    sbindir="$ac_optarg" ;;
slouken@0
   326
slouken@0
   327
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
slouken@0
   328
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
slouken@0
   329
  | --sharedst | --shareds | --shared | --share | --shar \
slouken@0
   330
  | --sha | --sh)
slouken@0
   331
    ac_prev=sharedstatedir ;;
slouken@0
   332
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
slouken@0
   333
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
slouken@0
   334
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
slouken@0
   335
  | --sha=* | --sh=*)
slouken@0
   336
    sharedstatedir="$ac_optarg" ;;
slouken@0
   337
slouken@0
   338
  -site | --site | --sit)
slouken@0
   339
    ac_prev=site ;;
slouken@0
   340
  -site=* | --site=* | --sit=*)
slouken@0
   341
    site="$ac_optarg" ;;
slouken@0
   342
slouken@0
   343
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
slouken@0
   344
    ac_prev=srcdir ;;
slouken@0
   345
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
slouken@0
   346
    srcdir="$ac_optarg" ;;
slouken@0
   347
slouken@0
   348
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
slouken@0
   349
  | --syscon | --sysco | --sysc | --sys | --sy)
slouken@0
   350
    ac_prev=sysconfdir ;;
slouken@0
   351
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
slouken@0
   352
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
slouken@0
   353
    sysconfdir="$ac_optarg" ;;
slouken@0
   354
slouken@0
   355
  -target | --target | --targe | --targ | --tar | --ta | --t)
slouken@0
   356
    ac_prev=target ;;
slouken@0
   357
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
slouken@0
   358
    target="$ac_optarg" ;;
slouken@0
   359
slouken@0
   360
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
slouken@0
   361
    verbose=yes ;;
slouken@0
   362
slouken@0
   363
  -version | --version | --versio | --versi | --vers)
slouken@0
   364
    echo "configure generated by autoconf version 2.13"
slouken@0
   365
    exit 0 ;;
slouken@0
   366
slouken@0
   367
  -with-* | --with-*)
slouken@0
   368
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
slouken@0
   369
    # Reject names that are not valid shell variable names.
slouken@0
   370
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
slouken@0
   371
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
slouken@0
   372
    fi
slouken@0
   373
    ac_package=`echo $ac_package| sed 's/-/_/g'`
slouken@0
   374
    case "$ac_option" in
slouken@0
   375
      *=*) ;;
slouken@0
   376
      *) ac_optarg=yes ;;
slouken@0
   377
    esac
slouken@0
   378
    eval "with_${ac_package}='$ac_optarg'" ;;
slouken@0
   379
slouken@0
   380
  -without-* | --without-*)
slouken@0
   381
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
slouken@0
   382
    # Reject names that are not valid shell variable names.
slouken@0
   383
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
slouken@0
   384
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
slouken@0
   385
    fi
slouken@0
   386
    ac_package=`echo $ac_package| sed 's/-/_/g'`
slouken@0
   387
    eval "with_${ac_package}=no" ;;
slouken@0
   388
slouken@0
   389
  --x)
slouken@0
   390
    # Obsolete; use --with-x.
slouken@0
   391
    with_x=yes ;;
slouken@0
   392
slouken@0
   393
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
slouken@0
   394
  | --x-incl | --x-inc | --x-in | --x-i)
slouken@0
   395
    ac_prev=x_includes ;;
slouken@0
   396
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
slouken@0
   397
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
slouken@0
   398
    x_includes="$ac_optarg" ;;
slouken@0
   399
slouken@0
   400
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
slouken@0
   401
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
slouken@0
   402
    ac_prev=x_libraries ;;
slouken@0
   403
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
slouken@0
   404
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
slouken@0
   405
    x_libraries="$ac_optarg" ;;
slouken@0
   406
slouken@0
   407
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
slouken@0
   408
    ;;
slouken@0
   409
slouken@0
   410
  *)
slouken@0
   411
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
slouken@0
   412
      echo "configure: warning: $ac_option: invalid host type" 1>&2
slouken@0
   413
    fi
slouken@0
   414
    if test "x$nonopt" != xNONE; then
slouken@0
   415
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
slouken@0
   416
    fi
slouken@0
   417
    nonopt="$ac_option"
slouken@0
   418
    ;;
slouken@0
   419
slouken@0
   420
  esac
slouken@0
   421
done
slouken@0
   422
slouken@0
   423
if test -n "$ac_prev"; then
slouken@0
   424
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
slouken@0
   425
fi
slouken@0
   426
slouken@0
   427
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
slouken@0
   428
slouken@0
   429
# File descriptor usage:
slouken@0
   430
# 0 standard input
slouken@0
   431
# 1 file creation
slouken@0
   432
# 2 errors and warnings
slouken@0
   433
# 3 some systems may open it to /dev/tty
slouken@0
   434
# 4 used on the Kubota Titan
slouken@0
   435
# 6 checking for... messages and results
slouken@0
   436
# 5 compiler messages saved in config.log
slouken@0
   437
if test "$silent" = yes; then
slouken@0
   438
  exec 6>/dev/null
slouken@0
   439
else
slouken@0
   440
  exec 6>&1
slouken@0
   441
fi
slouken@0
   442
exec 5>./config.log
slouken@0
   443
slouken@0
   444
echo "\
slouken@0
   445
This file contains any messages produced by compilers while
slouken@0
   446
running configure, to aid debugging if configure makes a mistake.
slouken@0
   447
" 1>&5
slouken@0
   448
slouken@0
   449
# Strip out --no-create and --no-recursion so they do not pile up.
slouken@0
   450
# Also quote any args containing shell metacharacters.
slouken@0
   451
ac_configure_args=
slouken@0
   452
for ac_arg
slouken@0
   453
do
slouken@0
   454
  case "$ac_arg" in
slouken@0
   455
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
slouken@0
   456
  | --no-cr | --no-c) ;;
slouken@0
   457
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
slouken@0
   458
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
slouken@0
   459
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
slouken@0
   460
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
slouken@0
   461
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
slouken@0
   462
  esac
slouken@0
   463
done
slouken@0
   464
slouken@0
   465
# NLS nuisances.
slouken@0
   466
# Only set these to C if already set.  These must not be set unconditionally
slouken@0
   467
# because not all systems understand e.g. LANG=C (notably SCO).
slouken@0
   468
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
slouken@0
   469
# Non-C LC_CTYPE values break the ctype check.
slouken@0
   470
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
slouken@0
   471
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
slouken@0
   472
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
slouken@0
   473
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
slouken@0
   474
slouken@0
   475
# confdefs.h avoids OS command line length limits that DEFS can exceed.
slouken@0
   476
rm -rf conftest* confdefs.h
slouken@0
   477
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
slouken@0
   478
echo > confdefs.h
slouken@0
   479
slouken@0
   480
# A filename unique to this package, relative to the directory that
slouken@0
   481
# configure is in, which we can look for to find out if srcdir is correct.
slouken@0
   482
ac_unique_file=README
slouken@0
   483
slouken@0
   484
# Find the source files, if location was not specified.
slouken@0
   485
if test -z "$srcdir"; then
slouken@0
   486
  ac_srcdir_defaulted=yes
slouken@0
   487
  # Try the directory containing this script, then its parent.
slouken@0
   488
  ac_prog=$0
slouken@0
   489
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
slouken@0
   490
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
slouken@0
   491
  srcdir=$ac_confdir
slouken@0
   492
  if test ! -r $srcdir/$ac_unique_file; then
slouken@0
   493
    srcdir=..
slouken@0
   494
  fi
slouken@0
   495
else
slouken@0
   496
  ac_srcdir_defaulted=no
slouken@0
   497
fi
slouken@0
   498
if test ! -r $srcdir/$ac_unique_file; then
slouken@0
   499
  if test "$ac_srcdir_defaulted" = yes; then
slouken@0
   500
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
slouken@0
   501
  else
slouken@0
   502
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
slouken@0
   503
  fi
slouken@0
   504
fi
slouken@0
   505
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
slouken@0
   506
slouken@0
   507
# Prefer explicitly selected file to automatically selected ones.
slouken@0
   508
if test -z "$CONFIG_SITE"; then
slouken@0
   509
  if test "x$prefix" != xNONE; then
slouken@0
   510
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
slouken@0
   511
  else
slouken@0
   512
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
slouken@0
   513
  fi
slouken@0
   514
fi
slouken@0
   515
for ac_site_file in $CONFIG_SITE; do
slouken@0
   516
  if test -r "$ac_site_file"; then
slouken@0
   517
    echo "loading site script $ac_site_file"
slouken@0
   518
    . "$ac_site_file"
slouken@0
   519
  fi
slouken@0
   520
done
slouken@0
   521
slouken@0
   522
if test -r "$cache_file"; then
slouken@0
   523
  echo "loading cache $cache_file"
slouken@0
   524
  . $cache_file
slouken@0
   525
else
slouken@0
   526
  echo "creating cache $cache_file"
slouken@0
   527
  > $cache_file
slouken@0
   528
fi
slouken@0
   529
slouken@0
   530
ac_ext=c
slouken@0
   531
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
slouken@0
   532
ac_cpp='$CPP $CPPFLAGS'
slouken@0
   533
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
slouken@0
   534
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
slouken@0
   535
cross_compiling=$ac_cv_prog_cc_cross
slouken@0
   536
slouken@0
   537
ac_exeext=
slouken@0
   538
ac_objext=o
slouken@0
   539
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
slouken@0
   540
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
slouken@0
   541
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
slouken@0
   542
    ac_n= ac_c='
slouken@0
   543
' ac_t='	'
slouken@0
   544
  else
slouken@0
   545
    ac_n=-n ac_c= ac_t=
slouken@0
   546
  fi
slouken@0
   547
else
slouken@0
   548
  ac_n= ac_c='\c' ac_t=
slouken@0
   549
fi
slouken@0
   550
slouken@0
   551
slouken@0
   552
slouken@0
   553
slouken@0
   554
# Making releases:
slouken@0
   555
#   MICRO_VERSION += 1;
slouken@0
   556
#   INTERFACE_AGE += 1;
slouken@0
   557
#   BINARY_AGE += 1;
slouken@0
   558
# if any functions have been added, set INTERFACE_AGE to 0.
slouken@0
   559
# if backwards compatibility has been broken,
slouken@0
   560
# set BINARY_AGE and INTERFACE_AGE to 0.
slouken@0
   561
slouken@0
   562
MAJOR_VERSION=1
slouken@0
   563
MINOR_VERSION=0
slouken@0
   564
MICRO_VERSION=0
slouken@0
   565
INTERFACE_AGE=0
slouken@0
   566
BINARY_AGE=0
slouken@0
   567
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
slouken@0
   568
slouken@0
   569
slouken@0
   570
slouken@0
   571
slouken@0
   572
slouken@0
   573
slouken@0
   574
slouken@0
   575
slouken@0
   576
# libtool versioning
slouken@0
   577
LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
slouken@0
   578
LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
slouken@0
   579
LT_REVISION=$INTERFACE_AGE
slouken@0
   580
LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
slouken@0
   581
slouken@0
   582
slouken@0
   583
slouken@0
   584
slouken@0
   585
slouken@0
   586
slouken@0
   587
ac_aux_dir=
slouken@0
   588
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
slouken@0
   589
  if test -f $ac_dir/install-sh; then
slouken@0
   590
    ac_aux_dir=$ac_dir
slouken@0
   591
    ac_install_sh="$ac_aux_dir/install-sh -c"
slouken@0
   592
    break
slouken@0
   593
  elif test -f $ac_dir/install.sh; then
slouken@0
   594
    ac_aux_dir=$ac_dir
slouken@0
   595
    ac_install_sh="$ac_aux_dir/install.sh -c"
slouken@0
   596
    break
slouken@0
   597
  fi
slouken@0
   598
done
slouken@0
   599
if test -z "$ac_aux_dir"; then
slouken@0
   600
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
slouken@0
   601
fi
slouken@0
   602
ac_config_guess=$ac_aux_dir/config.guess
slouken@0
   603
ac_config_sub=$ac_aux_dir/config.sub
slouken@0
   604
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
slouken@0
   605
slouken@0
   606
# Find a good install program.  We prefer a C program (faster),
slouken@0
   607
# so one script is as good as another.  But avoid the broken or
slouken@0
   608
# incompatible versions:
slouken@0
   609
# SysV /etc/install, /usr/sbin/install
slouken@0
   610
# SunOS /usr/etc/install
slouken@0
   611
# IRIX /sbin/install
slouken@0
   612
# AIX /bin/install
slouken@0
   613
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
slouken@0
   614
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
slouken@0
   615
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
slouken@0
   616
# ./install, which can be erroneously created by make from ./install.sh.
slouken@0
   617
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
slouken@0
   618
echo "configure:619: checking for a BSD compatible install" >&5
slouken@0
   619
if test -z "$INSTALL"; then
slouken@0
   620
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
slouken@0
   621
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   622
else
slouken@0
   623
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
slouken@0
   624
  for ac_dir in $PATH; do
slouken@0
   625
    # Account for people who put trailing slashes in PATH elements.
slouken@0
   626
    case "$ac_dir/" in
slouken@0
   627
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
slouken@0
   628
    *)
slouken@0
   629
      # OSF1 and SCO ODT 3.0 have their own names for install.
slouken@0
   630
      # Don't use installbsd from OSF since it installs stuff as root
slouken@0
   631
      # by default.
slouken@0
   632
      for ac_prog in ginstall scoinst install; do
slouken@0
   633
        if test -f $ac_dir/$ac_prog; then
slouken@0
   634
	  if test $ac_prog = install &&
slouken@0
   635
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
slouken@0
   636
	    # AIX install.  It has an incompatible calling convention.
slouken@0
   637
	    :
slouken@0
   638
	  else
slouken@0
   639
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
slouken@0
   640
	    break 2
slouken@0
   641
	  fi
slouken@0
   642
	fi
slouken@0
   643
      done
slouken@0
   644
      ;;
slouken@0
   645
    esac
slouken@0
   646
  done
slouken@0
   647
  IFS="$ac_save_IFS"
slouken@0
   648
slouken@0
   649
fi
slouken@0
   650
  if test "${ac_cv_path_install+set}" = set; then
slouken@0
   651
    INSTALL="$ac_cv_path_install"
slouken@0
   652
  else
slouken@0
   653
    # As a last resort, use the slow shell script.  We don't cache a
slouken@0
   654
    # path for INSTALL within a source directory, because that will
slouken@0
   655
    # break other packages using the cache if that directory is
slouken@0
   656
    # removed, or if the path is relative.
slouken@0
   657
    INSTALL="$ac_install_sh"
slouken@0
   658
  fi
slouken@0
   659
fi
slouken@0
   660
echo "$ac_t""$INSTALL" 1>&6
slouken@0
   661
slouken@0
   662
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
slouken@0
   663
# It thinks the first close brace ends the variable substitution.
slouken@0
   664
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
slouken@0
   665
slouken@0
   666
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
slouken@0
   667
slouken@0
   668
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
slouken@0
   669
slouken@0
   670
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
slouken@0
   671
echo "configure:672: checking whether build environment is sane" >&5
slouken@0
   672
# Just in case
slouken@0
   673
sleep 1
slouken@0
   674
echo timestamp > conftestfile
slouken@0
   675
# Do `set' in a subshell so we don't clobber the current shell's
slouken@0
   676
# arguments.  Must try -L first in case configure is actually a
slouken@0
   677
# symlink; some systems play weird games with the mod time of symlinks
slouken@0
   678
# (eg FreeBSD returns the mod time of the symlink's containing
slouken@0
   679
# directory).
slouken@0
   680
if (
slouken@0
   681
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
slouken@0
   682
   if test "$*" = "X"; then
slouken@0
   683
      # -L didn't work.
slouken@0
   684
      set X `ls -t $srcdir/configure conftestfile`
slouken@0
   685
   fi
slouken@0
   686
   if test "$*" != "X $srcdir/configure conftestfile" \
slouken@0
   687
      && test "$*" != "X conftestfile $srcdir/configure"; then
slouken@0
   688
slouken@0
   689
      # If neither matched, then we have a broken ls.  This can happen
slouken@0
   690
      # if, for instance, CONFIG_SHELL is bash and it inherits a
slouken@0
   691
      # broken ls alias from the environment.  This has actually
slouken@0
   692
      # happened.  Such a system could not be considered "sane".
slouken@0
   693
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
slouken@0
   694
alias in your environment" 1>&2; exit 1; }
slouken@0
   695
   fi
slouken@0
   696
slouken@0
   697
   test "$2" = conftestfile
slouken@0
   698
   )
slouken@0
   699
then
slouken@0
   700
   # Ok.
slouken@0
   701
   :
slouken@0
   702
else
slouken@0
   703
   { echo "configure: error: newly created file is older than distributed files!
slouken@0
   704
Check your system clock" 1>&2; exit 1; }
slouken@0
   705
fi
slouken@0
   706
rm -f conftest*
slouken@0
   707
echo "$ac_t""yes" 1>&6
slouken@0
   708
if test "$program_transform_name" = s,x,x,; then
slouken@0
   709
  program_transform_name=
slouken@0
   710
else
slouken@0
   711
  # Double any \ or $.  echo might interpret backslashes.
slouken@0
   712
  cat <<\EOF_SED > conftestsed
slouken@0
   713
s,\\,\\\\,g; s,\$,$$,g
slouken@0
   714
EOF_SED
slouken@0
   715
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
slouken@0
   716
  rm -f conftestsed
slouken@0
   717
fi
slouken@0
   718
test "$program_prefix" != NONE &&
slouken@0
   719
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
slouken@0
   720
# Use a double $ so make ignores it.
slouken@0
   721
test "$program_suffix" != NONE &&
slouken@0
   722
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
slouken@0
   723
slouken@0
   724
# sed with no file args requires a program.
slouken@0
   725
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
slouken@0
   726
slouken@0
   727
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
slouken@0
   728
echo "configure:729: checking whether ${MAKE-make} sets \${MAKE}" >&5
slouken@0
   729
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
slouken@0
   730
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
slouken@0
   731
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   732
else
slouken@0
   733
  cat > conftestmake <<\EOF
slouken@0
   734
all:
slouken@0
   735
	@echo 'ac_maketemp="${MAKE}"'
slouken@0
   736
EOF
slouken@0
   737
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
slouken@0
   738
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
slouken@0
   739
if test -n "$ac_maketemp"; then
slouken@0
   740
  eval ac_cv_prog_make_${ac_make}_set=yes
slouken@0
   741
else
slouken@0
   742
  eval ac_cv_prog_make_${ac_make}_set=no
slouken@0
   743
fi
slouken@0
   744
rm -f conftestmake
slouken@0
   745
fi
slouken@0
   746
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
slouken@0
   747
  echo "$ac_t""yes" 1>&6
slouken@0
   748
  SET_MAKE=
slouken@0
   749
else
slouken@0
   750
  echo "$ac_t""no" 1>&6
slouken@0
   751
  SET_MAKE="MAKE=${MAKE-make}"
slouken@0
   752
fi
slouken@0
   753
slouken@0
   754
slouken@0
   755
PACKAGE=mixer
slouken@0
   756
slouken@0
   757
VERSION=$VERSION
slouken@0
   758
slouken@0
   759
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
slouken@0
   760
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
slouken@0
   761
fi
slouken@0
   762
cat >> confdefs.h <<EOF
slouken@0
   763
#define PACKAGE "$PACKAGE"
slouken@0
   764
EOF
slouken@0
   765
slouken@0
   766
cat >> confdefs.h <<EOF
slouken@0
   767
#define VERSION "$VERSION"
slouken@0
   768
EOF
slouken@0
   769
slouken@0
   770
slouken@0
   771
slouken@0
   772
missing_dir=`cd $ac_aux_dir && pwd`
slouken@0
   773
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
slouken@20
   774
echo "configure:775: checking for working aclocal" >&5
slouken@0
   775
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   776
# an executable is not found, even if stderr is redirected.
slouken@0
   777
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   778
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   779
   ACLOCAL=aclocal
slouken@0
   780
   echo "$ac_t""found" 1>&6
slouken@0
   781
else
slouken@0
   782
   ACLOCAL="$missing_dir/missing aclocal"
slouken@0
   783
   echo "$ac_t""missing" 1>&6
slouken@0
   784
fi
slouken@0
   785
slouken@0
   786
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
slouken@20
   787
echo "configure:788: checking for working autoconf" >&5
slouken@0
   788
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   789
# an executable is not found, even if stderr is redirected.
slouken@0
   790
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   791
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   792
   AUTOCONF=autoconf
slouken@0
   793
   echo "$ac_t""found" 1>&6
slouken@0
   794
else
slouken@0
   795
   AUTOCONF="$missing_dir/missing autoconf"
slouken@0
   796
   echo "$ac_t""missing" 1>&6
slouken@0
   797
fi
slouken@0
   798
slouken@0
   799
echo $ac_n "checking for working automake""... $ac_c" 1>&6
slouken@20
   800
echo "configure:801: checking for working automake" >&5
slouken@0
   801
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   802
# an executable is not found, even if stderr is redirected.
slouken@0
   803
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   804
if (automake --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   805
   AUTOMAKE=automake
slouken@0
   806
   echo "$ac_t""found" 1>&6
slouken@0
   807
else
slouken@0
   808
   AUTOMAKE="$missing_dir/missing automake"
slouken@0
   809
   echo "$ac_t""missing" 1>&6
slouken@0
   810
fi
slouken@0
   811
slouken@0
   812
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
slouken@20
   813
echo "configure:814: checking for working autoheader" >&5
slouken@0
   814
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   815
# an executable is not found, even if stderr is redirected.
slouken@0
   816
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   817
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   818
   AUTOHEADER=autoheader
slouken@0
   819
   echo "$ac_t""found" 1>&6
slouken@0
   820
else
slouken@0
   821
   AUTOHEADER="$missing_dir/missing autoheader"
slouken@0
   822
   echo "$ac_t""missing" 1>&6
slouken@0
   823
fi
slouken@0
   824
slouken@0
   825
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
slouken@20
   826
echo "configure:827: checking for working makeinfo" >&5
slouken@0
   827
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   828
# an executable is not found, even if stderr is redirected.
slouken@0
   829
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   830
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   831
   MAKEINFO=makeinfo
slouken@0
   832
   echo "$ac_t""found" 1>&6
slouken@0
   833
else
slouken@0
   834
   MAKEINFO="$missing_dir/missing makeinfo"
slouken@0
   835
   echo "$ac_t""missing" 1>&6
slouken@0
   836
fi
slouken@0
   837
slouken@0
   838
slouken@0
   839
slouken@0
   840
slouken@0
   841
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
slouken@20
   842
echo "configure:843: checking whether ${MAKE-make} sets \${MAKE}" >&5
slouken@0
   843
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
slouken@0
   844
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
slouken@0
   845
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   846
else
slouken@0
   847
  cat > conftestmake <<\EOF
slouken@0
   848
all:
slouken@0
   849
	@echo 'ac_maketemp="${MAKE}"'
slouken@0
   850
EOF
slouken@0
   851
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
slouken@0
   852
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
slouken@0
   853
if test -n "$ac_maketemp"; then
slouken@0
   854
  eval ac_cv_prog_make_${ac_make}_set=yes
slouken@0
   855
else
slouken@0
   856
  eval ac_cv_prog_make_${ac_make}_set=no
slouken@0
   857
fi
slouken@0
   858
rm -f conftestmake
slouken@0
   859
fi
slouken@0
   860
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
slouken@0
   861
  echo "$ac_t""yes" 1>&6
slouken@0
   862
  SET_MAKE=
slouken@0
   863
else
slouken@0
   864
  echo "$ac_t""no" 1>&6
slouken@0
   865
  SET_MAKE="MAKE=${MAKE-make}"
slouken@0
   866
fi
slouken@0
   867
slouken@0
   868
# Extract the first word of "gcc", so it can be a program name with args.
slouken@0
   869
set dummy gcc; ac_word=$2
slouken@0
   870
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@20
   871
echo "configure:872: checking for $ac_word" >&5
slouken@0
   872
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
slouken@0
   873
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   874
else
slouken@0
   875
  if test -n "$CC"; then
slouken@0
   876
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@0
   877
else
slouken@0
   878
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
   879
  ac_dummy="$PATH"
slouken@0
   880
  for ac_dir in $ac_dummy; do
slouken@0
   881
    test -z "$ac_dir" && ac_dir=.
slouken@0
   882
    if test -f $ac_dir/$ac_word; then
slouken@0
   883
      ac_cv_prog_CC="gcc"
slouken@0
   884
      break
slouken@0
   885
    fi
slouken@0
   886
  done
slouken@0
   887
  IFS="$ac_save_ifs"
slouken@0
   888
fi
slouken@0
   889
fi
slouken@0
   890
CC="$ac_cv_prog_CC"
slouken@0
   891
if test -n "$CC"; then
slouken@0
   892
  echo "$ac_t""$CC" 1>&6
slouken@0
   893
else
slouken@0
   894
  echo "$ac_t""no" 1>&6
slouken@0
   895
fi
slouken@0
   896
slouken@0
   897
if test -z "$CC"; then
slouken@0
   898
  # Extract the first word of "cc", so it can be a program name with args.
slouken@0
   899
set dummy cc; ac_word=$2
slouken@0
   900
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@20
   901
echo "configure:902: checking for $ac_word" >&5
slouken@0
   902
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
slouken@0
   903
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   904
else
slouken@0
   905
  if test -n "$CC"; then
slouken@0
   906
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@0
   907
else
slouken@0
   908
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
   909
  ac_prog_rejected=no
slouken@0
   910
  ac_dummy="$PATH"
slouken@0
   911
  for ac_dir in $ac_dummy; do
slouken@0
   912
    test -z "$ac_dir" && ac_dir=.
slouken@0
   913
    if test -f $ac_dir/$ac_word; then
slouken@0
   914
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
slouken@0
   915
        ac_prog_rejected=yes
slouken@0
   916
	continue
slouken@0
   917
      fi
slouken@0
   918
      ac_cv_prog_CC="cc"
slouken@0
   919
      break
slouken@0
   920
    fi
slouken@0
   921
  done
slouken@0
   922
  IFS="$ac_save_ifs"
slouken@0
   923
if test $ac_prog_rejected = yes; then
slouken@0
   924
  # We found a bogon in the path, so make sure we never use it.
slouken@0
   925
  set dummy $ac_cv_prog_CC
slouken@0
   926
  shift
slouken@0
   927
  if test $# -gt 0; then
slouken@0
   928
    # We chose a different compiler from the bogus one.
slouken@0
   929
    # However, it has the same basename, so the bogon will be chosen
slouken@0
   930
    # first if we set CC to just the basename; use the full file name.
slouken@0
   931
    shift
slouken@0
   932
    set dummy "$ac_dir/$ac_word" "$@"
slouken@0
   933
    shift
slouken@0
   934
    ac_cv_prog_CC="$@"
slouken@0
   935
  fi
slouken@0
   936
fi
slouken@0
   937
fi
slouken@0
   938
fi
slouken@0
   939
CC="$ac_cv_prog_CC"
slouken@0
   940
if test -n "$CC"; then
slouken@0
   941
  echo "$ac_t""$CC" 1>&6
slouken@0
   942
else
slouken@0
   943
  echo "$ac_t""no" 1>&6
slouken@0
   944
fi
slouken@0
   945
slouken@0
   946
  if test -z "$CC"; then
slouken@0
   947
    case "`uname -s`" in
slouken@0
   948
    *win32* | *WIN32*)
slouken@0
   949
      # Extract the first word of "cl", so it can be a program name with args.
slouken@0
   950
set dummy cl; ac_word=$2
slouken@0
   951
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@20
   952
echo "configure:953: checking for $ac_word" >&5
slouken@0
   953
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
slouken@0
   954
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   955
else
slouken@0
   956
  if test -n "$CC"; then
slouken@0
   957
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@0
   958
else
slouken@0
   959
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
   960
  ac_dummy="$PATH"
slouken@0
   961
  for ac_dir in $ac_dummy; do
slouken@0
   962
    test -z "$ac_dir" && ac_dir=.
slouken@0
   963
    if test -f $ac_dir/$ac_word; then
slouken@0
   964
      ac_cv_prog_CC="cl"
slouken@0
   965
      break
slouken@0
   966
    fi
slouken@0
   967
  done
slouken@0
   968
  IFS="$ac_save_ifs"
slouken@0
   969
fi
slouken@0
   970
fi
slouken@0
   971
CC="$ac_cv_prog_CC"
slouken@0
   972
if test -n "$CC"; then
slouken@0
   973
  echo "$ac_t""$CC" 1>&6
slouken@0
   974
else
slouken@0
   975
  echo "$ac_t""no" 1>&6
slouken@0
   976
fi
slouken@0
   977
 ;;
slouken@0
   978
    esac
slouken@0
   979
  fi
slouken@0
   980
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
slouken@0
   981
fi
slouken@0
   982
slouken@0
   983
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
slouken@20
   984
echo "configure:985: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
slouken@0
   985
slouken@0
   986
ac_ext=c
slouken@0
   987
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
slouken@0
   988
ac_cpp='$CPP $CPPFLAGS'
slouken@0
   989
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
slouken@0
   990
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
slouken@0
   991
cross_compiling=$ac_cv_prog_cc_cross
slouken@0
   992
slouken@0
   993
cat > conftest.$ac_ext << EOF
slouken@0
   994
slouken@20
   995
#line 996 "configure"
slouken@0
   996
#include "confdefs.h"
slouken@0
   997
slouken@0
   998
main(){return(0);}
slouken@0
   999
EOF
slouken@20
  1000
if { (eval echo configure:1001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  1001
  ac_cv_prog_cc_works=yes
slouken@0
  1002
  # If we can't run a trivial program, we are probably using a cross compiler.
slouken@0
  1003
  if (./conftest; exit) 2>/dev/null; then
slouken@0
  1004
    ac_cv_prog_cc_cross=no
slouken@0
  1005
  else
slouken@0
  1006
    ac_cv_prog_cc_cross=yes
slouken@0
  1007
  fi
slouken@0
  1008
else
slouken@0
  1009
  echo "configure: failed program was:" >&5
slouken@0
  1010
  cat conftest.$ac_ext >&5
slouken@0
  1011
  ac_cv_prog_cc_works=no
slouken@0
  1012
fi
slouken@0
  1013
rm -fr conftest*
slouken@0
  1014
ac_ext=c
slouken@0
  1015
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
slouken@0
  1016
ac_cpp='$CPP $CPPFLAGS'
slouken@0
  1017
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
slouken@0
  1018
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
slouken@0
  1019
cross_compiling=$ac_cv_prog_cc_cross
slouken@0
  1020
slouken@0
  1021
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
slouken@0
  1022
if test $ac_cv_prog_cc_works = no; then
slouken@0
  1023
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
slouken@0
  1024
fi
slouken@0
  1025
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
slouken@20
  1026
echo "configure:1027: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
slouken@0
  1027
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
slouken@0
  1028
cross_compiling=$ac_cv_prog_cc_cross
slouken@0
  1029
slouken@0
  1030
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
slouken@20
  1031
echo "configure:1032: checking whether we are using GNU C" >&5
slouken@0
  1032
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
slouken@0
  1033
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1034
else
slouken@0
  1035
  cat > conftest.c <<EOF
slouken@0
  1036
#ifdef __GNUC__
slouken@0
  1037
  yes;
slouken@0
  1038
#endif
slouken@0
  1039
EOF
slouken@20
  1040
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
slouken@0
  1041
  ac_cv_prog_gcc=yes
slouken@0
  1042
else
slouken@0
  1043
  ac_cv_prog_gcc=no
slouken@0
  1044
fi
slouken@0
  1045
fi
slouken@0
  1046
slouken@0
  1047
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
slouken@0
  1048
slouken@0
  1049
if test $ac_cv_prog_gcc = yes; then
slouken@0
  1050
  GCC=yes
slouken@0
  1051
else
slouken@0
  1052
  GCC=
slouken@0
  1053
fi
slouken@0
  1054
slouken@0
  1055
ac_test_CFLAGS="${CFLAGS+set}"
slouken@0
  1056
ac_save_CFLAGS="$CFLAGS"
slouken@0
  1057
CFLAGS=
slouken@0
  1058
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
slouken@20
  1059
echo "configure:1060: checking whether ${CC-cc} accepts -g" >&5
slouken@0
  1060
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
slouken@0
  1061
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1062
else
slouken@0
  1063
  echo 'void f(){}' > conftest.c
slouken@0
  1064
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
slouken@0
  1065
  ac_cv_prog_cc_g=yes
slouken@0
  1066
else
slouken@0
  1067
  ac_cv_prog_cc_g=no
slouken@0
  1068
fi
slouken@0
  1069
rm -f conftest*
slouken@0
  1070
slouken@0
  1071
fi
slouken@0
  1072
slouken@0
  1073
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
slouken@0
  1074
if test "$ac_test_CFLAGS" = set; then
slouken@0
  1075
  CFLAGS="$ac_save_CFLAGS"
slouken@0
  1076
elif test $ac_cv_prog_cc_g = yes; then
slouken@0
  1077
  if test "$GCC" = yes; then
slouken@0
  1078
    CFLAGS="-g -O2"
slouken@0
  1079
  else
slouken@0
  1080
    CFLAGS="-g"
slouken@0
  1081
  fi
slouken@0
  1082
else
slouken@0
  1083
  if test "$GCC" = yes; then
slouken@0
  1084
    CFLAGS="-O2"
slouken@0
  1085
  else
slouken@0
  1086
    CFLAGS=
slouken@0
  1087
  fi
slouken@0
  1088
fi
slouken@0
  1089
slouken@0
  1090
# Check whether --enable-shared or --disable-shared was given.
slouken@0
  1091
if test "${enable_shared+set}" = set; then
slouken@0
  1092
  enableval="$enable_shared"
slouken@0
  1093
  p=${PACKAGE-default}
slouken@0
  1094
case "$enableval" in
slouken@0
  1095
yes) enable_shared=yes ;;
slouken@0
  1096
no) enable_shared=no ;;
slouken@0
  1097
*)
slouken@0
  1098
  enable_shared=no
slouken@0
  1099
  # Look at the argument we got.  We use all the common list separators.
slouken@0
  1100
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
slouken@0
  1101
  for pkg in $enableval; do
slouken@0
  1102
    if test "X$pkg" = "X$p"; then
slouken@0
  1103
      enable_shared=yes
slouken@0
  1104
    fi
slouken@0
  1105
  done
slouken@0
  1106
  IFS="$ac_save_ifs"
slouken@0
  1107
  ;;
slouken@0
  1108
esac
slouken@0
  1109
else
slouken@0
  1110
  enable_shared=yes
slouken@0
  1111
fi
slouken@0
  1112
slouken@0
  1113
# Check whether --enable-static or --disable-static was given.
slouken@0
  1114
if test "${enable_static+set}" = set; then
slouken@0
  1115
  enableval="$enable_static"
slouken@0
  1116
  p=${PACKAGE-default}
slouken@0
  1117
case "$enableval" in
slouken@0
  1118
yes) enable_static=yes ;;
slouken@0
  1119
no) enable_static=no ;;
slouken@0
  1120
*)
slouken@0
  1121
  enable_static=no
slouken@0
  1122
  # Look at the argument we got.  We use all the common list separators.
slouken@0
  1123
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
slouken@0
  1124
  for pkg in $enableval; do
slouken@0
  1125
    if test "X$pkg" = "X$p"; then
slouken@0
  1126
      enable_static=yes
slouken@0
  1127
    fi
slouken@0
  1128
  done
slouken@0
  1129
  IFS="$ac_save_ifs"
slouken@0
  1130
  ;;
slouken@0
  1131
esac
slouken@0
  1132
else
slouken@0
  1133
  enable_static=yes
slouken@0
  1134
fi
slouken@0
  1135
slouken@0
  1136
# Check whether --enable-fast-install or --disable-fast-install was given.
slouken@0
  1137
if test "${enable_fast_install+set}" = set; then
slouken@0
  1138
  enableval="$enable_fast_install"
slouken@0
  1139
  p=${PACKAGE-default}
slouken@0
  1140
case "$enableval" in
slouken@0
  1141
yes) enable_fast_install=yes ;;
slouken@0
  1142
no) enable_fast_install=no ;;
slouken@0
  1143
*)
slouken@0
  1144
  enable_fast_install=no
slouken@0
  1145
  # Look at the argument we got.  We use all the common list separators.
slouken@0
  1146
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
slouken@0
  1147
  for pkg in $enableval; do
slouken@0
  1148
    if test "X$pkg" = "X$p"; then
slouken@0
  1149
      enable_fast_install=yes
slouken@0
  1150
    fi
slouken@0
  1151
  done
slouken@0
  1152
  IFS="$ac_save_ifs"
slouken@0
  1153
  ;;
slouken@0
  1154
esac
slouken@0
  1155
else
slouken@0
  1156
  enable_fast_install=yes
slouken@0
  1157
fi
slouken@0
  1158
slouken@0
  1159
slouken@0
  1160
# Make sure we can run config.sub.
slouken@0
  1161
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
slouken@0
  1162
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
slouken@0
  1163
fi
slouken@0
  1164
slouken@0
  1165
echo $ac_n "checking host system type""... $ac_c" 1>&6
slouken@20
  1166
echo "configure:1167: checking host system type" >&5
slouken@0
  1167
slouken@0
  1168
host_alias=$host
slouken@0
  1169
case "$host_alias" in
slouken@0
  1170
NONE)
slouken@0
  1171
  case $nonopt in
slouken@0
  1172
  NONE)
slouken@0
  1173
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
slouken@0
  1174
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
slouken@0
  1175
    fi ;;
slouken@0
  1176
  *) host_alias=$nonopt ;;
slouken@0
  1177
  esac ;;
slouken@0
  1178
esac
slouken@0
  1179
slouken@0
  1180
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
slouken@0
  1181
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
slouken@0
  1182
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
slouken@0
  1183
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
slouken@0
  1184
echo "$ac_t""$host" 1>&6
slouken@0
  1185
slouken@0
  1186
echo $ac_n "checking build system type""... $ac_c" 1>&6
slouken@20
  1187
echo "configure:1188: checking build system type" >&5
slouken@0
  1188
slouken@0
  1189
build_alias=$build
slouken@0
  1190
case "$build_alias" in
slouken@0
  1191
NONE)
slouken@0
  1192
  case $nonopt in
slouken@0
  1193
  NONE) build_alias=$host_alias ;;
slouken@0
  1194
  *) build_alias=$nonopt ;;
slouken@0
  1195
  esac ;;
slouken@0
  1196
esac
slouken@0
  1197
slouken@0
  1198
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
slouken@0
  1199
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
slouken@0
  1200
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
slouken@0
  1201
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
slouken@0
  1202
echo "$ac_t""$build" 1>&6
slouken@0
  1203
slouken@0
  1204
# Check whether --with-gnu-ld or --without-gnu-ld was given.
slouken@0
  1205
if test "${with_gnu_ld+set}" = set; then
slouken@0
  1206
  withval="$with_gnu_ld"
slouken@0
  1207
  test "$withval" = no || with_gnu_ld=yes
slouken@0
  1208
else
slouken@0
  1209
  with_gnu_ld=no
slouken@0
  1210
fi
slouken@0
  1211
slouken@0
  1212
ac_prog=ld
slouken@0
  1213
if test "$ac_cv_prog_gcc" = yes; then
slouken@0
  1214
  # Check if gcc -print-prog-name=ld gives a path.
slouken@0
  1215
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
slouken@20
  1216
echo "configure:1217: checking for ld used by GCC" >&5
slouken@0
  1217
  case $host in
slouken@0
  1218
  *-*-mingw*)
slouken@0
  1219
    # gcc leaves a trailing carriage return which upsets mingw
slouken@0
  1220
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
slouken@0
  1221
  *)
slouken@0
  1222
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
slouken@0
  1223
  esac
slouken@0
  1224
  case "$ac_prog" in
slouken@0
  1225
    # Accept absolute paths.
slouken@0
  1226
    [\\/]* | [A-Za-z]:[\\/]*)
slouken@0
  1227
      re_direlt='/[^/][^/]*/\.\./'
slouken@0
  1228
      # Canonicalize the path of ld
slouken@0
  1229
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
slouken@0
  1230
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
slouken@0
  1231
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
slouken@0
  1232
      done
slouken@0
  1233
      test -z "$LD" && LD="$ac_prog"
slouken@0
  1234
      ;;
slouken@0
  1235
  "")
slouken@0
  1236
    # If it fails, then pretend we aren't using GCC.
slouken@0
  1237
    ac_prog=ld
slouken@0
  1238
    ;;
slouken@0
  1239
  *)
slouken@0
  1240
    # If it is relative, then search for the first ld in PATH.
slouken@0
  1241
    with_gnu_ld=unknown
slouken@0
  1242
    ;;
slouken@0
  1243
  esac
slouken@0
  1244
elif test "$with_gnu_ld" = yes; then
slouken@0
  1245
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
slouken@20
  1246
echo "configure:1247: checking for GNU ld" >&5
slouken@0
  1247
else
slouken@0
  1248
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
slouken@20
  1249
echo "configure:1250: checking for non-GNU ld" >&5
slouken@0
  1250
fi
slouken@0
  1251
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
slouken@0
  1252
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1253
else
slouken@0
  1254
  if test -z "$LD"; then
slouken@0
  1255
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
slouken@0
  1256
  for ac_dir in $PATH; do
slouken@0
  1257
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1258
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
slouken@0
  1259
      ac_cv_path_LD="$ac_dir/$ac_prog"
slouken@0
  1260
      # Check to see if the program is GNU ld.  I'd rather use --version,
slouken@0
  1261
      # but apparently some GNU ld's only accept -v.
slouken@0
  1262
      # Break only if it was the GNU/non-GNU ld that we prefer.
slouken@0
  1263
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
slouken@0
  1264
	test "$with_gnu_ld" != no && break
slouken@0
  1265
      else
slouken@0
  1266
	test "$with_gnu_ld" != yes && break
slouken@0
  1267
      fi
slouken@0
  1268
    fi
slouken@0
  1269
  done
slouken@0
  1270
  IFS="$ac_save_ifs"
slouken@0
  1271
else
slouken@0
  1272
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
slouken@0
  1273
fi
slouken@0
  1274
fi
slouken@0
  1275
slouken@0
  1276
LD="$ac_cv_path_LD"
slouken@0
  1277
if test -n "$LD"; then
slouken@0
  1278
  echo "$ac_t""$LD" 1>&6
slouken@0
  1279
else
slouken@0
  1280
  echo "$ac_t""no" 1>&6
slouken@0
  1281
fi
slouken@0
  1282
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
slouken@0
  1283
slouken@0
  1284
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
slouken@20
  1285
echo "configure:1286: checking if the linker ($LD) is GNU ld" >&5
slouken@0
  1286
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
slouken@0
  1287
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1288
else
slouken@0
  1289
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
slouken@0
  1290
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
slouken@0
  1291
  ac_cv_prog_gnu_ld=yes
slouken@0
  1292
else
slouken@0
  1293
  ac_cv_prog_gnu_ld=no
slouken@0
  1294
fi
slouken@0
  1295
fi
slouken@0
  1296
slouken@0
  1297
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
slouken@0
  1298
slouken@0
  1299
slouken@0
  1300
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
slouken@20
  1301
echo "configure:1302: checking for BSD-compatible nm" >&5
slouken@0
  1302
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
slouken@0
  1303
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1304
else
slouken@0
  1305
  if test -n "$NM"; then
slouken@0
  1306
  # Let the user override the test.
slouken@0
  1307
  ac_cv_path_NM="$NM"
slouken@0
  1308
else
slouken@0
  1309
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
slouken@0
  1310
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
slouken@0
  1311
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1312
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
slouken@0
  1313
      # Check to see if the nm accepts a BSD-compat flag.
slouken@0
  1314
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
slouken@0
  1315
      #   nm: unknown option "B" ignored
slouken@0
  1316
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
slouken@0
  1317
	ac_cv_path_NM="$ac_dir/nm -B"
slouken@0
  1318
	break
slouken@0
  1319
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
slouken@0
  1320
	ac_cv_path_NM="$ac_dir/nm -p"
slouken@0
  1321
	break
slouken@0
  1322
      else
slouken@0
  1323
	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
slouken@0
  1324
	continue # so that we can try to find one that supports BSD flags
slouken@0
  1325
      fi
slouken@0
  1326
    fi
slouken@0
  1327
  done
slouken@0
  1328
  IFS="$ac_save_ifs"
slouken@0
  1329
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
slouken@0
  1330
fi
slouken@0
  1331
fi
slouken@0
  1332
slouken@0
  1333
NM="$ac_cv_path_NM"
slouken@0
  1334
echo "$ac_t""$NM" 1>&6
slouken@0
  1335
slouken@0
  1336
slouken@0
  1337
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
slouken@20
  1338
echo "configure:1339: checking whether ln -s works" >&5
slouken@0
  1339
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
slouken@0
  1340
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1341
else
slouken@0
  1342
  rm -f conftestdata
slouken@0
  1343
if ln -s X conftestdata 2>/dev/null
slouken@0
  1344
then
slouken@0
  1345
  rm -f conftestdata
slouken@0
  1346
  ac_cv_prog_LN_S="ln -s"
slouken@0
  1347
else
slouken@0
  1348
  ac_cv_prog_LN_S=ln
slouken@0
  1349
fi
slouken@0
  1350
fi
slouken@0
  1351
LN_S="$ac_cv_prog_LN_S"
slouken@0
  1352
if test "$ac_cv_prog_LN_S" = "ln -s"; then
slouken@0
  1353
  echo "$ac_t""yes" 1>&6
slouken@0
  1354
else
slouken@0
  1355
  echo "$ac_t""no" 1>&6
slouken@0
  1356
fi
slouken@0
  1357
slouken@0
  1358
if test $host != $build; then
slouken@0
  1359
  ac_tool_prefix=${host_alias}-
slouken@0
  1360
else
slouken@0
  1361
  ac_tool_prefix=
slouken@0
  1362
fi
slouken@0
  1363
slouken@0
  1364
slouken@0
  1365
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
slouken@0
  1366
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
slouken@0
  1367
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@20
  1368
echo "configure:1369: checking for $ac_word" >&5
slouken@0
  1369
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
slouken@0
  1370
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1371
else
slouken@0
  1372
  if test -n "$RANLIB"; then
slouken@0
  1373
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
slouken@0
  1374
else
slouken@0
  1375
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
  1376
  ac_dummy="$PATH"
slouken@0
  1377
  for ac_dir in $ac_dummy; do
slouken@0
  1378
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1379
    if test -f $ac_dir/$ac_word; then
slouken@0
  1380
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
slouken@0
  1381
      break
slouken@0
  1382
    fi
slouken@0
  1383
  done
slouken@0
  1384
  IFS="$ac_save_ifs"
slouken@0
  1385
fi
slouken@0
  1386
fi
slouken@0
  1387
RANLIB="$ac_cv_prog_RANLIB"
slouken@0
  1388
if test -n "$RANLIB"; then
slouken@0
  1389
  echo "$ac_t""$RANLIB" 1>&6
slouken@0
  1390
else
slouken@0
  1391
  echo "$ac_t""no" 1>&6
slouken@0
  1392
fi
slouken@0
  1393
slouken@0
  1394
slouken@0
  1395
if test -z "$ac_cv_prog_RANLIB"; then
slouken@0
  1396
if test -n "$ac_tool_prefix"; then
slouken@0
  1397
  # Extract the first word of "ranlib", so it can be a program name with args.
slouken@0
  1398
set dummy ranlib; ac_word=$2
slouken@0
  1399
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@20
  1400
echo "configure:1401: checking for $ac_word" >&5
slouken@0
  1401
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
slouken@0
  1402
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1403
else
slouken@0
  1404
  if test -n "$RANLIB"; then
slouken@0
  1405
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
slouken@0
  1406
else
slouken@0
  1407
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
  1408
  ac_dummy="$PATH"
slouken@0
  1409
  for ac_dir in $ac_dummy; do
slouken@0
  1410
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1411
    if test -f $ac_dir/$ac_word; then
slouken@0
  1412
      ac_cv_prog_RANLIB="ranlib"
slouken@0
  1413
      break
slouken@0
  1414
    fi
slouken@0
  1415
  done
slouken@0
  1416
  IFS="$ac_save_ifs"
slouken@0
  1417
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
slouken@0
  1418
fi
slouken@0
  1419
fi
slouken@0
  1420
RANLIB="$ac_cv_prog_RANLIB"
slouken@0
  1421
if test -n "$RANLIB"; then
slouken@0
  1422
  echo "$ac_t""$RANLIB" 1>&6
slouken@0
  1423
else
slouken@0
  1424
  echo "$ac_t""no" 1>&6
slouken@0
  1425
fi
slouken@0
  1426
slouken@0
  1427
else
slouken@0
  1428
  RANLIB=":"
slouken@0
  1429
fi
slouken@0
  1430
fi
slouken@0
  1431
slouken@0
  1432
slouken@0
  1433
# Check for any special flags to pass to ltconfig.
slouken@0
  1434
libtool_flags="--cache-file=$cache_file"
slouken@0
  1435
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
slouken@0
  1436
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
slouken@0
  1437
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
slouken@0
  1438
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
slouken@0
  1439
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
slouken@0
  1440
slouken@0
  1441
slouken@0
  1442
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
slouken@0
  1443
if test "${enable_libtool_lock+set}" = set; then
slouken@0
  1444
  enableval="$enable_libtool_lock"
slouken@0
  1445
  :
slouken@0
  1446
fi
slouken@0
  1447
slouken@0
  1448
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
slouken@0
  1449
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
slouken@0
  1450
slouken@0
  1451
# Check whether --with-pic or --without-pic was given.
slouken@0
  1452
if test "${with_pic+set}" = set; then
slouken@0
  1453
  withval="$with_pic"
slouken@0
  1454
  pic_mode="$withval"
slouken@0
  1455
else
slouken@0
  1456
  pic_mode=default
slouken@0
  1457
fi
slouken@0
  1458
slouken@0
  1459
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
slouken@0
  1460
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
slouken@0
  1461
slouken@0
  1462
# Some flags need to be propagated to the compiler or linker for good
slouken@0
  1463
# libtool support.
slouken@0
  1464
case "$host" in
slouken@0
  1465
*-*-irix6*)
slouken@0
  1466
  # Find out which ABI we are using.
slouken@20
  1467
  echo '#line 1468 "configure"' > conftest.$ac_ext
slouken@20
  1468
  if { (eval echo configure:1469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
slouken@0
  1469
    case "`/usr/bin/file conftest.o`" in
slouken@0
  1470
    *32-bit*)
slouken@0
  1471
      LD="${LD-ld} -32"
slouken@0
  1472
      ;;
slouken@0
  1473
    *N32*)
slouken@0
  1474
      LD="${LD-ld} -n32"
slouken@0
  1475
      ;;
slouken@0
  1476
    *64-bit*)
slouken@0
  1477
      LD="${LD-ld} -64"
slouken@0
  1478
      ;;
slouken@0
  1479
    esac
slouken@0
  1480
  fi
slouken@0
  1481
  rm -rf conftest*
slouken@0
  1482
  ;;
slouken@0
  1483
slouken@0
  1484
*-*-sco3.2v5*)
slouken@0
  1485
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
slouken@0
  1486
  SAVE_CFLAGS="$CFLAGS"
slouken@0
  1487
  CFLAGS="$CFLAGS -belf"
slouken@0
  1488
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
slouken@20
  1489
echo "configure:1490: checking whether the C compiler needs -belf" >&5
slouken@0
  1490
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
slouken@0
  1491
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1492
else
slouken@0
  1493
  cat > conftest.$ac_ext <<EOF
slouken@20
  1494
#line 1495 "configure"
slouken@0
  1495
#include "confdefs.h"
slouken@0
  1496
slouken@0
  1497
int main() {
slouken@0
  1498
slouken@0
  1499
; return 0; }
slouken@0
  1500
EOF
slouken@20
  1501
if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  1502
  rm -rf conftest*
slouken@0
  1503
  lt_cv_cc_needs_belf=yes
slouken@0
  1504
else
slouken@0
  1505
  echo "configure: failed program was:" >&5
slouken@0
  1506
  cat conftest.$ac_ext >&5
slouken@0
  1507
  rm -rf conftest*
slouken@0
  1508
  lt_cv_cc_needs_belf=no
slouken@0
  1509
fi
slouken@0
  1510
rm -f conftest*
slouken@0
  1511
fi
slouken@0
  1512
slouken@0
  1513
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
slouken@0
  1514
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
slouken@0
  1515
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
slouken@0
  1516
    CFLAGS="$SAVE_CFLAGS"
slouken@0
  1517
  fi
slouken@0
  1518
  ;;
slouken@0
  1519
slouken@0
  1520
slouken@0
  1521
esac
slouken@0
  1522
slouken@0
  1523
slouken@0
  1524
# Save cache, so that ltconfig can load it
slouken@0
  1525
cat > confcache <<\EOF
slouken@0
  1526
# This file is a shell script that caches the results of configure
slouken@0
  1527
# tests run on this system so they can be shared between configure
slouken@0
  1528
# scripts and configure runs.  It is not useful on other systems.
slouken@0
  1529
# If it contains results you don't want to keep, you may remove or edit it.
slouken@0
  1530
#
slouken@0
  1531
# By default, configure uses ./config.cache as the cache file,
slouken@0
  1532
# creating it if it does not exist already.  You can give configure
slouken@0
  1533
# the --cache-file=FILE option to use a different cache file; that is
slouken@0
  1534
# what configure does when it calls configure scripts in
slouken@0
  1535
# subdirectories, so they share the cache.
slouken@0
  1536
# Giving --cache-file=/dev/null disables caching, for debugging configure.
slouken@0
  1537
# config.status only pays attention to the cache file if you give it the
slouken@0
  1538
# --recheck option to rerun configure.
slouken@0
  1539
#
slouken@0
  1540
EOF
slouken@0
  1541
# The following way of writing the cache mishandles newlines in values,
slouken@0
  1542
# but we know of no workaround that is simple, portable, and efficient.
slouken@0
  1543
# So, don't put newlines in cache variables' values.
slouken@0
  1544
# Ultrix sh set writes to stderr and can't be redirected directly,
slouken@0
  1545
# and sets the high bit in the cache file unless we assign to the vars.
slouken@0
  1546
(set) 2>&1 |
slouken@0
  1547
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
slouken@0
  1548
  *ac_space=\ *)
slouken@0
  1549
    # `set' does not quote correctly, so add quotes (double-quote substitution
slouken@0
  1550
    # turns \\\\ into \\, and sed turns \\ into \).
slouken@0
  1551
    sed -n \
slouken@0
  1552
      -e "s/'/'\\\\''/g" \
slouken@0
  1553
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
slouken@0
  1554
    ;;
slouken@0
  1555
  *)
slouken@0
  1556
    # `set' quotes correctly as required by POSIX, so do not add quotes.
slouken@0
  1557
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
slouken@0
  1558
    ;;
slouken@0
  1559
  esac >> confcache
slouken@0
  1560
if cmp -s $cache_file confcache; then
slouken@0
  1561
  :
slouken@0
  1562
else
slouken@0
  1563
  if test -w $cache_file; then
slouken@0
  1564
    echo "updating cache $cache_file"
slouken@0
  1565
    cat confcache > $cache_file
slouken@0
  1566
  else
slouken@0
  1567
    echo "not updating unwritable cache $cache_file"
slouken@0
  1568
  fi
slouken@0
  1569
fi
slouken@0
  1570
rm -f confcache
slouken@0
  1571
slouken@0
  1572
slouken@0
  1573
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
slouken@0
  1574
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
slouken@0
  1575
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
slouken@0
  1576
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
slouken@0
  1577
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
slouken@0
  1578
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
slouken@0
  1579
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
slouken@0
  1580
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
slouken@0
  1581
slouken@0
  1582
# Reload cache, that may have been modified by ltconfig
slouken@0
  1583
if test -r "$cache_file"; then
slouken@0
  1584
  echo "loading cache $cache_file"
slouken@0
  1585
  . $cache_file
slouken@0
  1586
else
slouken@0
  1587
  echo "creating cache $cache_file"
slouken@0
  1588
  > $cache_file
slouken@0
  1589
fi
slouken@0
  1590
slouken@0
  1591
slouken@0
  1592
# This can be used to rebuild libtool when needed
slouken@0
  1593
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
slouken@0
  1594
slouken@0
  1595
# Always use our own libtool.
slouken@0
  1596
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
slouken@0
  1597
slouken@0
  1598
# Redirect the config.log output again, so that the ltconfig log is not
slouken@0
  1599
# clobbered by the next message.
slouken@0
  1600
exec 5>>./config.log
slouken@0
  1601
slouken@0
  1602
# Find a good install program.  We prefer a C program (faster),
slouken@0
  1603
# so one script is as good as another.  But avoid the broken or
slouken@0
  1604
# incompatible versions:
slouken@0
  1605
# SysV /etc/install, /usr/sbin/install
slouken@0
  1606
# SunOS /usr/etc/install
slouken@0
  1607
# IRIX /sbin/install
slouken@0
  1608
# AIX /bin/install
slouken@0
  1609
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
slouken@0
  1610
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
slouken@0
  1611
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
slouken@0
  1612
# ./install, which can be erroneously created by make from ./install.sh.
slouken@0
  1613
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
slouken@20
  1614
echo "configure:1615: checking for a BSD compatible install" >&5
slouken@0
  1615
if test -z "$INSTALL"; then
slouken@0
  1616
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
slouken@0
  1617
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1618
else
slouken@0
  1619
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
slouken@0
  1620
  for ac_dir in $PATH; do
slouken@0
  1621
    # Account for people who put trailing slashes in PATH elements.
slouken@0
  1622
    case "$ac_dir/" in
slouken@0
  1623
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
slouken@0
  1624
    *)
slouken@0
  1625
      # OSF1 and SCO ODT 3.0 have their own names for install.
slouken@0
  1626
      # Don't use installbsd from OSF since it installs stuff as root
slouken@0
  1627
      # by default.
slouken@0
  1628
      for ac_prog in ginstall scoinst install; do
slouken@0
  1629
        if test -f $ac_dir/$ac_prog; then
slouken@0
  1630
	  if test $ac_prog = install &&
slouken@0
  1631
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
slouken@0
  1632
	    # AIX install.  It has an incompatible calling convention.
slouken@0
  1633
	    :
slouken@0
  1634
	  else
slouken@0
  1635
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
slouken@0
  1636
	    break 2
slouken@0
  1637
	  fi
slouken@0
  1638
	fi
slouken@0
  1639
      done
slouken@0
  1640
      ;;
slouken@0
  1641
    esac
slouken@0
  1642
  done
slouken@0
  1643
  IFS="$ac_save_IFS"
slouken@0
  1644
slouken@0
  1645
fi
slouken@0
  1646
  if test "${ac_cv_path_install+set}" = set; then
slouken@0
  1647
    INSTALL="$ac_cv_path_install"
slouken@0
  1648
  else
slouken@0
  1649
    # As a last resort, use the slow shell script.  We don't cache a
slouken@0
  1650
    # path for INSTALL within a source directory, because that will
slouken@0
  1651
    # break other packages using the cache if that directory is
slouken@0
  1652
    # removed, or if the path is relative.
slouken@0
  1653
    INSTALL="$ac_install_sh"
slouken@0
  1654
  fi
slouken@0
  1655
fi
slouken@0
  1656
echo "$ac_t""$INSTALL" 1>&6
slouken@0
  1657
slouken@0
  1658
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
slouken@0
  1659
# It thinks the first close brace ends the variable substitution.
slouken@0
  1660
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
slouken@0
  1661
slouken@0
  1662
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
slouken@0
  1663
slouken@0
  1664
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
slouken@0
  1665
slouken@0
  1666
slouken@6
  1667
echo $ac_n "checking target system type""... $ac_c" 1>&6
slouken@20
  1668
echo "configure:1669: checking target system type" >&5
slouken@6
  1669
slouken@6
  1670
target_alias=$target
slouken@6
  1671
case "$target_alias" in
slouken@6
  1672
NONE)
slouken@6
  1673
  case $nonopt in
slouken@6
  1674
  NONE) target_alias=$host_alias ;;
slouken@6
  1675
  *) target_alias=$nonopt ;;
slouken@6
  1676
  esac ;;
slouken@6
  1677
esac
slouken@6
  1678
slouken@6
  1679
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
slouken@6
  1680
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
slouken@6
  1681
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
slouken@6
  1682
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
slouken@6
  1683
echo "$ac_t""$target" 1>&6
slouken@6
  1684
slouken@6
  1685
case "$target" in
slouken@6
  1686
    alpha*-*-linux*)
slouken@6
  1687
        CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
slouken@6
  1688
        ;;
slouken@6
  1689
esac
slouken@6
  1690
slouken@20
  1691
SDL_VERSION=1.0.0
slouken@0
  1692
# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
slouken@0
  1693
if test "${with_sdl_prefix+set}" = set; then
slouken@0
  1694
  withval="$with_sdl_prefix"
slouken@0
  1695
  sdl_prefix="$withval"
slouken@0
  1696
else
slouken@0
  1697
  sdl_prefix=""
slouken@0
  1698
fi
slouken@0
  1699
slouken@0
  1700
# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
slouken@0
  1701
if test "${with_sdl_exec_prefix+set}" = set; then
slouken@0
  1702
  withval="$with_sdl_exec_prefix"
slouken@0
  1703
  sdl_exec_prefix="$withval"
slouken@0
  1704
else
slouken@0
  1705
  sdl_exec_prefix=""
slouken@0
  1706
fi
slouken@0
  1707
slouken@0
  1708
# Check whether --enable-sdltest or --disable-sdltest was given.
slouken@0
  1709
if test "${enable_sdltest+set}" = set; then
slouken@0
  1710
  enableval="$enable_sdltest"
slouken@0
  1711
  :
slouken@0
  1712
else
slouken@0
  1713
  enable_sdltest=yes
slouken@0
  1714
fi
slouken@0
  1715
slouken@0
  1716
slouken@0
  1717
  if test x$sdl_exec_prefix != x ; then
slouken@0
  1718
     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
slouken@0
  1719
     if test x${SDL_CONFIG+set} != xset ; then
slouken@0
  1720
        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
slouken@0
  1721
     fi
slouken@0
  1722
  fi
slouken@0
  1723
  if test x$sdl_prefix != x ; then
slouken@0
  1724
     sdl_args="$sdl_args --prefix=$sdl_prefix"
slouken@0
  1725
     if test x${SDL_CONFIG+set} != xset ; then
slouken@0
  1726
        SDL_CONFIG=$sdl_prefix/bin/sdl-config
slouken@0
  1727
     fi
slouken@0
  1728
  fi
slouken@0
  1729
slouken@0
  1730
  # Extract the first word of "sdl-config", so it can be a program name with args.
slouken@0
  1731
set dummy sdl-config; ac_word=$2
slouken@0
  1732
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@6
  1733
echo "configure:1734: checking for $ac_word" >&5
slouken@0
  1734
if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
slouken@0
  1735
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1736
else
slouken@0
  1737
  case "$SDL_CONFIG" in
slouken@0
  1738
  /*)
slouken@0
  1739
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
slouken@0
  1740
  ;;
slouken@0
  1741
  ?:/*)			 
slouken@0
  1742
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
slouken@0
  1743
  ;;
slouken@0
  1744
  *)
slouken@0
  1745
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
  1746
  ac_dummy="$PATH"
slouken@0
  1747
  for ac_dir in $ac_dummy; do 
slouken@0
  1748
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1749
    if test -f $ac_dir/$ac_word; then
slouken@0
  1750
      ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
slouken@0
  1751
      break
slouken@0
  1752
    fi
slouken@0
  1753
  done
slouken@0
  1754
  IFS="$ac_save_ifs"
slouken@0
  1755
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
slouken@0
  1756
  ;;
slouken@0
  1757
esac
slouken@0
  1758
fi
slouken@0
  1759
SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
slouken@0
  1760
if test -n "$SDL_CONFIG"; then
slouken@0
  1761
  echo "$ac_t""$SDL_CONFIG" 1>&6
slouken@0
  1762
else
slouken@0
  1763
  echo "$ac_t""no" 1>&6
slouken@0
  1764
fi
slouken@0
  1765
slouken@20
  1766
  min_sdl_version=$SDL_VERSION
slouken@0
  1767
  echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
slouken@6
  1768
echo "configure:1769: checking for SDL - version >= $min_sdl_version" >&5
slouken@0
  1769
  no_sdl=""
slouken@0
  1770
  if test "$SDL_CONFIG" = "no" ; then
slouken@0
  1771
    no_sdl=yes
slouken@0
  1772
  else
slouken@0
  1773
    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
slouken@0
  1774
    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
slouken@0
  1775
slouken@0
  1776
    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
slouken@0
  1777
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
slouken@0
  1778
    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
slouken@0
  1779
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
slouken@0
  1780
    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
slouken@0
  1781
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
slouken@0
  1782
    if test "x$enable_sdltest" = "xyes" ; then
slouken@0
  1783
      ac_save_CFLAGS="$CFLAGS"
slouken@0
  1784
      ac_save_LIBS="$LIBS"
slouken@0
  1785
      CFLAGS="$CFLAGS $SDL_CFLAGS"
slouken@0
  1786
      LIBS="$LIBS $SDL_LIBS"
slouken@0
  1787
      rm -f conf.sdltest
slouken@0
  1788
      if test "$cross_compiling" = yes; then
slouken@0
  1789
  echo $ac_n "cross compiling; assumed OK... $ac_c"
slouken@0
  1790
else
slouken@0
  1791
  cat > conftest.$ac_ext <<EOF
slouken@6
  1792
#line 1793 "configure"
slouken@0
  1793
#include "confdefs.h"
slouken@0
  1794
slouken@0
  1795
#include <stdio.h>
slouken@0
  1796
#include <stdlib.h>
slouken@0
  1797
#include <string.h>
slouken@0
  1798
#include <SDL/SDL.h>
slouken@0
  1799
slouken@0
  1800
char*
slouken@0
  1801
my_strdup (char *str)
slouken@0
  1802
{
slouken@0
  1803
  char *new_str;
slouken@0
  1804
  
slouken@0
  1805
  if (str)
slouken@0
  1806
    {
slouken@0
  1807
      new_str = malloc ((strlen (str) + 1) * sizeof(char));
slouken@0
  1808
      strcpy (new_str, str);
slouken@0
  1809
    }
slouken@0
  1810
  else
slouken@0
  1811
    new_str = NULL;
slouken@0
  1812
  
slouken@0
  1813
  return new_str;
slouken@0
  1814
}
slouken@0
  1815
slouken@0
  1816
int main ()
slouken@0
  1817
{
slouken@0
  1818
  int major, minor, micro;
slouken@0
  1819
  char *tmp_version;
slouken@0
  1820
slouken@0
  1821
  system ("touch conf.sdltest");
slouken@0
  1822
slouken@0
  1823
  /* HP/UX 9 (%@#!) writes to sscanf strings */
slouken@0
  1824
  tmp_version = my_strdup("$min_sdl_version");
slouken@0
  1825
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
slouken@0
  1826
     printf("%s, bad version string\n", "$min_sdl_version");
slouken@0
  1827
     exit(1);
slouken@0
  1828
   }
slouken@0
  1829
slouken@0
  1830
   if (($sdl_major_version > major) ||
slouken@0
  1831
      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
slouken@0
  1832
      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
slouken@0
  1833
    {
slouken@0
  1834
      return 0;
slouken@0
  1835
    }
slouken@0
  1836
  else
slouken@0
  1837
    {
slouken@0
  1838
      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
slouken@0
  1839
      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
slouken@0
  1840
      printf("*** best to upgrade to the required version.\n");
slouken@0
  1841
      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
slouken@0
  1842
      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
slouken@0
  1843
      printf("*** config.cache before re-running configure\n");
slouken@0
  1844
      return 1;
slouken@0
  1845
    }
slouken@0
  1846
}
slouken@0
  1847
slouken@0
  1848
slouken@0
  1849
EOF
slouken@6
  1850
if { (eval echo configure:1851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
slouken@0
  1851
then
slouken@0
  1852
  :
slouken@0
  1853
else
slouken@0
  1854
  echo "configure: failed program was:" >&5
slouken@0
  1855
  cat conftest.$ac_ext >&5
slouken@0
  1856
  rm -fr conftest*
slouken@0
  1857
  no_sdl=yes
slouken@0
  1858
fi
slouken@0
  1859
rm -fr conftest*
slouken@0
  1860
fi
slouken@0
  1861
slouken@0
  1862
       CFLAGS="$ac_save_CFLAGS"
slouken@0
  1863
       LIBS="$ac_save_LIBS"
slouken@0
  1864
     fi
slouken@0
  1865
  fi
slouken@0
  1866
  if test "x$no_sdl" = x ; then
slouken@0
  1867
     echo "$ac_t""yes" 1>&6
slouken@0
  1868
     :     
slouken@0
  1869
  else
slouken@0
  1870
     echo "$ac_t""no" 1>&6
slouken@0
  1871
     if test "$SDL_CONFIG" = "no" ; then
slouken@0
  1872
       echo "*** The sdl-config script installed by SDL could not be found"
slouken@0
  1873
       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
slouken@0
  1874
       echo "*** your path, or set the SDL_CONFIG environment variable to the"
slouken@0
  1875
       echo "*** full path to sdl-config."
slouken@0
  1876
     else
slouken@0
  1877
       if test -f conf.sdltest ; then
slouken@0
  1878
        :
slouken@0
  1879
       else
slouken@0
  1880
          echo "*** Could not run SDL test program, checking why..."
slouken@0
  1881
          CFLAGS="$CFLAGS $SDL_CFLAGS"
slouken@0
  1882
          LIBS="$LIBS $SDL_LIBS"
slouken@0
  1883
          cat > conftest.$ac_ext <<EOF
slouken@6
  1884
#line 1885 "configure"
slouken@0
  1885
#include "confdefs.h"
slouken@0
  1886
slouken@0
  1887
#include <stdio.h>
slouken@0
  1888
#include <SDL/SDL.h>
slouken@0
  1889
slouken@0
  1890
int main() {
slouken@0
  1891
 return 0; 
slouken@0
  1892
; return 0; }
slouken@0
  1893
EOF
slouken@6
  1894
if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  1895
  rm -rf conftest*
slouken@0
  1896
   echo "*** The test program compiled, but did not run. This usually means"
slouken@0
  1897
          echo "*** that the run-time linker is not finding SDL or finding the wrong"
slouken@0
  1898
          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
slouken@0
  1899
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
slouken@0
  1900
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
slouken@0
  1901
          echo "*** is required on your system"
slouken@0
  1902
	  echo "***"
slouken@0
  1903
          echo "*** If you have an old version installed, it is best to remove it, although"
slouken@0
  1904
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
slouken@0
  1905
else
slouken@0
  1906
  echo "configure: failed program was:" >&5
slouken@0
  1907
  cat conftest.$ac_ext >&5
slouken@0
  1908
  rm -rf conftest*
slouken@0
  1909
   echo "*** The test program failed to compile or link. See the file config.log for the"
slouken@0
  1910
          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
slouken@0
  1911
          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
slouken@0
  1912
          echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 
slouken@0
  1913
fi
slouken@0
  1914
rm -f conftest*
slouken@0
  1915
          CFLAGS="$ac_save_CFLAGS"
slouken@0
  1916
          LIBS="$ac_save_LIBS"
slouken@0
  1917
       fi
slouken@0
  1918
     fi
slouken@0
  1919
     SDL_CFLAGS=""
slouken@0
  1920
     SDL_LIBS=""
slouken@20
  1921
     { echo "configure: error: *** SDL version $SDL_VERSION not found!" 1>&2; exit 1; }
slouken@20
  1922
slouken@0
  1923
  fi
slouken@0
  1924
  
slouken@0
  1925
  
slouken@0
  1926
  rm -f conf.sdltest
slouken@0
  1927
slouken@0
  1928
CFLAGS="$CFLAGS $SDL_CFLAGS"
slouken@0
  1929
LIBS="$LIBS $SDL_LIBS"
slouken@0
  1930
slouken@0
  1931
# Check whether --enable-music-cmd or --disable-music-cmd was given.
slouken@0
  1932
if test "${enable_music_cmd+set}" = set; then
slouken@0
  1933
  enableval="$enable_music_cmd"
slouken@0
  1934
  :
slouken@0
  1935
else
slouken@0
  1936
  enable_music_cmd=yes
slouken@0
  1937
fi
slouken@0
  1938
slouken@0
  1939
if test x$enable_music_cmd = xyes; then
slouken@0
  1940
    CFLAGS="$CFLAGS -DCMD_MUSIC"
slouken@0
  1941
fi
slouken@0
  1942
# Check whether --enable-music-wave or --disable-music-wave was given.
slouken@0
  1943
if test "${enable_music_wave+set}" = set; then
slouken@0
  1944
  enableval="$enable_music_wave"
slouken@0
  1945
  :
slouken@0
  1946
else
slouken@0
  1947
  enable_music_wave=yes
slouken@0
  1948
fi
slouken@0
  1949
slouken@0
  1950
if test x$enable_music_wave = xyes; then
slouken@0
  1951
    CFLAGS="$CFLAGS -DWAV_MUSIC"
slouken@0
  1952
fi
slouken@1
  1953
# Check whether --enable-music-mod or --disable-music-mod was given.
slouken@1
  1954
if test "${enable_music_mod+set}" = set; then
slouken@1
  1955
  enableval="$enable_music_mod"
slouken@1
  1956
  :
slouken@1
  1957
else
slouken@1
  1958
  enable_music_mod=yes
slouken@1
  1959
fi
slouken@1
  1960
slouken@1
  1961
if test x$enable_music_mod = xyes; then
slouken@1
  1962
    CFLAGS="$CFLAGS -DMOD_MUSIC -I\$(top_srcdir)/mikmod"
slouken@1
  1963
    MUSIC_SUBDIRS="$MUSIC_SUBDIRS mikmod"
slouken@1
  1964
fi
slouken@0
  1965
# Check whether --enable-music-midi or --disable-music-midi was given.
slouken@0
  1966
if test "${enable_music_midi+set}" = set; then
slouken@0
  1967
  enableval="$enable_music_midi"
slouken@0
  1968
  :
slouken@0
  1969
else
slouken@0
  1970
  enable_music_midi=yes
slouken@0
  1971
fi
slouken@0
  1972
slouken@0
  1973
if test x$enable_music_midi = xyes; then
slouken@0
  1974
    CFLAGS="$CFLAGS -DMID_MUSIC -I\$(top_srcdir)/timidity"
slouken@1
  1975
    MUSIC_SUBDIRS="$MUSIC_SUBDIRS timidity"
slouken@0
  1976
fi
slouken@0
  1977
# Check whether --enable-music-mp3 or --disable-music-mp3 was given.
slouken@0
  1978
if test "${enable_music_mp3+set}" = set; then
slouken@0
  1979
  enableval="$enable_music_mp3"
slouken@0
  1980
  :
slouken@0
  1981
else
slouken@0
  1982
  enable_music_mp3=yes
slouken@0
  1983
fi
slouken@0
  1984
slouken@0
  1985
if test x$enable_music_mp3 = xyes; then
slouken@0
  1986
    echo $ac_n "checking for SMPEG headers and libraries""... $ac_c" 1>&6
slouken@20
  1987
echo "configure:1988: checking for SMPEG headers and libraries" >&5
slouken@0
  1988
    have_smpeg=no
slouken@0
  1989
    cat > conftest.$ac_ext <<EOF
slouken@20
  1990
#line 1991 "configure"
slouken@0
  1991
#include "confdefs.h"
slouken@0
  1992
slouken@0
  1993
     #include <smpeg/smpeg.h>
slouken@0
  1994
    
slouken@0
  1995
int main() {
slouken@0
  1996
slouken@0
  1997
    
slouken@0
  1998
; return 0; }
slouken@0
  1999
EOF
slouken@20
  2000
if { (eval echo configure:2001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
slouken@0
  2001
  rm -rf conftest*
slouken@0
  2002
  
slouken@0
  2003
    have_smpeg=yes
slouken@0
  2004
    
slouken@0
  2005
else
slouken@0
  2006
  echo "configure: failed program was:" >&5
slouken@0
  2007
  cat conftest.$ac_ext >&5
slouken@0
  2008
fi
slouken@0
  2009
rm -f conftest*
slouken@0
  2010
    echo "$ac_t""$have_smpeg" 1>&6
slouken@0
  2011
    if test x$have_smpeg = xyes; then
slouken@0
  2012
        CFLAGS="$CFLAGS -DMP3_MUSIC"
slouken@0
  2013
        LIBS="$LIBS -lsmpeg"
slouken@0
  2014
    fi
slouken@0
  2015
fi
slouken@0
  2016
slouken@1
  2017
slouken@1
  2018
slouken@1
  2019
slouken@1
  2020
if test x$enable_music_mod = xyes; then
slouken@1
  2021
  USE_MIKMOD_TRUE=
slouken@1
  2022
  USE_MIKMOD_FALSE='#'
slouken@1
  2023
else
slouken@1
  2024
  USE_MIKMOD_TRUE='#'
slouken@1
  2025
  USE_MIKMOD_FALSE=
slouken@1
  2026
fi
slouken@1
  2027
slouken@1
  2028
slouken@1
  2029
if test x$enable_music_midi = xyes; then
slouken@1
  2030
  USE_TIMIDITY_TRUE=
slouken@1
  2031
  USE_TIMIDITY_FALSE='#'
slouken@1
  2032
else
slouken@1
  2033
  USE_TIMIDITY_TRUE='#'
slouken@1
  2034
  USE_TIMIDITY_FALSE=
slouken@1
  2035
fi
slouken@1
  2036
slouken@0
  2037
# Finally create all the generated files
slouken@0
  2038
trap '' 1 2 15
slouken@0
  2039
cat > confcache <<\EOF
slouken@0
  2040
# This file is a shell script that caches the results of configure
slouken@0
  2041
# tests run on this system so they can be shared between configure
slouken@0
  2042
# scripts and configure runs.  It is not useful on other systems.
slouken@0
  2043
# If it contains results you don't want to keep, you may remove or edit it.
slouken@0
  2044
#
slouken@0
  2045
# By default, configure uses ./config.cache as the cache file,
slouken@0
  2046
# creating it if it does not exist already.  You can give configure
slouken@0
  2047
# the --cache-file=FILE option to use a different cache file; that is
slouken@0
  2048
# what configure does when it calls configure scripts in
slouken@0
  2049
# subdirectories, so they share the cache.
slouken@0
  2050
# Giving --cache-file=/dev/null disables caching, for debugging configure.
slouken@0
  2051
# config.status only pays attention to the cache file if you give it the
slouken@0
  2052
# --recheck option to rerun configure.
slouken@0
  2053
#
slouken@0
  2054
EOF
slouken@0
  2055
# The following way of writing the cache mishandles newlines in values,
slouken@0
  2056
# but we know of no workaround that is simple, portable, and efficient.
slouken@0
  2057
# So, don't put newlines in cache variables' values.
slouken@0
  2058
# Ultrix sh set writes to stderr and can't be redirected directly,
slouken@0
  2059
# and sets the high bit in the cache file unless we assign to the vars.
slouken@0
  2060
(set) 2>&1 |
slouken@0
  2061
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
slouken@0
  2062
  *ac_space=\ *)
slouken@0
  2063
    # `set' does not quote correctly, so add quotes (double-quote substitution
slouken@0
  2064
    # turns \\\\ into \\, and sed turns \\ into \).
slouken@0
  2065
    sed -n \
slouken@0
  2066
      -e "s/'/'\\\\''/g" \
slouken@0
  2067
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
slouken@0
  2068
    ;;
slouken@0
  2069
  *)
slouken@0
  2070
    # `set' quotes correctly as required by POSIX, so do not add quotes.
slouken@0
  2071
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
slouken@0
  2072
    ;;
slouken@0
  2073
  esac >> confcache
slouken@0
  2074
if cmp -s $cache_file confcache; then
slouken@0
  2075
  :
slouken@0
  2076
else
slouken@0
  2077
  if test -w $cache_file; then
slouken@0
  2078
    echo "updating cache $cache_file"
slouken@0
  2079
    cat confcache > $cache_file
slouken@0
  2080
  else
slouken@0
  2081
    echo "not updating unwritable cache $cache_file"
slouken@0
  2082
  fi
slouken@0
  2083
fi
slouken@0
  2084
rm -f confcache
slouken@0
  2085
slouken@0
  2086
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
slouken@0
  2087
slouken@0
  2088
test "x$prefix" = xNONE && prefix=$ac_default_prefix
slouken@0
  2089
# Let make expand exec_prefix.
slouken@0
  2090
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
slouken@0
  2091
slouken@0
  2092
# Any assignment to VPATH causes Sun make to only execute
slouken@0
  2093
# the first set of double-colon rules, so remove it if not needed.
slouken@0
  2094
# If there is a colon in the path, we need to keep it.
slouken@0
  2095
if test "x$srcdir" = x.; then
slouken@0
  2096
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
slouken@0
  2097
fi
slouken@0
  2098
slouken@0
  2099
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
slouken@0
  2100
slouken@0
  2101
# Transform confdefs.h into DEFS.
slouken@0
  2102
# Protect against shell expansion while executing Makefile rules.
slouken@0
  2103
# Protect against Makefile macro expansion.
slouken@0
  2104
cat > conftest.defs <<\EOF
slouken@0
  2105
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
slouken@0
  2106
s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
slouken@0
  2107
s%\[%\\&%g
slouken@0
  2108
s%\]%\\&%g
slouken@0
  2109
s%\$%$$%g
slouken@0
  2110
EOF
slouken@0
  2111
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
slouken@0
  2112
rm -f conftest.defs
slouken@0
  2113
slouken@0
  2114
slouken@0
  2115
# Without the "./", some shells look in PATH for config.status.
slouken@0
  2116
: ${CONFIG_STATUS=./config.status}
slouken@0
  2117
slouken@0
  2118
echo creating $CONFIG_STATUS
slouken@0
  2119
rm -f $CONFIG_STATUS
slouken@0
  2120
cat > $CONFIG_STATUS <<EOF
slouken@0
  2121
#! /bin/sh
slouken@0
  2122
# Generated automatically by configure.
slouken@0
  2123
# Run this file to recreate the current configuration.
slouken@0
  2124
# This directory was configured as follows,
slouken@0
  2125
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
slouken@0
  2126
#
slouken@0
  2127
# $0 $ac_configure_args
slouken@0
  2128
#
slouken@0
  2129
# Compiler output produced by configure, useful for debugging
slouken@0
  2130
# configure, is in ./config.log if it exists.
slouken@0
  2131
slouken@0
  2132
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
slouken@0
  2133
for ac_option
slouken@0
  2134
do
slouken@0
  2135
  case "\$ac_option" in
slouken@0
  2136
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
slouken@0
  2137
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
slouken@0
  2138
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
slouken@0
  2139
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
slouken@0
  2140
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
slouken@0
  2141
    exit 0 ;;
slouken@0
  2142
  -help | --help | --hel | --he | --h)
slouken@0
  2143
    echo "\$ac_cs_usage"; exit 0 ;;
slouken@0
  2144
  *) echo "\$ac_cs_usage"; exit 1 ;;
slouken@0
  2145
  esac
slouken@0
  2146
done
slouken@0
  2147
slouken@0
  2148
ac_given_srcdir=$srcdir
slouken@0
  2149
ac_given_INSTALL="$INSTALL"
slouken@0
  2150
slouken@0
  2151
trap 'rm -fr `echo "
slouken@0
  2152
Makefile
slouken@0
  2153
mikmod/Makefile
slouken@0
  2154
timidity/Makefile
slouken@0
  2155
" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
slouken@0
  2156
EOF
slouken@0
  2157
cat >> $CONFIG_STATUS <<EOF
slouken@0
  2158
slouken@0
  2159
# Protect against being on the right side of a sed subst in config.status.
slouken@0
  2160
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
slouken@0
  2161
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
slouken@0
  2162
$ac_vpsub
slouken@0
  2163
$extrasub
slouken@0
  2164
s%@SHELL@%$SHELL%g
slouken@0
  2165
s%@CFLAGS@%$CFLAGS%g
slouken@0
  2166
s%@CPPFLAGS@%$CPPFLAGS%g
slouken@0
  2167
s%@CXXFLAGS@%$CXXFLAGS%g
slouken@0
  2168
s%@FFLAGS@%$FFLAGS%g
slouken@0
  2169
s%@DEFS@%$DEFS%g
slouken@0
  2170
s%@LDFLAGS@%$LDFLAGS%g
slouken@0
  2171
s%@LIBS@%$LIBS%g
slouken@0
  2172
s%@exec_prefix@%$exec_prefix%g
slouken@0
  2173
s%@prefix@%$prefix%g
slouken@0
  2174
s%@program_transform_name@%$program_transform_name%g
slouken@0
  2175
s%@bindir@%$bindir%g
slouken@0
  2176
s%@sbindir@%$sbindir%g
slouken@0
  2177
s%@libexecdir@%$libexecdir%g
slouken@0
  2178
s%@datadir@%$datadir%g
slouken@0
  2179
s%@sysconfdir@%$sysconfdir%g
slouken@0
  2180
s%@sharedstatedir@%$sharedstatedir%g
slouken@0
  2181
s%@localstatedir@%$localstatedir%g
slouken@0
  2182
s%@libdir@%$libdir%g
slouken@0
  2183
s%@includedir@%$includedir%g
slouken@0
  2184
s%@oldincludedir@%$oldincludedir%g
slouken@0
  2185
s%@infodir@%$infodir%g
slouken@0
  2186
s%@mandir@%$mandir%g
slouken@0
  2187
s%@MAJOR_VERSION@%$MAJOR_VERSION%g
slouken@0
  2188
s%@MINOR_VERSION@%$MINOR_VERSION%g
slouken@0
  2189
s%@MICRO_VERSION@%$MICRO_VERSION%g
slouken@0
  2190
s%@INTERFACE_AGE@%$INTERFACE_AGE%g
slouken@0
  2191
s%@BINARY_AGE@%$BINARY_AGE%g
slouken@0
  2192
s%@VERSION@%$VERSION%g
slouken@0
  2193
s%@LT_RELEASE@%$LT_RELEASE%g
slouken@0
  2194
s%@LT_CURRENT@%$LT_CURRENT%g
slouken@0
  2195
s%@LT_REVISION@%$LT_REVISION%g
slouken@0
  2196
s%@LT_AGE@%$LT_AGE%g
slouken@0
  2197
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
slouken@0
  2198
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
slouken@0
  2199
s%@INSTALL_DATA@%$INSTALL_DATA%g
slouken@0
  2200
s%@PACKAGE@%$PACKAGE%g
slouken@0
  2201
s%@ACLOCAL@%$ACLOCAL%g
slouken@0
  2202
s%@AUTOCONF@%$AUTOCONF%g
slouken@0
  2203
s%@AUTOMAKE@%$AUTOMAKE%g
slouken@0
  2204
s%@AUTOHEADER@%$AUTOHEADER%g
slouken@0
  2205
s%@MAKEINFO@%$MAKEINFO%g
slouken@0
  2206
s%@SET_MAKE@%$SET_MAKE%g
slouken@0
  2207
s%@CC@%$CC%g
slouken@0
  2208
s%@host@%$host%g
slouken@0
  2209
s%@host_alias@%$host_alias%g
slouken@0
  2210
s%@host_cpu@%$host_cpu%g
slouken@0
  2211
s%@host_vendor@%$host_vendor%g
slouken@0
  2212
s%@host_os@%$host_os%g
slouken@0
  2213
s%@build@%$build%g
slouken@0
  2214
s%@build_alias@%$build_alias%g
slouken@0
  2215
s%@build_cpu@%$build_cpu%g
slouken@0
  2216
s%@build_vendor@%$build_vendor%g
slouken@0
  2217
s%@build_os@%$build_os%g
slouken@0
  2218
s%@LD@%$LD%g
slouken@0
  2219
s%@NM@%$NM%g
slouken@0
  2220
s%@LN_S@%$LN_S%g
slouken@0
  2221
s%@RANLIB@%$RANLIB%g
slouken@0
  2222
s%@LIBTOOL@%$LIBTOOL%g
slouken@6
  2223
s%@target@%$target%g
slouken@6
  2224
s%@target_alias@%$target_alias%g
slouken@6
  2225
s%@target_cpu@%$target_cpu%g
slouken@6
  2226
s%@target_vendor@%$target_vendor%g
slouken@6
  2227
s%@target_os@%$target_os%g
slouken@0
  2228
s%@SDL_CONFIG@%$SDL_CONFIG%g
slouken@0
  2229
s%@SDL_CFLAGS@%$SDL_CFLAGS%g
slouken@0
  2230
s%@SDL_LIBS@%$SDL_LIBS%g
slouken@1
  2231
s%@MUSIC_SUBDIRS@%$MUSIC_SUBDIRS%g
slouken@1
  2232
s%@USE_MIKMOD_TRUE@%$USE_MIKMOD_TRUE%g
slouken@1
  2233
s%@USE_MIKMOD_FALSE@%$USE_MIKMOD_FALSE%g
slouken@1
  2234
s%@USE_TIMIDITY_TRUE@%$USE_TIMIDITY_TRUE%g
slouken@1
  2235
s%@USE_TIMIDITY_FALSE@%$USE_TIMIDITY_FALSE%g
slouken@0
  2236
slouken@0
  2237
CEOF
slouken@0
  2238
EOF
slouken@0
  2239
slouken@0
  2240
cat >> $CONFIG_STATUS <<\EOF
slouken@0
  2241
slouken@0
  2242
# Split the substitutions into bite-sized pieces for seds with
slouken@0
  2243
# small command number limits, like on Digital OSF/1 and HP-UX.
slouken@0
  2244
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
slouken@0
  2245
ac_file=1 # Number of current file.
slouken@0
  2246
ac_beg=1 # First line for current file.
slouken@0
  2247
ac_end=$ac_max_sed_cmds # Line after last line for current file.
slouken@0
  2248
ac_more_lines=:
slouken@0
  2249
ac_sed_cmds=""
slouken@0
  2250
while $ac_more_lines; do
slouken@0
  2251
  if test $ac_beg -gt 1; then
slouken@0
  2252
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
slouken@0
  2253
  else
slouken@0
  2254
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
slouken@0
  2255
  fi
slouken@0
  2256
  if test ! -s conftest.s$ac_file; then
slouken@0
  2257
    ac_more_lines=false
slouken@0
  2258
    rm -f conftest.s$ac_file
slouken@0
  2259
  else
slouken@0
  2260
    if test -z "$ac_sed_cmds"; then
slouken@0
  2261
      ac_sed_cmds="sed -f conftest.s$ac_file"
slouken@0
  2262
    else
slouken@0
  2263
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
slouken@0
  2264
    fi
slouken@0
  2265
    ac_file=`expr $ac_file + 1`
slouken@0
  2266
    ac_beg=$ac_end
slouken@0
  2267
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
slouken@0
  2268
  fi
slouken@0
  2269
done
slouken@0
  2270
if test -z "$ac_sed_cmds"; then
slouken@0
  2271
  ac_sed_cmds=cat
slouken@0
  2272
fi
slouken@0
  2273
EOF
slouken@0
  2274
slouken@0
  2275
cat >> $CONFIG_STATUS <<EOF
slouken@0
  2276
slouken@0
  2277
CONFIG_FILES=\${CONFIG_FILES-"Makefile
slouken@0
  2278
mikmod/Makefile
slouken@0
  2279
timidity/Makefile
slouken@0
  2280
"}
slouken@0
  2281
EOF
slouken@0
  2282
cat >> $CONFIG_STATUS <<\EOF
slouken@0
  2283
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
slouken@0
  2284
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
slouken@0
  2285
  case "$ac_file" in
slouken@0
  2286
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
slouken@0
  2287
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
slouken@0
  2288
  *) ac_file_in="${ac_file}.in" ;;
slouken@0
  2289
  esac
slouken@0
  2290
slouken@0
  2291
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
slouken@0
  2292
slouken@0
  2293
  # Remove last slash and all that follows it.  Not all systems have dirname.
slouken@0
  2294
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
slouken@0
  2295
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
slouken@0
  2296
    # The file is in a subdirectory.
slouken@0
  2297
    test ! -d "$ac_dir" && mkdir "$ac_dir"
slouken@0
  2298
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
slouken@0
  2299
    # A "../" for each directory in $ac_dir_suffix.
slouken@0
  2300
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
slouken@0
  2301
  else
slouken@0
  2302
    ac_dir_suffix= ac_dots=
slouken@0
  2303
  fi
slouken@0
  2304
slouken@0
  2305
  case "$ac_given_srcdir" in
slouken@0
  2306
  .)  srcdir=.
slouken@0
  2307
      if test -z "$ac_dots"; then top_srcdir=.
slouken@0
  2308
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
slouken@0
  2309
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
slouken@0
  2310
  *) # Relative path.
slouken@0
  2311
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
slouken@0
  2312
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
slouken@0
  2313
  esac
slouken@0
  2314
slouken@0
  2315
  case "$ac_given_INSTALL" in
slouken@0
  2316
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
slouken@0
  2317
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
slouken@0
  2318
  esac
slouken@0
  2319
slouken@0
  2320
  echo creating "$ac_file"
slouken@0
  2321
  rm -f "$ac_file"
slouken@0
  2322
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
slouken@0
  2323
  case "$ac_file" in
slouken@0
  2324
  *Makefile*) ac_comsub="1i\\
slouken@0
  2325
# $configure_input" ;;
slouken@0
  2326
  *) ac_comsub= ;;
slouken@0
  2327
  esac
slouken@0
  2328
slouken@0
  2329
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
slouken@0
  2330
  sed -e "$ac_comsub
slouken@0
  2331
s%@configure_input@%$configure_input%g
slouken@0
  2332
s%@srcdir@%$srcdir%g
slouken@0
  2333
s%@top_srcdir@%$top_srcdir%g
slouken@0
  2334
s%@INSTALL@%$INSTALL%g
slouken@0
  2335
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
slouken@0
  2336
fi; done
slouken@0
  2337
rm -f conftest.s*
slouken@0
  2338
slouken@0
  2339
EOF
slouken@0
  2340
cat >> $CONFIG_STATUS <<EOF
slouken@0
  2341
slouken@0
  2342
EOF
slouken@0
  2343
cat >> $CONFIG_STATUS <<\EOF
slouken@0
  2344
slouken@0
  2345
exit 0
slouken@0
  2346
EOF
slouken@0
  2347
chmod +x $CONFIG_STATUS
slouken@0
  2348
rm -fr confdefs* $ac_clean_files
slouken@0
  2349
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
slouken@0
  2350