diff options
author | Tiago Vignatti <vignatti@c3sl.ufpr.br> | 2009-08-04 09:13:58 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-08-04 09:13:58 +1000 |
commit | 2fd4f746ed6f00c1c1525ced6bd74ffbaa38d9b6 (patch) | |
tree | 9cdebfe517f241316a5b3c63f5e30ac2ace46d0d /configure.ac | |
parent | 01eec9c57e0dfb0739d12f6caef68e5abf927892 (diff) |
port autoconf from Tiago repo
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..df33528 --- /dev/null +++ b/configure.ac @@ -0,0 +1,48 @@ +dnl Copyright © 2008 Tiago Vignatti +dnl +dnl Permission is hereby granted, free of charge, to any person obtaining a +dnl copy of this software and associated documentation files (the "Software"), +dnl to deal in the Software without restriction, including without limitation +dnl on the rights to use, copy, modify, merge, publish, distribute, sub +dnl license, and/or sell copies of the Software, and to permit persons to whom +dnl the Software is furnished to do so, subject to the following conditions: +dnl +dnl The above copyright notice and this permission notice (including the next +dnl paragraph) shall be included in all copies or substantial portions of the +dnl Software. +dnl +dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +dnl FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL +dnl IBM AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +dnl DEALINGS IN THE SOFTWARE. +dnl +dnl Process this file with autoconf to create configure. + +AC_PREREQ(2.57) +AC_INIT([vbetool], 1.2.0, [not yet], vbetool) +AM_INIT_AUTOMAKE([dist-bzip2]) +AM_MAINTAINER_MODE + +AM_CONFIG_HEADER(config.h) + +dnl Checks for programs + +AC_PROG_CC +AC_PROG_LIBTOOL + +PKG_CHECK_MODULES(LIBPCIACCESS, pciaccess) + +# Checks for pkg-config packages +PKG_CHECK_MODULES(LIBX86, x86) + +VBETOOL_LIBS="$LIBPCIACCESS_LIBS $LIBX86_LIBS" +VBETOOL_CFLAGS="$LIBPCIACCESS_CFLAGS $LIBX86_CFLAGS" +AC_SUBST(VBETOOL_CFLAGS) +AC_SUBST(VBETOOL_LIBS) + +dnl Simple, huh? + +AC_OUTPUT([Makefile]) |