ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/idar/configure.in
(Generate patch)

Comparing projects/cms/source/idar/configure.in (file contents):
Revision 1.1 by tdb, Sat Mar 29 19:27:36 2003 UTC vs.
Revision 1.2 by tdb, Sun Mar 30 17:11:26 2003 UTC

# Line 35 | Line 35 | AC_ARG_WITH([libukcprog-prefix],
35          ]
36   )
37  
38 + # User specified curses/ncurses prefix
39 + AC_ARG_WITH([curses-prefix],
40 +        [  --with-curses-prefix=PATH             curses (or ncurses) is in PATH],
41 +        [
42 +                if test -d "$withval/lib"; then
43 +                        LDFLAGS="-L${withval}/lib ${LDFLAGS}"
44 +                fi
45 +                if test -d "$withval/include"; then
46 +                        CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
47 +                fi
48 +        ]
49 + )
50 +
51   # Checks for header files
52   AC_HEADER_STDC
53   AC_CHECK_HEADERS(ukcprog.h,,[AC_MSG_ERROR([need ukcprog.h])])
# Line 47 | Line 60 | AC_FUNC_MALLOC
60   AC_FUNC_REALLOC
61   AC_FUNC_FORK
62  
63 + # Need curses or ncurses
64 + MP_WITH_CURSES
65 +
66 + # Need libxml2
67 + AM_PATH_XML2
68 + CFLAGS="$CFLAGS $XML_CFLAGS"
69 + LIBS="$LIBS $XML_LIBS"
70 +
71   # Figure out details about the host - we need the OS
72   AC_CANONICAL_HOST
73  
# Line 55 | Line 76 | AC_CANONICAL_HOST
76   # We also need to add the right LDFLAGS
77   case $host_os in
78   solaris2.*)
79 +        AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])],[-lnsl -lsocket])
80          LIBS="$LIBS -lnsl -lsocket -Wl,-Bstatic -lukcprog -Wl,-Bdynamic"
81          ;;
82   freebsd4.*)
83 +        AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])])
84          LIBS="$LIBS -lukcprog -static"
85          ;;
86   linux-gnu)
87 +        AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])])
88          LIBS="$LIBS -lukcprog -static"
89          ;;
90   *)
91          AC_MSG_ERROR([Cannot build on unknown OS: $host_os])
92          ;;
93   esac
70
71 # Library checks that need to be done after the OS specific stuff
72 AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])])
73
74 # Need libxml2
75 AM_PATH_XML2
76 CFLAGS="$CFLAGS $XML_CFLAGS"
77 LIBS="$LIBS $XML_LIBS"
94  
95   # And finish by changing these files
96   AC_CONFIG_FILES([Makefile])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines