From 98a60eb782a11e3c86e0adc1282ffdd722a96c73 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 15 Mar 2015 21:15:14 +0000 Subject: check for existence of 'getopt' command line tool --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c0bf33421..30edf6285 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ # This file is part of GNUnet. -# (C) 2001--2014 Christian Grothoff (and other contributing authors) +# (C) 2001--2015 Christian Grothoff (and other contributing authors) # # GNUnet is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published @@ -202,6 +202,10 @@ AC_CHECK_LIB(socket, socket) AC_CHECK_LIB(m, log) AC_CHECK_LIB(c, getloadavg, AC_DEFINE(HAVE_GETLOADAVG,1,[getloadavg supported])) +AC_CHECK_PROG(VAR_GETOPT_BINARY, getopt, true, false) +AM_CONDITIONAL(HAVE_GETOPT_BINARY, $VAR_GETOPT_BINARY) + + AC_CHECK_MEMBER(struct tm.tm_gmtoff, [AC_DEFINE(HAVE_TM_GMTOFF, 1, -- cgit v1.2.3