configure
author Sam Lantinga <slouken@lokigames.com>
Mon, 27 Dec 1999 19:24:50 +0000
changeset 29 44b09d6e1170
parent 26 25edca541dc9
child 34 25e00090b15c
permissions -rwxr-xr-x
FXJ - Updated the mikmod support to MikMod 3.1.8
FXJ - Added Mix_HookMusicFinished() API function
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@29
   564
MICRO_VERSION=2
slouken@0
   565
INTERFACE_AGE=0
slouken@29
   566
BINARY_AGE=2
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@29
   755
slouken@0
   756
PACKAGE=mixer
slouken@0
   757
slouken@0
   758
VERSION=$VERSION
slouken@0
   759
slouken@0
   760
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
slouken@0
   761
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
slouken@0
   762
fi
slouken@0
   763
cat >> confdefs.h <<EOF
slouken@0
   764
#define PACKAGE "$PACKAGE"
slouken@0
   765
EOF
slouken@0
   766
slouken@0
   767
cat >> confdefs.h <<EOF
slouken@0
   768
#define VERSION "$VERSION"
slouken@0
   769
EOF
slouken@0
   770
slouken@0
   771
slouken@0
   772
slouken@0
   773
missing_dir=`cd $ac_aux_dir && pwd`
slouken@0
   774
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
slouken@29
   775
echo "configure:776: checking for working aclocal" >&5
slouken@0
   776
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   777
# an executable is not found, even if stderr is redirected.
slouken@0
   778
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   779
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   780
   ACLOCAL=aclocal
slouken@0
   781
   echo "$ac_t""found" 1>&6
slouken@0
   782
else
slouken@0
   783
   ACLOCAL="$missing_dir/missing aclocal"
slouken@0
   784
   echo "$ac_t""missing" 1>&6
slouken@0
   785
fi
slouken@0
   786
slouken@0
   787
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
slouken@29
   788
echo "configure:789: checking for working autoconf" >&5
slouken@0
   789
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   790
# an executable is not found, even if stderr is redirected.
slouken@0
   791
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   792
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   793
   AUTOCONF=autoconf
slouken@0
   794
   echo "$ac_t""found" 1>&6
slouken@0
   795
else
slouken@0
   796
   AUTOCONF="$missing_dir/missing autoconf"
slouken@0
   797
   echo "$ac_t""missing" 1>&6
slouken@0
   798
fi
slouken@0
   799
slouken@0
   800
echo $ac_n "checking for working automake""... $ac_c" 1>&6
slouken@29
   801
echo "configure:802: checking for working automake" >&5
slouken@0
   802
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   803
# an executable is not found, even if stderr is redirected.
slouken@0
   804
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   805
if (automake --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   806
   AUTOMAKE=automake
slouken@0
   807
   echo "$ac_t""found" 1>&6
slouken@0
   808
else
slouken@0
   809
   AUTOMAKE="$missing_dir/missing automake"
slouken@0
   810
   echo "$ac_t""missing" 1>&6
slouken@0
   811
fi
slouken@0
   812
slouken@0
   813
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
slouken@29
   814
echo "configure:815: checking for working autoheader" >&5
slouken@0
   815
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   816
# an executable is not found, even if stderr is redirected.
slouken@0
   817
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   818
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   819
   AUTOHEADER=autoheader
slouken@0
   820
   echo "$ac_t""found" 1>&6
slouken@0
   821
else
slouken@0
   822
   AUTOHEADER="$missing_dir/missing autoheader"
slouken@0
   823
   echo "$ac_t""missing" 1>&6
slouken@0
   824
fi
slouken@0
   825
slouken@0
   826
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
slouken@29
   827
echo "configure:828: checking for working makeinfo" >&5
slouken@0
   828
# Run test in a subshell; some versions of sh will print an error if
slouken@0
   829
# an executable is not found, even if stderr is redirected.
slouken@0
   830
# Redirect stdin to placate older versions of autoconf.  Sigh.
slouken@0
   831
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
slouken@0
   832
   MAKEINFO=makeinfo
slouken@0
   833
   echo "$ac_t""found" 1>&6
slouken@0
   834
else
slouken@0
   835
   MAKEINFO="$missing_dir/missing makeinfo"
slouken@0
   836
   echo "$ac_t""missing" 1>&6
slouken@0
   837
fi
slouken@0
   838
slouken@0
   839
slouken@0
   840
slouken@0
   841
slouken@0
   842
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
slouken@29
   843
echo "configure:844: checking whether ${MAKE-make} sets \${MAKE}" >&5
slouken@0
   844
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
slouken@0
   845
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
slouken@0
   846
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   847
else
slouken@0
   848
  cat > conftestmake <<\EOF
slouken@0
   849
all:
slouken@0
   850
	@echo 'ac_maketemp="${MAKE}"'
slouken@0
   851
EOF
slouken@0
   852
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
slouken@0
   853
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
slouken@0
   854
if test -n "$ac_maketemp"; then
slouken@0
   855
  eval ac_cv_prog_make_${ac_make}_set=yes
slouken@0
   856
else
slouken@0
   857
  eval ac_cv_prog_make_${ac_make}_set=no
slouken@0
   858
fi
slouken@0
   859
rm -f conftestmake
slouken@0
   860
fi
slouken@0
   861
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
slouken@0
   862
  echo "$ac_t""yes" 1>&6
slouken@0
   863
  SET_MAKE=
slouken@0
   864
else
slouken@0
   865
  echo "$ac_t""no" 1>&6
slouken@0
   866
  SET_MAKE="MAKE=${MAKE-make}"
slouken@0
   867
fi
slouken@0
   868
slouken@0
   869
# Extract the first word of "gcc", so it can be a program name with args.
slouken@0
   870
set dummy gcc; ac_word=$2
slouken@0
   871
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@29
   872
echo "configure:873: checking for $ac_word" >&5
slouken@0
   873
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
slouken@0
   874
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   875
else
slouken@0
   876
  if test -n "$CC"; then
slouken@0
   877
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@0
   878
else
slouken@0
   879
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
   880
  ac_dummy="$PATH"
slouken@0
   881
  for ac_dir in $ac_dummy; do
slouken@0
   882
    test -z "$ac_dir" && ac_dir=.
slouken@0
   883
    if test -f $ac_dir/$ac_word; then
slouken@0
   884
      ac_cv_prog_CC="gcc"
slouken@0
   885
      break
slouken@0
   886
    fi
slouken@0
   887
  done
slouken@0
   888
  IFS="$ac_save_ifs"
slouken@0
   889
fi
slouken@0
   890
fi
slouken@0
   891
CC="$ac_cv_prog_CC"
slouken@0
   892
if test -n "$CC"; then
slouken@0
   893
  echo "$ac_t""$CC" 1>&6
slouken@0
   894
else
slouken@0
   895
  echo "$ac_t""no" 1>&6
slouken@0
   896
fi
slouken@0
   897
slouken@0
   898
if test -z "$CC"; then
slouken@0
   899
  # Extract the first word of "cc", so it can be a program name with args.
slouken@0
   900
set dummy cc; ac_word=$2
slouken@0
   901
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@29
   902
echo "configure:903: checking for $ac_word" >&5
slouken@0
   903
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
slouken@0
   904
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   905
else
slouken@0
   906
  if test -n "$CC"; then
slouken@0
   907
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@0
   908
else
slouken@0
   909
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
   910
  ac_prog_rejected=no
slouken@0
   911
  ac_dummy="$PATH"
slouken@0
   912
  for ac_dir in $ac_dummy; do
slouken@0
   913
    test -z "$ac_dir" && ac_dir=.
slouken@0
   914
    if test -f $ac_dir/$ac_word; then
slouken@0
   915
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
slouken@0
   916
        ac_prog_rejected=yes
slouken@0
   917
	continue
slouken@0
   918
      fi
slouken@0
   919
      ac_cv_prog_CC="cc"
slouken@0
   920
      break
slouken@0
   921
    fi
slouken@0
   922
  done
slouken@0
   923
  IFS="$ac_save_ifs"
slouken@0
   924
if test $ac_prog_rejected = yes; then
slouken@0
   925
  # We found a bogon in the path, so make sure we never use it.
slouken@0
   926
  set dummy $ac_cv_prog_CC
slouken@0
   927
  shift
slouken@0
   928
  if test $# -gt 0; then
slouken@0
   929
    # We chose a different compiler from the bogus one.
slouken@0
   930
    # However, it has the same basename, so the bogon will be chosen
slouken@0
   931
    # first if we set CC to just the basename; use the full file name.
slouken@0
   932
    shift
slouken@0
   933
    set dummy "$ac_dir/$ac_word" "$@"
slouken@0
   934
    shift
slouken@0
   935
    ac_cv_prog_CC="$@"
slouken@0
   936
  fi
slouken@0
   937
fi
slouken@0
   938
fi
slouken@0
   939
fi
slouken@0
   940
CC="$ac_cv_prog_CC"
slouken@0
   941
if test -n "$CC"; then
slouken@0
   942
  echo "$ac_t""$CC" 1>&6
slouken@0
   943
else
slouken@0
   944
  echo "$ac_t""no" 1>&6
slouken@0
   945
fi
slouken@0
   946
slouken@0
   947
  if test -z "$CC"; then
slouken@0
   948
    case "`uname -s`" in
slouken@0
   949
    *win32* | *WIN32*)
slouken@0
   950
      # Extract the first word of "cl", so it can be a program name with args.
slouken@0
   951
set dummy cl; ac_word=$2
slouken@0
   952
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@29
   953
echo "configure:954: checking for $ac_word" >&5
slouken@0
   954
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
slouken@0
   955
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
   956
else
slouken@0
   957
  if test -n "$CC"; then
slouken@0
   958
  ac_cv_prog_CC="$CC" # Let the user override the test.
slouken@0
   959
else
slouken@0
   960
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
   961
  ac_dummy="$PATH"
slouken@0
   962
  for ac_dir in $ac_dummy; do
slouken@0
   963
    test -z "$ac_dir" && ac_dir=.
slouken@0
   964
    if test -f $ac_dir/$ac_word; then
slouken@0
   965
      ac_cv_prog_CC="cl"
slouken@0
   966
      break
slouken@0
   967
    fi
slouken@0
   968
  done
slouken@0
   969
  IFS="$ac_save_ifs"
slouken@0
   970
fi
slouken@0
   971
fi
slouken@0
   972
CC="$ac_cv_prog_CC"
slouken@0
   973
if test -n "$CC"; then
slouken@0
   974
  echo "$ac_t""$CC" 1>&6
slouken@0
   975
else
slouken@0
   976
  echo "$ac_t""no" 1>&6
slouken@0
   977
fi
slouken@0
   978
 ;;
slouken@0
   979
    esac
slouken@0
   980
  fi
slouken@0
   981
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
slouken@0
   982
fi
slouken@0
   983
slouken@0
   984
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
slouken@29
   985
echo "configure:986: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
slouken@0
   986
slouken@0
   987
ac_ext=c
slouken@0
   988
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
slouken@0
   989
ac_cpp='$CPP $CPPFLAGS'
slouken@0
   990
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
slouken@0
   991
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
slouken@0
   992
cross_compiling=$ac_cv_prog_cc_cross
slouken@0
   993
slouken@0
   994
cat > conftest.$ac_ext << EOF
slouken@0
   995
slouken@29
   996
#line 997 "configure"
slouken@0
   997
#include "confdefs.h"
slouken@0
   998
slouken@0
   999
