Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
921e6624
"README.md" did not exist on "7e4d4a7edb9c6e69f68491359cea0eb0c6af3de0"
Commit
921e6624
authored
16 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
configure: Better check for the broken mkdir on Windows.
parent
e2cb0c82
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure
+59
-2
59 additions, 2 deletions
configure
configure.ac
+9
-1
9 additions, 1 deletion
configure.ac
include/config.h.in
+3
-3
3 additions, 3 deletions
include/config.h.in
include/wine/port.h
+2
-2
2 additions, 2 deletions
include/wine/port.h
with
73 additions
and
8 deletions
configure
+
59
−
2
View file @
921e6624
...
...
@@ -17785,11 +17785,9 @@ esac
for ac_func in \
_mkdir \
_pclose \
_popen \
_snprintf \
...
...
@@ -18979,6 +18977,65 @@ esac
fi
{ $as_echo "$as_me:$LINENO: checking whether mkdir takes only one argument" >&5
$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
if test "${wine_cv_one_arg_mkdir+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/stat.h>
int
main ()
{
mkdir("foo");
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
wine_cv_one_arg_mkdir=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
wine_cv_one_arg_mkdir=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $wine_cv_one_arg_mkdir" >&5
$as_echo "$wine_cv_one_arg_mkdir" >&6; }
if test "$wine_cv_one_arg_mkdir" = "yes"
then
cat >>confdefs.h <<\_ACEOF
#define HAVE_ONE_ARG_MKDIR 1
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
9
−
1
View file @
921e6624
...
...
@@ -1354,7 +1354,6 @@ esac
dnl **** Check for functions ****
AC_CHECK_FUNCS(\
_mkdir \
_pclose \
_popen \
_snprintf \
...
...
@@ -1487,6 +1486,15 @@ fi
WINE_NOTICE_WITH(ldap,[test "x$LDAPLIBS" = "x"],
[libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.])
AC_CACHE_CHECK([whether mkdir takes only one argument],
wine_cv_one_arg_mkdir,
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/stat.h>]],[[mkdir("foo");]])],
[wine_cv_one_arg_mkdir=yes],[wine_cv_one_arg_mkdir=no]))
if test "$wine_cv_one_arg_mkdir" = "yes"
then
AC_DEFINE(HAVE_ONE_ARG_MKDIR, 1, [Define if mkdir takes only one argument])
fi
dnl **** Check for types ****
AC_C_CONST
...
...
This diff is collapsed.
Click to expand it.
include/config.h.in
+
3
−
3
View file @
921e6624
...
...
@@ -507,6 +507,9 @@
/* Define to 1 if the system has the type `off_t'. */
#undef HAVE_OFF_T
/* Define if mkdir takes only one argument */
#undef HAVE_ONE_ARG_MKDIR
/* Define if OpenGL is present on the system */
#undef HAVE_OPENGL
...
...
@@ -1002,9 +1005,6 @@
/* Define if Xrender has the XRenderSetPictureTransform function */
#undef HAVE_XRENDERSETPICTURETRANSFORM
/* Define to 1 if you have the `_mkdir' function. */
#undef HAVE__MKDIR
/* Define to 1 if you have the `_pclose' function. */
#undef HAVE__PCLOSE
...
...
This diff is collapsed.
Click to expand it.
include/wine/port.h
+
2
−
2
View file @
921e6624
...
...
@@ -114,8 +114,8 @@ struct statvfs
#define RTLD_GLOBAL 0x100
#endif
#ifdef HAVE__MKDIR
#define mkdir(path,mode)
_
mkdir(path)
#ifdef HAVE_
ONE_ARG
_MKDIR
#define mkdir(path,mode) mkdir(path)
#endif
#if !defined(HAVE_FTRUNCATE) && defined(HAVE_CHSIZE)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment