~ubuntu-branches/ubuntu/hardy/libmodplug/hardy

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2004-09-10 14:05:53 UTC
  • Revision ID: james.westby@ubuntu.com-20040910140553-3lxaulb7xmwa8fsl
Tags: upstream-0.7
ImportĀ upstreamĀ versionĀ 0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Process this file with autoconf to produce a configure script.
 
2
AC_INIT(Makefile.am)
 
3
 
 
4
AM_INIT_AUTOMAKE(libmodplug, 0.7)
 
5
AM_CONFIG_HEADER(src/config.h)
 
6
 
 
7
dnl Checks for programs.
 
8
dnl  I am disabling static libraries here because otherwise libtool insists on
 
9
dnl  compiling everything twice -- once with and once without -fPIC.  Pisses me
 
10
dnl  off.  Just do everything with -fPIC, damnit!  Compiling everything twice
 
11
dnl  probably wastes more cycles than not using -fPIC saves.
 
12
AC_DISABLE_STATIC
 
13
AM_DISABLE_STATIC
 
14
AC_PROG_CC
 
15
AC_PROG_CXX
 
16
AC_C_BIGENDIAN     #this will cause problems when cross-compiling...
 
17
AM_PROG_LIBTOOL
 
18
AC_HEADER_STDC
 
19
 
 
20
CXXFLAGS="$CXXFLAGS -fno-exceptions -Wall -ffast-math -D_REENTRANT"
 
21
# CXXFLAGS="-fno-exceptions -g -Wall -ffast-math -D_REENTRANT `glib-config --cflags`"
 
22
 
 
23
case ${target_os} in
 
24
        *sun* | *solaris*)
 
25
                CXXFLAGS="$CXXFLAGS -fpermissive"
 
26
                ;;
 
27
esac
 
28
 
 
29
AC_OUTPUT(Makefile
 
30
          src/Makefile
 
31
          libmodplug.pc)