This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Ticket number for bitops in perlexperiment
[perl5.git] / hints / gnu.sh
1 # hints/gnu.sh
2 # Last modified: Thu Dec 10 20:47:28 CET 1998
3 # Mark Kettenis <kettenis@phys.uva.nl>
4
5 # libnsl is unusable on the Hurd.
6 # XXX remove this once SUNRPC is implemented.
7 set `echo X "$libswanted "| sed -e 's/ bsd / /' -e 's/ nsl / /' -e 's/ c / pthread /'`
8 shift
9 libswanted="$*"
10
11 # Debian 4.0 puts ndbm in the -lgdbm_compat library.
12 libswanted="$libswanted gdbm_compat"
13
14 case "$optimize" in
15 '') optimize='-O2' ;;
16 esac
17
18 case "$plibpth" in
19 '') plibpth=`gcc -print-search-dirs | grep libraries |
20         cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
21     set X $plibpth # Collapse all entries on one line
22     shift
23     plibpth="$*"
24     ;;
25 esac
26
27 # Flags needed to produce shared libraries.
28 lddlflags='-shared'
29
30 # Flags needed by programs that use dynamic linking.
31 ccdlflags='-Wl,-E'
32
33 # Debian bug #258618
34 ccflags="-D_GNU_SOURCE $ccflags"
35
36 cat > UU/uselargefiles.cbu <<'EOCBU'
37 # This script UU/uselargefiles.cbu will get 'called-back' by Configure
38 # after it has prompted the user for whether to use large files.
39 case "$uselargefiles" in
40 ''|$define|true|[yY]*)
41 # Keep this in the left margin.
42 ccflags_uselargefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
43
44         ccflags="$ccflags $ccflags_uselargefiles"
45         ;;
46 esac
47 EOCBU
48
49 # The following routines are only available as stubs in GNU libc.
50 # XXX remove this once metaconf detects the GNU libc stubs.
51 d_msgctl='undef'
52 d_msgget='undef'
53 d_msgrcv='undef'
54 d_msgsnd='undef'
55 d_semctl='undef'
56 d_semget='undef'
57 d_semop='undef'
58 d_shmat='undef'
59 d_shmctl='undef'
60 d_shmdt='undef'
61 d_shmget='undef'