running automake & autoconf

Jason Moxham J.L.Moxham@maths.soton.ac.uk
Mon, 3 Mar 2003 11:48:30 +0000


On Monday 03 Mar 2003 9:21 am, Niels M=F6ller wrote:

 Karl Hasselstr=F6m <kha@treskal.com> writes:
> > Am I doing something wrong (not giving correct command line options,
> > not running things in the right order) or do I simply need another
> > version of automake than 1.4? doc/configuration is a bit vague on thi=
s
> > subject.
>
> I don't know exactly what gmp expects, but upgrading automake sounds
> like something to try. automake-1.4 is pretty old. gmp's configure.in
> says it needs autoconf-2.52, so you can probably upgrade to the latest
> versions of autoconf (2.57) and automake (1.7.3).
>
> /Niels
> _______________________________________________
> gmp-devel mailing list
> gmp-devel@swox.com
> https://gmplib.org/mailman/listinfo/gmp-devel

Using autoconf 2.57 and automake 1.7.3 on slackware linux box
I get this error=20


bash-2.05a$ cd gmp-4.1.2
bash-2.05a$ aclocal -I mpfr
bash-2.05a$ autoconf
configure.in:1967: warning: AC_ENABLE_SHARED is m4_require'd but is not=20
m4_defun'd
configure.in:1967: warning: AC_PROG_LIBTOOL is m4_require'd but is not=20
m4_defun'd
configure.in:1500: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
      If this token and others are legitimate, please use m4_pattern_allo=
w.
      See the Autoconf documentation.
