From 974444c6417490ce9cb6bb35ecf1c64d9b446044 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Mon, 17 Mar 2008 01:12:35 +0100 Subject: Properly set external commands, taking into account the host type --- configure.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 76b9757..de6e3e1 100644 --- a/configure.in +++ b/configure.in @@ -133,10 +133,17 @@ if test x$gui = xtrue; then AM_CFLAGS="$AM_CFLAGS -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED" fi -dnl use the provided getopt if gnu getopt is not available -AC_REPLACE_FUNCS(getopt_long) +dnl Are we in a darwin system? +case "${host_os}" in + darwin*) darwin_system=true;; + *) darwin_system=false; +esac AM_CONDITIONAL(MAKE_GUI, test x$gui = xtrue) +AM_CONDITIONAL(DARWIN_SYSTEM, test x$darwin_system = xtrue) + +dnl use the provided getopt if gnu getopt is not available +AC_REPLACE_FUNCS(getopt_long) AC_SUBST(AM_CFLAGS) -- cgit v1.2.3