| ## configure.ac -- Process this file with autoconf to produce configure |
| # |
| # Copyright 2007 Sony Corp. |
| # |
| # This program is free software; you can redistribute it and/or modify |
| # it under the terms of the GNU General Public License as published by |
| # the Free Software Foundation; version 2 of the License. |
| # |
| # This program is distributed in the hope that it will be useful, |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| # GNU General Public License for more details. |
| # |
| # You should have received a copy of the GNU General Public License |
| # along with this program; if not, write to the Free Software |
| # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| # |
| |
| AC_INIT(ps3-utils, @version@, Geoff Levand <geoffrey.levand@am.sony.com>) |
| |
| # Setup the prefix options. |
| AC_PREFIX_DEFAULT(/usr/local) |
| |
| if test "x${prefix}" = "xNONE"; then |
| prefix=$ac_default_prefix |
| ac_configure_args="$ac_configure_args --prefix $prefix" |
| fi |
| |
| # Setup the debug options. |
| AC_ARG_ENABLE(debug, [[ --enable-debug enable debugging support]]) |
| DEBUG_CFLAGS= |
| if test "x${enable_debug}" = "xyes"; then |
| DEBUG_CFLAGS="-O1 -DDEBUG" |
| fi |
| AC_SUBST(DEBUG_CFLAGS) |
| |
| # Setup tools. |
| AC_PROG_CC |
| AC_PROG_LIBTOOL |
| AC_PROG_LIBTOOL |
| AM_INIT_AUTOMAKE |
| |
| AC_SUBST(DESTDIR) |
| |
| AC_CONFIG_HEADERS(config.h) |
| AC_CONFIG_FILES([ Makefile ]) |
| |
| AC_CONFIG_SUBDIRS(lib) |
| |
| AC_OUTPUT |