summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-06-27 19:59:44 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-06-27 19:59:44 -0700
commitb3e3818388567538908795d9247ac9272244e969 (patch)
treec79c17440182373e16340560776dfd4ad8add3bb /configure
parentf4ab08f73bc1d16d4971a16a0a66b5621af77572 (diff)
downloadtxr-b3e3818388567538908795d9247ac9272244e969.tar.gz
txr-b3e3818388567538908795d9247ac9272244e969.tar.bz2
txr-b3e3818388567538908795d9247ac9272244e969.zip
Fix issues in configure found by ShellCheck.
* configure (have_timegm, tm_gmtoff, tm_tmzone): Unused variables removed. (SIZEOF_LONG_LONG_T): Reference to nonexistent variable fixed. Also, fixed two instances of arithmetic expressions using unnecessary $ prefixes on variables.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 3 insertions, 8 deletions
diff --git a/configure b/configure
index ebcd27ee..6fc5e065 100755
--- a/configure
+++ b/configure
@@ -112,7 +112,6 @@ debug_support=y
gen_gc=y
have_unistd=
have_sys_time=
-have_timegm=
have_syslog=
have_glob=
have_windows_h=
@@ -1130,7 +1129,7 @@ char DUMMY;
elif [ $SIZEOF_PTR -eq $SIZEOF_LONG ] ; then
intptr="long"
uintptr=y
- elif [ $SIZEOF_PTR -eq $SIZEOF_LONG_LONG_T ] ; then
+ elif [ $SIZEOF_PTR -eq $SIZEOF_LONGLONG_T ] ; then
intptr="longlong_t"
uintptr=$ulonglong
fi
@@ -1151,11 +1150,11 @@ intptr_max_expr="((((convert($intptr, 1) << $((SIZEOF_PTR * 8 - 2))) - 1) << 1)
printf "#define INT_PTR_MAX %s\n" "$intptr_max_expr" >> $config_h
printf "#define INT_PTR_MIN (-INT_PTR_MAX)\n" >> $config_h
-if [ -n "$longlong" ] && [ $SIZEOF_LONGLONG_T -eq $(( 2 * $SIZEOF_PTR )) ]
+if [ -n "$longlong" ] && [ $SIZEOF_LONGLONG_T -eq $(( 2 * SIZEOF_PTR )) ]
then
printf "#define HAVE_DOUBLE_INTPTR_T 1\n" >> $config_h
printf "typedef longlong_t double_intptr_t;\n" >> $config_h
-elif [ -n "$superlong" ] && [ $SIZEOF_SUPERLONG_T -eq $(( 2 * $SIZEOF_PTR )) ]
+elif [ -n "$superlong" ] && [ $SIZEOF_SUPERLONG_T -eq $(( 2 * SIZEOF_PTR )) ]
then
printf "#define HAVE_DOUBLE_INTPTR_T 1\n" >> $config_h
printf "typedef superlong_t double_intptr_t;\n" >> $config_h
@@ -1508,9 +1507,6 @@ fi
printf "detecting timezone fields in struct tm ... "
-tm_gmtoff=
-tm_tmzone=
-
for try_field in tm_gmtoff __tm_gmtoff ; do
cat > conftest.c <<!
#include <time.h>
@@ -1551,7 +1547,6 @@ int main(void)
if conftest ; then
printf "yes\n"
printf "#define HAVE_TIMEGM 1\n" >> $config_h
- have_timegm=y
else
printf "no\n"
fi