Changeset 4981 for trunk/psLib/configure.ac
- Timestamp:
- Sep 8, 2005, 5:02:06 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/configure.ac (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/configure.ac
r4956 r4981 22 22 SUBDIR="etc src test" dnl don't include 'swig', as it is optional 23 23 24 SRCPATH= "`pwd`/src"24 SRCPATH='$(top_srcdir)/src' 25 25 SRCDIRS="sys astro db fft fits imageops math mathtypes types xml" 26 26 SRCINC=`echo "${SRCDIRS=}" | ${SED} "s|\(\\w\+\)|-I\${SRCPATH=}/\1|g"` … … 28 28 SRCSUBLIBS=`echo "${SRCDIRS=}" | ${SED} "s|\(\\w\+\)|\1/libpslib\1.la|g"` 29 29 AC_SUBST(SRCSUBLIBS,${SRCSUBLIBS=}) 30 CFLAGS="${CFLAGS=} -I${SRCPATH=} ${SRCINC=}"31 30 AC_SUBST(SRCINC,${SRCINC=}) 32 31 … … 61 60 AC_PREFIX_DEFAULT([`pwd`]) 62 61 test "$prefix" = NONE && prefix=`pwd` 63 64 dnl Setup the info for psLib for pkg-config65 PSLIB_CFLAGS="-I${includedir}"66 62 67 63 dnl check for standard language functionality … … 111 107 112 108 AC_MSG_CHECKING([MySQL cflags]) 113 MYSQL_CFLAGS="`${MYSQL_CONFIG} --cflags`" 109 MYSQL_CFLAGS="`${MYSQL_CONFIG} --include`" 110 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${MYSQL_CFLAGS}" 114 111 AC_MSG_RESULT([${MYSQL_CFLAGS}]) 115 CFLAGS="${CFLAGS=} ${MYSQL_CFLAGS}"116 112 117 113 AC_MSG_CHECKING([MySQL link options]) 118 MYSQL_L DFLAGS="`${MYSQL_CONFIG} --libs`"119 AC_MSG_RESULT([${MYSQL_LDFLAGS}])120 PSLIB_LIBS="${PSLIB_LIBS=} ${MYSQL_LDFLAGS}"114 MYSQL_LIBS="`${MYSQL_CONFIG} --libs`" 115 PSLIB_LIBS="${PSLIB_LIBS=} ${MYSQL_LIBS}" 116 AC_MSG_RESULT([${MYSQL_LIBS}]) 121 117 AC_SUBST(TST_PSDB,"tst_psDB") dnl enable the test for psDB 122 118 119 dnl AC_RUN_IFELSE() uses CFLAGS to find mysql_version.h 120 TMP_CFLAGS=${CFLAGS} 121 CFLAGS=${MYSQL_CFLAGS} 123 122 AC_RUN_IFELSE([AC_LANG_PROGRAM( 124 123 [[#include <stdlib.h> … … 132 131 } 133 132 ]])], [], [AC_MSG_ERROR([MySQL 4.1.2 or newer is required. Obtain it at http://www.mysql.com or use --with-mysql to specify location.])]) 134 133 CFLAGS=${TMP_CFLAGS} 135 134 else 135 dnl FIXME 136 136 CFLAGS="${CFLAGS=} -DOMIT_PSDB" 137 137 PSLIB_CFLAGS="${PSLIB_CFLAGS=} -DOMIT_PSDB" 138 138 AC_MSG_RESULT([disable building MySQL functionality]) 139 139 fi 140 141 AC_SUBST([MYSQL_CFLAGS]) 140 142 141 143 dnl ----------------- CFITSIO options -------------------- … … 150 152 [AS_HELP_STRING(--with-cfitsio-lib=DIR,Specify CFITSIO library directory.)], 151 153 [CFITSIO_LDFLAGS="-L$withval"]) 152 CFLAGS="${CFLAGS=} $CFITSIO_CFLAGS" 153 dnl LDFLAGS="${LDFLAGS} $CFITSIO_LDFLAGS -lcfitsio" 154 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${CFITSIO_CFLAGS}" 154 155 PSLIB_LIBS="${PSLIB_LIBS=} $CFITSIO_LDFLAGS -lcfitsio" 155 156 AC_CHECK_HEADERS([fitsio.h],[], 156 157 [AC_MSG_ERROR([CFITSIO is required. Obtain it at http://heasarc.gsfc.nasa.gov/docs/software/fitsio or use --with-cfitsio to specify location.])]) 158 159 AC_SUBST([CFITSIO_CFLAGS]) 157 160 158 161 dnl ------------------ FFTW3 options --------------------- … … 167 170 [AS_HELP_STRING(--with-fftw3-lib=DIR,Specify FFTW version 3 library directory.)], 168 171 [FFTW3_LDFLAGS="-L$withval"]) 169 CFLAGS="${CFLAGS=} $FFTW3_CFLAGS" 170 dnl LDFLAGS="${LDFLAGS=} $FFTW3_LDFLAGS -lfftw3f" 172 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${FFTW3_CFLAGS}" 171 173 PSLIB_LIBS="${PSLIB_LIBS=} $FFTW3_LDFLAGS -lfftw3f" 172 174 AC_MSG_CHECKING([FFTW header files]) 173 175 AC_CHECK_HEADERS([fftw3.h],[], 174 176 [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.])]) 177 178 AC_SUBST([FFTW3_CFLAGS]) 175 179 176 180 dnl -------------------- GSL options --------------------- … … 184 188 GSL_CFLAGS="`${GSL_CONFIG} --cflags`" 185 189 AC_MSG_RESULT([${GSL_CFLAGS}]) 186 CFLAGS="${CFLAGS=} ${GSL_CFLAGS}" 187 dnl LDFLAGS="${LDFLAGS=} `${GSL_CONFIG} --libs`" 190 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${GSL_CFLAGS}" 188 191 PSLIB_LIBS="${PSLIB_LIBS=} `${GSL_CONFIG} --libs`" 192 193 AC_SUBST([GSL_CFLAGS]) 189 194 190 195 dnl ------------------- XML2 options --------------------- … … 198 203 XML_CFLAGS="`${XML_CONFIG} --cflags`" 199 204 AC_MSG_RESULT([${XML_CFLAGS}]) 200 CFLAGS="${CFLAGS=} ${XML_CFLAGS}" 201 dnl LDFLAGS="${LDFLAGS=} `${XML_CONFIG} --libs`" 205 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${XML_CFLAGS}" 202 206 PSLIB_LIBS="${PSLIB_LIBS=} `${XML_CONFIG} --libs`" 203 PSLIB_CFLAGS="${PSLIB_CFLAGS=} `${XML_CONFIG} --cflags`" 204 207 208 AC_SUBST([XML_CFLAGS]) 205 209 206 210 dnl ------------------- SWIG options ---------------------
Note:
See TracChangeset
for help on using the changeset viewer.