configure.in:1567: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.in:1643: error: possibly undefined macro: AC_CHECK_LIBM
configure:6262: error: possibly undefined macro: AC_PROG_NM
configure:10394: error: possibly undefined macro: AC_ENABLE_SHARED
bash-2.05a$
bash-2.05a$
bash-2.05a$
bash-2.05a$ automake
configure.in:1967: warning: AC_ENABLE_SHARED is m4_require'd but is not=20
m4_defun'd
configure.in:1967: warning: AC_PROG_LIBTOOL is m4_require'd but is not=20
m4_defun'd
Makefile.am:289: Libtool library used but `LIBTOOL' is undefined
Makefile.am:289:
Makefile.am:289: The usual way to define `LIBTOOL' is to add `AC_PROG_LIB=
TOOL'
Makefile.am:289: to `configure.in' and run `aclocal' and `autoconf' again=
=2E
cxx/Makefile.am:28: Libtool library used but `LIBTOOL' is undefined
cxx/Makefile.am:28:
cxx/Makefile.am:28: The usual way to define `LIBTOOL' is to add=20
`AC_PROG_LIBTOOL'
cxx/Makefile.am:28: to `configure.in' and run `aclocal' and `autoconf' ag=
ain.
demos/expr/Makefile.am:35: library used but `RANLIB' is undefined
demos/expr/Makefile.am:35:
demos/expr/Makefile.am:35: The usual way to define `RANLIB' is to add=20
`AC_PROG_RANLIB'
demos/expr/Makefile.am:35: to `configure.in' and run `autoconf' again.
mpbsd/Makefile.am:50: Libtool library used but `LIBTOOL' is undefined
mpbsd/Makefile.am:50:
mpbsd/Makefile.am:50: The usual way to define `LIBTOOL' is to add=20
`AC_PROG_LIBTOOL'
mpbsd/Makefile.am:50: to `configure.in' and run `aclocal' and `autoconf'=20
again.
mpf/Makefile.am:27: Libtool library used but `LIBTOOL' is undefined
mpf/Makefile.am:27:
mpf/Makefile.am:27: The usual way to define `LIBTOOL' is to add=20
`AC_PROG_LIBTOOL'
mpf/Makefile.am:27: to `configure.in' and run `aclocal' and `autoconf' ag=
ain.
mpfr/Makefile.am:35: library used but `RANLIB' is undefined
mpfr/Makefile.am:35:
mpfr/Makefile.am:35: The usual way to define `RANLIB' is to add=20
`AC_PROG_RANLIB'
mpfr/Makefile.am:35: to `configure.in' and run `autoconf' again.
mpfr/Makefile.am:31: `CFLAGS' is a user variable, you should not override=
 it;
mpfr/Makefile.am:31: use `AM_CFLAGS' instead.
mpfr/tests/Makefile.am:25: `CFLAGS' is a user variable, you should not=20
override it;
mpfr/tests/Makefile.am:25: use `AM_CFLAGS' instead.
mpn/Makefile.am:37: Libtool library used but `LIBTOOL' is undefined
mpn/Makefile.am:37:
mpn/Makefile.am:37: The usual way to define `LIBTOOL' is to add=20
`AC_PROG_LIBTOOL'
mpn/Makefile.am:37: to `configure.in' and run `aclocal' and `autoconf' ag=
ain.
mpq/Makefile.am:27: Libtool library used but `LIBTOOL' is undefined
mpq/Makefile.am:27:
mpq/Makefile.am:27: The usual way to define `LIBTOOL' is to add=20
`AC_PROG_LIBTOOL'
mpq/Makefile.am:27: to `configure.in' and run `aclocal' and `autoconf' ag=
ain.
mpz/Makefile.am:28: Libtool library used but `LIBTOOL' is undefined
mpz/Makefile.am:28:
mpz/Makefile.am:28: The usual way to define `LIBTOOL' is to add=20
`AC_PROG_LIBTOOL'
mpz/Makefile.am:28: to `configure.in' and run `aclocal' and `autoconf' ag=
ain.
printf/Makefile.am:28: Libtool library used but `LIBTOOL' is undefined
printf/Makefile.am:28:
printf/Makefile.am:28: The usual way to define `LIBTOOL' is to add=20
`AC_PROG_LIBTOOL'
printf/Makefile.am:28: to `configure.in' and run `aclocal' and `autoconf'=
=20
again.
scanf/Makefile.am:27: Libtool library used but `LIBTOOL' is undefined
scanf/Makefile.am:27:
scanf/Makefile.am:27: The usual way to define `LIBTOOL' is to add=20
`AC_PROG_LIBTOOL'
scanf/Makefile.am:27: to `configure.in' and run `aclocal' and `autoconf'=20
again.
tests/Makefile.am:32: Libtool library used but `LIBTOOL' is undefined
tests/Makefile.am:32:
tests/Makefile.am:32: The usual way to define `LIBTOOL' is to add=20
`AC_PROG_LIBTOOL'
tests/Makefile.am:32: to `configure.in' and run `aclocal' and `autoconf'=20
again.
tests/rand/Makefile.am:38: Libtool library used but `LIBTOOL' is undefine=
d
tests/rand/Makefile.am:38:
tests/rand/Makefile.am:38: The usual way to define `LIBTOOL' is to add=20
`AC_PROG_LIBTOOL'
tests/rand/Makefile.am:38: to `configure.in' and run `aclocal' and `autoc=
onf'=20
again.
tune/Makefile.am:31: Libtool library used but `LIBTOOL' is undefined
tune/Makefile.am:31:
tune/Makefile.am:31: The usual way to define `LIBTOOL' is to add=20
`AC_PROG_LIBTOOL'
tune/Makefile.am:31: to `configure.in' and run `aclocal' and `autoconf' a=
gain.
bash-2.05a$
bash-2.05a$
bash-2.05a$
bash-2.05a$
bash-2.05a$
bash-2.05a$ autoheader
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,
WARNING:             [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
bash-2.05a$
bash-2.05a$
bash-2.05a$
bash-2.05a$ ./configure
checking build system type... athlon-pc-linux-gnu
checking host system type... athlon-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... n=
o
checking compiler gcc -g -O2 -fomit-frame-pointer ... yes
checking compiler gcc -g -O2 -fomit-frame-pointer  -mcpu=3Dathlon... no
checking compiler gcc -g -O2 -fomit-frame-pointer  -mcpu=3Dpentiumpro... =
yes
checking compiler gcc -g -O2 -fomit-frame-pointer -mcpu=3Dpentiumpro =20
-march=3Dathlon... no
checking compiler gcc -g -O2 -fomit-frame-pointer -mcpu=3Dpentiumpro =20
-march=3Dpentiumpro... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
using ABI=3D"standard"
      CC=3D"gcc"
      CFLAGS=3D"-g -O2 -fomit-frame-pointer -mcpu=3Dpentiumpro -march=3Dp=
entiumpro"
      CPPFLAGS=3D""
      MPN_PATH=3D" x86/k7/mmx x86/k7 x86 generic"
checking for gcc option to accept ANSI C... none needed
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for function prototypes... yes
checking for ANSI C header files... no
checking for string.h... (cached) yes
checking for ar... ar
=2E/configure: AC_PROG_NM: command not found
=2E/configure: AC_LIBTOOL_WIN32_DLL: command not found
=2E/configure: AC_PROG_LIBTOOL: command not found
checking if the assembler knows about MMX instructions... yes
checking for ANSI C header files... (cached) no
checking whether time.h and sys/time.h may both be included... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/processor.h usability... no
checking sys/processor.h presence... no
checking for sys/processor.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking sys/syssgi.h usability... no
checking sys/syssgi.h presence... no
checking for sys/syssgi.h... no
checking sys/systemcfg.h usability... no
checking sys/systemcfg.h presence... no
checking for sys/systemcfg.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking whether fgetc is declared... yes
checking whether fscanf is declared... yes
checking whether optarg is declared... yes
checking whether ungetc is declared... yes
checking whether vfprintf is declared... yes
checking return type of signal handlers... void
checking for intmax_t... yes
checking for long double... yes
checking for long long... yes
checking for ptrdiff_t... no
checking for quad_t... yes
checking for preprocessor stringizing operator... yes
checking for working volatile... yes
checking whether <stdarg.h> exists and works... yes
checking whether gcc __attribute__ ((const)) works... yes
checking whether gcc __attribute__ ((malloc)) works... no
checking whether gcc __attribute__ ((mode (XX))) works... yes
checking whether gcc __attribute__ ((noreturn)) works... yes
checking for inline... yes
=2E/configure: AC_CHECK_LIBM: command not found
checking for working alloca.h... yes
checking for alloca (via gmp-impl.h)... yes
checking how to allocate temporary memory... alloca
checking whether byte ordering is bigendian... no
checking format of `double' floating point... IEEE little endian
checking for alarm... yes
checking for clock... yes
checking for clock_gettime... no
checking for cputime... no
checking for getpagesize... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for localeconv... yes
checking for memset... yes
checking for mmap... yes
checking for mprotect... yes
checking for obstack_vprintf... yes
checking for popen... yes
checking for processor_info... no
checking for read_real_time... no
checking for sigaction... yes
checking for sigaltstack... yes
checking for sigstack... yes
checking for syssgi... no
checking for strchr... yes
checking for strnlen... yes
checking for strtoul... yes
checking for sysconf... yes
checking for sysctl... yes
checking for sysctlbyname... no
checking for times... yes
checking for vsnprintf... yes
checking whether vsnprintf works... yes
checking whether sscanf needs writable input... no
checking for suitable m4... m4
checking if m4wrap produces spurious output... no
checking how to switch to text section... .text
checking how to switch to data section... .data
checking what assembly label suffix to use... :
checking how to export a symbol... .globl
checking if globals are prefixed by underscore... no
checking how to switch to read-only data section... .section    .rodata
checking if the export directive needs an attribute...
checking for assembler .type directive... .type $1,@$2
checking for assembler .size directive... .size $1,$2
checking what prefix to use for a local label... configure: WARNING: ""=20
failure
configure: WARNING: cannot determine local label, using default L
L
checking how to define a 32-bit word... ./configure: ./conftest.o: Permis=
sion=20
denied
=2E/configure: ./conftest.o: Permission denied
configure: error: cannot determine how to define a 32-bit word
bash-2.05a$>



However if I don't run aclocal -I mpfr then everthing appears OK ie make =
check=20
works , and I have not noticed anything wrong with my exe's

Jason