main(){return(0);}
slouken@0
  1000
EOF
slouken@29
  1001
if { (eval echo configure:1002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  1002
  ac_cv_prog_cc_works=yes
slouken@0
  1003
  # If we can't run a trivial program, we are probably using a cross compiler.
slouken@0
  1004
  if (./conftest; exit) 2>/dev/null; then
slouken@0
  1005
    ac_cv_prog_cc_cross=no
slouken@0
  1006
  else
slouken@0
  1007
    ac_cv_prog_cc_cross=yes
slouken@0
  1008
  fi
slouken@0
  1009
else
slouken@0
  1010
  echo "configure: failed program was:" >&5
slouken@0
  1011
  cat conftest.$ac_ext >&5
slouken@0
  1012
  ac_cv_prog_cc_works=no
slouken@0
  1013
fi
slouken@0
  1014
rm -fr conftest*
slouken@0
  1015
ac_ext=c
slouken@0
  1016
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
slouken@0
  1017
ac_cpp='$CPP $CPPFLAGS'
slouken@0
  1018
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
slouken@0
  1019
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
slouken@0
  1020
cross_compiling=$ac_cv_prog_cc_cross
slouken@0
  1021
slouken@0
  1022
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
slouken@0
  1023
if test $ac_cv_prog_cc_works = no; then
slouken@0
  1024
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
slouken@0
  1025
fi
slouken@0
  1026
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
slouken@29
  1027
echo "configure:1028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
slouken@0
  1028
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
slouken@0
  1029
cross_compiling=$ac_cv_prog_cc_cross
slouken@0
  1030
slouken@0
  1031
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
slouken@29
  1032
echo "configure:1033: checking whether we are using GNU C" >&5
slouken@0
  1033
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
slouken@0
  1034
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1035
else
slouken@0
  1036
  cat > conftest.c <<EOF
slouken@0
  1037
#ifdef __GNUC__
slouken@0
  1038
  yes;
slouken@0
  1039
#endif
slouken@0
  1040
EOF
slouken@29
  1041
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
slouken@0
  1042
  ac_cv_prog_gcc=yes
slouken@0
  1043
else
slouken@0
  1044
  ac_cv_prog_gcc=no
slouken@0
  1045
fi
slouken@0
  1046
fi
slouken@0
  1047
slouken@0
  1048
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
slouken@0
  1049
slouken@0
  1050
if test $ac_cv_prog_gcc = yes; then
slouken@0
  1051
  GCC=yes
slouken@0
  1052
else
slouken@0
  1053
  GCC=
slouken@0
  1054
fi
slouken@0
  1055
slouken@0
  1056
ac_test_CFLAGS="${CFLAGS+set}"
slouken@0
  1057
ac_save_CFLAGS="$CFLAGS"
slouken@0
  1058
CFLAGS=
slouken@0
  1059
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
slouken@29
  1060
echo "configure:1061: checking whether ${CC-cc} accepts -g" >&5
slouken@0
  1061
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
slouken@0
  1062
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1063
else
slouken@0
  1064
  echo 'void f(){}' > conftest.c
slouken@0
  1065
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
slouken@0
  1066
  ac_cv_prog_cc_g=yes
slouken@0
  1067
else
slouken@0
  1068
  ac_cv_prog_cc_g=no
slouken@0
  1069
fi
slouken@0
  1070
rm -f conftest*
slouken@0
  1071
slouken@0
  1072
fi
slouken@0
  1073
slouken@0
  1074
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
slouken@0
  1075
if test "$ac_test_CFLAGS" = set; then
slouken@0
  1076
  CFLAGS="$ac_save_CFLAGS"
slouken@0
  1077
elif test $ac_cv_prog_cc_g = yes; then
slouken@0
  1078
  if test "$GCC" = yes; then
slouken@0
  1079
    CFLAGS="-g -O2"
slouken@0
  1080
  else
slouken@0
  1081
    CFLAGS="-g"
slouken@0
  1082
  fi
slouken@0
  1083
else
slouken@0
  1084
  if test "$GCC" = yes; then
slouken@0
  1085
    CFLAGS="-O2"
slouken@0
  1086
  else
slouken@0
  1087
    CFLAGS=
slouken@0
  1088
  fi
slouken@0
  1089
fi
slouken@0
  1090
slouken@26
  1091
slouken@0
  1092
# Check whether --enable-shared or --disable-shared was given.
slouken@0
  1093
if test "${enable_shared+set}" = set; then
slouken@0
  1094
  enableval="$enable_shared"
slouken@0
  1095
  p=${PACKAGE-default}
slouken@0
  1096
case "$enableval" in
slouken@0
  1097
yes) enable_shared=yes ;;
slouken@0
  1098
no) enable_shared=no ;;
slouken@0
  1099
*)
slouken@0
  1100
  enable_shared=no
slouken@0
  1101
  # Look at the argument we got.  We use all the common list separators.
slouken@0
  1102
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
slouken@0
  1103
  for pkg in $enableval; do
slouken@0
  1104
    if test "X$pkg" = "X$p"; then
slouken@0
  1105
      enable_shared=yes
slouken@0
  1106
    fi
slouken@0
  1107
  done
slouken@0
  1108
  IFS="$ac_save_ifs"
slouken@0
  1109
  ;;
slouken@0
  1110
esac
slouken@0
  1111
else
slouken@0
  1112
  enable_shared=yes
slouken@0
  1113
fi
slouken@0
  1114
slouken@0
  1115
# Check whether --enable-static or --disable-static was given.
slouken@0
  1116
if test "${enable_static+set}" = set; then
slouken@0
  1117
  enableval="$enable_static"
slouken@0
  1118
  p=${PACKAGE-default}
slouken@0
  1119
case "$enableval" in
slouken@0
  1120
yes) enable_static=yes ;;
slouken@0
  1121
no) enable_static=no ;;
slouken@0
  1122
*)
slouken@0
  1123
  enable_static=no
slouken@0
  1124
  # Look at the argument we got.  We use all the common list separators.
slouken@0
  1125
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
slouken@0
  1126
  for pkg in $enableval; do
slouken@0
  1127
    if test "X$pkg" = "X$p"; then
slouken@0
  1128
      enable_static=yes
slouken@0
  1129
    fi
slouken@0
  1130
  done
slouken@0
  1131
  IFS="$ac_save_ifs"
slouken@0
  1132
  ;;
slouken@0
  1133
esac
slouken@0
  1134
else
slouken@0
  1135
  enable_static=yes
slouken@0
  1136
fi
slouken@0
  1137
slouken@0
  1138
# Check whether --enable-fast-install or --disable-fast-install was given.
slouken@0
  1139
if test "${enable_fast_install+set}" = set; then
slouken@0
  1140
  enableval="$enable_fast_install"
slouken@0
  1141
  p=${PACKAGE-default}
slouken@0
  1142
case "$enableval" in
slouken@0
  1143
yes) enable_fast_install=yes ;;
slouken@0
  1144
no) enable_fast_install=no ;;
slouken@0
  1145
*)
slouken@0
  1146
  enable_fast_install=no
slouken@0
  1147
  # Look at the argument we got.  We use all the common list separators.
slouken@0
  1148
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
slouken@0
  1149
  for pkg in $enableval; do
slouken@0
  1150
    if test "X$pkg" = "X$p"; then
slouken@0
  1151
      enable_fast_install=yes
slouken@0
  1152
    fi
slouken@0
  1153
  done
slouken@0
  1154
  IFS="$ac_save_ifs"
slouken@0
  1155
  ;;
slouken@0
  1156
esac
slouken@0
  1157
else
slouken@0
  1158
  enable_fast_install=yes
slouken@0
  1159
fi
slouken@0
  1160
slouken@0
  1161
slouken@0
  1162
# Make sure we can run config.sub.
slouken@0
  1163
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
slouken@0
  1164
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
slouken@0
  1165
fi
slouken@0
  1166
slouken@0
  1167
echo $ac_n "checking host system type""... $ac_c" 1>&6
slouken@29
  1168
echo "configure:1169: checking host system type" >&5
slouken@0
  1169
slouken@0
  1170
host_alias=$host
slouken@0
  1171
case "$host_alias" in
slouken@0
  1172
NONE)
slouken@0
  1173
  case $nonopt in
slouken@0
  1174
  NONE)
slouken@0
  1175
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
slouken@0
  1176
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
slouken@0
  1177
    fi ;;
slouken@0
  1178
  *) host_alias=$nonopt ;;
slouken@0
  1179
  esac ;;
slouken@0
  1180
esac
slouken@0
  1181
slouken@0
  1182
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
slouken@0
  1183
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
slouken@0
  1184
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
slouken@0
  1185
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
slouken@0
  1186
echo "$ac_t""$host" 1>&6
slouken@0
  1187
slouken@0
  1188
echo $ac_n "checking build system type""... $ac_c" 1>&6
slouken@29
  1189
echo "configure:1190: checking build system type" >&5
slouken@0
  1190
slouken@0
  1191
build_alias=$build
slouken@0
  1192
case "$build_alias" in
slouken@0
  1193
NONE)
slouken@0
  1194
  case $nonopt in
slouken@0
  1195
  NONE) build_alias=$host_alias ;;
slouken@0
  1196
  *) build_alias=$nonopt ;;
slouken@0
  1197
  esac ;;
slouken@0
  1198
esac
slouken@0
  1199
slouken@0
  1200
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
slouken@0
  1201
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
slouken@0
  1202
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
slouken@0
  1203
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
slouken@0
  1204
echo "$ac_t""$build" 1>&6
slouken@0
  1205
slouken@0
  1206
# Check whether --with-gnu-ld or --without-gnu-ld was given.
slouken@0
  1207
if test "${with_gnu_ld+set}" = set; then
slouken@0
  1208
  withval="$with_gnu_ld"
slouken@0
  1209
  test "$withval" = no || with_gnu_ld=yes
slouken@0
  1210
else
slouken@0
  1211
  with_gnu_ld=no
slouken@0
  1212
fi
slouken@0
  1213
slouken@0
  1214
ac_prog=ld
slouken@0
  1215
if test "$ac_cv_prog_gcc" = yes; then
slouken@0
  1216
  # Check if gcc -print-prog-name=ld gives a path.
slouken@0
  1217
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
slouken@29
  1218
echo "configure:1219: checking for ld used by GCC" >&5
slouken@0
  1219
  case $host in
slouken@0
  1220
  *-*-mingw*)
slouken@0
  1221
    # gcc leaves a trailing carriage return which upsets mingw
slouken@0
  1222
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
slouken@0
  1223
  *)
slouken@0
  1224
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
slouken@0
  1225
  esac
slouken@0
  1226
  case "$ac_prog" in
slouken@0
  1227
    # Accept absolute paths.
slouken@0
  1228
    [\\/]* | [A-Za-z]:[\\/]*)
slouken@0
  1229
      re_direlt='/[^/][^/]*/\.\./'
slouken@0
  1230
      # Canonicalize the path of ld
slouken@0
  1231
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
slouken@0
  1232
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
slouken@0
  1233
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
slouken@0
  1234
      done
slouken@0
  1235
      test -z "$LD" && LD="$ac_prog"
slouken@0
  1236
      ;;
slouken@0
  1237
  "")
slouken@0
  1238
    # If it fails, then pretend we aren't using GCC.
slouken@0
  1239
    ac_prog=ld
slouken@0
  1240
    ;;
slouken@0
  1241
  *)
slouken@0
  1242
    # If it is relative, then search for the first ld in PATH.
