mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Check for getopt
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17704 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0eb1091cc6
commit
7bc05b1e88
5 changed files with 13 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-09-22 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* configure.ac: Check for getopt
|
||||
* Tools/gdomap.c: Use MINGW getopt if no native getopt
|
||||
|
||||
2003-09-21 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Tools/cvtenc.m (main): Write using local/set encoding when
|
||||
|
|
|
@ -43,6 +43,9 @@
|
|||
/* Define to 1 if you have the `getlogin' function. */
|
||||
#undef HAVE_GETLOGIN
|
||||
|
||||
/* Define to 1 if you have the `getopt' function. */
|
||||
#undef HAVE_GETOPT
|
||||
|
||||
/* Define to 1 if you have the <getopt.h> header file. */
|
||||
#undef HAVE_GETOPT_H
|
||||
|
||||
|
|
|
@ -178,7 +178,7 @@ static void queue_probe(struct in_addr* to, struct in_addr *from,
|
|||
|
||||
|
||||
#ifdef __MINGW__
|
||||
|
||||
#ifndef HAVE_GETOPT
|
||||
/* A simple implementation of getopt() */
|
||||
|
||||
static int
|
||||
|
@ -245,6 +245,7 @@ getopt(int argc, char **argv, char *options)
|
|||
return -1;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
static char ebuf[2048];
|
||||
|
|
3
configure
vendored
3
configure
vendored
|
@ -8086,7 +8086,8 @@ fi
|
|||
|
||||
|
||||
|
||||
for ac_func in statvfs link symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint
|
||||
|
||||
for ac_func in statvfs link symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint getopt
|
||||
do
|
||||
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
||||
|
|
|
@ -521,7 +521,7 @@ AC_CHECK_HEADERS(sys/stat.h sys/vfs.h sys/statfs.h sys/statvfs.h pwd.h grp.h)
|
|||
AC_CHECK_HEADERS(sys/mount.h sys/types.h windows.h locale.h langinfo.h)
|
||||
saved_LIBS="$LIBS"
|
||||
AC_CHECK_LIB(m, main)
|
||||
AC_CHECK_FUNCS(statvfs link symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint)
|
||||
AC_CHECK_FUNCS(statvfs link symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint getopt)
|
||||
LIBS="$saved_LIBS"
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue