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