slouken@0
  1243
    with_gnu_ld=unknown
slouken@0
  1244
    ;;
slouken@0
  1245
  esac
slouken@0
  1246
elif test "$with_gnu_ld" = yes; then
slouken@0
  1247
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
slouken@29
  1248
echo "configure:1249: checking for GNU ld" >&5
slouken@0
  1249
else
slouken@0
  1250
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
slouken@29
  1251
echo "configure:1252: checking for non-GNU ld" >&5
slouken@0
  1252
fi
slouken@0
  1253
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
slouken@0
  1254
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1255
else
slouken@0
  1256
  if test -z "$LD"; then
slouken@0
  1257
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
slouken@0
  1258
  for ac_dir in $PATH; do
slouken@0
  1259
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1260
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
slouken@0
  1261
      ac_cv_path_LD="$ac_dir/$ac_prog"
slouken@0
  1262
      # Check to see if the program is GNU ld.  I'd rather use --version,
slouken@0
  1263
      # but apparently some GNU ld's only accept -v.
slouken@0
  1264
      # Break only if it was the GNU/non-GNU ld that we prefer.
slouken@0
  1265
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
slouken@0
  1266
	test "$with_gnu_ld" != no && break
slouken@0
  1267
      else
slouken@0
  1268
	test "$with_gnu_ld" != yes && break
slouken@0
  1269
      fi
slouken@0
  1270
    fi
slouken@0
  1271
  done
slouken@0
  1272
  IFS="$ac_save_ifs"
slouken@0
  1273
else
slouken@0
  1274
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
slouken@0
  1275
fi
slouken@0
  1276
fi
slouken@0
  1277
slouken@0
  1278
LD="$ac_cv_path_LD"
slouken@0
  1279
if test -n "$LD"; then
slouken@0
  1280
  echo "$ac_t""$LD" 1>&6
slouken@0
  1281
else
slouken@0
  1282
  echo "$ac_t""no" 1>&6
slouken@0
  1283
fi
slouken@0
  1284
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
slouken@0
  1285
slouken@0
  1286
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
slouken@29
  1287
echo "configure:1288: checking if the linker ($LD) is GNU ld" >&5
slouken@0
  1288
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
slouken@0
  1289
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1290
else
slouken@0
  1291
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
slouken@0
  1292
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
slouken@0
  1293
  ac_cv_prog_gnu_ld=yes
slouken@0
  1294
else
slouken@0
  1295
  ac_cv_prog_gnu_ld=no
slouken@0
  1296
fi
slouken@0
  1297
fi
slouken@0
  1298
slouken@0
  1299
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
slouken@0
  1300
slouken@0
  1301
slouken@0
  1302
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
slouken@29
  1303
echo "configure:1304: checking for BSD-compatible nm" >&5
slouken@0
  1304
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
slouken@0
  1305
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1306
else
slouken@0
  1307
  if test -n "$NM"; then
slouken@0
  1308
  # Let the user override the test.
slouken@0
  1309
  ac_cv_path_NM="$NM"
slouken@0
  1310
else
slouken@0
  1311
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
slouken@0
  1312
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
slouken@0
  1313
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1314
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
slouken@0
  1315
      # Check to see if the nm accepts a BSD-compat flag.
slouken@0
  1316
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
slouken@0
  1317
      #   nm: unknown option "B" ignored
slouken@0
  1318
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
slouken@0
  1319
	ac_cv_path_NM="$ac_dir/nm -B"
slouken@0
  1320
	break
slouken@0
  1321
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
slouken@0
  1322
	ac_cv_path_NM="$ac_dir/nm -p"
slouken@0
  1323
	break
slouken@0
  1324
      else
slouken@0
  1325
	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
slouken@0
  1326
	continue # so that we can try to find one that supports BSD flags
slouken@0
  1327
      fi
slouken@0
  1328
    fi
slouken@0
  1329
  done
slouken@0
  1330
  IFS="$ac_save_ifs"
slouken@0
  1331
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
slouken@0
  1332
fi
slouken@0
  1333
fi
slouken@0
  1334
slouken@0
  1335
NM="$ac_cv_path_NM"
slouken@0
  1336
echo "$ac_t""$NM" 1>&6
slouken@0
  1337
slouken@0
  1338
slouken@0
  1339
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
slouken@29
  1340
echo "configure:1341: checking whether ln -s works" >&5
slouken@0
  1341
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
slouken@0
  1342
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1343
else
slouken@0
  1344
  rm -f conftestdata
slouken@0
  1345
if ln -s X conftestdata 2>/dev/null
slouken@0
  1346
then
slouken@0
  1347
  rm -f conftestdata
slouken@0
  1348
  ac_cv_prog_LN_S="ln -s"
slouken@0
  1349
else
slouken@0
  1350
  ac_cv_prog_LN_S=ln
slouken@0
  1351
fi
slouken@0
  1352
fi
slouken@0
  1353
LN_S="$ac_cv_prog_LN_S"
slouken@0
  1354
if test "$ac_cv_prog_LN_S" = "ln -s"; then
slouken@0
  1355
  echo "$ac_t""yes" 1>&6
slouken@0
  1356
else
slouken@0
  1357
  echo "$ac_t""no" 1>&6
slouken@0
  1358
fi
slouken@0
  1359
slouken@0
  1360
if test $host != $build; then
slouken@0
  1361
  ac_tool_prefix=${host_alias}-
slouken@0
  1362
else
slouken@0
  1363
  ac_tool_prefix=
slouken@0
  1364
fi
slouken@0
  1365
slouken@0
  1366
slouken@0
  1367
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
slouken@0
  1368
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
slouken@0
  1369
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@29
  1370
echo "configure:1371: checking for $ac_word" >&5
slouken@0
  1371
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
slouken@0
  1372
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1373
else
slouken@0
  1374
  if test -n "$RANLIB"; then
slouken@0
  1375
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
slouken@0
  1376
else
slouken@0
  1377
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
  1378
  ac_dummy="$PATH"
slouken@0
  1379
  for ac_dir in $ac_dummy; do
slouken@0
  1380
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1381
    if test -f $ac_dir/$ac_word; then
slouken@0
  1382
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
slouken@0
  1383
      break
slouken@0
  1384
    fi
slouken@0
  1385
  done
slouken@0
  1386
  IFS="$ac_save_ifs"
slouken@0
  1387
fi
slouken@0
  1388
fi
slouken@0
  1389
RANLIB="$ac_cv_prog_RANLIB"
slouken@0
  1390
if test -n "$RANLIB"; then
slouken@0
  1391
  echo "$ac_t""$RANLIB" 1>&6
slouken@0
  1392
else
slouken@0
  1393
  echo "$ac_t""no" 1>&6
slouken@0
  1394
fi
slouken@0
  1395
slouken@0
  1396
slouken@0
  1397
if test -z "$ac_cv_prog_RANLIB"; then
slouken@0
  1398
if test -n "$ac_tool_prefix"; then
slouken@0
  1399
  # Extract the first word of "ranlib", so it can be a program name with args.
slouken@0
  1400
set dummy ranlib; ac_word=$2
slouken@0
  1401
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@29
  1402
echo "configure:1403: checking for $ac_word" >&5
slouken@0
  1403
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
slouken@0
  1404
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1405
else
slouken@0
  1406
  if test -n "$RANLIB"; then
slouken@0
  1407
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
slouken@0
  1408
else
slouken@0
  1409
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
  1410
  ac_dummy="$PATH"
slouken@0
  1411
  for ac_dir in $ac_dummy; do
slouken@0
  1412
    test -z "$ac_dir" && ac_dir=.
slouken@0
  1413
    if test -f $ac_dir/$ac_word; then
slouken@0
  1414
      ac_cv_prog_RANLIB="ranlib"
slouken@0
  1415
      break
slouken@0
  1416
    fi
slouken@0
  1417
  done
slouken@0
  1418
  IFS="$ac_save_ifs"
slouken@0
  1419
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
slouken@0
  1420
fi
slouken@0
  1421
fi
slouken@0
  1422
RANLIB="$ac_cv_prog_RANLIB"
slouken@0
  1423
if test -n "$RANLIB"; then
slouken@0
  1424
  echo "$ac_t""$RANLIB" 1>&6
slouken@0
  1425
else
slouken@0
  1426
  echo "$ac_t""no" 1>&6
slouken@0
  1427
fi
slouken@0
  1428
slouken@0
  1429
else
slouken@0
  1430
  RANLIB=":"
slouken@0
  1431
fi
slouken@0
  1432
fi
slouken@0
  1433
slouken@0
  1434
slouken@0
  1435
# Check for any special flags to pass to ltconfig.
slouken@0
  1436
libtool_flags="--cache-file=$cache_file"
slouken@0
  1437
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
slouken@0
  1438
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
slouken@0
  1439
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
slouken@0
  1440
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
slouken@0
  1441
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
slouken@0
  1442
slouken@26
  1443
libtool_flags="$libtool_flags --enable-win32-dll"
slouken@0
  1444
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
slouken@0
  1445
if test "${enable_libtool_lock+set}" = set; then
slouken@0
  1446
  enableval="$enable_libtool_lock"
slouken@0
  1447
  :
slouken@0
  1448
fi
slouken@0
  1449
slouken@0
  1450
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
slouken@0
  1451
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
slouken@0
  1452
slouken@0
  1453
# Check whether --with-pic or --without-pic was given.
slouken@0
  1454
if test "${with_pic+set}" = set; then
slouken@0
  1455
  withval="$with_pic"
slouken@0
  1456
  pic_mode="$withval"
slouken@0
  1457
else
slouken@0
  1458
  pic_mode=default
slouken@0
  1459
fi
slouken@0
  1460
slouken@0
  1461
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
slouken@0
  1462
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
slouken@0
  1463
slouken@0
  1464
# Some flags need to be propagated to the compiler or linker for good
slouken@0
  1465
# libtool support.
slouken@0
  1466
case "$host" in
slouken@0
  1467
*-*-irix6*)
slouken@0
  1468
  # Find out which ABI we are using.
slouken@29
  1469
  echo '#line 1470 "configure"' > conftest.$ac_ext
slouken@29
  1470
  if { (eval echo configure:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
slouken@0
  1471
    case "`/usr/bin/file conftest.o`" in
slouken@0
  1472
    *32-bit*)
slouken@0
  1473
      LD="${LD-ld} -32"
slouken@0
  1474
      ;;
slouken@0
  1475
    *N32*)
slouken@0
  1476
      LD="${LD-ld} -n32"
slouken@0
  1477
      ;;
slouken@0
  1478
    *64-bit*)
slouken@0
  1479
      LD="${LD-ld} -64"
slouken@0
  1480
      ;;
slouken@0
  1481
    esac
slouken@0
  1482
  fi
slouken@0
  1483
  rm -rf conftest*
slouken@0
  1484
  ;;
slouken@0
  1485
slouken@0
  1486
*-*-sco3.2v5*)
slouken@0
  1487
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
slouken@0
  1488
  SAVE_CFLAGS="$CFLAGS"
slouken@0
  1489
  CFLAGS="$CFLAGS -belf"
slouken@0
  1490
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
slouken@29
  1491
echo "configure:1492: checking whether the C compiler needs -belf" >&5
slouken@0
  1492
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
slouken@0
  1493
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1494
else
slouken@0
  1495
  cat > conftest.$ac_ext <<EOF
slouken@29
  1496
#line 1497 "configure"
slouken@0
  1497
#include "confdefs.h"
slouken@0
  1498
