Check for getopt instead of getopt_long to decide if the system has a
working getopt implementation (we don't use getopt_long at all).
Include {topdir}/shared for the clients so they pull in our included
getopt.h. This fixes bulding on systems which have getopt(), but no getopt.h.
This commit is contained in:
+1
-1
@@ -190,7 +190,7 @@ AC_CHECK_FUNCS(select socket strdup strerror strtol uname cfmakeraw snprintf)
|
||||
|
||||
dnl Many people on non-GNU/Linux systems don't have getopt
|
||||
AC_CONFIG_LIBOBJ_DIR(shared)
|
||||
AC_CHECK_FUNC(getopt_long,
|
||||
AC_CHECK_FUNC(getopt,
|
||||
[
|
||||
AC_ARG_WITH(included-getopt,
|
||||
[AS_HELP_STRING([--with-included-getopt], [Use the included getopt rather than glibc's])],
|
||||
|
||||
Reference in New Issue
Block a user