… | |
… | |
91 | AC_CHECK_FUNC(setlocale, [], [AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])]) |
91 | AC_CHECK_FUNC(setlocale, [], [AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])]) |
92 | |
92 | |
93 | dnl# solaris needs to link libnsl and socket |
93 | dnl# solaris needs to link libnsl and socket |
94 | AC_CHECK_FUNC(gethostbyname, [], [AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])]) |
94 | AC_CHECK_FUNC(gethostbyname, [], [AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])]) |
95 | AC_CHECK_FUNC(socket, [], [AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])]) |
95 | AC_CHECK_FUNC(socket, [], [AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])]) |
96 | |
|
|
97 | dnl# more solaris |
|
|
98 | AC_CHECK_FUNC(sched_yield, [], [AC_CHECK_LIB(rt, sched_yield, [LIBS="$LIBS -lrt"])]) |
|
|
99 | |
|
|
100 | dnl# sched_yield to improve terminal efficiency |
|
|
101 | AC_MSG_CHECKING(for sched_yield support) |
|
|
102 | AC_TRY_LINK([#include <sched.h>],[sched_yield ()], |
|
|
103 | [AC_MSG_RESULT(yes) |
|
|
104 | AC_DEFINE(HAVE_SCHED_YIELD, 1, Define if you have sched-h and sched_yield)], |
|
|
105 | [AC_MSG_RESULT(no)]) |
|
|
106 | |
96 | |
107 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
97 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
108 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
98 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
109 | dnl AC_PROG_LIBTOOL()dnl# libtool |
99 | dnl AC_PROG_LIBTOOL()dnl# libtool |
110 | |
100 | |
… | |
… | |
147 | [ --enable-everything enable standard non-multichoice features |
137 | [ --enable-everything enable standard non-multichoice features |
148 | NOTE: this option is order dependent |
138 | NOTE: this option is order dependent |
149 | NOTE: automatically enabled with --enable-shared], |
139 | NOTE: automatically enabled with --enable-shared], |
150 | [ |
140 | [ |
151 | if test x$enableval = xno; then |
141 | if test x$enableval = xno; then |
152 | support_24bit=no |
|
|
153 | support_frills=no |
142 | support_frills=no |
154 | support_inheritpixmap=no |
143 | support_inheritpixmap=no |
155 | support_tinting=no |
144 | support_tinting=no |
156 | support_fading=no |
145 | support_fading=no |
157 | support_keepscrolling=no |
146 | support_keepscrolling=no |
… | |
… | |
177 | support_styles=no |
166 | support_styles=no |
178 | support_perl=no |
167 | support_perl=no |
179 | codesets= |
168 | codesets= |
180 | fi |
169 | fi |
181 | if test x$enableval = xyes; then |
170 | if test x$enableval = xyes; then |
182 | support_24bit=yes |
|
|
183 | support_frills=yes |
171 | support_frills=yes |
184 | support_inheritpixmap=yes |
172 | support_inheritpixmap=yes |
185 | support_tinting=yes |
173 | support_tinting=yes |
186 | support_fading=yes |
174 | support_fading=yes |
187 | support_keepscrolling=yes |
175 | support_keepscrolling=yes |
… | |
… | |
376 | |
364 | |
377 | AC_ARG_ENABLE(frills, |
365 | AC_ARG_ENABLE(frills, |
378 | [ --enable-frills enable support for rarely used features], |
366 | [ --enable-frills enable support for rarely used features], |
379 | [if test x$enableval = xyes -o x$enableval = xno; then |
367 | [if test x$enableval = xyes -o x$enableval = xno; then |
380 | support_frills=$enableval |
368 | support_frills=$enableval |
381 | fi]) |
|
|
382 | |
|
|
383 | AC_ARG_ENABLE(24bit, |
|
|
384 | [ --enable-24bit enable support for using 24bit visuals if available], |
|
|
385 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
386 | support_24bit=$enableval |
|
|
387 | fi]) |
369 | fi]) |
388 | |
370 | |
389 | AC_ARG_ENABLE(keepscrolling, |
371 | AC_ARG_ENABLE(keepscrolling, |
390 | [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press], |
372 | [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press], |
391 | [if test x$enableval = xyes -o x$enableval = xno; then |
373 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
660 | dnl> AC_FUNC_VPRINTF |
642 | dnl> AC_FUNC_VPRINTF |
661 | |
643 | |
662 | AC_CHECK_FUNCS( \ |
644 | AC_CHECK_FUNCS( \ |
663 | unsetenv \ |
645 | unsetenv \ |
664 | setutent \ |
646 | setutent \ |
665 | seteuid \ |
|
|
666 | setresuid \ |
|
|
667 | setreuid \ |
|
|
668 | on_exit \ |
647 | on_exit \ |
669 | ) |
648 | ) |
670 | |
649 | |
671 | UTMP_CHECK |
650 | UTMP_CHECK |
672 | |
651 | |
… | |
… | |
802 | if test x$support_selectionscrolling = xyes; then |
781 | if test x$support_selectionscrolling = xyes; then |
803 | AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) |
782 | AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) |
804 | fi |
783 | fi |
805 | if test x$support_frills = xyes; then |
784 | if test x$support_frills = xyes; then |
806 | AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
785 | AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
807 | fi |
|
|
808 | if test x$support_24bit = xyes; then |
|
|
809 | AC_DEFINE(PREFER_24BIT, 1, Define to use a 24 bit visual if the screen has 24 bit mode, even if the default is 8 bit) |
|
|
810 | fi |
786 | fi |
811 | if test x$support_mousewheel = xyes; then |
787 | if test x$support_mousewheel = xyes; then |
812 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
788 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
813 | fi |
789 | fi |
814 | if test x$support_mouseslipwheel = xyes; then |
790 | if test x$support_mouseslipwheel = xyes; then |
… | |
… | |
1016 | echo ". functions could not be found. ." |
992 | echo ". functions could not be found. ." |
1017 | echo ". XIM is now being DISABLED! ." |
993 | echo ". XIM is now being DISABLED! ." |
1018 | echo ".----------------------------------------------------------------." |
994 | echo ".----------------------------------------------------------------." |
1019 | fi |
995 | fi |
1020 | |
996 | |
1021 | echo " *** Optionally check src/feature.h for further options ***" |
997 | echo "*** Optionally check src/feature.h for further, rarely used options ***" |
1022 | echo |
998 | echo |
1023 | |
999 | |
1024 | echo ".----------------------------------------------------------------." |
|
|
1025 | echo ". NOTE: some features are disabled by default, try ." |
|
|
1026 | echo ". configure --help to get an idea of the optional features, ." |
|
|
1027 | echo ". or read ./README.configure ." |
|
|
1028 | echo ". ." |
|
|
1029 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
|
|
1030 | echo ". you do not want to read documentation and still want some ." |
|
|
1031 | echo ". useful features. ." |
|
|
1032 | echo ".----------------------------------------------------------------." |
|
|
1033 | echo |
|
|
1034 | |
|
|