aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-11-28 01:06:03 +1000
committerGravatar axel <axel@liljencrantz.se>2005-11-28 01:06:03 +1000
commite800fca499a537c0c57e7e504ed2a4ceff91fda4 (patch)
treeebca2af4bad76fe8a13cc474b9e75521940a5f33
parenteed4b75389149629d02180f6282f6d78b305309e (diff)
Use better test for presense of getopt_long function
darcs-hash:20051127150603-ac50b-566999b0cb32bc150dc6ef43220452ab42f1ad64.gz
-rw-r--r--configure.ac2
-rw-r--r--main.c2
-rw-r--r--mimedb.c2
-rw-r--r--set_color.c2
-rw-r--r--tokenize.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 10351a70..57fbdb84 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,7 +64,7 @@ AC_CHECK_FILES([/proc/self/stat])
AC_CHECK_FILE([/usr/pkg/lib],[AC_SUBST(LIBDIR,[-L/usr/pkg/lib\ -R/usr/pkg/lib])])
AC_CHECK_FILE([/usr/pkg/include],[AC_SUBST(INCLUDEDIR,[-I/usr/pkg/include])])
-AC_CHECK_FUNCS( [wprintf futimes wcwidth wcswidth] )
+AC_CHECK_FUNCS( [wprintf futimes wcwidth wcswidth getopt_long] )
AC_CHECK_HEADERS([getopt.h termio.h sys/resource.h])
# Check for RLIMIT_AS in sys/resource.h.
diff --git a/main.c b/main.c
index 1e1fbf62..f9e8f3fc 100644
--- a/main.c
+++ b/main.c
@@ -111,7 +111,7 @@ int main( int argc, char **argv )
while( 1 )
{
-#ifdef __GLIBC__
+#ifdef HAVE_GETOPT_LONG
static struct option
long_options[] =
{
diff --git a/mimedb.c b/mimedb.c
index 62eb0d79..bd3b75ec 100644
--- a/mimedb.c
+++ b/mimedb.c
@@ -1018,7 +1018,7 @@ int main (int argc, char *argv[])
*/
while( 1 )
{
-#ifdef __GLIBC__
+#ifdef HAVE_GETOPT_LONG
static struct option
long_options[] =
{
diff --git a/set_color.c b/set_color.c
index 2265776e..1a5c0b49 100644
--- a/set_color.c
+++ b/set_color.c
@@ -114,7 +114,7 @@ int main( int argc, char **argv )
while( 1 )
{
-#ifdef __GLIBC__
+#ifdef HAVE_GETOPT_LONG
static struct option
long_options[] =
{
diff --git a/tokenize.c b/tokenize.c
index bad79a9f..8690dce2 100644
--- a/tokenize.c
+++ b/tokenize.c
@@ -32,7 +32,7 @@ int main( int argc, char **argv )
while( 1 )
{
-#ifdef __GLIBC__
+#ifdef HAVE_GETOPT_LONG
static struct option
long_options[] =
{