File: with_libs.m4

package info (click to toggle)
libneo4j-client 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 3,444 kB
  • ctags: 2,333
  • sloc: ansic: 24,977; sh: 4,261; makefile: 206
file content (20 lines) | stat: -rw-r--r-- 564 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
AC_DEFUN([WITH_LIBS],
[AC_ARG_WITH([libs],
  [AC_HELP_STRING(
    [[--with-libs=DIR[:DIR]]],
    [look for libraries installed in DIR/{bin,lib,include}])],
  [neo4j_save_ifs=$IFS
  IFS=:
  for dir in $with_libs; do
    if ! test -d "$dir"; then
      IFS=$neo4j_save_ifs
      AC_MSG_ERROR([lib directory "$dir": not found])
    fi
    CPPFLAGS="-I${dir}/include $CPPFLAGS"
    LDFLAGS="-L${dir}/lib $LDFLAGS"
    PATH="${dir}/bin:$PATH"
    export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}${dir}/lib/pkgconfig"
  done
  IFS=$neo4j_save_ifs
  ])
])