xref: /openbsd/gnu/usr.bin/perl/hints/gnu.sh (revision 5af055cd)
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.
7set `echo X "$libswanted "| sed -e 's/ bsd / /' -e 's/ nsl / /' -e 's/ c / pthread /'`
8shift
9libswanted="$*"
10
11# Debian 4.0 puts ndbm in the -lgdbm_compat library.
12libswanted="$libswanted gdbm_compat"
13
14case "$optimize" in
15'') optimize='-O2' ;;
16esac
17
18case "$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    ;;
25esac
26
27# Flags needed to produce shared libraries.
28lddlflags='-shared'
29
30# Flags needed by programs that use dynamic linking.
31ccdlflags='-Wl,-E'
32
33# Debian bug #258618
34ccflags="-D_GNU_SOURCE $ccflags"
35
36cat > 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.
39case "$uselargefiles" in
40''|$define|true|[yY]*)
41# Keep this in the left margin.
42ccflags_uselargefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
43
44	ccflags="$ccflags $ccflags_uselargefiles"
45	;;
46esac
47EOCBU
48
49# The following routines are only available as stubs in GNU libc.
50# XXX remove this once metaconf detects the GNU libc stubs.
51d_msgctl='undef'
52d_msgget='undef'
53d_msgrcv='undef'
54d_msgsnd='undef'
55d_semctl='undef'
56d_semget='undef'
57d_semop='undef'
58d_shmat='undef'
59d_shmctl='undef'
60d_shmdt='undef'
61d_shmget='undef'
62