/usr/bin/gnuplot symlinks packageing problems were fixed gor gnuplot-x11
[gnuplot] / m4 / apple.m4
1 ## ------------------------------- ##
2 ## Check for Apple Mac OS X        ##
3 ## From Leigh Smith                ##
4 ## ------------------------------- ##
5
6 # serial 1
7
8 AC_DEFUN([GP_APPLE],
9 [AC_MSG_CHECKING(for Apple MacOS X)
10 AC_EGREP_CPP(yes,
11 [#if defined(__APPLE__) && defined(__MACH__)
12   yes
13 #endif
14 ], 
15    [ AC_MSG_RESULT(yes)
16      AC_CHECK_LIB(aquaterm, aqtInit, 
17      [ LIBS="-laquaterm $LIBS -framework Foundation"
18        CFLAGS="$CFLAGS -ObjC"
19        AC_DEFINE(HAVE_LIBAQUATERM,1,
20                  [Define to 1 if you're using the aquaterm library on Mac OS X])
21      ],[], -lobjc)
22      is_apple=yes
23    ],
24    AC_MSG_RESULT(no)
25    is_apple=no)
26 ])
27