diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2009-02-10 16:39:29 +0100 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2009-02-10 16:39:29 +0100 |
| commit | 86500486e77860b7418e0bf2d8fa312db2484037 (patch) | |
| tree | ee81907cd0bd60c639f0891ce6ce5cd027060d4c /configure.ac | |
| parent | b1328200a14903daff6d129654b0a3c0b957e18a (diff) | |
| download | btpd-86500486e77860b7418e0bf2d8fa312db2484037.tar.gz btpd-86500486e77860b7418e0bf2d8fa312db2484037.zip | |
test(1)'s equality operator is '=' not '=='.
'==' does work in some implementations though.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index c9692e2..238fecf 100644 --- a/configure.ac +++ b/configure.ac @@ -56,7 +56,7 @@ AC_COMPILE_IFELSE([ int main(void) { return clock_gettime(CLOCK_MONOTONIC, (void *)0); } ], clock_gettime=yes, clock_gettime=no) AC_MSG_RESULT($clock_gettime) -if test $clock_gettime == yes; then +if test $clock_gettime = yes; then old_LIBS=$LIBS LIBS="" 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 AC_DEFINE(HAVE_CLOCK_MONOTONIC) fi -if test $clock_gettime == no; then +if test $clock_gettime = no; then AC_CHECK_FUNCS(mach_absolute_time,, AC_MSG_FAILURE(no supported time mechanism found)) fi @@ -108,7 +108,7 @@ for m in $evloop_methods; do ;; esac done -if test x"$EVLOOP_METHOD" == x; then +if test x"$EVLOOP_METHOD" = x; then AC_MSG_FAILURE(no suitable evloop method found) exit 1 else @@ -117,7 +117,7 @@ fi for i in 0 1 2 3 4 5 6 7; do 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;; 2) TD_CFLAGS=-pthreads;; 3) TD_CFLAGS=-kthread;; |