File: configure.in

package info (click to toggle)
clisp 1%3A2.49.20241228.gitc3ec11b-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 57,724 kB
  • sloc: lisp: 124,909; ansic: 83,890; xml: 27,431; sh: 11,074; fortran: 7,307; makefile: 1,456; perl: 164; sed: 13
file content (53 lines) | stat: -rw-r--r-- 1,296 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
dnl AUTOCONF configuration for libsvm
dnl Sam Steingold 2010-2011

AC_PREREQ([2.64])
AC_INIT(libsvm, 1.0, clisp-list)
AC_CONFIG_SRCDIR(libsvm.lisp)
AC_CONFIG_HEADERS(config.h)

RSE_BOLD
BOLD_MSG([LibSVM (Common)])
CL_MODULE_COMMON_CHECKS([ffi])

dnl Search for libsvm and define LIBSVM, LTLIBSVM and INCSVM.
AC_LIB_LINKFLAGS([svm])

BOLD_MSG([LibSVM (Headers)])
AC_SUBST(LIBSVM_CFLAGS)
AC_SUBST(LIBSVM_LIBS)
AC_CHECK_HEADERS(svm.h)
if test "$ac_cv_header_svm_h" = "no"; then
  AC_MSG_ERROR([cannot find LibSVM headers])
fi

BOLD_MSG([LibSVM (Functions)])
AC_LIB_APPENDTOVAR([LIBS], [$LIBSVM])
AC_SEARCH_LIBS(svm_train, svm)
if test "$ac_cv_search_svm_train" = "no"; then
  AC_MSG_ERROR([cannot find LibSVM library])
fi
AC_CHECK_FUNCS(svm_check_parameter dnl
svm_check_probability_model dnl
svm_cross_validation dnl
svm_destroy_model dnl removed in 3.1
svm_destroy_param dnl
svm_free_and_destroy_model dnl since 3.0
svm_get_labels dnl
svm_get_nr_class dnl
svm_get_svm_type dnl
svm_get_svr_probability dnl
svm_load_model dnl
svm_predict dnl
svm_predict_probability dnl
svm_predict_values dnl returns a float sice 2.91
svm_save_model dnl
svm_train dnl
svm_set_print_string_function dnl since 2.91
)

BOLD_MSG([Libsvm (Output)])
AC_CONFIG_FILES(Makefile link.sh)
AC_OUTPUT

BOLD_MSG([Libsvm (Done)])