extradirs.m4 revision cc2ee177dbb3befca43e36cfc56778b006c3d050
1dnl AX_EXTRA_DIRS - Let user specify extra dirs for include/libs
2AC_DEFUN([AX_EXTRA_DIRS],
3[
4AC_ARG_WITH(extra-includes,
5[  --with-extra-includes=DIR    add extra include paths],
6  use_extra_includes="$withval",
7  use_extra_includes=NO
8)
9if test -n "$use_extra_includes" && \
10        test "$use_extra_includes" != "NO"; then
11  ac_save_ifs=$IFS
12  IFS=':'
13  for dir in $use_extra_includes; do
14    extra_includes="$extra_includes -I$dir"
15  done
16  IFS=$ac_save_ifs
17  CPPFLAGS="$CPPFLAGS $extra_includes"
18fi
19
20AC_ARG_WITH(extra-libs,
21[  --with-extra-libs=DIR        add extra library paths],
22  use_extra_libs=$withval,
23  use_extra_libs=NO
24)
25if test -n "$use_extra_libs" && \
26        test "$use_extra_libs" != "NO"; then
27   ac_save_ifs=$IFS
28   IFS=':'
29   for dir in $use_extra_libs; do
30     extra_libraries="$extra_libraries -L$dir"
31   done
32   IFS=$ac_save_ifs
33   LDFLAGS="$LDFLAGS $extra_libraries"
34fi
35]
36)
37