slouken@0
  1499
int main() {
slouken@0
  1500
slouken@0
  1501
; return 0; }
slouken@0
  1502
EOF
slouken@29
  1503
if { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  1504
  rm -rf conftest*
slouken@0
  1505
  lt_cv_cc_needs_belf=yes
slouken@0
  1506
else
slouken@0
  1507
  echo "configure: failed program was:" >&5
slouken@0
  1508
  cat conftest.$ac_ext >&5
slouken@0
  1509
  rm -rf conftest*
slouken@0
  1510
  lt_cv_cc_needs_belf=no
slouken@0
  1511
fi
slouken@0
  1512
rm -f conftest*
slouken@0
  1513
fi
slouken@0
  1514
slouken@0
  1515
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
slouken@0
  1516
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
slouken@0
  1517
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
slouken@0
  1518
    CFLAGS="$SAVE_CFLAGS"
slouken@0
  1519
  fi
slouken@0
  1520
  ;;
slouken@0
  1521
slouken@26
  1522
*-*-cygwin* | *-*-mingw*)
slouken@26
  1523
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
slouken@26
  1524
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
slouken@26
  1525
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@29
  1526
echo "configure:1527: checking for $ac_word" >&5
slouken@26
  1527
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
slouken@26
  1528
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@26
  1529
else
slouken@26
  1530
  if test -n "$DLLTOOL"; then
slouken@26
  1531
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
slouken@26
  1532
else
slouken@26
  1533
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@26
  1534
  ac_dummy="$PATH"
slouken@26
  1535
  for ac_dir in $ac_dummy; do
slouken@26
  1536
    test -z "$ac_dir" && ac_dir=.
slouken@26
  1537
    if test -f $ac_dir/$ac_word; then
slouken@26
  1538
      ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
slouken@26
  1539
      break
slouken@26
  1540
    fi
slouken@26
  1541
  done
slouken@26
  1542
  IFS="$ac_save_ifs"
slouken@26
  1543
fi
slouken@26
  1544
fi
slouken@26
  1545
DLLTOOL="$ac_cv_prog_DLLTOOL"
slouken@26
  1546
if test -n "$DLLTOOL"; then
slouken@26
  1547
  echo "$ac_t""$DLLTOOL" 1>&6
slouken@26
  1548
else
slouken@26
  1549
  echo "$ac_t""no" 1>&6
slouken@26
  1550
fi
slouken@0
  1551
slouken@26
  1552
slouken@26
  1553
if test -z "$ac_cv_prog_DLLTOOL"; then
slouken@26
  1554
if test -n "$ac_tool_prefix"; then
slouken@26
  1555
  # Extract the first word of "dlltool", so it can be a program name with args.
slouken@26
  1556
set dummy dlltool; ac_word=$2
slouken@26
  1557
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@29
  1558
echo "configure:1559: checking for $ac_word" >&5
slouken@26
  1559
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
slouken@26
  1560
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@26
  1561
else
slouken@26
  1562
  if test -n "$DLLTOOL"; then
slouken@26
  1563
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
slouken@26
  1564
else
slouken@26
  1565
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@26
  1566
  ac_dummy="$PATH"
slouken@26
  1567
  for ac_dir in $ac_dummy; do
slouken@26
  1568
    test -z "$ac_dir" && ac_dir=.
slouken@26
  1569
    if test -f $ac_dir/$ac_word; then
slouken@26
  1570
      ac_cv_prog_DLLTOOL="dlltool"
slouken@26
  1571
      break
slouken@26
  1572
    fi
slouken@26
  1573
  done
slouken@26
  1574
  IFS="$ac_save_ifs"
slouken@26
  1575
  test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
slouken@26
  1576
fi
slouken@26
  1577
fi
slouken@26
  1578
DLLTOOL="$ac_cv_prog_DLLTOOL"
slouken@26
  1579
if test -n "$DLLTOOL"; then
slouken@26
  1580
  echo "$ac_t""$DLLTOOL" 1>&6
slouken@26
  1581
else
slouken@26
  1582
  echo "$ac_t""no" 1>&6
slouken@26
  1583
fi
slouken@26
  1584
slouken@26
  1585
else
slouken@26
  1586
  DLLTOOL="false"
slouken@26
  1587
fi
slouken@26
  1588
fi
slouken@26
  1589
slouken@26
  1590
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
slouken@26
  1591
set dummy ${ac_tool_prefix}as; ac_word=$2
slouken@26
  1592
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@29
  1593
echo "configure:1594: checking for $ac_word" >&5
slouken@26
  1594
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
slouken@26
  1595
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@26
  1596
else
slouken@26
  1597
  if test -n "$AS"; then
slouken@26
  1598
  ac_cv_prog_AS="$AS" # Let the user override the test.
slouken@26
  1599
else
slouken@26
  1600
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@26
  1601
  ac_dummy="$PATH"
slouken@26
  1602
  for ac_dir in $ac_dummy; do
slouken@26
  1603
    test -z "$ac_dir" && ac_dir=.
slouken@26
  1604
    if test -f $ac_dir/$ac_word; then
slouken@26
  1605
      ac_cv_prog_AS="${ac_tool_prefix}as"
slouken@26
  1606
      break
slouken@26
  1607
    fi
slouken@26
  1608
  done
slouken@26
  1609
  IFS="$ac_save_ifs"
slouken@26
  1610
fi
slouken@26
  1611
fi
slouken@26
  1612
AS="$ac_cv_prog_AS"
slouken@26
  1613
if test -n "$AS"; then
slouken@26
  1614
  echo "$ac_t""$AS" 1>&6
slouken@26
  1615
else
slouken@26
  1616
  echo "$ac_t""no" 1>&6
slouken@26
  1617
fi
slouken@26
  1618
slouken@26
  1619
slouken@26
  1620
if test -z "$ac_cv_prog_AS"; then
slouken@26
  1621
if test -n "$ac_tool_prefix"; then
slouken@26
  1622
  # Extract the first word of "as", so it can be a program name with args.
slouken@26
  1623
set dummy as; ac_word=$2
slouken@26
  1624
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@29
  1625
echo "configure:1626: checking for $ac_word" >&5
slouken@26
  1626
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
slouken@26
  1627
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@26
  1628
else
slouken@26
  1629
  if test -n "$AS"; then
slouken@26
  1630
  ac_cv_prog_AS="$AS" # Let the user override the test.
slouken@26
  1631
else
slouken@26
  1632
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@26
  1633
  ac_dummy="$PATH"
slouken@26
  1634
  for ac_dir in $ac_dummy; do
slouken@26
  1635
    test -z "$ac_dir" && ac_dir=.
slouken@26
  1636
    if test -f $ac_dir/$ac_word; then
slouken@26
  1637
      ac_cv_prog_AS="as"
slouken@26
  1638
      break
slouken@26
  1639
    fi
slouken@26
  1640
  done
slouken@26
  1641
  IFS="$ac_save_ifs"
slouken@26
  1642
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
slouken@26
  1643
fi
slouken@26
  1644
fi
slouken@26
  1645
AS="$ac_cv_prog_AS"
slouken@26
  1646
if test -n "$AS"; then
slouken@26
  1647
  echo "$ac_t""$AS" 1>&6
slouken@26
  1648
else
slouken@26
  1649
  echo "$ac_t""no" 1>&6
slouken@26
  1650
fi
slouken@26
  1651
slouken@26
  1652
else
slouken@26
  1653
  AS="false"
slouken@26
  1654
fi
slouken@26
  1655
fi
slouken@26
  1656
slouken@26
  1657
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
slouken@26
  1658
set dummy ${ac_tool_prefix}objdump; ac_word=$2
slouken@26
  1659
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@29
  1660
echo "configure:1661: checking for $ac_word" >&5
slouken@26
  1661
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
slouken@26
  1662
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@26
  1663
else
slouken@26
  1664
  if test -n "$OBJDUMP"; then
slouken@26
  1665
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
slouken@26
  1666
else
slouken@26
  1667
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@26
  1668
  ac_dummy="$PATH"
slouken@26
  1669
  for ac_dir in $ac_dummy; do
slouken@26
  1670
    test -z "$ac_dir" && ac_dir=.
slouken@26
  1671
    if test -f $ac_dir/$ac_word; then
slouken@26
  1672
      ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
slouken@26
  1673
      break
slouken@26
  1674
    fi
slouken@26
  1675
  done
slouken@26
  1676
  IFS="$ac_save_ifs"
slouken@26
  1677
fi
slouken@26
  1678
fi
slouken@26
  1679
OBJDUMP="$ac_cv_prog_OBJDUMP"
slouken@26
  1680
if test -n "$OBJDUMP"; then
slouken@26
  1681
  echo "$ac_t""$OBJDUMP" 1>&6
slouken@26
  1682
else
slouken@26
  1683
  echo "$ac_t""no" 1>&6
slouken@26
  1684
fi
slouken@26
  1685
slouken@26
  1686
slouken@26
  1687
if test -z "$ac_cv_prog_OBJDUMP"; then
slouken@26
  1688
if test -n "$ac_tool_prefix"; then
slouken@26
  1689
  # Extract the first word of "objdump", so it can be a program name with args.
slouken@26
  1690
set dummy objdump; ac_word=$2
slouken@26
  1691
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@29
  1692
echo "configure:1693: checking for $ac_word" >&5
slouken@26
  1693
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
slouken@26
  1694
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@26
  1695
else
slouken@26
  1696
  if test -n "$OBJDUMP"; then
slouken@26
  1697
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
slouken@26
  1698
else
slouken@26
  1699
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@26
  1700
  ac_dummy="$PATH"
slouken@26
  1701
  for ac_dir in $ac_dummy; do
slouken@26
  1702
    test -z "$ac_dir" && ac_dir=.
slouken@26
  1703
    if test -f $ac_dir/$ac_word; then
slouken@26
  1704
      ac_cv_prog_OBJDUMP="objdump"
slouken@26
  1705
      break
slouken@26
  1706
    fi
slouken@26
  1707
  done
slouken@26
  1708
  IFS="$ac_save_ifs"
slouken@26
  1709
  test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
slouken@26
  1710
fi
slouken@26
  1711
fi
slouken@26
  1712
OBJDUMP="$ac_cv_prog_OBJDUMP"
slouken@26
  1713
if test -n "$OBJDUMP"; then
slouken@26
  1714
  echo "$ac_t""$OBJDUMP" 1>&6
slouken@26
  1715
else
slouken@26
  1716
  echo "$ac_t""no" 1>&6
slouken@26
  1717
fi
slouken@26
  1718
slouken@26
  1719
else
slouken@26
  1720
  OBJDUMP="false"
slouken@26
  1721
fi
slouken@26
  1722
fi
slouken@26
  1723
slouken@26
  1724
slouken@26
  1725
  # recent cygwin and mingw systems supply a stub DllMain which the user
slouken@26
  1726
  # can override, but on older systems we have to supply one
slouken@26
  1727
  echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
slouken@29
  1728
echo "configure:1729: checking if libtool should supply DllMain function" >&5
slouken@26
  1729
if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
slouken@26
  1730
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@26
  1731
else
slouken@26
  1732
  cat > conftest.$ac_ext <<EOF
slouken@29
  1733
#line 1734 "configure"
slouken@26
  1734
#include "confdefs.h"
slouken@26
  1735
DllMain (0, 0, 0);
slouken@26
  1736
int main() {
slouken@26
  1737
extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
slouken@26
  1738
; return 0; }
slouken@26
  1739
