getopt_long on FreeBSD
algorithm.c, alloc.h: Wrap includes of alloca.h with #ifdef
HAVE_ALLOCA_H. Some platforms (FreeBSD for example) have alloca in
stdlib.h... Autoconf detects this in AC_FUNC_ALLOCA
AC_CHECK_LIB(gsl, gsl_cdf_chisq_Q,,
AC_MSG_ERROR([You must install libgsl version 1.4 or later]))
+AC_CHECK_LIB(gnugetopt,getopt_long)
AC_CHECK_FUNC(getopt_long,,
AC_MSG_ERROR(`This application depends upon getopt_long'))
Engineering a sort function; Jon Bentley and M. Douglas McIlroy;
Software - Practice and Experience; Vol. 23 (11), 1249-1265, 1993. */
+#ifdef HAVE_ALLOCA_H
#include <alloca.h>
+#endif
+
#include <limits.h>
#include <stdlib.h>
#include <string.h>
\f
/* alloca() wrapper functions. */
#if defined (HAVE_ALLOCA) || defined (C_ALLOCA)
+#ifdef HAVE_ALLOCA_H
#include <alloca.h>
+#endif
#define local_alloc(X) alloca (X)
#define local_free(P) ((void) 0)
#else