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
|
dnl GA_CHECK_LIB_GADAP : check for gadap library
dnl args : action-if-yes, action-if-no
AC_DEFUN([GA_CHECK_LIB_GADAP],
[
ga_check_gadap="no"
GADAP_LIBS=
GADAP_CFLAGS=
GADAP_LDFLAGS=
ac_save_LIBS="$LIBS"
ac_save_CPPFLAGS="$CPPFLAGS"
ac_save_LDFLAGS="$LDFLAGS"
dnl check for the header gadap.h, gadap_open
AC_CHECK_HEADER([gadap.h],
[ AC_CHECK_LIB([gadap], [gadap_open],
[ ga_check_gadap=yes
],
[
GADAP_LDFLAGS=
GADAP_LIBS=
LIBS="$ac_save_LIBS"
LDFLAGS="$ac_save_LDFLAGS"
])
],
[
GADAP_CFLAGS=
CPPFLAGS="$ac_save_CPPFLAGS"
])
LIBS="$ac_save_LIBS"
CPPFLAGS="$ac_save_CPPFLAGS"
LDFLAGS="$ac_save_LDFLAGS"
if test $ga_check_gadap = 'yes'; then
m4_if([$1], [], [:], [$1])
else
m4_if([$2], [], [:], [$2])
fi
# AC_SUBST([GADAP_LIBS])
# AC_SUBST([GADAP_LDFLAGS])
# AC_SUBST([GADAP_CFLAGS])
])
|