version 1.82, 2011/09/16 17:57:16
|
version 1.83, 2011/09/16 18:02:43
|
Line 1889 $as_echo "$ac_res" >&6; }
|
Line 1889 $as_echo "$ac_res" >&6; }
|
|
|
} # ac_fn_c_check_func |
} # ac_fn_c_check_func |
|
|
|
# ac_fn_c_try_run LINENO |
|
# ---------------------- |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
|
# that executables *can* be run. |
|
ac_fn_c_try_run () |
|
{ |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
if { { ac_try="$ac_link" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo"; } >&5 |
|
(eval "$ac_link") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
{ { case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo"; } >&5 |
|
(eval "$ac_try") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
test $ac_status = 0; }; }; then : |
|
ac_retval=0 |
|
else |
|
$as_echo "$as_me: program exited with status $ac_status" >&5 |
|
$as_echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_retval=$ac_status |
|
fi |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
as_fn_set_status $ac_retval |
|
|
|
} # ac_fn_c_try_run |
|
|
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
# ------------------------------------------- |
# ------------------------------------------- |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
Line 1943 $as_echo "$ac_res" >&6; }
|
Line 1985 $as_echo "$ac_res" >&6; }
|
|
|
} # ac_fn_c_check_type |
} # ac_fn_c_check_type |
|
|
# ac_fn_c_try_run LINENO |
|
# ---------------------- |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
|
# that executables *can* be run. |
|
ac_fn_c_try_run () |
|
{ |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
if { { ac_try="$ac_link" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo"; } >&5 |
|
(eval "$ac_link") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
{ { case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo"; } >&5 |
|
(eval "$ac_try") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
test $ac_status = 0; }; }; then : |
|
ac_retval=0 |
|
else |
|
$as_echo "$as_me: program exited with status $ac_status" >&5 |
|
$as_echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_retval=$ac_status |
|
fi |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
as_fn_set_status $ac_retval |
|
|
|
} # ac_fn_c_try_run |
|
|
|
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
# -------------------------------------------- |
# -------------------------------------------- |
# Tries to find the compile-time value of EXPR in a program that includes |
# Tries to find the compile-time value of EXPR in a program that includes |
Line 6041 fi
|
Line 6041 fi
|
if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then |
if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then |
REG=$LDFLAGS |
REG=$LDFLAGS |
LDFLAGS=-pthread |
LDFLAGS=-pthread |
AC_MSG_CHECKING([for POSIX anonymous semaphores]) |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5 |
AC_RUN_IFELSE( |
$as_echo_n "checking for POSIX anonymous semaphores... " >&6; } |
[AC_LANG_PROGRAM([#include <semaphore.h> |
if test "$cross_compiling" = yes; then : |
], |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
[ sem_t sem; |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
as_fn_error $? "cannot run test program while cross compiling |
|
See \`config.log' for more details" "$LINENO" 5; } |
|
else |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
/* end confdefs.h. */ |
|
#include <semaphore.h> |
|
|
|
int |
|
main () |
|
{ |
|
sem_t sem; |
if (sem_init(&sem, 1, 0) != 0) return(1); |
if (sem_init(&sem, 1, 0) != 0) return(1); |
sem_destroy(&sem); |
sem_destroy(&sem); |
return(0); |
return(0); |
])], |
|
[SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; AC_MSG_RESULT(yes)], |
; |
[SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; AC_MSG_RESULT(no)], |
return 0; |
) |
} |
|
_ACEOF |
|
if ac_fn_c_try_run "$LINENO"; then : |
|
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
$as_echo "yes" >&6; } |
|
else |
|
SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
$as_echo "no" >&6; } |
|
|
|
fi |
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
fi |
|
|
LDFLAGS=$REG |
LDFLAGS=$REG |
REG="" |
REG="" |
else |
else |