summaryrefslogtreecommitdiff
path: root/print/cups/patches/patch-ah
blob: 7515b7c8d0313297ea439c37ac240b3ef96cb662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$NetBSD: patch-ah,v 1.14 2006/02/16 15:52:15 yyamano Exp $

--- config-scripts/cups-compiler.m4.orig	2005-01-04 04:29:45.000000000 +0900
+++ config-scripts/cups-compiler.m4
@@ -39,36 +39,6 @@ CXXLIBS=""
 AC_SUBST(CXXLIBS)
 
 if test -n "$GCC"; then
-	# Starting with GCC 3.0, you must link C++ programs against either
-	# libstdc++ (shared by default), or libsupc++ (always static).  If
-	# you care about binary portability between Linux distributions,
-	# you need to either 1) build your own GCC with static C++ libraries
-	# or 2) link using gcc and libsupc++.  We choose the latter since
-	# CUPS doesn't (currently) use any of the stdc++ library.
-	#
-	# Also, GCC 3.0.x still has problems compiling some code.  You may
-	# or may not have success with it.  USE 3.0.x WITH EXTREME CAUTION!
-	#
-	# Previous versions of GCC do not have the reliance on the stdc++
-	# or g++ libraries, so the extra supc++ library is not needed.
-
-	AC_MSG_CHECKING(if libsupc++ is required)
-
- 	SUPC="`$CXX -print-file-name=libsupc++.a 2>/dev/null`"
-	case "$SUPC" in
-    		libsupc++.a*)
-			# Library not found, so this is and older GCC...
-			AC_MSG_RESULT(no)
-			;;
-		*)
-        		# This is gcc 3.x, and it knows of libsupc++, so we need it
-        		CXXLIBS="-lsupc++"
-        		AC_MSG_RESULT(yes)
-			;;
-	esac
-
-	CXX="$CC"
-
 	if test -z "$OPTIM"; then
 		if test "x$with_optim" = x; then
 			if test $uname = HP-UX; then