[a0bcf1] | 1 | # -*- Autoconf -*-
|
---|
| 2 | # Process this file with autoconf to produce a configure script.
|
---|
| 3 |
|
---|
| 4 | AC_PREREQ(2.59)
|
---|
| 5 | AC_INIT(PCP_Utilities, 1.0, heber@ins.uni-bonn.de)
|
---|
[02bc3c] | 6 | AC_CONFIG_SRCDIR([src/CreateGaAs.c])
|
---|
[a0bcf1] | 7 | AC_CONFIG_HEADER([config.h])
|
---|
| 8 |
|
---|
| 9 | AM_INIT_AUTOMAKE
|
---|
| 10 |
|
---|
| 11 | # Checks for programs.
|
---|
| 12 | AC_PROG_CC
|
---|
[02bc3c] | 13 | AC_PROG_CXX
|
---|
[e9c14d] | 14 | AC_PATH_PROG([PERL],[perl])
|
---|
[dc89d1] | 15 | AC_PATH_PROG([SHELL],[sh])
|
---|
[02bc3c] | 16 | AC_PROG_AWK
|
---|
[a0bcf1] | 17 | AM_MISSING_PROG([DOXYGEN], [doxygen])
|
---|
| 18 |
|
---|
[02bc3c] | 19 | AC_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])
|
---|
| 21 | AC_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])
|
---|
| 23 | AC_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])
|
---|
| 25 | AC_SET_COMPILER_FLAGS([$enable_optimization], [$enable_debugging], [$enable_warnings])
|
---|
[a0bcf1] | 26 |
|
---|
| 27 | # Checks for header files.
|
---|
| 28 | AC_HEADER_STDC
|
---|
| 29 | AC_CHECK_HEADERS([stdlib.h string.h])
|
---|
| 30 |
|
---|
| 31 | # Checks for typedefs, structures, and compiler characteristics.
|
---|
| 32 | AC_C_CONST
|
---|
| 33 | AC_TYPE_SIZE_T
|
---|
| 34 |
|
---|
| 35 | # Checks for library functions.
|
---|
| 36 | AC_FUNC_MALLOC
|
---|
| 37 | AC_FUNC_REALLOC
|
---|
[02bc3c] | 38 | AC_CHECK_LIB(m, sqrt, ,AC_MSG_ERROR([compatible libc math library not found]))
|
---|
[71dc4e] | 39 | # check for GNU Scientific Library
|
---|
[9842d8] | 40 | AC_SEARCH_LIBS(cblas_sdot, blas cblas gslblas gslcblas)
|
---|
[71dc4e] | 41 | AC_CHECK_LIB(gsl,main)
|
---|
[b5279f0] | 42 |
|
---|
[02bc3c] | 43 | AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
|
---|
| 44 |
|
---|
[b5279f0] | 45 | # test suite
|
---|
| 46 | AC_CONFIG_TESTDIR(tests)
|
---|
| 47 | AC_CONFIG_FILES([tests/atlocal tests/Makefile])
|
---|
[dac5c5] | 48 | AC_CONFIG_FILES([tests/NanoCreator], [chmod +x tests/NanoCreator])
|
---|
[b5279f0] | 49 |
|
---|
[a0bcf1] | 50 | AC_CHECK_FUNCS([pow sqrt strchr strrchr strstr])
|
---|
[02bc3c] | 51 | AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile])
|
---|
[bad406] | 52 | AC_CONFIG_FILES([src/Nanotubes.pl src/ReSequenceDX.pl src/BOSSMatcher.pl])
|
---|
| 53 | AC_CONFIG_FILES([src/average_result.sh src/CalculateDensity.sh src/CalculateMass.sh src/config2xyz.sh src/convert2old.sh src/convertpdb.sh src/gather_all_results.sh src/gather_averaged_results.sh src/gather_result.sh src/grep_shielding.sh src/meas2pdb.sh src/AdaptiveANOVA.sh src/CreateFromXYZ.sh src/dynamicANOVA.sh src/SortByRings.sh])
|
---|
[a0bcf1] | 54 | AC_OUTPUT
|
---|
[bad406] | 55 |
|
---|