diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2005-04-10 17:08:36 +0000 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2005-04-10 17:08:36 +0000 |
commit | 0a0abfba80ecb959bb176fcf214c3d9eeebfb1c6 (patch) | |
tree | 3bd838a0b1d2b4bcdb82b78ea56d62c54cc22030 /Configure | |
parent | ccafdc969fe8361303a07e7576d1af4e3e389a76 (diff) | |
download | perl-0a0abfba80ecb959bb176fcf214c3d9eeebfb1c6.tar.gz |
Configure now probes for _LIB_VERSION support in math.h/libm
LIBM_LIB_VERSION is defined if it does
p4raw-id: //depot/perl@24217
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 63 |
1 files changed, 48 insertions, 15 deletions
@@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Fri Apr 8 16:30:10 CEST 2005 [metaconfig 3.0 PL70] +# Generated on Sun Apr 10 19:26:39 CEST 2005 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <<EOF @@ -525,6 +525,7 @@ d_isnanl='' d_killpg='' d_lchown='' d_ldbl_dig='' +d_libm_lib_version='' d_link='' d_localtime_r='' localtime_r_proto='' @@ -663,6 +664,7 @@ d_shmget='' d_sigaction='' d_sigprocmask='' d_sigsetjmp='' +d_sitecustomize='' usesitecustomize='' d_sockatmark='' d_sockatmarkproto='' @@ -13948,6 +13950,38 @@ $rm -f ldbl_dig.? set d_ldbl_dig eval $setvar +: see if this is a math.h system +set math.h i_math +eval $inhdr + +d_libm_lib_version="$undef" +case $i_math in + $define) + : check to see if math.h defines _LIB_VERSION + echo " " + echo "Checking to see if your libm supports _LIB_VERSION..." >&4 + $cat >try.c <<EOCP +#include <unistd.h> +#include <math.h> +int main (int argc, char *argv[]) +{ + printf ("%d\n", _LIB_VERSION); + return (0); + } /* main */ +EOCP + set try + if eval $compile; then + foo=`$run ./try` + echo "Yes, it does ($foo)" >&4 + d_libm_lib_version="$define" + else + echo "No, it does not (probably harmless)\n" >&4 + fi + $rm -f try.* try core core.try.* + ;; + + esac + : see if link exists set link d_link eval $inlibc @@ -14101,10 +14135,6 @@ esac -: see if this is a math.h system -set math.h i_math -eval $inhdr - : see if sqrtl exists set sqrtl d_sqrtl eval $inlibc @@ -16136,6 +16166,17 @@ set d_sigsetjmp eval $setvar $rm -f try.c try + +d_sitecustomize="$undef" +case "$usesitecustomize" in + $define|true|[Yy]*) + usesitecustomize="$define" + d_sitecustomize="$define" + ;; + *) + usesitecustomize="$undef" + esac + : see if sockatmark exists set sockatmark d_sockatmark eval $inlibc @@ -19488,16 +19529,6 @@ case "$uidsign" in ;; esac - -case "$usesitecustomize" in - $define|true|[Yy]*) - usesitecustomize="$define" - ;; - *) - usesitecustomize="$undef" - ;; - esac - : determine compiler compiler case "$yacc" in '') @@ -20743,6 +20774,7 @@ d_isnanl='$d_isnanl' d_killpg='$d_killpg' d_lchown='$d_lchown' d_ldbl_dig='$d_ldbl_dig' +d_libm_lib_version='$d_libm_lib_version' d_link='$d_link' d_localtime_r='$d_localtime_r' d_locconv='$d_locconv' @@ -20882,6 +20914,7 @@ d_shmget='$d_shmget' d_sigaction='$d_sigaction' d_sigprocmask='$d_sigprocmask' d_sigsetjmp='$d_sigsetjmp' +d_sitecustomize='$d_sitecustomize' d_sockatmark='$d_sockatmark' d_sockatmarkproto='$d_sockatmarkproto' d_socket='$d_socket' |