Update patch files for older versions.

This commit is contained in:
Rolf Stöckli 2019-04-23 11:23:33 +02:00 committed by Zak B. Elep
parent d52144a6dc
commit 9c26484442
40 changed files with 696 additions and 212 deletions

View file

@ -40,7 +40,7 @@ index 6f20c5e..684f369 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index ac264c3..3f38ea0 100644
index ac264c3..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -13,11 +13,14 @@
@ -123,7 +123,7 @@ index ac264c3..3f38ea0 100644
ppc*)
# on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy
# with -O2 ; so downgrade to -O1.
@@ -143,93 +150,78 @@ case "$optimize" in
@@ -143,93 +150,88 @@ case "$optimize" in
;;
esac
@ -235,6 +235,17 @@ index ac264c3..3f38ea0 100644
- ;;
- esac
-fi
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-rm -f try.c a.out
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
@ -252,7 +263,7 @@ index ac264c3..3f38ea0 100644
+ ;;
+esac
-rm -f try.c a.out
-if /bin/sh -c exit; then
+case "$libc" in
+'')
+# If you have glibc, then report the version for ./myconfig bug reporting.
@ -278,13 +289,12 @@ index ac264c3..3f38ea0 100644
+ done
+ ;;
+esac
-if /bin/sh -c exit; then
+
+if ${sh:-/bin/sh} -c exit; then
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -296,7 +288,7 @@ fi
@@ -296,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -293,7 +303,7 @@ index ac264c3..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -311,24 +303,62 @@ esac
@@ -311,24 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -367,7 +377,7 @@ index ac264c3..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -375,16 +405,6 @@ $define|true|[yY]*)
@@ -375,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -384,7 +394,7 @@ index ac264c3..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -408,7 +428,7 @@ then
@@ -408,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index 6f20c5e..684f369 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index ac264c3..3f38ea0 100644
index ac264c3..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -13,11 +13,14 @@
@ -123,7 +123,7 @@ index ac264c3..3f38ea0 100644
ppc*)
# on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy
# with -O2 ; so downgrade to -O1.
@@ -143,93 +150,78 @@ case "$optimize" in
@@ -143,93 +150,88 @@ case "$optimize" in
;;
esac
@ -235,6 +235,17 @@ index ac264c3..3f38ea0 100644
- ;;
- esac
-fi
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-rm -f try.c a.out
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
@ -252,7 +263,7 @@ index ac264c3..3f38ea0 100644
+ ;;
+esac
-rm -f try.c a.out
-if /bin/sh -c exit; then
+case "$libc" in
+'')
+# If you have glibc, then report the version for ./myconfig bug reporting.
@ -278,13 +289,12 @@ index ac264c3..3f38ea0 100644
+ done
+ ;;
+esac
-if /bin/sh -c exit; then
+
+if ${sh:-/bin/sh} -c exit; then
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -296,7 +288,7 @@ fi
@@ -296,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -293,7 +303,7 @@ index ac264c3..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -311,24 +303,62 @@ esac
@@ -311,24 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -367,7 +377,7 @@ index ac264c3..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -375,16 +405,6 @@ $define|true|[yY]*)
@@ -375,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -384,7 +394,7 @@ index ac264c3..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -408,7 +428,7 @@ then
@@ -408,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index 6f20c5e..684f369 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index ac264c3..3f38ea0 100644
index ac264c3..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -13,11 +13,14 @@
@ -123,7 +123,7 @@ index ac264c3..3f38ea0 100644
ppc*)
# on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy
# with -O2 ; so downgrade to -O1.
@@ -143,93 +150,78 @@ case "$optimize" in
@@ -143,93 +150,88 @@ case "$optimize" in
;;
esac
@ -235,6 +235,17 @@ index ac264c3..3f38ea0 100644
- ;;
- esac
-fi
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-rm -f try.c a.out
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
@ -252,7 +263,7 @@ index ac264c3..3f38ea0 100644
+ ;;
+esac
-rm -f try.c a.out
-if /bin/sh -c exit; then
+case "$libc" in
+'')
+# If you have glibc, then report the version for ./myconfig bug reporting.
@ -278,13 +289,12 @@ index ac264c3..3f38ea0 100644
+ done
+ ;;
+esac
-if /bin/sh -c exit; then
+
+if ${sh:-/bin/sh} -c exit; then
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -296,7 +288,7 @@ fi
@@ -296,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -293,7 +303,7 @@ index ac264c3..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -311,24 +303,62 @@ esac
@@ -311,24 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -367,7 +377,7 @@ index ac264c3..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -375,16 +405,6 @@ $define|true|[yY]*)
@@ -375,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -384,7 +394,7 @@ index ac264c3..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -408,7 +428,7 @@ then
@@ -408,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index 6f20c5e..684f369 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index ac264c3..3f38ea0 100644
index ac264c3..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -13,11 +13,14 @@
@ -123,7 +123,7 @@ index ac264c3..3f38ea0 100644
ppc*)
# on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy
# with -O2 ; so downgrade to -O1.
@@ -143,93 +150,78 @@ case "$optimize" in
@@ -143,93 +150,88 @@ case "$optimize" in
;;
esac
@ -235,6 +235,17 @@ index ac264c3..3f38ea0 100644
- ;;
- esac
-fi
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-rm -f try.c a.out
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
@ -252,7 +263,7 @@ index ac264c3..3f38ea0 100644
+ ;;
+esac
-rm -f try.c a.out
-if /bin/sh -c exit; then
+case "$libc" in
+'')
+# If you have glibc, then report the version for ./myconfig bug reporting.
@ -278,13 +289,12 @@ index ac264c3..3f38ea0 100644
+ done
+ ;;
+esac
-if /bin/sh -c exit; then
+
+if ${sh:-/bin/sh} -c exit; then
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -296,7 +288,7 @@ fi
@@ -296,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -293,7 +303,7 @@ index ac264c3..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -311,24 +303,62 @@ esac
@@ -311,24 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -367,7 +377,7 @@ index ac264c3..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -375,16 +405,6 @@ $define|true|[yY]*)
@@ -375,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -384,7 +394,7 @@ index ac264c3..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -408,7 +428,7 @@ then
@@ -408,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -92,7 +92,7 @@ index f8ca492..204bba0 100644
+ $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so';
}
diff --git a/hints/linux.sh b/hints/linux.sh
index c88f157..3f38ea0 100644
index c88f157..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -13,11 +13,14 @@
@ -176,7 +176,7 @@ index c88f157..3f38ea0 100644
ppc*)
# on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy
# with -O2 ; so downgrade to -O1.
@@ -146,93 +150,78 @@ case "$optimize" in
@@ -146,93 +150,88 @@ case "$optimize" in
;;
esac
@ -288,6 +288,17 @@ index c88f157..3f38ea0 100644
- ;;
- esac
-fi
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-rm -f try.c a.out
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
@ -305,7 +316,7 @@ index c88f157..3f38ea0 100644
+ ;;
+esac
-rm -f try.c a.out
-if /bin/sh -c exit; then
+case "$libc" in
+'')
+# If you have glibc, then report the version for ./myconfig bug reporting.
@ -331,13 +342,12 @@ index c88f157..3f38ea0 100644
+ done
+ ;;
+esac
-if /bin/sh -c exit; then
+
+if ${sh:-/bin/sh} -c exit; then
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -299,7 +288,7 @@ fi
@@ -299,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -346,7 +356,7 @@ index c88f157..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -314,30 +303,62 @@ esac
@@ -314,30 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -426,7 +436,7 @@ index c88f157..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -384,16 +405,6 @@ $define|true|[yY]*)
@@ -384,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -443,7 +453,7 @@ index c88f157..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -417,7 +428,7 @@ then
@@ -417,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -92,7 +92,7 @@ index f8ca492..204bba0 100644
+ $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so';
}
diff --git a/hints/linux.sh b/hints/linux.sh
index c88f157..3f38ea0 100644
index c88f157..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -13,11 +13,14 @@
@ -176,7 +176,7 @@ index c88f157..3f38ea0 100644
ppc*)
# on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy
# with -O2 ; so downgrade to -O1.
@@ -146,93 +150,78 @@ case "$optimize" in
@@ -146,93 +150,88 @@ case "$optimize" in
;;
esac
@ -288,6 +288,17 @@ index c88f157..3f38ea0 100644
- ;;
- esac
-fi
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-rm -f try.c a.out
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
@ -305,7 +316,7 @@ index c88f157..3f38ea0 100644
+ ;;
+esac
-rm -f try.c a.out
-if /bin/sh -c exit; then
+case "$libc" in
+'')
+# If you have glibc, then report the version for ./myconfig bug reporting.
@ -331,13 +342,12 @@ index c88f157..3f38ea0 100644
+ done
+ ;;
+esac
-if /bin/sh -c exit; then
+
+if ${sh:-/bin/sh} -c exit; then
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -299,7 +288,7 @@ fi
@@ -299,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -346,7 +356,7 @@ index c88f157..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -314,30 +303,62 @@ esac
@@ -314,30 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -426,7 +436,7 @@ index c88f157..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -384,16 +405,6 @@ $define|true|[yY]*)
@@ -384,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -443,7 +453,7 @@ index c88f157..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -417,7 +428,7 @@ then
@@ -417,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -92,7 +92,7 @@ index f8ca492..204bba0 100644
+ $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so';
}
diff --git a/hints/linux.sh b/hints/linux.sh
index c88f157..3f38ea0 100644
index c88f157..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -13,11 +13,14 @@
@ -176,7 +176,7 @@ index c88f157..3f38ea0 100644
ppc*)
# on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy
# with -O2 ; so downgrade to -O1.
@@ -146,93 +150,78 @@ case "$optimize" in
@@ -146,93 +150,88 @@ case "$optimize" in
;;
esac
@ -288,6 +288,17 @@ index c88f157..3f38ea0 100644
- ;;
- esac
-fi
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-rm -f try.c a.out
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
@ -305,7 +316,7 @@ index c88f157..3f38ea0 100644
+ ;;
+esac
-rm -f try.c a.out
-if /bin/sh -c exit; then
+case "$libc" in
+'')
+# If you have glibc, then report the version for ./myconfig bug reporting.
@ -331,13 +342,12 @@ index c88f157..3f38ea0 100644
+ done
+ ;;
+esac
-if /bin/sh -c exit; then
+
+if ${sh:-/bin/sh} -c exit; then
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -299,7 +288,7 @@ fi
@@ -299,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -346,7 +356,7 @@ index c88f157..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -314,30 +303,62 @@ esac
@@ -314,30 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -426,7 +436,7 @@ index c88f157..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -384,16 +405,6 @@ $define|true|[yY]*)
@@ -384,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -443,7 +453,7 @@ index c88f157..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -417,7 +428,7 @@ then
@@ -417,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -92,7 +92,7 @@ index f8ca492..204bba0 100644
+ $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so';
}
diff --git a/hints/linux.sh b/hints/linux.sh
index c88f157..3f38ea0 100644
index c88f157..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -13,11 +13,14 @@
@ -176,7 +176,7 @@ index c88f157..3f38ea0 100644
ppc*)
# on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy
# with -O2 ; so downgrade to -O1.
@@ -146,93 +150,78 @@ case "$optimize" in
@@ -146,93 +150,88 @@ case "$optimize" in
;;
esac
@ -288,6 +288,17 @@ index c88f157..3f38ea0 100644
- ;;
- esac
-fi
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-rm -f try.c a.out
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
@ -305,7 +316,7 @@ index c88f157..3f38ea0 100644
+ ;;
+esac
-rm -f try.c a.out
-if /bin/sh -c exit; then
+case "$libc" in
+'')
+# If you have glibc, then report the version for ./myconfig bug reporting.
@ -331,13 +342,12 @@ index c88f157..3f38ea0 100644
+ done
+ ;;
+esac
-if /bin/sh -c exit; then
+
+if ${sh:-/bin/sh} -c exit; then
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -299,7 +288,7 @@ fi
@@ -299,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -346,7 +356,7 @@ index c88f157..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -314,30 +303,62 @@ esac
@@ -314,30 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -426,7 +436,7 @@ index c88f157..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -384,16 +405,6 @@ $define|true|[yY]*)
@@ -384,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -443,7 +453,7 @@ index c88f157..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -417,7 +428,7 @@ then
@@ -417,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -117,7 +117,7 @@ index f8ca492..204bba0 100644
+ $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so';
}
diff --git a/hints/linux.sh b/hints/linux.sh
index 0519eca..3f38ea0 100644
index 0519eca..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -13,11 +13,14 @@
@ -215,7 +215,7 @@ index 0519eca..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -171,93 +178,50 @@ case "$plibpth" in
@@ -171,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -254,7 +254,16 @@ index 0519eca..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -351,7 +360,7 @@ index 0519eca..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -324,7 +288,7 @@ fi
@@ -324,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -360,7 +369,7 @@ index 0519eca..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -339,30 +303,62 @@ esac
@@ -339,30 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -440,7 +449,7 @@ index 0519eca..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -409,16 +405,6 @@ $define|true|[yY]*)
@@ -409,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -457,7 +466,7 @@ index 0519eca..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -442,7 +428,7 @@ then
@@ -442,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -117,7 +117,7 @@ index f8ca492..204bba0 100644
+ $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so';
}
diff --git a/hints/linux.sh b/hints/linux.sh
index 0519eca..3f38ea0 100644
index 0519eca..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -13,11 +13,14 @@
@ -215,7 +215,7 @@ index 0519eca..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -171,93 +178,50 @@ case "$plibpth" in
@@ -171,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -254,7 +254,16 @@ index 0519eca..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -351,7 +360,7 @@ index 0519eca..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -324,7 +288,7 @@ fi
@@ -324,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -360,7 +369,7 @@ index 0519eca..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -339,30 +303,62 @@ esac
@@ -339,30 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -440,7 +449,7 @@ index 0519eca..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -409,16 +405,6 @@ $define|true|[yY]*)
@@ -409,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -457,7 +466,7 @@ index 0519eca..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -442,7 +428,7 @@ then
@@ -442,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -117,7 +117,7 @@ index f8ca492..204bba0 100644
+ $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so';
}
diff --git a/hints/linux.sh b/hints/linux.sh
index 0519eca..3f38ea0 100644
index 0519eca..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -13,11 +13,14 @@
@ -215,7 +215,7 @@ index 0519eca..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -171,93 +178,50 @@ case "$plibpth" in
@@ -171,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -254,7 +254,16 @@ index 0519eca..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -351,7 +360,7 @@ index 0519eca..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -324,7 +288,7 @@ fi
@@ -324,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -360,7 +369,7 @@ index 0519eca..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -339,30 +303,62 @@ esac
@@ -339,30 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -440,7 +449,7 @@ index 0519eca..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -409,16 +405,6 @@ $define|true|[yY]*)
@@ -409,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -457,7 +466,7 @@ index 0519eca..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -442,7 +428,7 @@ then
@@ -442,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -117,7 +117,7 @@ index f8ca492..204bba0 100644
+ $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so';
}
diff --git a/hints/linux.sh b/hints/linux.sh
index 0519eca..3f38ea0 100644
index 0519eca..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -13,11 +13,14 @@
@ -215,7 +215,7 @@ index 0519eca..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -171,93 +178,50 @@ case "$plibpth" in
@@ -171,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -254,7 +254,16 @@ index 0519eca..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -351,7 +360,7 @@ index 0519eca..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -324,7 +288,7 @@ fi
@@ -324,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -360,7 +369,7 @@ index 0519eca..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -339,30 +303,62 @@ esac
@@ -339,30 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -440,7 +449,7 @@ index 0519eca..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -409,16 +405,6 @@ $define|true|[yY]*)
@@ -409,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -457,7 +466,7 @@ index 0519eca..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -442,7 +428,7 @@ then
@@ -442,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index 56bc815..cf688be 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index d0ac9fa..3f38ea0 100644
index d0ac9fa..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -39,7 +39,7 @@ i_libutil='undef'
@ -111,7 +111,7 @@ index d0ac9fa..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -182,93 +178,50 @@ case "$plibpth" in
@@ -182,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -150,7 +150,16 @@ index d0ac9fa..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -247,7 +256,7 @@ index d0ac9fa..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -335,7 +288,7 @@ fi
@@ -335,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -256,7 +265,7 @@ index d0ac9fa..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -350,30 +303,62 @@ esac
@@ -350,30 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -336,7 +345,7 @@ index d0ac9fa..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -420,16 +405,6 @@ $define|true|[yY]*)
@@ -420,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -353,7 +362,7 @@ index d0ac9fa..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -453,7 +428,7 @@ then
@@ -453,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index 56bc815..cf688be 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index d0ac9fa..3f38ea0 100644
index d0ac9fa..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -39,7 +39,7 @@ i_libutil='undef'
@ -111,7 +111,7 @@ index d0ac9fa..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -182,93 +178,50 @@ case "$plibpth" in
@@ -182,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -150,7 +150,16 @@ index d0ac9fa..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -247,7 +256,7 @@ index d0ac9fa..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -335,7 +288,7 @@ fi
@@ -335,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -256,7 +265,7 @@ index d0ac9fa..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -350,30 +303,62 @@ esac
@@ -350,30 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -336,7 +345,7 @@ index d0ac9fa..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -420,16 +405,6 @@ $define|true|[yY]*)
@@ -420,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -353,7 +362,7 @@ index d0ac9fa..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -453,7 +428,7 @@ then
@@ -453,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index 56bc815..cf688be 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index d0ac9fa..3f38ea0 100644
index d0ac9fa..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -39,7 +39,7 @@ i_libutil='undef'
@ -111,7 +111,7 @@ index d0ac9fa..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -182,93 +178,50 @@ case "$plibpth" in
@@ -182,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -150,7 +150,16 @@ index d0ac9fa..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -247,7 +256,7 @@ index d0ac9fa..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -335,7 +288,7 @@ fi
@@ -335,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -256,7 +265,7 @@ index d0ac9fa..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -350,30 +303,62 @@ esac
@@ -350,30 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -336,7 +345,7 @@ index d0ac9fa..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -420,16 +405,6 @@ $define|true|[yY]*)
@@ -420,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -353,7 +362,7 @@ index d0ac9fa..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -453,7 +428,7 @@ then
@@ -453,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index 56bc815..cf688be 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index d0ac9fa..3f38ea0 100644
index d0ac9fa..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -39,7 +39,7 @@ i_libutil='undef'
@ -111,7 +111,7 @@ index d0ac9fa..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -182,93 +178,50 @@ case "$plibpth" in
@@ -182,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -150,7 +150,16 @@ index d0ac9fa..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -247,7 +256,7 @@ index d0ac9fa..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -335,7 +288,7 @@ fi
@@ -335,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -256,7 +265,7 @@ index d0ac9fa..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -350,30 +303,62 @@ esac
@@ -350,30 +313,62 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -336,7 +345,7 @@ index d0ac9fa..3f38ea0 100644
if echo $libswanted | grep -v pthread >/dev/null
then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
@@ -420,16 +405,6 @@ $define|true|[yY]*)
@@ -420,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -353,7 +362,7 @@ index d0ac9fa..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -453,7 +428,7 @@ then
@@ -453,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index 439f254..a324604 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index 688c68d..3f38ea0 100644
index 688c68d..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -39,7 +39,7 @@ i_libutil='undef'
@ -111,7 +111,7 @@ index 688c68d..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -182,93 +178,50 @@ case "$plibpth" in
@@ -182,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -150,7 +150,16 @@ index 688c68d..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -247,7 +256,7 @@ index 688c68d..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -335,7 +288,7 @@ fi
@@ -335,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -256,7 +265,7 @@ index 688c68d..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -350,17 +303,55 @@ esac
@@ -350,17 +313,55 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -322,7 +331,7 @@ index 688c68d..3f38ea0 100644
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
@@ -414,16 +405,6 @@ $define|true|[yY]*)
@@ -414,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -339,7 +348,7 @@ index 688c68d..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -447,7 +428,7 @@ then
@@ -447,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index 439f254..a324604 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index 688c68d..3f38ea0 100644
index 688c68d..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -39,7 +39,7 @@ i_libutil='undef'
@ -111,7 +111,7 @@ index 688c68d..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -182,93 +178,50 @@ case "$plibpth" in
@@ -182,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -150,7 +150,16 @@ index 688c68d..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -247,7 +256,7 @@ index 688c68d..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -335,7 +288,7 @@ fi
@@ -335,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -256,7 +265,7 @@ index 688c68d..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -350,17 +303,55 @@ esac
@@ -350,17 +313,55 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -322,7 +331,7 @@ index 688c68d..3f38ea0 100644
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
@@ -414,16 +405,6 @@ $define|true|[yY]*)
@@ -414,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -339,7 +348,7 @@ index 688c68d..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -447,7 +428,7 @@ then
@@ -447,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index 439f254..a324604 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index 688c68d..3f38ea0 100644
index 688c68d..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -39,7 +39,7 @@ i_libutil='undef'
@ -111,7 +111,7 @@ index 688c68d..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -182,93 +178,50 @@ case "$plibpth" in
@@ -182,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -150,7 +150,16 @@ index 688c68d..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -247,7 +256,7 @@ index 688c68d..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -335,7 +288,7 @@ fi
@@ -335,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -256,7 +265,7 @@ index 688c68d..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -350,17 +303,55 @@ esac
@@ -350,17 +313,55 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -322,7 +331,7 @@ index 688c68d..3f38ea0 100644
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
@@ -414,16 +405,6 @@ $define|true|[yY]*)
@@ -414,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -339,7 +348,7 @@ index 688c68d..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -447,7 +428,7 @@ then
@@ -447,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index 439f254..a324604 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index 688c68d..3f38ea0 100644
index 688c68d..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -39,7 +39,7 @@ i_libutil='undef'
@ -111,7 +111,7 @@ index 688c68d..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -182,93 +178,50 @@ case "$plibpth" in
@@ -182,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -150,7 +150,16 @@ index 688c68d..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -247,7 +256,7 @@ index 688c68d..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -335,7 +288,7 @@ fi
@@ -335,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -256,7 +265,7 @@ index 688c68d..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -350,17 +303,55 @@ esac
@@ -350,17 +313,55 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -322,7 +331,7 @@ index 688c68d..3f38ea0 100644
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
@@ -414,16 +405,6 @@ $define|true|[yY]*)
@@ -414,16 +415,6 @@ $define|true|[yY]*)
;;
esac
@ -339,7 +348,7 @@ index 688c68d..3f38ea0 100644
# If using g++, the Configure scan for dlopen() and (especially)
# dlerror() might fail, easier just to forcibly hint them in.
case "$cc" in
@@ -447,7 +428,7 @@ then
@@ -447,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index b707911..2588f0b 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index a148248..3f38ea0 100644
index a148248..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -39,7 +39,7 @@ i_libutil='undef'
@ -111,7 +111,7 @@ index a148248..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -182,93 +178,50 @@ case "$plibpth" in
@@ -182,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -150,7 +150,16 @@ index a148248..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -247,7 +256,7 @@ index a148248..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -335,7 +288,7 @@ fi
@@ -335,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -256,7 +265,7 @@ index a148248..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -350,17 +303,55 @@ esac
@@ -350,17 +313,55 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -322,7 +331,7 @@ index a148248..3f38ea0 100644
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
@@ -437,7 +428,7 @@ then
@@ -437,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index b707911..2588f0b 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index a148248..3f38ea0 100644
index a148248..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -39,7 +39,7 @@ i_libutil='undef'
@ -111,7 +111,7 @@ index a148248..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -182,93 +178,50 @@ case "$plibpth" in
@@ -182,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -150,7 +150,16 @@ index a148248..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -247,7 +256,7 @@ index a148248..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -335,7 +288,7 @@ fi
@@ -335,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -256,7 +265,7 @@ index a148248..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -350,17 +303,55 @@ esac
@@ -350,17 +313,55 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -322,7 +331,7 @@ index a148248..3f38ea0 100644
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
@@ -437,7 +428,7 @@ then
@@ -437,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index b707911..2588f0b 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index a148248..3f38ea0 100644
index a148248..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -39,7 +39,7 @@ i_libutil='undef'
@ -111,7 +111,7 @@ index a148248..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -182,93 +178,50 @@ case "$plibpth" in
@@ -182,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -150,7 +150,16 @@ index a148248..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -247,7 +256,7 @@ index a148248..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -335,7 +288,7 @@ fi
@@ -335,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -256,7 +265,7 @@ index a148248..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -350,17 +303,55 @@ esac
@@ -350,17 +313,55 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -322,7 +331,7 @@ index a148248..3f38ea0 100644
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
@@ -437,7 +428,7 @@ then
@@ -437,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -40,7 +40,7 @@ index b707911..2588f0b 100644
or die "Cannot exec $cpp";
}
diff --git a/hints/linux.sh b/hints/linux.sh
index a148248..3f38ea0 100644
index a148248..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -39,7 +39,7 @@ i_libutil='undef'
@ -111,7 +111,7 @@ index a148248..3f38ea0 100644
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
set X $plibpth # Collapse all entries on one line
shift
@@ -182,93 +178,50 @@ case "$plibpth" in
@@ -182,93 +178,60 @@ case "$plibpth" in
;;
esac
@ -150,7 +150,16 @@ index a148248..3f38ea0 100644
-should probably upgrade. If you are forced to use 3.2.4, you should
-uncomment a couple of lines in hints/linux.sh and restart Configure so
-that shared libraries will be disallowed.
-
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
-EOM
- lddlflags="-r $lddlflags"
- # These empty values are so that Configure doesn't put in the
@ -247,7 +256,7 @@ index a148248..3f38ea0 100644
echo ''
echo 'You appear to have a working bash. Good.'
else
@@ -335,7 +288,7 @@ fi
@@ -335,7 +298,7 @@ fi
#'osfmach3ppc') ccdlflags='-Wl,-E' ;;
#esac
@ -256,7 +265,7 @@ index a148248..3f38ea0 100644
sparc*)
case "$cccdlflags" in
*-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;;
@@ -350,17 +303,55 @@ esac
@@ -350,17 +313,55 @@ esac
# version of -lgdbm which is a bad idea. So if we have 'nm'
# make sure it can read the file
# NI-S 2003/08/07
@ -322,7 +331,7 @@ index a148248..3f38ea0 100644
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
@@ -437,7 +428,7 @@ then
@@ -437,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -1,11 +1,21 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index 956adfc..3f38ea0 100644
index 956adfc..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -178,6 +178,23 @@ case "$plibpth" in
@@ -178,6 +178,33 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
@ -26,7 +36,7 @@ index 956adfc..3f38ea0 100644
case "$libc" in
'')
# If you have glibc, then report the version for ./myconfig bug reporting.
@@ -204,92 +221,6 @@ case "$libc" in
@@ -204,92 +231,6 @@ case "$libc" in
;;
esac
@ -119,7 +129,7 @@ index 956adfc..3f38ea0 100644
if ${sh:-/bin/sh} -c exit; then
echo ''
echo 'You appear to have a working bash. Good.'
@@ -497,7 +428,7 @@ then
@@ -497,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -1,11 +1,21 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index 956adfc..3f38ea0 100644
index 956adfc..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -178,6 +178,23 @@ case "$plibpth" in
@@ -178,6 +178,33 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
@ -26,7 +36,7 @@ index 956adfc..3f38ea0 100644
case "$libc" in
'')
# If you have glibc, then report the version for ./myconfig bug reporting.
@@ -204,92 +221,6 @@ case "$libc" in
@@ -204,92 +231,6 @@ case "$libc" in
;;
esac
@ -119,7 +129,7 @@ index 956adfc..3f38ea0 100644
if ${sh:-/bin/sh} -c exit; then
echo ''
echo 'You appear to have a working bash. Good.'
@@ -497,7 +428,7 @@ then
@@ -497,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -1,11 +1,21 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index 956adfc..3f38ea0 100644
index 956adfc..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -178,6 +178,23 @@ case "$plibpth" in
@@ -178,6 +178,33 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
@ -26,7 +36,7 @@ index 956adfc..3f38ea0 100644
case "$libc" in
'')
# If you have glibc, then report the version for ./myconfig bug reporting.
@@ -204,92 +221,6 @@ case "$libc" in
@@ -204,92 +231,6 @@ case "$libc" in
;;
esac
@ -119,7 +129,7 @@ index 956adfc..3f38ea0 100644
if ${sh:-/bin/sh} -c exit; then
echo ''
echo 'You appear to have a working bash. Good.'
@@ -497,7 +428,7 @@ then
@@ -497,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -1,11 +1,21 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index 956adfc..3f38ea0 100644
index 956adfc..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -178,6 +178,23 @@ case "$plibpth" in
@@ -178,6 +178,33 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
+# libquadmath is sometimes installed as gcc internal library,
+# so contrary to our usual policy of *not* looking at gcc internal
+# directories we now *do* look at them, in case they contain
@ -26,7 +36,7 @@ index 956adfc..3f38ea0 100644
case "$libc" in
'')
# If you have glibc, then report the version for ./myconfig bug reporting.
@@ -204,92 +221,6 @@ case "$libc" in
@@ -204,92 +231,6 @@ case "$libc" in
;;
esac
@ -119,7 +129,7 @@ index 956adfc..3f38ea0 100644
if ${sh:-/bin/sh} -c exit; then
echo ''
echo 'You appear to have a working bash. Good.'
@@ -497,7 +428,7 @@ then
@@ -497,7 +438,7 @@ then
DBLIB="$DBDIR/libdb.so"
if [ -f $DBLIB ]
then

