Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon <ron@debian.org>2012-09-19 02:26:17 +0400
committerRalph Giles <giles@mozilla.com>2012-09-19 03:03:56 +0400
commitc40d5004dd7211d836ac89862f29342668a4d88f (patch)
treef664a0438cc3916cb596836482f2f2a2cb10a259 /configure.ac
parentbdf0abc08f5582a809358ddd9cd42768bb8845e5 (diff)
Link the include dir into out-of-tree build dirs
Mostly this is for people building other things using an uninstalled opus tree so that the opus-uninstalled.pc will return a working -I with --cflags when PKG_CONFIG_PATH is set to point to the build dir. The version of AC_OUTPUT that takes parameters has long been deprecated now, and replaced by AC_CONFIG_* macros, so pass them with AC_CONFIG_FILES, since we're now using AC_CONFIG_COMMANDS to do the above.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 12 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 475449fb..5b0c296b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -291,8 +291,18 @@ fi
AC_SUBST([PC_BUILD])
AC_SUBST([PC_LIBM])
-AC_OUTPUT([Makefile opus.pc opus-uninstalled.pc
- doc/Makefile doc/Doxyfile])
+
+AC_CONFIG_COMMANDS([builddir-include],
+ [ if test ! -e include; then
+ $LN_S $ac_top_srcdir/include include
+ fi
+ ],[ LN_S="$LN_S" ]
+ )
+
+AC_CONFIG_FILES([Makefile opus.pc opus-uninstalled.pc
+ doc/Makefile doc/Doxyfile])
+
+AC_OUTPUT
AC_MSG_RESULT([
------------------------------------------------------------------------