Commit cab30af3 authored by Frank Morgner's avatar Frank Morgner

check for strcasecmp

parent 92096162
...@@ -66,7 +66,7 @@ AC_SEARCH_LIBS(getopt, iberty) ...@@ -66,7 +66,7 @@ AC_SEARCH_LIBS(getopt, iberty)
AC_CHECK_FUNCS(strtoimax strtoll) AC_CHECK_FUNCS(strtoimax strtoll)
AC_CHECK_FUNCS(mergesort) AC_CHECK_FUNCS(mergesort)
AC_CHECK_FUNCS(mkstemps) AC_CHECK_FUNCS(mkstemps)
AC_CHECK_DECL(alloca) AC_CHECK_DECLS(alloca strcasecmp)
AC_TRY_LINK_FUNC([symlink],[AC_DEFINE([HAVE_SYMLINK], 1, [Define to 1 if you have the symlink function.])]) AC_TRY_LINK_FUNC([symlink],[AC_DEFINE([HAVE_SYMLINK], 1, [Define to 1 if you have the symlink function.])])
AC_OUTPUT( \ AC_OUTPUT( \
......
...@@ -27,8 +27,10 @@ ...@@ -27,8 +27,10 @@
#define EX_NOINPUT 66 #define EX_NOINPUT 66
#define EX_DATAERR 65 #define EX_DATAERR 65
#define snprintf _snprintf #define snprintf _snprintf
#if defined HAVE_DECL_STRCASECMP && !HAVE_DECL_STRCASECMP
#define strcasecmp stricmp #define strcasecmp stricmp
#endif #endif
#endif
#ifndef ETOOMANYREFS #ifndef ETOOMANYREFS
#define ETOOMANYREFS 144 #define ETOOMANYREFS 144
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment