This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make the no-luck-on-uselongdouble warning more visible.
[perl5.git] / hints / mint.sh
CommitLineData
61ae2fbf
JH
1# hints/mint.sh
2#
3# talk to gufl0000@stud.uni-sb.de if you want to change this file.
4# Please read the README.mint file.
5#
6# misc stuff
7
8case `uname -m` in
9 atarist*) archname="m68000-mint"
10 ;;
11 *) archname="m68k-mint"
12 ;;
13esac
14
15here=`pwd | tr -d '\015'`
16
17cc='gcc'
18
19# The weird include path is really to work around some bugs in
20# broken system header files.
c22e42be 21ccflags="$ccflags -D__MINT__ -Uatarist -DDEBUGGING -I$here/../mint"
61ae2fbf
JH
22
23# libs
24
25libpth="$prefix/lib /usr/lib /usr/local/lib"
26glibpth="$libpth"
27xlibpth="$libpth"
28
29libswanted='gdbm socket port m'
30so='none'
31
32#
33# compiler & linker flags
34#
35optimize='-O2 -fomit-frame-pointer -fno-defer-pop -fstrength-reduce'
36
37# The setlocale function in the MiNTLib is actually a bad joke. We
38# lend a workaround from Ultrix. If neither LC_ALL nor LANG is
39# set in the environment, perl won't complain. If one is set to
40# anything but "C" you will see a warning. Note that you can
41# still use the GNU extension "$LANGUAGE" if you want to use
42# the i18n features of some GNU packages.
43util_cflags='ccflags="$ccflags -DLOCALE_ENVIRON_REQUIRED"'
44
45#
46# Some good answers to the questions in Configure:
c22e42be 47# Does Configure really get all these wrong?
61ae2fbf
JH
48usenm='true'
49d_suidsafe='true'
50clocktype='long'
51usevfork='true'
52d_fsetpos='fpos_t'
53gidtype='gid_t'
54groupstype='gid_t'
55lseektype='long'
56models='none'
57modetype='mode_t'
58sizetype='size_t'
59timetype='time_t'
60uidtype='uid_t'
61
62# Don't remove that leading tab character (Configure Black Magic (TM)).
63 broken_pwd=
64case "`/bin/pwd|tr -d xy|tr '\015\012' 'xy'`" in
65*xy) broken_pwd=yes ;;
66esac
67
68if test X"$broken_pwd" = Xyes
69then
70 echo " "
71 echo "*** Building fixed 'pwd'... (as described in README.mint) ***"
72 echo " "
73 cd mint
74 make pwd
75 cd ..
76 if test -x mint/pwd -a -w /usr/bin
77 then
78 echo " "
79 echo "*** Installing fixed 'pwd'... ***"
80 echo " "
81 cd mint
82 make install
83 cd ..
84 if cmp -s mint/pwd /usr/bin/pwd
85 then
86 echo "*** Installed fixed 'pwd' successfully. ***"
87 else
88 echo "*** Failed to install fixed 'pwd'. Aborting. ***"
89 exit 1
90 fi
91 else
92 echo "*** Cannot install fixed 'pwd'. Aborting. ***"
93 exit 1
94 fi
95fi