Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
cba6a24e
Commit
cba6a24e
authored
Feb 21, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./configure.in: gtk*-config detection fix for FreeBSD.
parent
8cc8d957
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
102 additions
and
56 deletions
+102
-56
configure
configure
+81
-40
configure.in
configure.in
+21
-16
No files found.
configure
View file @
cba6a24e
...
...
@@ -7512,10 +7512,49 @@ if test "${with_gtk_config_path+set}" = set; then
fi
# look for gtk-config
# Extract the first word of "gtk12-config", so it can be a program name with args.
set
dummy gtk12-config
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:7519: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_GTK12_CONFIG
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
case
"
$GTK12_CONFIG
"
in
/
*
)
ac_cv_path_GTK12_CONFIG
=
"
$GTK12_CONFIG
"
# Let the user override the test with a path.
;;
?:/
*
)
ac_cv_path_GTK12_CONFIG
=
"
$GTK12_CONFIG
"
# Let the user override the test with a dos path.
;;
*
)
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
":"
ac_dummy
=
"
$GTK_PATH
"
for
ac_dir
in
$ac_dummy
;
do
test
-z
"
$ac_dir
"
&&
ac_dir
=
.
if
test
-f
$ac_dir
/
$ac_word
;
then
ac_cv_path_GTK12_CONFIG
=
"
$ac_dir
/
$ac_word
"
break
fi
done
IFS
=
"
$ac_save_ifs
"
test
-z
"
$ac_cv_path_GTK12_CONFIG
"
&&
ac_cv_path_GTK12_CONFIG
=
"no"
;;
esac
fi
GTK12_CONFIG
=
"
$ac_cv_path_GTK12_CONFIG
"
if
test
-n
"
$GTK12_CONFIG
"
;
then
echo
"
$ac_t
""
$GTK12_CONFIG
"
1>&6
else
echo
"
$ac_t
""no"
1>&6
fi
GTK_CONFIG
=
${
GTK12_CONFIG
}
if
test
x
${
GTK_CONFIG
}
=
xno
then
# Extract the first word of "gtk-config", so it can be a program name with args.
set
dummy gtk-config
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:75
19
: checking for
$ac_word
"
>
&5
echo
"configure:75
58
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_GTK_CONFIG
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -7548,7 +7587,8 @@ else
echo
"
$ac_t
""no"
1>&6
fi
if
test
-x
${
GTK_CONFIG
}
fi
if
test
x
${
GTK_CONFIG
}
!=
xno
then
if
expr
1.2.0
\>
`
$GTK_CONFIG
--version
`
>
/dev/null
then
...
...
@@ -7556,7 +7596,6 @@ fi
fi
CFLAGS_GTK
=
"
${
CFLAGS_GTK
}
`
${
GTK_CONFIG
}
--cflags
gtk
`
"
LIB_GTK
=
"
${
LIB_GTK
}
`
${
GTK_CONFIG
}
--libs
gtk |
sed
's,-rdynamic,,'
`
"
fi
# now look for the gtk.h header
saved_CPPFLAGS
=
$CPPFLAGS
CPPFLAGS
=
"
$CPPFLAGS
$CFLAGS_GTK
"
...
...
@@ -7565,17 +7604,17 @@ fi
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:7
569
: checking for
$ac_hdr
"
>
&5
echo
"configure:7
608
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
574
"configure"
#line 7
613
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:7
579
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:7
618
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -7610,6 +7649,7 @@ done
ALIASES
=
"
${
ALIASES
}
gvlc"
fi
CPPFLAGS
=
$saved_CPPFLAGS
fi
fi
# Check whether --enable-x11 or --disable-x11 was given.
...
...
@@ -7632,17 +7672,17 @@ if test x$enable_x11 != xno &&
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:76
3
6: checking for
$ac_hdr
"
>
&5
echo
"configure:76
7
6: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 76
4
1 "configure"
#line 76
8
1 "configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:76
4
6:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:76
8
6:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -7695,17 +7735,17 @@ if test x$enable_xvideo != xno &&
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:7
69
9: checking for
$ac_hdr
"
>
&5
echo
"configure:7
73
9: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 77
0
4 "configure"
#line 77
4
4 "configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:77
0
9:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:77
4
9:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -7729,7 +7769,7 @@ EOF
saved_CFLAGS
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-L
$x_libraries
-lX11 -lXext"
echo
$ac_n
"checking for XvSetPortAttribute in -lXv_pic""...
$ac_c
"
1>&6
echo
"configure:77
3
3: checking for XvSetPortAttribute in -lXv_pic"
>
&5
echo
"configure:77
7
3: checking for XvSetPortAttribute in -lXv_pic"
>
&5
ac_lib_var
=
`
echo
Xv_pic
'_'
XvSetPortAttribute |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -7737,7 +7777,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lXv_pic
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 77
4
1 "configure"
#line 77
8
1 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -7748,7 +7788,7 @@ int main() {
XvSetPortAttribute()
; return 0; }
EOF
if
{
(
eval echo
configure:77
5
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:77
9
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -7795,17 +7835,17 @@ if test x$enable_lirc = xyes
then
ac_safe
=
`
echo
"lirc/lirc_client.h"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for lirc/lirc_client.h""...
$ac_c
"
1>&6
echo
"configure:7
79
9: checking for lirc/lirc_client.h"
>
&5
echo
"configure:7
83
9: checking for lirc/lirc_client.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 78
0
4 "configure"
#line 78
4
4 "configure"
#include "confdefs.h"
#include <lirc/lirc_client.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:78
0
9:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:78
4
9:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -7822,7 +7862,7 @@ fi
if
eval
"test
\"
`
echo
'$ac_cv_header_'
$ac_safe
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
echo
$ac_n
"checking for lirc_init in -llirc_client""...
$ac_c
"
1>&6
echo
"configure:78
2
6: checking for lirc_init in -llirc_client"
>
&5
echo
"configure:78
6
6: checking for lirc_init in -llirc_client"
>
&5
ac_lib_var
=
`
echo
lirc_client
'_'
lirc_init |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -7830,7 +7870,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-llirc_client
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 78
3
4 "configure"
#line 78
7
4 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -7841,7 +7881,7 @@ int main() {
lirc_init()
; return 0; }
EOF
if
{
(
eval echo
configure:78
4
5:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:78
8
5:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -7881,17 +7921,17 @@ if test "${enable_alsa+set}" = set; then
then
ac_safe
=
`
echo
"alsa/asoundlib.h"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for alsa/asoundlib.h""...
$ac_c
"
1>&6
echo
"configure:7
88
5: checking for alsa/asoundlib.h"
>
&5
echo
"configure:7
92
5: checking for alsa/asoundlib.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
89
0 "configure"
#line 7
93
0 "configure"
#include "confdefs.h"
#include <alsa/asoundlib.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:7
89
5:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:7
93
5:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -7908,7 +7948,7 @@ fi
if
eval
"test
\"
`
echo
'$ac_cv_header_'
$ac_safe
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
echo
$ac_n
"checking for main in -lasound""...
$ac_c
"
1>&6
echo
"configure:79
1
2: checking for main in -lasound"
>
&5
echo
"configure:79
5
2: checking for main in -lasound"
>
&5
ac_lib_var
=
`
echo
asound
'_'
main |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -7916,14 +7956,14 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lasound
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 79
2
0 "configure"
#line 79
6
0 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
if
{
(
eval echo
configure:79
2
7:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:79
6
7:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -8282,6 +8322,7 @@ s%@SDL12_CONFIG@%$SDL12_CONFIG%g
s%@SDL11_CONFIG@%
$SDL11_CONFIG
%g
s%@SDL_CONFIG@%
$SDL_CONFIG
%g
s%@GNOME_CONFIG@%
$GNOME_CONFIG
%g
s%@GTK12_CONFIG@%
$GTK12_CONFIG
%g
s%@GTK_CONFIG@%
$GTK_CONFIG
%g
s%@DATA_PATH@%
$DATA_PATH
%g
s%@PLUGIN_PATH@%
$PLUGIN_PATH
%g
...
...
configure.in
View file @
cba6a24e
...
...
@@ -1333,8 +1333,13 @@ then
GTK_PATH=$withval:$PATH
fi ])
# look for gtk-config
AC_PATH_PROG(GTK12_CONFIG, gtk12-config, no, $GTK_PATH)
GTK_CONFIG=${GTK12_CONFIG}
if test x${GTK_CONFIG} = xno
then
AC_PATH_PROG(GTK_CONFIG, gtk-config, no, $GTK_PATH)
if test -x ${GTK_CONFIG}
fi
if test x${GTK_CONFIG} != xno
then
if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
then
...
...
@@ -1342,7 +1347,6 @@ then
fi
CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
fi
# now look for the gtk.h header
saved_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
...
...
@@ -1357,6 +1361,7 @@ then
ALIASES="${ALIASES} gvlc"
fi
CPPFLAGS=$saved_CPPFLAGS
fi
fi
dnl
...
...
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