comparison common/autoconf/autogen.sh @ 890:13ddc5c3ebfc

Merge
author jlaskey
date Sat, 02 Mar 2013 10:28:16 -0400
parents e64f2cb57d05
children 15c1642967c9
comparison
equal deleted inserted replaced
4:f108edf6e042 5:009572161a72
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