source: Sophya/trunk/ArchTOIPipe/configure.in@ 1608

Last change on this file since 1608 was 1477, checked in by aubourg, 24 years ago

multi rep

File size: 2.1 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(kernel/toi.cc)
3AC_CONFIG_HEADER(conf.h)
4
5AC_ARG_WITH(sophya, [ --with-sophya Compile and link with SOPHYA],
6 use_sophya=1, use_sophya=0)
7
8AC_SUBST(use_sophya)
9
10if test `uname` = OSF1 -a -z "$CXX"; then
11 if test -x /usr/bin/cxx; then
12 echo "using cxx on alpha"
13 CXX=cxx
14 export CXX
15 fi
16fi
17
18AC_PROG_CC
19AC_PROG_CXX
20
21AC_CHECK_SIZEOF(short)
22AC_CHECK_SIZEOF(int)
23AC_CHECK_SIZEOF(long)
24AC_CHECK_SIZEOF(float)
25AC_CHECK_SIZEOF(double)
26AC_CHECK_SIZEOF(long double)
27
28dnl look for cfitsio include and cfitsio library
29dnl if installed in /usr/local, nothing to do
30
31AC_MSG_CHECKING("for cfitsio lib")
32MACHDIR=`uname`-$CXX
33if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then
34 cfitslibdir='-L$(ARCHBASEREP)/$(MACHDIR)/Libs'
35elif test -f $CFITSIOLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
36 cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)/Libs'
37elif test -f $CFITSIOLIBDIR/$MACHDIR/libcfitsio.a; then
38 cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)'
39elif test -f $CFITSIOLIBDIR/`uname`/lib/libcfitsio.a; then
40 cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`/lib
41elif test -f $CFITSIOLIBDIR/`uname`/libcfitsio.a; then
42 cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`
43elif test -f $CFITSIOLIBDIR/libcfitsio.a; then
44 cfitslibdir='-L$(CFITSIOLIBDIR)'
45elif test -f $CFITSIODIR/libcfitsio.a; then
46 cfitslibdir='-L$(CFITSIODIR)'
47elif test -f /usr/local/lib/libcfitsio.a; then
48 cfitslibdir=""
49else
50 AC_MSG_ERROR("Cannot find cfitsio library")
51fi
52AC_MSG_RESULT($cfitslibdir)
53AC_SUBST(cfitslibdir)
54
55AC_MSG_CHECKING("for cfitsio includes")
56if test -f $CFITSIODIR/fitsio.h; then
57 cfitsincdir='-I$(CFITSIODIR)'
58elif test -f /usr/local/include/fitsio.h; then
59 cfitsincdir=""
60else
61 AC_MSG_ERROR("Cannot find cfitsio include fitsio.h")
62fi
63AC_MSG_RESULT($cfitsincdir)
64AC_SUBST(cfitsincdir)
65
66dnl Checks for libraries.
67dnl AC_CHECK_LIB(cfitsio, ffread,,AC_MSG_ERROR("Cannot find cfitsio library"))
68AC_CHECK_LIB(m, sin)
69
70dnl Checks for header files.
71AC_HEADER_STDC
72
73outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile"
74if [[ $use_sophya = 1 ]]; then
75 outfiles="$outfiles sophya/Makefile"
76fi
77
78AC_OUTPUT($outfiles)
79
Note: See TracBrowser for help on using the repository browser.