#!@SHELL@
-# $Id: gen-pkgconfig.in,v 1.19 2014/12/14 00:38:23 tom Exp $
+# $Id: gen-pkgconfig.in,v 1.23 2015/04/24 23:35:33 tom Exp $
##############################################################################
-# Copyright (c) 2009-2013,2014 Free Software Foundation, Inc. #
+# Copyright (c) 2009-2014,2015 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
# copy of this software and associated documentation files (the "Software"), #
MENU_LIBRARY="${MENU_NAME}@DFT_ARG_SUFFIX@"
FORM_LIBRARY="${FORM_NAME}@DFT_ARG_SUFFIX@"
-if test "$includedir" = "/usr/include" ; then
- CFLAGS=
-else
+CFLAGS="@PKG_CFLAGS@"
+if test "$includedir" != "/usr/include" ; then
includetop=`echo "$includedir" | sed -e 's,/include/[^/]*$,/include/,'`
test "$includetop" = "/usr/include" && includetop="$includedir"
if test "x$includetop" != "$includedir"
then
- CFLAGS="-I${includetop} -I\${includedir}"
- else
- CFLAGS="-I\${includedir}"
+ CFLAGS="$CFLAGS -I${includetop}"
fi
+ CFLAGS="$CFLAGS -I\${includedir}"
fi
if test "$libdir" = "/usr/lib" ; then
else
LDFLAGS="-L\${libdir}"
fi
+if test "x@EXTRA_LDFLAGS@" != "x" ; then
+ LDFLAGS="$LDFLAGS @EXTRA_LDFLAGS@"
+fi
for name in @PC_MODULES_TO_MAKE@
do
fi
fi
- echo "** creating ${name}.pc"
+ echo "** creating ${name}${suffix}.pc"
cat >${name}${suffix}.pc <<EOF
prefix=$show_prefix
exec_prefix=$show_exec_prefix