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
d9ef88cd
Commit
d9ef88cd
authored
Jul 24, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check for freetype-config first, then use the libraries it specifies.
parent
ac8f2c03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
112 additions
and
106 deletions
+112
-106
configure
configure
+95
-92
configure.ac
configure.ac
+17
-14
No files found.
configure
View file @
d9ef88cd
...
...
@@ -13125,13 +13125,103 @@ FREETYPELIBS=""
FREETYPEINCL
=
""
{
echo
"
$as_me
:
$LINENO
: checking for FT_Init_FreeType in -lfreetype"
>
&5
# Extract the first word of "freetype-config", so it can be a program name with args.
set
dummy freetype-config
;
ac_word
=
$2
{
echo
"
$as_me
:
$LINENO
: checking for
$ac_word
"
>
&5
echo
$ECHO_N
"checking for
$ac_word
...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_prog_ft_devel
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
if
test
-n
"
$ft_devel
"
;
then
ac_cv_prog_ft_devel
=
"
$ft_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
{
test
-f
"
$as_dir
/
$ac_word$ac_exec_ext
"
&&
$as_executable_p
"
$as_dir
/
$ac_word$ac_exec_ext
"
;
}
;
then
ac_cv_prog_ft_devel
=
"freetype-config"
echo
"
$as_me
:
$LINENO
: found
$as_dir
/
$ac_word$ac_exec_ext
"
>
&5
break
2
fi
done
done
IFS
=
$as_save_IFS
test
-z
"
$ac_cv_prog_ft_devel
"
&&
ac_cv_prog_ft_devel
=
"no"
fi
fi
ft_devel
=
$ac_cv_prog_ft_devel
if
test
-n
"
$ft_devel
"
;
then
{
echo
"
$as_me
:
$LINENO
: result:
$ft_devel
"
>
&5
echo
"
${
ECHO_T
}
$ft_devel
"
>
&6
;
}
else
{
echo
"
$as_me
:
$LINENO
: result: no"
>
&5
echo
"
${
ECHO_T
}
no"
>
&6
;
}
fi
if
test
"
$ft_devel
"
=
"no"
then
# Extract the first word of "freetype2-config", so it can be a program name with args.
set
dummy freetype2-config
;
ac_word
=
$2
{
echo
"
$as_me
:
$LINENO
: checking for
$ac_word
"
>
&5
echo
$ECHO_N
"checking for
$ac_word
...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_prog_ft_devel2
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
if
test
-n
"
$ft_devel2
"
;
then
ac_cv_prog_ft_devel2
=
"
$ft_devel2
"
# 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
{
test
-f
"
$as_dir
/
$ac_word$ac_exec_ext
"
&&
$as_executable_p
"
$as_dir
/
$ac_word$ac_exec_ext
"
;
}
;
then
ac_cv_prog_ft_devel2
=
"freetype2-config"
echo
"
$as_me
:
$LINENO
: found
$as_dir
/
$ac_word$ac_exec_ext
"
>
&5
break
2
fi
done
done
IFS
=
$as_save_IFS
test
-z
"
$ac_cv_prog_ft_devel2
"
&&
ac_cv_prog_ft_devel2
=
"no"
fi
fi
ft_devel2
=
$ac_cv_prog_ft_devel2
if
test
-n
"
$ft_devel2
"
;
then
{
echo
"
$as_me
:
$LINENO
: result:
$ft_devel2
"
>
&5
echo
"
${
ECHO_T
}
$ft_devel2
"
>
&6
;
}
else
{
echo
"
$as_me
:
$LINENO
: result: no"
>
&5
echo
"
${
ECHO_T
}
no"
>
&6
;
}
fi
if
test
"
$ft_devel2
"
=
"freetype2-config"
then
ft_devel
=
$ft_devel2
fi
fi
if
test
"
$ft_devel
"
=
"no"
then
wine_cv_msg_freetype
=
yes
else
FREETYPELIBS
=
`
$ft_devel
--libs
`
FREETYPEINCL
=
`
$ft_devel
--cflags
`
{
echo
"
$as_me
:
$LINENO
: checking for FT_Init_FreeType in -lfreetype"
>
&5
echo
$ECHO_N
"checking for FT_Init_FreeType in -lfreetype...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_lib_freetype_FT_Init_FreeType
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
ac_check_lib_save_LIBS
=
$LIBS
LIBS
=
"-lfreetype
$
X_
LIBS
$LIBS
"
LIBS
=
"-lfreetype
$
FREETYPE
LIBS
$LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
...
...
@@ -13208,99 +13298,12 @@ else
ft_lib
=
no
fi
if
test
"
$ft_lib
"
=
"no"
then
wine_cv_msg_freetype
=
no
else
# Extract the first word of "freetype-config", so it can be a program name with args.
set
dummy freetype-config
;
ac_word
=
$2
{
echo
"
$as_me
:
$LINENO
: checking for
$ac_word
"
>
&5
echo
$ECHO_N
"checking for
$ac_word
...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_prog_ft_devel
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
if
test
-n
"
$ft_devel
"
;
then
ac_cv_prog_ft_devel
=
"
$ft_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
{
test
-f
"
$as_dir
/
$ac_word$ac_exec_ext
"
&&
$as_executable_p
"
$as_dir
/
$ac_word$ac_exec_ext
"
;
}
;
then
ac_cv_prog_ft_devel
=
"freetype-config"
echo
"
$as_me
:
$LINENO
: found
$as_dir
/
$ac_word$ac_exec_ext
"
>
&5
break
2
fi
done
done
IFS
=
$as_save_IFS
test
-z
"
$ac_cv_prog_ft_devel
"
&&
ac_cv_prog_ft_devel
=
"no"
fi
fi
ft_devel
=
$ac_cv_prog_ft_devel
if
test
-n
"
$ft_devel
"
;
then
{
echo
"
$as_me
:
$LINENO
: result:
$ft_devel
"
>
&5
echo
"
${
ECHO_T
}
$ft_devel
"
>
&6
;
}
else
{
echo
"
$as_me
:
$LINENO
: result: no"
>
&5
echo
"
${
ECHO_T
}
no"
>
&6
;
}
fi
if
test
"
$ft_devel
"
=
"no"
then
# Extract the first word of "freetype2-config", so it can be a program name with args.
set
dummy freetype2-config
;
ac_word
=
$2
{
echo
"
$as_me
:
$LINENO
: checking for
$ac_word
"
>
&5
echo
$ECHO_N
"checking for
$ac_word
...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_prog_ft_devel2
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
if
test
-n
"
$ft_devel2
"
;
then
ac_cv_prog_ft_devel2
=
"
$ft_devel2
"
# 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
{
test
-f
"
$as_dir
/
$ac_word$ac_exec_ext
"
&&
$as_executable_p
"
$as_dir
/
$ac_word$ac_exec_ext
"
;
}
;
then
ac_cv_prog_ft_devel2
=
"freetype2-config"
echo
"
$as_me
:
$LINENO
: found
$as_dir
/
$ac_word$ac_exec_ext
"
>
&5
break
2
fi
done
done
IFS
=
$as_save_IFS
test
-z
"
$ac_cv_prog_ft_devel2
"
&&
ac_cv_prog_ft_devel2
=
"no"
fi
fi
ft_devel2
=
$ac_cv_prog_ft_devel2
if
test
-n
"
$ft_devel2
"
;
then
{
echo
"
$as_me
:
$LINENO
: result:
$ft_devel2
"
>
&5
echo
"
${
ECHO_T
}
$ft_devel2
"
>
&6
;
}
else
{
echo
"
$as_me
:
$LINENO
: result: no"
>
&5
echo
"
${
ECHO_T
}
no"
>
&6
;
}
fi
if
test
"
$ft_devel2
"
=
"freetype2-config"
then
ft_devel
=
$ft_devel2
fi
fi
if
test
"
$ft_devel
"
=
"no"
if
test
"
$ft_lib
"
=
"no"
then
wine_cv_msg_freetype
=
yes
FREETYPELIBS
=
""
FREETYPEINCL
=
""
else
FREETYPELIBS
=
`
$ft_devel
--libs
`
FREETYPEINCL
=
`
$ft_devel
--cflags
`
ac_save_CPPFLAGS
=
"
$CPPFLAGS
"
CPPFLAGS
=
"
$FREETYPEINCL
$CPPFLAGS
"
...
...
configure.ac
View file @
d9ef88cd
...
...
@@ -660,26 +660,29 @@ fi
dnl **** Check for FreeType 2 ****
AC_SUBST(FREETYPELIBS,"")
AC_SUBST(FREETYPEINCL,"")
AC_CHECK_
LIB(freetype,FT_Init_FreeType,ft_lib=yes,ft_lib=no,$X_LIBS
)
if test "$ft_
lib
" = "no"
AC_CHECK_
PROG(ft_devel,freetype-config,freetype-config,no
)
if test "$ft_
devel
" = "no"
then
wine_cv_msg_freetype=no
else
AC_CHECK_PROG(ft_devel,freetype-config,freetype-config,no)
if test "$ft_devel" = "no"
AC_CHECK_PROG(ft_devel2,freetype2-config,freetype2-config,no)
if test "$ft_devel2" = "freetype2-config"
then
AC_CHECK_PROG(ft_devel2,freetype2-config,freetype2-config,no)
if test "$ft_devel2" = "freetype2-config"
then
ft_devel=$ft_devel2
fi
ft_devel=$ft_devel2
fi
if test "$ft_devel" = "no"
fi
if test "$ft_devel" = "no"
then
wine_cv_msg_freetype=yes
else
FREETYPELIBS=`$ft_devel --libs`
FREETYPEINCL=`$ft_devel --cflags`
AC_CHECK_LIB(freetype,FT_Init_FreeType,ft_lib=yes,ft_lib=no,$FREETYPELIBS)
if test "$ft_lib" = "no"
then
wine_cv_msg_freetype=yes
FREETYPELIBS=""
FREETYPEINCL=""
else
FREETYPELIBS=`$ft_devel --libs`
FREETYPEINCL=`$ft_devel --cflags`
ac_save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
AC_CHECK_HEADERS(ft2build.h \
...
...
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