summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorYitzchak Scott-Thoennes <sthoenna@efn.org>2002-02-19 03:55:36 -0800
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-20 14:56:55 +0000
commitaade5aff4d4ca48f8b8ad56cbcbd37531afa2401 (patch)
treee3741f6dc75f91375c767070b1e2b0d0324c771c /hints
parenteade9b7139927966a87970564990ef3670609a0a (diff)
downloadperl-aade5aff4d4ca48f8b8ad56cbcbd37531afa2401.tar.gz
d_Gconvert hints and Glossary
Message-ID: <42qc8gzkgOFN092yn@efn.org> p4raw-id: //depot/perl@14786
Diffstat (limited to 'hints')
-rw-r--r--hints/aix.sh12
-rw-r--r--hints/dec_osf.sh1
-rw-r--r--hints/newsos4.sh2
-rw-r--r--hints/os2.sh9
-rw-r--r--hints/os390.sh2
-rw-r--r--hints/svr4.sh2
-rw-r--r--hints/svr5.sh2
7 files changed, 13 insertions, 17 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index 2d2468a337..53af9f5b78 100644
--- a/hints/aix.sh
+++ b/hints/aix.sh
@@ -475,18 +475,6 @@ EOM
esac
EOCBU
-cat > UU/uselongdouble.cbu <<'EOCBU'
-# This script UU/uselongdouble.cbu will get 'called-back' by Configure
-# after it has prompted the user for whether to use long doubles.
-case "$uselongdouble" in
-$define|true|[yY]*)
- # -qlongdouble for cc taken out on 20010522 cause it
- # causes more trouble than it does any good --hmb
- d_Gconvert='sprintf((b),"%.*llg",((int)(n)),(x))'
- ;;
-esac
-EOCBU
-
if test $usenativedlopen = 'true'
then
ccflags="$ccflags -DUSE_NATIVE_DLOPEN"
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh
index ae56198e87..1e0122f4fc 100644
--- a/hints/dec_osf.sh
+++ b/hints/dec_osf.sh
@@ -305,7 +305,6 @@ EOF
exit 1
;;
esac
- d_Gconvert='sprintf((b),"%.*Lg",(n),(x))'
;;
esac
EOCBU
diff --git a/hints/newsos4.sh b/hints/newsos4.sh
index 3e447a5569..5cbcc531e2 100644
--- a/hints/newsos4.sh
+++ b/hints/newsos4.sh
@@ -28,6 +28,6 @@ timetype='long'
# filemode type is int (not mode_t)
modetype='int'
# using sprintf(3) instead of gcvt(3)
-d_Gconvert='sprintf((b),"%.*g",(n),(x))'
+gconvert_preference=sprintf
# No POSIX.
useposix='false'
diff --git a/hints/os2.sh b/hints/os2.sh
index 9c1355cba4..77085a89b4 100644
--- a/hints/os2.sh
+++ b/hints/os2.sh
@@ -111,6 +111,15 @@ i_dlfcn='define'
# The default one uses exponential notation between 0.0001 and 0.1
d_Gconvert='gcvt_os2((x),(n),(b))'
+cat > UU/uselongdouble.cbu <<'EOCBU'
+# This script UU/uselongdouble.cbu will get 'called-back' by Configure
+# after it has prompted the user for whether to use long doubles.
+# If we will use them, let Configure choose us a Gconvert.
+case "$uselongdouble:$d_longdbl:$d_sqrtl:$d_modfl" in
+"$define:$define:$define:$define") d_Gconvert='' ;;
+esac
+EOCBU
+
# -Zomf build has a problem with _exit() *flushing*, so the test
# gets confused:
fflushNULL="define"
diff --git a/hints/os390.sh b/hints/os390.sh
index e85ebef978..38d02c3fad 100644
--- a/hints/os390.sh
+++ b/hints/os390.sh
@@ -208,7 +208,7 @@ fi
# a trivial Perl demonstration snippet is 'print 0.1'.
# The -W 0,float(ieee) seems to be the switch breaking gcvt().
# sprintf() seems to get things right(er).
-d_Gconvert='sprintf((b),"%.*g",(n),(x))'
+gconvert_preference=sprintf
cat >config.arch<<'__CONFIG_ARCH__'
# The '-W 0,float(ieee)' cannot be used during Configure as ldflags.
diff --git a/hints/svr4.sh b/hints/svr4.sh
index fe88f27dec..b3be9ac40b 100644
--- a/hints/svr4.sh
+++ b/hints/svr4.sh
@@ -23,7 +23,7 @@ libswanted=`echo " $libswanted " | sed -e 's/ malloc / /'` # -e 's/ ucb / /'`
# it is needed for ODBM_File and NDBM_File extensions.
if [ -r /usr/ucblib/libucb.a ]; then # If using BSD-compat. library:
- d_Gconvert='gcvt((x),(n),(b))' # Try gcvt() before gconvert().
+ gconvert_preference='gcvt sprintf' # Try gcvt() before gconvert().
# Use the "native" counterparts, not the BSD emulation stuff:
d_bcmp='undef' d_bcopy='undef' d_bzero='undef' d_safebcpy='undef'
d_index='undef' d_killpg='undef' d_getprior='undef' d_setprior='undef'
diff --git a/hints/svr5.sh b/hints/svr5.sh
index 5f772599eb..2ddcbb10ba 100644
--- a/hints/svr5.sh
+++ b/hints/svr5.sh
@@ -87,7 +87,7 @@ glibpth=`echo " $glibpth " | sed -e 's/ \/shlib / /' -e 's/ \/lib / /'`
# Don't use BSD emulation pieces (/usr/ucblib) regardless
# these would probably be autonondetected anyway but ...
-d_Gconvert='gcvt((x),(n),(b))' # Try gcvt() before gconvert().
+gconvert_preference='gcvt sprintf' # Try gcvt() before gconvert().
d_bcopy='undef' d_bcmp='undef' d_bzero='undef' d_safebcpy='undef'
d_index='undef' d_killpg='undef' d_getprior='undef' d_setprior='undef'
d_setlinebuf='undef'