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