- Don't even think about using sscanf with %as anymore

- Allow keys to be inside the config files or in a seperate file
- Small fixes
This commit is contained in:
Guus Sliepen 2000-12-22 21:34:24 +00:00
parent ecae72de94
commit e1707f7739
8 changed files with 101 additions and 99 deletions

View file

@ -1,25 +0,0 @@
dnl Check for a scanf that understands about %as as format specifier
AC_DEFUN(tinc_SCANF_AS,
[
AC_CACHE_CHECK([for a scanf that groks %as], tinc_cv_scanf_as,
[
AC_TRY_RUN([
/* Very naive program which will probably give a segmentation
fault if the sscanf doesn't work as expected. */
#include <stdio.h>
int main() {
char*s = NULL;
sscanf("string\n", "%as\n", &s);
if(s == NULL)
return 1;
return strcmp("string", s);
}
], [tinc_cv_scanf_as="yes"], [tinc_cv_scanf_as="no"])
])
if test "$tinc_cv_scanf_as" = "yes" ; then
AC_DEFINE(HAVE_SCANF_AS)
AC_SUBST(HAVE_SCANF_AS)
fi
])