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
de1d7fbe
Commit
de1d7fbe
authored
Mar 05, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Add check for libkstat on Solaris.
parent
a8238dd1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
0 deletions
+97
-0
configure
configure
+82
-0
configure.ac
configure.ac
+9
-0
config.h.in
include/config.h.in
+6
-0
No files found.
configure
View file @
de1d7fbe
...
...
@@ -661,6 +661,7 @@ CRTLIBS
LDPATH
BUILTINFLAG
EXTRACFLAGS
LIBKSTAT
FONTCONFIGINCL
CUPSINCL
AUDIOIOLIBS
...
...
@@ -6074,6 +6075,7 @@ done
for
ac_header
in
\
AudioUnit/AudioUnit.h
\
Carbon/Carbon.h
\
...
...
@@ -6099,6 +6101,7 @@ for ac_header in \
io.h
\
jack/jack.h
\
jpeglib.h
\
kstat.h
\
lber.h
\
lcms.h
\
lcms/lcms.h
\
...
...
@@ -17087,6 +17090,85 @@ esac
fi
if
test
"
$ac_cv_header_kstat_h
"
=
"yes"
then
{
$as_echo
"
$as_me
:
$LINENO
: checking for kstat_open in -lkstat"
>
&5
$as_echo_n
"checking for kstat_open in -lkstat... "
>
&6
;
}
if
test
"
${
ac_cv_lib_kstat_kstat_open
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
ac_check_lib_save_LIBS
=
$LIBS
LIBS
=
"-lkstat
$LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char kstat_open ();
int
main ()
{
return kstat_open ();
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
ac_try
=
"
$ac_link
"
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_link
"
)
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_exeext
&&
{
test
"
$cross_compiling
"
=
yes
||
$as_test_x
conftest
$ac_exeext
}
;
then
ac_cv_lib_kstat_kstat_open
=
yes
else
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_lib_kstat_kstat_open
=
no
fi
rm
-rf
conftest.dSYM
rm
-f
core conftest.err conftest.
$ac_objext
conftest_ipa8_conftest.oo
\
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$ac_cv_lib_kstat_kstat_open
"
>
&5
$as_echo
"
$ac_cv_lib_kstat_kstat_open
"
>
&6
;
}
if
test
"x
$ac_cv_lib_kstat_kstat_open
"
=
x
""
yes
;
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_LIBKSTAT 1
_ACEOF
LIBKSTAT
=
"-lkstat"
fi
fi
{
$as_echo
"
$as_me
:
$LINENO
: checking for -lodbc"
>
&5
$as_echo_n
"checking for -lodbc... "
>
&6
;
}
if
test
"
${
ac_cv_lib_soname_odbc
+set
}
"
=
set
;
then
...
...
configure.ac
View file @
de1d7fbe
...
...
@@ -282,6 +282,7 @@ AC_CHECK_HEADERS(\
io.h \
jack/jack.h \
jpeglib.h \
kstat.h \
lber.h \
lcms.h \
lcms/lcms.h \
...
...
@@ -1296,6 +1297,14 @@ fi
WINE_WARNING_WITH(png,[test "x$ac_cv_lib_soname_png" = "x"],
[libpng ${notice_platform}development files not found, PNG won't be supported.])
dnl **** Check for libkstat ****
if test "$ac_cv_header_kstat_h" = "yes"
then
AC_CHECK_LIB(kstat,kstat_open,
[AC_DEFINE(HAVE_LIBKSTAT, 1, [Define to 1 if you have the `kstat' library (-lkstat).])
AC_SUBST(LIBKSTAT,"-lkstat")])
fi
dnl **** Check for libodbc ****
WINE_CHECK_SONAME(odbc,SQLConnect,,[AC_DEFINE_UNQUOTED(SONAME_LIBODBC,["libodbc.$LIBEXT"])])
...
...
include/config.h.in
View file @
de1d7fbe
...
...
@@ -273,6 +273,9 @@
/* Define to 1 if you have the `kqueue' function. */
#undef HAVE_KQUEUE
/* Define to 1 if you have the <kstat.h> header file. */
#undef HAVE_KSTAT_H
/* Define to 1 if you have the <lber.h> header file. */
#undef HAVE_LBER_H
...
...
@@ -324,6 +327,9 @@
/* Define to 1 if you have the `i386' library (-li386). */
#undef HAVE_LIBI386
/* Define to 1 if you have the `kstat' library (-lkstat). */
#undef HAVE_LIBKSTAT
/* Define to 1 if you have the `ossaudio' library (-lossaudio). */
#undef HAVE_LIBOSSAUDIO
...
...
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