Revision 21474,
1.3 KB
checked in by ghudson, 20 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r21473,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | dnl Autoconf extension macros for libIDL |
---|
2 | AC_DEFUN([AC_CPP_ACCEPT_IDL], |
---|
3 | [AC_CACHE_CHECK([if C preprocessor likes IDL], |
---|
4 | ac_cv_cpp_accept_idl, |
---|
5 | [AC_TRY_CPP([ |
---|
6 | #pragma prefix "foo.org" |
---|
7 | module FOO { |
---|
8 | typedef unsigned long long big; |
---|
9 | interface BAR { |
---|
10 | readonly attribute big number; |
---|
11 | }; |
---|
12 | }; |
---|
13 | ], |
---|
14 | ac_cv_cpp_accept_idl=yes, |
---|
15 | ac_cv_cpp_accept_idl=no)])]) |
---|
16 | |
---|
17 | AC_DEFUN([AC_CPP_PIPE_STDIN], |
---|
18 | [AC_CACHE_CHECK([if C preprocessor can read from stdin], |
---|
19 | ac_cv_cpp_pipe_stdin, |
---|
20 | [AC_REQUIRE_CPP |
---|
21 | if echo | $CPP - 2>/dev/null 1>&2 ; then |
---|
22 | ac_cv_cpp_pipe_stdin=yes |
---|
23 | else |
---|
24 | ac_cv_cpp_pipe_stdin=no |
---|
25 | fi]) |
---|
26 | if test $ac_cv_cpp_pipe_stdin = yes ; then |
---|
27 | AC_DEFINE(HAVE_CPP_PIPE_STDIN) |
---|
28 | fi]) |
---|
29 | |
---|
30 | AC_DEFUN([AC_UPDATE_IF_CHANGED], |
---|
31 | [if test -f "$2"; then |
---|
32 | if cmp -s "$1" "$2" 2>/dev/null; then |
---|
33 | echo "$1 is unchanged" |
---|
34 | else |
---|
35 | echo "$1 has changed" |
---|
36 | rm -f "$1" |
---|
37 | cp "$2" "$1" |
---|
38 | fi |
---|
39 | fi]) |
---|
40 | |
---|
41 | AC_DEFUN([AC_CPP_NOSTDINC], |
---|
42 | [AC_CACHE_CHECK([how to ignore standard include path], |
---|
43 | ac_cv_cpp_nostdinc, |
---|
44 | [saved_CPPFLAGS="$CPPFLAGS" |
---|
45 | CPPFLAGS="$CPPFLAGS -I-" |
---|
46 | AC_TRY_CPP(,ac_cv_cpp_nostdinc=-I-, |
---|
47 | [CPPFLAGS="$saved_CPPFLAGS -I" |
---|
48 | AC_TRY_CPP(,ac_cv_cpp_nostdinc=-I,)]) |
---|
49 | CPPFLAGS="$saved_CPPFLAGS"]) |
---|
50 | AC_DEFINE_UNQUOTED(CPP_NOSTDINC, "$ac_cv_cpp_nostdinc")]) |
---|
Note: See
TracBrowser
for help on using the repository browser.