1 # m m mm mmm .----------. .---------------------. mmm mm m m
2 # 8 8 88 888 | .--------` | .------------------` 888 88 8 8
3 # 8 8 88 888 | ```````|`V```````| |``||``|`````| 888 88 8 8
4 # 8 8 88 888 `------ | | [] | |``````|| | [] | 888 88 8 8
5 # 8 8 88 888 |`````` | | | ````|```` | | 888 88 8 8
6 # ` ` `` ``` ``````````````> |````````````| |`` ``` `` ` `
7 # ==============` `---`
8 # L A B O R A T O R I E S
10 #This file is part of Hacker Radio Rec.
12 #Hacker Radio Rec is free software: you can redistribute it and/or
13 #modify it under the terms of the GNU General Public License as
14 #published by the Free Software Foundation, either version 3 of
15 #the License or (at your option) any later version.
17 #Hacker Radio Rec is distributed in the hope that it will be
18 #useful, but WITHOUT ANY WARRANTY; without even the implied
19 #warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 #See the GNU General Public License for more details.
22 # Copyright (C) 2009, Thea DeSilva
23 # You can find a copy of GNU General Public License in COPYING
34 AC_DEFUN(HRR_CHECK_LIB, [
40 /usr/unsupported/lib \
49 /usr/local/X11R5/lib \
57 /usr/local/X11R6/lib \
61 AC_SEARCH_LIBS($2,$1, HRR_SWLIB=-l$1, HRR_SWLIB="nope")
62 if test "$HRR_SWLIB" = "nope"; then
63 printf "searching for %s..." $1
65 for i in $LIB_SEARCH ; do
66 if test -r $i/lib$1.a; then
72 if test "$HRR_SWLIB" = "nope" ; then
81 LDFLAGS=$LDFLAGS\ $HRR_SWDIR
82 LIBS=$LIBS\ $HRR_SWLIB
88 # 2 - sub directory e.g. SDL/
91 AC_DEFUN(HRR_CHECK_HEAD, [
92 HEADER_SEARCH="/include \
94 /usr/unsupported/include \
100 /usr/openwin/include \
103 /usr/local/X11R5/include \
111 /usr/local/X11R6/include \
112 $HOME/local/include "
115 printf "checking for %s... " $1
117 AC_TRY_CPP([#include <$2$1>], , HRR_INC="nope")
118 if test "$HRR_INC" = "nope"; then
119 for i in $HEADER_SEARCH; do
120 if test -r $i/$2$1; then
121 HRR_INC=\ -I$i\ -I$i/$2
125 if test "$HRR_INC" = "nope"; then
131 CFLAGS=$CFLAGS\ $HRR_INC
132 CPPFLAGS=$CPPFLAGS\ $HRR_INC