Home | History | Annotate | Download | only in m4
      1 dnl AX_EXTRA_DIRS - Let user specify extra dirs for include/libs
      2 AC_DEFUN([AX_EXTRA_DIRS],
      3 [
      4 AC_ARG_WITH(extra-includes,
      5 [  --with-extra-includes=DIR    add extra include paths],
      6   use_extra_includes="$withval",
      7   use_extra_includes=NO
      8 )
      9 if 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"
     18 fi
     19 
     20 AC_ARG_WITH(extra-libs,
     21 [  --with-extra-libs=DIR        add extra library paths],
     22   use_extra_libs=$withval,
     23   use_extra_libs=NO
     24 )
     25 if 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"
     34 fi
     35 ]
     36 )
     37