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
ad6ee47d
Commit
ad6ee47d
authored
May 03, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Use the pkg-config helper macro for sane.
parent
1470c5c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
55 deletions
+24
-55
configure
configure
+20
-46
configure.ac
configure.ac
+3
-8
Makefile.in
dlls/sane.ds/Makefile.in
+1
-1
No files found.
configure
View file @
ad6ee47d
...
...
@@ -659,8 +659,8 @@ GPHOTO2INCL
GPHOTO2LIBS
gphoto2port_devel
gphoto2_devel
SANE
INCL
sane_devel
SANE
_LIBS
SANE_CFLAGS
GNUTLS_LIBS
GNUTLS_CFLAGS
HAL_LIBS
...
...
@@ -872,7 +872,9 @@ DBUS_LIBS
HAL_CFLAGS
HAL_LIBS
GNUTLS_CFLAGS
GNUTLS_LIBS'
GNUTLS_LIBS
SANE_CFLAGS
SANE_LIBS'
# Initialize some variables set by options.
...
...
@@ -1571,6 +1573,8 @@ Some influential environment variables:
GNUTLS_CFLAGS
C compiler flags for gnutls, overriding pkg-config
GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
SANE_LIBS Linker flags for libsane, overriding pkg-config
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
...
...
@@ -10477,50 +10481,20 @@ fi
if
test
"x
$with_sane
"
!=
"xno"
then
ac_save_CPPFLAGS
=
"
$CPPFLAGS
"
# Extract the first word of "sane-config", so it can be a program name with args.
set
dummy sane-config
;
ac_word
=
$2
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for
$ac_word
"
>
&5
$as_echo_n
"checking for
$ac_word
... "
>
&6
;
}
if
${
ac_cv_prog_sane_devel
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
if
test
-n
"
$sane_devel
"
;
then
ac_cv_prog_sane_devel
=
"
$sane_devel
"
# Let the user override the test.
else
as_save_IFS
=
$IFS
;
IFS
=
$PATH_SEPARATOR
for
as_dir
in
$PATH
do
IFS
=
$as_save_IFS
test
-z
"
$as_dir
"
&&
as_dir
=
.
for
ac_exec_ext
in
''
$ac_executable_extensions
;
do
if
as_fn_executable_p
"
$as_dir
/
$ac_word$ac_exec_ext
"
;
then
ac_cv_prog_sane_devel
=
"sane-config"
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: found
$as_dir
/
$ac_word$ac_exec_ext
"
>
&5
break
2
fi
done
done
IFS
=
$as_save_IFS
if
test
-n
"
$SANE_CFLAGS
"
;
then
:
test
-z
"
$ac_cv_prog_sane_devel
"
&&
ac_cv_prog_sane_devel
=
"no"
fi
fi
sane_devel
=
$ac_cv_prog_sane_devel
if
test
-n
"
$sane_devel
"
;
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$sane_devel
"
>
&5
$as_echo
"
$sane_devel
"
>
&6
;
}
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
elif
test
-n
"
$PKG_CONFIG
"
;
then
:
SANE_CFLAGS
=
`
$PKG_CONFIG
--cflags
libsane 2>/dev/null
`
fi
SANE_CFLAGS
=
${
SANE_CFLAGS
:-
`
sane-config
--cflags
2>/dev/null
`
}
CPPFLAGS
=
"
$CPPFLAGS
$SANE_CFLAGS
"
if
test
-n
"
$SANE_LIBS
"
;
then
:
elif
test
-n
"
$PKG_CONFIG
"
;
then
:
SANE_LIBS
=
`
$PKG_CONFIG
--libs
libsane 2>/dev/null
`
fi
SANE_LIBS
=
${
SANE_LIBS
:-
`
sane-config
--ldflags
2>/dev/null
`
}
if
test
"
$sane_devel
"
!=
"no"
then
ac_sane_incl
=
"
`
$sane_devel
--cflags
`
"
ac_sane_libs
=
"
`
$sane_devel
--ldflags
`
"
CPPFLAGS
=
"
$CPPFLAGS
$ac_sane_incl
"
fi
ac_fn_c_check_header_mongrel
"
$LINENO
"
"sane/sane.h"
"ac_cv_header_sane_sane_h"
"
$ac_includes_default
"
if
test
"x
$ac_cv_header_sane_sane_h
"
=
xyes
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for -lsane"
>
&5
...
...
@@ -10529,7 +10503,7 @@ if ${ac_cv_lib_soname_sane+:} false; then :
$as_echo_n
"(cached) "
>
&6
else
ac_check_soname_save_LIBS
=
$LIBS
LIBS
=
"-lsane
$
ac_sane_libs
$LIBS
"
LIBS
=
"-lsane
$
SANE_LIBS
$LIBS
"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
...
...
@@ -10565,7 +10539,7 @@ fi
if
test
"x
$ac_cv_lib_soname_sane
"
=
"x"
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: not found"
>
&5
$as_echo
"not found"
>
&6
;
}
SANE_CFLAGS
=
""
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_lib_soname_sane
"
>
&5
$as_echo
"
$ac_cv_lib_soname_sane
"
>
&6
;
}
...
...
@@ -10574,9 +10548,9 @@ cat >>confdefs.h <<_ACEOF
#define SONAME_LIBSANE "
$ac_cv_lib_soname_sane
"
_ACEOF
SANEINCL
=
"
$ac_sane_incl
"
fi
SANE_CFLAGS
=
""
fi
...
...
configure.ac
View file @
ad6ee47d
...
...
@@ -1378,15 +1378,10 @@ dnl **** Check for SANE ****
if test "x$with_sane" != "xno"
then
ac_save_CPPFLAGS="$CPPFLAGS"
AC_CHECK_PROG(sane_devel,sane-config,sane-config,no)
if test "$sane_devel" != "no"
then
ac_sane_incl="`$sane_devel --cflags`"
ac_sane_libs="`$sane_devel --ldflags`"
CPPFLAGS="$CPPFLAGS $ac_sane_incl"
fi
WINE_PACKAGE_FLAGS(SANE,[libsane],,[sane-config --cflags],[sane-config --ldflags])
AC_CHECK_HEADER(sane/sane.h,
[WINE_CHECK_SONAME(sane,sane_init,[AC_SUBST(SANEINCL,"$ac_sane_incl")],,[$ac_sane_libs])])
[WINE_CHECK_SONAME(sane,sane_init,,[SANE_CFLAGS=""],[$SANE_LIBS])]
[SANE_CFLAGS=""])
CPPFLAGS="$ac_save_CPPFLAGS"
fi
WINE_NOTICE_WITH(sane,[test "x$ac_cv_lib_soname_sane" = "x"],
...
...
dlls/sane.ds/Makefile.in
View file @
ad6ee47d
MODULE
=
sane.ds
IMPORTS
=
comctl32 user32 gdi32
EXTRAINCL
=
@SANE
INCL
@
EXTRAINCL
=
@SANE
_CFLAGS
@
C_SRCS
=
\
capability.c
\
...
...
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