mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-22 17:06:36 -06:00
Add long-forgotten macro definition from acinclude.m4 r10161 that is sometimes still needed
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13582 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
967cbf8c7a
commit
b27cf4b130
@ -123,6 +123,36 @@ int main ()
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([SCANF_QD_CHECK],
|
||||
[
|
||||
AC_CACHE_CHECK([if scanf supports %qd conversions],
|
||||
am_cv_scanf_qd,
|
||||
AC_TRY_RUN([
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main ()
|
||||
{
|
||||
long long int d;
|
||||
long long int e;
|
||||
|
||||
d = 0;
|
||||
e = 100000;
|
||||
e *= 100000;
|
||||
if ((sscanf ("10000000000", "%qd", &d) != 1) || (d != e))
|
||||
exit (1);
|
||||
|
||||
exit (0);
|
||||
}
|
||||
],
|
||||
am_cv_scanf_qd=yes,
|
||||
am_cv_scanf_qd=no))
|
||||
if test $am_cv_scanf_qd = yes; then
|
||||
AC_DEFINE(HAVE_SCANF_QD, 1,
|
||||
[Define if scanf supports %qd conversions.])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([LANGINFO_D_FMT_CHECK],
|
||||
[
|
||||
AC_CACHE_CHECK([for nl_langinfo and D_FMT], am_cv_langinfo_dfmt,
|
||||
|
Loading…
Reference in New Issue
Block a user