6 libswanted=`echo $libswanted | sed 's/ malloc / /'`
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"
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"
19 lddlflags='-Bshareable'
21 cccdlflags='-DPIC -fPIC'
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
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'
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"
41 set `echo X "$libswanted "| sed -e 's/ c / c_r /'`
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...
50 # Even with the malloc mutexes the Perl malloc does not
51 # seem to be threadsafe in MidnightBSD?
52 case "$usemymalloc" in
59 case "$usemallocwrap" in
60 '') usemallocwrap='define' ;;