Commit | Line | Data |
---|---|---|
7145db39 LH |
1 | usevfork='true' |
2 | case "$usemymalloc" in | |
3 | "") usemymalloc='n' | |
4 | ;; | |
5 | esac | |
6 | libswanted=`echo $libswanted | sed 's/ malloc / /'` | |
7 | ||
8 | objformat=`/usr/bin/objformat` | |
9 | if [ x$objformat = xelf ]; then | |
10 | libpth="/usr/lib /usr/local/lib" | |
11 | glibpth="/usr/lib /usr/local/lib" | |
12 | ldflags="-Wl,-E " | |
13 | lddlflags="-shared " | |
14 | else | |
15 | if [ -e /usr/lib/aout ]; then | |
16 | libpth="/usr/lib/aout /usr/local/lib /usr/lib" | |
17 | glibpth="/usr/lib/aout /usr/local/lib /usr/lib" | |
18 | fi | |
19 | lddlflags='-Bshareable' | |
20 | fi | |
21 | cccdlflags='-DPIC -fPIC' | |
22 | ||
23 | ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H" | |
24 | if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then | |
25 | usenm=false | |
26 | fi | |
27 | ||
28 | signal_t='void' | |
29 | d_voidsig='define' | |
30 | ||
31 | # This script UU/usethreads.cbu will get 'called-back' by Configure | |
32 | # after it has prompted the user for whether to use threads. | |
33 | cat > UU/usethreads.cbu <<'EOCBU' | |
34 | case "$usethreads" in | |
35 | $define|true|[yY]*) | |
36 | lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'` | |
37 | ldflags="-pthread $ldflags" | |
38 | d_gethostbyaddr_r="undef" | |
39 | d_gethostbyaddr_r_proto="0" | |
40 | ||
41 | set `echo X "$libswanted "| sed -e 's/ c / c_r /'` | |
42 | shift | |
43 | libswanted="$*" | |
44 | # Configure will probably pick the wrong libc to use for nm scan. | |
45 | # The safest quick-fix is just to not use nm at all... | |
46 | usenm=false | |
47 | ||
48 | unset lc_r | |
49 | ||
50 | # Even with the malloc mutexes the Perl malloc does not | |
51 | # seem to be threadsafe in MidnightBSD? | |
52 | case "$usemymalloc" in | |
53 | '') usemymalloc=n ;; | |
54 | esac | |
55 | esac | |
56 | EOCBU | |
57 | ||
58 | # malloc wrap works | |
59 | case "$usemallocwrap" in | |
60 | '') usemallocwrap='define' ;; | |
61 | esac |