[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.34,1.35

Ton Voon tonvoon at users.sourceforge.net
Mon Feb 10 15:27:04 CET 2003


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1:/tmp/cvs-serv21483

Modified Files:
	configure.in 
Log Message:
Removing checks for getopt.h - now always available. Also support lib dir


Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** configure.in	10 Feb 2003 23:08:25 -0000	1.34
--- configure.in	10 Feb 2003 23:26:14 -0000	1.35
***************
*** 374,395 ****
  fi
  
- dnl We used to not do long options unless a compatible lib was found
- dnl Now we provide code and make libgetopt if native is not suitable
- AC_MSG_CHECKING(for getopt_long)
- AC_TRY_COMPILE([#include <getopt.h>
-                 #include <stdlib.h>],
-                [int option_index=0;
-                 static struct option *long_options;
-                 getopt_long(0,NULL,"+h",long_options,&option_index);],
-                [AC_DEFINE(HAVE_GETOPT_H,1,[Define if getopt headers are found])
-                 AC_DEFINE(HAVE_GETOPT_LONG,1,[Define if getopt_long is found])
-                 AC_MSG_RESULT(yes)],
-                [AC_DEFINE(HAVE_GETOPT_H,1,[Define if getopt headers are found])
-                 AC_DEFINE(HAVE_GETOPT_LONG,1,[Define if getopt_long is found])
-                 AC_MSG_RESULT(no)
-                 import_sources=getopt
-                 LIBS="$LIBS -lgetopt"
-                 DEPLIBS="$DEPLIBS libgetopt.a"])
- 
  AC_TRY_COMPILE([#include <sys/time.h>],
                 [struct timeval *tv;
--- 374,377 ----
***************
*** 957,959 ****
  AC_DEFINE_UNQUOTED(PACKAGE_VERSION,"${VERSION}",[package version])
  
! 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)
--- 939,941 ----
  AC_DEFINE_UNQUOTED(PACKAGE_VERSION,"${VERSION}",[package version])
  
! 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)





More information about the Commits mailing list