112 |
|
dnl If POSIX.4 semaphores are not available, we emulate them with pthread mutexes. |
113 |
|
SEMSRC= |
114 |
|
AC_CHECK_FUNCS(sem_init, , [ |
115 |
< |
if [ "x$HAVE_PTHREADS" = "xyes" ]; then |
115 |
> |
if test "x$HAVE_PTHREADS" = "xyes"; then |
116 |
|
SEMSRC=posix_sem.cpp |
117 |
|
fi |
118 |
|
]) |
510 |
|
AC_MSG_RESULT($SPARC_TYPE) |
511 |
|
case "$SPARC_TYPE" in |
512 |
|
SPARC_V8) |
513 |
< |
ASM_OPTIMIZATIONS="SPARC V8 architecture" |
513 |
> |
ASM_OPTIMIZATIONS="SPARC V8 architecture" |
514 |
|
DEFINES="$DEFINES -DSPARC_V8_ASSEMBLY" dnl -DOPTFLAGS" |
515 |
|
CFLAGS="$CFLAGS -Wa,-Av8" |
516 |
|
CXXFLAGS="$CXXFLAGS -Wa,-Av8" |
517 |
|
;; |
518 |
|
SPARC_V9) |
519 |
< |
ASM_OPTIMIZATIONS="SPARC V9 architecture" |
519 |
> |
ASM_OPTIMIZATIONS="SPARC V9 architecture" |
520 |
|
DEFINES="$DEFINES -DSPARC_V9_ASSEMBLY" dnl -DOPTFLAGS" |
521 |
|
CFLAGS="$CFLAGS -Wa,-Av9" |
522 |
|
CXXFLAGS="$CXXFLAGS -Wa,-Av9" |
542 |
|
|
543 |
|
dnl Remove the "-g" option if set for GCC. |
544 |
|
if [[ "x$HAVE_GCC27" = "xyes" ]]; then |
545 |
< |
dnl gb-- Probably not the cleanest way to take |
546 |
< |
CFLAGS=`echo $CFLAGS | sed -e 's/ -g / /;s/^-g / /;s/ -g$/ /;s/^-g$//'` |
547 |
< |
CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ -g / /;s/^-g / /;s/ -g$/ /;s/^-g$//'` |
545 |
> |
dnl gb-- Probably not the cleanest way to take |
546 |
> |
CFLAGS=`echo $CFLAGS | sed -e 's/ -g / /;s/^-g / /;s/ -g$/ /;s/^-g$//'` |
547 |
> |
CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ -g / /;s/^-g / /;s/ -g$/ /;s/^-g$//'` |
548 |
|
fi |
549 |
|
|
550 |
|
dnl Generate Makefile. |