configure.ac 2.79 KB
Newer Older
Adam Mercer's avatar
Adam Mercer committed
1
AC_PREREQ([2.63])
2
AC_INIT([LALSuite],[6.20.1],[lal-discuss@ligo.org])
3
AC_CONFIG_SRCDIR([configure.ac])
4 5
AC_CONFIG_AUX_DIR([gnuscripts])
AC_CONFIG_MACRO_DIR([gnuscripts])
6 7 8
AC_PREFIX_DEFAULT(["`pwd`/_inst"])
AC_CONFIG_FILES([Makefile])
AM_INIT_AUTOMAKE([1.11 foreign subdir-objects color-tests parallel-tests])
9

10
LALSUITE_DISTCHECK_CONFIGURE_FLAGS
11

12 13 14
# always prefer uninstalled LAL libraries
LALSUITE_PKG_SUFFIX="-uninstalled"
export LALSUITE_PKG_SUFFIX
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

# provide LAL library enable/disable options
LALSUITE_ENABLE_ALL_LAL
doxygen=true
lal=true
LALSUITE_ENABLE_LALFRAME
LALSUITE_ENABLE_LALMETAIO
LALSUITE_ENABLE_LALXML
LALSUITE_ENABLE_LALSIMULATION
LALSUITE_ENABLE_LALBURST
LALSUITE_ENABLE_LALDETCHAR
LALSUITE_ENABLE_LALINSPIRAL
LALSUITE_ENABLE_LALSTOCHASTIC
LALSUITE_ENABLE_LALPULSAR
LALSUITE_ENABLE_LALINFERENCE
LALSUITE_ENABLE_LALAPPS

# determine subdirectories to configure/build
AC_DEFUN([lalsuite_config_subdir],[
34 35
  m4_pushdef([lowercase],m4_translit([[$1]], [A-Z], [a-z]))
  m4_pushdef([uppercase],m4_translit([[$1]], [a-z], [A-Z]))
36

37
  # if $1 is enabled
38 39
  AS_IF([test "x${lowercase}" = xtrue],[

40 41 42
    # add $1 build directory to PKG_CONFIG_PATH
    LALSUITE_ADD_PATH(PKG_CONFIG_PATH,"`pwd`/lowercase")
    export PKG_CONFIG_PATH
43

44 45
    # configure $1
    AC_CONFIG_SUBDIRS(lowercase)
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69

    # set enable/disable string
    uppercase[]_ENABLE_VAL=ENABLED
  ],[
    uppercase[]_ENABLE_VAL=DISABLED
  ])

  m4_popdef([lowercase])
  m4_popdef([uppercase])
])
lalsuite_config_subdir([doxygen])
lalsuite_config_subdir([lal])
lalsuite_config_subdir([lalframe])
lalsuite_config_subdir([lalmetaio])
lalsuite_config_subdir([lalxml])
lalsuite_config_subdir([lalsimulation])
lalsuite_config_subdir([lalburst])
lalsuite_config_subdir([laldetchar])
lalsuite_config_subdir([lalinspiral])
lalsuite_config_subdir([lalstochastic])
lalsuite_config_subdir([lalpulsar])
lalsuite_config_subdir([lalinference])
lalsuite_config_subdir([lalapps])

70
AC_SUBST([ac_configure_args])
71 72 73 74
AC_OUTPUT
echo "
==================================================
LALSuite has now been successfully configured:
75

76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
* LALFrame library support is $LALFRAME_ENABLE_VAL
* LALMetaIO library support is $LALMETAIO_ENABLE_VAL
* LALXML library support is $LALXML_ENABLE_VAL
* LALSimulation library support is $LALSIMULATION_ENABLE_VAL
* LALBurst library support is $LALBURST_ENABLE_VAL
* LALDetChar library support is $LALDETCHAR_ENABLE_VAL
* LALInspiral library support is $LALINSPIRAL_ENABLE_VAL
* LALStochastic library support is $LALSTOCHASTIC_ENABLE_VAL
* LALPulsar library support is $LALPULSAR_ENABLE_VAL
* LALInference library support is $LALINFERENCE_ENABLE_VAL
* LALApps library support is $LALAPPS_ENABLE_VAL

and will be installed under the directory:

${prefix}

92 93
Now run 'make' to build LALSuite,
and run 'make install' to install LALSuite.
94 95
==================================================
"