aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-11 12:20:31 +0100
committerJay Berkenbilt <ejb@ql.org>2021-02-11 20:26:55 +0100
commitdf067c9ab68dd4913a1591f048d9baf4f1c8d09c (patch)
tree12234b02bac3443fbef15e2272219d13df30e8d9 /configure
parent2538d84413ac574f6f8bcb9dfcc84254a11fa75d (diff)
downloadqpdf-df067c9ab68dd4913a1591f048d9baf4f1c8d09c.tar.zst
Add autoconf test for localtime_r
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 5 insertions, 16 deletions
diff --git a/configure b/configure
index 5a043128..af6e75ff 100755
--- a/configure
+++ b/configure
@@ -17474,24 +17474,13 @@ $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
fi
-for ac_func in fseeko64
+for ac_func in fseeko64 random localtime_r
do :
- ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
-if test "x$ac_cv_func_fseeko64" = xyes; then :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
-#define HAVE_FSEEKO64 1
-_ACEOF
-
-fi
-done
-
-
-for ac_func in random
-do :
- ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
-if test "x$ac_cv_func_random" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_RANDOM 1
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi