mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 21:19:24 +00:00
Fix a small autoconf macro bug.
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
2000-08-19 Bruno Haible <bruno@linuix.math.u-bordeaux.fr>
|
2000-08-19 Bruno Haible <bruno@linuix.math.u-bordeaux.fr>
|
||||||
|
|
||||||
|
* src/configure.in: Rename cache variable gp_cxx_throw_decl to
|
||||||
|
gp_cv_cxx_throw_decl.
|
||||||
|
|
||||||
* src/key-list.cc (Key_List::output_hash_function): When outputting
|
* src/key-list.cc (Key_List::output_hash_function): When outputting
|
||||||
__inline, take advantage of C++ compilers which have inline.
|
__inline, take advantage of C++ compilers which have inline.
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
dnl autoconf configuration for gperf/src
|
dnl autoconf configuration for gperf/src
|
||||||
|
|
||||||
dnl Copyright (C) 1998 Free Software Foundation, Inc.
|
dnl Copyright (C) 1998, 2000 Free Software Foundation, Inc.
|
||||||
dnl written by Douglas C. Schmidt (schmidt@ics.uci.edu)
|
dnl written by Douglas C. Schmidt (schmidt@ics.uci.edu)
|
||||||
dnl
|
dnl
|
||||||
dnl This file is part of GNU GPERF.
|
dnl This file is part of GNU GPERF.
|
||||||
@@ -40,16 +40,16 @@ dnl
|
|||||||
dnl checks for compiler characteristics
|
dnl checks for compiler characteristics
|
||||||
dnl
|
dnl
|
||||||
AC_MSG_CHECKING([for working throw()])
|
AC_MSG_CHECKING([for working throw()])
|
||||||
AC_CACHE_VAL(gp_cxx_throw_decl,[
|
AC_CACHE_VAL(gp_cv_cxx_throw_decl,[
|
||||||
AC_LANG_SAVE()
|
AC_LANG_SAVE()
|
||||||
AC_LANG_CPLUSPLUS()
|
AC_LANG_CPLUSPLUS()
|
||||||
AC_TRY_COMPILE([#include <stdlib.h>
|
AC_TRY_COMPILE([#include <stdlib.h>
|
||||||
void operator delete (void* ptr) throw() {}], [],
|
void operator delete (void* ptr) throw() {}], [],
|
||||||
gp_cxx_throw_decl=yes, gp_cxx_throw_decl=no)
|
gp_cv_cxx_throw_decl=yes, gp_cv_cxx_throw_decl=no)
|
||||||
AC_LANG_RESTORE()
|
AC_LANG_RESTORE()
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT([$]gp_cxx_throw_decl)
|
AC_MSG_RESULT([$]gp_cv_cxx_throw_decl)
|
||||||
if test [$]gp_cxx_throw_decl = yes; then
|
if test [$]gp_cv_cxx_throw_decl = yes; then
|
||||||
AC_DEFINE(HAVE_THROW_DECL)
|
AC_DEFINE(HAVE_THROW_DECL)
|
||||||
fi
|
fi
|
||||||
dnl
|
dnl
|
||||||
|
|||||||
Reference in New Issue
Block a user