1 # This file is part of DisOrder.
2 # Copyright (C) 2004 Richard Kettlewell
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 AC_DEFUN([RJK_FIND_GC_H],[
21 AC_CACHE_CHECK([looking for <gc.h>],[rjk_cv_gc_h],[
25 [rjk_cv_gc_h="on default include path"],[
26 oldCPPFLAGS="${CPPFLAGS}"
27 for dir in /usr/include/gc /usr/local/include/gc; do
28 if test "x$GCC" = xyes; then
29 CPPFLAGS="${oldCPPFLAGS} -isystem $dir"
31 CPPFLAGS="${oldCPPFLAGS} -I$dir"
36 [rjk_cv_gc_h=$dir;break],[rjk_cv_gc_h="not found"])
38 CPPFLAGS="${oldCPPFLAGS}"
41 case "$rjk_cv_gc_h" in
43 missing_headers="$missing_headers gc.h"
46 if test "x$GCC" = xyes; then
47 CPPFLAGS="${CPPFLAGS} -isystem $rjk_cv_gc_h"
49 CPPFLAGS="${CPPFLAGS} -I$rjk_cv_gc_h"