freebsd-ports/japanese/samba/files/patch-configure.in
Norikatsu Shigemura c27ce9b48e Fix build error with WITH_CUPS and gettext(3).
PR:		ports-jp/14220
Reported by:	Hata <hata@maizuru-ct.ac.jp>
Submitted by:	NAKAJI Hiroyuki <nakaji@jp.FreeBSD.org> (maintainer)
2003-10-09 02:16:44 +00:00

26 lines
622 B
Text

Index: configure.in
===================================================================
RCS file: /project/cvs/samba22-ja/source/configure.in,v
retrieving revision 1.27
diff -u -r1.27 configure.in
--- configure.in 22 Aug 2003 08:45:59 -0000 1.27
+++ configure.in 8 Oct 2003 12:50:23 -0000
@@ -696,6 +696,18 @@
LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
LIBS="$LIBS `$CUPS_CONFIG --libs`"
fi
+ set - $CFLAGS
+ CFLAGS=
+ while test -n "$1"; do
+ case "$1" in
+ "`$CUPS_CONFIG --cflags`")
+ ;;
+ *)
+ CFLAGS="$CFLAGS $1"
+ ;;
+ esac
+ shift
+ done
fi
############################################