1
dnl Let user add extra includes and libs
3
AC_DEFUN([GGI_EXTRA_PATHS],
6
AC_ARG_WITH([extra-includes],
7
[ --with-extra-includes=DIR
8
add extra include paths (separator ':')],
9
use_extra_includes="$withval",
13
if test -n "$use_extra_includes" && \
14
test "$use_extra_includes" != "NO"; then
17
for dir in ${use_extra_includes} ; do
18
if test -d "$dir" ; then
19
extra_includes="$extra_includes -I$dir"
22
extra_includes="$extra_includes -include $dir"
26
CPPFLAGS="$CPPFLAGS $extra_includes"
29
AC_ARG_WITH([extra-libs],
30
[ --with-extra-libs=DIR add extra library paths (separator ':')],
31
use_extra_libs="$withval",
34
if test -n "$use_extra_libs" && \
35
test "$use_extra_libs" != "NO"; then
38
for dir in $use_extra_libs; do
39
if test -d "$dir" ; then
40
extra_libraries="$extra_libraries -L$dir"
42
extra_libraries="$extra_libraries -l$dir"
48
AC_SUBST(extra_includes)
49
AC_SUBST(extra_libraries)