~ubuntu-branches/ubuntu/precise/judy/precise

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Troy Heber
  • Date: 2007-05-21 15:07:50 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070521150750-khuc7e3iblyvi0a9
Tags: 1.0.5-1
* Fixed alignment issue, (Closes: #401124)
* Update packaging, policy, debhelper, etc.
* Removed old BIT cruft from rules
* Upstream has propper distclean target (Closes: #424425)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
AC_PREREQ(2.57)
2
 
AC_INIT(Judy, 1.0.0, doug@sourcejudy.com)
 
2
AC_INIT(Judy, 1.0.5, dougbaskins@yahoo.com)
3
3
 
4
4
AM_MAINTAINER_MODE
5
5
 
179
179
dnl  Figure out if we are 32-bit or 64-bit (LP64)
180
180
AC_CHECK_SIZEOF(void *)
181
181
if test "$ac_cv_sizeof_void_p" = 8; then 
182
 
    AC_MSG_RESULT(Building 64-bit)
 
182
    AC_MSG_RESULT(Detected 64-bit Build Environment)
183
183
    CFLAGS="-DJU_64BIT $CFLAGS"
184
184
else 
185
 
    AC_MSG_RESULT(Building 32-bit)
186
 
    CFLAGS="-UJU_64BIT $CFLAGS"
187
 
fi
 
185
    AC_MSG_RESULT(Detected 32-bit Build Environment)
 
186
      CFLAGS="-UJU_64BIT $CFLAGS"
 
187
fi
 
188
 
 
189
AC_ARG_ENABLE(32-bit, [  --enable-32-bit          Generate code for a 32-bit environment],
 
190
              b32="$enableval", b32="no")
 
191
if test x"$b32" != "xno"; then
 
192
    AC_MSG_RESULT(Configured to Build 32-bit)
 
193
    if test x"$GCC" = xyes; then
 
194
      CFLAGS="-UJU_64BIT -m32 $CFLAGS"
 
195
    else
 
196
      CFLAGS="-UJU_64BIT $CFLAGS"
 
197
    fi
 
198
fi
 
199
 
 
200
AC_ARG_ENABLE(64-bit, [  --enable-64-bit          Generate code for a 64-bit environment],
 
201
              b64="$enableval", b64="no")
 
202
if test x"$b64" != "xno"; then
 
203
    AC_MSG_RESULT(Configured to Building 64-bit)
 
204
    if test x"$GCC" = xyes; then
 
205
      CFLAGS="-DJU_64BIT -m64 $CFLAGS"
 
206
    else
 
207
      CFLAGS="-DJU_64BIT $CFLAGS"
 
208
    fi
 
209
fi
 
210
 
188
211
 
189
212
 
190
213
#  dnl Determine whether or not we're compiling for a 64-bit system by looking