diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-08-12 17:04:58 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-08-12 17:04:58 +0000 |
commit | d8e53cf6c43f0f442ad1ab28ab963dc609bb1356 (patch) | |
tree | a11bc84dc991393da4c5ecefd2d6c77d027742de /configure | |
parent | fd527fbb52528d58d3d2e2636fd4a16d1335bc50 (diff) | |
download | skalibs-d8e53cf6c43f0f442ad1ab28ab963dc609bb1356.tar.gz skalibs-d8e53cf6c43f0f442ad1ab28ab963dc609bb1356.tar.xz skalibs-d8e53cf6c43f0f442ad1ab28ab963dc609bb1356.zip |
And the next iteration!
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/configure b/configure index baaee72..ef81550 100755 --- a/configure +++ b/configure @@ -180,14 +180,18 @@ trylibs () { args="$args $1" shift done - echo "$args" + echo ${args# } if test -z "$args" ; then echo " ... yes" >&3 else - echo " ... yes, with $args" >&3 + echo " ... yes, with$args" >&3 fi rm -f try$name.o return 0 + else + echo + echo " ... no" >&3 + return 1 fi } @@ -426,17 +430,8 @@ EOF hasclock=true clock_lib=`trylibs clockrt 'clock_gettime()' -lrt` || hasclock=false - if $clockrt ; then - echo "$clock_lib" > $sysdeps/sysclock.lib - echo "$clock_lib" > $sysdeps/tainnow.lib - else - echo > $sysdeps/sysclock.lib - if $clockmon ; then - echo "$clock_lib" > $sysdeps/tainnow.lib - else - echo > $sysdeps/tainnow.lib - fi - fi + echo "$clock_lib" > $sysdeps/sysclock.lib + echo "$clock_lib" > $sysdeps/tainnow.lib if $hasclock ; then echo 'clockrt: yes' >> $sysdeps/sysdeps echo "#define ${package_macro_name}_HASCLOCKRT" >> $sysdeps/sysdeps.h |