瀏覽代碼

test(1)'s equality operator is '=' not '=='.

'==' does work in some implementations though.
master
Richard Nyberg 16 年之前
父節點
當前提交
86500486e7
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      configure.ac

+ 4
- 4
configure.ac 查看文件

@@ -56,7 +56,7 @@ AC_COMPILE_IFELSE([
int main(void) { return clock_gettime(CLOCK_MONOTONIC, (void *)0); } int main(void) { return clock_gettime(CLOCK_MONOTONIC, (void *)0); }
], clock_gettime=yes, clock_gettime=no) ], clock_gettime=yes, clock_gettime=no)
AC_MSG_RESULT($clock_gettime) AC_MSG_RESULT($clock_gettime)
if test $clock_gettime == yes; then if test $clock_gettime = yes; then
old_LIBS=$LIBS old_LIBS=$LIBS
LIBS="" LIBS=""
AC_SEARCH_LIBS(clock_gettime,rt,clock_gettime=yes,clock_gettime=no) AC_SEARCH_LIBS(clock_gettime,rt,clock_gettime=yes,clock_gettime=no)
@@ -64,7 +64,7 @@ if test $clock_gettime == yes; then
LIBS=$old_LIBS LIBS=$old_LIBS
AC_DEFINE(HAVE_CLOCK_MONOTONIC) AC_DEFINE(HAVE_CLOCK_MONOTONIC)
fi fi
if test $clock_gettime == no; then if test $clock_gettime = no; then
AC_CHECK_FUNCS(mach_absolute_time,, AC_CHECK_FUNCS(mach_absolute_time,,
AC_MSG_FAILURE(no supported time mechanism found)) AC_MSG_FAILURE(no supported time mechanism found))
fi fi
@@ -108,7 +108,7 @@ for m in $evloop_methods; do
;; ;;
esac esac
done done
if test x"$EVLOOP_METHOD" == x; then if test x"$EVLOOP_METHOD" = x; then
AC_MSG_FAILURE(no suitable evloop method found) AC_MSG_FAILURE(no suitable evloop method found)
exit 1 exit 1
else else
@@ -117,7 +117,7 @@ fi


for i in 0 1 2 3 4 5 6 7; do for i in 0 1 2 3 4 5 6 7; do
case $i in case $i in
0) if test x"$TD_CFLAGS$TD_LIBS" == x; then continue; fi;; 0) if test x"$TD_CFLAGS$TD_LIBS" = x; then continue; fi;;
1) TD_CFLAGS=-pthread;; 1) TD_CFLAGS=-pthread;;
2) TD_CFLAGS=-pthreads;; 2) TD_CFLAGS=-pthreads;;
3) TD_CFLAGS=-kthread;; 3) TD_CFLAGS=-kthread;;


||||||
x
 
000:0
Loading…
取消
儲存