This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Added test names to some tests in t/test_pl/_num_to_alpha.t
[perl5.git] / Configure
index a1ba981..a1bc835 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -15068,9 +15068,9 @@ $cat >isblank.c <<'EOCP'
 int main() {
        int c = ' ';
        if (isblank(c))
-               exit(0);
+               return 0 ;
        else
-               exit(1);
+               return 1 ;
 }
 EOCP
 if $cc $ccflags $ldflags -o isblank isblank.c $libs >/dev/null 2>&1 ; then
@@ -19022,11 +19022,10 @@ Revision='$Revision'
 
 : check for alignment requirements
 echo " "
-case "$usecrosscompile$multiarch" in
+case "$usecrosscompile" in
 *$define*)
        $cat <<EOM
-You seem to be either cross-compiling or doing a multiarchitecture build,
-skipping the memory alignment check.
+You seem to be cross-compiling.  Skipping the memory alignment check.
 
 EOM
        case "$alignbytes" in
@@ -19064,6 +19063,17 @@ EOCP
                        dflt='8'
                        echo "(I can't seem to compile the test program...)"
                fi
+               case "$multiarch" in
+               *$define*)
+                       : The usual safe value is 8, but Darwin with -Duselongdouble
+                       : needs 16.  Hence, we will take 8 as a minimum, but allow
+                       : Configure to pick a larger value if needed.
+                       if $test "$dflt" -lt 8; then
+                           dflt='8'
+                               echo "Setting alignment to 8 for multiarch support.">&4
+                       fi
+                       ;;
+               esac
                ;;
        *) dflt="$alignbytes"
                ;;