Check for getopt_long(), not getopt().
authorGuy Harris <guy@alum.mit.edu>
Thu, 25 Dec 2014 01:10:40 +0000 (17:10 -0800)
committerGuy Harris <guy@alum.mit.edu>
Thu, 25 Dec 2014 01:11:10 +0000 (01:11 +0000)
commit20503c70478e0f83b7cafebbbb759de801a1d53e
tree429adece393765104527f18823738805e4fe105c
parentb6f70ed3f8959f6ba89f8df029b22b7d57ad8f0a
Check for getopt_long(), not getopt().

We support three types of platforms:

1) UN*Xes that have both getopt() and getopt_long();

2) UN*Xes that have getopt() but not getopt_long();

3) Windows, which has neither.

Checking for getopt_long() lets us distinguish between 1) and 2) and
build getopt_long() for them.

Change-Id: Iaf0f142f9bebaa2eed2128d544ec9786711def45
Reviewed-on: https://code.wireshark.org/review/6045
Reviewed-by: Guy Harris <guy@alum.mit.edu>
17 files changed:
ConfigureChecks.cmake
capinfos.c
captype.c
cmakeconfig.h.in
configure.ac
dumpcap.c
editcap.c
mergecap.c
randpkt.c
rawshark.c
reordercap.c
text2pcap.c
tfshark.c
tshark.c
ui/gtk/main.c
ui/qt/main.cpp
wsutil/CMakeLists.txt