diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-08-09 21:02:10 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-08-09 21:02:10 +0000 |
commit | bf95c7b5e4f2d0a498fd9cee41f77262e1ddda89 (patch) | |
tree | acde70beaac706649ef2f54d96cfddf3a7df317b /configure.in | |
parent | a60d91018f56f0beb6bfe7d797a0fea20be2339f (diff) | |
download | wireshark-bf95c7b5e4f2d0a498fd9cee41f77262e1ddda89.tar.gz |
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5608 :
getopt() can/should normally be found in unistd.h, so:
- When testing for getopt(), define that we HAVE_GETOPT instead of
HAVE_GETOPT_H (to avoid confusion).
- Don't attempt to include getopt.h: not all OS's have it (for example,
Solaris 9 does not).
- (All the places which need getopt already include unistd.h (if we have it).)
If this breaks things on some OS, we might need (a real) HAVE_GETOPT_H check.
svn path=/trunk/; revision=38437
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 5ba873fadc..d59ff6f7d2 100644 --- a/configure.in +++ b/configure.in @@ -1742,7 +1742,7 @@ AC_PROG_GCC_TRADITIONAL GETOPT_LO="" AC_CHECK_FUNC(getopt, [GETOPT_LO="" - AC_DEFINE(HAVE_GETOPT_H, 1, [Define to 1 if you have the <getopt.h> header file.]) + AC_DEFINE(HAVE_GETOPT, 1, [Define to 1 if you have the getopt function.]) ], GETOPT_LO="wsgetopt.lo" ) |