~ubuntu-branches/ubuntu/natty/ncurses/natty

« back to all changes in this revision

Viewing changes to test/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-17 09:00:42 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517090042-86fgxrr6j5jzagot
Tags: 5.6-0ubuntu1
* New upstream version.
  - Remove patches applied upstream: ncurses.upstream, signed-chars.
  - Update patches: debian-backspace.
* Build-depend on g++-multilib instead of lib{32,64}c*-dev-*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
dnl
29
29
dnl Author: Thomas E. Dickey 1996, etc.
30
30
dnl
31
 
dnl $Id: configure.in,v 1.51 2005/02/26 23:58:27 tom Exp $
 
31
dnl $Id: configure.in,v 1.58 2006/07/15 18:54:07 tom Exp $
32
32
dnl This is a simple configuration-script for the ncurses test programs that
33
33
dnl allows the test-directory to be separately configured against a reference
34
34
dnl system (i.e., sysvr4 curses)
49
49
AC_PROG_MAKE_SET
50
50
AC_PROG_CC
51
51
AC_PROG_CPP
 
52
AC_PROG_AWK
52
53
 
53
54
dnl Things that we don't need (or must override) if we're not building ncurses
54
55
CC_G_OPT="-g"                           AC_SUBST(CC_G_OPT)
66
67
LIB_CLEAN=""                            AC_SUBST(LIB_CLEAN)
67
68
LIB_COMPILE=""                          AC_SUBST(LIB_COMPILE)
68
69
LIB_LINK=""                             AC_SUBST(LIB_LINK)
69
 
LIB_NAME=curses                         AC_SUBST(LIB_NAME)
70
 
LIB_PREFIX="-l"                         AC_SUBST(LIB_PREFIX)
71
70
LINK_TESTS=""                           AC_SUBST(LINK_TESTS)
72
71
LINT=lint                               AC_SUBST(LINT)
73
72
LINT_OPTS=""                            AC_SUBST(LINT_OPTS)
86
85
AC_OBJEXT
87
86
 
88
87
CF_ANSI_CC_REQD
 
88
CF_ENABLE_WARNINGS
 
89
CF_GCC_ATTRIBUTES
89
90
CF_XOPEN_SOURCE
90
91
 
91
92
CF_WITH_CURSES_DIR
100
101
dnl NcursesW, installed in conventional location
101
102
AC_ARG_WITH(ncursesw,
102
103
        [  --with-ncursesw         use wide ncurses-libraries (installed)],
103
 
        [cf_cv_screen=ncursesw])
 
104
        [cf_cv_screen=ncursesw],[
104
105
 
105
106
dnl Ncurses, installed in conventional location
106
107
AC_ARG_WITH(ncurses,
107
108
        [  --with-ncurses          use ncurses-libraries (installed)],
108
 
        [cf_cv_screen=ncurses])
 
109
        [cf_cv_screen=ncurses],[
 
110
 
 
111
AC_ARG_WITH(pdcurses,
 
112
        [  --with-pdcurses         compile/link with pdcurses X11 library],
 
113
        [cf_cv_screen=pdcurses])])])
109
114
 
110
115
case $cf_cv_screen in
111
116
curses)
116
121
ncurses)
117
122
        CF_NCURSES_CPPFLAGS
118
123
        CF_NCURSES_LIBS
119
 
        LIB_NAME=ncurses
120
124
        ;;
121
125
ncursesw)
122
126
        cf_cv_libtype=w
123
127
        CF_UTF8_LIB
124
128
        CF_NCURSES_CPPFLAGS(ncursesw)
125
129
        CF_NCURSES_LIBS(ncursesw)
126
 
        LIB_NAME=ncursesw
 
130
        ;;
 
131
pdcurses) #(vi
 
132
        CF_PDCURSES_X11
127
133
        ;;
128
134
esac
129
135
 
132
138
 
133
139
dnl Autoconf builds up the $LIBS in reverse order
134
140
 
135
 
AC_CHECK_LIB(panel$cf_cv_libtype,new_panel)
136
 
AC_CHECK_LIB(menu$cf_cv_libtype,menu_driver)
137
 
AC_CHECK_LIB(form$cf_cv_libtype,form_driver)
 
141
case $cf_cv_screen in #(vi
 
142
pdcurses) #(vi
 
143
        ;;
 
144
*)
 
145
        # look for curses-related libraries
 
146
        AC_CHECK_LIB(panel$cf_cv_libtype,new_panel)
 
147
        AC_CHECK_LIB(menu$cf_cv_libtype,menu_driver)
 
148
        AC_CHECK_LIB(form$cf_cv_libtype,form_driver)
 
149
 
 
150
        # look for curses-related headers
 
151
        AC_CHECK_HEADERS( \
 
152
                nc_alloc.h \
 
153
                nomacros.h \
 
154
                form.h \
 
155
                menu.h \
 
156
                panel.h \
 
157
                )
 
158
        ;;
 
159
esac
138
160
 
139
161
AC_TYPE_SIGNAL
140
162
 
141
163
AC_STDC_HEADERS
142
164
AC_HEADER_TIME
143
165
AC_CHECK_HEADERS( \
144
 
form.h \
145
166
getopt.h \
146
167
locale.h \
147
 
menu.h \
148
 
nc_alloc.h \
149
 
nomacros.h \
150
 
panel.h \
 
168
stdarg.h \
151
169
sys/ioctl.h \
152
170
sys/select.h \
153
171
sys/time.h \
156
174
)
157
175
 
158
176
AC_CHECK_FUNCS( \
 
177
chgat \
159
178
color_set \
 
179
filter \
 
180
getbegx \
 
181
getcurx \
 
182
getmaxx \
160
183
getnstr \
161
184
gettimeofday \
 
185
getwin \
 
186
mvvline \
 
187
mvwvline \
162
188
napms \
 
189
putwin \
163
190
resize_term \
164
191
resizeterm \
 
192
ripoffline \
 
193
setupterm \
165
194
slk_color \
 
195
slk_init \
166
196
strdup \
 
197
termattrs \
 
198
tgetent \
 
199
tigetnum \
 
200
tigetstr \
 
201
typeahead \
167
202
use_default_colors \
168
203
vsscanf \
169
204
wchgat \
 
205
winsstr \
170
206
wresize \
171
207
)
172
208
 
200
236
dnl ---------------------------------------------------------------------------
201
237
 
202
238
AC_OUTPUT(Makefile,[
 
239
CF_PRG_RULES([$srcdir/mk-test.awk ECHO_LINK="$ECHO_LINK"], .)
203
240
        cat >>Makefile <<TEST_EOF
204
241
 
205
242
# These rules are generated so we do not rely on suffix rules, which do not
217
254
        @echo compiling $N; \$(CC) -c \$(CFLAGS_DEFAULT) $N.c
218
255
TEST_EOF
219
256
done
220
 
],[],sort)
 
257
],[
 
258
AWK="$AWK"
 
259
],cat)