ports/textproc/pcrs/files/patch-configure
Alexey Dokuchaev c151a8243e - Try to unbreak parallel builds (-jX) by adding missing dependencies
for static library target
- Unbreak configure script against Clang's cpp(1): suppress harmless
  warning that was treated as an error (=> missing pcre.h)
- While here, trim Makefile header, remove defunct mirrors from the
  MASTER_SITES, convert LIB_DEPENDS and USE_GMAKE, kill spaces at EOL
  of port description, define LICENSE (LGPL21)

Reported by:	marino
Approved by:	miwi, bapt (portmgr, implicit)
2013-08-15 11:27:16 +00:00

49 lines
1.6 KiB
Text

--- configure.orig Tue Dec 2 10:45:42 2003
+++ configure Sat Nov 26 02:57:22 2005
@@ -19,12 +19,12 @@
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
-exec_prefix=NONE
+exec_prefix=/usr/local
host=NONE
no_create=
nonopt=NONE
no_recursion=
-prefix=NONE
+prefix=/usr/local
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
@@ -42,8 +42,8 @@
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
-libdir='${exec_prefix}/lib'
-includedir='${prefix}/include'
+libdir="${exec_prefix}/lib"
+includedir="${prefix}/include"
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
@@ -685,9 +685,9 @@
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
-ac_cpp='$CPP $CPPFLAGS'
+ac_cpp='$CPP -I${includedir} -L${libdir} $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ac_link='${CC-cc} -I${includedir} -L${libdir} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
@@ -1256,7 +1256,7 @@
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$" | grep -v warning:`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"