Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bc56c4ea
Commit
bc56c4ea
authored
Aug 25, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check for large filesystems support.
parent
86e48300
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
209 additions
and
1 deletion
+209
-1
configure
configure
+201
-0
configure.ac
configure.ac
+2
-0
config.h.in
include/config.h.in
+6
-0
port.h
include/wine/port.h
+0
-1
No files found.
configure
View file @
bc56c4ea
...
...
@@ -810,6 +810,7 @@ with_xslt
with_xxf86vm
with_wine_tools
with_wine64
enable_largefile
with_x
'
ac_precious_vars
=
'build_alias
...
...
@@ -1449,6 +1450,7 @@ Optional Features:
--disable-tests do not build the regression tests
--enable-maintainer-mode
enable maintainer-specific build rules
--disable-largefile omit support for large files
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
...
...
@@ -5174,6 +5176,205 @@ OPENGL_LIBS=""
# Check whether --enable-largefile was given.
if
test
"
${
enable_largefile
+set
}
"
=
set
;
then
:
enableval
=
$enable_largefile
;
fi
if
test
"
$enable_largefile
"
!=
no
;
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for special C compiler options needed for large files"
>
&5
$as_echo_n
"checking for special C compiler options needed for large files... "
>
&6
;
}
if
test
"
${
ac_cv_sys_largefile_CC
+set
}
"
=
set
;
then
:
$as_echo_n
"(cached) "
>
&6
else
ac_cv_sys_largefile_CC
=
no
if
test
"
$GCC
"
!=
yes
;
then
ac_save_CC
=
$CC
while
:
;
do
# IRIX 6.2 and later do not support large files by default,
# so use the C compiler's -n32 option if that helps.
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
;
return 0;
}
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
break
fi
rm
-f
core conftest.err conftest.
$ac_objext
CC
=
"
$CC
-n32"
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
ac_cv_sys_largefile_CC
=
' -n32'
;
break
fi
rm
-f
core conftest.err conftest.
$ac_objext
break
done
CC
=
$ac_save_CC
rm
-f
conftest.
$ac_ext
fi
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_sys_largefile_CC
"
>
&5
$as_echo
"
$ac_cv_sys_largefile_CC
"
>
&6
;
}
if
test
"
$ac_cv_sys_largefile_CC
"
!=
no
;
then
CC
=
$CC$ac_cv_sys_largefile_CC
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for _FILE_OFFSET_BITS value needed for large files"
>
&5
$as_echo_n
"checking for _FILE_OFFSET_BITS value needed for large files... "
>
&6
;
}
if
test
"
${
ac_cv_sys_file_offset_bits
+set
}
"
=
set
;
then
:
$as_echo_n
"(cached) "
>
&6
else
while
:
;
do
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
;
return 0;
}
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
ac_cv_sys_file_offset_bits
=
no
;
break
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
;
return 0;
}
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
ac_cv_sys_file_offset_bits
=
64
;
break
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
ac_cv_sys_file_offset_bits
=
unknown
break
done
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_sys_file_offset_bits
"
>
&5
$as_echo
"
$ac_cv_sys_file_offset_bits
"
>
&6
;
}
case
$ac_cv_sys_file_offset_bits
in
#(
no
|
unknown
)
;;
*
)
cat
>>
confdefs.h
<<
_ACEOF
#define _FILE_OFFSET_BITS
$ac_cv_sys_file_offset_bits
_ACEOF
;;
esac
rm
-rf
conftest
*
if
test
$ac_cv_sys_file_offset_bits
=
unknown
;
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for _LARGE_FILES value needed for large files"
>
&5
$as_echo_n
"checking for _LARGE_FILES value needed for large files... "
>
&6
;
}
if
test
"
${
ac_cv_sys_large_files
+set
}
"
=
set
;
then
:
$as_echo_n
"(cached) "
>
&6
else
while
:
;
do
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
;
return 0;
}
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
ac_cv_sys_large_files
=
no
;
break
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#define _LARGE_FILES 1
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
;
return 0;
}
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
ac_cv_sys_large_files
=
1
;
break
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
ac_cv_sys_large_files
=
unknown
break
done
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_sys_large_files
"
>
&5
$as_echo
"
$ac_cv_sys_large_files
"
>
&6
;
}
case
$ac_cv_sys_large_files
in
#(
no
|
unknown
)
;;
*
)
cat
>>
confdefs.h
<<
_ACEOF
#define _LARGE_FILES
$ac_cv_sys_large_files
_ACEOF
;;
esac
rm
-rf
conftest
*
fi
fi
ac_ext
=
c
ac_cpp
=
'$CPP $CPPFLAGS'
ac_compile
=
'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
...
...
configure.ac
View file @
bc56c4ea
...
...
@@ -290,6 +290,8 @@ AC_SUBST(OPENGL_LIBS,"")
dnl **** Check for header files ****
AC_SYS_LARGEFILE()
AC_CHECK_HEADERS(\
AudioUnit/AudioUnit.h \
Carbon/Carbon.h \
...
...
include/config.h.in
View file @
bc56c4ea
...
...
@@ -1209,6 +1209,12 @@
/* Define to 1 if the X Window System is missing or not being used. */
#undef X_DISPLAY_MISSING
/* Number of bits in a file offset, on hosts where this is settable. */
#undef _FILE_OFFSET_BITS
/* Define for large files, on AIX-style hosts. */
#undef _LARGE_FILES
/* Define to a macro to output a .cfi assembly pseudo-op */
#undef __ASM_CFI
...
...
include/wine/port.h
View file @
bc56c4ea
...
...
@@ -29,7 +29,6 @@
# error You must include port.h before all other headers
#endif
#define _FILE_OFFSET_BITS 64
#define _GNU_SOURCE
/* for pread/pwrite */
#include <fcntl.h>
#include <math.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment