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
66afa98f
Commit
66afa98f
authored
Jul 02, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Change WINE_GET_SONAME to allow it to be used as a replacement for AC_CHECK_LIB.
parent
c26505b7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
31 deletions
+35
-31
aclocal.m4
aclocal.m4
+14
-10
configure
configure
+0
-0
configure.ac
configure.ac
+21
-21
No files found.
aclocal.m4
View file @
66afa98f
...
...
@@ -30,27 +30,31 @@ AC_DEFUN([WINE_PATH_LDD],[AC_PATH_PROG(LDD,ldd,true,/sbin:/usr/sbin:$PATH)])
dnl **** Extract the soname of a library ****
dnl
dnl Usage: WINE_
GET_SONAME(LIBRARY, FUNCTION, [OTHER_LIBRARIES
])
dnl Usage: WINE_
CHECK_SONAME(library, function, [action-if-found, [action-if-not-found, [other_libraries, [pattern]]]
])
dnl
AC_DEFUN([WINE_
GET
_SONAME],
AC_DEFUN([WINE_
CHECK
_SONAME],
[AC_REQUIRE([WINE_PATH_LDD])dnl
AS_VAR_PUSHDEF([ac_Lib],[ac_cv_lib_soname_$1])dnl
AC_MSG_CHECKING([for -l$1 soname])
m4_pushdef([ac_lib_pattern],m4_default([$6],[lib$1]))dnl
AC_MSG_CHECKING([for -l$1])
AC_CACHE_VAL(ac_Lib,
[ac_
get
_soname_save_LIBS=$LIBS
LIBS="-l$1 $
3
$LIBS"
[ac_
check
_soname_save_LIBS=$LIBS
LIBS="-l$1 $
5
$LIBS"
AC_LINK_IFELSE([AC_LANG_CALL([], [$2])],
[case "$LIBEXT" in
dll) ;;
dylib) AS_VAR_SET(ac_Lib,[`otool -L conftest$ac_exeext | grep "
lib$1\\.[[0-9A-Za-z.]]*dylib" | sed -e "s/^.*\/\(lib$1
\.[[0-9A-Za-z.]]*dylib\).*$/\1/"';2,$d'`]) ;;
*) AS_VAR_SET(ac_Lib,[`$ac_cv_path_LDD conftest$ac_exeext | grep "
lib$1\\.$LIBEXT" | sed -e "s/^.*\(lib$1
\.$LIBEXT[[^ ]]*\).*$/\1/"';2,$d'`]) ;;
dylib) AS_VAR_SET(ac_Lib,[`otool -L conftest$ac_exeext | grep "
ac_lib_pattern\\.[[0-9A-Za-z.]]*dylib" | sed -e "s/^.*\/\(ac_lib_pattern
\.[[0-9A-Za-z.]]*dylib\).*$/\1/"';2,$d'`]) ;;
*) AS_VAR_SET(ac_Lib,[`$ac_cv_path_LDD conftest$ac_exeext | grep "
ac_lib_pattern\\.$LIBEXT" | sed -e "s/^.*\(ac_lib_pattern
\.$LIBEXT[[^ ]]*\).*$/\1/"';2,$d'`]) ;;
esac])
LIBS=$ac_
get
_soname_save_LIBS])dnl
LIBS=$ac_
check
_soname_save_LIBS])dnl
AS_IF([test "x]AS_VAR_GET(ac_Lib)[" = "x"],
[AC_MSG_RESULT([not found])],
[AC_MSG_RESULT([not found])
$4],
[AC_MSG_RESULT(AS_VAR_GET(ac_Lib))
AC_DEFINE_UNQUOTED(AS_TR_CPP(SONAME_LIB$1),["]AS_VAR_GET(ac_Lib)["],
[Define to the soname of the lib$1 library.])])dnl
[Define to the soname of the lib$1 library.])
$3])dnl
m4_popdef([ac_lib_pattern])dnl
AS_VAR_POPDEF([ac_Lib])])
dnl **** Link C code with an assembly file ****
...
...
configure
View file @
66afa98f
This diff is collapsed.
Click to expand it.
configure.ac
View file @
66afa98f
...
...
@@ -1105,27 +1105,27 @@ dnl **** Get the soname for libraries that we load dynamically ****
AC_DEFINE_UNQUOTED(SONAME_EXT,[".$LIBEXT"],[Define to the file extension of shared libraries.])
WINE_
GET_SONAME(X11,XCreateWindow
,[$X_LIBS $X_EXTRA_LIBS])
WINE_
GET_SONAME(Xext,XextCreateExtension
,[$X_LIBS -lX11 $X_EXTRA_LIBS])
WINE_
GET_SONAME(Xi,XOpenDevice
,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
WINE_
GET_SONAME(Xinerama,XineramaQueryScreens
,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
WINE_
GET_SONAME(Xrender,XRenderQueryExtension
,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
WINE_
GET_SONAME(Xrandr,XRRQueryExtension
,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
WINE_
GET_SONAME(Xcursor,XcursorImageLoadCursor
,[$X_LIBS -lX11 $X_EXTRA_LIBS])
WINE_
GET_SONAME(freetype,FT_Init_FreeType
,[$X_LIBS])
WINE_
GET_SONAME(GL,glXQueryExtension
,[$X_LIBS $X_EXTRA_LIBS])
WINE_
GET
_SONAME(hal,libhal_ctx_new)
WINE_
GET
_SONAME(txc_dxtn,fetch_2d_texel_rgba_dxt1)
WINE_
GET
_SONAME(cups,cupsGetDefault)
WINE_
GET
_SONAME(jack,jack_client_new)
WINE_
GET
_SONAME(fontconfig,FcInit)
WINE_
GET
_SONAME(ssl,SSL_library_init)
WINE_
GET
_SONAME(crypto,BIO_new_socket)
WINE_
GET
_SONAME(ncurses,waddch)
WINE_
GET
_SONAME(curses,waddch)
WINE_
GET
_SONAME(jpeg,jpeg_start_decompress)
WINE_
GET
_SONAME(capi20,capi20_isinstalled)
WINE_
GET
_SONAME(sane,sane_init)
WINE_
CHECK_SONAME(X11,XCreateWindow,,
,[$X_LIBS $X_EXTRA_LIBS])
WINE_
CHECK_SONAME(Xext,XextCreateExtension,,
,[$X_LIBS -lX11 $X_EXTRA_LIBS])
WINE_
CHECK_SONAME(Xi,XOpenDevice,,
,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
WINE_
CHECK_SONAME(Xinerama,XineramaQueryScreens,,
,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
WINE_
CHECK_SONAME(Xrender,XRenderQueryExtension,,
,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
WINE_
CHECK_SONAME(Xrandr,XRRQueryExtension,,
,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
WINE_
CHECK_SONAME(Xcursor,XcursorImageLoadCursor,,
,[$X_LIBS -lX11 $X_EXTRA_LIBS])
WINE_
CHECK_SONAME(freetype,FT_Init_FreeType,,
,[$X_LIBS])
WINE_
CHECK_SONAME(GL,glXQueryExtension,,
,[$X_LIBS $X_EXTRA_LIBS])
WINE_
CHECK
_SONAME(hal,libhal_ctx_new)
WINE_
CHECK
_SONAME(txc_dxtn,fetch_2d_texel_rgba_dxt1)
WINE_
CHECK
_SONAME(cups,cupsGetDefault)
WINE_
CHECK
_SONAME(jack,jack_client_new)
WINE_
CHECK
_SONAME(fontconfig,FcInit)
WINE_
CHECK
_SONAME(ssl,SSL_library_init)
WINE_
CHECK
_SONAME(crypto,BIO_new_socket)
WINE_
CHECK
_SONAME(ncurses,waddch)
WINE_
CHECK
_SONAME(curses,waddch)
WINE_
CHECK
_SONAME(jpeg,jpeg_start_decompress)
WINE_
CHECK
_SONAME(capi20,capi20_isinstalled)
WINE_
CHECK
_SONAME(sane,sane_init)
dnl **** Check for functions ****
...
...
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