Regenerate META.yml
[p5sagit/p5-mst-13.2.git] / hints / mint.sh
CommitLineData
61ae2fbf 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 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 48usenm='true'
49d_suidsafe='true'
50clocktype='long'
51usevfork='true'
52d_fsetpos='fpos_t'
53gidtype='gid_t'
54groupstype='gid_t'
55lseektype='long'
61ae2fbf 56modetype='mode_t'
57sizetype='size_t'
58timetype='time_t'
59uidtype='uid_t'
60
61# Don't remove that leading tab character (Configure Black Magic (TM)).
62 broken_pwd=
63case "`/bin/pwd|tr -d xy|tr '\015\012' 'xy'`" in
64*xy) broken_pwd=yes ;;
65esac
66
67if test X"$broken_pwd" = Xyes
68then
69 echo " "
70 echo "*** Building fixed 'pwd'... (as described in README.mint) ***"
71 echo " "
72 cd mint
73 make pwd
74 cd ..
75 if test -x mint/pwd -a -w /usr/bin
76 then
77 echo " "
78 echo "*** Installing fixed 'pwd'... ***"
79 echo " "
80 cd mint
81 make install
82 cd ..
83 if cmp -s mint/pwd /usr/bin/pwd
84 then
85 echo "*** Installed fixed 'pwd' successfully. ***"
86 else
87 echo "*** Failed to install fixed 'pwd'. Aborting. ***"
88 exit 1
89 fi
90 else
91 echo "*** Cannot install fixed 'pwd'. Aborting. ***"
92 exit 1
93 fi
94fi