X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/f03d418427984d413a11aa1de58fbffe33718403..132a5a4a47f9dbc7c52ee15234d70258c59ccf8e:/configure.ac diff --git a/configure.ac b/configure.ac index 03ba384..a45d6ed 100644 --- a/configure.ac +++ b/configure.ac @@ -4,25 +4,23 @@ # Copyright (C) 2004-2008 Richard Kettlewell # Portions copyright (C) 2007 Ross Younger # -# This program is free software; you can redistribute it and/or modify +# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA +# along with this program. If not, see . # -AC_INIT([disorder], [4.0+], [richard+disorder@sfere.greenend.org.uk]) +AC_INIT([disorder], [4.2+], [richard+disorder@sfere.greenend.org.uk]) AC_CONFIG_AUX_DIR([config.aux]) -AM_INIT_AUTOMAKE(disorder, [4.0+]) +AM_INIT_AUTOMAKE(disorder, [4.2+]) AC_CONFIG_SRCDIR([server/disorderd.c]) AM_CONFIG_HEADER([config.h]) @@ -46,6 +44,13 @@ AC_PROG_CC AC_SET_MAKE if test "x$GCC" = xyes; then gcc_werror=-Werror + case "$CC" in + *-std=* ) + ;; + * ) + CC="${CC} -std=gnu99" + ;; + esac else AC_MSG_ERROR([GNU C is required to build this program]) gcc_werror="" @@ -110,6 +115,11 @@ case "$host" in AC_MSG_RESULT([$minver]) AC_DEFINE_UNQUOTED([MAC_OS_X_VERSION_MIN_REQUIRED], [$minver], [define to minimum version of Mac OS X to support]) + + # Fink's GTK+ is hopelessly broken + PKG_CONFIG_PATH=${PKG_CONFIG_PATH:-/sw/lib/pango-ft219/lib/pkgconfig} + export PKG_CONFIG_PATH + ;; *-freebsd* ) AC_MSG_RESULT([FreeBSD])