From 0ef7dc215071c486495bf86e85661f21733f200e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?= Date: Mon, 21 Jan 2013 02:20:55 +0100 Subject: configure.in: compiler handling * no need to explicitely check for gcc, it will be picked up if available * prepend to CFLAGS instead of appending * no need to add -O2 if gcc, autoconf automatically does that when appropriate --- configure.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.in b/configure.in index d7d2999..858ddac 100644 --- a/configure.in +++ b/configure.in @@ -77,11 +77,10 @@ AC_SUBST(XFT_CFLAGS) AC_SUBST(XFT_LIBS) dnl Checks for programs. -AC_CHECK_TOOL(CC, gcc) AC_PROG_CC if test "x$CC" = "xgcc"; then - CFLAGS="$CFLAGS -Wall -O2" + CFLAGS="-Wall $CFLAGS" fi dnl check for an x terminal emulator -- cgit v1.2.3