EOF
slouken@29
  1740
if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@26
  1741
  rm -rf conftest*
slouken@26
  1742
  lt_cv_need_dllmain=yes
slouken@26
  1743
else
slouken@26
  1744
  echo "configure: failed program was:" >&5
slouken@26
  1745
  cat conftest.$ac_ext >&5
slouken@26
  1746
  rm -rf conftest*
slouken@26
  1747
  lt_cv_need_dllmain=no
slouken@26
  1748
fi
slouken@26
  1749
rm -f conftest*
slouken@26
  1750
fi
slouken@26
  1751
slouken@26
  1752
echo "$ac_t""$lt_cv_need_dllmain" 1>&6
slouken@26
  1753
slouken@26
  1754
  case $host in
slouken@26
  1755
  *-*-cygwin*)
slouken@26
  1756
    # cygwin systems need to pass --dll to the linker, and not link
slouken@26
  1757
    # crt.o which will require a WinMain@16 definition.
slouken@26
  1758
    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
slouken@26
  1759
  *-*-mingw*)
slouken@26
  1760
    # old mingw systems require "-dll" to link a DLL, while more recent ones
slouken@26
  1761
    # require "-mdll"
slouken@26
  1762
    SAVE_CFLAGS="$CFLAGS"
slouken@26
  1763
    CFLAGS="$CFLAGS -mdll"
slouken@26
  1764
    echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
slouken@29
  1765
echo "configure:1766: checking how to link DLLs" >&5
slouken@26
  1766
if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
slouken@26
  1767
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@26
  1768
else
slouken@26
  1769
  cat > conftest.$ac_ext <<EOF
slouken@29
  1770
#line 1771 "configure"
slouken@26
  1771
#include "confdefs.h"
slouken@26
  1772
slouken@26
  1773
int main() {
slouken@26
  1774
slouken@26
  1775
; return 0; }
slouken@26
  1776
EOF
slouken@29
  1777
if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@26
  1778
  rm -rf conftest*
slouken@26
  1779
  lt_cv_cc_dll_switch=-mdll
slouken@26
  1780
else
slouken@26
  1781
  echo "configure: failed program was:" >&5
slouken@26
  1782
  cat conftest.$ac_ext >&5
slouken@26
  1783
  rm -rf conftest*
slouken@26
  1784
  lt_cv_cc_dll_switch=-dll
slouken@26
  1785
fi
slouken@26
  1786
rm -f conftest*
slouken@26
  1787
fi
slouken@26
  1788
slouken@26
  1789
echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
slouken@26
  1790
    CFLAGS="$SAVE_CFLAGS" ;;
slouken@26
  1791
  esac
slouken@26
  1792
  ;;
slouken@26
  1793
  
slouken@0
  1794
esac
slouken@0
  1795
slouken@0
  1796
slouken@0
  1797
# Save cache, so that ltconfig can load it
slouken@0
  1798
cat > confcache <<\EOF
slouken@0
  1799
# This file is a shell script that caches the results of configure
slouken@0
  1800
# tests run on this system so they can be shared between configure
slouken@0
  1801
# scripts and configure runs.  It is not useful on other systems.
slouken@0
  1802
# If it contains results you don't want to keep, you may remove or edit it.
slouken@0
  1803
#
slouken@0
  1804
# By default, configure uses ./config.cache as the cache file,
slouken@0
  1805
# creating it if it does not exist already.  You can give configure
slouken@0
  1806
# the --cache-file=FILE option to use a different cache file; that is
slouken@0
  1807
# what configure does when it calls configure scripts in
slouken@0
  1808
# subdirectories, so they share the cache.
slouken@0
  1809
# Giving --cache-file=/dev/null disables caching, for debugging configure.
slouken@0
  1810
# config.status only pays attention to the cache file if you give it the
slouken@0
  1811
# --recheck option to rerun configure.
slouken@0
  1812
#
slouken@0
  1813
EOF
slouken@0
  1814
# The following way of writing the cache mishandles newlines in values,
slouken@0
  1815
# but we know of no workaround that is simple, portable, and efficient.
slouken@0
  1816
# So, don't put newlines in cache variables' values.
slouken@0
  1817
# Ultrix sh set writes to stderr and can't be redirected directly,
slouken@0
  1818
# and sets the high bit in the cache file unless we assign to the vars.
slouken@0
  1819
(set) 2>&1 |
slouken@0
  1820
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
slouken@0
  1821
  *ac_space=\ *)
slouken@0
  1822
    # `set' does not quote correctly, so add quotes (double-quote substitution
slouken@0
  1823
    # turns \\\\ into \\, and sed turns \\ into \).
slouken@0
  1824
    sed -n \
slouken@0
  1825
      -e "s/'/'\\\\''/g" \
slouken@0
  1826
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
slouken@0
  1827
    ;;
slouken@0
  1828
  *)
slouken@0
  1829
    # `set' quotes correctly as required by POSIX, so do not add quotes.
slouken@0
  1830
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
slouken@0
  1831
    ;;
slouken@0
  1832
  esac >> confcache
slouken@0
  1833
if cmp -s $cache_file confcache; then
slouken@0
  1834
  :
slouken@0
  1835
else
slouken@0
  1836
  if test -w $cache_file; then
slouken@0
  1837
    echo "updating cache $cache_file"
slouken@0
  1838
    cat confcache > $cache_file
slouken@0
  1839
  else
slouken@0
  1840
    echo "not updating unwritable cache $cache_file"
slouken@0
  1841
  fi
slouken@0
  1842
fi
slouken@0
  1843
rm -f confcache
slouken@0
  1844
slouken@0
  1845
slouken@0
  1846
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
slouken@0
  1847
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
slouken@0
  1848
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
slouken@0
  1849
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
slouken@0
  1850
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
slouken@0
  1851
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
slouken@0
  1852
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
slouken@0
  1853
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
slouken@0
  1854
slouken@0
  1855
# Reload cache, that may have been modified by ltconfig
slouken@0
  1856
if test -r "$cache_file"; then
slouken@0
  1857
  echo "loading cache $cache_file"
slouken@0
  1858
  . $cache_file
slouken@0
  1859
else
slouken@0
  1860
  echo "creating cache $cache_file"
slouken@0
  1861
  > $cache_file
slouken@0
  1862
fi
slouken@0
  1863
slouken@0
  1864
slouken@0
  1865
# This can be used to rebuild libtool when needed
slouken@0
  1866
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
slouken@0
  1867
slouken@0
  1868
# Always use our own libtool.
slouken@0
  1869
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
slouken@0
  1870
slouken@0
  1871
# Redirect the config.log output again, so that the ltconfig log is not
slouken@0
  1872
# clobbered by the next message.
slouken@0
  1873
exec 5>>./config.log
slouken@0
  1874
slouken@0
  1875
# Find a good install program.  We prefer a C program (faster),
slouken@0
  1876
# so one script is as good as another.  But avoid the broken or
slouken@0
  1877
# incompatible versions:
slouken@0
  1878
# SysV /etc/install, /usr/sbin/install
slouken@0
  1879
# SunOS /usr/etc/install
slouken@0
  1880
# IRIX /sbin/install
slouken@0
  1881
# AIX /bin/install
slouken@0
  1882
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
slouken@0
  1883
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
slouken@0
  1884
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
slouken@0
  1885
# ./install, which can be erroneously created by make from ./install.sh.
slouken@0
  1886
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
slouken@29
  1887
echo "configure:1888: checking for a BSD compatible install" >&5
slouken@0
  1888
if test -z "$INSTALL"; then
slouken@0
  1889
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
slouken@0
  1890
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  1891
else
slouken@0
  1892
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
slouken@0
  1893
  for ac_dir in $PATH; do
slouken@0
  1894
    # Account for people who put trailing slashes in PATH elements.
slouken@0
  1895
    case "$ac_dir/" in
slouken@0
  1896
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
slouken@0
  1897
    *)
slouken@0
  1898
      # OSF1 and SCO ODT 3.0 have their own names for install.
slouken@0
  1899
      # Don't use installbsd from OSF since it installs stuff as root
slouken@0
  1900
      # by default.
slouken@0
  1901
      for ac_prog in ginstall scoinst install; do
slouken@0
  1902
        if test -f $ac_dir/$ac_prog; then
slouken@0
  1903
	  if test $ac_prog = install &&
slouken@0
  1904
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
slouken@0
  1905
	    # AIX install.  It has an incompatible calling convention.
slouken@0
  1906
	    :
slouken@0
  1907
	  else
slouken@0
  1908
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
slouken@0
  1909
	    break 2
slouken@0
  1910
	  fi
slouken@0
  1911
	fi
slouken@0
  1912
      done
slouken@0
  1913
      ;;
slouken@0
  1914
    esac
slouken@0
  1915
  done
slouken@0
  1916
  IFS="$ac_save_IFS"
slouken@0
  1917
slouken@0
  1918
fi
slouken@0
  1919
  if test "${ac_cv_path_install+set}" = set; then
slouken@0
  1920
    INSTALL="$ac_cv_path_install"
slouken@0
  1921
  else
slouken@0
  1922
    # As a last resort, use the slow shell script.  We don't cache a
slouken@0
  1923
    # path for INSTALL within a source directory, because that will
slouken@0
  1924
    # break other packages using the cache if that directory is
slouken@0
  1925
    # removed, or if the path is relative.
slouken@0
  1926
    INSTALL="$ac_install_sh"
slouken@0
  1927
  fi
slouken@0
  1928
fi
slouken@0
  1929
echo "$ac_t""$INSTALL" 1>&6
slouken@0
  1930
slouken@0
  1931
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
slouken@0
  1932
# It thinks the first close brace ends the variable substitution.
slouken@0
  1933
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
slouken@0
  1934
slouken@0
  1935
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
slouken@0
  1936
slouken@0
  1937
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
slouken@0
  1938
slouken@0
  1939
slouken@6
  1940
echo $ac_n "checking target system type""... $ac_c" 1>&6
slouken@29
  1941
echo "configure:1942: checking target system type" >&5
slouken@6
  1942
slouken@6
  1943
target_alias=$target
slouken@6
  1944
case "$target_alias" in
slouken@6
  1945
NONE)
slouken@6
  1946
  case $nonopt in
slouken@6
  1947
  NONE) target_alias=$host_alias ;;
slouken@6
  1948
  *) target_alias=$nonopt ;;
slouken@6
  1949
  esac ;;
slouken@6
  1950
esac
slouken@6
  1951
slouken@6
  1952
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
slouken@6
  1953
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
slouken@6
  1954
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
slouken@6
  1955
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
slouken@6
  1956
echo "$ac_t""$target" 1>&6
slouken@6
  1957
slouken@6
  1958
case "$target" in
slouken@6
  1959
    alpha*-*-linux*)
slouken@6
  1960
        CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
slouken@6
  1961
        ;;
slouken@6
  1962
esac
slouken@6
  1963
slouken@24
  1964
SDL_VERSION=1.0.1
slouken@0
  1965
# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
slouken@0
  1966
if test "${with_sdl_prefix+set}" = set; then
slouken@0
  1967
  withval="$with_sdl_prefix"
slouken@0
  1968
  sdl_prefix="$withval"
slouken@0
  1969
else
slouken@0
  1970
  sdl_prefix=""
slouken@0
  1971
fi
slouken@0
  1972
slouken@0
  1973
# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
slouken@0
  1974
if test "${with_sdl_exec_prefix+set}" = set; then
slouken@0
  1975
  withval="$with_sdl_exec_prefix"