View file

@ -1,8 +1,25 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index fb5a46e..3f38ea0 100644
index fb5a46e..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -221,92 +221,6 @@ case "$libc" in
@@ -178,6 +178,16 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
# libquadmath is sometimes installed as gcc internal library,
# so contrary to our usual policy of *not* looking at gcc internal
# directories we now *do* look at them, in case they contain
@@ -221,92 +231,6 @@ case "$libc" in
;;
esac

View file

@ -1,8 +1,25 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index fb5a46e..3f38ea0 100644
index fb5a46e..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -221,92 +221,6 @@ case "$libc" in
@@ -178,6 +178,16 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
# libquadmath is sometimes installed as gcc internal library,
# so contrary to our usual policy of *not* looking at gcc internal
# directories we now *do* look at them, in case they contain
@@ -221,92 +231,6 @@ case "$libc" in
;;
esac

View file

@ -1,8 +1,25 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index fb5a46e..3f38ea0 100644
index fb5a46e..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -221,92 +221,6 @@ case "$libc" in
@@ -178,6 +178,16 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
# libquadmath is sometimes installed as gcc internal library,
# so contrary to our usual policy of *not* looking at gcc internal
# directories we now *do* look at them, in case they contain
@@ -221,92 +231,6 @@ case "$libc" in
;;
esac

