mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
check for getopt.h
This commit is contained in:
parent
5d65191a89
commit
5c45230137
@ -39,6 +39,9 @@
|
||||
#define HAVE_GETOPT 1
|
||||
#define HAVE_GETOPT_LONG_ONLY
|
||||
|
||||
// Are the above getopt() functions defined in getopt.h, or somewhere else?
|
||||
#define HAVE_GETOPT_H 1
|
||||
|
||||
// Can we determine the terminal width by making an ioctl(TIOCGWINSZ) call?
|
||||
#define IOCTL_TERMINAL_WIDTH 1
|
||||
|
||||
|
@ -42,6 +42,9 @@
|
||||
#define HAVE_GETOPT 1
|
||||
#define HAVE_GETOPT_LONG_ONLY 1
|
||||
|
||||
// Are the above getopt() functions defined in getopt.h, or somewhere else?
|
||||
#define HAVE_GETOPT_H 1
|
||||
|
||||
// Can we determine the terminal width by making an ioctl(TIOCGWINSZ) call?
|
||||
#define IOCTL_TERMINAL_WIDTH 1
|
||||
|
||||
|
@ -42,6 +42,9 @@
|
||||
#define HAVE_GETOPT
|
||||
#define HAVE_GETOPT_LONG_ONLY
|
||||
|
||||
// Are the above getopt() functions defined in getopt.h, or somewhere else?
|
||||
#define HAVE_GETOPT_H
|
||||
|
||||
// Can we determine the terminal width by making an ioctl(TIOCGWINSZ) call?
|
||||
#define IOCTL_TERMINAL_WIDTH
|
||||
|
||||
|
@ -173,6 +173,9 @@ $[cdefine HAVE_GETOPT]
|
||||
/* Define if you have the getopt_long_only function. */
|
||||
$[cdefine HAVE_GETOPT_LONG_ONLY]
|
||||
|
||||
/* Define if getopt appears in getopt.h. */
|
||||
$[cdefine HAVE_GETOPT_H]
|
||||
|
||||
/* Define if you have ioctl(TIOCGWINSZ) to determine terminal width. */
|
||||
$[cdefine IOCTL_TERMINAL_WIDTH]
|
||||
|
||||
|
@ -113,7 +113,6 @@
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef CPPPARSER
|
||||
#include <stdtypedefs.h>
|
||||
#endif
|
||||
|
@ -19,17 +19,19 @@
|
||||
#include "interrogate.h"
|
||||
#include "interrogateBuilder.h"
|
||||
|
||||
#include <interrogateDatabase.h>
|
||||
#include <cppGlobals.h>
|
||||
#include <notify.h>
|
||||
#include "interrogateDatabase.h"
|
||||
#include "cppGlobals.h"
|
||||
#include "notify.h"
|
||||
#include <time.h>
|
||||
|
||||
// If our system getopt() doesn't come with getopt_long_only(), then use
|
||||
// the GNU flavor that we've got in tool for this purpose.
|
||||
#ifndef HAVE_GETOPT_LONG_ONLY
|
||||
#include <gnu_getopt.h>
|
||||
#include "gnu_getopt.h"
|
||||
#else
|
||||
#include <getopt.h>
|
||||
#ifdef HAVE_GETOPT_H
|
||||
#include <getopt.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
CPPParser parser;
|
||||
|
@ -19,11 +19,11 @@
|
||||
#ifndef INTERROGATE_H
|
||||
#define INTERROGATE_H
|
||||
|
||||
#include <dtoolbase.h>
|
||||
#include "dtoolbase.h"
|
||||
|
||||
#include <cppParser.h>
|
||||
#include <cppVisibility.h>
|
||||
#include <filename.h>
|
||||
#include "cppParser.h"
|
||||
#include "cppVisibility.h"
|
||||
#include "filename.h"
|
||||
|
||||
extern CPPParser parser;
|
||||
|
||||
|
@ -42,7 +42,7 @@ AC_SUBST(libm)
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS(malloc.h alloca.h unistd.h utime.h io.h minmax.h dirent.h sys/types.h sys/time.h sys/utime.h sys/wait.h string.h regex.h)
|
||||
AC_CHECK_HEADERS(malloc.h alloca.h unistd.h utime.h io.h minmax.h dirent.h sys/types.h sys/time.h sys/utime.h sys/wait.h string.h regex.h getopt.h)
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
|
||||
|
@ -11,10 +11,12 @@
|
||||
#include "sedProcess.h"
|
||||
|
||||
#ifdef HAVE_GETOPT
|
||||
#ifdef HAVE_GETOPT_H
|
||||
#include <getopt.h>
|
||||
#endif // HAVE_GETOPT_H
|
||||
#else
|
||||
#include "gnu_getopt.h"
|
||||
#endif
|
||||
#endif // HAVE_GETOPT
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user