slouken@0
  1976
  sdl_exec_prefix="$withval"
slouken@0
  1977
else
slouken@0
  1978
  sdl_exec_prefix=""
slouken@0
  1979
fi
slouken@0
  1980
slouken@0
  1981
# Check whether --enable-sdltest or --disable-sdltest was given.
slouken@0
  1982
if test "${enable_sdltest+set}" = set; then
slouken@0
  1983
  enableval="$enable_sdltest"
slouken@0
  1984
  :
slouken@0
  1985
else
slouken@0
  1986
  enable_sdltest=yes
slouken@0
  1987
fi
slouken@0
  1988
slouken@0
  1989
slouken@0
  1990
  if test x$sdl_exec_prefix != x ; then
slouken@0
  1991
     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
slouken@0
  1992
     if test x${SDL_CONFIG+set} != xset ; then
slouken@0
  1993
        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
slouken@0
  1994
     fi
slouken@0
  1995
  fi
slouken@0
  1996
  if test x$sdl_prefix != x ; then
slouken@0
  1997
     sdl_args="$sdl_args --prefix=$sdl_prefix"
slouken@0
  1998
     if test x${SDL_CONFIG+set} != xset ; then
slouken@0
  1999
        SDL_CONFIG=$sdl_prefix/bin/sdl-config
slouken@0
  2000
     fi
slouken@0
  2001
  fi
slouken@0
  2002
slouken@0
  2003
  # Extract the first word of "sdl-config", so it can be a program name with args.
slouken@0
  2004
set dummy sdl-config; ac_word=$2
slouken@0
  2005
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
slouken@29
  2006
echo "configure:2007: checking for $ac_word" >&5
slouken@0
  2007
if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
slouken@0
  2008
  echo $ac_n "(cached) $ac_c" 1>&6
slouken@0
  2009
else
slouken@0
  2010
  case "$SDL_CONFIG" in
slouken@0
  2011
  /*)
slouken@0
  2012
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
slouken@0
  2013
  ;;
slouken@0
  2014
  ?:/*)			 
slouken@0
  2015
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
slouken@0
  2016
  ;;
slouken@0
  2017
  *)
slouken@0
  2018
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
slouken@0
  2019
  ac_dummy="$PATH"
slouken@0
  2020
  for ac_dir in $ac_dummy; do 
slouken@0
  2021
    test -z "$ac_dir" && ac_dir=.
slouken@0
  2022
    if test -f $ac_dir/$ac_word; then
slouken@0
  2023
      ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
slouken@0
  2024
      break
slouken@0
  2025
    fi
slouken@0
  2026
  done
slouken@0
  2027
  IFS="$ac_save_ifs"
slouken@0
  2028
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
slouken@0
  2029
  ;;
slouken@0
  2030
esac
slouken@0
  2031
fi
slouken@0
  2032
SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
slouken@0
  2033
if test -n "$SDL_CONFIG"; then
slouken@0
  2034
  echo "$ac_t""$SDL_CONFIG" 1>&6
slouken@0
  2035
else
slouken@0
  2036
  echo "$ac_t""no" 1>&6
slouken@0
  2037
fi
slouken@0
  2038
slouken@20
  2039
  min_sdl_version=$SDL_VERSION
slouken@0
  2040
  echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
slouken@29
  2041
echo "configure:2042: checking for SDL - version >= $min_sdl_version" >&5
slouken@0
  2042
  no_sdl=""
slouken@0
  2043
  if test "$SDL_CONFIG" = "no" ; then
slouken@0
  2044
    no_sdl=yes
slouken@0
  2045
  else
slouken@0
  2046
    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
slouken@0
  2047
    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
slouken@0
  2048
slouken@0
  2049
    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
slouken@0
  2050
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
slouken@0
  2051
    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
slouken@0
  2052
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
slouken@0
  2053
    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
slouken@0
  2054
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
slouken@0
  2055
    if test "x$enable_sdltest" = "xyes" ; then
slouken@0
  2056
      ac_save_CFLAGS="$CFLAGS"
slouken@0
  2057
      ac_save_LIBS="$LIBS"
slouken@0
  2058
      CFLAGS="$CFLAGS $SDL_CFLAGS"
slouken@0
  2059
      LIBS="$LIBS $SDL_LIBS"
slouken@0
  2060
      rm -f conf.sdltest
slouken@0
  2061
      if test "$cross_compiling" = yes; then
slouken@0
  2062
  echo $ac_n "cross compiling; assumed OK... $ac_c"
slouken@0
  2063
else
slouken@0
  2064
  cat > conftest.$ac_ext <<EOF
slouken@29
  2065
#line 2066 "configure"
slouken@0
  2066
#include "confdefs.h"
slouken@0
  2067
slouken@0
  2068
#include <stdio.h>
slouken@0
  2069
#include <stdlib.h>
slouken@0
  2070
#include <string.h>
slouken@26
  2071
#include "SDL.h"
slouken@0
  2072
slouken@0
  2073
char*
slouken@0
  2074
my_strdup (char *str)
slouken@0
  2075
{
slouken@0
  2076
  char *new_str;
slouken@0
  2077
  
slouken@0
  2078
  if (str)
slouken@0
  2079
    {
slouken@0
  2080
      new_str = malloc ((strlen (str) + 1) * sizeof(char));
slouken@0
  2081
      strcpy (new_str, str);
slouken@0
  2082
    }
slouken@0
  2083
  else
slouken@0
  2084
    new_str = NULL;
slouken@0
  2085
  
slouken@0
  2086
  return new_str;
slouken@0
  2087
}
slouken@0
  2088
slouken@0
  2089
int main ()
slouken@0
  2090
{
slouken@0
  2091
  int major, minor, micro;
slouken@0
  2092
  char *tmp_version;
slouken@0
  2093
slouken@0
  2094
  system ("touch conf.sdltest");
slouken@0
  2095
slouken@0
  2096
  /* HP/UX 9 (%@#!) writes to sscanf strings */
slouken@0
  2097
  tmp_version = my_strdup("$min_sdl_version");
slouken@0
  2098
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
slouken@0
  2099
     printf("%s, bad version string\n", "$min_sdl_version");
slouken@0
  2100
     exit(1);
slouken@0
  2101
   }
slouken@0
  2102
slouken@0
  2103
   if (($sdl_major_version > major) ||
slouken@0
  2104
      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
slouken@0
  2105
      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
slouken@0
  2106
    {
slouken@0
  2107
      return 0;
slouken@0
  2108
    }
slouken@0
  2109
  else
slouken@0
  2110
    {
slouken@0
  2111
      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
  2112
      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
slouken@0
  2113
      printf("*** best to upgrade to the required version.\n");
slouken@0
  2114
      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
slouken@0
  2115
      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
slouken@0
  2116
      printf("*** config.cache before re-running configure\n");
slouken@0
  2117
      return 1;
slouken@0
  2118
    }
slouken@0
  2119
}
slouken@0
  2120
slouken@0
  2121
slouken@0
  2122
EOF
slouken@29
  2123
if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
slouken@0
  2124
then
slouken@0
  2125
  :
slouken@0
  2126
else
slouken@0
  2127
  echo "configure: failed program was:" >&5
slouken@0
  2128
  cat conftest.$ac_ext >&5
slouken@0
  2129
  rm -fr conftest*
slouken@0
  2130
  no_sdl=yes
slouken@0
  2131
fi
slouken@0
  2132
rm -fr conftest*
slouken@0
  2133
fi
slouken@0
  2134
slouken@0
  2135
       CFLAGS="$ac_save_CFLAGS"
slouken@0
  2136
       LIBS="$ac_save_LIBS"
slouken@0
  2137
     fi
slouken@0
  2138
  fi
slouken@0
  2139
  if test "x$no_sdl" = x ; then
slouken@0
  2140
     echo "$ac_t""yes" 1>&6
slouken@0
  2141
     :     
slouken@0
  2142
  else
slouken@0
  2143
     echo "$ac_t""no" 1>&6
slouken@0
  2144
     if test "$SDL_CONFIG" = "no" ; then
slouken@0
  2145
       echo "*** The sdl-config script installed by SDL could not be found"
slouken@0
  2146
       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
slouken@0
  2147
       echo "*** your path, or set the SDL_CONFIG environment variable to the"
slouken@0
  2148
       echo "*** full path to sdl-config."
slouken@0
  2149
     else
slouken@0
  2150
       if test -f conf.sdltest ; then
slouken@0
  2151
        :
slouken@0
  2152
       else
slouken@0
  2153
          echo "*** Could not run SDL test program, checking why..."
slouken@0
  2154
          CFLAGS="$CFLAGS $SDL_CFLAGS"
slouken@0
  2155
          LIBS="$LIBS $SDL_LIBS"
slouken@0
  2156
          cat > conftest.$ac_ext <<EOF
slouken@29
  2157
#line 2158 "configure"
slouken@0
  2158
#include "confdefs.h"
slouken@0
  2159
slouken@0
  2160
#include <stdio.h>
slouken@26
  2161
#include "SDL.h"
slouken@0
  2162
slouken@0
  2163
int main() {
slouken@0
  2164
 return 0; 
slouken@0
  2165
; return 0; }
slouken@0
  2166
EOF
slouken@29
  2167
if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
slouken@0
  2168
  rm -rf conftest*
slouken@0
  2169
   echo "*** The test program compiled, but did not run. This usually means"
slouken@0
  2170
          echo "*** that the run-time linker is not finding SDL or finding the wrong"
slouken@0
  2171
          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
slouken@0
  2172
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
slouken@0
  2173
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
slouken@0
  2174
          echo "*** is required on your system"
slouken@0
  2175
	  echo "***"
slouken@0
  2176
          echo "*** If you have an old version installed, it is best to remove it, although"
slouken@0
  2177
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
slouken@0
  2178
else
slouken@0
  2179
  echo "configure: failed program was:" >&5
slouken@0
  2180
  cat conftest.$ac_ext >&5
slouken@0
  2181
  rm -rf conftest*
slouken@0
  2182
   echo "*** The test program failed to compile or link. See the file config.log for the"
slouken@0
  2183
          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
slouken@0
  2184
          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
slouken@0
  2185
          echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 
slouken@0
  2186
fi
slouken@0
  2187
rm -f conftest*
slouken@0
  2188
          CFLAGS="$ac_save_CFLAGS"
slouken@0
  2189
          LIBS="$ac_save_LIBS"
slouken@0
  2190
       fi
slouken@0
  2191
     fi
slouken@0
  2192
     SDL_CFLAGS=""
slouken@0
  2193
     SDL_LIBS=""
slouken@20
  2194
     { echo "configure: error: *** SDL version $SDL_VERSION not found!" 1>&2; exit 1; }
slouken@20
  2195
slouken@0
  2196
  fi
slouken@0
  2197
  
slouken@0
  2198
  
slouken@0
  2199
  rm -f conf.sdltest
slouken@0
  2200
slouken@0
  2201
CFLAGS="$CFLAGS $SDL_CFLAGS"
slouken@0
  2202
LIBS="$LIBS $SDL_LIBS"
slouken@0
  2203
slouken@0
  2204
# Check whether --enable-music-cmd or --disable-music-cmd was given.
slouken@0
  2205
if test "${enable_music_cmd+set}" = set; then
slouken@0
  2206
  enableval="$enable_music_cmd"
slouken@0
  2207
  :
slouken@0
  2208
else
slouken@0
  2209
  enable_music_cmd=yes
slouken@0
  2210
