]> arthur.barton.de Git - netatalk.git/blob - macros/util.m4
Spelling fixes
[netatalk.git] / macros / util.m4
1 dnl Removes -I/usr/include/? from given variable
2 AC_DEFUN([CFLAGS_REMOVE_USR_INCLUDE],[
3   ac_new_flags=""
4   for i in [$]$1; do
5     case [$]i in
6     -I/usr/include|-I/usr/include/) ;;
7     *) ac_new_flags="[$]ac_new_flags [$]i" ;;
8     esac
9   done
10   $1=[$]ac_new_flags
11 ])
12
13 dnl Removes -L/usr/lib/? from given variable
14 AC_DEFUN([LIB_REMOVE_USR_LIB],[
15   ac_new_flags=""
16   for i in [$]$1; do
17     case [$]i in
18     -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
19     *) ac_new_flags="[$]ac_new_flags [$]i" ;;
20     esac
21   done
22   $1=[$]ac_new_flags
23 ])
24