Changeset 3136 for trunk/psLib/configure.in
- Timestamp:
- Feb 4, 2005, 2:53:10 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/configure.in (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/configure.in
r3127 r3136 20 20 CFLAGS="${CFLAGS=} -Wall -std=c99 -D_GNU_SOURCE" 21 21 FFLAGS="-fno-second-underscore -O -fno-f2c" 22 LDFLAGS= -release 522 LDFLAGS="-release 5" 23 23 24 24 dnl Setup the info for psLib for pkg-config 25 25 PSLIB_CFLAGS="-I${includedir=}" 26 PSLIB_LIBS="-L$ libdir-lpslib"26 PSLIB_LIBS="-L${libdir} -lpslib" 27 27 28 28 dnl ----------------- CFITSIO options -------------------- … … 39 39 CFLAGS="${CFLAGS=} $CFITSIO_CFLAGS" 40 40 PSLIB_LIBS="${PSLIB_LIBS=} $CFITSIO_LDFLAGS -lcfitsio" 41 AC_CHECK_HEADERS([fitsio.h],[], 42 [AC_MSG_ERROR([CFITSIO is required. Obtain it at http://heasarc.gsfc.nasa.gov/docs/software/fitsio or use --with-cfitsio to specify location.])]) 41 43 42 44 dnl ------------------ FFTW3 options --------------------- … … 53 55 CFLAGS="${CFLAGS=} $FFTW3_CFLAGS" 54 56 PSLIB_LIBS="${PSLIB_LIBS=} $FFTW3_LDFLAGS -lfftw3f" 57 AC_CHECK_HEADERS([fftw3.h],[], 58 [AC_MSG_ERROR([FFTW version 3 with float support is required. Obtain it at http://www.fftw.org/or use --with-fftw3 to specify location.])]) 55 59 56 60 dnl -------------------- GSL options --------------------- 57 AC_ARG_WITH(gsl, 58 [AS_HELP_STRING([--with-gsl=DIR],[Specify location of GSL.])], 59 [AC_CHECK_PROG(GSL_CONFIG, $withval/bin/gsl-config, $withval/bin/gsl-config)], 60 [AC_CHECK_PROG(GSL_CONFIG, gsl-config, `which gsl-config`)]) 61 if test "$GSL_CONFIG" != "" 62 then 63 CFLAGS="${CFLAGS=} `${GSL_CONFIG} --cflags`" 64 PSLIB_LIBS="${PSLIB_LIBS=} `${GSL_CONFIG} --libs`" 65 fi 66 61 AC_ARG_WITH(gsl-config, 62 [AS_HELP_STRING([--with-gsl-config=FILE],[Specify location of gsl-config.])], 63 [GSL_CONFIG=$withval], 64 [GSL_CONFIG=`which gsl-config`]) 65 AC_CHECK_FILE($GSL_CONFIG,[], 66 [AC_MSG_ERROR([GSL is required. Obtain it at http://www.gnu.org/software/gsl or use --with-gsl-config to specify location.])]) 67 CFLAGS="${CFLAGS=} `${GSL_CONFIG} --cflags`" 68 PSLIB_LIBS="${PSLIB_LIBS=} `${GSL_CONFIG} --libs`" 69 67 70 dnl ------------------- XML2 options --------------------- 68 AC_ARG_WITH(xml, 69 [AS_HELP_STRING([--with-xml=DIR],[Specify location of libxml2.])], 70 [AC_CHECK_PROG(XML_CONFIG, $withval/bin/xml2-config, $withval/bin/xml2-config)], 71 [AC_CHECK_PROG(XML_CONFIG, xml2-config, `which xml2-config`)]) 72 if test "$XML_CONFIG" != "" 73 then 74 CFLAGS="${CFLAGS=} `${XML_CONFIG} --cflags`" 75 PSLIB_LIBS="${PSLIB_LIBS=} `${XML_CONFIG} --libs`" 76 fi 71 AC_ARG_WITH(xml2-config, 72 [AS_HELP_STRING([--with-xml2-config=FILE],[Specify location of xml2-config.])], 73 [XML_CONFIG=$withval], 74 [XML_CONFIG=`which xml2-config`]) 75 AC_CHECK_FILE($XML_CONFIG,[], 76 [AC_MSG_ERROR([GNOME XML C parser is required. Obtain it at http://www.xmlsoft.org or use --with-xml2-config to specify location.])]) 77 CFLAGS="${CFLAGS=} `${XML_CONFIG} --cflags`" 78 PSLIB_LIBS="${PSLIB_LIBS=} `${XML_CONFIG} --libs`" 77 79 78 80 dnl ------------------- SWIG options --------------------- 79 81 AC_ARG_WITH(swig, 80 82 [AS_HELP_STRING([--with-swig=FILE],[Specify location of SWIG executable.])], 81 [AC_CHECK_PROG(SWIG, $withval, $withval)], 82 [AC_CHECK_PROG(SWIG, swig, `which swig`)]) 83 if test "$SWIG" == "" 84 then 85 AC_MSG_ERROR([SWIG is required. Obtain it at www.swig.org or use --with-swig to specify its install location.]); 86 fi 83 [SWIG=$withval], 84 [SWIG=`which swig`]) 85 AC_CHECK_FILE($SWIG,[], 86 [AC_MSG_ERROR([SWIG is required. Obtain it at www.swig.org or use --with-swig to specify its install location.])]) 87 87 AC_SUBST(SWIG,$SWIG) 88 88 … … 94 94 if test "$PERL" == "" 95 95 then 96 AC_MSG_ERROR([PERL is required. Use --with-perl to specify its install location.]) ;96 AC_MSG_ERROR([PERL is required. Use --with-perl to specify its install location.]) 97 97 fi 98 98 AC_SUBST(PERL,$PERL)
Note:
See TracChangeset
for help on using the changeset viewer.
