1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
|
dnl Process this file with autoconf to produce a configure script.
dnl Copyright (C) 2001 Ian Campbell <ijc@hellion.org.uk>
dnl $Id: configure.in,v 1.6 2001/12/16 11:43:57 ijc Exp $
dnl
dnl This file is part of the rep-xmms package.
dnl
dnl Parts of this filewere taken from the sawfish configure.in
dnl and are Copyright (C) John Harper 1998.
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl This program is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
dnl USA.
AC_REVISION($Revision: 1.6 $)
PACKAGE=rep-xmms
VERSION=0.4
AC_INIT(src/remote.c)
AC_CONFIG_HEADER(config.h)
dnl AC_CONFIG_AUX_DIR(etc)
output_files="src/Makefile lisp/Makefile Makedefs Makefile rep-xmms.spec"
SUBDIRS="src lisp"
AC_SUBST(SUBDIRS)
dnl Find the system type
AC_CANONICAL_HOST
dnl Remove trailing slash in $prefix if necessary
case "${prefix}" in
*/)
prefix=`echo ${prefix} | sed -e 's/^\(.*\)\/$/\1/'`
;;
esac
sawfishdir='${datadir}/sawfish'
lispdir='${sawfishdir}/site-lisp'
localedir='${datadir}/locale'
sawfishexecdir='${libexecdir}/sawfish/${VERSION}/${host_type}'
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_GCC_TRADITIONAL
dnl Workaround etc/install-sh not being found from subdirectories
if test "$INSTALL" = "$ac_install_sh"; then
dnl Why is the backslash needed?
INSTALL='\${top_srcdir}/etc/install-sh -c'
fi
dnl Check for librep
AM_PATH_REP(0.13)
AC_DEFINE_UNQUOTED(REP_EXECDIR, "$REP_EXECDIR")
dnl Check for GLib and XMMS
AM_PATH_GLIB(1.2.8,,
AC_MSG_ERROR([*** GLib >= 1.2.8 not installed - please install first ***]))
AM_PATH_XMMS(1.0.1,,
AC_MSG_ERROR([*** XMMS >= 1.0.1 not installed - please install first ***]))
dnl How do we get dependency lines in the Makefile?
if test "x${GCC}" = "xyes"; then
MAKEDEP='$(CC) -MM'
else
case ${host} in
*-dec-osf*)
dnl works on Tru64
MAKEDEP='$(CC) -M'
;;
*-sun-solaris*)
dnl works on Solaris
MAKEDEP='/usr/lib/cpp -M'
;;
*)
dnl disable dependences?
MAKEDEP='true'
;;
esac
fi
AC_SUBST(MAKEDEP)
dnl If using GCC and it doesn't look as though the cflags have been
dnl set explicitly, add some warning options. Turn off implicit-int
dnl warnings since the X11 includes on Solaris generate a lot of these
if test "x${GCC}" = "xyes" -a "x$CFLAGS" = "x-g -O2"; then
CFLAGS="${CFLAGS} -Wall -Wmissing-prototypes -Wno-implicit-int"
fi
dnl AC_MSG_CHECKING(for languages to install)
dnl AC_ARG_ENABLE(linguas,
dnl [ --enable-linguas=LANGS... Install language catalogs for language codes LANGS],
dnl [ LINGUAS="$enableval" ], [ LINGUAS="" ])
dnl if test "x$LINGUAS" = x; then
dnl changequote({,})
dnl LINGUAS="`echo $srcdir/po/*.po | sed -e 's/[^ ]*\/po\/\([^ ]*\)\.po/\1/g'`"
dnl changequote([,])
dnl fi
dnl too gross for words..
dnl if test $REP_MSGFMT = true; then
dnl LINGUAS=""
dnl fi
dnl AC_MSG_RESULT($LINGUAS)
dnl AC_SUBST(LINGUAS)
dnl Nonstandard exported symbols
AC_SUBST(VERSION)
AC_SUBST(PACKAGE)
AC_SUBST(sawfishdir)
AC_SUBST(sawfishexecdir)
AC_SUBST(lispdir)
AC_SUBST(LIBOBJS)
AC_SUBST(CPPFLAGS)
AC_SUBST(CFLAGS)
AC_SUBST(LIBS)
dnl Build all files
AC_OUTPUT(${output_files})
dnl If it doesn't look like GNU Make is being used, give a friendly warning
tem=`make --version -f /dev/null 2>&1 | grep GNU`
if test "x$tem" = "x"; then
AC_MSG_WARN([You need to use GNU Make when compiling sawfish])
fi
dnl Local variables:
dnl major-mode: sh-mode
dnl End:
|