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