Removed getopt checking and getopt() from lib/contrib.
[silc.git] / configure.ad
index 0e53cfa9d44d7b26b45f2869eea5c7f6e4945dff..bd4251f4931c2ea2f8b9d0f22235c42bebe2d1b9 100644 (file)
@@ -224,7 +224,7 @@ AC_HEADER_STAT
 
 # More header checking
 #
-AC_CHECK_HEADERS(unistd.h string.h getopt.h errno.h fcntl.h assert.h)
+AC_CHECK_HEADERS(unistd.h string.h errno.h fcntl.h assert.h)
 AC_CHECK_HEADERS(sys/types.h sys/stat.h sys/time.h stddef.h)
 AC_CHECK_HEADERS(netinet/in.h netinet/tcp.h xti.h netdb.h sys/resource.h)
 AC_CHECK_HEADERS(pwd.h grp.h termcap.h paths.h)
@@ -298,13 +298,6 @@ AC_CHECK_FUNC(getopt_long,
   ], have_getopt_long=0
 )
 
-AC_CHECK_FUNC(getopt,
-  [
-    AC_DEFINE([HAVE_GETOPT], [], [HAVE_GETOPT])
-    have_getopt=1
-  ], have_getopt=0
-)
-
 ##
 ##  Enable/disable checking
 ##