pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
1998-11-09
1998-11-09 09:46:05 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
284e06488602f26e2460631fd28fcf6a0f608e4f (
26
lines) (+
24
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
bugfix for FreeBSD (mostly)
Rev: src/configure.in:1.251
1:
-
AC_REVISION("$Id: configure.in,v 1.
250
1998/11/
06
21
:
34
:
31
grubba
Exp $")
+
AC_REVISION("$Id: configure.in,v 1.
251
1998/11/
09
09
:
46
:
05
hubbe
Exp $")
AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h)
839:
if test x$with_threads = xyes ; then OLDLIBS="$LIBS"
+
OLDCFLAGS="$CFLAGS"
if test "x$pike_cv_sys_os" = "xWindows_NT" ; then # NT has threads...
897:
AC_MSG_RESULT(no) else AC_MSG_RESULT(yes)
-
LIBS
="
${OLDLIBS}
-pthread"
+
CFLAGS
="
${CFLAGS}
-pthread"
+
LD_FALLBACK_FLAGS="${LD_FALLBACK_FLAGS-} -lc_r"
fi ;;
1050:
else AC_MSG_RESULT(no) LIBS="$OLDLIBS"
+
CFLAGS="$OLDCFLAGS"
# No POSIX threads.
1103:
else AC_MSG_RESULT(no) LIBS="$OLDLIBS"
+
CFLAGS="$OLDCFLAGS"
# Now we've sunk really low -- test for proprietary threads
2709:
with_dynamic_modules=no fi
+
#
+
# Since configure doesn't always know if we will be linking with ld or cc,
+
# We use this little code snippet to add flags to ld that would otherwise
+
# be given automatically by $(CC) $(CFLAGS)
+
# /Hubbe
+
#
-
+
case "x$LD" in
+
$CC*)
+
# Options in CFLAGS, no stuff needs to be added
+
;;
+
*)
+
LD="${LD} ${LD_FALLBACK_FLAGS-}"
+
;;
+
esac
+
+
+
############################################################################# echo