~ubuntu-branches/ubuntu/trusty/libgii/trusty

« back to all changes in this revision

Viewing changes to m4/extrapaths.m4

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2006-10-17 19:36:15 UTC
  • mfrom: (3.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20061017193615-6civk5a1i4n1kyb0
Tags: 1:1.0.1-3
Fixed "ggtick is missing". Closes: #388682.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Let user add extra includes and libs
2
 
 
3
 
AC_DEFUN([GGI_EXTRA_PATHS],
4
 
[
5
 
 
6
 
AC_ARG_WITH([extra-includes],
7
 
[  --with-extra-includes=DIR
8
 
                          add extra include paths (separator ':')],
9
 
  use_extra_includes="$withval",
10
 
  use_extra_includes=NO
11
 
)
12
 
 
13
 
if test -n "$use_extra_includes" && \
14
 
        test "$use_extra_includes" != "NO"; then
15
 
  ac_save_ifs=$IFS
16
 
  IFS=':'
17
 
  for dir in ${use_extra_includes} ; do
18
 
    if test -d "$dir" ; then
19
 
      extra_includes="$extra_includes -I$dir"
20
 
    else
21
 
      test -f "$dir" && \
22
 
        extra_includes="$extra_includes -include $dir"
23
 
    fi
24
 
  done
25
 
  IFS=$ac_save_ifs
26
 
  CPPFLAGS="$CPPFLAGS $extra_includes"
27
 
fi
28
 
 
29
 
AC_ARG_WITH([extra-libs],
30
 
[  --with-extra-libs=DIR   add extra library paths (separator ':')],
31
 
  use_extra_libs="$withval",
32
 
  use_extra_libs=NO
33
 
)
34
 
if test -n "$use_extra_libs" && \
35
 
        test "$use_extra_libs" != "NO"; then
36
 
   ac_save_ifs=$IFS
37
 
   IFS=':'
38
 
   for dir in $use_extra_libs; do
39
 
     if test -d "$dir" ; then
40
 
       extra_libraries="$extra_libraries -L$dir"
41
 
     else
42
 
       extra_libraries="$extra_libraries -l$dir"
43
 
     fi
44
 
   done
45
 
   IFS=$ac_save_ifs
46
 
fi
47
 
 
48
 
AC_SUBST(extra_includes)
49
 
AC_SUBST(extra_libraries)
50
 
 
51
 
])