[13670] | 1 | #
|
---|
| 2 | # Copyright (C) 2000, 2001, 2002 Loic Dachary <[email protected]>
|
---|
| 3 | #
|
---|
| 4 | # This program is free software; you can redistribute it and/or modify
|
---|
| 5 | # it under the terms of the GNU General Public License as published by
|
---|
| 6 | # the Free Software Foundation; either version 2 of the License, or
|
---|
| 7 | # (at your option) any later version.
|
---|
| 8 | #
|
---|
| 9 | # This program is distributed in the hope that it will be useful,
|
---|
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 12 | # GNU General Public License for more details.
|
---|
| 13 | #
|
---|
| 14 | # You should have received a copy of the GNU General Public License
|
---|
| 15 | # along with this program; if not, write to the Free Software
|
---|
| 16 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
---|
| 17 | #
|
---|
| 18 | AC_INIT(config.h.in)
|
---|
| 19 | VERSION=`cat .version`
|
---|
| 20 | AC_SUBST(VERSION)
|
---|
| 21 | AC_PREREQ(2.13)
|
---|
| 22 |
|
---|
[15562] | 23 |
|
---|
| 24 | dnl get $target_cpu, $target_vendor, and $target_os
|
---|
| 25 | dnl (as well as host_*)
|
---|
| 26 | AC_CANONICAL_SYSTEM
|
---|
| 27 |
|
---|
[13670] | 28 | AC_CONFIG_HEADER(config.h)
|
---|
| 29 |
|
---|
| 30 | AC_PROG_MAKE_SET
|
---|
| 31 |
|
---|
[15562] | 32 | AC_MSG_CHECKING(to see if architecture is 64-bit)
|
---|
| 33 | arch_64bit=no
|
---|
| 34 | case "$host_cpu" in
|
---|
| 35 | x86_64) arch_64bit=yes ;;
|
---|
| 36 | esac
|
---|
| 37 |
|
---|
| 38 | if test "$arch_64bit" = yes; then
|
---|
| 39 | AC_MSG_RESULT(yes)
|
---|
| 40 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 41 | COMPAT32BITFLAGS="-m32"
|
---|
| 42 | fi
|
---|
| 43 | else
|
---|
| 44 | AC_MSG_RESULT(no)
|
---|
| 45 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 46 | COMPAT32BITFLAGS=
|
---|
| 47 | fi
|
---|
| 48 | fi
|
---|
| 49 | AC_SUBST(COMPAT32BITFLAGS)
|
---|
| 50 |
|
---|
[13670] | 51 | dnl
|
---|
| 52 | dnl Unicode version used by unac, as published at http://www.unicode.org/Public/
|
---|
| 53 | dnl
|
---|
| 54 | UNICODE_VERSION=3.2.0
|
---|
| 55 | AC_SUBST(UNICODE_VERSION)
|
---|
| 56 |
|
---|
| 57 | AC_PROG_CC
|
---|
| 58 | AC_AIX
|
---|
| 59 | AC_COMPILE_WARNINGS
|
---|
| 60 |
|
---|
| 61 | AC_PROG_LIBTOOL
|
---|
| 62 |
|
---|
| 63 | AC_PATH_PROG(PERL, perl, /usr/bin/perl)
|
---|
| 64 | AC_PATH_PROG(SH, sh, /bin/sh)
|
---|
| 65 |
|
---|
| 66 | AM_MAINTAINER_MODE
|
---|
| 67 |
|
---|
| 68 | AM_ICONV
|
---|
| 69 |
|
---|
| 70 | #AC_CHECK_FUNCS(iconv_open,,AC_MSG_ERROR([
|
---|
| 71 | #iconv_open not found try to install replacement from
|
---|
| 72 | #http://www.gnu.org/software/libiconv/
|
---|
| 73 | #ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.8.tar.gz]))
|
---|
| 74 |
|
---|
| 75 | AC_CHECK_FUNCS(vsnprintf)
|
---|
| 76 |
|
---|
| 77 | AC_OUTPUT(Makefile)
|
---|