Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
ea0c5c53
Commit
ea0c5c53
authored
May 01, 2008
by
Rémi Denis-Courmont
Browse files
Look for config.h output in public header files
parent
311e5e3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Makefile.am
View file @
ea0c5c53
...
...
@@ -444,8 +444,8 @@ check_PROGRAMS = \
test_headers
\
$(NULL)
dist_check_SCRIPTS
=
check_symbols
TESTS
=
$(check_PROGRAMS)
$(dist_check_SCRIPTS)
dist_check_SCRIPTS
=
check_symbols
check_headers
TESTS
=
$(check_PROGRAMS)
check_symbols
CFLAGS_tests
=
`
$(VLC_CONFIG)
--cflags
libvlc
`
...
...
@@ -478,6 +478,7 @@ check-local:
exit
1
;
\
fi
;
\
done
$(srcdir)
/check_headers
$(dist_pkginclude_HEADERS)
$(pkginclude_HEADERS)
FORCE
:
@
echo
"Generated source cannot be phony. Go away."
>
&2
...
...
src/check_headers
0 → 100755
View file @
ea0c5c53
#! /bin/sh
# Copyright © 2008 Rémi Denis-Courmont
cd
"
$(
dirname
"
$0
"
)
"
||
exit
$?
# Look for configure #defines in public headers.
# There are incorrect, as external users don't have our <config.h>.
regexp
=
"
$(
cat
../config.h.in |
\
sed
-n
-e
's/^#undef \([A-Z0-9_]*\)$/\1/p'
|
\
xargs |
\
sed
-e
's/ /\\\|/g'
)
"
!
grep
--
"
$regexp
"
"
$@
"
Write
Preview
Supports
Markdown
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