common/autoconf/autogen.sh

changeset 598
db46b1c27a93
parent 571
7a3c6ffdf1fb
child 664
15c1642967c9
equal deleted inserted replaced
597:e28985c549aa 598:db46b1c27a93
24 24
25 script_dir=`dirname $0` 25 script_dir=`dirname $0`
26 26
27 # Create a timestamp as seconds since epoch 27 # Create a timestamp as seconds since epoch
28 if test "x`uname -s`" = "xSunOS"; then 28 if test "x`uname -s`" = "xSunOS"; then
29 # date +%s is not available on Solaris, use this workaround 29 TIMESTAMP=`date +%s`
30 # from http://solarisjedi.blogspot.co.uk/2006/06/solaris-date-command-and-epoch-time.html 30 if test "x$TIMESTAMP" = "x%s"; then
31 TIMESTAMP=`/usr/bin/truss /usr/bin/date 2>&1 | nawk -F= '/^time\(\)/ {gsub(/ /,"",$2);print $2}'` 31 # date +%s not available on this Solaris, use workaround from nawk(1):
32 TIMESTAMP=`nawk 'BEGIN{print srand()}'`
33 fi
32 else 34 else
33 TIMESTAMP=`date +%s` 35 TIMESTAMP=`date +%s`
34 fi 36 fi
35 37
36 if test "x$CUSTOM_CONFIG_DIR" = "x"; then 38 if test "x$CUSTOM_CONFIG_DIR" = "x"; then

mercurial