source: util/configure.ac@ dc89d1

Last change on this file since dc89d1 was dc89d1, checked in by Frederik Heber <heber@…>, 17 years ago

new script files and check in configure for these scripts, including @SHELL@ replacement

  • Property mode set to 100644
File size: 2.1 KB
Line 
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT(PCP_Utilities, 1.0, heber@ins.uni-bonn.de)
6AC_CONFIG_SRCDIR([src/CreateGaAs.c])
7AC_CONFIG_HEADER([config.h])
8
9AM_INIT_AUTOMAKE
10
11# Checks for programs.
12AC_PROG_CC
13AC_PROG_CXX
14AC_PATH_PROG([PERL],[perl])
15AC_PATH_PROG([SHELL],[sh])
16AC_PROG_AWK
17AM_MISSING_PROG([DOXYGEN], [doxygen])
18
19AC_ARG_ENABLE([debug],AS_HELP_STRING([--enable-debug],[debugging level of compiler. Argument is yes or debugging level. (default is no)]),
20 [enable_debugging=$enableval], [enable_debugging=no])
21AC_ARG_ENABLE([optimization],AS_HELP_STRING([--enable-optimization],[Optimization level of compiler. Argument is yes or optimization. (default is 2)]),
22 [enable_optimization=$enableval], [enable_optimization=2])
23AC_ARG_ENABLE([warnings], AS_HELP_STRING([--enable-warnings],[Output compiler warnings, argument is none, some or full (default is some).]),
24 [enable_warnings=$enableval], [enable_warnings=some])
25AC_SET_COMPILER_FLAGS([$enable_optimization], [$enable_debugging], [$enable_warnings])
26
27# Checks for header files.
28AC_HEADER_STDC
29AC_CHECK_HEADERS([stdlib.h string.h])
30
31# Checks for typedefs, structures, and compiler characteristics.
32AC_C_CONST
33AC_TYPE_SIZE_T
34
35# Checks for library functions.
36AC_FUNC_MALLOC
37AC_FUNC_REALLOC
38AC_CHECK_LIB(m, sqrt, ,AC_MSG_ERROR([compatible libc math library not found]))
39# check for GNU Scientific Library
40AC_SEARCH_LIBS(cblas_sdot, blas cblas gslblas gslcblas)
41AC_CHECK_LIB(gsl,main)
42
43AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
44
45# test suite
46AC_CONFIG_TESTDIR(tests)
47AC_CONFIG_FILES([tests/atlocal tests/Makefile])
48AC_CONFIG_FILES([tests/NanoCreator], [chmod +x tests/NanoCreator])
49
50AC_CHECK_FUNCS([pow sqrt strchr strrchr strstr])
51AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile])
52AC_CONFIG_FILES([ src/AdaptiveANOVA.sh src/CreateFromXYZ.sh src/dynamicANOVA.sh src/Nanotubes.pl src/ReSequenceDX.pl src/BOSSMatcher.pl src/SortByRings.sh])
53AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.