diff options
-rw-r--r-- | configure.in | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/configure.in b/configure.in index cc9f96c..81a0029 100644 --- a/configure.in +++ b/configure.in | |||
@@ -373,24 +373,6 @@ if test x"$ac_cv_HAVE_SNPRINTF" = x"no" -o x"$ac_cv_HAVE_VSNPRINTF" = x"no" -o x | |||
373 | LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a" | 373 | LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a" |
374 | fi | 374 | fi |
375 | 375 | ||
376 | dnl We used to not do long options unless a compatible lib was found | ||
377 | dnl Now we provide code and make libgetopt if native is not suitable | ||
378 | AC_MSG_CHECKING(for getopt_long) | ||
379 | AC_TRY_COMPILE([#include <getopt.h> | ||
380 | #include <stdlib.h>], | ||
381 | [int option_index=0; | ||
382 | static struct option *long_options; | ||
383 | getopt_long(0,NULL,"+h",long_options,&option_index);], | ||
384 | [AC_DEFINE(HAVE_GETOPT_H,1,[Define if getopt headers are found]) | ||
385 | AC_DEFINE(HAVE_GETOPT_LONG,1,[Define if getopt_long is found]) | ||
386 | AC_MSG_RESULT(yes)], | ||
387 | [AC_DEFINE(HAVE_GETOPT_H,1,[Define if getopt headers are found]) | ||
388 | AC_DEFINE(HAVE_GETOPT_LONG,1,[Define if getopt_long is found]) | ||
389 | AC_MSG_RESULT(no) | ||
390 | import_sources=getopt | ||
391 | LIBS="$LIBS -lgetopt" | ||
392 | DEPLIBS="$DEPLIBS libgetopt.a"]) | ||
393 | |||
394 | AC_TRY_COMPILE([#include <sys/time.h>], | 376 | AC_TRY_COMPILE([#include <sys/time.h>], |
395 | [struct timeval *tv; | 377 | [struct timeval *tv; |
396 | struct timezone *tz;], | 378 | struct timezone *tz;], |
@@ -956,4 +938,4 @@ AC_SUBST(DEPLIBS) | |||
956 | 938 | ||
957 | AC_DEFINE_UNQUOTED(PACKAGE_VERSION,"${VERSION}",[package version]) | 939 | AC_DEFINE_UNQUOTED(PACKAGE_VERSION,"${VERSION}",[package version]) |
958 | 940 | ||
959 | AC_OUTPUT(Makefile subst plugins/Makefile plugins-scripts/Makefile plugins-scripts/subst plugins-scripts/utils.pm plugins-scripts/utils.sh command.cfg test.pl,echo timestamp > plugins/stamp-h1;echo timestamp > plugins/stamp-h2;echo timestamp > plugins/stamp-h3;echo timestamp > plugins/stamp-h4;echo timestamp > plugins/stamp-h5;echo timestamp > plugins/stamp-h6;PATH=.:..:$PATH subst.sh command.cfg) | 941 | AC_OUTPUT(Makefile subst lib/Makefile plugins/Makefile plugins-scripts/Makefile plugins-scripts/subst plugins-scripts/utils.pm plugins-scripts/utils.sh command.cfg test.pl,echo timestamp > plugins/stamp-h1;echo timestamp > plugins/stamp-h2;echo timestamp > plugins/stamp-h3;echo timestamp > plugins/stamp-h4;echo timestamp > plugins/stamp-h5;echo timestamp > plugins/stamp-h6;PATH=.:..:$PATH subst.sh command.cfg) |