| @@ -1,26 +1,39 @@ | | | @@ -1,26 +1,39 @@ |
1 | $NetBSD: patch-ac,v 1.21 2014/07/21 07:50:45 richard Exp $ | | 1 | $NetBSD: patch-ac,v 1.22 2015/02/18 03:10:42 sevan Exp $ |
| | | 2 | |
| | | 3 | Allow ncurses to build with compiler from pkgsrc by dropping the use of |
| | | 4 | -no-cpp-precomp which is specific to Apple's supplied toolchain. |
| | | 5 | Don't rename man pages on Debian. |
| | | 6 | Include local paths before utilising flags from build env |
2 | | | 7 | |
3 | --- configure.orig 2011-03-31 23:35:51.000000000 +0000 | | 8 | --- configure.orig 2011-03-31 23:35:51.000000000 +0000 |
4 | +++ configure | | 9 | +++ configure |
5 | @@ -9640,12 +9645,7 @@ case ".$MANPAGE_RENAMES" in #(vi | | 10 | @@ -5584,7 +5584,6 @@ CF_EOF |
| | | 11 | chmod +x mk_shared_lib.sh |
| | | 12 | ;; |
| | | 13 | darwin*) #(vi |
| | | 14 | - EXTRA_CFLAGS="-no-cpp-precomp" |
| | | 15 | CC_SHARED_OPTS="-dynamic" |
| | | 16 | MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@' |
| | | 17 | test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi |
| | | 18 | @@ -9640,12 +9639,7 @@ case ".$MANPAGE_RENAMES" in #(vi |
6 | .no) #(vi | | 19 | .no) #(vi |
7 | ;; | | 20 | ;; |
8 | .|.yes) | | 21 | .|.yes) |
9 | - # Debian 'man' program? | | 22 | - # Debian 'man' program? |
10 | - if test -f /etc/debian_version ; then | | 23 | - if test -f /etc/debian_version ; then |
11 | - MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames | | 24 | - MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames |
12 | - else | | 25 | - else |
13 | MANPAGE_RENAMES=no | | 26 | MANPAGE_RENAMES=no |
14 | - fi | | 27 | - fi |
15 | ;; | | 28 | ;; |
16 | esac | | 29 | esac |
17 | | | 30 | |
18 | @@ -18592,7 +18592,7 @@ echo "${ECHO_T}$LIB_SUBSETS" >&6 | | 31 | @@ -18592,7 +18586,7 @@ echo "${ECHO_T}$LIB_SUBSETS" >&6 |
19 | | | 32 | |
20 | ### Construct the list of include-directories to be generated | | 33 | ### Construct the list of include-directories to be generated |
21 | | | 34 | |
22 | -CPPFLAGS="$CPPFLAGS -I. -I../include" | | 35 | -CPPFLAGS="$CPPFLAGS -I. -I../include" |
23 | +CPPFLAGS="-I. -I../include $CPPFLAGS" | | 36 | +CPPFLAGS="-I. -I../include $CPPFLAGS" |
24 | if test "$srcdir" != "."; then | | 37 | if test "$srcdir" != "."; then |
25 | CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include" | | 38 | CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include" |
26 | fi | | 39 | fi |