fi
slouken@0
  2211
slouken@0
  2212
if test x$enable_music_cmd = xyes; then
slouken@0
  2213
    CFLAGS="$CFLAGS -DCMD_MUSIC"
slouken@0
  2214
fi
slouken@0
  2215
# Check whether --enable-music-wave or --disable-music-wave was given.
slouken@0
  2216
if test "${enable_music_wave+set}" = set; then
slouken@0
  2217
  enableval="$enable_music_wave"
slouken@0
  2218
  :
slouken@0
  2219
else
slouken@0
  2220
  enable_music_wave=yes
slouken@0
  2221
fi
slouken@0
  2222
slouken@0
  2223
if test x$enable_music_wave = xyes; then
slouken@0
  2224
    CFLAGS="$CFLAGS -DWAV_MUSIC"
slouken@0
  2225
fi
slouken@1
  2226
# Check whether --enable-music-mod or --disable-music-mod was given.
slouken@1
  2227
if test "${enable_music_mod+set}" = set; then
slouken@1
  2228
  enableval="$enable_music_mod"
slouken@1
  2229
  :
slouken@1
  2230
else
slouken@1
  2231
  enable_music_mod=yes
slouken@1
  2232
fi
slouken@1
  2233
slouken@1
  2234
if test x$enable_music_mod = xyes; then
slouken@1
  2235
    CFLAGS="$CFLAGS -DMOD_MUSIC -I\$(top_srcdir)/mikmod"
slouken@1
  2236
    MUSIC_SUBDIRS="$MUSIC_SUBDIRS mikmod"
slouken@1
  2237
fi
slouken@0
  2238
# Check whether --enable-music-midi or --disable-music-midi was given.
slouken@0
  2239
if test "${enable_music_midi+set}" = set; then
slouken@0
  2240
  enableval="$enable_music_midi"
slouken@0
  2241
  :
slouken@0
  2242
else
slouken@0
  2243
  enable_music_midi=yes
slouken@0
  2244
fi
slouken@0
  2245
slouken@0
  2246
if test x$enable_music_midi = xyes; then
slouken@0
  2247
    CFLAGS="$CFLAGS -DMID_MUSIC -I\$(top_srcdir)/timidity"
slouken@1
  2248
    MUSIC_SUBDIRS="$MUSIC_SUBDIRS timidity"
slouken@0
  2249
fi
slouken@0
  2250
# Check whether --enable-music-mp3 or --disable-music-mp3 was given.
slouken@0
  2251
if test "${enable_music_mp3+set}" = set; then
slouken@0
  2252
  enableval="$enable_music_mp3"
slouken@0
  2253
  :
slouken@0
  2254
else
slouken@0
  2255
  enable_music_mp3=yes
slouken@0
  2256
fi
slouken@0
  2257
slouken@0
  2258
if test x$enable_music_mp3 = xyes; then
slouken@0
  2259
    echo $ac_n "checking for SMPEG headers and libraries""... $ac_c" 1>&6
slouken@29
  2260
echo "configure:2261: checking for SMPEG headers and libraries" >&5
slouken@0
  2261
    have_smpeg=no
slouken@0
  2262
    cat > conftest.$ac_ext <<EOF
slouken@29
  2263
#line 2264 "configure"
slouken@0
  2264
#include "confdefs.h"
slouken@0
  2265
slouken@0
  2266
     #include <smpeg/smpeg.h>
slouken@0
  2267
    
slouken@0
  2268
int main() {
slouken@0
  2269
slouken@0
  2270
    
slouken@0
  2271
; return 0; }
slouken@0
  2272
EOF
slouken@29
  2273
if { (eval echo configure:2274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
slouken@0
  2274
  rm -rf conftest*
slouken@0
  2275
  
slouken@0
  2276
    have_smpeg=yes
slouken@0
  2277
    
slouken@0
  2278
else
slouken@0
  2279
  echo "configure: failed program was:" >&5
slouken@0
  2280
  cat conftest.$ac_ext >&5
slouken@0
  2281
fi
slouken@0
  2282
rm -f conftest*
slouken@0
  2283
    echo "$ac_t""$have_smpeg" 1>&6
slouken@0
  2284
    if test x$have_smpeg = xyes; then
slouken@0
  2285
        CFLAGS="$CFLAGS -DMP3_MUSIC"
slouken@0
  2286
        LIBS="$LIBS -lsmpeg"
slouken@0
  2287
    fi
slouken@0
  2288
fi
slouken@0
  2289
slouken@1
  2290
slouken@1
  2291
slouken@1
  2292
slouken@1
  2293
if test x$enable_music_mod = xyes; then
slouken@1
  2294
  USE_MIKMOD_TRUE=
slouken@1
  2295
  USE_MIKMOD_FALSE='#'
slouken@1
  2296
else
slouken@1
  2297
  USE_MIKMOD_TRUE='#'
slouken@1
  2298
  USE_MIKMOD_FALSE=
slouken@1
  2299
fi
slouken@1
  2300
slouken@1
  2301
slouken@1
  2302
if test x$enable_music_midi = xyes; then
slouken@1
  2303
  USE_TIMIDITY_TRUE=
slouken@1
  2304
  USE_TIMIDITY_FALSE='#'
slouken@1
  2305
else
slouken@1
  2306
  USE_TIMIDITY_TRUE='#'
slouken@1
  2307
  USE_TIMIDITY_FALSE=
slouken@1
  2308
fi
slouken@1
  2309
slouken@0
  2310
# Finally create all the generated files
slouken@0
  2311
trap '' 1 2 15
slouken@0
  2312
cat > confcache <<\EOF
slouken@0
  2313
# This file is a shell script that caches the results of configure
slouken@0
  2314
# tests run on this system so they can be shared between configure
slouken@0
  2315
# scripts and configure runs.  It is not useful on other systems.
slouken@0
  2316
# If it contains results you don't want to keep, you may remove or edit it.
slouken@0
  2317
#
slouken@0
  2318
# By default, configure uses ./config.cache as the cache file,
slouken@0
  2319
# creating it if it does not exist already.  You can give configure
slouken@0
  2320
# the --cache-file=FILE option to use a different cache file; that is
slouken@0
  2321
# what configure does when it calls configure scripts in
slouken@0
  2322
# subdirectories, so they share the cache.
slouken@0
  2323
# Giving --cache-file=/dev/null disables caching, for debugging configure.
slouken@0
  2324
# config.status only pays attention to the cache file if you give it the
slouken@0
  2325
# --recheck option to rerun configure.
slouken@0
  2326
#
slouken@0
  2327
EOF
slouken@0
  2328
# The following way of writing the cache mishandles newlines in values,
slouken@0
  2329
# but we know of no workaround that is simple, portable, and efficient.
slouken@0
  2330
# So, don't put newlines in cache variables' values.
slouken@0
  2331
# Ultrix sh set writes to stderr and can't be redirected directly,
slouken@0
  2332
# and sets the high bit in the cache file unless we assign to the vars.
slouken@0
  2333
(set) 2>&1 |
slouken@0
  2334
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
slouken@0
  2335
  *ac_space=\ *)
slouken@0
  2336
    # `set' does not quote correctly, so add quotes (double-quote substitution
slouken@0
  2337
    # turns \\\\ into \\, and sed turns \\ into \).
slouken@0
  2338
    sed -n \
slouken@0
  2339
      -e "s/'/'\\\\''/g" \
slouken@0
  2340
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
slouken@0
  2341
    ;;
slouken@0
  2342
  *)
slouken@0
  2343
    # `set' quotes correctly as required by POSIX, so do not add quotes.
slouken@0
  2344
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
slouken@0
  2345
    ;;
slouken@0
  2346
  esac >> confcache
slouken@0
  2347
if cmp -s $cache_file confcache; then
slouken@0
  2348
  :
slouken@0
  2349
else
slouken@0
  2350
  if test -w $cache_file; then
slouken@0
  2351
    echo "updating cache $cache_file"
slouken@0
  2352
    cat confcache > $cache_file
slouken@0
  2353
  else
slouken@0
  2354
    echo "not updating unwritable cache $cache_file"
slouken@0
  2355
  fi
slouken@0
  2356
fi
slouken@0
  2357
rm -f confcache
slouken@0
  2358
slouken@0
  2359
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
slouken@0
  2360
slouken@0
  2361
test "x$prefix" = xNONE && prefix=$ac_default_prefix
slouken@0
  2362
# Let make expand exec_prefix.
slouken@0
  2363
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
slouken@0
  2364
slouken@0
  2365
# Any assignment to VPATH causes Sun make to only execute
slouken@0
  2366
# the first set of double-colon rules, so remove it if not needed.
slouken@0
  2367
# If there is a colon in the path, we need to keep it.
slouken@0
  2368
if test "x$srcdir" = x.; then
slouken@0
  2369
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
slouken@0
  2370
fi
slouken@0
  2371
slouken@0
  2372
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
slouken@0
  2373
slouken@0
  2374
# Transform confdefs.h into DEFS.
slouken@0
  2375
# Protect against shell expansion while executing Makefile rules.
slouken@0
  2376
# Protect against Makefile macro expansion.
slouken@0
  2377
cat > conftest.defs <<\EOF
slouken@0
  2378
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
slouken@0
  2379
s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
slouken@0
  2380
s%\[%\\&%g
slouken@0
  2381
s%\]%\\&%g
slouken@0
  2382
s%\$%$$%g
slouken@0
  2383
EOF
slouken@0
  2384
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
slouken@0
  2385
rm -f conftest.defs
slouken@0
  2386
slouken@0
  2387
slouken@0
  2388
# Without the "./", some shells look in PATH for config.status.
slouken@0
  2389
: ${CONFIG_STATUS=./config.status}
slouken@0
  2390
slouken@0
  2391
echo creating $CONFIG_STATUS
slouken@0
  2392
rm -f $CONFIG_STATUS
slouken@0
  2393
cat > $CONFIG_STATUS <<EOF
slouken@0
  2394
#! /bin/sh
slouken@0
  2395
# Generated automatically by configure.
slouken@0
  2396
# Run this file to recreate the current configuration.
slouken@0
  2397
# This directory was configured as follows,
slouken@0
  2398
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
slouken@0
  2399
#
slouken@0
  2400
# $0 $ac_configure_args
slouken@0
  2401
#
slouken@0
  2402
# Compiler output produced by configure, useful for debugging
slouken@0
  2403
# configure, is in ./config.log if it exists.
slouken@0
  2404
slouken@0
  2405
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
slouken@0
  2406
for ac_option
slouken@0
  2407
do
slouken@0
  2408
  case "\$ac_option" in
slouken@0
  2409
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
slouken@0
  2410
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
slouken@0
  2411
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
slouken@0
  2412
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
slouken@0
  2413
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
slouken@0
  2414
    exit 0 ;;
slouken@0
  2415
  -help | --help | --hel | --he | --h)
slouken@0
  2416
    echo "\$ac_cs_usage"; exit 0 ;;
slouken@0
  2417
  *) echo "\$ac_cs_usage"; exit 1 ;;
slouken@0
  2418
  esac
slouken@0
  2419
done
slouken@0
  2420
slouken@0
  2421
ac_given_srcdir=$srcdir
slouken@0
  2422
ac_given_INSTALL="$INSTALL"
slouken@0
  2423
slouken@0
  2424
trap 'rm -fr `echo "
slouken@0
  2425
Makefile
slouken@0
  2426
mikmod/Makefile
slouken@0
  2427
