- fix: FreeBSD - libgnugetopt is optional library
This commit is contained in:
parent
8edac3c2b7
commit
0a62c6379e
@ -30,6 +30,7 @@ dnl (there seems to be a bug somewhere)
|
|||||||
dnl 18-Aug-2004 tries fli4l-uclibc -> fli4l-21-uclibc, fli4l-22-uclibc
|
dnl 18-Aug-2004 tries fli4l-uclibc -> fli4l-21-uclibc, fli4l-22-uclibc
|
||||||
dnl 2.1.x has no pthread support, link -static
|
dnl 2.1.x has no pthread support, link -static
|
||||||
dnl 2.2.x has (maybe) pthread support
|
dnl 2.2.x has (maybe) pthread support
|
||||||
|
dnl 08-Jan-2005 tries FreeBSD: check for libgnugetopt before using it
|
||||||
dnl
|
dnl
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
@ -127,7 +128,8 @@ case "$target" in
|
|||||||
AC_DEFINE(_BSD,,[building on BSD platform])
|
AC_DEFINE(_BSD,,[building on BSD platform])
|
||||||
AC_DEFINE(_FREEBSD,,[building on FreeBSD platform])
|
AC_DEFINE(_FREEBSD,,[building on FreeBSD platform])
|
||||||
CPPFLAGS="$CPPFLAGS -I/usr/local/include/"
|
CPPFLAGS="$CPPFLAGS -I/usr/local/include/"
|
||||||
LIBS="$LIBS -L/usr/local/lib/ -lgnugetopt"
|
LIBS="$LIBS -L/usr/local/lib/"
|
||||||
|
AC_CHECK_LIB(gnugetopt,getopt_long,[LIBS="$LIBS -lgnugetopt"])
|
||||||
;;
|
;;
|
||||||
*-*-openbsd*)
|
*-*-openbsd*)
|
||||||
AC_MSG_RESULT(OpenBSD)
|
AC_MSG_RESULT(OpenBSD)
|
||||||
|
|||||||
@ -48,13 +48,20 @@ FILE *siproxd_passwordfile;
|
|||||||
|
|
||||||
/* -h help option text */
|
/* -h help option text */
|
||||||
static const char str_helpmsg[] =
|
static const char str_helpmsg[] =
|
||||||
PACKAGE "-" VERSION "-" BUILDSTR " (c) 2002-2004 Thomas Ries\n"
|
PACKAGE "-" VERSION "-" BUILDSTR " (c) 2002-2005 Thomas Ries\n"
|
||||||
"\nUsage: siproxd [options]\n\n"
|
"\nUsage: siproxd [options]\n\n"
|
||||||
"options:\n"
|
"options:\n"
|
||||||
" --help (-h) help\n"
|
#ifdef HAVE_GETOPT_LONG
|
||||||
" --debug <pattern> (-d) set debug-pattern\n"
|
" -h, --help help\n"
|
||||||
" --config <cfgfile> (-c) use the specified config file\n"
|
" -d, --debug <pattern> set debug-pattern\n"
|
||||||
" --pid-file <pidfile> (-p) create pid file <pidfile>\n"
|
" -c, --config <cfgfile> use the specified config file\n"
|
||||||
|
" -p, --pid-file <pidfile> create pid file <pidfile>\n"
|
||||||
|
#else
|
||||||
|
" -h help\n"
|
||||||
|
" -d <pattern> set debug-pattern\n"
|
||||||
|
" -c <cfgfile> use the specified config file\n"
|
||||||
|
" -p <pidfile> create pid file <pidfile>\n"
|
||||||
|
#endif
|
||||||
"";
|
"";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user