This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Allow Configure's d_attribut to be set from the command line
authorGisle Aas <gisle@aas.no>
Thu, 30 Dec 2004 03:39:36 +0000 (19:39 -0800)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Thu, 30 Dec 2004 13:09:40 +0000 (13:09 +0000)
Message-ID: <lrllbgypzb.fsf@caliper.activestate.com>

p4raw-id: //depot/metaconfig@23710

U/modified/d_attribut.U

index dcc7625..827da66 100644 (file)
@@ -43,6 +43,8 @@
 ?LINT:set d_attribut
 ?LINT:known __attribute__
 : Look for GNU-cc style attribute checking
+case "$d_attribut" in
+'')
 echo " "
 echo "Checking whether your compiler can handle __attribute__ ..." >&4
 $cat >attrib.c <<'EOCP'
@@ -61,6 +63,9 @@ else
        echo "Your C compiler doesn't seem to understand __attribute__ at all."
        val="$undef"
 fi
+;;
+*) val="$d_attribut" ;;
+esac
 set d_attribut
 eval $setvar
 $rm -f attrib*