timidity/Makefile
slouken@0
  2428
" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
slouken@0
  2429
EOF
slouken@0
  2430
cat >> $CONFIG_STATUS <<EOF
slouken@0
  2431
slouken@0
  2432
# Protect against being on the right side of a sed subst in config.status.
slouken@0
  2433
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
slouken@0
  2434
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
slouken@0
  2435
$ac_vpsub
slouken@0
  2436
$extrasub
slouken@0
  2437
s%@SHELL@%$SHELL%g
slouken@0
  2438
s%@CFLAGS@%$CFLAGS%g
slouken@0
  2439
s%@CPPFLAGS@%$CPPFLAGS%g
slouken@0
  2440
s%@CXXFLAGS@%$CXXFLAGS%g
slouken@0
  2441
s%@FFLAGS@%$FFLAGS%g
slouken@0
  2442
s%@DEFS@%$DEFS%g
slouken@0
  2443
s%@LDFLAGS@%$LDFLAGS%g
slouken@0
  2444
s%@LIBS@%$LIBS%g
slouken@0
  2445
s%@exec_prefix@%$exec_prefix%g
slouken@0
  2446
s%@prefix@%$prefix%g
slouken@0
  2447
s%@program_transform_name@%$program_transform_name%g
slouken@0
  2448
s%@bindir@%$bindir%g
slouken@0
  2449
s%@sbindir@%$sbindir%g
slouken@0
  2450
s%@libexecdir@%$libexecdir%g
slouken@0
  2451
s%@datadir@%$datadir%g
slouken@0
  2452
s%@sysconfdir@%$sysconfdir%g
slouken@0
  2453
s%@sharedstatedir@%$sharedstatedir%g
slouken@0
  2454
s%@localstatedir@%$localstatedir%g
slouken@0
  2455
s%@libdir@%$libdir%g
slouken@0
  2456
s%@includedir@%$includedir%g
slouken@0
  2457
s%@oldincludedir@%$oldincludedir%g
slouken@0
  2458
s%@infodir@%$infodir%g
slouken@0
  2459
s%@mandir@%$mandir%g
slouken@0
  2460
s%@MAJOR_VERSION@%$MAJOR_VERSION%g
slouken@0
  2461
s%@MINOR_VERSION@%$MINOR_VERSION%g
slouken@0
  2462
s%@MICRO_VERSION@%$MICRO_VERSION%g
slouken@0
  2463
s%@INTERFACE_AGE@%$INTERFACE_AGE%g
slouken@0
  2464
s%@BINARY_AGE@%$BINARY_AGE%g
slouken@0
  2465
s%@VERSION@%$VERSION%g
slouken@0
  2466
s%@LT_RELEASE@%$LT_RELEASE%g
slouken@0
  2467
s%@LT_CURRENT@%$LT_CURRENT%g
slouken@0
  2468
s%@LT_REVISION@%$LT_REVISION%g
slouken@0
  2469
s%@LT_AGE@%$LT_AGE%g
slouken@0
  2470
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
slouken@0
  2471
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
slouken@0
  2472
s%@INSTALL_DATA@%$INSTALL_DATA%g
slouken@0
  2473
s%@PACKAGE@%$PACKAGE%g
slouken@0
  2474
s%@ACLOCAL@%$ACLOCAL%g
slouken@0
  2475
s%@AUTOCONF@%$AUTOCONF%g
slouken@0
  2476
s%@AUTOMAKE@%$AUTOMAKE%g
slouken@0
  2477
s%@AUTOHEADER@%$AUTOHEADER%g
slouken@0
  2478
s%@MAKEINFO@%$MAKEINFO%g
slouken@0
  2479
s%@SET_MAKE@%$SET_MAKE%g
slouken@0
  2480
s%@CC@%$CC%g
slouken@0
  2481
s%@host@%$host%g
slouken@0
  2482
s%@host_alias@%$host_alias%g
slouken@0
  2483
s%@host_cpu@%$host_cpu%g
slouken@0
  2484
s%@host_vendor@%$host_vendor%g
slouken@0
  2485
s%@host_os@%$host_os%g
slouken@0
  2486
s%@build@%$build%g
slouken@0
  2487
s%@build_alias@%$build_alias%g
slouken@0
  2488
s%@build_cpu@%$build_cpu%g
slouken@0
  2489
s%@build_vendor@%$build_vendor%g
slouken@0
  2490
s%@build_os@%$build_os%g
slouken@0
  2491
s%@LD@%$LD%g
slouken@0
  2492
s%@NM@%$NM%g
slouken@0
  2493
s%@LN_S@%$LN_S%g
slouken@0
  2494
s%@RANLIB@%$RANLIB%g
slouken@26
  2495
s%@DLLTOOL@%$DLLTOOL%g
slouken@26
  2496
s%@AS@%$AS%g
slouken@26
  2497
s%@OBJDUMP@%$OBJDUMP%g
slouken@0
  2498
s%@LIBTOOL@%$LIBTOOL%g
slouken@6
  2499
s%@target@%$target%g
slouken@6
  2500
s%@target_alias@%$target_alias%g
slouken@6
  2501
s%@target_cpu@%$target_cpu%g
slouken@6
  2502
s%@target_vendor@%$target_vendor%g
slouken@6
  2503
s%@target_os@%$target_os%g
slouken@0
  2504
s%@SDL_CONFIG@%$SDL_CONFIG%g
slouken@0
  2505
s%@SDL_CFLAGS@%$SDL_CFLAGS%g
slouken@0
  2506
s%@SDL_LIBS@%$SDL_LIBS%g
slouken@1
  2507
s%@MUSIC_SUBDIRS@%$MUSIC_SUBDIRS%g
slouken@1
  2508
s%@USE_MIKMOD_TRUE@%$USE_MIKMOD_TRUE%g
slouken@1
  2509
s%@USE_MIKMOD_FALSE@%$USE_MIKMOD_FALSE%g
slouken@1
  2510
s%@USE_TIMIDITY_TRUE@%$USE_TIMIDITY_TRUE%g
slouken@1
  2511
s%@USE_TIMIDITY_FALSE@%$USE_TIMIDITY_FALSE%g
slouken@0
  2512
slouken@0
  2513
CEOF
slouken@0
  2514
EOF
slouken@0
  2515
slouken@0
  2516
cat >> $CONFIG_STATUS <<\EOF
slouken@0
  2517
slouken@0
  2518
# Split the substitutions into bite-sized pieces for seds with
slouken@0
  2519
# small command number limits, like on Digital OSF/1 and HP-UX.
slouken@0
  2520
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
slouken@0
  2521
ac_file=1 # Number of current file.
slouken@0
  2522
ac_beg=1 # First line for current file.
slouken@0
  2523
ac_end=$ac_max_sed_cmds # Line after last line for current file.
slouken@0
  2524
ac_more_lines=:
slouken@0
  2525
ac_sed_cmds=""
slouken@0
  2526
while $ac_more_lines; do
slouken@0
  2527
  if test $ac_beg -gt 1; then
slouken@0
  2528
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
slouken@0
  2529
  else
slouken@0
  2530
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
slouken@0
  2531
  fi
slouken@0
  2532
  if test ! -s conftest.s$ac_file; then
slouken@0
  2533
    ac_more_lines=false
slouken@0
  2534
    rm -f conftest.s$ac_file
slouken@0
  2535
  else
slouken@0
  2536
    if test -z "$ac_sed_cmds"; then
slouken@0
  2537
      ac_sed_cmds="sed -f conftest.s$ac_file"
slouken@0
  2538
    else
slouken@0
  2539
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
slouken@0
  2540
    fi
slouken@0
  2541
    ac_file=`expr $ac_file + 1`
slouken@0
  2542
    ac_beg=$ac_end
slouken@0
  2543
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
slouken@0
  2544
  fi
slouken@0
  2545
done
slouken@0
  2546
if test -z "$ac_sed_cmds"; then
slouken@0
  2547
  ac_sed_cmds=cat
slouken@0
  2548
fi
slouken@0
  2549
EOF
slouken@0
  2550
slouken@0
  2551
cat >> $CONFIG_STATUS <<EOF
slouken@0
  2552
slouken@0
  2553
CONFIG_FILES=\${CONFIG_FILES-"Makefile
slouken@0
  2554
mikmod/Makefile
slouken@0
  2555
timidity/Makefile
slouken@0
  2556
"}
slouken@0
  2557
EOF
slouken@0
  2558
cat >> $CONFIG_STATUS <<\EOF
slouken@0
  2559
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
slouken@0
  2560
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
slouken@0
  2561
  case "$ac_file" in
slouken@0
  2562
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
slouken@0
  2563
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
slouken@0
  2564
  *) ac_file_in="${ac_file}.in" ;;
slouken@0
  2565
  esac
slouken@0
  2566
slouken@0
  2567
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
slouken@0
  2568
slouken@0
  2569
  # Remove last slash and all that follows it.  Not all systems have dirname.
slouken@0
  2570
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
slouken@0
  2571
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
slouken@0
  2572
    # The file is in a subdirectory.
slouken@0
  2573
    test ! -d "$ac_dir" && mkdir "$ac_dir"
slouken@0
  2574
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
slouken@0
  2575
    # A "../" for each directory in $ac_dir_suffix.
slouken@0
  2576
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
slouken@0
  2577
  else
slouken@0
  2578
    ac_dir_suffix= ac_dots=
slouken@0
  2579
  fi
slouken@0
  2580
slouken@0
  2581
  case "$ac_given_srcdir" in
slouken@0
  2582
  .)  srcdir=.
slouken@0
  2583
      if test -z "$ac_dots"; then top_srcdir=.
slouken@0
  2584
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
slouken@0
  2585
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
slouken@0
  2586
  *) # Relative path.
slouken@0
  2587
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
slouken@0
  2588
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
slouken@0
  2589
  esac
slouken@0
  2590
slouken@0
  2591
  case "$ac_given_INSTALL" in
slouken@0
  2592
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
slouken@0
  2593
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
slouken@0
  2594
  esac
slouken@0
  2595
slouken@0
  2596
  echo creating "$ac_file"
slouken@0
  2597
  rm -f "$ac_file"
slouken@0
  2598
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
slouken@0
  2599
  case "$ac_file" in
slouken@0
  2600
  *Makefile*) ac_comsub="1i\\
slouken@0
  2601
# $configure_input" ;;
slouken@0
  2602
  *) ac_comsub= ;;
slouken@0
  2603
  esac
slouken@0
  2604
slouken@0
  2605
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
slouken@0
  2606
  sed -e "$ac_comsub
slouken@0
  2607
s%@configure_input@%$configure_input%g
slouken@0
  2608
s%@srcdir@%$srcdir%g
slouken@0
  2609
s%@top_srcdir@%$top_srcdir%g
slouken@0
  2610
s%@INSTALL@%$INSTALL%g
slouken@0
  2611
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
slouken@0
  2612
fi; done
slouken@0
  2613
rm -f conftest.s*
slouken@0
  2614
slouken@0
  2615
EOF
slouken@0
  2616
cat >> $CONFIG_STATUS <<EOF
slouken@0
  2617
slouken@0
  2618
EOF
slouken@0
  2619
cat >> $CONFIG_STATUS <<\EOF
slouken@0
  2620
slouken@0
  2621
exit 0
slouken@0
  2622
EOF
slouken@0
  2623
chmod +x $CONFIG_STATUS
slouken@0
  2624
rm -fr confdefs* $ac_clean_files
slouken@0
  2625
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
slouken@0
  2626