mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 01:48:07 +02:00
[configure.in] Create backend .pc files using CAIRO_CONFIG_COMMANDS
This commit is contained in:
parent
1bdd6110f6
commit
e977f32346
1 changed files with 17 additions and 9 deletions
26
configure.in
26
configure.in
|
|
@ -219,7 +219,6 @@ AC_DEFUN([CAIRO_CONFIG_COMMANDS], [
|
|||
_tmp_file=$1.tmp
|
||||
AC_MSG_NOTICE([creating $_config_file])
|
||||
{
|
||||
echo "/* Generated by configure. Do not edit */"
|
||||
$2
|
||||
} >> "$_tmp_file"
|
||||
if cmp -s "$_tmp_file" "$_config_file"; then
|
||||
|
|
@ -330,10 +329,8 @@ AC_DEFUN([CAIRO_BACKEND_ENABLE],
|
|||
CAIRO_LIBS="$$1_NONPKGCONFIG_LIBS$$1_LIBS$CAIRO_LIBS"
|
||||
CAIRO_NONPKGCONFIG_CFLAGS="$$1_NONPKGCONFIG_CFLAGS$CAIRO_NONPKGCONFIG_CFLAGS"
|
||||
CAIRO_NONPKGCONFIG_LIBS="$$1_NONPKGCONFIG_LIBS$CAIRO_NONPKGCONFIG_LIBS"
|
||||
outfile=`echo src/cairo-$1.pc | sed -e s/_/-/g`
|
||||
AC_MSG_NOTICE([creating $outfile])
|
||||
mkdir -p src
|
||||
AS_IF([sed \
|
||||
CAIRO_CONFIG_COMMANDS(m4_bpatsubst(src/cairo-$1.pc,_,-),
|
||||
[sed \
|
||||
-e "s,@backend_name@,$1,g" \
|
||||
-e "s,@Backend_Name@,$2,g" \
|
||||
-e "s,@BACKEND_BASE@,$$1_BASE,g" \
|
||||
|
|
@ -345,10 +342,19 @@ AC_DEFUN([CAIRO_BACKEND_ENABLE],
|
|||
-e "s,@libdir@,$libdir,g" \
|
||||
-e "s,@includedir@,$includedir,g" \
|
||||
-e "s,@VERSION@,$VERSION,g" \
|
||||
$srcdir/src/cairo-backend.pc.in > $outfile],,[
|
||||
rm -f "$outfile"
|
||||
AC_MSG_ERROR([failed creating $outfile])
|
||||
])
|
||||
$srcdir/src/cairo-backend.pc.in
|
||||
],
|
||||
[
|
||||
$1_BASE='$$1_BASE'
|
||||
$1_REQUIRES='$$1_REQUIRES'
|
||||
$1_NONPKGCONFIG_LIBS='$$1_NONPKGCONFIG_LIBS'
|
||||
$1_NONPKGCONFIG_CFLAGS='$$1_NONPKGCONFIG_CFLAGS'
|
||||
prefix='$prefix'
|
||||
exec_prefix='$exec_prefix'
|
||||
libdir='$libdir'
|
||||
includedir='$includedir'
|
||||
VERSION='$VERSION'
|
||||
])
|
||||
else
|
||||
CAIRO_NO_FEATURES="$4 $CAIRO_NO_FEATURES"
|
||||
fi
|
||||
|
|
@ -1043,6 +1049,7 @@ dnl ===========================================================================
|
|||
|
||||
CAIRO_CONFIG_COMMANDS([src/cairo-features.h],
|
||||
[
|
||||
echo '/* Generated by configure. Do not edit. */'
|
||||
echo '#ifndef CAIRO_FEATURES_H'
|
||||
echo '#define CAIRO_FEATURES_H'
|
||||
echo ''
|
||||
|
|
@ -1061,6 +1068,7 @@ CAIRO_CONFIG_COMMANDS([src/cairo-features.h],
|
|||
])
|
||||
CAIRO_CONFIG_COMMANDS([src/cairo-no-features.h],
|
||||
[
|
||||
echo '/* Generated by configure. Do not edit. */'
|
||||
echo '#ifndef CAIRO_NO_FEATURES_H'
|
||||
echo '#define CAIRO_NO_FEATURES_H'
|
||||
echo ''
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue