FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gnuplot/m4/apple.m4 at branch-5-4-stable · gnuplot/gnuplot · GitHub
gnuplot
gnuplot
Repository navigation
Code
Pull requests
2
(2)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
gnuplot
/
m4
/
apple.m4
Copy path
More file actions
More file actions
Latest commit
History
History
History
57 lines (56 loc) · 2.01 KB
Breadcrumbs
gnuplot
/
m4
/
apple.m4
Copy path
File metadata and controls
57 lines (56 loc) · 2.01 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
GP_APPLE
#
-------------------------------
#
Sets is_apple={yes, no}
#
Checks for Aquaterm framework if is_apple is 'yes',
#
adds framework to LDFLAGS and -ObjC to CFLAGS
AC_DEFUN
(
[
GP_APPLE
]
,
[
AC_MSG_CHECKING
(
[
for Mac OS X
]
)
AC_EGREP_CPP
(
yes
,
[
#if defined(__APPLE__) && defined(__MACH__)
yes
#endif
]
,
[
AC_MSG_RESULT
(
[
yes
]
)
is_apple=yes
AC_ARG_WITH
(
aquaterm
,
[
--with-aquaterm include support for AquaTerm on OSX
]
,
[
if test "$withval" == yes; then
GP_HAVE_FRAMEWORK(AquaTerm,
[
#import <AquaTerm/AQTAdapter.h>
]
,
[
]
,
[
CFLAGS="$CFLAGS -ObjC"; LDFLAGS="$LDFLAGS -framework Foundation -framework AquaTerm"
]
,
[
]
)
fi
]
)
]
,
[
AC_MSG_RESULT
(
[
no
]
)
is_apple=no
]
)
dnl AC_EGREP_CPP
]
)
#
GP_HAVE_FRAMEWORK(name, [prologue], [body], [action-if-found], [action-if-not-found])
#
-------------------------------
#
Check for framework 'name' by trying to compile a program composed
#
of prologue and body while linking to the framework
#
DEFINE HAVE_FRAMEWORK_NAME=1 if test passes.
#
This macro should be generally useful.
AC_DEFUN
(
[
GP_HAVE_FRAMEWORK
]
,
[
AC_MSG_CHECKING
(
[
for
$1
framework presence
]
)
ac_gnuplot_save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -framework Foundation -framework
$1
-F/Library/Frameworks"
ac_gnuplot_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -F/Library/Frameworks"
ac_gnuplot_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -F/Library/Frameworks"
AC_LANG_PUSH
(
Objective
C
)
AC_LINK_IFELSE
(
[
AC_LANG_PROGRAM
(
[
$2
]
,
[
$3
]
)
]
,
eval
"gnuplot_framework_
$1
=yes"
,
eval
"gnuplot_framework_
$1
=no"
)
AC_LANG_POP
(
Objective
C
)
LDFLAGS="$ac_gnuplot_save_LDFLAGS"
CFLAGS="$ac_gnuplot_save_CFLAGS"
CXXFLAGS="$ac_gnuplot_save_CXXFLAGS"
if test "$gnuplot_framework_
$1
" = yes; then
AC_DEFINE
(
m4_toupper
(
HAVE_FRAMEWORK_
$1
)
,
1
,
[
Define to 1 if you're using the
$1
framework on Mac OS X
]
)
AC_MSG_RESULT
(
[
yes
]
)
[
$4
]
else
AC_MSG_RESULT
(
[
no
]
)
[
$5
]
fi
]
)
Back
|
FazBrowse Home
|
New Git URL