|
Revision 1, 1.0 KB
(checked in by cristy, 3 months ago)
|
|
|
| Line | |
|---|
| 1 | # -*- Autoconf -*- |
|---|
| 2 | # Process this file with autoconf to produce a configure script. |
|---|
| 3 | |
|---|
| 4 | AC_PREREQ([2.62]) |
|---|
| 5 | AC_INIT([Multipole], [1.0.0], [http://www.multipole.org], [Multipole]) |
|---|
| 6 | AC_CONFIG_SRCDIR([multipole.h]) |
|---|
| 7 | AC_CONFIG_HEADERS([config/config.h]) |
|---|
| 8 | |
|---|
| 9 | AC_CANONICAL_TARGET([]) |
|---|
| 10 | |
|---|
| 11 | # Ensure that make can run correctly |
|---|
| 12 | AM_SANITY_CHECK |
|---|
| 13 | |
|---|
| 14 | AM_INIT_AUTOMAKE([1.10.1 subdir-objects dist-zip dist-bzip2 dist-lzma foreign]) |
|---|
| 15 | |
|---|
| 16 | # Checks for programs. |
|---|
| 17 | AC_PROG_CXX |
|---|
| 18 | AC_PROG_CC |
|---|
| 19 | AC_PROG_CPP |
|---|
| 20 | AC_PROG_INSTALL |
|---|
| 21 | AC_PROG_LN_S |
|---|
| 22 | AC_PROG_MAKE_SET |
|---|
| 23 | AC_PROG_RANLIB |
|---|
| 24 | |
|---|
| 25 | # Checks for libraries. |
|---|
| 26 | |
|---|
| 27 | # Checks for header files. |
|---|
| 28 | AC_CHECK_HEADERS([limits.h malloc.h memory.h stdlib.h string.h unistd.h]) |
|---|
| 29 | |
|---|
| 30 | # Checks for typedefs, structures, and compiler characteristics. |
|---|
| 31 | |
|---|
| 32 | # |
|---|
| 33 | # Find math library |
|---|
| 34 | # |
|---|
| 35 | LIB_MATH='' |
|---|
| 36 | AC_CHECK_LIB(m,sqrt,LIB_MATH="-lm",,) |
|---|
| 37 | LIBS="$LIB_MATH $LIBS" |
|---|
| 38 | |
|---|
| 39 | # Checks for library functions. |
|---|
| 40 | AC_FUNC_MALLOC |
|---|
| 41 | AC_CHECK_FUNCS([floor pow sqrt]) |
|---|
| 42 | |
|---|
| 43 | AC_CONFIG_FILES([Makefile]) |
|---|
| 44 | AC_OUTPUT |
|---|