xref: /openbsd/gnu/usr.bin/perl/hints/dragonfly.sh (revision cca36db2)
1# hints/dragonfly.sh
2#
3# This file is mostly copied from hints/freebsd.sh with the OS version
4# information taken out and only the FreeBSD-4 information intact.
5# Please check with Todd Willey <xtoddx@gmail.com> before making
6# modifications to this file. See http://www.dragonflybsd.org/
7
8case "$osvers" in
9*)  usevfork='true'
10    case "$usemymalloc" in
11	"") usemymalloc='n'
12	    ;;
13    esac
14    libswanted=`echo $libswanted | sed 's/ malloc / /'`
15    ;;
16esac
17
18# Dynamic Loading flags have not changed much, so they are separated
19# out here to avoid duplicating them everywhere.
20case "$osvers" in
21*)  objformat=`/usr/bin/objformat`
22    libpth="/usr/lib /usr/local/lib"
23    glibpth="/usr/lib /usr/local/lib"
24    ldflags="-Wl,-E "
25    lddlflags="-shared "
26    cccdlflags='-DPIC -fPIC'
27    ;;
28esac
29
30case "$osvers" in
31*)  ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
32    if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
33	usenm=false
34    fi
35    ;;
36esac
37
38cat <<'EOM' >&4
39
40Some users have reported that Configure halts when testing for
41the O_NONBLOCK symbol with a syntax error.  This is apparently a
42sh error.  Rerunning Configure with ksh apparently fixes the
43problem.  Try
44       ksh Configure [your options]
45
46EOM
47
48# From: Anton Berezin <tobez@plab.ku.dk>
49# To: perl5-porters@perl.org
50# Subject: [PATCH 5.005_54] Configure - hints/freebsd.sh signal handler type
51# Date: 30 Nov 1998 19:46:24 +0100
52# Message-ID: <864srhhvcv.fsf@lion.plab.ku.dk>
53
54signal_t='void'
55d_voidsig='define'
56
57# This script UU/usethreads.cbu will get 'called-back' by Configure
58# after it has prompted the user for whether to use threads.
59cat > UU/usethreads.cbu <<'EOCBU'
60case "$usethreads" in
61$define|true|[yY]*)
62    case "$osvers" in
63    *)  ldflags="-pthread $ldflags"
64
65	# Both in 4.x and 5.x gethostbyaddr_r exists but
66	# it is "Temporary function, not threadsafe"...
67	# Presumably earlier it didn't even exist.
68	d_gethostbyaddr_r="undef"
69	d_gethostbyaddr_r_proto="0"
70
71	;;
72    esac
73esac
74EOCBU
75
76# malloc wrap works
77case "$usemallocwrap" in
78'') usemallocwrap='define' ;;
79esac
80