File: link.sh

package info (click to toggle)
clisp 1%3A2.27-0.5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 49,860 kB
  • ctags: 20,752
  • sloc: ansic: 123,781; lisp: 67,533; asm: 19,633; xml: 11,766; sh: 9,788; fortran: 8,307; makefile: 3,570; objc: 2,481; perl: 1,744; java: 341; yacc: 318; sed: 117
file content (24 lines) | stat: -rw-r--r-- 596 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
21
22
23
24
file_list=''
mod_list=''
if test -f postgresql.c; then
  file_list="$file_list"' postgresql.o'
  mod_list="$mod_list"' postgresql'
fi
make clisp-module CC="${CC}" CFLAGS="${CFLAGS}" INCLUDES="$absolute_linkkitdir"

# Test whether libcrypt exists.
have_libcrypt=''
echo 'int main() { return 0; }' > linkdummy.c
if ${CC} ${CFLAGS} linkdummy.c -lcrypt -o linkdummy > /dev/null 2>/dev/null;
then
  have_libcrypt=yes
fi
rm -f linkdummy*

NEW_FILES="$file_list"
NEW_LIBS="$file_list -lpq"
if test -n "$have_libcrypt"; then
  NEW_LIBS="$NEW_LIBS -lcrypt"
fi
NEW_MODULES="$mod_list"
TO_LOAD='postgresql'