-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
78 lines (61 loc) · 1.8 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
AC_INIT([resample_image], [4.16.0], [[email protected]])
AM_INIT_AUTOMAKE([foreign -Wall])
AM_MAINTAINER_MODE([disable])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_SED
#~ # -- Readline -- there has got to be a better way to do this ?
#~ AC_CHECK_FUNC(tgetent,
#~ [READLINE_SUPPLIB=],
#~ [AC_CHECK_LIB(tinfo, tgetent,
#~ [READLINE_SUPPLIB=-ltinfo],
#~ [AC_CHECK_LIB(curses, tgetent,
#~ [READLINE_SUPPLIB=-lcurses],
#~ [AC_CHECK_LIB(ncurses, tgetent,
#~ [READLINE_SUPPLIB=-lncurses],
#~ [AC_CHECK_LIB(termcap, tgetent,
#~ [READLINE_SUPPLIB=-ltermcap],
#~ [AC_MSG_WARN(No termcap nor curses library found)])
#~ ])
#~ ])
#~ ])
#~ ])
#~ AC_CHECK_LIB(readline,readline,[READLINELIB="-lreadline -lhistory -lncurses"],
#~ AC_MSG_ERROR([
#~ You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build
#~ this program!
#~ ]), [$READLINE_SUPPLIB])
#~ LIBS="$LIBS $PROCSTATLIB $READLINELIB $READLINE_SUPPLIB"
# ---------- CIAO PKG_CONFIG stuff
PKG_CONFIG_PATH=$prefix/lib/pkgconfig:$prefix/ots/lib/pkgconfig:$PKG_CONFIG_PATH
PKG_CONFIG_PATH=./pkgconfig:${PKG_CONFIG_PATH}
export PKG_CONFIG_PATH
PKG_CHECK_MODULES( [CIAO], [
readline
ascdm
cxcparam
stk
err
ds
dmimgio
])
# -------- dmimgio.h ------------
foo=$CPPFLAGS
CPPFLAGS=$CIAO_CFLAGS
AC_CHECK_HEADER( dmimgio.h, [],
AC_MSG_ERROR([Cannot locate dmimgio.h header file], [1])
)
CPPFLAGS=$foo
# ------------
AM_CONDITIONAL([LINUX], [test x`uname` == xLinux])
# -------------- Which files to configure ----------
AC_CONFIG_FILES([
Makefile
src/Makefile
wrapper/Makefile
test/Makefile
])
AC_CONFIG_FILES([wrapper/resample_image:wrapper/wrapper.sh],[chmod +x wrapper/resample_image])
# -- Go! -----------
AC_OUTPUT