19 |
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
20 |
# Boston, MA 02111-1307, USA. |
# Boston, MA 02111-1307, USA. |
21 |
|
|
22 |
# serial 8 |
# serial 9 |
23 |
|
|
24 |
# m4_OBSTACK |
# m4_OBSTACK |
25 |
# ---------- |
# ---------- |
26 |
# Use the libc supplied version of obstacks if available. |
# Use the libc supplied version of obstacks if available. |
27 |
AC_DEFUN([m4_OBSTACK], |
AC_DEFUN([m4_OBSTACK], |
28 |
[AC_PREREQ(2.56)dnl We use the new compiler based header checking in 2.56 |
[AC_PREREQ(2.56)dnl We use the compiler based header checking in 2.56 |
29 |
AC_BEFORE([gl_OBSTACK], [m4_OBSTACK]) |
AC_BEFORE([gl_OBSTACK], [m4_OBSTACK]) |
30 |
AC_ARG_WITH([included-obstack], |
AC_ARG_WITH([included-obstack], |
31 |
[AC_HELP_STRING([--with-included-obstack], |
[AC_HELP_STRING([--with-included-obstack], |
39 |
|
|
40 |
OBSTACK_H= |
OBSTACK_H= |
41 |
if test $ac_cv_func_obstack = yes; then |
if test $ac_cv_func_obstack = yes; then |
|
# The system provides obstack.h, `#include <obstack.h>' will work |
|
42 |
INCLUDE_OBSTACK_H='#include <obstack.h>' |
INCLUDE_OBSTACK_H='#include <obstack.h>' |
43 |
else |
else |
44 |
# The system does not provide obstack.h, or the user has specified |
INCLUDE_OBSTACK_H='#include <gnu/obstack.h>' |
|
# to build without it. Unfortunately we can't leave an obstack.h |
|
|
# file around anywhere in the include path if the system also |
|
|
# provides an implementation: So we ship gnulib/lib/obstack.h, and link |
|
|
# it to m4/obstack.h at Make time (to substitute the missing system |
|
|
# supplied version). Hence, `#include <m4/obstack.h>' will work. |
|
|
INCLUDE_OBSTACK_H='#include <m4/obstack.h>' |
|
45 |
OBSTACK_H=obstack.h |
OBSTACK_H=obstack.h |
46 |
fi |
fi |
47 |
AC_SUBST(OBSTACK_H) |
AC_SUBST(OBSTACK_H) |