This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [PATCH 5.7.1/Configure] failure to set src='.'
[perl5.git] / hints / mint.sh
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
8 case `uname -m` in
9         atarist*) archname="m68000-mint"
10                   ;;
11         *)        archname="m68k-mint"
12                   ;;
13 esac              
14
15 here=`pwd | tr -d '\015'`
16
17 cc='gcc'
18
19 # The weird include path is really to work around some bugs in
20 # broken system header files.
21 ccflags="$ccflags -D__MINT__ -Uatarist -DDEBUGGING -I$here/../mint"
22
23 # libs
24
25 libpth="$prefix/lib /usr/lib /usr/local/lib"
26 glibpth="$libpth"
27 xlibpth="$libpth"
28
29 libswanted='gdbm socket port m'
30 so='none'
31
32 #
33 # compiler & linker flags
34 #
35 optimize='-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.
43 util_cflags='ccflags="$ccflags -DLOCALE_ENVIRON_REQUIRED"'
44
45 #
46 # Some good answers to the questions in Configure:
47 # Does Configure really get all these wrong?
48 usenm='true'
49 d_suidsafe='true'
50 clocktype='long'
51 usevfork='true'
52 d_fsetpos='fpos_t'
53 gidtype='gid_t'
54 groupstype='gid_t'
55 lseektype='long'
56 modetype='mode_t'
57 sizetype='size_t'
58 timetype='time_t'
59 uidtype='uid_t'
60
61 # Don't remove that leading tab character (Configure Black Magic (TM)).
62     broken_pwd=
63 case "`/bin/pwd|tr -d xy|tr '\015\012' 'xy'`" in
64 *xy) broken_pwd=yes ;;
65 esac
66
67 if test X"$broken_pwd" = Xyes
68 then
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
94 fi