FreeBSD configure updates
This commit is contained in:
parent
1130039d19
commit
ac2c3a7253
12
configure.in
12
configure.in
@ -84,25 +84,21 @@ if test "$SYSTEM" = "NetBSD"; then
|
|||||||
LDFLAGS="$LDFLAGS `pthread-config --ldflags`"
|
LDFLAGS="$LDFLAGS `pthread-config --ldflags`"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl For FreeBSD we need -pthread for GCC
|
dnl For FreeBSD we need -pthread for gcc and don't need libpthread
|
||||||
dnl
|
dnl
|
||||||
if test "$SYSTEM" = "FreeBSD"; then
|
if test "$SYSTEM" = "FreeBSD"; then
|
||||||
CFLAGS="-pthread $CFLAGS"
|
CFLAGS="-pthread $CFLAGS"
|
||||||
fi
|
else
|
||||||
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl POSIX threads
|
|
||||||
dnl
|
|
||||||
AC_CHECK_LIB(pthread,pthread_create,result=yes,result=no)
|
AC_CHECK_LIB(pthread,pthread_create,result=yes,result=no)
|
||||||
if test "$result" = "yes"; then
|
if test "$result" = "yes"; then
|
||||||
LIBS="$LIBS -lpthread"
|
LIBS="$LIBS -lpthread"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
AC_CHECK_HEADERS(pthread.h,PTHREADS=Yes,PTHREADS=No)
|
AC_CHECK_HEADERS(pthread.h,PTHREADS=Yes,PTHREADS=No)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Defines for MBSE BBS (must use tests or --enable-stuff later)
|
dnl Defines for MBSE BBS (must use tests or --enable-stuff later)
|
||||||
dnl
|
dnl
|
||||||
|
@ -24,7 +24,7 @@ OTHER = Makefile issue issue.netbsd
|
|||||||
all: mbtask
|
all: mbtask
|
||||||
|
|
||||||
mbtask: ${OBJS} ${LIBS}
|
mbtask: ${OBJS} ${LIBS}
|
||||||
${CC} -o mbtask ${OBJS} ${LIBS}
|
${CC} ${CFLAGS} -o mbtask ${OBJS} ${LIBS}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f mbtask *.o *.h~ *.c~ version.* core filelist Makefile.bak
|
rm -f mbtask *.o *.h~ *.c~ version.* core filelist Makefile.bak
|
||||||
|
Reference in New Issue
Block a user