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
8cbb94ca
Commit
8cbb94ca
authored
Jan 07, 2004
by
Wim Lewis
Committed by
Alexandre Julliard
Jan 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed shell quoting of the inline-asm tests so that they work properly
with the pdksh that ships with OpenBSD.
parent
5fd5f384
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
129 additions
and
77 deletions
+129
-77
configure
configure
+114
-51
configure.ac
configure.ac
+15
-26
No files found.
configure
View file @
8cbb94ca
...
@@ -12749,8 +12749,8 @@ _ACEOF
...
@@ -12749,8 +12749,8 @@ _ACEOF
fi
fi
echo
"
$as_me
:
$LINENO
: checking
whether assembler accepts .string
"
>
&5
echo
"
$as_me
:
$LINENO
: checking
for assembler keyword for ASCII strings
"
>
&5
echo
$ECHO_N
"checking
whether assembler accepts .string
...
$ECHO_C
"
>
&6
echo
$ECHO_N
"checking
for assembler keyword for ASCII strings
...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_c_asm_string
+set
}
"
=
set
;
then
if
test
"
${
ac_cv_c_asm_string
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
else
...
@@ -12760,7 +12760,7 @@ _ACEOF
...
@@ -12760,7 +12760,7 @@ _ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
/* end confdefs.h. */
void ac_asm(void) { asm(".data\
n\t.string \"test\"\n
\t.text"); }
void ac_asm(void) { asm(".data\
\n\\t.string \\"test\\"\\n\
\t.text"); }
int
int
main ()
main ()
...
@@ -12791,38 +12791,60 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -12791,38 +12791,60 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status
=
$?
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_c_asm_string
=
"
yes
"
ac_cv_c_asm_string
=
"
.string
"
else
else
echo
"
$as_me
: failed program was:"
>
&5
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_c_asm_string
=
"no"
cat
>
conftest.
$ac_ext
<<
_ACEOF
fi
/* confdefs.h. */
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_asm_string
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_asm_string
"
>
&6
if
test
"
$ac_cv_c_asm_string
"
=
"yes"
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define __ASM_STRING ".string"
_ACEOF
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
int
main ()
{
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_c_asm_string
=
".asciz"
else
else
echo
"
$as_me
:
$LINENO
: checking whether assembler accepts .asciz"
>
&5
echo
"
$as_me
: failed program was:"
>
&5
echo
$ECHO_N
"checking whether assembler accepts .asciz...
$ECHO_C
"
>
&6
sed
's/^/| /'
conftest.
$ac_ext
>
&5
if
test
"
${
ac_cv_c_asm_asciz
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
cat
>
conftest.
$ac_ext
<<
_ACEOF
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
/* confdefs.h. */
_ACEOF
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
/* end confdefs.h. */
void ac_asm(void) { asm(".data\
n\t.asciz \"test\"\n
\t.text"); }
void ac_asm(void) { asm(".data\
\n\\t.ascii \\"test\\"\\n\
\t.text"); }
int
int
main ()
main ()
...
@@ -12853,35 +12875,36 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -12853,35 +12875,36 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status
=
$?
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_c_asm_
asciz
=
"yes
"
ac_cv_c_asm_
string
=
".ascii
"
else
else
echo
"
$as_me
: failed program was:"
>
&5
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_c_asm_asciz
=
"no"
{
{
echo
"
$as_me
:
$LINENO
: error: could not discover how to produce C strings with assembler."
>
&5
echo
"
$as_me
: error: could not discover how to produce C strings with assembler."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
fi
rm
-f
conftest.err conftest.
$ac_objext
\
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
conftest
$ac_exeext
conftest.
$ac_ext
fi
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_asm_asciz
"
>
&5
rm
-f
conftest.err conftest.
$ac_objext
\
echo
"
${
ECHO_T
}
$ac_cv_c_asm_asciz
"
>
&6
conftest
$ac_exeext
conftest.
$ac_ext
if
test
"
$ac_cv_c_asm_asciz
"
=
"yes"
fi
then
rm
-f
conftest.err conftest.
$ac_objext
\
cat
>>
confdefs.h
<<
\
_ACEOF
conftest
$ac_exeext
conftest.
$ac_ext
#define __ASM_STRING ".asciz"
fi
_ACEOF
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_asm_string
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_asm_string
"
>
&6
else
cat
>>
confdefs.h
<<
\
_ACEOF
cat
>>
confdefs.h
<<
_ACEOF
#define __ASM_STRING "
.ascii
"
#define __ASM_STRING "
$ac_cv_c_asm_string
"
_ACEOF
_ACEOF
fi
fi
echo
"
$as_me
:
$LINENO
: checking
whether assembler accepts .short
"
>
&5
echo
"
$as_me
:
$LINENO
: checking
for assembler keyword for word values
"
>
&5
echo
$ECHO_N
"checking
whether assembler accepts .short
...
$ECHO_C
"
>
&6
echo
$ECHO_N
"checking
for assembler keyword for word values
...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_c_asm_short
+set
}
"
=
set
;
then
if
test
"
${
ac_cv_c_asm_short
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
else
...
@@ -12891,7 +12914,49 @@ _ACEOF
...
@@ -12891,7 +12914,49 @@ _ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
/* end confdefs.h. */
void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
int
main ()
{
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_c_asm_short
=
".short"
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
int
int
main ()
main ()
...
@@ -12922,31 +12987,29 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
...
@@ -12922,31 +12987,29 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status
=
$?
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_c_asm_short
=
"
yes
"
ac_cv_c_asm_short
=
"
.half
"
else
else
echo
"
$as_me
: failed program was:"
>
&5
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_c_asm_short
=
"no"
{
{
echo
"
$as_me
:
$LINENO
: error: could not discover how to specify word values with assembler."
>
&5
echo
"
$as_me
: error: could not discover how to specify word values with assembler."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
fi
fi
rm
-f
conftest.err conftest.
$ac_objext
\
rm
-f
conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
conftest
$ac_exeext
conftest.
$ac_ext
fi
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_asm_short
"
>
&5
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_asm_short
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_asm_short
"
>
&6
echo
"
${
ECHO_T
}
$ac_cv_c_asm_short
"
>
&6
if
test
"
$ac_cv_c_asm_short
"
=
"yes"
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define __ASM_SHORT ".short"
_ACEOF
else
cat
>>
confdefs.h
<<
_ACEOF
cat
>>
confdefs.h
<<
\
_ACEOF
#define __ASM_SHORT "
$ac_cv_c_asm_short
"
#define __ASM_SHORT ".half"
_ACEOF
_ACEOF
fi
DLLEXT
=
""
DLLEXT
=
""
...
...
configure.ac
View file @
8cbb94ca
...
@@ -811,35 +811,24 @@ fi
...
@@ -811,35 +811,24 @@ fi
dnl **** Check how to do strings in assembler ****
dnl **** Check how to do strings in assembler ****
AC_CACHE_CHECK([whether assembler accepts .string], ac_cv_c_asm_string,
AC_CACHE_CHECK([for assembler keyword for ASCII strings], ac_cv_c_asm_string,
WINE_TRY_ASM_LINK([".data\n\t.string \"test\"\n\t.text"],,,
WINE_TRY_ASM_LINK([".data\\n\\t.string \\"test\\"\\n\\t.text"],,,ac_cv_c_asm_string=".string",
ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no"))
WINE_TRY_ASM_LINK([".data\\n\\t.asciz \\"test\\"\\n\\t.text"],,,ac_cv_c_asm_string=".asciz",
if test "$ac_cv_c_asm_string" = "yes"
WINE_TRY_ASM_LINK([".data\\n\\t.ascii \\"test\\"\\n\\t.text"],,,ac_cv_c_asm_string=".ascii",
then
AC_MSG_ERROR([could not discover how to produce C strings with assembler.])))))
AC_DEFINE(__ASM_STRING, [".string"], [Define to the assembler keyword used to specify an ASCII string])
else
AC_DEFINE_UNQUOTED(__ASM_STRING, ["$ac_cv_c_asm_string"],
AC_CACHE_CHECK([whether assembler accepts .asciz], ac_cv_c_asm_asciz,
[Define to the assembler keyword used to specify an ASCII string])
WINE_TRY_ASM_LINK([".data\n\t.asciz \"test\"\n\t.text"],,,
ac_cv_c_asm_asciz="yes",ac_cv_c_asm_asciz="no"))
if test "$ac_cv_c_asm_asciz" = "yes"
then
AC_DEFINE(__ASM_STRING, [".asciz"])
else
AC_DEFINE(__ASM_STRING, [".ascii"])
fi
fi
dnl **** Check for .short in assembler ****
dnl **** Check for .short in assembler ****
AC_CACHE_CHECK([whether assembler accepts .short], ac_cv_c_asm_short,
AC_CACHE_CHECK([for assembler keyword for word values], ac_cv_c_asm_short,
WINE_TRY_ASM_LINK([".data\n\t.short 1\n\t.text"],,,
WINE_TRY_ASM_LINK([".data\\n\\t.short 1\\n\\t.text"],,,ac_cv_c_asm_short=".short",
ac_cv_c_asm_short="yes",ac_cv_c_asm_short="no"))
WINE_TRY_ASM_LINK([".data\\n\\t.half 1\\n\\t.text"],,,ac_cv_c_asm_short=".half",
if test "$ac_cv_c_asm_short" = "yes"
AC_MSG_ERROR([could not discover how to specify word values with assembler.]))))
then
AC_DEFINE(__ASM_SHORT, [".short"], [Define to the assembler keyword used to specify a word value])
AC_DEFINE_UNQUOTED(__ASM_SHORT, ["$ac_cv_c_asm_short"],
else
[Define to the assembler keyword used to specify a word value])
AC_DEFINE(__ASM_SHORT, [".half"])
fi
dnl **** Check for working dll ****
dnl **** Check for working dll ****
...
...
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