View file

@ -1,8 +1,25 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index fb5a46e..3f38ea0 100644
index fb5a46e..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -221,92 +221,6 @@ case "$libc" in
@@ -178,6 +178,16 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
# libquadmath is sometimes installed as gcc internal library,
# so contrary to our usual policy of *not* looking at gcc internal
# directories we now *do* look at them, in case they contain
@@ -221,92 +231,6 @@ case "$libc" in
;;
esac

View file

@ -1,8 +1,25 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index fb5a46e..3f38ea0 100644
index fb5a46e..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -221,92 +221,6 @@ case "$libc" in
@@ -178,6 +178,16 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
# libquadmath is sometimes installed as gcc internal library,
# so contrary to our usual policy of *not* looking at gcc internal
# directories we now *do* look at them, in case they contain
@@ -221,92 +231,6 @@ case "$libc" in
;;
esac

View file

@ -1,8 +1,25 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index fb5a46e..3f38ea0 100644
index fb5a46e..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -221,92 +221,6 @@ case "$libc" in
@@ -178,6 +178,16 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
# libquadmath is sometimes installed as gcc internal library,
# so contrary to our usual policy of *not* looking at gcc internal
# directories we now *do* look at them, in case they contain
@@ -221,92 +231,6 @@ case "$libc" in
;;
esac

View file

@ -1,8 +1,25 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index fb5a46e..3f38ea0 100644
index fb5a46e..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -221,92 +221,6 @@ case "$libc" in
@@ -178,6 +178,16 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
# libquadmath is sometimes installed as gcc internal library,
# so contrary to our usual policy of *not* looking at gcc internal
# directories we now *do* look at them, in case they contain
@@ -221,92 +231,6 @@ case "$libc" in
;;
esac

View file

@ -1,8 +1,25 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index fb5a46e..3f38ea0 100644
index fb5a46e..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -221,92 +221,6 @@ case "$libc" in
@@ -178,6 +178,16 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
# libquadmath is sometimes installed as gcc internal library,
# so contrary to our usual policy of *not* looking at gcc internal
# directories we now *do* look at them, in case they contain
@@ -221,92 +231,6 @@ case "$libc" in
;;
esac

View file

@ -0,0 +1,21 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index 3f38ea0..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -178,6 +178,16 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
# libquadmath is sometimes installed as gcc internal library,
# so contrary to our usual policy of *not* looking at gcc internal
# directories we now *do* look at them, in case they contain

View file

@ -0,0 +1,21 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index 3f38ea0..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -178,6 +178,16 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
# libquadmath is sometimes installed as gcc internal library,
# so contrary to our usual policy of *not* looking at gcc internal
# directories we now *do* look at them, in case they contain

View file

@ -0,0 +1,21 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index 3f38ea0..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -178,6 +178,16 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
# libquadmath is sometimes installed as gcc internal library,
# so contrary to our usual policy of *not* looking at gcc internal
# directories we now *do* look at them, in case they contain

View file

@ -0,0 +1,21 @@
diff --git a/hints/linux.sh b/hints/linux.sh
index 3f38ea0..a985a8e 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -178,6 +178,16 @@ case "$plibpth" in
;;
esac
+# For the musl libc, perl should #define _GNU_SOURCE. Otherwise, some
+# available functions, like memem, won't be used. See the discussion in
+# [perl #133760]. musl doesn't offer an easy way to identify it, but,
+# at least on alpine linux, the ldd --version output contains the
+# string 'musl.'
+case `ldd --version 2>&1` in
+ musl*) ccflags="$ccflags -D_GNU_SOURCE" ;;
+ *) ;;
+esac
+
# libquadmath is sometimes installed as gcc internal library,
# so contrary to our usual policy of *not* looking at gcc internal
# directories we now *do* look at them, in case they contain