summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-12-09 23:26:28 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-12-09 23:26:28 -0800
commit6761c0f78c270de16632959fc13cfb03b6d29986 (patch)
tree976338f271e88f73b44424503c9f484d792e19bd
parent6b1b28afd06048377f60640633ef23a2bb626579 (diff)
downloadtxr-6761c0f78c270de16632959fc13cfb03b6d29986.tar.gz
txr-6761c0f78c270de16632959fc13cfb03b6d29986.tar.bz2
txr-6761c0f78c270de16632959fc13cfb03b6d29986.zip
Solaris issue detecting ftello/fseeko.
* configure: re-test for ftello with _LARGEFILE_SOURCE and add to lang_flags if that works.
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index d3b821b3..54851c45 100755
--- a/configure
+++ b/configure
@@ -2356,6 +2356,10 @@ int main(int argc, char **argv)
if conftest ; then
printf "yes\n"
printf "#define HAVE_FSEEKO 1\n" >> $config_h
+elif conftest EXTRA_FLAGS=-D_LARGEFILE_SOURCE ; then
+ printf "yes\n"
+ printf "#define HAVE_FSEEKO 1\n" >> $config_h
+ lang_flags="$lang_flags -D_LARGEFILE_SOURCE"
else
printf "no\n"
fi