… | |
… | |
239 | |
239 | |
240 | # CDPATH. |
240 | # CDPATH. |
241 | $as_unset CDPATH |
241 | $as_unset CDPATH |
242 | |
242 | |
243 | |
243 | |
244 | # Find the correct PATH separator. Usually this is `:', but |
|
|
245 | # DJGPP uses `;' like DOS. |
|
|
246 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
|
|
247 | UNAME=${UNAME-`uname 2>/dev/null`} |
|
|
248 | case X$UNAME in |
|
|
249 | *-DOS) lt_cv_sys_path_separator=';' ;; |
|
|
250 | *) lt_cv_sys_path_separator=':' ;; |
|
|
251 | esac |
|
|
252 | fi |
|
|
253 | |
|
|
254 | |
|
|
255 | # Check that we are running under the correct shell. |
|
|
256 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
257 | |
|
|
258 | case "X$ECHO" in |
|
|
259 | X*--fallback-echo) |
|
|
260 | # Remove one level of quotation (which was required for Make). |
|
|
261 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
|
|
262 | ;; |
|
|
263 | esac |
|
|
264 | |
|
|
265 | echo=${ECHO-echo} |
|
|
266 | if test "X$1" = X--no-reexec; then |
|
|
267 | # Discard the --no-reexec flag, and continue. |
|
|
268 | shift |
|
|
269 | elif test "X$1" = X--fallback-echo; then |
|
|
270 | # Avoid inline document here, it may be left over |
|
|
271 | : |
|
|
272 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
|
|
273 | # Yippee, $echo works! |
|
|
274 | : |
|
|
275 | else |
|
|
276 | # Restart under the correct shell. |
|
|
277 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
|
|
278 | fi |
|
|
279 | |
|
|
280 | if test "X$1" = X--fallback-echo; then |
|
|
281 | # used as fallback echo |
|
|
282 | shift |
|
|
283 | cat <<EOF |
|
|
284 | |
|
|
285 | EOF |
|
|
286 | exit 0 |
|
|
287 | fi |
|
|
288 | |
|
|
289 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
290 | # if CDPATH is set. |
|
|
291 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
292 | |
|
|
293 | if test -z "$ECHO"; then |
|
|
294 | if test "X${echo_test_string+set}" != Xset; then |
|
|
295 | # find a string as large as possible, as long as the shell can cope with it |
|
|
296 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
|
|
297 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
|
|
298 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
|
|
299 | echo_test_string="`eval $cmd`" && |
|
|
300 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
|
|
301 | then |
|
|
302 | break |
|
|
303 | fi |
|
|
304 | done |
|
|
305 | fi |
|
|
306 | |
|
|
307 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
308 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
|
309 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
310 | : |
|
|
311 | else |
|
|
312 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
|
|
313 | # backslashes. This makes it impossible to quote backslashes using |
|
|
314 | # echo "$something" | sed 's/\\/\\\\/g' |
|
|
315 | # |
|
|
316 | # So, first we look for a working echo in the user's PATH. |
|
|
317 | |
|
|
318 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" |
|
|
319 | for dir in $PATH /usr/ucb; do |
|
|
320 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
|
|
321 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
322 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
|
|
323 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
324 | echo="$dir/echo" |
|
|
325 | break |
|
|
326 | fi |
|
|
327 | done |
|
|
328 | IFS="$save_ifs" |
|
|
329 | |
|
|
330 | if test "X$echo" = Xecho; then |
|
|
331 | # We didn't find a better echo, so look for alternatives. |
|
|
332 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
|
|
333 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
|
|
334 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
335 | # This shell has a builtin print -r that does the trick. |
|
|
336 | echo='print -r' |
|
|
337 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
|
|
338 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
|
|
339 | # If we have ksh, try running ltconfig again with it. |
|
|
340 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
341 | export ORIGINAL_CONFIG_SHELL |
|
|
342 | CONFIG_SHELL=/bin/ksh |
|
|
343 | export CONFIG_SHELL |
|
|
344 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
|
|
345 | else |
|
|
346 | # Try using printf. |
|
|
347 | echo='printf %s\n' |
|
|
348 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
349 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
|
350 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
351 | # Cool, printf works |
|
|
352 | : |
|
|
353 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
|
354 | test "X$echo_testing_string" = 'X\t' && |
|
|
355 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
|
356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
357 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
|
|
358 | export CONFIG_SHELL |
|
|
359 | SHELL="$CONFIG_SHELL" |
|
|
360 | export SHELL |
|
|
361 | echo="$CONFIG_SHELL $0 --fallback-echo" |
|
|
362 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
|
363 | test "X$echo_testing_string" = 'X\t' && |
|
|
364 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
|
365 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
366 | echo="$CONFIG_SHELL $0 --fallback-echo" |
|
|
367 | else |
|
|
368 | # maybe with a smaller string... |
|
|
369 | prev=: |
|
|
370 | |
|
|
371 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
|
|
372 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
|
|
373 | then |
|
|
374 | break |
|
|
375 | fi |
|
|
376 | prev="$cmd" |
|
|
377 | done |
|
|
378 | |
|
|
379 | if test "$prev" != 'sed 50q "$0"'; then |
|
|
380 | echo_test_string=`eval $prev` |
|
|
381 | export echo_test_string |
|
|
382 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
|
|
383 | else |
|
|
384 | # Oops. We lost completely, so just stick with echo. |
|
|
385 | echo=echo |
|
|
386 | fi |
|
|
387 | fi |
|
|
388 | fi |
|
|
389 | fi |
|
|
390 | fi |
|
|
391 | fi |
|
|
392 | |
|
|
393 | # Copy echo and quote the copy suitably for passing to libtool from |
|
|
394 | # the Makefile, instead of quoting the original, which is used later. |
|
|
395 | ECHO=$echo |
|
|
396 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
|
|
397 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
|
|
398 | fi |
|
|
399 | |
|
|
400 | |
|
|
401 | |
|
|
402 | # Name of the host. |
244 | # Name of the host. |
403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
404 | # so uname gets run too. |
246 | # so uname gets run too. |
405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
406 | |
248 | |
… | |
… | |
465 | #endif |
307 | #endif |
466 | #if HAVE_UNISTD_H |
308 | #if HAVE_UNISTD_H |
467 | # include <unistd.h> |
309 | # include <unistd.h> |
468 | #endif" |
310 | #endif" |
469 | |
311 | |
470 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB RXVTNAME include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER CXXLIB INSTALL_LIBRXVT RXVTNAME TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS afterimage_config XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O LIBAFTERIMAGE_CFLAGS AFTERIMAGE_LIBS include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
471 | ac_subst_files='MCOMMON' |
313 | ac_subst_files='' |
472 | |
314 | |
473 | # Initialize some variables set by options. |
315 | # Initialize some variables set by options. |
474 | ac_init_help= |
316 | ac_init_help= |
475 | ac_init_version=false |
317 | ac_init_version=false |
476 | # The variables have the same names as the options, with |
318 | # The variables have the same names as the options, with |
… | |
… | |
934 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
776 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
935 | ac_env_CPP_set=${CPP+set} |
777 | ac_env_CPP_set=${CPP+set} |
936 | ac_env_CPP_value=$CPP |
778 | ac_env_CPP_value=$CPP |
937 | ac_cv_env_CPP_set=${CPP+set} |
779 | ac_cv_env_CPP_set=${CPP+set} |
938 | ac_cv_env_CPP_value=$CPP |
780 | ac_cv_env_CPP_value=$CPP |
|
|
781 | ac_env_CXXCPP_set=${CXXCPP+set} |
|
|
782 | ac_env_CXXCPP_value=$CXXCPP |
|
|
783 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
|
|
784 | ac_cv_env_CXXCPP_value=$CXXCPP |
939 | |
785 | |
940 | # |
786 | # |
941 | # Report the --help message. |
787 | # Report the --help message. |
942 | # |
788 | # |
943 | if test "$ac_init_help" = "long"; then |
789 | if test "$ac_init_help" = "long"; then |
… | |
… | |
1017 | cat <<\_ACEOF |
863 | cat <<\_ACEOF |
1018 | |
864 | |
1019 | Optional Features: |
865 | Optional Features: |
1020 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
866 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1021 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
867 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1022 | --enable-shared=PKGS build shared libraries default=no |
|
|
1023 | --enable-static=PKGS build static libraries default=yes |
|
|
1024 | --enable-fast-install=PKGS optimize for fast installation default=yes |
|
|
1025 | --disable-libtool-lock avoid locking (might break parallel builds) |
|
|
1026 | --enable-everything enable standard non-multichoice features: marked * |
868 | --enable-everything enable standard non-multichoice features |
1027 | NOTE: this option is order dependent |
869 | NOTE: this option is order dependent |
1028 | NOTE: automatically enabled with --enable-shared |
870 | NOTE: automatically enabled with --enable-shared |
1029 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
871 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
|
|
872 | --enable-combining enable composition of base and combining characters |
1030 | --enable-xft enable xft support on systems that have it |
873 | --enable-xft enable xft support on systems that have it |
1031 | --enable-utmp enable utmp (utmpx) support |
874 | --enable-font-styles enable bold and italic support |
1032 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
|
|
1033 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
|
|
1034 | --enable-xpm-background enable XPM background pixmaps |
875 | --enable-xpm-background enable background pixmaps |
|
|
876 | --enable-afterimage enable integration with libAfterImage for background images |
|
|
877 | --enable-afterstep enable integration with AfterStep window manager |
1035 | --enable-transparency enable transparent backgrounds |
878 | --enable-transparency enable transparent backgrounds |
1036 | --enable-menubar enable menubar |
879 | --enable-tinting enable tinting of transparent bg |
|
|
880 | --enable-fading enable colors fading when off focus |
1037 | --enable-rxvt-scroll enable rxvt style scrollbar |
881 | --enable-rxvt-scroll enable rxvt style scrollbar |
1038 | --enable-next-scroll enable NeXT style scrollbar |
882 | --enable-next-scroll enable NeXT style scrollbar |
1039 | --enable-xterm-scroll enable Xterm style scrollbar |
883 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
884 | --enable-perl enable embedded perl interpreter |
1040 | --enable-plain-scroll enable plain style scrollbar |
885 | --enable-plain-scroll enable plain style scrollbar |
1041 | --enable-half-shadow use half width/height shadow on rxvt scrollbar |
|
|
1042 | --enable-xim XIM (X Input Method) protocol support |
886 | --enable-xim XIM (X Input Method) protocol support |
1043 | --enable-ttygid enable tty setting to group named "tty" |
|
|
1044 | --disable-backspace-key disable handling of the backspace key |
887 | --disable-backspace-key disable handling of the backspace key |
1045 | --disable-delete-key disable handling of the delete key |
888 | --disable-delete-key disable handling of the delete key |
1046 | --disable-resources disable all resource checking |
889 | --disable-resources disable all resource checking |
1047 | --enable-xgetdefault enable resources via X instead of our small version |
890 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1048 | --enable-strings enable some replacement system functions |
891 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1049 | --disable-swapscreen disable swap screen support |
892 | --disable-swapscreen disable swap screen support |
|
|
893 | --enable-iso14755 enable support for extended ISO 14755 modes |
1050 | --enable-frills enable support for rarely used features |
894 | --enable-frills enable support for rarely used features |
1051 | --enable-linespace enable support for linespace |
|
|
1052 | --enable-24bit enable support for using 24bit visuals if available |
|
|
1053 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
895 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1054 | --enable-selectionscrolling enable scrolling during selections |
896 | --enable-selectionscrolling enable scrolling during selections |
1055 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
897 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1056 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
898 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1057 | --enable-old-selection enable v2.20 (& prior) mouse selection style support |
|
|
1058 | --disable-new-selection disable new mouse (xterm) selection style support |
|
|
1059 | --enable-dmalloc enable Gray Watson's malloc - for debugging use |
|
|
1060 | --enable-dlmalloc enable Doug Lea's malloc - for production use |
|
|
1061 | NOTE: enable only one malloc package |
|
|
1062 | --enable-smart-resize enable smart growth/shrink behaviour |
899 | --enable-smart-resize enable smart growth/shrink behaviour |
1063 | --enable-256-color enable 256-color support |
|
|
1064 | --enable-cursor-blink enable blinking cursor |
|
|
1065 | --enable-text-blink enable blinking text |
900 | --enable-text-blink enable blinking text |
1066 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
901 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
|
|
902 | --enable-utmp enable utmp (utmpx) support |
|
|
903 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
|
|
904 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1067 | |
905 | |
1068 | Optional Packages: |
906 | Optional Packages: |
1069 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
907 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1070 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
908 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1071 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
909 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1072 | --with-pic try to use only PIC/non-PIC objects default=use both |
|
|
1073 | --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all) |
910 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1074 | --with-encoding=NAME set language default encoding to NAME (default: sjis) |
911 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1075 | (eucj|sjis|big5|gb|kr|noenc) |
912 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
|
|
913 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1076 | --with-term=NAME set the terminal to NAME (default \"rxvt\") |
914 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1077 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
915 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1078 | --with-x use the X Window System |
916 | --with-x use the X Window System |
1079 | --with-xpm-includes=DIR use XPM includes in DIR |
917 | --with-xpm-includes=DIR use XPM includes in DIR |
1080 | --with-xpm-library=DIR use XPM library in DIR |
918 | --with-xpm-library=DIR use XPM library in DIR |
1081 | --with-xpm use XPM |
919 | --with-xpm use XPM |
… | |
… | |
1088 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
926 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1089 | headers in a nonstandard directory <include dir> |
927 | headers in a nonstandard directory <include dir> |
1090 | CXX C++ compiler command |
928 | CXX C++ compiler command |
1091 | CXXFLAGS C++ compiler flags |
929 | CXXFLAGS C++ compiler flags |
1092 | CPP C preprocessor |
930 | CPP C preprocessor |
|
|
931 | CXXCPP C++ preprocessor |
1093 | |
932 | |
1094 | Use these variables to override the choices made by `configure' or to help |
933 | Use these variables to override the choices made by `configure' or to help |
1095 | it to find libraries and programs with nonstandard names/locations. |
934 | it to find libraries and programs with nonstandard names/locations. |
1096 | |
935 | |
1097 | _ACEOF |
936 | _ACEOF |
… | |
… | |
1180 | echo |
1019 | echo |
1181 | $ac_configure --help |
1020 | $ac_configure --help |
1182 | else |
1021 | else |
1183 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1022 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1184 | fi |
1023 | fi |
1185 | cd "$ac_popdir" |
1024 | cd $ac_popdir |
1186 | done |
1025 | done |
1187 | fi |
1026 | fi |
1188 | |
1027 | |
1189 | test -n "$ac_init_help" && exit 0 |
1028 | test -n "$ac_init_help" && exit 0 |
1190 | if $ac_init_version; then |
1029 | if $ac_init_version; then |
… | |
… | |
1527 | |
1366 | |
1528 | |
1367 | |
1529 | |
1368 | |
1530 | |
1369 | |
1531 | |
1370 | |
|
|
1371 | |
|
|
1372 | |
|
|
1373 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
|
|
1374 | |
|
|
1375 | |
1532 | ac_aux_dir= |
1376 | ac_aux_dir= |
1533 | for ac_dir in autoconf $srcdir/autoconf; do |
1377 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1534 | if test -f $ac_dir/install-sh; then |
1378 | if test -f $ac_dir/install-sh; then |
1535 | ac_aux_dir=$ac_dir |
1379 | ac_aux_dir=$ac_dir |
1536 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1380 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1537 | break |
1381 | break |
1538 | elif test -f $ac_dir/install.sh; then |
1382 | elif test -f $ac_dir/install.sh; then |
… | |
… | |
1544 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1388 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1545 | break |
1389 | break |
1546 | fi |
1390 | fi |
1547 | done |
1391 | done |
1548 | if test -z "$ac_aux_dir"; then |
1392 | if test -z "$ac_aux_dir"; then |
1549 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1393 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1550 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} |
1394 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1551 | { (exit 1); exit 1; }; } |
1395 | { (exit 1); exit 1; }; } |
1552 | fi |
1396 | fi |
1553 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1397 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1554 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1398 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1555 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1399 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1556 | |
1400 | |
1557 | ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" |
1401 | # Make sure we can run config.sub. |
|
|
1402 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|
|
1403 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
|
1404 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
|
1405 | { (exit 1); exit 1; }; } |
|
|
1406 | |
|
|
1407 | echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
1408 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
1409 | if test "${ac_cv_build+set}" = set; then |
|
|
1410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1411 | else |
|
|
1412 | ac_cv_build_alias=$build_alias |
|
|
1413 | test -z "$ac_cv_build_alias" && |
|
|
1414 | ac_cv_build_alias=`$ac_config_guess` |
|
|
1415 | test -z "$ac_cv_build_alias" && |
|
|
1416 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
1417 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
1418 | { (exit 1); exit 1; }; } |
|
|
1419 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
1420 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
1421 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
1422 | { (exit 1); exit 1; }; } |
|
|
1423 | |
|
|
1424 | fi |
|
|
1425 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
1426 | echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
1427 | build=$ac_cv_build |
|
|
1428 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
1429 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
1430 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
1431 | |
|
|
1432 | |
|
|
1433 | echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
1434 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
1435 | if test "${ac_cv_host+set}" = set; then |
|
|
1436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1437 | else |
|
|
1438 | ac_cv_host_alias=$host_alias |
|
|
1439 | test -z "$ac_cv_host_alias" && |
|
|
1440 | ac_cv_host_alias=$ac_cv_build_alias |
|
|
1441 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
1442 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
1443 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
1444 | { (exit 1); exit 1; }; } |
|
|
1445 | |
|
|
1446 | fi |
|
|
1447 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
1448 | echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
1449 | host=$ac_cv_host |
|
|
1450 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
1451 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
1452 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
1453 | |
1558 | |
1454 | |
1559 | |
1455 | |
1560 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1456 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1561 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1457 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1562 | LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1563 | LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1564 | echo "" |
1458 | echo "" |
1565 | echo "configuring for rxvt $VERSION" |
1459 | echo "configuring for rxvt $VERSION" |
1566 | echo "" |
1460 | echo "" |
|
|
1461 | |
|
|
1462 | orig_CXXFLAGS="$CXXFLAGS" |
1567 | |
1463 | |
1568 | |
1464 | |
1569 | ac_ext=c |
1465 | ac_ext=c |
1570 | ac_cpp='$CPP $CPPFLAGS' |
1466 | ac_cpp='$CPP $CPPFLAGS' |
1571 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
… | |
… | |
2132 | grep -v '^ *+' conftest.er1 >conftest.err |
2028 | grep -v '^ *+' conftest.er1 >conftest.err |
2133 | rm -f conftest.er1 |
2029 | rm -f conftest.er1 |
2134 | cat conftest.err >&5 |
2030 | cat conftest.err >&5 |
2135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2136 | (exit $ac_status); } && |
2032 | (exit $ac_status); } && |
2137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2033 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
2034 | || test ! -s conftest.err' |
2138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2139 | (eval $ac_try) 2>&5 |
2036 | (eval $ac_try) 2>&5 |
2140 | ac_status=$? |
2037 | ac_status=$? |
2141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2142 | (exit $ac_status); }; } && |
2039 | (exit $ac_status); }; } && |
… | |
… | |
2190 | grep -v '^ *+' conftest.er1 >conftest.err |
2087 | grep -v '^ *+' conftest.er1 >conftest.err |
2191 | rm -f conftest.er1 |
2088 | rm -f conftest.er1 |
2192 | cat conftest.err >&5 |
2089 | cat conftest.err >&5 |
2193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2194 | (exit $ac_status); } && |
2091 | (exit $ac_status); } && |
2195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2092 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
2093 | || test ! -s conftest.err' |
2196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2197 | (eval $ac_try) 2>&5 |
2095 | (eval $ac_try) 2>&5 |
2198 | ac_status=$? |
2096 | ac_status=$? |
2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2200 | (exit $ac_status); }; } && |
2098 | (exit $ac_status); }; } && |
… | |
… | |
2306 | grep -v '^ *+' conftest.er1 >conftest.err |
2204 | grep -v '^ *+' conftest.er1 >conftest.err |
2307 | rm -f conftest.er1 |
2205 | rm -f conftest.er1 |
2308 | cat conftest.err >&5 |
2206 | cat conftest.err >&5 |
2309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2310 | (exit $ac_status); } && |
2208 | (exit $ac_status); } && |
2311 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2209 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
2210 | || test ! -s conftest.err' |
2312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2313 | (eval $ac_try) 2>&5 |
2212 | (eval $ac_try) 2>&5 |
2314 | ac_status=$? |
2213 | ac_status=$? |
2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2316 | (exit $ac_status); }; } && |
2215 | (exit $ac_status); }; } && |
… | |
… | |
2360 | grep -v '^ *+' conftest.er1 >conftest.err |
2259 | grep -v '^ *+' conftest.er1 >conftest.err |
2361 | rm -f conftest.er1 |
2260 | rm -f conftest.er1 |
2362 | cat conftest.err >&5 |
2261 | cat conftest.err >&5 |
2363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2364 | (exit $ac_status); } && |
2263 | (exit $ac_status); } && |
2365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2264 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
2265 | || test ! -s conftest.err' |
2366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2367 | (eval $ac_try) 2>&5 |
2267 | (eval $ac_try) 2>&5 |
2368 | ac_status=$? |
2268 | ac_status=$? |
2369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2370 | (exit $ac_status); }; } && |
2270 | (exit $ac_status); }; } && |
… | |
… | |
2405 | grep -v '^ *+' conftest.er1 >conftest.err |
2305 | grep -v '^ *+' conftest.er1 >conftest.err |
2406 | rm -f conftest.er1 |
2306 | rm -f conftest.er1 |
2407 | cat conftest.err >&5 |
2307 | cat conftest.err >&5 |
2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2409 | (exit $ac_status); } && |
2309 | (exit $ac_status); } && |
2410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2310 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
2311 | || test ! -s conftest.err' |
2411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2412 | (eval $ac_try) 2>&5 |
2313 | (eval $ac_try) 2>&5 |
2413 | ac_status=$? |
2314 | ac_status=$? |
2414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2415 | (exit $ac_status); }; } && |
2316 | (exit $ac_status); }; } && |
… | |
… | |
2449 | grep -v '^ *+' conftest.er1 >conftest.err |
2350 | grep -v '^ *+' conftest.er1 >conftest.err |
2450 | rm -f conftest.er1 |
2351 | rm -f conftest.er1 |
2451 | cat conftest.err >&5 |
2352 | cat conftest.err >&5 |
2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2453 | (exit $ac_status); } && |
2354 | (exit $ac_status); } && |
2454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2355 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
2356 | || test ! -s conftest.err' |
2455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2456 | (eval $ac_try) 2>&5 |
2358 | (eval $ac_try) 2>&5 |
2457 | ac_status=$? |
2359 | ac_status=$? |
2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2459 | (exit $ac_status); }; } && |
2361 | (exit $ac_status); }; } && |
… | |
… | |
2633 | grep -v '^ *+' conftest.er1 >conftest.err |
2535 | grep -v '^ *+' conftest.er1 >conftest.err |
2634 | rm -f conftest.er1 |
2536 | rm -f conftest.er1 |
2635 | cat conftest.err >&5 |
2537 | cat conftest.err >&5 |
2636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2637 | (exit $ac_status); } && |
2539 | (exit $ac_status); } && |
2638 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2540 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
2541 | || test ! -s conftest.err' |
2639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2640 | (eval $ac_try) 2>&5 |
2543 | (eval $ac_try) 2>&5 |
2641 | ac_status=$? |
2544 | ac_status=$? |
2642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2643 | (exit $ac_status); }; } && |
2546 | (exit $ac_status); }; } && |
… | |
… | |
2691 | grep -v '^ *+' conftest.er1 >conftest.err |
2594 | grep -v '^ *+' conftest.er1 >conftest.err |
2692 | rm -f conftest.er1 |
2595 | rm -f conftest.er1 |
2693 | cat conftest.err >&5 |
2596 | cat conftest.err >&5 |
2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2695 | (exit $ac_status); } && |
2598 | (exit $ac_status); } && |
2696 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2599 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
2600 | || test ! -s conftest.err' |
2697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2698 | (eval $ac_try) 2>&5 |
2602 | (eval $ac_try) 2>&5 |
2699 | ac_status=$? |
2603 | ac_status=$? |
2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2701 | (exit $ac_status); }; } && |
2605 | (exit $ac_status); }; } && |
… | |
… | |
2762 | grep -v '^ *+' conftest.er1 >conftest.err |
2666 | grep -v '^ *+' conftest.er1 >conftest.err |
2763 | rm -f conftest.er1 |
2667 | rm -f conftest.er1 |
2764 | cat conftest.err >&5 |
2668 | cat conftest.err >&5 |
2765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2766 | (exit $ac_status); } && |
2670 | (exit $ac_status); } && |
2767 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2671 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
2672 | || test ! -s conftest.err' |
2768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2769 | (eval $ac_try) 2>&5 |
2674 | (eval $ac_try) 2>&5 |
2770 | ac_status=$? |
2675 | ac_status=$? |
2771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2772 | (exit $ac_status); }; } && |
2677 | (exit $ac_status); }; } && |
… | |
… | |
2806 | grep -v '^ *+' conftest.er1 >conftest.err |
2711 | grep -v '^ *+' conftest.er1 >conftest.err |
2807 | rm -f conftest.er1 |
2712 | rm -f conftest.er1 |
2808 | cat conftest.err >&5 |
2713 | cat conftest.err >&5 |
2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2810 | (exit $ac_status); } && |
2715 | (exit $ac_status); } && |
2811 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2716 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
2717 | || test ! -s conftest.err' |
2812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2813 | (eval $ac_try) 2>&5 |
2719 | (eval $ac_try) 2>&5 |
2814 | ac_status=$? |
2720 | ac_status=$? |
2815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2816 | (exit $ac_status); }; } && |
2722 | (exit $ac_status); }; } && |
… | |
… | |
3152 | |
3058 | |
3153 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3059 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3154 | |
3060 | |
3155 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3061 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3156 | |
3062 | |
3157 | for ac_prog in gawk mawk nawk awk |
|
|
3158 | do |
|
|
3159 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
3160 | set dummy $ac_prog; ac_word=$2 |
|
|
3161 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
3162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3163 | if test "${ac_cv_prog_AWK+set}" = set; then |
|
|
3164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3165 | else |
|
|
3166 | if test -n "$AWK"; then |
|
|
3167 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
|
3168 | else |
|
|
3169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3170 | for as_dir in $PATH |
|
|
3171 | do |
|
|
3172 | IFS=$as_save_IFS |
|
|
3173 | test -z "$as_dir" && as_dir=. |
|
|
3174 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3175 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
3176 | ac_cv_prog_AWK="$ac_prog" |
|
|
3177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
3178 | break 2 |
|
|
3179 | fi |
|
|
3180 | done |
|
|
3181 | done |
|
|
3182 | |
|
|
3183 | fi |
|
|
3184 | fi |
|
|
3185 | AWK=$ac_cv_prog_AWK |
|
|
3186 | if test -n "$AWK"; then |
|
|
3187 | echo "$as_me:$LINENO: result: $AWK" >&5 |
|
|
3188 | echo "${ECHO_T}$AWK" >&6 |
|
|
3189 | else |
|
|
3190 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3191 | echo "${ECHO_T}no" >&6 |
|
|
3192 | fi |
|
|
3193 | |
|
|
3194 | test -n "$AWK" && break |
|
|
3195 | done |
|
|
3196 | |
|
|
3197 | |
3063 | |
3198 | |
3064 | |
3199 | |
3065 | |
3200 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3066 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3201 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3067 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
… | |
… | |
3277 | grep -v '^ *+' conftest.er1 >conftest.err |
3143 | grep -v '^ *+' conftest.er1 >conftest.err |
3278 | rm -f conftest.er1 |
3144 | rm -f conftest.er1 |
3279 | cat conftest.err >&5 |
3145 | cat conftest.err >&5 |
3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3281 | (exit $ac_status); } && |
3147 | (exit $ac_status); } && |
3282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3148 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
3149 | || test ! -s conftest.err' |
3283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3284 | (eval $ac_try) 2>&5 |
3151 | (eval $ac_try) 2>&5 |
3285 | ac_status=$? |
3152 | ac_status=$? |
3286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3287 | (exit $ac_status); }; } && |
3154 | (exit $ac_status); }; } && |
… | |
… | |
3331 | grep -v '^ *+' conftest.er1 >conftest.err |
3198 | grep -v '^ *+' conftest.er1 >conftest.err |
3332 | rm -f conftest.er1 |
3199 | rm -f conftest.er1 |
3333 | cat conftest.err >&5 |
3200 | cat conftest.err >&5 |
3334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3335 | (exit $ac_status); } && |
3202 | (exit $ac_status); } && |
3336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3203 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
3204 | || test ! -s conftest.err' |
3337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3338 | (eval $ac_try) 2>&5 |
3206 | (eval $ac_try) 2>&5 |
3339 | ac_status=$? |
3207 | ac_status=$? |
3340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3341 | (exit $ac_status); }; } && |
3209 | (exit $ac_status); }; } && |
… | |
… | |
3363 | if test "$ac_cv_search_strerror" != no; then |
3231 | if test "$ac_cv_search_strerror" != no; then |
3364 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3232 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3365 | |
3233 | |
3366 | fi |
3234 | fi |
3367 | |
3235 | |
|
|
3236 | ac_ext=cc |
|
|
3237 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3238 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3239 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3240 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3368 | |
3241 | |
3369 | # Check whether --enable-shared or --disable-shared was given. |
|
|
3370 | if test "${enable_shared+set}" = set; then |
|
|
3371 | enableval="$enable_shared" |
|
|
3372 | p=${PACKAGE-default} |
|
|
3373 | case "$enableval" in |
|
|
3374 | yes) enable_shared=yes ;; |
|
|
3375 | no) enable_shared=no ;; |
|
|
3376 | *) |
|
|
3377 | enable_shared=no |
|
|
3378 | # Look at the argument we got. We use all the common list separators. |
|
|
3379 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3380 | for pkg in $enableval; do |
|
|
3381 | if test "X$pkg" = "X$p"; then |
|
|
3382 | enable_shared=yes |
|
|
3383 | fi |
|
|
3384 | done |
|
|
3385 | IFS="$ac_save_ifs" |
|
|
3386 | ;; |
|
|
3387 | esac |
|
|
3388 | else |
|
|
3389 | enable_shared=no |
|
|
3390 | fi; # Check whether --enable-static or --disable-static was given. |
|
|
3391 | if test "${enable_static+set}" = set; then |
|
|
3392 | enableval="$enable_static" |
|
|
3393 | p=${PACKAGE-default} |
|
|
3394 | case "$enableval" in |
|
|
3395 | yes) enable_static=yes ;; |
|
|
3396 | no) enable_static=no ;; |
|
|
3397 | *) |
|
|
3398 | enable_static=no |
|
|
3399 | # Look at the argument we got. We use all the common list separators. |
|
|
3400 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3401 | for pkg in $enableval; do |
|
|
3402 | if test "X$pkg" = "X$p"; then |
|
|
3403 | enable_static=yes |
|
|
3404 | fi |
|
|
3405 | done |
|
|
3406 | IFS="$ac_save_ifs" |
|
|
3407 | ;; |
|
|
3408 | esac |
|
|
3409 | else |
|
|
3410 | enable_static=yes |
|
|
3411 | fi; # Check whether --enable-fast-install or --disable-fast-install was given. |
|
|
3412 | if test "${enable_fast_install+set}" = set; then |
|
|
3413 | enableval="$enable_fast_install" |
|
|
3414 | p=${PACKAGE-default} |
|
|
3415 | case "$enableval" in |
|
|
3416 | yes) enable_fast_install=yes ;; |
|
|
3417 | no) enable_fast_install=no ;; |
|
|
3418 | *) |
|
|
3419 | enable_fast_install=no |
|
|
3420 | # Look at the argument we got. We use all the common list separators. |
|
|
3421 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3422 | for pkg in $enableval; do |
|
|
3423 | if test "X$pkg" = "X$p"; then |
|
|
3424 | enable_fast_install=yes |
|
|
3425 | fi |
|
|
3426 | done |
|
|
3427 | IFS="$ac_save_ifs" |
|
|
3428 | ;; |
|
|
3429 | esac |
|
|
3430 | else |
|
|
3431 | enable_fast_install=yes |
|
|
3432 | fi; |
|
|
3433 | # Make sure we can run config.sub. |
|
|
3434 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|
|
3435 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
|
3436 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
|
3437 | { (exit 1); exit 1; }; } |
|
|
3438 | |
3242 | |
3439 | echo "$as_me:$LINENO: checking build system type" >&5 |
3243 | if test x$GCC = xyes && test x$GXX = xyes; then |
3440 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
3441 | if test "${ac_cv_build+set}" = set; then |
|
|
3442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3443 | else |
|
|
3444 | ac_cv_build_alias=$build_alias |
|
|
3445 | test -z "$ac_cv_build_alias" && |
|
|
3446 | ac_cv_build_alias=`$ac_config_guess` |
|
|
3447 | test -z "$ac_cv_build_alias" && |
|
|
3448 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
3449 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
3450 | { (exit 1); exit 1; }; } |
|
|
3451 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
3452 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
3453 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
3454 | { (exit 1); exit 1; }; } |
|
|
3455 | |
|
|
3456 | fi |
|
|
3457 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
3458 | echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
3459 | build=$ac_cv_build |
|
|
3460 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
3461 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
3462 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
3463 | |
|
|
3464 | |
|
|
3465 | echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
3466 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
3467 | if test "${ac_cv_host+set}" = set; then |
|
|
3468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3469 | else |
|
|
3470 | ac_cv_host_alias=$host_alias |
|
|
3471 | test -z "$ac_cv_host_alias" && |
|
|
3472 | ac_cv_host_alias=$ac_cv_build_alias |
|
|
3473 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
3474 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
3475 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
3476 | { (exit 1); exit 1; }; } |
|
|
3477 | |
|
|
3478 | fi |
|
|
3479 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
3480 | echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
3481 | host=$ac_cv_host |
|
|
3482 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
3483 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
3484 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
3485 | |
|
|
3486 | |
|
|
3487 | |
|
|
3488 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
3489 | if test "${with_gnu_ld+set}" = set; then |
|
|
3490 | withval="$with_gnu_ld" |
|
|
3491 | test "$withval" = no || with_gnu_ld=yes |
|
|
3492 | else |
|
|
3493 | with_gnu_ld=no |
|
|
3494 | fi; |
|
|
3495 | ac_prog=ld |
|
|
3496 | if test "$GCC" = yes; then |
|
|
3497 | # Check if gcc -print-prog-name=ld gives a path. |
|
|
3498 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
|
|
3499 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
|
|
3500 | case $host in |
|
|
3501 | *-*-mingw*) |
|
|
3502 | # gcc leaves a trailing carriage return which upsets mingw |
|
|
3503 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
|
3504 | *) |
|
|
3505 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
|
3506 | esac |
|
|
3507 | case "$ac_prog" in |
|
|
3508 | # Accept absolute paths. |
|
|
3509 | [\\/]* | [A-Za-z]:[\\/]*) |
|
|
3510 | re_direlt='/[^/][^/]*/\.\./' |
|
|
3511 | # Canonicalize the path of ld |
|
|
3512 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
|
|
3513 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
3514 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
|
|
3515 | done |
|
|
3516 | test -z "$LD" && LD="$ac_prog" |
|
|
3517 | ;; |
|
|
3518 | "") |
|
|
3519 | # If it fails, then pretend we aren't using GCC. |
|
|
3520 | ac_prog=ld |
|
|
3521 | ;; |
|
|
3522 | *) |
|
|
3523 | # If it is relative, then search for the first ld in PATH. |
|
|
3524 | with_gnu_ld=unknown |
|
|
3525 | ;; |
|
|
3526 | esac |
|
|
3527 | elif test "$with_gnu_ld" = yes; then |
|
|
3528 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3244 | echo "$as_me:$LINENO: checking for working libsupc++" >&5 |
3529 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3245 | echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6 |
3530 | else |
3246 | save_CXX="$CXX" |
3531 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
|
3532 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
|
3533 | fi |
|
|
3534 | if test "${lt_cv_path_LD+set}" = set; then |
|
|
3535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3536 | else |
|
|
3537 | if test -z "$LD"; then |
|
|
3538 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
3539 | for ac_dir in $PATH; do |
|
|
3540 | test -z "$ac_dir" && ac_dir=. |
|
|
3541 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
3542 | lt_cv_path_LD="$ac_dir/$ac_prog" |
|
|
3543 | # Check to see if the program is GNU ld. I'd rather use --version, |
|
|
3544 | # but apparently some GNU ld's only accept -v. |
|
|
3545 | # Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
3546 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
3547 | test "$with_gnu_ld" != no && break |
|
|
3548 | else |
|
|
3549 | test "$with_gnu_ld" != yes && break |
|
|
3550 | fi |
|
|
3551 | fi |
|
|
3552 | done |
|
|
3553 | IFS="$ac_save_ifs" |
|
|
3554 | else |
|
|
3555 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
3556 | fi |
|
|
3557 | fi |
|
|
3558 | |
|
|
3559 | LD="$lt_cv_path_LD" |
|
|
3560 | if test -n "$LD"; then |
|
|
3561 | echo "$as_me:$LINENO: result: $LD" >&5 |
|
|
3562 | echo "${ECHO_T}$LD" >&6 |
|
|
3563 | else |
|
|
3564 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3565 | echo "${ECHO_T}no" >&6 |
|
|
3566 | fi |
|
|
3567 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
|
3568 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
|
3569 | { (exit 1); exit 1; }; } |
|
|
3570 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
|
3571 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
|
3572 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
|
3573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3574 | else |
|
|
3575 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
|
3576 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
|
|
3577 | lt_cv_prog_gnu_ld=yes |
|
|
3578 | else |
|
|
3579 | lt_cv_prog_gnu_ld=no |
|
|
3580 | fi |
|
|
3581 | fi |
|
|
3582 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
|
3583 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
|
3584 | with_gnu_ld=$lt_cv_prog_gnu_ld |
|
|
3585 | |
|
|
3586 | |
|
|
3587 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
|
|
3588 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
|
|
3589 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
|
|
3590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3591 | else |
|
|
3592 | lt_cv_ld_reload_flag='-r' |
|
|
3593 | fi |
|
|
3594 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
|
|
3595 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
|
|
3596 | reload_flag=$lt_cv_ld_reload_flag |
|
|
3597 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
|
|
3598 | |
|
|
3599 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
|
|
3600 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
|
|
3601 | if test "${lt_cv_path_NM+set}" = set; then |
|
|
3602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3603 | else |
|
|
3604 | if test -n "$NM"; then |
|
|
3605 | # Let the user override the test. |
|
|
3606 | lt_cv_path_NM="$NM" |
|
|
3607 | else |
|
|
3608 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
3609 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
|
|
3610 | test -z "$ac_dir" && ac_dir=. |
|
|
3611 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
|
|
3612 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
|
|
3613 | # Check to see if the nm accepts a BSD-compat flag. |
|
|
3614 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
|
3615 | # nm: unknown option "B" ignored |
|
|
3616 | # Tru64's nm complains that /dev/null is an invalid object file |
|
|
3617 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
|
|
3618 | lt_cv_path_NM="$tmp_nm -B" |
|
|
3619 | break |
|
|
3620 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
|
|
3621 | lt_cv_path_NM="$tmp_nm -p" |
|
|
3622 | break |
|
|
3623 | else |
|
|
3624 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
|
3625 | continue # so that we can try to find one that supports BSD flags |
|
|
3626 | fi |
|
|
3627 | fi |
|
|
3628 | done |
|
|
3629 | IFS="$ac_save_ifs" |
|
|
3630 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
|
|
3631 | fi |
|
|
3632 | fi |
|
|
3633 | |
|
|
3634 | NM="$lt_cv_path_NM" |
|
|
3635 | echo "$as_me:$LINENO: result: $NM" >&5 |
|
|
3636 | echo "${ECHO_T}$NM" >&6 |
|
|
3637 | |
|
|
3638 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
|
3639 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
|
|
3640 | LN_S=$as_ln_s |
|
|
3641 | if test "$LN_S" = "ln -s"; then |
|
|
3642 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
3643 | echo "${ECHO_T}yes" >&6 |
|
|
3644 | else |
|
|
3645 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
|
3646 | echo "${ECHO_T}no, using $LN_S" >&6 |
|
|
3647 | fi |
|
|
3648 | |
|
|
3649 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
|
|
3650 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
|
|
3651 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
|
|
3652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3653 | else |
|
|
3654 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
|
3655 | lt_cv_file_magic_test_file= |
|
|
3656 | lt_cv_deplibs_check_method='unknown' |
|
|
3657 | # Need to set the preceding variable on all platforms that support |
|
|
3658 | # interlibrary dependencies. |
|
|
3659 | # 'none' -- dependencies not supported. |
|
|
3660 | # `unknown' -- same as none, but documents that we really don't know. |
|
|
3661 | # 'pass_all' -- all dependencies passed with no checks. |
|
|
3662 | # 'test_compile' -- check by making test program. |
|
|
3663 | # ['file_magic [regex]'] -- check by looking for files in library path |
|
|
3664 | # which responds to the $file_magic_cmd with a given egrep regex. |
|
|
3665 | # If you have `file' or equivalent on your system and you're not sure |
|
|
3666 | # whether `pass_all' will *always* work, you probably want this one. |
|
|
3667 | |
|
|
3668 | case "$host_os" in |
|
|
3669 | aix4*) |
|
|
3670 | lt_cv_deplibs_check_method=pass_all |
|
|
3671 | ;; |
|
|
3672 | |
|
|
3673 | beos*) |
|
|
3674 | lt_cv_deplibs_check_method=pass_all |
|
|
3675 | ;; |
|
|
3676 | |
|
|
3677 | bsdi4*) |
|
|
3678 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
|
3679 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
3680 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
3681 | ;; |
|
|
3682 | |
|
|
3683 | cygwin* | mingw* | pw32*) |
|
|
3684 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
|
3685 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
|
3686 | ;; |
|
|
3687 | |
|
|
3688 | darwin*|rhapsody*) |
|
|
3689 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
|
|
3690 | lt_cv_file_magiic_cmd=/usr/bin/file |
|
|
3691 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
|
|
3692 | ;; |
|
|
3693 | |
|
|
3694 | freebsd*) |
|
|
3695 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
3696 | case "$host_cpu" in |
|
|
3697 | i*86 ) |
|
|
3698 | # Not sure whether the presence of OpenBSD here was a mistake. |
|
|
3699 | # Let's accept both of them until this is cleared up. |
|
|
3700 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
|
|
3701 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
3702 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
|
3703 | ;; |
|
|
3704 | esac |
|
|
3705 | else |
|
|
3706 | lt_cv_deplibs_check_method=pass_all |
|
|
3707 | fi |
|
|
3708 | ;; |
|
|
3709 | |
|
|
3710 | gnu*) |
|
|
3711 | lt_cv_deplibs_check_method=pass_all |
|
|
3712 | ;; |
|
|
3713 | |
|
|
3714 | hpux10.20*|hpux11*) |
|
|
3715 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
|
3716 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
3717 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
|
3718 | ;; |
|
|
3719 | |
|
|
3720 | irix5* | irix6*) |
|
|
3721 | case "$host_os" in |
|
|
3722 | irix5*) |
|
|
3723 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
3724 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
|
|
3725 | ;; |
|
|
3726 | *) |
|
|
3727 | case "$LD" in |
|
|
3728 | *-32|*"-32 ") libmagic=32-bit;; |
|
|
3729 | *-n32|*"-n32 ") libmagic=N32;; |
|
|
3730 | *-64|*"-64 ") libmagic=64-bit;; |
|
|
3731 | *) libmagic=never-match;; |
|
|
3732 | esac |
|
|
3733 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
3734 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
|
|
3735 | ;; |
|
|
3736 | esac |
|
|
3737 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
|
|
3738 | lt_cv_deplibs_check_method=pass_all |
|
|
3739 | ;; |
|
|
3740 | |
|
|
3741 | # This must be Linux ELF. |
|
|
3742 | linux-gnu*) |
|
|
3743 | case "$host_cpu" in |
|
|
3744 | alpha* | i*86 | powerpc* | sparc* | ia64* ) |
|
|
3745 | lt_cv_deplibs_check_method=pass_all ;; |
|
|
3746 | *) |
|
|
3747 | # glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
3748 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
|
|
3749 | esac |
|
|
3750 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
|
3751 | ;; |
|
|
3752 | |
|
|
3753 | netbsd*) |
|
|
3754 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
3755 | lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library' |
|
|
3756 | else |
|
|
3757 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
|
|
3758 | fi |
|
|
3759 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
3760 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
3761 | ;; |
|
|
3762 | |
|
|
3763 | newos6*) |
|
|
3764 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
|
3765 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
3766 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
|
3767 | ;; |
|
|
3768 | |
|
|
3769 | osf3* | osf4* | osf5*) |
|
|
3770 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
3771 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
|
|
3772 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
3773 | lt_cv_deplibs_check_method=pass_all |
|
|
3774 | ;; |
|
|
3775 | |
|
|
3776 | sco3.2v5*) |
|
|
3777 | lt_cv_deplibs_check_method=pass_all |
|
|
3778 | ;; |
|
|
3779 | |
|
|
3780 | solaris*) |
|
|
3781 | lt_cv_deplibs_check_method=pass_all |
|
|
3782 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
3783 | ;; |
|
|
3784 | |
|
|
3785 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
3786 | case "$host_vendor" in |
|
|
3787 | motorola) |
|
|
3788 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
|
|
3789 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
3790 | ;; |
|
|
3791 | ncr) |
|
|
3792 | lt_cv_deplibs_check_method=pass_all |
|
|
3793 | ;; |
|
|
3794 | sequent) |
|
|
3795 | lt_cv_file_magic_cmd='/bin/file' |
|
|
3796 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
|
3797 | ;; |
|
|
3798 | sni) |
|
|
3799 | lt_cv_file_magic_cmd='/bin/file' |
|
|
3800 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
|
3801 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
3802 | ;; |
|
|
3803 | esac |
|
|
3804 | ;; |
|
|
3805 | esac |
|
|
3806 | |
|
|
3807 | fi |
|
|
3808 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
|
|
3809 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
|
|
3810 | file_magic_cmd=$lt_cv_file_magic_cmd |
|
|
3811 | deplibs_check_method=$lt_cv_deplibs_check_method |
|
|
3812 | |
|
|
3813 | |
|
|
3814 | |
|
|
3815 | |
|
|
3816 | |
|
|
3817 | |
|
|
3818 | |
|
|
3819 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
|
|
3820 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
|
|
3821 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
|
|
3822 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
3823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3824 | else |
|
|
3825 | |
|
|
3826 | # These are sane defaults that work on at least a few old systems. |
|
|
3827 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
3828 | |
|
|
3829 | # Character class describing NM global symbol codes. |
|
|
3830 | symcode='[BCDEGRST]' |
|
|
3831 | |
|
|
3832 | # Regexp to match symbols that can be accessed directly from C. |
|
|
3833 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
|
3834 | |
|
|
3835 | # Transform the above into a raw symbol and a C symbol. |
|
|
3836 | symxfrm='\1 \2\3 \3' |
|
|
3837 | |
|
|
3838 | # Transform an extracted symbol line into a proper C declaration |
|
|
3839 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
3840 | |
|
|
3841 | # Define system-specific variables. |
|
|
3842 | case "$host_os" in |
|
|
3843 | aix*) |
|
|
3844 | symcode='[BCDT]' |
|
|
3845 | ;; |
|
|
3846 | cygwin* | mingw* | pw32*) |
|
|
3847 | symcode='[ABCDGISTW]' |
|
|
3848 | ;; |
|
|
3849 | hpux*) # Its linker distinguishes data from code symbols |
|
|
3850 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
3851 | ;; |
|
|
3852 | irix*) |
|
|
3853 | symcode='[BCDEGRST]' |
|
|
3854 | ;; |
|
|
3855 | solaris* | sysv5*) |
|
|
3856 | symcode='[BDT]' |
|
|
3857 | ;; |
|
|
3858 | sysv4) |
|
|
3859 | symcode='[DFNSTU]' |
|
|
3860 | ;; |
|
|
3861 | esac |
|
|
3862 | |
|
|
3863 | # Handle CRLF in mingw tool chain |
|
|
3864 | opt_cr= |
|
|
3865 | case "$host_os" in |
|
|
3866 | mingw*) |
|
|
3867 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
|
3868 | ;; |
|
|
3869 | esac |
|
|
3870 | |
|
|
3871 | # If we're using GNU nm, then use its standard symbol codes. |
|
|
3872 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
3873 | symcode='[ABCDGISTW]' |
|
|
3874 | fi |
|
|
3875 | |
|
|
3876 | # Try without a prefix undercore, then with it. |
|
|
3877 | for ac_symprfx in "" "_"; do |
|
|
3878 | |
|
|
3879 | # Write the raw and C identifiers. |
|
|
3880 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
|
|
3881 | |
|
|
3882 | # Check to see that the pipe works correctly. |
|
|
3883 | pipe_works=no |
|
|
3884 | rm -f conftest* |
|
|
3885 | cat > conftest.$ac_ext <<EOF |
|
|
3886 | #ifdef __cplusplus |
|
|
3887 | extern "C" { |
|
|
3888 | #endif |
|
|
3889 | char nm_test_var; |
|
|
3890 | void nm_test_func(){} |
|
|
3891 | #ifdef __cplusplus |
|
|
3892 | } |
|
|
3893 | #endif |
|
|
3894 | main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
3895 | EOF |
|
|
3896 | |
|
|
3897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3898 | (eval $ac_compile) 2>&5 |
|
|
3899 | ac_status=$? |
|
|
3900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3901 | (exit $ac_status); }; then |
|
|
3902 | # Now try to grab the symbols. |
|
|
3903 | nlist=conftest.nm |
|
|
3904 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
|
3905 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
|
3906 | ac_status=$? |
|
|
3907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3908 | (exit $ac_status); } && test -s "$nlist"; then |
|
|
3909 | # Try sorting and uniquifying the output. |
|
|
3910 | if sort "$nlist" | uniq > "$nlist"T; then |
|
|
3911 | mv -f "$nlist"T "$nlist" |
|
|
3912 | else |
|
|
3913 | rm -f "$nlist"T |
|
|
3914 | fi |
|
|
3915 | |
|
|
3916 | # Make sure that we snagged all the symbols we need. |
|
|
3917 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
|
|
3918 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
|
|
3919 | cat <<EOF > conftest.$ac_ext |
|
|
3920 | #ifdef __cplusplus |
|
|
3921 | extern "C" { |
|
|
3922 | #endif |
|
|
3923 | |
|
|
3924 | EOF |
|
|
3925 | # Now generate the symbol file. |
|
|
3926 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
|
|
3927 | |
|
|
3928 | cat <<EOF >> conftest.$ac_ext |
|
|
3929 | #if defined (__STDC__) && __STDC__ |
|
|
3930 | # define lt_ptr_t void * |
|
|
3931 | #else |
|
|
3932 | # define lt_ptr_t char * |
|
|
3933 | # define const |
|
|
3934 | #endif |
|
|
3935 | |
|
|
3936 | /* The mapping between symbol names and symbols. */ |
|
|
3937 | const struct { |
|
|
3938 | const char *name; |
|
|
3939 | lt_ptr_t address; |
|
|
3940 | } |
|
|
3941 | lt_preloaded_symbols[] = |
|
|
3942 | { |
|
|
3943 | EOF |
|
|
3944 | sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext |
|
|
3945 | cat <<\EOF >> conftest.$ac_ext |
|
|
3946 | {0, (lt_ptr_t) 0} |
|
|
3947 | }; |
|
|
3948 | |
|
|
3949 | #ifdef __cplusplus |
|
|
3950 | } |
|
|
3951 | #endif |
|
|
3952 | EOF |
|
|
3953 | # Now try linking the two files. |
|
|
3954 | mv conftest.$ac_objext conftstm.$ac_objext |
|
|
3955 | save_LIBS="$LIBS" |
3247 | save_LIBS="$LIBS" |
3956 | save_CFLAGS="$CFLAGS" |
3248 | CXX="$CC" |
3957 | LIBS="conftstm.$ac_objext" |
3249 | LIBS="$LIBS -lsupc++" |
3958 | CFLAGS="$CFLAGS$no_builtin_flag" |
3250 | LINKER="$CC" |
3959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3960 | (eval $ac_link) 2>&5 |
|
|
3961 | ac_status=$? |
|
|
3962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3963 | (exit $ac_status); } && test -s conftest; then |
|
|
3964 | pipe_works=yes |
|
|
3965 | fi |
|
|
3966 | LIBS="$save_LIBS" |
|
|
3967 | CFLAGS="$save_CFLAGS" |
|
|
3968 | else |
|
|
3969 | echo "cannot find nm_test_func in $nlist" >&5 |
|
|
3970 | fi |
|
|
3971 | else |
|
|
3972 | echo "cannot find nm_test_var in $nlist" >&5 |
|
|
3973 | fi |
|
|
3974 | else |
|
|
3975 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
|
3976 | fi |
|
|
3977 | else |
|
|
3978 | echo "$progname: failed program was:" >&5 |
|
|
3979 | cat conftest.$ac_ext >&5 |
|
|
3980 | fi |
|
|
3981 | rm -f conftest* conftst* |
|
|
3982 | |
3251 | |
3983 | # Do not use the global_symbol_pipe unless it works. |
|
|
3984 | if test "$pipe_works" = yes; then |
|
|
3985 | break |
|
|
3986 | else |
|
|
3987 | lt_cv_sys_global_symbol_pipe= |
|
|
3988 | fi |
|
|
3989 | done |
|
|
3990 | |
|
|
3991 | fi |
|
|
3992 | |
|
|
3993 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
|
|
3994 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
|
3995 | global_symbol_to_cdecl= |
|
|
3996 | else |
|
|
3997 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
|
|
3998 | fi |
|
|
3999 | if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then |
|
|
4000 | echo "$as_me:$LINENO: result: failed" >&5 |
|
|
4001 | echo "${ECHO_T}failed" >&6 |
|
|
4002 | else |
|
|
4003 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
4004 | echo "${ECHO_T}ok" >&6 |
|
|
4005 | fi |
|
|
4006 | |
|
|
4007 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
4008 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
4009 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
4010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4011 | else |
|
|
4012 | cat >conftest.$ac_ext <<_ACEOF |
3252 | cat >conftest.$ac_ext <<_ACEOF |
4013 | /* confdefs.h. */ |
3253 | /* confdefs.h. */ |
4014 | _ACEOF |
3254 | _ACEOF |
4015 | cat confdefs.h >>conftest.$ac_ext |
3255 | cat confdefs.h >>conftest.$ac_ext |
4016 | cat >>conftest.$ac_ext <<_ACEOF |
3256 | cat >>conftest.$ac_ext <<_ACEOF |
4017 | /* end confdefs.h. */ |
3257 | /* end confdefs.h. */ |
4018 | #include <stdlib.h> |
3258 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
4019 | #include <stdarg.h> |
|
|
4020 | #include <string.h> |
|
|
4021 | #include <float.h> |
|
|
4022 | |
|
|
4023 | int |
3259 | int |
4024 | main () |
3260 | main () |
4025 | { |
3261 | { |
4026 | |
3262 | |
4027 | ; |
3263 | ; |
4028 | return 0; |
3264 | return 0; |
4029 | } |
3265 | } |
4030 | _ACEOF |
3266 | _ACEOF |
|
|
3267 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3269 | (eval $ac_link) 2>conftest.er1 |
|
|
3270 | ac_status=$? |
|
|
3271 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3272 | rm -f conftest.er1 |
|
|
3273 | cat conftest.err >&5 |
|
|
3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3275 | (exit $ac_status); } && |
|
|
3276 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3277 | || test ! -s conftest.err' |
|
|
3278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3279 | (eval $ac_try) 2>&5 |
|
|
3280 | ac_status=$? |
|
|
3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3282 | (exit $ac_status); }; } && |
|
|
3283 | { ac_try='test -s conftest$ac_exeext' |
|
|
3284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3285 | (eval $ac_try) 2>&5 |
|
|
3286 | ac_status=$? |
|
|
3287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3288 | (exit $ac_status); }; }; then |
|
|
3289 | |
|
|
3290 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
3291 | echo "${ECHO_T}ok" >&6 |
|
|
3292 | CXXLIB="-lsupc++" |
|
|
3293 | |
|
|
3294 | else |
|
|
3295 | echo "$as_me: failed program was:" >&5 |
|
|
3296 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3297 | |
|
|
3298 | |
|
|
3299 | echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 |
|
|
3300 | echo "${ECHO_T}no, making everything bigger and slower" >&6 |
|
|
3301 | LIBS="$save_LIBS" |
|
|
3302 | LINKER="$save_CXX" |
|
|
3303 | |
|
|
3304 | |
|
|
3305 | fi |
|
|
3306 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3307 | conftest$ac_exeext conftest.$ac_ext |
|
|
3308 | CXX="$save_CXX" |
|
|
3309 | fi |
|
|
3310 | LINKER=$LINKER |
|
|
3311 | |
|
|
3312 | |
|
|
3313 | |
|
|
3314 | if test -z "$orig_CXXFLAGS"; then |
|
|
3315 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3316 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
|
|
3317 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3318 | /* confdefs.h. */ |
|
|
3319 | _ACEOF |
|
|
3320 | cat confdefs.h >>conftest.$ac_ext |
|
|
3321 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3322 | /* end confdefs.h. */ |
|
|
3323 | |
|
|
3324 | int |
|
|
3325 | main () |
|
|
3326 | { |
|
|
3327 | |
|
|
3328 | ; |
|
|
3329 | return 0; |
|
|
3330 | } |
|
|
3331 | _ACEOF |
4031 | rm -f conftest.$ac_objext |
3332 | rm -f conftest.$ac_objext |
4032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4033 | (eval $ac_compile) 2>conftest.er1 |
3334 | (eval $ac_compile) 2>conftest.er1 |
4034 | ac_status=$? |
3335 | ac_status=$? |
4035 | grep -v '^ *+' conftest.er1 >conftest.err |
3336 | grep -v '^ *+' conftest.er1 >conftest.err |
4036 | rm -f conftest.er1 |
3337 | rm -f conftest.er1 |
4037 | cat conftest.err >&5 |
3338 | cat conftest.err >&5 |
4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4039 | (exit $ac_status); } && |
3340 | (exit $ac_status); } && |
4040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3341 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3342 | || test ! -s conftest.err' |
4041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4042 | (eval $ac_try) 2>&5 |
3344 | (eval $ac_try) 2>&5 |
4043 | ac_status=$? |
3345 | ac_status=$? |
4044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4045 | (exit $ac_status); }; } && |
3347 | (exit $ac_status); }; } && |
… | |
… | |
4047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4048 | (eval $ac_try) 2>&5 |
3350 | (eval $ac_try) 2>&5 |
4049 | ac_status=$? |
3351 | ac_status=$? |
4050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4051 | (exit $ac_status); }; }; then |
3353 | (exit $ac_status); }; }; then |
4052 | ac_cv_header_stdc=yes |
3354 | : |
4053 | else |
3355 | else |
4054 | echo "$as_me: failed program was:" >&5 |
3356 | echo "$as_me: failed program was:" >&5 |
4055 | sed 's/^/| /' conftest.$ac_ext >&5 |
3357 | sed 's/^/| /' conftest.$ac_ext >&5 |
4056 | |
3358 | |
4057 | ac_cv_header_stdc=no |
3359 | CXXFLAGS="-g -O3" |
4058 | fi |
3360 | fi |
4059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3362 | else |
|
|
3363 | CXXFLAGS="-O" |
|
|
3364 | fi |
|
|
3365 | CFLAGS="$CXXFLAGS" |
|
|
3366 | fi |
4060 | |
3367 | |
4061 | if test $ac_cv_header_stdc = yes; then |
3368 | |
4062 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
3369 | cat >>confdefs.h <<\_ACEOF |
|
|
3370 | #define _GNU_SOURCE 1 |
|
|
3371 | _ACEOF |
|
|
3372 | |
|
|
3373 | |
|
|
3374 | case $host in |
|
|
3375 | *-*-solaris* ) |
|
|
3376 | |
|
|
3377 | cat >>confdefs.h <<\_ACEOF |
|
|
3378 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3379 | _ACEOF |
|
|
3380 | |
|
|
3381 | |
|
|
3382 | cat >>confdefs.h <<\_ACEOF |
|
|
3383 | #define _XOPEN_SOURCE 2 |
|
|
3384 | _ACEOF |
|
|
3385 | |
|
|
3386 | |
|
|
3387 | cat >>confdefs.h <<\_ACEOF |
|
|
3388 | #define __EXTENSIONS__ 1 |
|
|
3389 | _ACEOF |
|
|
3390 | |
|
|
3391 | ;; |
|
|
3392 | esac |
|
|
3393 | |
|
|
3394 | |
|
|
3395 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
|
|
3396 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
|
|
3397 | if test "${ac_cv_func_setlocale+set}" = set; then |
|
|
3398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3399 | else |
4063 | cat >conftest.$ac_ext <<_ACEOF |
3400 | cat >conftest.$ac_ext <<_ACEOF |
4064 | /* confdefs.h. */ |
3401 | /* confdefs.h. */ |
4065 | _ACEOF |
3402 | _ACEOF |
4066 | cat confdefs.h >>conftest.$ac_ext |
3403 | cat confdefs.h >>conftest.$ac_ext |
4067 | cat >>conftest.$ac_ext <<_ACEOF |
3404 | cat >>conftest.$ac_ext <<_ACEOF |
4068 | /* end confdefs.h. */ |
3405 | /* end confdefs.h. */ |
4069 | #include <string.h> |
|
|
4070 | |
|
|
4071 | _ACEOF |
|
|
4072 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4073 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
4074 | : |
|
|
4075 | else |
|
|
4076 | ac_cv_header_stdc=no |
|
|
4077 | fi |
|
|
4078 | rm -f conftest* |
|
|
4079 | |
|
|
4080 | fi |
|
|
4081 | |
|
|
4082 | if test $ac_cv_header_stdc = yes; then |
|
|
4083 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
4084 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4085 | /* confdefs.h. */ |
|
|
4086 | _ACEOF |
|
|
4087 | cat confdefs.h >>conftest.$ac_ext |
|
|
4088 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4089 | /* end confdefs.h. */ |
|
|
4090 | #include <stdlib.h> |
|
|
4091 | |
|
|
4092 | _ACEOF |
|
|
4093 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4094 | $EGREP "free" >/dev/null 2>&1; then |
|
|
4095 | : |
|
|
4096 | else |
|
|
4097 | ac_cv_header_stdc=no |
|
|
4098 | fi |
|
|
4099 | rm -f conftest* |
|
|
4100 | |
|
|
4101 | fi |
|
|
4102 | |
|
|
4103 | if test $ac_cv_header_stdc = yes; then |
|
|
4104 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
4105 | if test "$cross_compiling" = yes; then |
|
|
4106 | : |
|
|
4107 | else |
|
|
4108 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4109 | /* confdefs.h. */ |
|
|
4110 | _ACEOF |
|
|
4111 | cat confdefs.h >>conftest.$ac_ext |
|
|
4112 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4113 | /* end confdefs.h. */ |
|
|
4114 | #include <ctype.h> |
|
|
4115 | #if ((' ' & 0x0FF) == 0x020) |
|
|
4116 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
4117 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
4118 | #else |
|
|
4119 | # define ISLOWER(c) \ |
|
|
4120 | (('a' <= (c) && (c) <= 'i') \ |
|
|
4121 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
4122 | || ('s' <= (c) && (c) <= 'z')) |
|
|
4123 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
4124 | #endif |
|
|
4125 | |
|
|
4126 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
4127 | int |
|
|
4128 | main () |
|
|
4129 | { |
|
|
4130 | int i; |
|
|
4131 | for (i = 0; i < 256; i++) |
|
|
4132 | if (XOR (islower (i), ISLOWER (i)) |
|
|
4133 | || toupper (i) != TOUPPER (i)) |
|
|
4134 | exit(2); |
|
|
4135 | exit (0); |
|
|
4136 | } |
|
|
4137 | _ACEOF |
|
|
4138 | rm -f conftest$ac_exeext |
|
|
4139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4140 | (eval $ac_link) 2>&5 |
|
|
4141 | ac_status=$? |
|
|
4142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4143 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4145 | (eval $ac_try) 2>&5 |
|
|
4146 | ac_status=$? |
|
|
4147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4148 | (exit $ac_status); }; }; then |
|
|
4149 | : |
|
|
4150 | else |
|
|
4151 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4152 | echo "$as_me: failed program was:" >&5 |
|
|
4153 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4154 | |
|
|
4155 | ( exit $ac_status ) |
|
|
4156 | ac_cv_header_stdc=no |
|
|
4157 | fi |
|
|
4158 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4159 | fi |
|
|
4160 | fi |
|
|
4161 | fi |
|
|
4162 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
4163 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
4164 | if test $ac_cv_header_stdc = yes; then |
|
|
4165 | |
|
|
4166 | cat >>confdefs.h <<\_ACEOF |
|
|
4167 | #define STDC_HEADERS 1 |
|
|
4168 | _ACEOF |
|
|
4169 | |
|
|
4170 | fi |
|
|
4171 | |
|
|
4172 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
4173 | |
|
|
4174 | |
|
|
4175 | |
|
|
4176 | |
|
|
4177 | |
|
|
4178 | |
|
|
4179 | |
|
|
4180 | |
|
|
4181 | |
|
|
4182 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
4183 | inttypes.h stdint.h unistd.h |
|
|
4184 | do |
|
|
4185 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4186 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4188 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4190 | else |
|
|
4191 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4192 | /* confdefs.h. */ |
|
|
4193 | _ACEOF |
|
|
4194 | cat confdefs.h >>conftest.$ac_ext |
|
|
4195 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4196 | /* end confdefs.h. */ |
|
|
4197 | $ac_includes_default |
|
|
4198 | |
|
|
4199 | #include <$ac_header> |
|
|
4200 | _ACEOF |
|
|
4201 | rm -f conftest.$ac_objext |
|
|
4202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4203 | (eval $ac_compile) 2>conftest.er1 |
|
|
4204 | ac_status=$? |
|
|
4205 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4206 | rm -f conftest.er1 |
|
|
4207 | cat conftest.err >&5 |
|
|
4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4209 | (exit $ac_status); } && |
|
|
4210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
4211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4212 | (eval $ac_try) 2>&5 |
|
|
4213 | ac_status=$? |
|
|
4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4215 | (exit $ac_status); }; } && |
|
|
4216 | { ac_try='test -s conftest.$ac_objext' |
|
|
4217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4218 | (eval $ac_try) 2>&5 |
|
|
4219 | ac_status=$? |
|
|
4220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4221 | (exit $ac_status); }; }; then |
|
|
4222 | eval "$as_ac_Header=yes" |
|
|
4223 | else |
|
|
4224 | echo "$as_me: failed program was:" >&5 |
|
|
4225 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4226 | |
|
|
4227 | eval "$as_ac_Header=no" |
|
|
4228 | fi |
|
|
4229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4230 | fi |
|
|
4231 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4232 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4233 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4234 | cat >>confdefs.h <<_ACEOF |
|
|
4235 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4236 | _ACEOF |
|
|
4237 | |
|
|
4238 | fi |
|
|
4239 | |
|
|
4240 | done |
|
|
4241 | |
|
|
4242 | |
|
|
4243 | |
|
|
4244 | for ac_header in dlfcn.h |
|
|
4245 | do |
|
|
4246 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4248 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4252 | fi |
|
|
4253 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4254 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4255 | else |
|
|
4256 | # Is the header compilable? |
|
|
4257 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
4258 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
4259 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4260 | /* confdefs.h. */ |
|
|
4261 | _ACEOF |
|
|
4262 | cat confdefs.h >>conftest.$ac_ext |
|
|
4263 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4264 | /* end confdefs.h. */ |
|
|
4265 | $ac_includes_default |
|
|
4266 | #include <$ac_header> |
|
|
4267 | _ACEOF |
|
|
4268 | rm -f conftest.$ac_objext |
|
|
4269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4270 | (eval $ac_compile) 2>conftest.er1 |
|
|
4271 | ac_status=$? |
|
|
4272 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4273 | rm -f conftest.er1 |
|
|
4274 | cat conftest.err >&5 |
|
|
4275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4276 | (exit $ac_status); } && |
|
|
4277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
4278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4279 | (eval $ac_try) 2>&5 |
|
|
4280 | ac_status=$? |
|
|
4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4282 | (exit $ac_status); }; } && |
|
|
4283 | { ac_try='test -s conftest.$ac_objext' |
|
|
4284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4285 | (eval $ac_try) 2>&5 |
|
|
4286 | ac_status=$? |
|
|
4287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4288 | (exit $ac_status); }; }; then |
|
|
4289 | ac_header_compiler=yes |
|
|
4290 | else |
|
|
4291 | echo "$as_me: failed program was:" >&5 |
|
|
4292 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4293 | |
|
|
4294 | ac_header_compiler=no |
|
|
4295 | fi |
|
|
4296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4297 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
4298 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
4299 | |
|
|
4300 | # Is the header present? |
|
|
4301 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
4302 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
4303 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4304 | /* confdefs.h. */ |
|
|
4305 | _ACEOF |
|
|
4306 | cat confdefs.h >>conftest.$ac_ext |
|
|
4307 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4308 | /* end confdefs.h. */ |
|
|
4309 | #include <$ac_header> |
|
|
4310 | _ACEOF |
|
|
4311 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4312 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4313 | ac_status=$? |
|
|
4314 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4315 | rm -f conftest.er1 |
|
|
4316 | cat conftest.err >&5 |
|
|
4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4318 | (exit $ac_status); } >/dev/null; then |
|
|
4319 | if test -s conftest.err; then |
|
|
4320 | ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
4321 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
4322 | else |
|
|
4323 | ac_cpp_err= |
|
|
4324 | fi |
|
|
4325 | else |
|
|
4326 | ac_cpp_err=yes |
|
|
4327 | fi |
|
|
4328 | if test -z "$ac_cpp_err"; then |
|
|
4329 | ac_header_preproc=yes |
|
|
4330 | else |
|
|
4331 | echo "$as_me: failed program was:" >&5 |
|
|
4332 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4333 | |
|
|
4334 | ac_header_preproc=no |
|
|
4335 | fi |
|
|
4336 | rm -f conftest.err conftest.$ac_ext |
|
|
4337 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
4338 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
4339 | |
|
|
4340 | # So? What about this header? |
|
|
4341 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
|
4342 | yes:no: ) |
|
|
4343 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
4344 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
4345 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
4346 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
4347 | ac_header_preproc=yes |
|
|
4348 | ;; |
|
|
4349 | no:yes:* ) |
|
|
4350 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
4351 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
4352 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
4353 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
4354 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
4355 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
4356 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
4357 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
4358 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
4359 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
4360 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
4361 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
4362 | ( |
|
|
4363 | cat <<\_ASBOX |
|
|
4364 | ## ------------------------------------------ ## |
|
|
4365 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
4366 | ## ------------------------------------------ ## |
|
|
4367 | _ASBOX |
|
|
4368 | ) | |
|
|
4369 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
4370 | ;; |
|
|
4371 | esac |
|
|
4372 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4374 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4376 | else |
|
|
4377 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
4378 | fi |
|
|
4379 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4380 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4381 | |
|
|
4382 | fi |
|
|
4383 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4384 | cat >>confdefs.h <<_ACEOF |
|
|
4385 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4386 | _ACEOF |
|
|
4387 | |
|
|
4388 | fi |
|
|
4389 | |
|
|
4390 | done |
|
|
4391 | |
|
|
4392 | |
|
|
4393 | |
|
|
4394 | |
|
|
4395 | |
|
|
4396 | # Only perform the check for file, if the check method requires it |
|
|
4397 | case "$deplibs_check_method" in |
|
|
4398 | file_magic*) |
|
|
4399 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
|
4400 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
|
4401 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
|
|
4402 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
4403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4404 | else |
|
|
4405 | case "$MAGIC_CMD" in |
|
|
4406 | /*) |
|
|
4407 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
4408 | ;; |
|
|
4409 | ?:/*) |
|
|
4410 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
4411 | ;; |
|
|
4412 | *) |
|
|
4413 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
4414 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
4415 | ac_dummy="/usr/bin:$PATH" |
|
|
4416 | for ac_dir in $ac_dummy; do |
|
|
4417 | test -z "$ac_dir" && ac_dir=. |
|
|
4418 | if test -f $ac_dir/${ac_tool_prefix}file; then |
|
|
4419 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
|
4420 | if test -n "$file_magic_test_file"; then |
|
|
4421 | case "$deplibs_check_method" in |
|
|
4422 | "file_magic "*) |
|
|
4423 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
4424 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4425 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
4426 | egrep "$file_magic_regex" > /dev/null; then |
|
|
4427 | : |
|
|
4428 | else |
|
|
4429 | cat <<EOF 1>&2 |
|
|
4430 | |
|
|
4431 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
4432 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
4433 | *** The result is that libtool may fail to recognize shared libraries |
|
|
4434 | *** as such. This will affect the creation of libtool libraries that |
|
|
4435 | *** depend on shared libraries, but programs linked with such libtool |
|
|
4436 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
4437 | *** may want to report the problem to your system manager and/or to |
|
|
4438 | *** bug-libtool@gnu.org |
|
|
4439 | |
|
|
4440 | EOF |
|
|
4441 | fi ;; |
|
|
4442 | esac |
|
|
4443 | fi |
|
|
4444 | break |
|
|
4445 | fi |
|
|
4446 | done |
|
|
4447 | IFS="$ac_save_ifs" |
|
|
4448 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
4449 | ;; |
|
|
4450 | esac |
|
|
4451 | fi |
|
|
4452 | |
|
|
4453 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4454 | if test -n "$MAGIC_CMD"; then |
|
|
4455 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
4456 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
4457 | else |
|
|
4458 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4459 | echo "${ECHO_T}no" >&6 |
|
|
4460 | fi |
|
|
4461 | |
|
|
4462 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
|
4463 | if test -n "$ac_tool_prefix"; then |
|
|
4464 | echo "$as_me:$LINENO: checking for file" >&5 |
|
|
4465 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
|
|
4466 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
4467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4468 | else |
|
|
4469 | case "$MAGIC_CMD" in |
|
|
4470 | /*) |
|
|
4471 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
4472 | ;; |
|
|
4473 | ?:/*) |
|
|
4474 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
4475 | ;; |
|
|
4476 | *) |
|
|
4477 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
4478 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
4479 | ac_dummy="/usr/bin:$PATH" |
|
|
4480 | for ac_dir in $ac_dummy; do |
|
|
4481 | test -z "$ac_dir" && ac_dir=. |
|
|
4482 | if test -f $ac_dir/file; then |
|
|
4483 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
|
4484 | if test -n "$file_magic_test_file"; then |
|
|
4485 | case "$deplibs_check_method" in |
|
|
4486 | "file_magic "*) |
|
|
4487 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
4488 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4489 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
4490 | egrep "$file_magic_regex" > /dev/null; then |
|
|
4491 | : |
|
|
4492 | else |
|
|
4493 | cat <<EOF 1>&2 |
|
|
4494 | |
|
|
4495 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
4496 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
4497 | *** The result is that libtool may fail to recognize shared libraries |
|
|
4498 | *** as such. This will affect the creation of libtool libraries that |
|
|
4499 | *** depend on shared libraries, but programs linked with such libtool |
|
|
4500 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
4501 | *** may want to report the problem to your system manager and/or to |
|
|
4502 | *** bug-libtool@gnu.org |
|
|
4503 | |
|
|
4504 | EOF |
|
|
4505 | fi ;; |
|
|
4506 | esac |
|
|
4507 | fi |
|
|
4508 | break |
|
|
4509 | fi |
|
|
4510 | done |
|
|
4511 | IFS="$ac_save_ifs" |
|
|
4512 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
4513 | ;; |
|
|
4514 | esac |
|
|
4515 | fi |
|
|
4516 | |
|
|
4517 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4518 | if test -n "$MAGIC_CMD"; then |
|
|
4519 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
4520 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
4521 | else |
|
|
4522 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4523 | echo "${ECHO_T}no" >&6 |
|
|
4524 | fi |
|
|
4525 | |
|
|
4526 | else |
|
|
4527 | MAGIC_CMD=: |
|
|
4528 | fi |
|
|
4529 | fi |
|
|
4530 | |
|
|
4531 | fi |
|
|
4532 | ;; |
|
|
4533 | esac |
|
|
4534 | |
|
|
4535 | if test -n "$ac_tool_prefix"; then |
|
|
4536 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
4537 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
4538 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4540 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
4541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4542 | else |
|
|
4543 | if test -n "$RANLIB"; then |
|
|
4544 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
4545 | else |
|
|
4546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4547 | for as_dir in $PATH |
|
|
4548 | do |
|
|
4549 | IFS=$as_save_IFS |
|
|
4550 | test -z "$as_dir" && as_dir=. |
|
|
4551 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4552 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4553 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
4554 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4555 | break 2 |
|
|
4556 | fi |
|
|
4557 | done |
|
|
4558 | done |
|
|
4559 | |
|
|
4560 | fi |
|
|
4561 | fi |
|
|
4562 | RANLIB=$ac_cv_prog_RANLIB |
|
|
4563 | if test -n "$RANLIB"; then |
|
|
4564 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
4565 | echo "${ECHO_T}$RANLIB" >&6 |
|
|
4566 | else |
|
|
4567 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4568 | echo "${ECHO_T}no" >&6 |
|
|
4569 | fi |
|
|
4570 | |
|
|
4571 | fi |
|
|
4572 | if test -z "$ac_cv_prog_RANLIB"; then |
|
|
4573 | ac_ct_RANLIB=$RANLIB |
|
|
4574 | # Extract the first word of "ranlib", so it can be a program name with args. |
|
|
4575 | set dummy ranlib; ac_word=$2 |
|
|
4576 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4578 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
4579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4580 | else |
|
|
4581 | if test -n "$ac_ct_RANLIB"; then |
|
|
4582 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
4583 | else |
|
|
4584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4585 | for as_dir in $PATH |
|
|
4586 | do |
|
|
4587 | IFS=$as_save_IFS |
|
|
4588 | test -z "$as_dir" && as_dir=. |
|
|
4589 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4590 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4591 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
4592 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4593 | break 2 |
|
|
4594 | fi |
|
|
4595 | done |
|
|
4596 | done |
|
|
4597 | |
|
|
4598 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
4599 | fi |
|
|
4600 | fi |
|
|
4601 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
4602 | if test -n "$ac_ct_RANLIB"; then |
|
|
4603 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
4604 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
|
4605 | else |
|
|
4606 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4607 | echo "${ECHO_T}no" >&6 |
|
|
4608 | fi |
|
|
4609 | |
|
|
4610 | RANLIB=$ac_ct_RANLIB |
|
|
4611 | else |
|
|
4612 | RANLIB="$ac_cv_prog_RANLIB" |
|
|
4613 | fi |
|
|
4614 | |
|
|
4615 | if test -n "$ac_tool_prefix"; then |
|
|
4616 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
|
4617 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
|
4618 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4620 | if test "${ac_cv_prog_STRIP+set}" = set; then |
|
|
4621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4622 | else |
|
|
4623 | if test -n "$STRIP"; then |
|
|
4624 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
|
4625 | else |
|
|
4626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4627 | for as_dir in $PATH |
|
|
4628 | do |
|
|
4629 | IFS=$as_save_IFS |
|
|
4630 | test -z "$as_dir" && as_dir=. |
|
|
4631 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4632 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4633 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
|
4634 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4635 | break 2 |
|
|
4636 | fi |
|
|
4637 | done |
|
|
4638 | done |
|
|
4639 | |
|
|
4640 | fi |
|
|
4641 | fi |
|
|
4642 | STRIP=$ac_cv_prog_STRIP |
|
|
4643 | if test -n "$STRIP"; then |
|
|
4644 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
4645 | echo "${ECHO_T}$STRIP" >&6 |
|
|
4646 | else |
|
|
4647 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4648 | echo "${ECHO_T}no" >&6 |
|
|
4649 | fi |
|
|
4650 | |
|
|
4651 | fi |
|
|
4652 | if test -z "$ac_cv_prog_STRIP"; then |
|
|
4653 | ac_ct_STRIP=$STRIP |
|
|
4654 | # Extract the first word of "strip", so it can be a program name with args. |
|
|
4655 | set dummy strip; ac_word=$2 |
|
|
4656 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4658 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
|
4659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4660 | else |
|
|
4661 | if test -n "$ac_ct_STRIP"; then |
|
|
4662 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
|
4663 | else |
|
|
4664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4665 | for as_dir in $PATH |
|
|
4666 | do |
|
|
4667 | IFS=$as_save_IFS |
|
|
4668 | test -z "$as_dir" && as_dir=. |
|
|
4669 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4670 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4671 | ac_cv_prog_ac_ct_STRIP="strip" |
|
|
4672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4673 | break 2 |
|
|
4674 | fi |
|
|
4675 | done |
|
|
4676 | done |
|
|
4677 | |
|
|
4678 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
|
4679 | fi |
|
|
4680 | fi |
|
|
4681 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
4682 | if test -n "$ac_ct_STRIP"; then |
|
|
4683 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
4684 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
4685 | else |
|
|
4686 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4687 | echo "${ECHO_T}no" >&6 |
|
|
4688 | fi |
|
|
4689 | |
|
|
4690 | STRIP=$ac_ct_STRIP |
|
|
4691 | else |
|
|
4692 | STRIP="$ac_cv_prog_STRIP" |
|
|
4693 | fi |
|
|
4694 | |
|
|
4695 | |
|
|
4696 | enable_dlopen=no |
|
|
4697 | enable_win32_dll=no |
|
|
4698 | |
|
|
4699 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
4700 | if test "${enable_libtool_lock+set}" = set; then |
|
|
4701 | enableval="$enable_libtool_lock" |
|
|
4702 | |
|
|
4703 | fi; |
|
|
4704 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
|
4705 | |
|
|
4706 | # Some flags need to be propagated to the compiler or linker for good |
|
|
4707 | # libtool support. |
|
|
4708 | case "$host" in |
|
|
4709 | *-*-irix6*) |
|
|
4710 | # Find out which ABI we are using. |
|
|
4711 | echo '#line 4711 "configure"' > conftest.$ac_ext |
|
|
4712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4713 | (eval $ac_compile) 2>&5 |
|
|
4714 | ac_status=$? |
|
|
4715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4716 | (exit $ac_status); }; then |
|
|
4717 | case "`/usr/bin/file conftest.$ac_objext`" in |
|
|
4718 | *32-bit*) |
|
|
4719 | LD="${LD-ld} -32" |
|
|
4720 | ;; |
|
|
4721 | *N32*) |
|
|
4722 | LD="${LD-ld} -n32" |
|
|
4723 | ;; |
|
|
4724 | *64-bit*) |
|
|
4725 | LD="${LD-ld} -64" |
|
|
4726 | ;; |
|
|
4727 | esac |
|
|
4728 | fi |
|
|
4729 | rm -rf conftest* |
|
|
4730 | ;; |
|
|
4731 | |
|
|
4732 | *-*-sco3.2v5*) |
|
|
4733 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
|
4734 | SAVE_CFLAGS="$CFLAGS" |
|
|
4735 | CFLAGS="$CFLAGS -belf" |
|
|
4736 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
|
4737 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
|
4738 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
|
4739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4740 | else |
|
|
4741 | |
|
|
4742 | |
|
|
4743 | ac_ext=c |
|
|
4744 | ac_cpp='$CPP $CPPFLAGS' |
|
|
4745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4748 | |
|
|
4749 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4750 | /* confdefs.h. */ |
|
|
4751 | _ACEOF |
|
|
4752 | cat confdefs.h >>conftest.$ac_ext |
|
|
4753 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4754 | /* end confdefs.h. */ |
|
|
4755 | |
|
|
4756 | int |
|
|
4757 | main () |
|
|
4758 | { |
|
|
4759 | |
|
|
4760 | ; |
|
|
4761 | return 0; |
|
|
4762 | } |
|
|
4763 | _ACEOF |
|
|
4764 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4766 | (eval $ac_link) 2>conftest.er1 |
|
|
4767 | ac_status=$? |
|
|
4768 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4769 | rm -f conftest.er1 |
|
|
4770 | cat conftest.err >&5 |
|
|
4771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4772 | (exit $ac_status); } && |
|
|
4773 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
4774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4775 | (eval $ac_try) 2>&5 |
|
|
4776 | ac_status=$? |
|
|
4777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4778 | (exit $ac_status); }; } && |
|
|
4779 | { ac_try='test -s conftest$ac_exeext' |
|
|
4780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4781 | (eval $ac_try) 2>&5 |
|
|
4782 | ac_status=$? |
|
|
4783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4784 | (exit $ac_status); }; }; then |
|
|
4785 | lt_cv_cc_needs_belf=yes |
|
|
4786 | else |
|
|
4787 | echo "$as_me: failed program was:" >&5 |
|
|
4788 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4789 | |
|
|
4790 | lt_cv_cc_needs_belf=no |
|
|
4791 | fi |
|
|
4792 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4793 | conftest$ac_exeext conftest.$ac_ext |
|
|
4794 | ac_ext=c |
|
|
4795 | ac_cpp='$CPP $CPPFLAGS' |
|
|
4796 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4797 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4798 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4799 | |
|
|
4800 | fi |
|
|
4801 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
|
4802 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
|
|
4803 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
|
4804 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
|
4805 | CFLAGS="$SAVE_CFLAGS" |
|
|
4806 | fi |
|
|
4807 | ;; |
|
|
4808 | |
|
|
4809 | |
|
|
4810 | esac |
|
|
4811 | |
|
|
4812 | # Sed substitution that helps us do robust quoting. It backslashifies |
|
|
4813 | # metacharacters that are still active within double-quoted strings. |
|
|
4814 | Xsed='sed -e s/^X//' |
|
|
4815 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
|
4816 | |
|
|
4817 | # Same as above, but do not quote variable references. |
|
|
4818 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
|
4819 | |
|
|
4820 | # Sed substitution to delay expansion of an escaped shell variable in a |
|
|
4821 | # double_quote_subst'ed string. |
|
|
4822 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
|
4823 | |
|
|
4824 | # Constants: |
|
|
4825 | rm="rm -f" |
|
|
4826 | |
|
|
4827 | # Global variables: |
|
|
4828 | default_ofile=libtool |
|
|
4829 | can_build_shared=yes |
|
|
4830 | |
|
|
4831 | # All known linkers require a `.a' archive for static linking (except M$VC, |
|
|
4832 | # which needs '.lib'). |
|
|
4833 | libext=a |
|
|
4834 | ltmain="$ac_aux_dir/ltmain.sh" |
|
|
4835 | ofile="$default_ofile" |
|
|
4836 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
|
4837 | need_locks="$enable_libtool_lock" |
|
|
4838 | |
|
|
4839 | old_CC="$CC" |
|
|
4840 | old_CFLAGS="$CFLAGS" |
|
|
4841 | |
|
|
4842 | # Set sane defaults for various variables |
|
|
4843 | test -z "$AR" && AR=ar |
|
|
4844 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
4845 | test -z "$AS" && AS=as |
|
|
4846 | test -z "$CC" && CC=cc |
|
|
4847 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
|
4848 | test -z "$LD" && LD=ld |
|
|
4849 | test -z "$LN_S" && LN_S="ln -s" |
|
|
4850 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
|
4851 | test -z "$NM" && NM=nm |
|
|
4852 | test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
4853 | test -z "$RANLIB" && RANLIB=: |
|
|
4854 | test -z "$STRIP" && STRIP=: |
|
|
4855 | test -z "$ac_objext" && ac_objext=o |
|
|
4856 | |
|
|
4857 | if test x"$host" != x"$build"; then |
|
|
4858 | ac_tool_prefix=${host_alias}- |
|
|
4859 | else |
|
|
4860 | ac_tool_prefix= |
|
|
4861 | fi |
|
|
4862 | |
|
|
4863 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
|
|
4864 | case "$host_os" in |
|
|
4865 | linux-gnu*) ;; |
|
|
4866 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
|
|
4867 | esac |
|
|
4868 | |
|
|
4869 | case "$host_os" in |
|
|
4870 | aix3*) |
|
|
4871 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
4872 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
4873 | # vanish in a puff of smoke. |
|
|
4874 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
4875 | COLLECT_NAMES= |
|
|
4876 | export COLLECT_NAMES |
|
|
4877 | fi |
|
|
4878 | ;; |
|
|
4879 | esac |
|
|
4880 | |
|
|
4881 | # Determine commands to create old-style static archives. |
|
|
4882 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
4883 | old_postinstall_cmds='chmod 644 $oldlib' |
|
|
4884 | old_postuninstall_cmds= |
|
|
4885 | |
|
|
4886 | if test -n "$RANLIB"; then |
|
|
4887 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
4888 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
4889 | fi |
|
|
4890 | |
|
|
4891 | # Allow CC to be a program name with arguments. |
|
|
4892 | set dummy $CC |
|
|
4893 | compiler="$2" |
|
|
4894 | |
|
|
4895 | ## FIXME: this should be a separate macro |
|
|
4896 | ## |
|
|
4897 | echo "$as_me:$LINENO: checking for objdir" >&5 |
|
|
4898 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
|
|
4899 | rm -f .libs 2>/dev/null |
|
|
4900 | mkdir .libs 2>/dev/null |
|
|
4901 | if test -d .libs; then |
|
|
4902 | objdir=.libs |
|
|
4903 | else |
|
|
4904 | # MS-DOS does not allow filenames that begin with a dot. |
|
|
4905 | objdir=_libs |
|
|
4906 | fi |
|
|
4907 | rmdir .libs 2>/dev/null |
|
|
4908 | echo "$as_me:$LINENO: result: $objdir" >&5 |
|
|
4909 | echo "${ECHO_T}$objdir" >&6 |
|
|
4910 | ## |
|
|
4911 | ## END FIXME |
|
|
4912 | |
|
|
4913 | |
|
|
4914 | ## FIXME: this should be a separate macro |
|
|
4915 | ## |
|
|
4916 | |
|
|
4917 | # Check whether --with-pic or --without-pic was given. |
|
|
4918 | if test "${with_pic+set}" = set; then |
|
|
4919 | withval="$with_pic" |
|
|
4920 | pic_mode="$withval" |
|
|
4921 | else |
|
|
4922 | pic_mode=default |
|
|
4923 | fi; |
|
|
4924 | test -z "$pic_mode" && pic_mode=default |
|
|
4925 | |
|
|
4926 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
|
|
4927 | # in isolation, and that seeing it set (from the cache) indicates that |
|
|
4928 | # the associated values are set (in the cache) correctly too. |
|
|
4929 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
4930 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
4931 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
|
|
4932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4933 | else |
|
|
4934 | lt_cv_prog_cc_pic= |
|
|
4935 | lt_cv_prog_cc_shlib= |
|
|
4936 | lt_cv_prog_cc_wl= |
|
|
4937 | lt_cv_prog_cc_static= |
|
|
4938 | lt_cv_prog_cc_no_builtin= |
|
|
4939 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
|
|
4940 | |
|
|
4941 | if test "$GCC" = yes; then |
|
|
4942 | lt_cv_prog_cc_wl='-Wl,' |
|
|
4943 | lt_cv_prog_cc_static='-static' |
|
|
4944 | |
|
|
4945 | case "$host_os" in |
|
|
4946 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
|
|
4947 | # PIC is the default for these OSes. |
|
|
4948 | ;; |
|
|
4949 | aix*) |
|
|
4950 | # Below there is a dirty hack to force normal static linking with -ldl |
|
|
4951 | # The problem is because libdl dynamically linked with both libc and |
|
|
4952 | # libC (AIX C++ library), which obviously doesn't included in libraries |
|
|
4953 | # list by gcc. This cause undefined symbols with -static flags. |
|
|
4954 | # This hack allows C programs to be linked with "-static -ldl", but |
|
|
4955 | # we not sure about C++ programs. |
|
|
4956 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
|
|
4957 | ;; |
|
|
4958 | cygwin* | mingw* | pw32* | os2*) |
|
|
4959 | # This hack is so that the source file can tell whether it is being |
|
|
4960 | # built for inclusion in a dll (and should export symbols for example). |
|
|
4961 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
4962 | ;; |
|
|
4963 | amigaos*) |
|
|
4964 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
4965 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
4966 | # like `-m68040'. |
|
|
4967 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
|
|
4968 | ;; |
|
|
4969 | sysv4*MP*) |
|
|
4970 | if test -d /usr/nec; then |
|
|
4971 | lt_cv_prog_cc_pic=-Kconform_pic |
|
|
4972 | fi |
|
|
4973 | ;; |
|
|
4974 | *) |
|
|
4975 | lt_cv_prog_cc_pic='-fPIC' |
|
|
4976 | ;; |
|
|
4977 | esac |
|
|
4978 | else |
|
|
4979 | # PORTME Check for PIC flags for the system compiler. |
|
|
4980 | case "$host_os" in |
|
|
4981 | aix3* | aix4*) |
|
|
4982 | # All AIX code is PIC. |
|
|
4983 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
|
|
4984 | ;; |
|
|
4985 | |
|
|
4986 | hpux9* | hpux10* | hpux11*) |
|
|
4987 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
|
|
4988 | lt_cv_prog_cc_wl='-Wl,' |
|
|
4989 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
|
|
4990 | lt_cv_prog_cc_pic='+Z' |
|
|
4991 | ;; |
|
|
4992 | |
|
|
4993 | irix5* | irix6*) |
|
|
4994 | lt_cv_prog_cc_wl='-Wl,' |
|
|
4995 | lt_cv_prog_cc_static='-non_shared' |
|
|
4996 | # PIC (with -KPIC) is the default. |
|
|
4997 | ;; |
|
|
4998 | |
|
|
4999 | cygwin* | mingw* | pw32* | os2*) |
|
|
5000 | # This hack is so that the source file can tell whether it is being |
|
|
5001 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5002 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
5003 | ;; |
|
|
5004 | |
|
|
5005 | newsos6) |
|
|
5006 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5007 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5008 | ;; |
|
|
5009 | |
|
|
5010 | osf3* | osf4* | osf5*) |
|
|
5011 | # All OSF/1 code is PIC. |
|
|
5012 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5013 | lt_cv_prog_cc_static='-non_shared' |
|
|
5014 | ;; |
|
|
5015 | |
|
|
5016 | sco3.2v5*) |
|
|
5017 | lt_cv_prog_cc_pic='-Kpic' |
|
|
5018 | lt_cv_prog_cc_static='-dn' |
|
|
5019 | lt_cv_prog_cc_shlib='-belf' |
|
|
5020 | ;; |
|
|
5021 | |
|
|
5022 | solaris*) |
|
|
5023 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5024 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5025 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5026 | ;; |
|
|
5027 | |
|
|
5028 | sunos4*) |
|
|
5029 | lt_cv_prog_cc_pic='-PIC' |
|
|
5030 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5031 | lt_cv_prog_cc_wl='-Qoption ld ' |
|
|
5032 | ;; |
|
|
5033 | |
|
|
5034 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
5035 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5036 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5037 | if test "x$host_vendor" = xsni; then |
|
|
5038 | lt_cv_prog_cc_wl='-LD' |
|
|
5039 | else |
|
|
5040 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5041 | fi |
|
|
5042 | ;; |
|
|
5043 | |
|
|
5044 | uts4*) |
|
|
5045 | lt_cv_prog_cc_pic='-pic' |
|
|
5046 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5047 | ;; |
|
|
5048 | |
|
|
5049 | sysv4*MP*) |
|
|
5050 | if test -d /usr/nec ;then |
|
|
5051 | lt_cv_prog_cc_pic='-Kconform_pic' |
|
|
5052 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5053 | fi |
|
|
5054 | ;; |
|
|
5055 | |
|
|
5056 | *) |
|
|
5057 | lt_cv_prog_cc_can_build_shared=no |
|
|
5058 | ;; |
|
|
5059 | esac |
|
|
5060 | fi |
|
|
5061 | |
|
|
5062 | fi |
|
|
5063 | |
|
|
5064 | if test -z "$lt_cv_prog_cc_pic"; then |
|
|
5065 | echo "$as_me:$LINENO: result: none" >&5 |
|
|
5066 | echo "${ECHO_T}none" >&6 |
|
|
5067 | else |
|
|
5068 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
|
|
5069 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
|
|
5070 | |
|
|
5071 | # Check to make sure the pic_flag actually works. |
|
|
5072 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
|
|
5073 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
|
|
5074 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
|
|
5075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5076 | else |
|
|
5077 | save_CFLAGS="$CFLAGS" |
|
|
5078 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
|
|
5079 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5080 | /* confdefs.h. */ |
|
|
5081 | _ACEOF |
|
|
5082 | cat confdefs.h >>conftest.$ac_ext |
|
|
5083 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5084 | /* end confdefs.h. */ |
|
|
5085 | |
|
|
5086 | int |
|
|
5087 | main () |
|
|
5088 | { |
|
|
5089 | |
|
|
5090 | ; |
|
|
5091 | return 0; |
|
|
5092 | } |
|
|
5093 | _ACEOF |
|
|
5094 | rm -f conftest.$ac_objext |
|
|
5095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5096 | (eval $ac_compile) 2>conftest.er1 |
|
|
5097 | ac_status=$? |
|
|
5098 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5099 | rm -f conftest.er1 |
|
|
5100 | cat conftest.err >&5 |
|
|
5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5102 | (exit $ac_status); } && |
|
|
5103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
5104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5105 | (eval $ac_try) 2>&5 |
|
|
5106 | ac_status=$? |
|
|
5107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5108 | (exit $ac_status); }; } && |
|
|
5109 | { ac_try='test -s conftest.$ac_objext' |
|
|
5110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5111 | (eval $ac_try) 2>&5 |
|
|
5112 | ac_status=$? |
|
|
5113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5114 | (exit $ac_status); }; }; then |
|
|
5115 | case "$host_os" in |
|
|
5116 | hpux9* | hpux10* | hpux11*) |
|
|
5117 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
|
|
5118 | # they create non-PIC objects. So, if there were any warnings, we |
|
|
5119 | # assume that PIC is not supported. |
|
|
5120 | if test -s conftest.err; then |
|
|
5121 | lt_cv_prog_cc_pic_works=no |
|
|
5122 | else |
|
|
5123 | lt_cv_prog_cc_pic_works=yes |
|
|
5124 | fi |
|
|
5125 | ;; |
|
|
5126 | *) |
|
|
5127 | lt_cv_prog_cc_pic_works=yes |
|
|
5128 | ;; |
|
|
5129 | esac |
|
|
5130 | |
|
|
5131 | else |
|
|
5132 | echo "$as_me: failed program was:" >&5 |
|
|
5133 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5134 | |
|
|
5135 | lt_cv_prog_cc_pic_works=no |
|
|
5136 | |
|
|
5137 | fi |
|
|
5138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5139 | CFLAGS="$save_CFLAGS" |
|
|
5140 | |
|
|
5141 | fi |
|
|
5142 | |
|
|
5143 | |
|
|
5144 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
|
|
5145 | lt_cv_prog_cc_pic= |
|
|
5146 | lt_cv_prog_cc_can_build_shared=no |
|
|
5147 | else |
|
|
5148 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
|
|
5149 | fi |
|
|
5150 | |
|
|
5151 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
|
|
5152 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
|
|
5153 | fi |
|
|
5154 | ## |
|
|
5155 | ## END FIXME |
|
|
5156 | |
|
|
5157 | # Check for any special shared library compilation flags. |
|
|
5158 | if test -n "$lt_cv_prog_cc_shlib"; then |
|
|
5159 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
|
|
5160 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
|
|
5161 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
|
|
5162 | else |
|
|
5163 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
|
|
5164 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
|
|
5165 | lt_cv_prog_cc_can_build_shared=no |
|
|
5166 | fi |
|
|
5167 | fi |
|
|
5168 | |
|
|
5169 | ## FIXME: this should be a separate macro |
|
|
5170 | ## |
|
|
5171 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
|
|
5172 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
|
|
5173 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
|
|
5174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5175 | else |
|
|
5176 | lt_cv_prog_cc_static_works=no |
|
|
5177 | save_LDFLAGS="$LDFLAGS" |
|
|
5178 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
|
|
5179 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5180 | /* confdefs.h. */ |
|
|
5181 | _ACEOF |
|
|
5182 | cat confdefs.h >>conftest.$ac_ext |
|
|
5183 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5184 | /* end confdefs.h. */ |
|
|
5185 | |
|
|
5186 | int |
|
|
5187 | main () |
|
|
5188 | { |
|
|
5189 | |
|
|
5190 | ; |
|
|
5191 | return 0; |
|
|
5192 | } |
|
|
5193 | _ACEOF |
|
|
5194 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5196 | (eval $ac_link) 2>conftest.er1 |
|
|
5197 | ac_status=$? |
|
|
5198 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5199 | rm -f conftest.er1 |
|
|
5200 | cat conftest.err >&5 |
|
|
5201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5202 | (exit $ac_status); } && |
|
|
5203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
5204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5205 | (eval $ac_try) 2>&5 |
|
|
5206 | ac_status=$? |
|
|
5207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5208 | (exit $ac_status); }; } && |
|
|
5209 | { ac_try='test -s conftest$ac_exeext' |
|
|
5210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5211 | (eval $ac_try) 2>&5 |
|
|
5212 | ac_status=$? |
|
|
5213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5214 | (exit $ac_status); }; }; then |
|
|
5215 | lt_cv_prog_cc_static_works=yes |
|
|
5216 | else |
|
|
5217 | echo "$as_me: failed program was:" >&5 |
|
|
5218 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5219 | |
|
|
5220 | fi |
|
|
5221 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5222 | conftest$ac_exeext conftest.$ac_ext |
|
|
5223 | LDFLAGS="$save_LDFLAGS" |
|
|
5224 | |
|
|
5225 | fi |
|
|
5226 | |
|
|
5227 | |
|
|
5228 | # Belt *and* braces to stop my trousers falling down: |
|
|
5229 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
|
|
5230 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
|
|
5231 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
|
|
5232 | |
|
|
5233 | pic_flag="$lt_cv_prog_cc_pic" |
|
|
5234 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
|
|
5235 | wl="$lt_cv_prog_cc_wl" |
|
|
5236 | link_static_flag="$lt_cv_prog_cc_static" |
|
|
5237 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
|
|
5238 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
|
|
5239 | ## |
|
|
5240 | ## END FIXME |
|
|
5241 | |
|
|
5242 | |
|
|
5243 | ## FIXME: this should be a separate macro |
|
|
5244 | ## |
|
|
5245 | # Check to see if options -o and -c are simultaneously supported by compiler |
|
|
5246 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
5247 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
5248 | $rm -r conftest 2>/dev/null |
|
|
5249 | mkdir conftest |
|
|
5250 | cd conftest |
|
|
5251 | echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
5252 | mkdir out |
|
|
5253 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
|
5254 | # that will create temporary files in the current directory regardless of |
|
|
5255 | # the output directory. Thus, making CWD read-only will cause this test |
|
|
5256 | # to fail, enabling locking or at least warning the user not to do parallel |
|
|
5257 | # builds. |
|
|
5258 | chmod -w . |
|
|
5259 | save_CFLAGS="$CFLAGS" |
|
|
5260 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
|
|
5261 | compiler_c_o=no |
|
|
5262 | if { (eval echo configure:5262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
|
|
5263 | # The compiler can only warn and ignore the option if not recognized |
|
|
5264 | # So say no if there are warnings |
|
|
5265 | if test -s out/conftest.err; then |
|
|
5266 | compiler_c_o=no |
|
|
5267 | else |
|
|
5268 | compiler_c_o=yes |
|
|
5269 | fi |
|
|
5270 | else |
|
|
5271 | # Append any errors to the config.log. |
|
|
5272 | cat out/conftest.err 1>&5 |
|
|
5273 | compiler_c_o=no |
|
|
5274 | fi |
|
|
5275 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
|
|
5276 | echo "${ECHO_T}$compiler_c_o" >&6 |
|
|
5277 | CFLAGS="$save_CFLAGS" |
|
|
5278 | chmod u+w . |
|
|
5279 | $rm conftest* out/* |
|
|
5280 | rmdir out |
|
|
5281 | cd .. |
|
|
5282 | rmdir conftest |
|
|
5283 | $rm -r conftest 2>/dev/null |
|
|
5284 | |
|
|
5285 | if test x"$compiler_c_o" = x"yes"; then |
|
|
5286 | # Check to see if we can write to a .lo |
|
|
5287 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
|
|
5288 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
|
|
5289 | compiler_o_lo=no |
|
|
5290 | save_CFLAGS="$CFLAGS" |
|
|
5291 | CFLAGS="$CFLAGS -c -o conftest.lo" |
|
|
5292 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5293 | /* confdefs.h. */ |
|
|
5294 | _ACEOF |
|
|
5295 | cat confdefs.h >>conftest.$ac_ext |
|
|
5296 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5297 | /* end confdefs.h. */ |
|
|
5298 | |
|
|
5299 | int |
|
|
5300 | main () |
|
|
5301 | { |
|
|
5302 | int some_variable = 0; |
|
|
5303 | ; |
|
|
5304 | return 0; |
|
|
5305 | } |
|
|
5306 | _ACEOF |
|
|
5307 | rm -f conftest.$ac_objext |
|
|
5308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5309 | (eval $ac_compile) 2>conftest.er1 |
|
|
5310 | ac_status=$? |
|
|
5311 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5312 | rm -f conftest.er1 |
|
|
5313 | cat conftest.err >&5 |
|
|
5314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5315 | (exit $ac_status); } && |
|
|
5316 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
5317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5318 | (eval $ac_try) 2>&5 |
|
|
5319 | ac_status=$? |
|
|
5320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5321 | (exit $ac_status); }; } && |
|
|
5322 | { ac_try='test -s conftest.$ac_objext' |
|
|
5323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5324 | (eval $ac_try) 2>&5 |
|
|
5325 | ac_status=$? |
|
|
5326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5327 | (exit $ac_status); }; }; then |
|
|
5328 | # The compiler can only warn and ignore the option if not recognized |
|
|
5329 | # So say no if there are warnings |
|
|
5330 | if test -s conftest.err; then |
|
|
5331 | compiler_o_lo=no |
|
|
5332 | else |
|
|
5333 | compiler_o_lo=yes |
|
|
5334 | fi |
|
|
5335 | |
|
|
5336 | else |
|
|
5337 | echo "$as_me: failed program was:" >&5 |
|
|
5338 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5339 | |
|
|
5340 | fi |
|
|
5341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5342 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
|
|
5343 | echo "${ECHO_T}$compiler_c_o" >&6 |
|
|
5344 | CFLAGS="$save_CFLAGS" |
|
|
5345 | else |
|
|
5346 | compiler_o_lo=no |
|
|
5347 | fi |
|
|
5348 | ## |
|
|
5349 | ## END FIXME |
|
|
5350 | |
|
|
5351 | ## FIXME: this should be a separate macro |
|
|
5352 | ## |
|
|
5353 | # Check to see if we can do hard links to lock some files if needed |
|
|
5354 | hard_links="nottested" |
|
|
5355 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
|
|
5356 | # do not overwrite the value of need_locks provided by the user |
|
|
5357 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
5358 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
5359 | hard_links=yes |
|
|
5360 | $rm conftest* |
|
|
5361 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
5362 | touch conftest.a |
|
|
5363 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
5364 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
5365 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
5366 | echo "${ECHO_T}$hard_links" >&6 |
|
|
5367 | if test "$hard_links" = no; then |
|
|
5368 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
5369 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
5370 | need_locks=warn |
|
|
5371 | fi |
|
|
5372 | else |
|
|
5373 | need_locks=no |
|
|
5374 | fi |
|
|
5375 | ## |
|
|
5376 | ## END FIXME |
|
|
5377 | |
|
|
5378 | ## FIXME: this should be a separate macro |
|
|
5379 | ## |
|
|
5380 | if test "$GCC" = yes; then |
|
|
5381 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
|
|
5382 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
|
5383 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
|
5384 | echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
5385 | save_CFLAGS="$CFLAGS" |
|
|
5386 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
|
|
5387 | compiler_rtti_exceptions=no |
|
|
5388 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5389 | /* confdefs.h. */ |
|
|
5390 | _ACEOF |
|
|
5391 | cat confdefs.h >>conftest.$ac_ext |
|
|
5392 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5393 | /* end confdefs.h. */ |
|
|
5394 | |
|
|
5395 | int |
|
|
5396 | main () |
|
|
5397 | { |
|
|
5398 | int some_variable = 0; |
|
|
5399 | ; |
|
|
5400 | return 0; |
|
|
5401 | } |
|
|
5402 | _ACEOF |
|
|
5403 | rm -f conftest.$ac_objext |
|
|
5404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5405 | (eval $ac_compile) 2>conftest.er1 |
|
|
5406 | ac_status=$? |
|
|
5407 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5408 | rm -f conftest.er1 |
|
|
5409 | cat conftest.err >&5 |
|
|
5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5411 | (exit $ac_status); } && |
|
|
5412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
5413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5414 | (eval $ac_try) 2>&5 |
|
|
5415 | ac_status=$? |
|
|
5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5417 | (exit $ac_status); }; } && |
|
|
5418 | { ac_try='test -s conftest.$ac_objext' |
|
|
5419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5420 | (eval $ac_try) 2>&5 |
|
|
5421 | ac_status=$? |
|
|
5422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5423 | (exit $ac_status); }; }; then |
|
|
5424 | # The compiler can only warn and ignore the option if not recognized |
|
|
5425 | # So say no if there are warnings |
|
|
5426 | if test -s conftest.err; then |
|
|
5427 | compiler_rtti_exceptions=no |
|
|
5428 | else |
|
|
5429 | compiler_rtti_exceptions=yes |
|
|
5430 | fi |
|
|
5431 | |
|
|
5432 | else |
|
|
5433 | echo "$as_me: failed program was:" >&5 |
|
|
5434 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5435 | |
|
|
5436 | fi |
|
|
5437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5438 | CFLAGS="$save_CFLAGS" |
|
|
5439 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
|
|
5440 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
|
|
5441 | |
|
|
5442 | if test "$compiler_rtti_exceptions" = "yes"; then |
|
|
5443 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
|
|
5444 | else |
|
|
5445 | no_builtin_flag=' -fno-builtin' |
|
|
5446 | fi |
|
|
5447 | fi |
|
|
5448 | ## |
|
|
5449 | ## END FIXME |
|
|
5450 | |
|
|
5451 | ## FIXME: this should be a separate macro |
|
|
5452 | ## |
|
|
5453 | # See if the linker supports building shared libraries. |
|
|
5454 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
|
|
5455 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
5456 | |
|
|
5457 | allow_undefined_flag= |
|
|
5458 | no_undefined_flag= |
|
|
5459 | need_lib_prefix=unknown |
|
|
5460 | need_version=unknown |
|
|
5461 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
5462 | # flags to be left without arguments |
|
|
5463 | archive_cmds= |
|
|
5464 | archive_expsym_cmds= |
|
|
5465 | old_archive_from_new_cmds= |
|
|
5466 | old_archive_from_expsyms_cmds= |
|
|
5467 | export_dynamic_flag_spec= |
|
|
5468 | whole_archive_flag_spec= |
|
|
5469 | thread_safe_flag_spec= |
|
|
5470 | hardcode_into_libs=no |
|
|
5471 | hardcode_libdir_flag_spec= |
|
|
5472 | hardcode_libdir_separator= |
|
|
5473 | hardcode_direct=no |
|
|
5474 | hardcode_minus_L=no |
|
|
5475 | hardcode_shlibpath_var=unsupported |
|
|
5476 | runpath_var= |
|
|
5477 | link_all_deplibs=unknown |
|
|
5478 | always_export_symbols=no |
|
|
5479 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
5480 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
5481 | # included in the symbol list |
|
|
5482 | include_expsyms= |
|
|
5483 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
|
|
5484 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
5485 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
5486 | # as well as any symbol that contains `d'. |
|
|
5487 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
|
5488 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
5489 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
5490 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
5491 | # rely on this symbol name, it's probably fine to never include it in |
|
|
5492 | # preloaded symbol tables. |
|
|
5493 | extract_expsyms_cmds= |
|
|
5494 | |
|
|
5495 | case "$host_os" in |
|
|
5496 | cygwin* | mingw* | pw32* ) |
|
|
5497 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
5498 | # When not using gcc, we currently assume that we are using |
|
|
5499 | # Microsoft Visual C++. |
|
|
5500 | if test "$GCC" != yes; then |
|
|
5501 | with_gnu_ld=no |
|
|
5502 | fi |
|
|
5503 | ;; |
|
|
5504 | |
|
|
5505 | esac |
|
|
5506 | |
|
|
5507 | ld_shlibs=yes |
|
|
5508 | if test "$with_gnu_ld" = yes; then |
|
|
5509 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
5510 | wlarc='${wl}' |
|
|
5511 | |
|
|
5512 | # See if GNU ld supports shared libraries. |
|
|
5513 | case "$host_os" in |
|
|
5514 | aix3* | aix4*) |
|
|
5515 | # On AIX, the GNU linker is very broken |
|
|
5516 | ld_shlibs=no |
|
|
5517 | cat <<EOF 1>&2 |
|
|
5518 | |
|
|
5519 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
5520 | *** to be unable to reliably create shared libraries on AIX. |
|
|
5521 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
5522 | *** really care for shared libraries, you may want to modify your PATH |
|
|
5523 | *** so that a non-GNU linker is found, and then restart. |
|
|
5524 | |
|
|
5525 | EOF |
|
|
5526 | ;; |
|
|
5527 | |
|
|
5528 | amigaos*) |
|
|
5529 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
5530 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
5531 | hardcode_minus_L=yes |
|
|
5532 | |
|
|
5533 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
5534 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
5535 | # to version 4, is to share data among multiple programs linked |
|
|
5536 | # with the same dynamic library. Since this doesn't match the |
|
|
5537 | # behavior of shared libraries on other platforms, we can use |
|
|
5538 | # them. |
|
|
5539 | ld_shlibs=no |
|
|
5540 | ;; |
|
|
5541 | |
|
|
5542 | beos*) |
|
|
5543 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
5544 | allow_undefined_flag=unsupported |
|
|
5545 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
5546 | # support --undefined. This deserves some investigation. FIXME |
|
|
5547 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
5548 | else |
|
|
5549 | ld_shlibs=no |
|
|
5550 | fi |
|
|
5551 | ;; |
|
|
5552 | |
|
|
5553 | cygwin* | mingw* | pw32*) |
|
|
5554 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
5555 | # no search path for DLLs. |
|
|
5556 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
5557 | allow_undefined_flag=unsupported |
|
|
5558 | always_export_symbols=yes |
|
|
5559 | |
|
|
5560 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
|
|
5561 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
|
|
5562 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
|
|
5563 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
|
|
5564 | else $CC -o impgen impgen.c ; fi)~ |
|
|
5565 | $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def' |
|
|
5566 | |
|
|
5567 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
|
|
5568 | |
|
|
5569 | # cygwin and mingw dlls have different entry points and sets of symbols |
|
|
5570 | # to exclude. |
|
|
5571 | # FIXME: what about values for MSVC? |
|
|
5572 | dll_entry=__cygwin_dll_entry@12 |
|
|
5573 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
|
|
5574 | case "$host_os" in |
|
|
5575 | mingw*) |
|
|
5576 | # mingw values |
|
|
5577 | dll_entry=_DllMainCRTStartup@12 |
|
|
5578 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
|
|
5579 | ;; |
|
|
5580 | esac |
|
|
5581 | |
|
|
5582 | # mingw and cygwin differ, and it's simplest to just exclude the union |
|
|
5583 | # of the two symbol sets. |
|
|
5584 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
|
|
5585 | |
|
|
5586 | # recent cygwin and mingw systems supply a stub DllMain which the user |
|
|
5587 | # can override, but on older systems we have to supply one (in ltdll.c) |
|
|
5588 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
|
|
5589 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
|
|
5590 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~ |
|
|
5591 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
|
|
5592 | else |
|
|
5593 | ltdll_obj= |
|
|
5594 | ltdll_cmds= |
|
|
5595 | fi |
|
|
5596 | |
|
|
5597 | # Extract the symbol export list from an `--export-all' def file, |
|
|
5598 | # then regenerate the def file from the symbol export list, so that |
|
|
5599 | # the compiled dll only exports the symbol export list. |
|
|
5600 | # Be careful not to strip the DATA tag left be newer dlltools. |
|
|
5601 | export_symbols_cmds="$ltdll_cmds"' |
|
|
5602 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
|
|
5603 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
|
|
5604 | |
|
|
5605 | # If DATA tags from a recent dlltool are present, honour them! |
|
|
5606 | archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~ |
|
|
5607 | _lt_hint=1; |
|
|
5608 | cat $export_symbols | while read symbol; do |
|
|
5609 | set dummy \$symbol; |
|
|
5610 | case \$# in |
|
|
5611 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
|
|
5612 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
|
|
5613 | esac; |
|
|
5614 | _lt_hint=`expr 1 + \$_lt_hint`; |
|
|
5615 | done~ |
|
|
5616 | '"$ltdll_cmds"' |
|
|
5617 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
|
|
5618 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
|
|
5619 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
|
|
5620 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
|
|
5621 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
|
|
5622 | ;; |
|
|
5623 | |
|
|
5624 | netbsd*) |
|
|
5625 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
5626 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
5627 | wlarc= |
|
|
5628 | else |
|
|
5629 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
5630 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
5631 | fi |
|
|
5632 | ;; |
|
|
5633 | |
|
|
5634 | solaris* | sysv5*) |
|
|
5635 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
|
|
5636 | ld_shlibs=no |
|
|
5637 | cat <<EOF 1>&2 |
|
|
5638 | |
|
|
5639 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
5640 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
5641 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
5642 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
5643 | *** your PATH or compiler configuration so that the native linker is |
|
|
5644 | *** used, and then restart. |
|
|
5645 | |
|
|
5646 | EOF |
|
|
5647 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
5648 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
5649 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
5650 | else |
|
|
5651 | ld_shlibs=no |
|
|
5652 | fi |
|
|
5653 | ;; |
|
|
5654 | |
|
|
5655 | sunos4*) |
|
|
5656 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
5657 | wlarc= |
|
|
5658 | hardcode_direct=yes |
|
|
5659 | hardcode_shlibpath_var=no |
|
|
5660 | ;; |
|
|
5661 | |
|
|
5662 | *) |
|
|
5663 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
5664 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
5665 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
5666 | else |
|
|
5667 | ld_shlibs=no |
|
|
5668 | fi |
|
|
5669 | ;; |
|
|
5670 | esac |
|
|
5671 | |
|
|
5672 | if test "$ld_shlibs" = yes; then |
|
|
5673 | runpath_var=LD_RUN_PATH |
|
|
5674 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
|
5675 | export_dynamic_flag_spec='${wl}--export-dynamic' |
|
|
5676 | case $host_os in |
|
|
5677 | cygwin* | mingw* | pw32*) |
|
|
5678 | # dlltool doesn't understand --whole-archive et. al. |
|
|
5679 | whole_archive_flag_spec= |
|
|
5680 | ;; |
|
|
5681 | *) |
|
|
5682 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
5683 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
|
|
5684 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
5685 | else |
|
|
5686 | whole_archive_flag_spec= |
|
|
5687 | fi |
|
|
5688 | ;; |
|
|
5689 | esac |
|
|
5690 | fi |
|
|
5691 | else |
|
|
5692 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
5693 | case "$host_os" in |
|
|
5694 | aix3*) |
|
|
5695 | allow_undefined_flag=unsupported |
|
|
5696 | always_export_symbols=yes |
|
|
5697 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
|
|
5698 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
5699 | # are no directories specified by -L. |
|
|
5700 | hardcode_minus_L=yes |
|
|
5701 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
|
5702 | # Neither direct hardcoding nor static linking is supported with a |
|
|
5703 | # broken collect2. |
|
|
5704 | hardcode_direct=unsupported |
|
|
5705 | fi |
|
|
5706 | ;; |
|
|
5707 | |
|
|
5708 | aix4*) |
|
|
5709 | hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib' |
|
|
5710 | hardcode_libdir_separator=':' |
|
|
5711 | if test "$GCC" = yes; then |
|
|
5712 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
5713 | if test -f "$collect2name" && \ |
|
|
5714 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
5715 | then |
|
|
5716 | # We have reworked collect2 |
|
|
5717 | hardcode_direct=yes |
|
|
5718 | else |
|
|
5719 | # We have old collect2 |
|
|
5720 | hardcode_direct=unsupported |
|
|
5721 | # It fails to find uninstalled libraries when the uninstalled |
|
|
5722 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
5723 | # to unsupported forces relinking |
|
|
5724 | hardcode_minus_L=yes |
|
|
5725 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
5726 | hardcode_libdir_separator= |
|
|
5727 | fi |
|
|
5728 | shared_flag='-shared' |
|
|
5729 | else |
|
|
5730 | shared_flag='${wl}-bM:SRE' |
|
|
5731 | hardcode_direct=yes |
|
|
5732 | fi |
|
|
5733 | allow_undefined_flag=' ${wl}-berok' |
|
|
5734 | archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}' |
|
|
5735 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}' |
|
|
5736 | case "$host_os" in aix4.[01]|aix4.[01].*) |
|
|
5737 | # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on |
|
|
5738 | always_export_symbols=yes ;; |
|
|
5739 | esac |
|
|
5740 | |
|
|
5741 | # We don't want to build shared libraries on unknown CPU types. |
|
|
5742 | case $host_cpu in |
|
|
5743 | powerpc | rs6000) ;; |
|
|
5744 | *) ld_shlibs=no ;; |
|
|
5745 | esac |
|
|
5746 | ;; |
|
|
5747 | |
|
|
5748 | amigaos*) |
|
|
5749 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
5750 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
5751 | hardcode_minus_L=yes |
|
|
5752 | # see comment about different semantics on the GNU ld section |
|
|
5753 | ld_shlibs=no |
|
|
5754 | ;; |
|
|
5755 | |
|
|
5756 | cygwin* | mingw* | pw32*) |
|
|
5757 | # When not using gcc, we currently assume that we are using |
|
|
5758 | # Microsoft Visual C++. |
|
|
5759 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
5760 | # no search path for DLLs. |
|
|
5761 | hardcode_libdir_flag_spec=' ' |
|
|
5762 | allow_undefined_flag=unsupported |
|
|
5763 | # Tell ltmain to make .lib files, not .a files. |
|
|
5764 | libext=lib |
|
|
5765 | # FIXME: Setting linknames here is a bad hack. |
|
|
5766 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
5767 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
5768 | old_archive_from_new_cmds='true' |
|
|
5769 | # FIXME: Should let the user specify the lib program. |
|
|
5770 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
5771 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
|
5772 | ;; |
|
|
5773 | |
|
|
5774 | darwin* | rhapsody*) |
|
|
5775 | allow_undefined_flag='-undefined warning' |
|
|
5776 | archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else |
|
|
5777 | echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts' |
|
|
5778 | archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
|
|
5779 | ## What we need is to hardcode the path to the library, not the search path |
|
|
5780 | #hardcode_direct=yes |
|
|
5781 | #hardcode_libdir_flag_spec='-install_name $libdir/$lib' |
|
|
5782 | hardcode_shlibpath_var=no |
|
|
5783 | whole_archive_flag_spec='-all_load' |
|
|
5784 | ;; |
|
|
5785 | |
|
|
5786 | freebsd1*) |
|
|
5787 | ld_shlibs=no |
|
|
5788 | ;; |
|
|
5789 | |
|
|
5790 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
5791 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
5792 | # does not break anything, and helps significantly (at the cost of a little |
|
|
5793 | # extra space). |
|
|
5794 | freebsd2.2*) |
|
|
5795 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
5796 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
5797 | hardcode_direct=yes |
|
|
5798 | hardcode_shlibpath_var=no |
|
|
5799 | ;; |
|
|
5800 | |
|
|
5801 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
5802 | freebsd2*) |
|
|
5803 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
5804 | hardcode_direct=yes |
|
|
5805 | hardcode_minus_L=yes |
|
|
5806 | hardcode_shlibpath_var=no |
|
|
5807 | ;; |
|
|
5808 | |
|
|
5809 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
5810 | freebsd*) |
|
|
5811 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
5812 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
5813 | hardcode_direct=yes |
|
|
5814 | hardcode_shlibpath_var=no |
|
|
5815 | ;; |
|
|
5816 | |
|
|
5817 | hpux9* | hpux10* | hpux11*) |
|
|
5818 | case "$host_os" in |
|
|
5819 | hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
|
|
5820 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
|
|
5821 | esac |
|
|
5822 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
5823 | hardcode_libdir_separator=: |
|
|
5824 | hardcode_direct=yes |
|
|
5825 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
|
|
5826 | # location of the library. |
|
|
5827 | export_dynamic_flag_spec='${wl}-E' |
|
|
5828 | ;; |
|
|
5829 | |
|
|
5830 | irix5* | irix6*) |
|
|
5831 | if test "$GCC" = yes; then |
|
|
5832 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
5833 | else |
|
|
5834 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
5835 | fi |
|
|
5836 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
5837 | hardcode_libdir_separator=: |
|
|
5838 | link_all_deplibs=yes |
|
|
5839 | ;; |
|
|
5840 | |
|
|
5841 | netbsd*) |
|
|
5842 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
5843 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
5844 | else |
|
|
5845 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
5846 | fi |
|
|
5847 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
5848 | hardcode_direct=yes |
|
|
5849 | hardcode_shlibpath_var=no |
|
|
5850 | ;; |
|
|
5851 | |
|
|
5852 | newsos6) |
|
|
5853 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
5854 | hardcode_direct=yes |
|
|
5855 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
5856 | hardcode_libdir_separator=: |
|
|
5857 | hardcode_shlibpath_var=no |
|
|
5858 | ;; |
|
|
5859 | |
|
|
5860 | openbsd*) |
|
|
5861 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
5862 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
5863 | hardcode_direct=yes |
|
|
5864 | hardcode_shlibpath_var=no |
|
|
5865 | ;; |
|
|
5866 | |
|
|
5867 | os2*) |
|
|
5868 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
5869 | hardcode_minus_L=yes |
|
|
5870 | allow_undefined_flag=unsupported |
|
|
5871 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
|
|
5872 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
5873 | ;; |
|
|
5874 | |
|
|
5875 | osf3*) |
|
|
5876 | if test "$GCC" = yes; then |
|
|
5877 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
5878 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
5879 | else |
|
|
5880 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
5881 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
5882 | fi |
|
|
5883 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
5884 | hardcode_libdir_separator=: |
|
|
5885 | ;; |
|
|
5886 | |
|
|
5887 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
5888 | if test "$GCC" = yes; then |
|
|
5889 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
5890 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
5891 | else |
|
|
5892 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
5893 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
5894 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
5895 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
|
5896 | fi |
|
|
5897 | #Both c and cxx compiler support -rpath directly |
|
|
5898 | hardcode_libdir_flag_spec='-rpath $libdir' |
|
|
5899 | hardcode_libdir_separator=: |
|
|
5900 | ;; |
|
|
5901 | |
|
|
5902 | sco3.2v5*) |
|
|
5903 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
5904 | hardcode_shlibpath_var=no |
|
|
5905 | runpath_var=LD_RUN_PATH |
|
|
5906 | hardcode_runpath_var=yes |
|
|
5907 | ;; |
|
|
5908 | |
|
|
5909 | solaris*) |
|
|
5910 | no_undefined_flag=' -z text' |
|
|
5911 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
5912 | # object files and a static libstdc++, better avoid it by now |
|
|
5913 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
5914 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
5915 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
5916 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
5917 | hardcode_shlibpath_var=no |
|
|
5918 | case "$host_os" in |
|
|
5919 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
5920 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
5921 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
|
5922 | esac |
|
|
5923 | link_all_deplibs=yes |
|
|
5924 | ;; |
|
|
5925 | |
|
|
5926 | sunos4*) |
|
|
5927 | if test "x$host_vendor" = xsequent; then |
|
|
5928 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
5929 | # files that make .init and .fini sections work. |
|
|
5930 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
5931 | else |
|
|
5932 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
5933 | fi |
|
|
5934 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
5935 | hardcode_direct=yes |
|
|
5936 | hardcode_minus_L=yes |
|
|
5937 | hardcode_shlibpath_var=no |
|
|
5938 | ;; |
|
|
5939 | |
|
|
5940 | sysv4) |
|
|
5941 | if test "x$host_vendor" = xsno; then |
|
|
5942 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
5943 | hardcode_direct=yes # is this really true??? |
|
|
5944 | else |
|
|
5945 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
5946 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
|
5947 | fi |
|
|
5948 | runpath_var='LD_RUN_PATH' |
|
|
5949 | hardcode_shlibpath_var=no |
|
|
5950 | ;; |
|
|
5951 | |
|
|
5952 | sysv4.3*) |
|
|
5953 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
5954 | hardcode_shlibpath_var=no |
|
|
5955 | export_dynamic_flag_spec='-Bexport' |
|
|
5956 | ;; |
|
|
5957 | |
|
|
5958 | sysv5*) |
|
|
5959 | no_undefined_flag=' -z text' |
|
|
5960 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
5961 | # object files and a static libstdc++, better avoid it by now |
|
|
5962 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
5963 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
5964 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
5965 | hardcode_libdir_flag_spec= |
|
|
5966 | hardcode_shlibpath_var=no |
|
|
5967 | runpath_var='LD_RUN_PATH' |
|
|
5968 | ;; |
|
|
5969 | |
|
|
5970 | uts4*) |
|
|
5971 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
5972 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
5973 | hardcode_shlibpath_var=no |
|
|
5974 | ;; |
|
|
5975 | |
|
|
5976 | dgux*) |
|
|
5977 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
5978 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
5979 | hardcode_shlibpath_var=no |
|
|
5980 | ;; |
|
|
5981 | |
|
|
5982 | sysv4*MP*) |
|
|
5983 | if test -d /usr/nec; then |
|
|
5984 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
5985 | hardcode_shlibpath_var=no |
|
|
5986 | runpath_var=LD_RUN_PATH |
|
|
5987 | hardcode_runpath_var=yes |
|
|
5988 | ld_shlibs=yes |
|
|
5989 | fi |
|
|
5990 | ;; |
|
|
5991 | |
|
|
5992 | sysv4.2uw2*) |
|
|
5993 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
5994 | hardcode_direct=yes |
|
|
5995 | hardcode_minus_L=no |
|
|
5996 | hardcode_shlibpath_var=no |
|
|
5997 | hardcode_runpath_var=yes |
|
|
5998 | runpath_var=LD_RUN_PATH |
|
|
5999 | ;; |
|
|
6000 | |
|
|
6001 | unixware7*) |
|
|
6002 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6003 | runpath_var='LD_RUN_PATH' |
|
|
6004 | hardcode_shlibpath_var=no |
|
|
6005 | ;; |
|
|
6006 | |
|
|
6007 | *) |
|
|
6008 | ld_shlibs=no |
|
|
6009 | ;; |
|
|
6010 | esac |
|
|
6011 | fi |
|
|
6012 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
|
|
6013 | echo "${ECHO_T}$ld_shlibs" >&6 |
|
|
6014 | test "$ld_shlibs" = no && can_build_shared=no |
|
|
6015 | ## |
|
|
6016 | ## END FIXME |
|
|
6017 | |
|
|
6018 | ## FIXME: this should be a separate macro |
|
|
6019 | ## |
|
|
6020 | # Check hardcoding attributes. |
|
|
6021 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
6022 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
6023 | hardcode_action= |
|
|
6024 | if test -n "$hardcode_libdir_flag_spec" || \ |
|
|
6025 | test -n "$runpath_var"; then |
|
|
6026 | |
|
|
6027 | # We can hardcode non-existant directories. |
|
|
6028 | if test "$hardcode_direct" != no && |
|
|
6029 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
6030 | # have to relink, otherwise we might link with an installed library |
|
|
6031 | # when we should be linking with a yet-to-be-installed one |
|
|
6032 | ## test "$hardcode_shlibpath_var" != no && |
|
|
6033 | test "$hardcode_minus_L" != no; then |
|
|
6034 | # Linking always hardcodes the temporary library directory. |
|
|
6035 | hardcode_action=relink |
|
|
6036 | else |
|
|
6037 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
6038 | hardcode_action=immediate |
|
|
6039 | fi |
|
|
6040 | else |
|
|
6041 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
6042 | # directories. |
|
|
6043 | hardcode_action=unsupported |
|
|
6044 | fi |
|
|
6045 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
|
6046 | echo "${ECHO_T}$hardcode_action" >&6 |
|
|
6047 | ## |
|
|
6048 | ## END FIXME |
|
|
6049 | |
|
|
6050 | ## FIXME: this should be a separate macro |
|
|
6051 | ## |
|
|
6052 | striplib= |
|
|
6053 | old_striplib= |
|
|
6054 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
6055 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
6056 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
6057 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
6058 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
6059 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
6060 | echo "${ECHO_T}yes" >&6 |
|
|
6061 | else |
|
|
6062 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
6063 | echo "${ECHO_T}no" >&6 |
|
|
6064 | fi |
|
|
6065 | ## |
|
|
6066 | ## END FIXME |
|
|
6067 | |
|
|
6068 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
6069 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
|
6070 | |
|
|
6071 | ## FIXME: this should be a separate macro |
|
|
6072 | ## |
|
|
6073 | # PORTME Fill in your ld.so characteristics |
|
|
6074 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
6075 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
6076 | library_names_spec= |
|
|
6077 | libname_spec='lib$name' |
|
|
6078 | soname_spec= |
|
|
6079 | postinstall_cmds= |
|
|
6080 | postuninstall_cmds= |
|
|
6081 | finish_cmds= |
|
|
6082 | finish_eval= |
|
|
6083 | shlibpath_var= |
|
|
6084 | shlibpath_overrides_runpath=unknown |
|
|
6085 | version_type=none |
|
|
6086 | dynamic_linker="$host_os ld.so" |
|
|
6087 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
6088 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
6089 | |
|
|
6090 | case "$host_os" in |
|
|
6091 | aix3*) |
|
|
6092 | version_type=linux |
|
|
6093 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
|
|
6094 | shlibpath_var=LIBPATH |
|
|
6095 | |
|
|
6096 | # AIX has no versioning support, so we append a major version to the name. |
|
|
6097 | soname_spec='${libname}${release}.so$major' |
|
|
6098 | ;; |
|
|
6099 | |
|
|
6100 | aix4*) |
|
|
6101 | version_type=linux |
|
|
6102 | # AIX has no versioning support, so currently we can not hardcode correct |
|
|
6103 | # soname into executable. Probably we can add versioning support to |
|
|
6104 | # collect2, so additional links can be useful in future. |
|
|
6105 | # We preserve .a as extension for shared libraries though AIX4.2 |
|
|
6106 | # and later linker supports .so |
|
|
6107 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a' |
|
|
6108 | shlibpath_var=LIBPATH |
|
|
6109 | ;; |
|
|
6110 | |
|
|
6111 | amigaos*) |
|
|
6112 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
6113 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
6114 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
|
|
6115 | ;; |
|
|
6116 | |
|
|
6117 | beos*) |
|
|
6118 | library_names_spec='${libname}.so' |
|
|
6119 | dynamic_linker="$host_os ld.so" |
|
|
6120 | shlibpath_var=LIBRARY_PATH |
|
|
6121 | ;; |
|
|
6122 | |
|
|
6123 | bsdi4*) |
|
|
6124 | version_type=linux |
|
|
6125 | need_version=no |
|
|
6126 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6127 | soname_spec='${libname}${release}.so$major' |
|
|
6128 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
6129 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6130 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
6131 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
6132 | export_dynamic_flag_spec=-rdynamic |
|
|
6133 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
6134 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
6135 | # libtool to hard-code these into programs |
|
|
6136 | ;; |
|
|
6137 | |
|
|
6138 | cygwin* | mingw* | pw32*) |
|
|
6139 | version_type=windows |
|
|
6140 | need_version=no |
|
|
6141 | need_lib_prefix=no |
|
|
6142 | if test "$GCC" = yes; then |
|
|
6143 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
|
|
6144 | else |
|
|
6145 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
|
|
6146 | fi |
|
|
6147 | dynamic_linker='Win32 ld.exe' |
|
|
6148 | # FIXME: first we should search . and the directory the executable is in |
|
|
6149 | shlibpath_var=PATH |
|
|
6150 | ;; |
|
|
6151 | |
|
|
6152 | darwin* | rhapsody*) |
|
|
6153 | need_lib_prefix=no |
|
|
6154 | need_version=no |
|
|
6155 | library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`' |
|
|
6156 | shlibpath_overrides_runpath=yes |
|
|
6157 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
6158 | postinstall_cmds='chmod +x $lib' |
|
|
6159 | ;; |
|
|
6160 | |
|
|
6161 | freebsd1*) |
|
|
6162 | dynamic_linker=no |
|
|
6163 | ;; |
|
|
6164 | |
|
|
6165 | freebsd*) |
|
|
6166 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
6167 | version_type=freebsd-$objformat |
|
|
6168 | case "$version_type" in |
|
|
6169 | freebsd-elf*) |
|
|
6170 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
6171 | need_version=no |
|
|
6172 | need_lib_prefix=no |
|
|
6173 | ;; |
|
|
6174 | freebsd-*) |
|
|
6175 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
|
|
6176 | need_version=yes |
|
|
6177 | ;; |
|
|
6178 | esac |
|
|
6179 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6180 | case "$host_os" in |
|
|
6181 | freebsd2*) |
|
|
6182 | shlibpath_overrides_runpath=yes |
|
|
6183 | ;; |
|
|
6184 | *) |
|
|
6185 | shlibpath_overrides_runpath=no |
|
|
6186 | hardcode_into_libs=yes |
|
|
6187 | ;; |
|
|
6188 | esac |
|
|
6189 | ;; |
|
|
6190 | |
|
|
6191 | gnu*) |
|
|
6192 | version_type=linux |
|
|
6193 | need_lib_prefix=no |
|
|
6194 | need_version=no |
|
|
6195 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
|
|
6196 | soname_spec='${libname}${release}.so$major' |
|
|
6197 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6198 | hardcode_into_libs=yes |
|
|
6199 | ;; |
|
|
6200 | |
|
|
6201 | hpux9* | hpux10* | hpux11*) |
|
|
6202 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
6203 | # link against other versions. |
|
|
6204 | dynamic_linker="$host_os dld.sl" |
|
|
6205 | version_type=sunos |
|
|
6206 | need_lib_prefix=no |
|
|
6207 | need_version=no |
|
|
6208 | shlibpath_var=SHLIB_PATH |
|
|
6209 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
6210 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
|
|
6211 | soname_spec='${libname}${release}.sl$major' |
|
|
6212 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
6213 | postinstall_cmds='chmod 555 $lib' |
|
|
6214 | ;; |
|
|
6215 | |
|
|
6216 | irix5* | irix6*) |
|
|
6217 | version_type=irix |
|
|
6218 | need_lib_prefix=no |
|
|
6219 | need_version=no |
|
|
6220 | soname_spec='${libname}${release}.so$major' |
|
|
6221 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
|
|
6222 | case "$host_os" in |
|
|
6223 | irix5*) |
|
|
6224 | libsuff= shlibsuff= |
|
|
6225 | ;; |
|
|
6226 | *) |
|
|
6227 | case "$LD" in # libtool.m4 will add one of these switches to LD |
|
|
6228 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
|
|
6229 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
6230 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
6231 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
6232 | esac |
|
|
6233 | ;; |
|
|
6234 | esac |
|
|
6235 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
6236 | shlibpath_overrides_runpath=no |
|
|
6237 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
6238 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
6239 | ;; |
|
|
6240 | |
|
|
6241 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
6242 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
|
|
6243 | dynamic_linker=no |
|
|
6244 | ;; |
|
|
6245 | |
|
|
6246 | # This must be Linux ELF. |
|
|
6247 | linux-gnu*) |
|
|
6248 | version_type=linux |
|
|
6249 | need_lib_prefix=no |
|
|
6250 | need_version=no |
|
|
6251 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6252 | soname_spec='${libname}${release}.so$major' |
|
|
6253 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
6254 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6255 | shlibpath_overrides_runpath=no |
|
|
6256 | # This implies no fast_install, which is unacceptable. |
|
|
6257 | # Some rework will be needed to allow for fast_install |
|
|
6258 | # before this can be enabled. |
|
|
6259 | hardcode_into_libs=yes |
|
|
6260 | |
|
|
6261 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
6262 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
6263 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
6264 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
6265 | # people can always --disable-shared, the test was removed, and we |
|
|
6266 | # assume the GNU/Linux dynamic linker is in use. |
|
|
6267 | dynamic_linker='GNU/Linux ld.so' |
|
|
6268 | ;; |
|
|
6269 | |
|
|
6270 | netbsd*) |
|
|
6271 | version_type=sunos |
|
|
6272 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6273 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6274 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
6275 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
6276 | else |
|
|
6277 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
|
|
6278 | soname_spec='${libname}${release}.so$major' |
|
|
6279 | dynamic_linker='NetBSD ld.elf_so' |
|
|
6280 | fi |
|
|
6281 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6282 | shlibpath_overrides_runpath=yes |
|
|
6283 | hardcode_into_libs=yes |
|
|
6284 | ;; |
|
|
6285 | |
|
|
6286 | newsos6) |
|
|
6287 | version_type=linux |
|
|
6288 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6289 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6290 | shlibpath_overrides_runpath=yes |
|
|
6291 | ;; |
|
|
6292 | |
|
|
6293 | openbsd*) |
|
|
6294 | version_type=sunos |
|
|
6295 | if test "$with_gnu_ld" = yes; then |
|
|
6296 | need_lib_prefix=no |
|
|
6297 | need_version=no |
|
|
6298 | fi |
|
|
6299 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6300 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
6301 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6302 | ;; |
|
|
6303 | |
|
|
6304 | os2*) |
|
|
6305 | libname_spec='$name' |
|
|
6306 | need_lib_prefix=no |
|
|
6307 | library_names_spec='$libname.dll $libname.a' |
|
|
6308 | dynamic_linker='OS/2 ld.exe' |
|
|
6309 | shlibpath_var=LIBPATH |
|
|
6310 | ;; |
|
|
6311 | |
|
|
6312 | osf3* | osf4* | osf5*) |
|
|
6313 | version_type=osf |
|
|
6314 | need_version=no |
|
|
6315 | soname_spec='${libname}${release}.so' |
|
|
6316 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
6317 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6318 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
6319 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
6320 | ;; |
|
|
6321 | |
|
|
6322 | sco3.2v5*) |
|
|
6323 | version_type=osf |
|
|
6324 | soname_spec='${libname}${release}.so$major' |
|
|
6325 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6326 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6327 | ;; |
|
|
6328 | |
|
|
6329 | solaris*) |
|
|
6330 | version_type=linux |
|
|
6331 | need_lib_prefix=no |
|
|
6332 | need_version=no |
|
|
6333 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6334 | soname_spec='${libname}${release}.so$major' |
|
|
6335 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6336 | shlibpath_overrides_runpath=yes |
|
|
6337 | hardcode_into_libs=yes |
|
|
6338 | # ldd complains unless libraries are executable |
|
|
6339 | postinstall_cmds='chmod +x $lib' |
|
|
6340 | ;; |
|
|
6341 | |
|
|
6342 | sunos4*) |
|
|
6343 | version_type=sunos |
|
|
6344 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6345 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
6346 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6347 | shlibpath_overrides_runpath=yes |
|
|
6348 | if test "$with_gnu_ld" = yes; then |
|
|
6349 | need_lib_prefix=no |
|
|
6350 | fi |
|
|
6351 | need_version=yes |
|
|
6352 | ;; |
|
|
6353 | |
|
|
6354 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
6355 | version_type=linux |
|
|
6356 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6357 | soname_spec='${libname}${release}.so$major' |
|
|
6358 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6359 | case "$host_vendor" in |
|
|
6360 | sni) |
|
|
6361 | shlibpath_overrides_runpath=no |
|
|
6362 | ;; |
|
|
6363 | motorola) |
|
|
6364 | need_lib_prefix=no |
|
|
6365 | need_version=no |
|
|
6366 | shlibpath_overrides_runpath=no |
|
|
6367 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
6368 | ;; |
|
|
6369 | esac |
|
|
6370 | ;; |
|
|
6371 | |
|
|
6372 | uts4*) |
|
|
6373 | version_type=linux |
|
|
6374 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6375 | soname_spec='${libname}${release}.so$major' |
|
|
6376 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6377 | ;; |
|
|
6378 | |
|
|
6379 | dgux*) |
|
|
6380 | version_type=linux |
|
|
6381 | need_lib_prefix=no |
|
|
6382 | need_version=no |
|
|
6383 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6384 | soname_spec='${libname}${release}.so$major' |
|
|
6385 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6386 | ;; |
|
|
6387 | |
|
|
6388 | sysv4*MP*) |
|
|
6389 | if test -d /usr/nec ;then |
|
|
6390 | version_type=linux |
|
|
6391 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
|
|
6392 | soname_spec='$libname.so.$major' |
|
|
6393 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6394 | fi |
|
|
6395 | ;; |
|
|
6396 | |
|
|
6397 | *) |
|
|
6398 | dynamic_linker=no |
|
|
6399 | ;; |
|
|
6400 | esac |
|
|
6401 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
6402 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
6403 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
6404 | ## |
|
|
6405 | ## END FIXME |
|
|
6406 | |
|
|
6407 | ## FIXME: this should be a separate macro |
|
|
6408 | ## |
|
|
6409 | # Report the final consequences. |
|
|
6410 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
|
6411 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
|
6412 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
6413 | echo "${ECHO_T}$can_build_shared" >&6 |
|
|
6414 | ## |
|
|
6415 | ## END FIXME |
|
|
6416 | |
|
|
6417 | if test "$hardcode_action" = relink; then |
|
|
6418 | # Fast installation is not supported |
|
|
6419 | enable_fast_install=no |
|
|
6420 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
6421 | test "$enable_shared" = no; then |
|
|
6422 | # Fast installation is not necessary |
|
|
6423 | enable_fast_install=needless |
|
|
6424 | fi |
|
|
6425 | |
|
|
6426 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
6427 | if test "$GCC" = yes; then |
|
|
6428 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
6429 | fi |
|
|
6430 | |
|
|
6431 | if test "x$enable_dlopen" != xyes; then |
|
|
6432 | enable_dlopen=unknown |
|
|
6433 | enable_dlopen_self=unknown |
|
|
6434 | enable_dlopen_self_static=unknown |
|
|
6435 | else |
|
|
6436 | lt_cv_dlopen=no |
|
|
6437 | lt_cv_dlopen_libs= |
|
|
6438 | |
|
|
6439 | case "$host_os" in |
|
|
6440 | beos*) |
|
|
6441 | lt_cv_dlopen="load_add_on" |
|
|
6442 | lt_cv_dlopen_libs= |
|
|
6443 | lt_cv_dlopen_self=yes |
|
|
6444 | ;; |
|
|
6445 | |
|
|
6446 | cygwin* | mingw* | pw32*) |
|
|
6447 | lt_cv_dlopen="LoadLibrary" |
|
|
6448 | lt_cv_dlopen_libs= |
|
|
6449 | ;; |
|
|
6450 | |
|
|
6451 | *) |
|
|
6452 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
6453 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
6454 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
6455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6456 | else |
|
|
6457 | ac_check_lib_save_LIBS=$LIBS |
|
|
6458 | LIBS="-ldl $LIBS" |
|
|
6459 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6460 | /* confdefs.h. */ |
|
|
6461 | _ACEOF |
|
|
6462 | cat confdefs.h >>conftest.$ac_ext |
|
|
6463 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6464 | /* end confdefs.h. */ |
|
|
6465 | |
|
|
6466 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6467 | #ifdef __cplusplus |
|
|
6468 | extern "C" |
|
|
6469 | #endif |
|
|
6470 | /* We use char because int might match the return type of a gcc2 |
|
|
6471 | builtin and then its argument prototype would still apply. */ |
|
|
6472 | char dlopen (); |
|
|
6473 | int |
|
|
6474 | main () |
|
|
6475 | { |
|
|
6476 | dlopen (); |
|
|
6477 | ; |
|
|
6478 | return 0; |
|
|
6479 | } |
|
|
6480 | _ACEOF |
|
|
6481 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6483 | (eval $ac_link) 2>conftest.er1 |
|
|
6484 | ac_status=$? |
|
|
6485 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6486 | rm -f conftest.er1 |
|
|
6487 | cat conftest.err >&5 |
|
|
6488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6489 | (exit $ac_status); } && |
|
|
6490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
6491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6492 | (eval $ac_try) 2>&5 |
|
|
6493 | ac_status=$? |
|
|
6494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6495 | (exit $ac_status); }; } && |
|
|
6496 | { ac_try='test -s conftest$ac_exeext' |
|
|
6497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6498 | (eval $ac_try) 2>&5 |
|
|
6499 | ac_status=$? |
|
|
6500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6501 | (exit $ac_status); }; }; then |
|
|
6502 | ac_cv_lib_dl_dlopen=yes |
|
|
6503 | else |
|
|
6504 | echo "$as_me: failed program was:" >&5 |
|
|
6505 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6506 | |
|
|
6507 | ac_cv_lib_dl_dlopen=no |
|
|
6508 | fi |
|
|
6509 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6510 | conftest$ac_exeext conftest.$ac_ext |
|
|
6511 | LIBS=$ac_check_lib_save_LIBS |
|
|
6512 | fi |
|
|
6513 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
6514 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
6515 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
6516 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
6517 | else |
|
|
6518 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
6519 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
|
6520 | if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
6521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6522 | else |
|
|
6523 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6524 | /* confdefs.h. */ |
|
|
6525 | _ACEOF |
|
|
6526 | cat confdefs.h >>conftest.$ac_ext |
|
|
6527 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6528 | /* end confdefs.h. */ |
|
|
6529 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
3406 | /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale. |
6530 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
3407 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
6531 | #define dlopen innocuous_dlopen |
3408 | #define setlocale innocuous_setlocale |
6532 | |
3409 | |
6533 | /* System header to define __stub macros and hopefully few prototypes, |
3410 | /* System header to define __stub macros and hopefully few prototypes, |
6534 | which can conflict with char dlopen (); below. |
3411 | which can conflict with char setlocale (); below. |
6535 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3412 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6536 | <limits.h> exists even on freestanding compilers. */ |
3413 | <limits.h> exists even on freestanding compilers. */ |
6537 | |
3414 | |
6538 | #ifdef __STDC__ |
3415 | #ifdef __STDC__ |
6539 | # include <limits.h> |
3416 | # include <limits.h> |
6540 | #else |
3417 | #else |
6541 | # include <assert.h> |
3418 | # include <assert.h> |
6542 | #endif |
3419 | #endif |
6543 | |
3420 | |
6544 | #undef dlopen |
3421 | #undef setlocale |
6545 | |
3422 | |
6546 | /* Override any gcc2 internal prototype to avoid an error. */ |
3423 | /* Override any gcc2 internal prototype to avoid an error. */ |
6547 | #ifdef __cplusplus |
3424 | #ifdef __cplusplus |
6548 | extern "C" |
3425 | extern "C" |
6549 | { |
3426 | { |
6550 | #endif |
3427 | #endif |
6551 | /* We use char because int might match the return type of a gcc2 |
3428 | /* We use char because int might match the return type of a gcc2 |
6552 | builtin and then its argument prototype would still apply. */ |
3429 | builtin and then its argument prototype would still apply. */ |
6553 | char dlopen (); |
3430 | char setlocale (); |
6554 | /* The GNU C library defines this for functions which it implements |
3431 | /* The GNU C library defines this for functions which it implements |
6555 | to always fail with ENOSYS. Some functions are actually named |
3432 | to always fail with ENOSYS. Some functions are actually named |
6556 | something starting with __ and the normal name is an alias. */ |
3433 | something starting with __ and the normal name is an alias. */ |
6557 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
3434 | #if defined (__stub_setlocale) || defined (__stub___setlocale) |
6558 | choke me |
3435 | choke me |
6559 | #else |
3436 | #else |
6560 | char (*f) () = dlopen; |
3437 | char (*f) () = setlocale; |
6561 | #endif |
3438 | #endif |
6562 | #ifdef __cplusplus |
3439 | #ifdef __cplusplus |
6563 | } |
3440 | } |
6564 | #endif |
3441 | #endif |
6565 | |
3442 | |
6566 | int |
3443 | int |
6567 | main () |
3444 | main () |
6568 | { |
3445 | { |
6569 | return f != dlopen; |
3446 | return f != setlocale; |
6570 | ; |
3447 | ; |
6571 | return 0; |
3448 | return 0; |
6572 | } |
3449 | } |
6573 | _ACEOF |
3450 | _ACEOF |
6574 | rm -f conftest.$ac_objext conftest$ac_exeext |
3451 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
6578 | grep -v '^ *+' conftest.er1 >conftest.err |
3455 | grep -v '^ *+' conftest.er1 >conftest.err |
6579 | rm -f conftest.er1 |
3456 | rm -f conftest.er1 |
6580 | cat conftest.err >&5 |
3457 | cat conftest.err >&5 |
6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6582 | (exit $ac_status); } && |
3459 | (exit $ac_status); } && |
6583 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3460 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3461 | || test ! -s conftest.err' |
6584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6585 | (eval $ac_try) 2>&5 |
3463 | (eval $ac_try) 2>&5 |
6586 | ac_status=$? |
3464 | ac_status=$? |
6587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6588 | (exit $ac_status); }; } && |
3466 | (exit $ac_status); }; } && |
… | |
… | |
6590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6591 | (eval $ac_try) 2>&5 |
3469 | (eval $ac_try) 2>&5 |
6592 | ac_status=$? |
3470 | ac_status=$? |
6593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6594 | (exit $ac_status); }; }; then |
3472 | (exit $ac_status); }; }; then |
6595 | ac_cv_func_dlopen=yes |
3473 | ac_cv_func_setlocale=yes |
6596 | else |
3474 | else |
6597 | echo "$as_me: failed program was:" >&5 |
3475 | echo "$as_me: failed program was:" >&5 |
6598 | sed 's/^/| /' conftest.$ac_ext >&5 |
3476 | sed 's/^/| /' conftest.$ac_ext >&5 |
6599 | |
3477 | |
6600 | ac_cv_func_dlopen=no |
3478 | ac_cv_func_setlocale=no |
6601 | fi |
3479 | fi |
6602 | rm -f conftest.err conftest.$ac_objext \ |
3480 | rm -f conftest.err conftest.$ac_objext \ |
6603 | conftest$ac_exeext conftest.$ac_ext |
3481 | conftest$ac_exeext conftest.$ac_ext |
6604 | fi |
3482 | fi |
6605 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
3483 | echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 |
6606 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
3484 | echo "${ECHO_T}$ac_cv_func_setlocale" >&6 |
6607 | if test $ac_cv_func_dlopen = yes; then |
3485 | if test $ac_cv_func_setlocale = yes; then |
6608 | lt_cv_dlopen="dlopen" |
3486 | : |
6609 | else |
3487 | else |
6610 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
3488 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
6611 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
3489 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
6612 | if test "${ac_cv_func_shl_load+set}" = set; then |
3490 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
6613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6614 | else |
3492 | else |
|
|
3493 | ac_check_lib_save_LIBS=$LIBS |
|
|
3494 | LIBS="-lxpg4 $LIBS" |
6615 | cat >conftest.$ac_ext <<_ACEOF |
3495 | cat >conftest.$ac_ext <<_ACEOF |
6616 | /* confdefs.h. */ |
3496 | /* confdefs.h. */ |
6617 | _ACEOF |
3497 | _ACEOF |
6618 | cat confdefs.h >>conftest.$ac_ext |
3498 | cat confdefs.h >>conftest.$ac_ext |
6619 | cat >>conftest.$ac_ext <<_ACEOF |
3499 | cat >>conftest.$ac_ext <<_ACEOF |
6620 | /* end confdefs.h. */ |
3500 | /* end confdefs.h. */ |
|
|
3501 | |
|
|
3502 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3503 | #ifdef __cplusplus |
|
|
3504 | extern "C" |
|
|
3505 | #endif |
|
|
3506 | /* We use char because int might match the return type of a gcc2 |
|
|
3507 | builtin and then its argument prototype would still apply. */ |
|
|
3508 | char setlocale (); |
|
|
3509 | int |
|
|
3510 | main () |
|
|
3511 | { |
|
|
3512 | setlocale (); |
|
|
3513 | ; |
|
|
3514 | return 0; |
|
|
3515 | } |
|
|
3516 | _ACEOF |
|
|
3517 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3519 | (eval $ac_link) 2>conftest.er1 |
|
|
3520 | ac_status=$? |
|
|
3521 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3522 | rm -f conftest.er1 |
|
|
3523 | cat conftest.err >&5 |
|
|
3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3525 | (exit $ac_status); } && |
|
|
3526 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3527 | || test ! -s conftest.err' |
|
|
3528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3529 | (eval $ac_try) 2>&5 |
|
|
3530 | ac_status=$? |
|
|
3531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3532 | (exit $ac_status); }; } && |
|
|
3533 | { ac_try='test -s conftest$ac_exeext' |
|
|
3534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3535 | (eval $ac_try) 2>&5 |
|
|
3536 | ac_status=$? |
|
|
3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3538 | (exit $ac_status); }; }; then |
|
|
3539 | ac_cv_lib_xpg4_setlocale=yes |
|
|
3540 | else |
|
|
3541 | echo "$as_me: failed program was:" >&5 |
|
|
3542 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3543 | |
|
|
3544 | ac_cv_lib_xpg4_setlocale=no |
|
|
3545 | fi |
|
|
3546 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3547 | conftest$ac_exeext conftest.$ac_ext |
|
|
3548 | LIBS=$ac_check_lib_save_LIBS |
|
|
3549 | fi |
|
|
3550 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 |
|
|
3551 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
|
|
3552 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
|
|
3553 | LIBS="$LIBS -lxpg4" |
|
|
3554 | fi |
|
|
3555 | |
|
|
3556 | fi |
|
|
3557 | |
|
|
3558 | |
|
|
3559 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
3560 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
|
|
3561 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
3562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3563 | else |
|
|
3564 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3565 | /* confdefs.h. */ |
|
|
3566 | _ACEOF |
|
|
3567 | cat confdefs.h >>conftest.$ac_ext |
|
|
3568 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3569 | /* end confdefs.h. */ |
6621 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
3570 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
6622 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
3571 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
6623 | #define shl_load innocuous_shl_load |
3572 | #define gethostbyname innocuous_gethostbyname |
6624 | |
3573 | |
6625 | /* System header to define __stub macros and hopefully few prototypes, |
3574 | /* System header to define __stub macros and hopefully few prototypes, |
6626 | which can conflict with char shl_load (); below. |
3575 | which can conflict with char gethostbyname (); below. |
6627 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3576 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6628 | <limits.h> exists even on freestanding compilers. */ |
3577 | <limits.h> exists even on freestanding compilers. */ |
6629 | |
3578 | |
6630 | #ifdef __STDC__ |
3579 | #ifdef __STDC__ |
6631 | # include <limits.h> |
3580 | # include <limits.h> |
6632 | #else |
3581 | #else |
6633 | # include <assert.h> |
3582 | # include <assert.h> |
6634 | #endif |
3583 | #endif |
6635 | |
3584 | |
6636 | #undef shl_load |
3585 | #undef gethostbyname |
6637 | |
3586 | |
6638 | /* Override any gcc2 internal prototype to avoid an error. */ |
3587 | /* Override any gcc2 internal prototype to avoid an error. */ |
6639 | #ifdef __cplusplus |
3588 | #ifdef __cplusplus |
6640 | extern "C" |
3589 | extern "C" |
6641 | { |
3590 | { |
6642 | #endif |
3591 | #endif |
6643 | /* We use char because int might match the return type of a gcc2 |
3592 | /* We use char because int might match the return type of a gcc2 |
6644 | builtin and then its argument prototype would still apply. */ |
3593 | builtin and then its argument prototype would still apply. */ |
6645 | char shl_load (); |
3594 | char gethostbyname (); |
6646 | /* The GNU C library defines this for functions which it implements |
3595 | /* The GNU C library defines this for functions which it implements |
6647 | to always fail with ENOSYS. Some functions are actually named |
3596 | to always fail with ENOSYS. Some functions are actually named |
6648 | something starting with __ and the normal name is an alias. */ |
3597 | something starting with __ and the normal name is an alias. */ |
6649 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
3598 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
6650 | choke me |
3599 | choke me |
6651 | #else |
3600 | #else |
6652 | char (*f) () = shl_load; |
3601 | char (*f) () = gethostbyname; |
6653 | #endif |
3602 | #endif |
6654 | #ifdef __cplusplus |
3603 | #ifdef __cplusplus |
6655 | } |
3604 | } |
6656 | #endif |
3605 | #endif |
6657 | |
3606 | |
6658 | int |
3607 | int |
6659 | main () |
3608 | main () |
6660 | { |
3609 | { |
6661 | return f != shl_load; |
3610 | return f != gethostbyname; |
6662 | ; |
3611 | ; |
6663 | return 0; |
3612 | return 0; |
6664 | } |
3613 | } |
6665 | _ACEOF |
3614 | _ACEOF |
6666 | rm -f conftest.$ac_objext conftest$ac_exeext |
3615 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
6670 | grep -v '^ *+' conftest.er1 >conftest.err |
3619 | grep -v '^ *+' conftest.er1 >conftest.err |
6671 | rm -f conftest.er1 |
3620 | rm -f conftest.er1 |
6672 | cat conftest.err >&5 |
3621 | cat conftest.err >&5 |
6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6674 | (exit $ac_status); } && |
3623 | (exit $ac_status); } && |
6675 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3624 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3625 | || test ! -s conftest.err' |
6676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6677 | (eval $ac_try) 2>&5 |
3627 | (eval $ac_try) 2>&5 |
6678 | ac_status=$? |
3628 | ac_status=$? |
6679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6680 | (exit $ac_status); }; } && |
3630 | (exit $ac_status); }; } && |
… | |
… | |
6682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6683 | (eval $ac_try) 2>&5 |
3633 | (eval $ac_try) 2>&5 |
6684 | ac_status=$? |
3634 | ac_status=$? |
6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6686 | (exit $ac_status); }; }; then |
3636 | (exit $ac_status); }; }; then |
6687 | ac_cv_func_shl_load=yes |
3637 | ac_cv_func_gethostbyname=yes |
6688 | else |
3638 | else |
6689 | echo "$as_me: failed program was:" >&5 |
3639 | echo "$as_me: failed program was:" >&5 |
6690 | sed 's/^/| /' conftest.$ac_ext >&5 |
3640 | sed 's/^/| /' conftest.$ac_ext >&5 |
6691 | |
3641 | |
6692 | ac_cv_func_shl_load=no |
3642 | ac_cv_func_gethostbyname=no |
6693 | fi |
3643 | fi |
6694 | rm -f conftest.err conftest.$ac_objext \ |
3644 | rm -f conftest.err conftest.$ac_objext \ |
6695 | conftest$ac_exeext conftest.$ac_ext |
3645 | conftest$ac_exeext conftest.$ac_ext |
6696 | fi |
3646 | fi |
6697 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
3647 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
6698 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
3648 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
6699 | if test $ac_cv_func_shl_load = yes; then |
3649 | if test $ac_cv_func_gethostbyname = yes; then |
6700 | lt_cv_dlopen="shl_load" |
3650 | : |
6701 | else |
3651 | else |
6702 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
3652 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
6703 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
3653 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
6704 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
3654 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
6705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6706 | else |
3656 | else |
6707 | ac_check_lib_save_LIBS=$LIBS |
3657 | ac_check_lib_save_LIBS=$LIBS |
6708 | LIBS="-lsvld $LIBS" |
3658 | LIBS="-lnsl $LIBS" |
6709 | cat >conftest.$ac_ext <<_ACEOF |
3659 | cat >conftest.$ac_ext <<_ACEOF |
6710 | /* confdefs.h. */ |
3660 | /* confdefs.h. */ |
6711 | _ACEOF |
3661 | _ACEOF |
6712 | cat confdefs.h >>conftest.$ac_ext |
3662 | cat confdefs.h >>conftest.$ac_ext |
6713 | cat >>conftest.$ac_ext <<_ACEOF |
3663 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
6717 | #ifdef __cplusplus |
3667 | #ifdef __cplusplus |
6718 | extern "C" |
3668 | extern "C" |
6719 | #endif |
3669 | #endif |
6720 | /* We use char because int might match the return type of a gcc2 |
3670 | /* We use char because int might match the return type of a gcc2 |
6721 | builtin and then its argument prototype would still apply. */ |
3671 | builtin and then its argument prototype would still apply. */ |
6722 | char dlopen (); |
3672 | char gethostbyname (); |
6723 | int |
3673 | int |
6724 | main () |
3674 | main () |
6725 | { |
3675 | { |
6726 | dlopen (); |
3676 | gethostbyname (); |
6727 | ; |
3677 | ; |
6728 | return 0; |
3678 | return 0; |
6729 | } |
3679 | } |
6730 | _ACEOF |
3680 | _ACEOF |
6731 | rm -f conftest.$ac_objext conftest$ac_exeext |
3681 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
6735 | grep -v '^ *+' conftest.er1 >conftest.err |
3685 | grep -v '^ *+' conftest.er1 >conftest.err |
6736 | rm -f conftest.er1 |
3686 | rm -f conftest.er1 |
6737 | cat conftest.err >&5 |
3687 | cat conftest.err >&5 |
6738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6739 | (exit $ac_status); } && |
3689 | (exit $ac_status); } && |
6740 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3690 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3691 | || test ! -s conftest.err' |
6741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6742 | (eval $ac_try) 2>&5 |
3693 | (eval $ac_try) 2>&5 |
6743 | ac_status=$? |
3694 | ac_status=$? |
6744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6745 | (exit $ac_status); }; } && |
3696 | (exit $ac_status); }; } && |
… | |
… | |
6747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6748 | (eval $ac_try) 2>&5 |
3699 | (eval $ac_try) 2>&5 |
6749 | ac_status=$? |
3700 | ac_status=$? |
6750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6751 | (exit $ac_status); }; }; then |
3702 | (exit $ac_status); }; }; then |
6752 | ac_cv_lib_svld_dlopen=yes |
3703 | ac_cv_lib_nsl_gethostbyname=yes |
6753 | else |
3704 | else |
6754 | echo "$as_me: failed program was:" >&5 |
3705 | echo "$as_me: failed program was:" >&5 |
6755 | sed 's/^/| /' conftest.$ac_ext >&5 |
3706 | sed 's/^/| /' conftest.$ac_ext >&5 |
6756 | |
3707 | |
6757 | ac_cv_lib_svld_dlopen=no |
3708 | ac_cv_lib_nsl_gethostbyname=no |
6758 | fi |
3709 | fi |
6759 | rm -f conftest.err conftest.$ac_objext \ |
3710 | rm -f conftest.err conftest.$ac_objext \ |
6760 | conftest$ac_exeext conftest.$ac_ext |
3711 | conftest$ac_exeext conftest.$ac_ext |
6761 | LIBS=$ac_check_lib_save_LIBS |
3712 | LIBS=$ac_check_lib_save_LIBS |
6762 | fi |
3713 | fi |
6763 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
3714 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
6764 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
3715 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
6765 | if test $ac_cv_lib_svld_dlopen = yes; then |
3716 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
6766 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
3717 | LIBS="$LIBS -lnsl" |
6767 | else |
3718 | fi |
|
|
3719 | |
|
|
3720 | fi |
|
|
3721 | |
6768 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
3722 | echo "$as_me:$LINENO: checking for socket" >&5 |
6769 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
3723 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
6770 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
3724 | if test "${ac_cv_func_socket+set}" = set; then |
6771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6772 | else |
3726 | else |
|
|
3727 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3728 | /* confdefs.h. */ |
|
|
3729 | _ACEOF |
|
|
3730 | cat confdefs.h >>conftest.$ac_ext |
|
|
3731 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3732 | /* end confdefs.h. */ |
|
|
3733 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
|
|
3734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3735 | #define socket innocuous_socket |
|
|
3736 | |
|
|
3737 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3738 | which can conflict with char socket (); below. |
|
|
3739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3740 | <limits.h> exists even on freestanding compilers. */ |
|
|
3741 | |
|
|
3742 | #ifdef __STDC__ |
|
|
3743 | # include <limits.h> |
|
|
3744 | #else |
|
|
3745 | # include <assert.h> |
|
|
3746 | #endif |
|
|
3747 | |
|
|
3748 | #undef socket |
|
|
3749 | |
|
|
3750 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3751 | #ifdef __cplusplus |
|
|
3752 | extern "C" |
|
|
3753 | { |
|
|
3754 | #endif |
|
|
3755 | /* We use char because int might match the return type of a gcc2 |
|
|
3756 | builtin and then its argument prototype would still apply. */ |
|
|
3757 | char socket (); |
|
|
3758 | /* The GNU C library defines this for functions which it implements |
|
|
3759 | to always fail with ENOSYS. Some functions are actually named |
|
|
3760 | something starting with __ and the normal name is an alias. */ |
|
|
3761 | #if defined (__stub_socket) || defined (__stub___socket) |
|
|
3762 | choke me |
|
|
3763 | #else |
|
|
3764 | char (*f) () = socket; |
|
|
3765 | #endif |
|
|
3766 | #ifdef __cplusplus |
|
|
3767 | } |
|
|
3768 | #endif |
|
|
3769 | |
|
|
3770 | int |
|
|
3771 | main () |
|
|
3772 | { |
|
|
3773 | return f != socket; |
|
|
3774 | ; |
|
|
3775 | return 0; |
|
|
3776 | } |
|
|
3777 | _ACEOF |
|
|
3778 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3780 | (eval $ac_link) 2>conftest.er1 |
|
|
3781 | ac_status=$? |
|
|
3782 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3783 | rm -f conftest.er1 |
|
|
3784 | cat conftest.err >&5 |
|
|
3785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3786 | (exit $ac_status); } && |
|
|
3787 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3788 | || test ! -s conftest.err' |
|
|
3789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3790 | (eval $ac_try) 2>&5 |
|
|
3791 | ac_status=$? |
|
|
3792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3793 | (exit $ac_status); }; } && |
|
|
3794 | { ac_try='test -s conftest$ac_exeext' |
|
|
3795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3796 | (eval $ac_try) 2>&5 |
|
|
3797 | ac_status=$? |
|
|
3798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3799 | (exit $ac_status); }; }; then |
|
|
3800 | ac_cv_func_socket=yes |
|
|
3801 | else |
|
|
3802 | echo "$as_me: failed program was:" >&5 |
|
|
3803 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3804 | |
|
|
3805 | ac_cv_func_socket=no |
|
|
3806 | fi |
|
|
3807 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3808 | conftest$ac_exeext conftest.$ac_ext |
|
|
3809 | fi |
|
|
3810 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
|
|
3811 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
|
|
3812 | if test $ac_cv_func_socket = yes; then |
|
|
3813 | : |
|
|
3814 | else |
|
|
3815 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
|
|
3816 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
|
|
3817 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
|
|
3818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3819 | else |
6773 | ac_check_lib_save_LIBS=$LIBS |
3820 | ac_check_lib_save_LIBS=$LIBS |
6774 | LIBS="-ldld $LIBS" |
3821 | LIBS="-lsocket $LIBS" |
6775 | cat >conftest.$ac_ext <<_ACEOF |
3822 | cat >conftest.$ac_ext <<_ACEOF |
6776 | /* confdefs.h. */ |
3823 | /* confdefs.h. */ |
6777 | _ACEOF |
3824 | _ACEOF |
6778 | cat confdefs.h >>conftest.$ac_ext |
3825 | cat confdefs.h >>conftest.$ac_ext |
6779 | cat >>conftest.$ac_ext <<_ACEOF |
3826 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
6783 | #ifdef __cplusplus |
3830 | #ifdef __cplusplus |
6784 | extern "C" |
3831 | extern "C" |
6785 | #endif |
3832 | #endif |
6786 | /* We use char because int might match the return type of a gcc2 |
3833 | /* We use char because int might match the return type of a gcc2 |
6787 | builtin and then its argument prototype would still apply. */ |
3834 | builtin and then its argument prototype would still apply. */ |
6788 | char shl_load (); |
3835 | char socket (); |
6789 | int |
3836 | int |
6790 | main () |
3837 | main () |
6791 | { |
3838 | { |
6792 | shl_load (); |
3839 | socket (); |
6793 | ; |
3840 | ; |
6794 | return 0; |
3841 | return 0; |
6795 | } |
3842 | } |
6796 | _ACEOF |
3843 | _ACEOF |
6797 | rm -f conftest.$ac_objext conftest$ac_exeext |
3844 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
6801 | grep -v '^ *+' conftest.er1 >conftest.err |
3848 | grep -v '^ *+' conftest.er1 >conftest.err |
6802 | rm -f conftest.er1 |
3849 | rm -f conftest.er1 |
6803 | cat conftest.err >&5 |
3850 | cat conftest.err >&5 |
6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6805 | (exit $ac_status); } && |
3852 | (exit $ac_status); } && |
6806 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3853 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3854 | || test ! -s conftest.err' |
6807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6808 | (eval $ac_try) 2>&5 |
3856 | (eval $ac_try) 2>&5 |
6809 | ac_status=$? |
3857 | ac_status=$? |
6810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6811 | (exit $ac_status); }; } && |
3859 | (exit $ac_status); }; } && |
… | |
… | |
6813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6814 | (eval $ac_try) 2>&5 |
3862 | (eval $ac_try) 2>&5 |
6815 | ac_status=$? |
3863 | ac_status=$? |
6816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6817 | (exit $ac_status); }; }; then |
3865 | (exit $ac_status); }; }; then |
6818 | ac_cv_lib_dld_shl_load=yes |
3866 | ac_cv_lib_socket_socket=yes |
6819 | else |
3867 | else |
6820 | echo "$as_me: failed program was:" >&5 |
3868 | echo "$as_me: failed program was:" >&5 |
6821 | sed 's/^/| /' conftest.$ac_ext >&5 |
3869 | sed 's/^/| /' conftest.$ac_ext >&5 |
6822 | |
3870 | |
6823 | ac_cv_lib_dld_shl_load=no |
3871 | ac_cv_lib_socket_socket=no |
6824 | fi |
3872 | fi |
6825 | rm -f conftest.err conftest.$ac_objext \ |
3873 | rm -f conftest.err conftest.$ac_objext \ |
6826 | conftest$ac_exeext conftest.$ac_ext |
3874 | conftest$ac_exeext conftest.$ac_ext |
6827 | LIBS=$ac_check_lib_save_LIBS |
3875 | LIBS=$ac_check_lib_save_LIBS |
6828 | fi |
3876 | fi |
6829 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
3877 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
6830 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
3878 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
6831 | if test $ac_cv_lib_dld_shl_load = yes; then |
3879 | if test $ac_cv_lib_socket_socket = yes; then |
6832 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
3880 | LIBS="$LIBS -lsocket" |
6833 | fi |
3881 | fi |
6834 | |
3882 | |
6835 | |
|
|
6836 | fi |
3883 | fi |
6837 | |
3884 | |
6838 | |
3885 | |
6839 | fi |
|
|
6840 | |
3886 | |
6841 | |
|
|
6842 | fi |
|
|
6843 | |
|
|
6844 | |
|
|
6845 | fi |
|
|
6846 | |
|
|
6847 | ;; |
|
|
6848 | esac |
|
|
6849 | |
|
|
6850 | if test "x$lt_cv_dlopen" != xno; then |
|
|
6851 | enable_dlopen=yes |
|
|
6852 | else |
|
|
6853 | enable_dlopen=no |
|
|
6854 | fi |
|
|
6855 | |
|
|
6856 | case "$lt_cv_dlopen" in |
|
|
6857 | dlopen) |
|
|
6858 | save_CPPFLAGS="$CPP_FLAGS" |
|
|
6859 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
|
6860 | |
|
|
6861 | save_LDFLAGS="$LDFLAGS" |
|
|
6862 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
|
6863 | |
|
|
6864 | save_LIBS="$LIBS" |
|
|
6865 | LIBS="$lt_cv_dlopen_libs $LIBS" |
|
|
6866 | |
|
|
6867 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
|
6868 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
|
6869 | if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
6870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6871 | else |
|
|
6872 | if test "$cross_compiling" = yes; then : |
|
|
6873 | lt_cv_dlopen_self=cross |
|
|
6874 | else |
|
|
6875 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
6876 | lt_status=$lt_dlunknown |
|
|
6877 | cat > conftest.$ac_ext <<EOF |
|
|
6878 | #line 6878 "configure" |
|
|
6879 | #include "confdefs.h" |
|
|
6880 | |
|
|
6881 | #if HAVE_DLFCN_H |
|
|
6882 | #include <dlfcn.h> |
|
|
6883 | #endif |
|
|
6884 | |
|
|
6885 | #include <stdio.h> |
|
|
6886 | |
|
|
6887 | #ifdef RTLD_GLOBAL |
|
|
6888 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
6889 | #else |
|
|
6890 | # ifdef DL_GLOBAL |
|
|
6891 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
6892 | # else |
|
|
6893 | # define LT_DLGLOBAL 0 |
|
|
6894 | # endif |
|
|
6895 | #endif |
|
|
6896 | |
|
|
6897 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
6898 | find out it does not work in some platform. */ |
|
|
6899 | #ifndef LT_DLLAZY_OR_NOW |
|
|
6900 | # ifdef RTLD_LAZY |
|
|
6901 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
6902 | # else |
|
|
6903 | # ifdef DL_LAZY |
|
|
6904 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
6905 | # else |
|
|
6906 | # ifdef RTLD_NOW |
|
|
6907 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
6908 | # else |
|
|
6909 | # ifdef DL_NOW |
|
|
6910 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
6911 | # else |
|
|
6912 | # define LT_DLLAZY_OR_NOW 0 |
|
|
6913 | # endif |
|
|
6914 | # endif |
|
|
6915 | # endif |
|
|
6916 | # endif |
|
|
6917 | #endif |
|
|
6918 | |
|
|
6919 | #ifdef __cplusplus |
|
|
6920 | extern "C" void exit (int); |
|
|
6921 | #endif |
|
|
6922 | |
|
|
6923 | fnord() { int i=42;} |
|
|
6924 | main () |
|
|
6925 | { |
|
|
6926 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
6927 | int status = $lt_dlunknown; |
|
|
6928 | |
|
|
6929 | if (self) |
|
|
6930 | { |
|
|
6931 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
6932 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
6933 | /* dlclose (self); */ |
|
|
6934 | } |
|
|
6935 | |
|
|
6936 | exit (status); |
|
|
6937 | } |
|
|
6938 | EOF |
|
|
6939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6940 | (eval $ac_link) 2>&5 |
|
|
6941 | ac_status=$? |
|
|
6942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6943 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
6944 | (./conftest; exit; ) 2>/dev/null |
|
|
6945 | lt_status=$? |
|
|
6946 | case x$lt_status in |
|
|
6947 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
6948 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
6949 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
|
6950 | esac |
|
|
6951 | else : |
|
|
6952 | # compilation failed |
|
|
6953 | lt_cv_dlopen_self=no |
|
|
6954 | fi |
|
|
6955 | fi |
|
|
6956 | rm -fr conftest* |
|
|
6957 | |
|
|
6958 | |
|
|
6959 | fi |
|
|
6960 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
|
6961 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
|
6962 | |
|
|
6963 | if test "x$lt_cv_dlopen_self" = xyes; then |
|
|
6964 | LDFLAGS="$LDFLAGS $link_static_flag" |
|
|
6965 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
6966 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
|
6967 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
6968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6969 | else |
|
|
6970 | if test "$cross_compiling" = yes; then : |
|
|
6971 | lt_cv_dlopen_self_static=cross |
|
|
6972 | else |
|
|
6973 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
6974 | lt_status=$lt_dlunknown |
|
|
6975 | cat > conftest.$ac_ext <<EOF |
|
|
6976 | #line 6976 "configure" |
|
|
6977 | #include "confdefs.h" |
|
|
6978 | |
|
|
6979 | #if HAVE_DLFCN_H |
|
|
6980 | #include <dlfcn.h> |
|
|
6981 | #endif |
|
|
6982 | |
|
|
6983 | #include <stdio.h> |
|
|
6984 | |
|
|
6985 | #ifdef RTLD_GLOBAL |
|
|
6986 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
6987 | #else |
|
|
6988 | # ifdef DL_GLOBAL |
|
|
6989 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
6990 | # else |
|
|
6991 | # define LT_DLGLOBAL 0 |
|
|
6992 | # endif |
|
|
6993 | #endif |
|
|
6994 | |
|
|
6995 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
6996 | find out it does not work in some platform. */ |
|
|
6997 | #ifndef LT_DLLAZY_OR_NOW |
|
|
6998 | # ifdef RTLD_LAZY |
|
|
6999 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
7000 | # else |
|
|
7001 | # ifdef DL_LAZY |
|
|
7002 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
7003 | # else |
|
|
7004 | # ifdef RTLD_NOW |
|
|
7005 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
7006 | # else |
|
|
7007 | # ifdef DL_NOW |
|
|
7008 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
7009 | # else |
|
|
7010 | # define LT_DLLAZY_OR_NOW 0 |
|
|
7011 | # endif |
|
|
7012 | # endif |
|
|
7013 | # endif |
|
|
7014 | # endif |
|
|
7015 | #endif |
|
|
7016 | |
|
|
7017 | #ifdef __cplusplus |
|
|
7018 | extern "C" void exit (int); |
|
|
7019 | #endif |
|
|
7020 | |
|
|
7021 | fnord() { int i=42;} |
|
|
7022 | main () |
|
|
7023 | { |
|
|
7024 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
7025 | int status = $lt_dlunknown; |
|
|
7026 | |
|
|
7027 | if (self) |
|
|
7028 | { |
|
|
7029 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
7030 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
7031 | /* dlclose (self); */ |
|
|
7032 | } |
|
|
7033 | |
|
|
7034 | exit (status); |
|
|
7035 | } |
|
|
7036 | EOF |
|
|
7037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7038 | (eval $ac_link) 2>&5 |
|
|
7039 | ac_status=$? |
|
|
7040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7041 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
7042 | (./conftest; exit; ) 2>/dev/null |
|
|
7043 | lt_status=$? |
|
|
7044 | case x$lt_status in |
|
|
7045 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
7046 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
7047 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
7048 | esac |
|
|
7049 | else : |
|
|
7050 | # compilation failed |
|
|
7051 | lt_cv_dlopen_self_static=no |
|
|
7052 | fi |
|
|
7053 | fi |
|
|
7054 | rm -fr conftest* |
|
|
7055 | |
|
|
7056 | |
|
|
7057 | fi |
|
|
7058 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
|
7059 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
|
7060 | fi |
|
|
7061 | |
|
|
7062 | CPPFLAGS="$save_CPPFLAGS" |
|
|
7063 | LDFLAGS="$save_LDFLAGS" |
|
|
7064 | LIBS="$save_LIBS" |
|
|
7065 | ;; |
|
|
7066 | esac |
|
|
7067 | |
|
|
7068 | case "$lt_cv_dlopen_self" in |
|
|
7069 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
|
7070 | *) enable_dlopen_self=unknown ;; |
|
|
7071 | esac |
|
|
7072 | |
|
|
7073 | case "$lt_cv_dlopen_self_static" in |
|
|
7074 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
7075 | *) enable_dlopen_self_static=unknown ;; |
|
|
7076 | esac |
|
|
7077 | fi |
|
|
7078 | |
|
|
7079 | |
|
|
7080 | ## FIXME: this should be a separate macro |
|
|
7081 | ## |
|
|
7082 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
7083 | case "$archive_cmds" in |
|
|
7084 | *'~'*) |
|
|
7085 | # FIXME: we may have to deal with multi-command sequences. |
|
|
7086 | ;; |
|
|
7087 | '$CC '*) |
|
|
7088 | # Test whether the compiler implicitly links with -lc since on some |
|
|
7089 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
7090 | # to ld, don't add -lc before -lgcc. |
|
|
7091 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
7092 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
7093 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
|
|
7094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7095 | else |
|
|
7096 | $rm conftest* |
|
|
7097 | echo 'static int dummy;' > conftest.$ac_ext |
|
|
7098 | |
|
|
7099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7100 | (eval $ac_compile) 2>&5 |
|
|
7101 | ac_status=$? |
|
|
7102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7103 | (exit $ac_status); }; then |
|
|
7104 | soname=conftest |
|
|
7105 | lib=conftest |
|
|
7106 | libobjs=conftest.$ac_objext |
|
|
7107 | deplibs= |
|
|
7108 | wl=$lt_cv_prog_cc_wl |
|
|
7109 | compiler_flags=-v |
|
|
7110 | linker_flags=-v |
|
|
7111 | verstring= |
|
|
7112 | output_objdir=. |
|
|
7113 | libname=conftest |
|
|
7114 | save_allow_undefined_flag=$allow_undefined_flag |
|
|
7115 | allow_undefined_flag= |
|
|
7116 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
7117 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
7118 | ac_status=$? |
|
|
7119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7120 | (exit $ac_status); } |
|
|
7121 | then |
|
|
7122 | lt_cv_archive_cmds_need_lc=no |
|
|
7123 | else |
|
|
7124 | lt_cv_archive_cmds_need_lc=yes |
|
|
7125 | fi |
|
|
7126 | allow_undefined_flag=$save_allow_undefined_flag |
|
|
7127 | else |
|
|
7128 | cat conftest.err 1>&5 |
|
|
7129 | fi |
|
|
7130 | fi |
|
|
7131 | |
|
|
7132 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
|
|
7133 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
|
|
7134 | ;; |
|
|
7135 | esac |
|
|
7136 | fi |
|
|
7137 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
|
|
7138 | ## |
|
|
7139 | ## END FIXME |
|
|
7140 | |
|
|
7141 | ## FIXME: this should be a separate macro |
|
|
7142 | ## |
|
|
7143 | # The second clause should only fire when bootstrapping the |
|
|
7144 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
7145 | # with your package, and you will get complaints that there are |
|
|
7146 | # no rules to generate ltmain.sh. |
|
|
7147 | if test -f "$ltmain"; then |
|
|
7148 | : |
|
|
7149 | else |
|
|
7150 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
7151 | # `config.status --recheck' to rerun these tests and create the |
|
|
7152 | # libtool script then. |
|
|
7153 | test -f Makefile && make "$ltmain" |
|
|
7154 | fi |
|
|
7155 | |
|
|
7156 | if test -f "$ltmain"; then |
|
|
7157 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
|
|
7158 | $rm -f "${ofile}T" |
|
|
7159 | |
|
|
7160 | echo creating $ofile |
|
|
7161 | |
|
|
7162 | # Now quote all the things that may contain metacharacters while being |
|
|
7163 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
7164 | # variables and quote the copies for generation of the libtool script. |
|
|
7165 | for var in echo old_CC old_CFLAGS \ |
|
|
7166 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
|
|
7167 | reload_flag reload_cmds wl \ |
|
|
7168 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
|
|
7169 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
|
|
7170 | library_names_spec soname_spec \ |
|
|
7171 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
|
|
7172 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
|
|
7173 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
|
|
7174 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
|
|
7175 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
|
|
7176 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
|
|
7177 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
|
|
7178 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
7179 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
|
|
7180 | |
|
|
7181 | case "$var" in |
|
|
7182 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
|
|
7183 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
7184 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
|
|
7185 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
|
|
7186 | postinstall_cmds | postuninstall_cmds | \ |
|
|
7187 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
7188 | # Double-quote double-evaled strings. |
|
|
7189 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
7190 | ;; |
|
|
7191 | *) |
|
|
7192 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
7193 | ;; |
|
|
7194 | esac |
|
|
7195 | done |
|
|
7196 | |
|
|
7197 | cat <<__EOF__ > "${ofile}T" |
|
|
7198 | #! $SHELL |
|
|
7199 | |
|
|
7200 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
|
7201 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
|
7202 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
7203 | # |
|
|
7204 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
|
|
7205 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
7206 | # |
|
|
7207 | # This program is free software; you can redistribute it and/or modify |
|
|
7208 | # it under the terms of the GNU General Public License as published by |
|
|
7209 | # the Free Software Foundation; either version 2 of the License, or |
|
|
7210 | # (at your option) any later version. |
|
|
7211 | # |
|
|
7212 | # This program is distributed in the hope that it will be useful, but |
|
|
7213 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
7214 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
7215 | # General Public License for more details. |
|
|
7216 | # |
|
|
7217 | # You should have received a copy of the GNU General Public License |
|
|
7218 | # along with this program; if not, write to the Free Software |
|
|
7219 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
7220 | # |
|
|
7221 | # As a special exception to the GNU General Public License, if you |
|
|
7222 | # distribute this file as part of a program that contains a |
|
|
7223 | # configuration script generated by Autoconf, you may include it under |
|
|
7224 | # the same distribution terms that you use for the rest of that program. |
|
|
7225 | |
|
|
7226 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
7227 | Xsed="sed -e s/^X//" |
|
|
7228 | |
|
|
7229 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
7230 | # if CDPATH is set. |
|
|
7231 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
7232 | |
|
|
7233 | # ### BEGIN LIBTOOL CONFIG |
|
|
7234 | |
|
|
7235 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
7236 | |
|
|
7237 | # Shell to use when invoking shell scripts. |
|
|
7238 | SHELL=$lt_SHELL |
|
|
7239 | |
|
|
7240 | # Whether or not to build shared libraries. |
|
|
7241 | build_libtool_libs=$enable_shared |
|
|
7242 | |
|
|
7243 | # Whether or not to add -lc for building shared libraries. |
|
|
7244 | build_libtool_need_lc=$need_lc |
|
|
7245 | |
|
|
7246 | # Whether or not to build static libraries. |
|
|
7247 | build_old_libs=$enable_static |
|
|
7248 | |
|
|
7249 | # Whether or not to optimize for fast installation. |
|
|
7250 | fast_install=$enable_fast_install |
|
|
7251 | |
|
|
7252 | # The host system. |
|
|
7253 | host_alias=$host_alias |
|
|
7254 | host=$host |
|
|
7255 | |
|
|
7256 | # An echo program that does not interpret backslashes. |
|
|
7257 | echo=$lt_echo |
|
|
7258 | |
|
|
7259 | # The archiver. |
|
|
7260 | AR=$lt_AR |
|
|
7261 | AR_FLAGS=$lt_AR_FLAGS |
|
|
7262 | |
|
|
7263 | # The default C compiler. |
|
|
7264 | CC=$lt_CC |
|
|
7265 | |
|
|
7266 | # Is the compiler the GNU C compiler? |
|
|
7267 | with_gcc=$GCC |
|
|
7268 | |
|
|
7269 | # The linker used to build libraries. |
|
|
7270 | LD=$lt_LD |
|
|
7271 | |
|
|
7272 | # Whether we need hard or soft links. |
|
|
7273 | LN_S=$lt_LN_S |
|
|
7274 | |
|
|
7275 | # A BSD-compatible nm program. |
|
|
7276 | NM=$lt_NM |
|
|
7277 | |
|
|
7278 | # A symbol stripping program |
|
|
7279 | STRIP=$STRIP |
|
|
7280 | |
|
|
7281 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
7282 | MAGIC_CMD=$MAGIC_CMD |
|
|
7283 | |
|
|
7284 | # Used on cygwin: DLL creation program. |
|
|
7285 | DLLTOOL="$DLLTOOL" |
|
|
7286 | |
|
|
7287 | # Used on cygwin: object dumper. |
|
|
7288 | OBJDUMP="$OBJDUMP" |
|
|
7289 | |
|
|
7290 | # Used on cygwin: assembler. |
|
|
7291 | AS="$AS" |
|
|
7292 | |
|
|
7293 | # The name of the directory that contains temporary libtool files. |
|
|
7294 | objdir=$objdir |
|
|
7295 | |
|
|
7296 | # How to create reloadable object files. |
|
|
7297 | reload_flag=$lt_reload_flag |
|
|
7298 | reload_cmds=$lt_reload_cmds |
|
|
7299 | |
|
|
7300 | # How to pass a linker flag through the compiler. |
|
|
7301 | wl=$lt_wl |
|
|
7302 | |
|
|
7303 | # Object file suffix (normally "o"). |
|
|
7304 | objext="$ac_objext" |
|
|
7305 | |
|
|
7306 | # Old archive suffix (normally "a"). |
|
|
7307 | libext="$libext" |
|
|
7308 | |
|
|
7309 | # Executable file suffix (normally ""). |
|
|
7310 | exeext="$exeext" |
|
|
7311 | |
|
|
7312 | # Additional compiler flags for building library objects. |
|
|
7313 | pic_flag=$lt_pic_flag |
|
|
7314 | pic_mode=$pic_mode |
|
|
7315 | |
|
|
7316 | # Does compiler simultaneously support -c and -o options? |
|
|
7317 | compiler_c_o=$lt_compiler_c_o |
|
|
7318 | |
|
|
7319 | # Can we write directly to a .lo ? |
|
|
7320 | compiler_o_lo=$lt_compiler_o_lo |
|
|
7321 | |
|
|
7322 | # Must we lock files when doing compilation ? |
|
|
7323 | need_locks=$lt_need_locks |
|
|
7324 | |
|
|
7325 | # Do we need the lib prefix for modules? |
|
|
7326 | need_lib_prefix=$need_lib_prefix |
|
|
7327 | |
|
|
7328 | # Do we need a version for libraries? |
|
|
7329 | need_version=$need_version |
|
|
7330 | |
|
|
7331 | # Whether dlopen is supported. |
|
|
7332 | dlopen_support=$enable_dlopen |
|
|
7333 | |
|
|
7334 | # Whether dlopen of programs is supported. |
|
|
7335 | dlopen_self=$enable_dlopen_self |
|
|
7336 | |
|
|
7337 | # Whether dlopen of statically linked programs is supported. |
|
|
7338 | dlopen_self_static=$enable_dlopen_self_static |
|
|
7339 | |
|
|
7340 | # Compiler flag to prevent dynamic linking. |
|
|
7341 | link_static_flag=$lt_link_static_flag |
|
|
7342 | |
|
|
7343 | # Compiler flag to turn off builtin functions. |
|
|
7344 | no_builtin_flag=$lt_no_builtin_flag |
|
|
7345 | |
|
|
7346 | # Compiler flag to allow reflexive dlopens. |
|
|
7347 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
|
7348 | |
|
|
7349 | # Compiler flag to generate shared objects directly from archives. |
|
|
7350 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
|
7351 | |
|
|
7352 | # Compiler flag to generate thread-safe objects. |
|
|
7353 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
|
7354 | |
|
|
7355 | # Library versioning type. |
|
|
7356 | version_type=$version_type |
|
|
7357 | |
|
|
7358 | # Format of library name prefix. |
|
|
7359 | libname_spec=$lt_libname_spec |
|
|
7360 | |
|
|
7361 | # List of archive names. First name is the real one, the rest are links. |
|
|
7362 | # The last name is the one that the linker finds with -lNAME. |
|
|
7363 | library_names_spec=$lt_library_names_spec |
|
|
7364 | |
|
|
7365 | # The coded name of the library, if different from the real name. |
|
|
7366 | soname_spec=$lt_soname_spec |
|
|
7367 | |
|
|
7368 | # Commands used to build and install an old-style archive. |
|
|
7369 | RANLIB=$lt_RANLIB |
|
|
7370 | old_archive_cmds=$lt_old_archive_cmds |
|
|
7371 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
7372 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
7373 | |
|
|
7374 | # Create an old-style archive from a shared archive. |
|
|
7375 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
|
7376 | |
|
|
7377 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
7378 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
|
7379 | |
|
|
7380 | # Commands used to build and install a shared archive. |
|
|
7381 | archive_cmds=$lt_archive_cmds |
|
|
7382 | archive_expsym_cmds=$lt_archive_expsym_cmds |
|
|
7383 | postinstall_cmds=$lt_postinstall_cmds |
|
|
7384 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
7385 | |
|
|
7386 | # Commands to strip libraries. |
|
|
7387 | old_striplib=$lt_old_striplib |
|
|
7388 | striplib=$lt_striplib |
|
|
7389 | |
|
|
7390 | # Method to check whether dependent libraries are shared objects. |
|
|
7391 | deplibs_check_method=$lt_deplibs_check_method |
|
|
7392 | |
|
|
7393 | # Command to use when deplibs_check_method == file_magic. |
|
|
7394 | file_magic_cmd=$lt_file_magic_cmd |
|
|
7395 | |
|
|
7396 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
7397 | allow_undefined_flag=$lt_allow_undefined_flag |
|
|
7398 | |
|
|
7399 | # Flag that forces no undefined symbols. |
|
|
7400 | no_undefined_flag=$lt_no_undefined_flag |
|
|
7401 | |
|
|
7402 | # Commands used to finish a libtool library installation in a directory. |
|
|
7403 | finish_cmds=$lt_finish_cmds |
|
|
7404 | |
|
|
7405 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
7406 | finish_eval=$lt_finish_eval |
|
|
7407 | |
|
|
7408 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
7409 | global_symbol_pipe=$lt_global_symbol_pipe |
|
|
7410 | |
|
|
7411 | # Transform the output of nm in a proper C declaration |
|
|
7412 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
|
|
7413 | |
|
|
7414 | # This is the shared library runtime path variable. |
|
|
7415 | runpath_var=$runpath_var |
|
|
7416 | |
|
|
7417 | # This is the shared library path variable. |
|
|
7418 | shlibpath_var=$shlibpath_var |
|
|
7419 | |
|
|
7420 | # Is shlibpath searched before the hard-coded library search path? |
|
|
7421 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
7422 | |
|
|
7423 | # How to hardcode a shared library path into an executable. |
|
|
7424 | hardcode_action=$hardcode_action |
|
|
7425 | |
|
|
7426 | # Whether we should hardcode library paths into libraries. |
|
|
7427 | hardcode_into_libs=$hardcode_into_libs |
|
|
7428 | |
|
|
7429 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
7430 | # This must work even if \$libdir does not exist. |
|
|
7431 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
|
7432 | |
|
|
7433 | # Whether we need a single -rpath flag with a separated argument. |
|
|
7434 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
|
7435 | |
|
|
7436 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
|
|
7437 | # resulting binary. |
|
|
7438 | hardcode_direct=$hardcode_direct |
|
|
7439 | |
|
|
7440 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
7441 | # resulting binary. |
|
|
7442 | hardcode_minus_L=$hardcode_minus_L |
|
|
7443 | |
|
|
7444 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
7445 | # the resulting binary. |
|
|
7446 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
|
7447 | |
|
|
7448 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
7449 | # restored at relink time. |
|
|
7450 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
7451 | |
|
|
7452 | # Whether libtool must link a program against all its dependency libraries. |
|
|
7453 | link_all_deplibs=$link_all_deplibs |
|
|
7454 | |
|
|
7455 | # Compile-time system search path for libraries |
|
|
7456 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
7457 | |
|
|
7458 | # Run-time system search path for libraries |
|
|
7459 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
7460 | |
|
|
7461 | # Fix the shell variable \$srcfile for the compiler. |
|
|
7462 | fix_srcfile_path="$fix_srcfile_path" |
|
|
7463 | |
|
|
7464 | # Set to yes if exported symbols are required. |
|
|
7465 | always_export_symbols=$always_export_symbols |
|
|
7466 | |
|
|
7467 | # The commands to list exported symbols. |
|
|
7468 | export_symbols_cmds=$lt_export_symbols_cmds |
|
|
7469 | |
|
|
7470 | # The commands to extract the exported symbol list from a shared archive. |
|
|
7471 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
7472 | |
|
|
7473 | # Symbols that should not be listed in the preloaded symbols. |
|
|
7474 | exclude_expsyms=$lt_exclude_expsyms |
|
|
7475 | |
|
|
7476 | # Symbols that must always be exported. |
|
|
7477 | include_expsyms=$lt_include_expsyms |
|
|
7478 | |
|
|
7479 | # ### END LIBTOOL CONFIG |
|
|
7480 | |
|
|
7481 | __EOF__ |
|
|
7482 | |
|
|
7483 | case "$host_os" in |
|
|
7484 | aix3*) |
|
|
7485 | cat <<\EOF >> "${ofile}T" |
|
|
7486 | |
|
|
7487 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
7488 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
7489 | # vanish in a puff of smoke. |
|
|
7490 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
7491 | COLLECT_NAMES= |
|
|
7492 | export COLLECT_NAMES |
|
|
7493 | fi |
|
|
7494 | EOF |
|
|
7495 | ;; |
|
|
7496 | esac |
|
|
7497 | |
|
|
7498 | case "$host_os" in |
|
|
7499 | cygwin* | mingw* | pw32* | os2*) |
|
|
7500 | cat <<'EOF' >> "${ofile}T" |
|
|
7501 | # This is a source program that is used to create dlls on Windows |
|
|
7502 | # Don't remove nor modify the starting and closing comments |
|
|
7503 | # /* ltdll.c starts here */ |
|
|
7504 | # #define WIN32_LEAN_AND_MEAN |
|
|
7505 | # #include <windows.h> |
|
|
7506 | # #undef WIN32_LEAN_AND_MEAN |
|
|
7507 | # #include <stdio.h> |
|
|
7508 | # |
|
|
7509 | # #ifndef __CYGWIN__ |
|
|
7510 | # # ifdef __CYGWIN32__ |
|
|
7511 | # # define __CYGWIN__ __CYGWIN32__ |
|
|
7512 | # # endif |
|
|
7513 | # #endif |
|
|
7514 | # |
|
|
7515 | # #ifdef __cplusplus |
|
|
7516 | # extern "C" { |
|
|
7517 | # #endif |
|
|
7518 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
|
|
7519 | # #ifdef __cplusplus |
|
|
7520 | # } |
|
|
7521 | # #endif |
|
|
7522 | # |
|
|
7523 | # #ifdef __CYGWIN__ |
|
|
7524 | # #include <cygwin/cygwin_dll.h> |
|
|
7525 | # DECLARE_CYGWIN_DLL( DllMain ); |
|
|
7526 | # #endif |
|
|
7527 | # HINSTANCE __hDllInstance_base; |
|
|
7528 | # |
|
|
7529 | # BOOL APIENTRY |
|
|
7530 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
|
|
7531 | # { |
|
|
7532 | # __hDllInstance_base = hInst; |
|
|
7533 | # return TRUE; |
|
|
7534 | # } |
|
|
7535 | # /* ltdll.c ends here */ |
|
|
7536 | # This is a source program that is used to create import libraries |
|
|
7537 | # on Windows for dlls which lack them. Don't remove nor modify the |
|
|
7538 | # starting and closing comments |
|
|
7539 | # /* impgen.c starts here */ |
|
|
7540 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
|
|
7541 | # |
|
|
7542 | # This file is part of GNU libtool. |
|
|
7543 | # |
|
|
7544 | # This program is free software; you can redistribute it and/or modify |
|
|
7545 | # it under the terms of the GNU General Public License as published by |
|
|
7546 | # the Free Software Foundation; either version 2 of the License, or |
|
|
7547 | # (at your option) any later version. |
|
|
7548 | # |
|
|
7549 | # This program is distributed in the hope that it will be useful, |
|
|
7550 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
7551 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
7552 | # GNU General Public License for more details. |
|
|
7553 | # |
|
|
7554 | # You should have received a copy of the GNU General Public License |
|
|
7555 | # along with this program; if not, write to the Free Software |
|
|
7556 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
7557 | # */ |
|
|
7558 | # |
|
|
7559 | # #include <stdio.h> /* for printf() */ |
|
|
7560 | # #include <unistd.h> /* for open(), lseek(), read() */ |
|
|
7561 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
|
|
7562 | # #include <string.h> /* for strdup() */ |
|
|
7563 | # |
|
|
7564 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
|
|
7565 | # #ifndef O_BINARY |
|
|
7566 | # #define O_BINARY 0 |
|
|
7567 | # #endif |
|
|
7568 | # |
|
|
7569 | # static unsigned int |
|
|
7570 | # pe_get16 (fd, offset) |
|
|
7571 | # int fd; |
|
|
7572 | # int offset; |
|
|
7573 | # { |
|
|
7574 | # unsigned char b[2]; |
|
|
7575 | # lseek (fd, offset, SEEK_SET); |
|
|
7576 | # read (fd, b, 2); |
|
|
7577 | # return b[0] + (b[1]<<8); |
|
|
7578 | # } |
|
|
7579 | # |
|
|
7580 | # static unsigned int |
|
|
7581 | # pe_get32 (fd, offset) |
|
|
7582 | # int fd; |
|
|
7583 | # int offset; |
|
|
7584 | # { |
|
|
7585 | # unsigned char b[4]; |
|
|
7586 | # lseek (fd, offset, SEEK_SET); |
|
|
7587 | # read (fd, b, 4); |
|
|
7588 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
7589 | # } |
|
|
7590 | # |
|
|
7591 | # static unsigned int |
|
|
7592 | # pe_as32 (ptr) |
|
|
7593 | # void *ptr; |
|
|
7594 | # { |
|
|
7595 | # unsigned char *b = ptr; |
|
|
7596 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
7597 | # } |
|
|
7598 | # |
|
|
7599 | # int |
|
|
7600 | # main (argc, argv) |
|
|
7601 | # int argc; |
|
|
7602 | # char *argv[]; |
|
|
7603 | # { |
|
|
7604 | # int dll; |
|
|
7605 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
|
|
7606 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
|
|
7607 | # unsigned long name_rvas, nexp; |
|
|
7608 | # unsigned char *expdata, *erva; |
|
|
7609 | # char *filename, *dll_name; |
|
|
7610 | # |
|
|
7611 | # filename = argv[1]; |
|
|
7612 | # |
|
|
7613 | # dll = open(filename, O_RDONLY|O_BINARY); |
|
|
7614 | # if (!dll) |
|
|
7615 | # return 1; |
|
|
7616 | # |
|
|
7617 | # dll_name = filename; |
|
|
7618 | # |
|
|
7619 | # for (i=0; filename[i]; i++) |
|
|
7620 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
|
|
7621 | # dll_name = filename + i +1; |
|
|
7622 | # |
|
|
7623 | # pe_header_offset = pe_get32 (dll, 0x3c); |
|
|
7624 | # opthdr_ofs = pe_header_offset + 4 + 20; |
|
|
7625 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
|
|
7626 | # |
|
|
7627 | # if (num_entries < 1) /* no exports */ |
|
|
7628 | # return 1; |
|
|
7629 | # |
|
|
7630 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
|
|
7631 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
|
|
7632 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
|
|
7633 | # secptr = (pe_header_offset + 4 + 20 + |
|
|
7634 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
|
|
7635 | # |
|
|
7636 | # expptr = 0; |
|
|
7637 | # for (i = 0; i < nsections; i++) |
|
|
7638 | # { |
|
|
7639 | # char sname[8]; |
|
|
7640 | # unsigned long secptr1 = secptr + 40 * i; |
|
|
7641 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
|
|
7642 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
|
|
7643 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
|
|
7644 | # lseek(dll, secptr1, SEEK_SET); |
|
|
7645 | # read(dll, sname, 8); |
|
|
7646 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
|
|
7647 | # { |
|
|
7648 | # expptr = fptr + (export_rva - vaddr); |
|
|
7649 | # if (export_rva + export_size > vaddr + vsize) |
|
|
7650 | # export_size = vsize - (export_rva - vaddr); |
|
|
7651 | # break; |
|
|
7652 | # } |
|
|
7653 | # } |
|
|
7654 | # |
|
|
7655 | # expdata = (unsigned char*)malloc(export_size); |
|
|
7656 | # lseek (dll, expptr, SEEK_SET); |
|
|
7657 | # read (dll, expdata, export_size); |
|
|
7658 | # erva = expdata - export_rva; |
|
|
7659 | # |
|
|
7660 | # nexp = pe_as32 (expdata+24); |
|
|
7661 | # name_rvas = pe_as32 (expdata+32); |
|
|
7662 | # |
|
|
7663 | # printf ("EXPORTS\n"); |
|
|
7664 | # for (i = 0; i<nexp; i++) |
|
|
7665 | # { |
|
|
7666 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
|
|
7667 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
|
|
7668 | # } |
|
|
7669 | # |
|
|
7670 | # return 0; |
|
|
7671 | # } |
|
|
7672 | # /* impgen.c ends here */ |
|
|
7673 | |
|
|
7674 | EOF |
|
|
7675 | ;; |
|
|
7676 | esac |
|
|
7677 | |
|
|
7678 | # We use sed instead of cat because bash on DJGPP gets confused if |
|
|
7679 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
7680 | # text mode, it properly converts lines to CR/LF. This bash problem |
|
|
7681 | # is reportedly fixed, but why not run on old versions too? |
|
|
7682 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
|
|
7683 | |
|
|
7684 | mv -f "${ofile}T" "$ofile" || \ |
|
|
7685 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
|
|
7686 | chmod +x "$ofile" |
|
|
7687 | fi |
|
|
7688 | ## |
|
|
7689 | ## END FIXME |
|
|
7690 | |
|
|
7691 | |
|
|
7692 | |
|
|
7693 | |
|
|
7694 | |
|
|
7695 | # This can be used to rebuild libtool when needed |
|
|
7696 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
|
7697 | |
|
|
7698 | # Always use our own libtool. |
|
|
7699 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
|
7700 | |
|
|
7701 | # Prevent multiple expansion |
|
|
7702 | |
|
|
7703 | |
|
|
7704 | MALLOC_TYPE=S |
|
|
7705 | support_addstrings=no |
|
|
7706 | support_frills=no |
3887 | support_frills=yes |
7707 | support_linespace=no |
|
|
7708 | support_inheritpixmap=no |
3888 | support_inheritpixmap=yes |
|
|
3889 | support_tinting=yes |
|
|
3890 | support_fading=yes |
7709 | support_keepscrolling=no |
3891 | support_keepscrolling=yes |
7710 | support_selectionscrolling=no |
3892 | support_selectionscrolling=yes |
7711 | support_menubar=no |
|
|
7712 | support_mousewheel=no |
3893 | support_mousewheel=yes |
7713 | support_mouseslipwheel=no |
3894 | support_mouseslipwheel=yes |
7714 | support_oldselection=no |
|
|
7715 | support_utmp=no |
|
|
7716 | support_wtmp=no |
|
|
7717 | support_lastlog=no |
|
|
7718 | support_cursor_blink=no |
|
|
7719 | support_text_blink=no |
3895 | support_text_blink=yes |
7720 | support_pointer_blank=no |
3896 | support_pointer_blank=yes |
7721 | support_scroll_rxvt=no |
3897 | support_scroll_rxvt=yes |
7722 | support_scroll_next=no |
3898 | support_scroll_next=yes |
7723 | support_scroll_xterm=no |
3899 | support_scroll_xterm=yes |
7724 | support_scroll_plain=no |
3900 | support_scroll_plain=yes |
7725 | support_xim=no |
3901 | support_xim=yes |
7726 | support_xpm=no |
3902 | support_xpm=yes |
|
|
3903 | support_afterimage=yes |
|
|
3904 | support_afterstep=yes |
7727 | support_xft=no |
3905 | support_xft=yes |
7728 | support_unicode3=no |
3906 | support_unicode3=no |
|
|
3907 | support_combining=yes |
|
|
3908 | support_8bitctrls=no |
|
|
3909 | support_iso14755=yes |
|
|
3910 | support_styles=yes |
|
|
3911 | support_perl=yes |
7729 | codesets= |
3912 | codesets=all |
7730 | |
3913 | |
7731 | |
3914 | |
7732 | if test "x$enable_shared" = xyes; then |
3915 | if test "x$enable_shared" = xyes; then |
7733 | |
3916 | |
7734 | cat >>confdefs.h <<\_ACEOF |
3917 | cat >>confdefs.h <<\_ACEOF |
… | |
… | |
7740 | |
3923 | |
7741 | |
3924 | |
7742 | # Check whether --enable-everything or --disable-everything was given. |
3925 | # Check whether --enable-everything or --disable-everything was given. |
7743 | if test "${enable_everything+set}" = set; then |
3926 | if test "${enable_everything+set}" = set; then |
7744 | enableval="$enable_everything" |
3927 | enableval="$enable_everything" |
|
|
3928 | |
|
|
3929 | if test x$enableval = xno; then |
|
|
3930 | support_frills=no |
|
|
3931 | support_inheritpixmap=no |
|
|
3932 | support_tinting=no |
|
|
3933 | support_fading=no |
|
|
3934 | support_keepscrolling=no |
|
|
3935 | support_selectionscrolling=no |
|
|
3936 | support_lastlog=no |
|
|
3937 | support_mousewheel=no |
|
|
3938 | support_mouseslipwheel=no |
|
|
3939 | support_text_blink=no |
|
|
3940 | support_pointer_blank=no |
|
|
3941 | support_scroll_rxvt=no |
|
|
3942 | support_scroll_next=no |
|
|
3943 | support_scroll_xterm=no |
|
|
3944 | support_scroll_plain=no |
|
|
3945 | support_utmp=no |
|
|
3946 | support_wtmp=no |
|
|
3947 | support_xim=no |
|
|
3948 | support_xpm=no |
|
|
3949 | support_afterimage=no |
|
|
3950 | support_afterstep=no |
|
|
3951 | support_xft=no |
|
|
3952 | support_unicode3=no |
|
|
3953 | support_combining=no |
|
|
3954 | support_8bitctrls=no |
|
|
3955 | support_iso14755=no |
|
|
3956 | support_styles=no |
|
|
3957 | support_perl=no |
|
|
3958 | codesets= |
|
|
3959 | fi |
7745 | if test x$enableval = xyes; then |
3960 | if test x$enableval = xyes; then |
7746 | support_24bit=yes |
|
|
7747 | support_frills=yes |
3961 | support_frills=yes |
7748 | support_linespace=yes |
|
|
7749 | support_inheritpixmap=yes |
3962 | support_inheritpixmap=yes |
|
|
3963 | support_tinting=yes |
|
|
3964 | support_fading=yes |
7750 | support_keepscrolling=yes |
3965 | support_keepscrolling=yes |
7751 | support_selectionscrolling=yes |
3966 | support_selectionscrolling=yes |
7752 | support_lastlog=yes |
3967 | support_lastlog=yes |
7753 | support_menubar=yes |
|
|
7754 | support_mousewheel=yes |
3968 | support_mousewheel=yes |
7755 | support_mouseslipwheel=yes |
3969 | support_mouseslipwheel=yes |
7756 | support_oldselection=yes |
|
|
7757 | support_cursor_blink=yes |
|
|
7758 | support_text_blink=yes |
3970 | support_text_blink=yes |
7759 | support_pointer_blank=yes |
3971 | support_pointer_blank=yes |
7760 | support_scroll_rxvt=yes |
3972 | support_scroll_rxvt=yes |
7761 | support_scroll_next=yes |
3973 | support_scroll_next=yes |
7762 | support_scroll_xterm=yes |
3974 | support_scroll_xterm=yes |
7763 | support_scroll_plain=yes |
3975 | support_scroll_plain=yes |
7764 | support_utmp=yes |
3976 | support_utmp=yes |
7765 | support_wtmp=yes |
3977 | support_wtmp=yes |
7766 | support_xim=yes |
3978 | support_xim=yes |
7767 | support_xpm=yes |
3979 | support_xpm=yes |
|
|
3980 | support_afterimage=yes |
|
|
3981 | support_afterstep=yes |
7768 | support_xft=yes |
3982 | support_xft=yes |
7769 | support_unicode3=yes |
3983 | support_unicode3=yes |
|
|
3984 | support_combining=yes |
|
|
3985 | #support_8bitctrls=yes |
|
|
3986 | support_iso14755=yes |
|
|
3987 | support_styles=yes |
|
|
3988 | support_perl=yes |
7770 | codesets=all |
3989 | codesets=all |
7771 | fi |
3990 | fi |
|
|
3991 | |
7772 | fi; |
3992 | fi; |
7773 | |
3993 | |
7774 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
3994 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
7775 | if test "${enable_unicode3+set}" = set; then |
3995 | if test "${enable_unicode3+set}" = set; then |
7776 | enableval="$enable_unicode3" |
3996 | enableval="$enable_unicode3" |
7777 | if test x$enableval = xyes; then |
3997 | if test x$enableval = xyes -o x$enableval = xno; then |
7778 | support_unicode3=yes |
3998 | support_unicode3=$enableval |
|
|
3999 | fi |
|
|
4000 | fi; |
|
|
4001 | |
|
|
4002 | # Check whether --enable-combining or --disable-combining was given. |
|
|
4003 | if test "${enable_combining+set}" = set; then |
|
|
4004 | enableval="$enable_combining" |
|
|
4005 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4006 | support_combining=$enableval |
7779 | fi |
4007 | fi |
7780 | fi; |
4008 | fi; |
7781 | |
4009 | |
7782 | # Check whether --enable-xft or --disable-xft was given. |
4010 | # Check whether --enable-xft or --disable-xft was given. |
7783 | if test "${enable_xft+set}" = set; then |
4011 | if test "${enable_xft+set}" = set; then |
7784 | enableval="$enable_xft" |
4012 | enableval="$enable_xft" |
7785 | if test x$enableval = xyes; then |
4013 | if test x$enableval = xyes -o x$enableval = xno; then |
7786 | support_xft=yes |
4014 | support_xft=$enableval |
7787 | fi |
4015 | fi |
7788 | fi; |
4016 | fi; |
7789 | |
4017 | |
7790 | |
|
|
7791 | # Check whether --with-codesets or --without-codesets was given. |
|
|
7792 | if test "${with_codesets+set}" = set; then |
|
|
7793 | withval="$with_codesets" |
|
|
7794 | if test x$enableval = xyes; then |
|
|
7795 | codesets="$withval" |
|
|
7796 | fi |
|
|
7797 | fi; |
|
|
7798 | |
|
|
7799 | |
|
|
7800 | # Check whether --with-encoding or --without-encoding was given. |
|
|
7801 | if test "${with_encoding+set}" = set; then |
|
|
7802 | withval="$with_encoding" |
|
|
7803 | if test x$enableval = xyes; then |
|
|
7804 | withval=`echo $withval | tr 'a-z' 'A-Z'` |
|
|
7805 | |
|
|
7806 | cat >>confdefs.h <<_ACEOF |
|
|
7807 | #define MULTICHAR_ENCODING $withval |
|
|
7808 | _ACEOF |
|
|
7809 | |
|
|
7810 | fi |
|
|
7811 | fi; |
|
|
7812 | |
|
|
7813 | # Check whether --enable-utmp or --disable-utmp was given. |
4018 | # Check whether --enable-font-styles or --disable-font-styles was given. |
7814 | if test "${enable_utmp+set}" = set; then |
4019 | if test "${enable_font_styles+set}" = set; then |
7815 | enableval="$enable_utmp" |
4020 | enableval="$enable_font_styles" |
7816 | if test x$enableval = xyes -o x$enableval = xno; then |
4021 | if test x$enableval = xyes -o x$enableval = xno; then |
7817 | support_utmp=$enableval |
|
|
7818 | fi |
|
|
7819 | fi; |
|
|
7820 | |
|
|
7821 | # Check whether --enable-wtmp or --disable-wtmp was given. |
|
|
7822 | if test "${enable_wtmp+set}" = set; then |
|
|
7823 | enableval="$enable_wtmp" |
|
|
7824 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
7825 | support_wtmp=$enableval |
|
|
7826 | fi |
|
|
7827 | fi; |
|
|
7828 | |
|
|
7829 | # Check whether --enable-lastlog or --disable-lastlog was given. |
|
|
7830 | if test "${enable_lastlog+set}" = set; then |
|
|
7831 | enableval="$enable_lastlog" |
|
|
7832 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
7833 | support_lastlog=$enableval |
4022 | support_styles=$enableval |
7834 | fi |
4023 | fi |
7835 | fi; |
4024 | fi; |
7836 | |
4025 | |
7837 | # Check whether --enable-xpm-background or --disable-xpm-background was given. |
4026 | # Check whether --enable-xpm-background or --disable-xpm-background was given. |
7838 | if test "${enable_xpm_background+set}" = set; then |
4027 | if test "${enable_xpm_background+set}" = set; then |
… | |
… | |
7840 | if test x$enableval = xyes -o x$enableval = xno; then |
4029 | if test x$enableval = xyes -o x$enableval = xno; then |
7841 | support_xpm=$enableval |
4030 | support_xpm=$enableval |
7842 | fi |
4031 | fi |
7843 | fi; |
4032 | fi; |
7844 | |
4033 | |
|
|
4034 | # Check whether --enable-afterimage or --disable-afterimage was given. |
|
|
4035 | if test "${enable_afterimage+set}" = set; then |
|
|
4036 | enableval="$enable_afterimage" |
|
|
4037 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4038 | support_afterimage=$enableval |
|
|
4039 | fi |
|
|
4040 | fi; |
|
|
4041 | |
|
|
4042 | |
|
|
4043 | # Check whether --with-afterimage_config or --without-afterimage_config was given. |
|
|
4044 | if test "${with_afterimage_config+set}" = set; then |
|
|
4045 | withval="$with_afterimage_config" |
|
|
4046 | if test "x$withval" != x; then |
|
|
4047 | afterimage_config=$withval/afterimage-config |
|
|
4048 | fi |
|
|
4049 | fi; |
|
|
4050 | |
|
|
4051 | # Check whether --enable-afterstep or --disable-afterstep was given. |
|
|
4052 | if test "${enable_afterstep+set}" = set; then |
|
|
4053 | enableval="$enable_afterstep" |
|
|
4054 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4055 | support_afterstep=$enableval |
|
|
4056 | fi |
|
|
4057 | fi; |
|
|
4058 | |
7845 | # Check whether --enable-transparency or --disable-transparency was given. |
4059 | # Check whether --enable-transparency or --disable-transparency was given. |
7846 | if test "${enable_transparency+set}" = set; then |
4060 | if test "${enable_transparency+set}" = set; then |
7847 | enableval="$enable_transparency" |
4061 | enableval="$enable_transparency" |
7848 | if test x$enableval = xyes -o x$enableval = xno; then |
4062 | if test x$enableval = xyes -o x$enableval = xno; then |
7849 | support_inheritpixmap=$enableval |
4063 | support_inheritpixmap=$enableval |
7850 | fi |
4064 | fi |
7851 | fi; |
4065 | fi; |
7852 | |
4066 | |
7853 | # Check whether --enable-menubar or --disable-menubar was given. |
4067 | # Check whether --enable-tinting or --disable-tinting was given. |
7854 | if test "${enable_menubar+set}" = set; then |
4068 | if test "${enable_tinting+set}" = set; then |
7855 | enableval="$enable_menubar" |
4069 | enableval="$enable_tinting" |
7856 | if test x$enableval = xyes -o x$enableval = xno; then |
4070 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4071 | support_tinting=$enableval |
|
|
4072 | fi |
|
|
4073 | fi; |
|
|
4074 | |
|
|
4075 | # Check whether --enable-fading or --disable-fading was given. |
|
|
4076 | if test "${enable_fading+set}" = set; then |
|
|
4077 | enableval="$enable_fading" |
|
|
4078 | if test x$enableval = xyes -o x$enableval = xno; then |
7857 | support_menubar=$enableval |
4079 | support_fading=$enableval |
7858 | fi |
4080 | fi |
7859 | fi; |
4081 | fi; |
7860 | |
4082 | |
7861 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
4083 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
7862 | if test "${enable_rxvt_scroll+set}" = set; then |
4084 | if test "${enable_rxvt_scroll+set}" = set; then |
… | |
… | |
7880 | if test x$enableval = xyes -o x$enableval = xno; then |
4102 | if test x$enableval = xyes -o x$enableval = xno; then |
7881 | support_scroll_xterm=$enableval |
4103 | support_scroll_xterm=$enableval |
7882 | fi |
4104 | fi |
7883 | fi; |
4105 | fi; |
7884 | |
4106 | |
|
|
4107 | # Check whether --enable-perl or --disable-perl was given. |
|
|
4108 | if test "${enable_perl+set}" = set; then |
|
|
4109 | enableval="$enable_perl" |
|
|
4110 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4111 | support_perl=$enableval |
|
|
4112 | fi |
|
|
4113 | fi; |
|
|
4114 | |
7885 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
4115 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
7886 | if test "${enable_plain_scroll+set}" = set; then |
4116 | if test "${enable_plain_scroll+set}" = set; then |
7887 | enableval="$enable_plain_scroll" |
4117 | enableval="$enable_plain_scroll" |
7888 | if test x$enableval = xyes -o x$enableval = xno; then |
4118 | if test x$enableval = xyes -o x$enableval = xno; then |
7889 | support_scroll_plain=$enableval |
4119 | support_scroll_plain=$enableval |
7890 | fi |
4120 | fi |
7891 | fi; |
4121 | fi; |
7892 | |
4122 | |
7893 | # Check whether --enable-half-shadow or --disable-half-shadow was given. |
|
|
7894 | if test "${enable_half_shadow+set}" = set; then |
|
|
7895 | enableval="$enable_half_shadow" |
|
|
7896 | if test x$enableval = xyes; then |
|
|
7897 | |
4123 | |
7898 | cat >>confdefs.h <<\_ACEOF |
4124 | # Check whether --with-codesets or --without-codesets was given. |
7899 | #define HALFSHADOW 1 |
4125 | if test "${with_codesets+set}" = set; then |
7900 | _ACEOF |
4126 | withval="$with_codesets" |
7901 | |
4127 | codesets="$withval" |
7902 | fi |
|
|
7903 | fi; |
4128 | fi; |
7904 | |
4129 | |
7905 | # Check whether --enable-xim or --disable-xim was given. |
4130 | # Check whether --enable-xim or --disable-xim was given. |
7906 | if test "${enable_xim+set}" = set; then |
4131 | if test "${enable_xim+set}" = set; then |
7907 | enableval="$enable_xim" |
4132 | enableval="$enable_xim" |
7908 | if test x$enableval = xyes -o x$enableval = xno; then |
4133 | if test x$enableval = xyes -o x$enableval = xno; then |
7909 | support_xim=$enableval |
4134 | support_xim=$enableval |
7910 | fi |
4135 | fi |
7911 | fi; |
4136 | fi; |
7912 | |
4137 | |
7913 | # Check whether --enable-ttygid or --disable-ttygid was given. |
|
|
7914 | if test "${enable_ttygid+set}" = set; then |
|
|
7915 | enableval="$enable_ttygid" |
|
|
7916 | if test x$enableval = xyes; then |
|
|
7917 | |
|
|
7918 | cat >>confdefs.h <<\_ACEOF |
|
|
7919 | #define TTY_GID_SUPPORT 1 |
|
|
7920 | _ACEOF |
|
|
7921 | |
|
|
7922 | fi |
|
|
7923 | fi; |
|
|
7924 | |
|
|
7925 | # Check whether --enable-backspace-key or --disable-backspace-key was given. |
4138 | # Check whether --enable-backspace-key or --disable-backspace-key was given. |
7926 | if test "${enable_backspace_key+set}" = set; then |
4139 | if test "${enable_backspace_key+set}" = set; then |
7927 | enableval="$enable_backspace_key" |
4140 | enableval="$enable_backspace_key" |
7928 | if test x$enableval = xno; then |
4141 | if test x$enableval = xno; then |
7929 | |
4142 | |
… | |
… | |
7956 | _ACEOF |
4169 | _ACEOF |
7957 | |
4170 | |
7958 | fi |
4171 | fi |
7959 | fi; |
4172 | fi; |
7960 | |
4173 | |
7961 | # Check whether --enable-xgetdefault or --disable-xgetdefault was given. |
4174 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
7962 | if test "${enable_xgetdefault+set}" = set; then |
4175 | if test "${enable_8bitctrls+set}" = set; then |
7963 | enableval="$enable_xgetdefault" |
4176 | enableval="$enable_8bitctrls" |
7964 | if test x$enableval = xyes; then |
4177 | if test x$enableval = xyes -o x$enableval = xno; then |
7965 | |
4178 | support_8bitctrls=$enableval |
7966 | cat >>confdefs.h <<\_ACEOF |
|
|
7967 | #define USE_XGETDEFAULT 1 |
|
|
7968 | _ACEOF |
|
|
7969 | |
|
|
7970 | fi |
4179 | fi |
7971 | fi; |
4180 | fi; |
7972 | |
4181 | |
|
|
4182 | RESFALLBACK=Rxvt |
7973 | # Check whether --enable-strings or --disable-strings was given. |
4183 | # Check whether --enable-fallback or --disable-fallback was given. |
7974 | if test "${enable_strings+set}" = set; then |
4184 | if test "${enable_fallback+set}" = set; then |
7975 | enableval="$enable_strings" |
4185 | enableval="$enable_fallback" |
|
|
4186 | |
7976 | if test x$enableval = xyes -o x$enableval = xno; then |
4187 | test x$enableval = xyes && enableval=Rxvt |
7977 | support_addstrings=$enableval |
4188 | test x$enableval = xno && enableval= |
7978 | fi |
4189 | RESFALLBACK="$enableval" |
|
|
4190 | |
7979 | fi; |
4191 | fi; |
|
|
4192 | |
|
|
4193 | if test x$RESFALLBACK != x; then |
|
|
4194 | |
|
|
4195 | cat >>confdefs.h <<_ACEOF |
|
|
4196 | #define RESFALLBACK "$RESFALLBACK" |
|
|
4197 | _ACEOF |
|
|
4198 | |
|
|
4199 | fi |
|
|
4200 | |
|
|
4201 | RESNAME=urxvt |
|
|
4202 | |
|
|
4203 | # Check whether --with-res-name or --without-res-name was given. |
|
|
4204 | if test "${with_res_name+set}" = set; then |
|
|
4205 | withval="$with_res_name" |
|
|
4206 | RESNAME="$withval" |
|
|
4207 | fi; |
|
|
4208 | |
|
|
4209 | cat >>confdefs.h <<_ACEOF |
|
|
4210 | #define RESNAME "$RESNAME" |
|
|
4211 | _ACEOF |
|
|
4212 | |
|
|
4213 | |
|
|
4214 | RESCLASS=URxvt |
|
|
4215 | |
|
|
4216 | # Check whether --with-res-class or --without-res-class was given. |
|
|
4217 | if test "${with_res_class+set}" = set; then |
|
|
4218 | withval="$with_res_class" |
|
|
4219 | RESCLASS="$withval" |
|
|
4220 | fi; |
|
|
4221 | |
|
|
4222 | cat >>confdefs.h <<_ACEOF |
|
|
4223 | #define RESCLASS "$RESCLASS" |
|
|
4224 | _ACEOF |
|
|
4225 | |
|
|
4226 | |
|
|
4227 | RXVTNAME=urxvt |
|
|
4228 | |
|
|
4229 | # Check whether --with-name or --without-name was given. |
|
|
4230 | if test "${with_name+set}" = set; then |
|
|
4231 | withval="$with_name" |
|
|
4232 | RXVTNAME="$withval" |
|
|
4233 | fi; |
|
|
4234 | |
|
|
4235 | cat >>confdefs.h <<_ACEOF |
|
|
4236 | #define RXVTNAME "$RXVTNAME" |
|
|
4237 | _ACEOF |
|
|
4238 | |
|
|
4239 | |
|
|
4240 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
|
|
4241 | |
7980 | |
4242 | |
7981 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
4243 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
7982 | if test "${enable_swapscreen+set}" = set; then |
4244 | if test "${enable_swapscreen+set}" = set; then |
7983 | enableval="$enable_swapscreen" |
4245 | enableval="$enable_swapscreen" |
7984 | if test x$enableval = xno; then |
4246 | if test x$enableval = xno; then |
7985 | |
4247 | |
7986 | cat >>confdefs.h <<\_ACEOF |
4248 | cat >>confdefs.h <<\_ACEOF |
7987 | #define NO_SECONDARY_SCREEN 1 |
4249 | #define NO_SECONDARY_SCREEN 1 |
7988 | _ACEOF |
4250 | _ACEOF |
7989 | |
4251 | |
|
|
4252 | fi |
|
|
4253 | fi; |
|
|
4254 | |
|
|
4255 | # Check whether --enable-iso14755 or --disable-iso14755 was given. |
|
|
4256 | if test "${enable_iso14755+set}" = set; then |
|
|
4257 | enableval="$enable_iso14755" |
|
|
4258 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4259 | support_iso14755=$enableval |
7990 | fi |
4260 | fi |
7991 | fi; |
4261 | fi; |
7992 | |
4262 | |
7993 | # Check whether --enable-frills or --disable-frills was given. |
4263 | # Check whether --enable-frills or --disable-frills was given. |
7994 | if test "${enable_frills+set}" = set; then |
4264 | if test "${enable_frills+set}" = set; then |
… | |
… | |
7996 | if test x$enableval = xyes -o x$enableval = xno; then |
4266 | if test x$enableval = xyes -o x$enableval = xno; then |
7997 | support_frills=$enableval |
4267 | support_frills=$enableval |
7998 | fi |
4268 | fi |
7999 | fi; |
4269 | fi; |
8000 | |
4270 | |
8001 | # Check whether --enable-linespace or --disable-linespace was given. |
|
|
8002 | if test "${enable_linespace+set}" = set; then |
|
|
8003 | enableval="$enable_linespace" |
|
|
8004 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8005 | support_linespace=$enableval |
|
|
8006 | fi |
|
|
8007 | fi; |
|
|
8008 | |
|
|
8009 | # Check whether --enable-24bit or --disable-24bit was given. |
|
|
8010 | if test "${enable_24bit+set}" = set; then |
|
|
8011 | enableval="$enable_24bit" |
|
|
8012 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8013 | support_24bit=$enableval |
|
|
8014 | fi |
|
|
8015 | fi; |
|
|
8016 | |
|
|
8017 | # Check whether --enable-keepscrolling or --disable-keepscrolling was given. |
4271 | # Check whether --enable-keepscrolling or --disable-keepscrolling was given. |
8018 | if test "${enable_keepscrolling+set}" = set; then |
4272 | if test "${enable_keepscrolling+set}" = set; then |
8019 | enableval="$enable_keepscrolling" |
4273 | enableval="$enable_keepscrolling" |
8020 | if test x$enableval = xyes -o x$enableval = xno; then |
4274 | if test x$enableval = xyes -o x$enableval = xno; then |
8021 | support_keepscrolling=$enableval |
4275 | support_keepscrolling=$enableval |
… | |
… | |
8044 | if test x$enableval = xyes -o x$enableval = xno; then |
4298 | if test x$enableval = xyes -o x$enableval = xno; then |
8045 | support_mouseslipwheel=$enableval |
4299 | support_mouseslipwheel=$enableval |
8046 | fi |
4300 | fi |
8047 | fi; |
4301 | fi; |
8048 | |
4302 | |
8049 | # Check whether --enable-old-selection or --disable-old-selection was given. |
|
|
8050 | if test "${enable_old_selection+set}" = set; then |
|
|
8051 | enableval="$enable_old_selection" |
|
|
8052 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8053 | support_oldselection=$enableval |
|
|
8054 | fi |
|
|
8055 | fi; |
|
|
8056 | |
|
|
8057 | # Check whether --enable-new-selection or --disable-new-selection was given. |
|
|
8058 | if test "${enable_new_selection+set}" = set; then |
|
|
8059 | enableval="$enable_new_selection" |
|
|
8060 | if test x$enableval = xno; then |
|
|
8061 | |
|
|
8062 | cat >>confdefs.h <<\_ACEOF |
|
|
8063 | #define NO_NEW_SELECTION 1 |
|
|
8064 | _ACEOF |
|
|
8065 | |
|
|
8066 | fi |
|
|
8067 | fi; |
|
|
8068 | |
|
|
8069 | # Check whether --enable-dmalloc or --disable-dmalloc was given. |
|
|
8070 | if test "${enable_dmalloc+set}" = set; then |
|
|
8071 | enableval="$enable_dmalloc" |
|
|
8072 | if test x$enableval = xyes; then |
|
|
8073 | MALLOC_TYPE=G |
|
|
8074 | DEBUG=-DDEBUG_MALLOC |
|
|
8075 | DLIB="-L/usr/local/lib -ldmalloc" |
|
|
8076 | DINCLUDE=-I/usr/local/include |
|
|
8077 | fi |
|
|
8078 | fi; |
|
|
8079 | |
|
|
8080 | # Check whether --enable-dlmalloc or --disable-dlmalloc was given. |
|
|
8081 | if test "${enable_dlmalloc+set}" = set; then |
|
|
8082 | enableval="$enable_dlmalloc" |
|
|
8083 | if test x$enableval = xyes; then |
|
|
8084 | MALLOC_TYPE=D |
|
|
8085 | DEBUG= |
|
|
8086 | DLIB="-L/usr/local/lib -ldlmalloc" |
|
|
8087 | DINCLUDE= |
|
|
8088 | fi |
|
|
8089 | fi; |
|
|
8090 | |
|
|
8091 | # Check whether --enable-smart-resize or --disable-smart-resize was given. |
4303 | # Check whether --enable-smart-resize or --disable-smart-resize was given. |
8092 | if test "${enable_smart_resize+set}" = set; then |
4304 | if test "${enable_smart_resize+set}" = set; then |
8093 | enableval="$enable_smart_resize" |
4305 | enableval="$enable_smart_resize" |
8094 | if test x$enableval = xyes; then |
4306 | if test x$enableval = xyes; then |
8095 | |
4307 | |
8096 | cat >>confdefs.h <<\_ACEOF |
4308 | cat >>confdefs.h <<\_ACEOF |
8097 | #define SMART_RESIZE 1 |
4309 | #define SMART_RESIZE 1 |
8098 | _ACEOF |
4310 | _ACEOF |
8099 | |
4311 | |
8100 | fi |
|
|
8101 | fi; |
|
|
8102 | |
|
|
8103 | # Check whether --enable-256-color or --disable-256-color was given. |
|
|
8104 | if test "${enable_256_color+set}" = set; then |
|
|
8105 | enableval="$enable_256_color" |
|
|
8106 | if test x$enableval = xyes; then |
|
|
8107 | |
|
|
8108 | cat >>confdefs.h <<\_ACEOF |
|
|
8109 | #define TTY_256COLOR 1 |
|
|
8110 | _ACEOF |
|
|
8111 | |
|
|
8112 | fi |
|
|
8113 | fi; |
|
|
8114 | |
|
|
8115 | # Check whether --enable-cursor-blink or --disable-cursor-blink was given. |
|
|
8116 | if test "${enable_cursor_blink+set}" = set; then |
|
|
8117 | enableval="$enable_cursor_blink" |
|
|
8118 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8119 | support_cursor_blink=$enableval |
|
|
8120 | fi |
4312 | fi |
8121 | fi; |
4313 | fi; |
8122 | |
4314 | |
8123 | # Check whether --enable-text-blink or --disable-text-blink was given. |
4315 | # Check whether --enable-text-blink or --disable-text-blink was given. |
8124 | if test "${enable_text_blink+set}" = set; then |
4316 | if test "${enable_text_blink+set}" = set; then |
… | |
… | |
8161 | terminfo="$withval" |
4353 | terminfo="$withval" |
8162 | fi |
4354 | fi |
8163 | fi; |
4355 | fi; |
8164 | |
4356 | |
8165 | |
4357 | |
8166 | |
|
|
8167 | cat >>confdefs.h <<\_ACEOF |
|
|
8168 | #define PROTOTYPES 1 |
|
|
8169 | _ACEOF |
|
|
8170 | |
|
|
8171 | |
|
|
8172 | if test -z "$CFLAGS"; then |
|
|
8173 | if test -z "$CCOPTS"; then |
|
|
8174 | CCOPTS='-O' |
|
|
8175 | fi |
|
|
8176 | CFLAGS="$CCOPTS" |
|
|
8177 | fi |
|
|
8178 | |
|
|
8179 | # Extract the first word of "mv", so it can be a program name with args. |
4358 | # Extract the first word of "tic", so it can be a program name with args. |
8180 | set dummy mv; ac_word=$2 |
4359 | set dummy tic; ac_word=$2 |
8181 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4360 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8183 | if test "${ac_cv_path_MV+set}" = set; then |
4362 | if test "${ac_cv_path_TIC+set}" = set; then |
8184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8185 | else |
4364 | else |
8186 | case $MV in |
4365 | case $TIC in |
8187 | [\\/]* | ?:[\\/]*) |
4366 | [\\/]* | ?:[\\/]*) |
8188 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
4367 | ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
8189 | ;; |
4368 | ;; |
8190 | *) |
4369 | *) |
8191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8192 | for as_dir in $PATH |
4371 | for as_dir in $PATH |
8193 | do |
4372 | do |
8194 | IFS=$as_save_IFS |
4373 | IFS=$as_save_IFS |
8195 | test -z "$as_dir" && as_dir=. |
4374 | test -z "$as_dir" && as_dir=. |
8196 | for ac_exec_ext in '' $ac_executable_extensions; do |
4375 | for ac_exec_ext in '' $ac_executable_extensions; do |
8197 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4376 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8198 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
4377 | ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" |
8199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8200 | break 2 |
4379 | break 2 |
8201 | fi |
4380 | fi |
8202 | done |
4381 | done |
8203 | done |
4382 | done |
8204 | |
4383 | |
8205 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
|
|
8206 | ;; |
4384 | ;; |
8207 | esac |
4385 | esac |
8208 | fi |
4386 | fi |
8209 | MV=$ac_cv_path_MV |
4387 | TIC=$ac_cv_path_TIC |
8210 | |
4388 | |
8211 | if test -n "$MV"; then |
4389 | if test -n "$TIC"; then |
8212 | echo "$as_me:$LINENO: result: $MV" >&5 |
4390 | echo "$as_me:$LINENO: result: $TIC" >&5 |
8213 | echo "${ECHO_T}$MV" >&6 |
4391 | echo "${ECHO_T}$TIC" >&6 |
8214 | else |
4392 | else |
8215 | echo "$as_me:$LINENO: result: no" >&5 |
4393 | echo "$as_me:$LINENO: result: no" >&5 |
8216 | echo "${ECHO_T}no" >&6 |
4394 | echo "${ECHO_T}no" >&6 |
8217 | fi |
4395 | fi |
8218 | |
4396 | |
8219 | # Extract the first word of "rm", so it can be a program name with args. |
4397 | |
8220 | set dummy rm; ac_word=$2 |
4398 | |
8221 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4399 | |
8222 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4400 | ac_ext=cc |
|
|
4401 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4402 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4403 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4404 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4405 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4406 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
4407 | if test -z "$CXXCPP"; then |
8223 | if test "${ac_cv_path_RM+set}" = set; then |
4408 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
8224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8225 | else |
4410 | else |
8226 | case $RM in |
4411 | # Double quotes because CXXCPP needs to be expanded |
8227 | [\\/]* | ?:[\\/]*) |
4412 | for CXXCPP in "$CXX -E" "/lib/cpp" |
8228 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
4413 | do |
8229 | ;; |
4414 | ac_preproc_ok=false |
8230 | *) |
4415 | for ac_cxx_preproc_warn_flag in '' yes |
8231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8232 | for as_dir in $PATH |
|
|
8233 | do |
4416 | do |
8234 | IFS=$as_save_IFS |
4417 | # Use a header file that comes with gcc, so configuring glibc |
8235 | test -z "$as_dir" && as_dir=. |
4418 | # with a fresh cross-compiler works. |
8236 | for ac_exec_ext in '' $ac_executable_extensions; do |
4419 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8237 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4420 | # <limits.h> exists even on freestanding compilers. |
8238 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
4421 | # On the NeXT, cc -E runs the code through the compiler's parser, |
8239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4422 | # not just through cpp. "Syntax error" is here to catch this case. |
8240 | break 2 |
4423 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4424 | /* confdefs.h. */ |
|
|
4425 | _ACEOF |
|
|
4426 | cat confdefs.h >>conftest.$ac_ext |
|
|
4427 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4428 | /* end confdefs.h. */ |
|
|
4429 | #ifdef __STDC__ |
|
|
4430 | # include <limits.h> |
|
|
4431 | #else |
|
|
4432 | # include <assert.h> |
|
|
4433 | #endif |
|
|
4434 | Syntax error |
|
|
4435 | _ACEOF |
|
|
4436 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4437 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4438 | ac_status=$? |
|
|
4439 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4440 | rm -f conftest.er1 |
|
|
4441 | cat conftest.err >&5 |
|
|
4442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4443 | (exit $ac_status); } >/dev/null; then |
|
|
4444 | if test -s conftest.err; then |
|
|
4445 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4446 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4447 | else |
|
|
4448 | ac_cpp_err= |
8241 | fi |
4449 | fi |
|
|
4450 | else |
|
|
4451 | ac_cpp_err=yes |
|
|
4452 | fi |
|
|
4453 | if test -z "$ac_cpp_err"; then |
|
|
4454 | : |
|
|
4455 | else |
|
|
4456 | echo "$as_me: failed program was:" >&5 |
|
|
4457 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4458 | |
|
|
4459 | # Broken: fails on valid input. |
|
|
4460 | continue |
|
|
4461 | fi |
|
|
4462 | rm -f conftest.err conftest.$ac_ext |
|
|
4463 | |
|
|
4464 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
4465 | # can be detected and how. |
|
|
4466 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4467 | /* confdefs.h. */ |
|
|
4468 | _ACEOF |
|
|
4469 | cat confdefs.h >>conftest.$ac_ext |
|
|
4470 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4471 | /* end confdefs.h. */ |
|
|
4472 | #include <ac_nonexistent.h> |
|
|
4473 | _ACEOF |
|
|
4474 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4475 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4476 | ac_status=$? |
|
|
4477 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4478 | rm -f conftest.er1 |
|
|
4479 | cat conftest.err >&5 |
|
|
4480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4481 | (exit $ac_status); } >/dev/null; then |
|
|
4482 | if test -s conftest.err; then |
|
|
4483 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4484 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4485 | else |
|
|
4486 | ac_cpp_err= |
|
|
4487 | fi |
|
|
4488 | else |
|
|
4489 | ac_cpp_err=yes |
|
|
4490 | fi |
|
|
4491 | if test -z "$ac_cpp_err"; then |
|
|
4492 | # Broken: success on invalid input. |
|
|
4493 | continue |
|
|
4494 | else |
|
|
4495 | echo "$as_me: failed program was:" >&5 |
|
|
4496 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4497 | |
|
|
4498 | # Passes both tests. |
|
|
4499 | ac_preproc_ok=: |
|
|
4500 | break |
|
|
4501 | fi |
|
|
4502 | rm -f conftest.err conftest.$ac_ext |
|
|
4503 | |
8242 | done |
4504 | done |
|
|
4505 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4506 | rm -f conftest.err conftest.$ac_ext |
|
|
4507 | if $ac_preproc_ok; then |
|
|
4508 | break |
|
|
4509 | fi |
|
|
4510 | |
|
|
4511 | done |
|
|
4512 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4513 | |
|
|
4514 | fi |
|
|
4515 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4516 | else |
|
|
4517 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4518 | fi |
|
|
4519 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4520 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
4521 | ac_preproc_ok=false |
|
|
4522 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4523 | do |
|
|
4524 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4525 | # with a fresh cross-compiler works. |
|
|
4526 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4527 | # <limits.h> exists even on freestanding compilers. |
|
|
4528 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4529 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4530 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4531 | /* confdefs.h. */ |
|
|
4532 | _ACEOF |
|
|
4533 | cat confdefs.h >>conftest.$ac_ext |
|
|
4534 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4535 | /* end confdefs.h. */ |
|
|
4536 | #ifdef __STDC__ |
|
|
4537 | # include <limits.h> |
|
|
4538 | #else |
|
|
4539 | # include <assert.h> |
|
|
4540 | #endif |
|
|
4541 | Syntax error |
|
|
4542 | _ACEOF |
|
|
4543 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4544 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4545 | ac_status=$? |
|
|
4546 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4547 | rm -f conftest.er1 |
|
|
4548 | cat conftest.err >&5 |
|
|
4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4550 | (exit $ac_status); } >/dev/null; then |
|
|
4551 | if test -s conftest.err; then |
|
|
4552 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4553 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4554 | else |
|
|
4555 | ac_cpp_err= |
|
|
4556 | fi |
|
|
4557 | else |
|
|
4558 | ac_cpp_err=yes |
|
|
4559 | fi |
|
|
4560 | if test -z "$ac_cpp_err"; then |
|
|
4561 | : |
|
|
4562 | else |
|
|
4563 | echo "$as_me: failed program was:" >&5 |
|
|
4564 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4565 | |
|
|
4566 | # Broken: fails on valid input. |
|
|
4567 | continue |
|
|
4568 | fi |
|
|
4569 | rm -f conftest.err conftest.$ac_ext |
|
|
4570 | |
|
|
4571 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
4572 | # can be detected and how. |
|
|
4573 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4574 | /* confdefs.h. */ |
|
|
4575 | _ACEOF |
|
|
4576 | cat confdefs.h >>conftest.$ac_ext |
|
|
4577 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4578 | /* end confdefs.h. */ |
|
|
4579 | #include <ac_nonexistent.h> |
|
|
4580 | _ACEOF |
|
|
4581 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4582 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4583 | ac_status=$? |
|
|
4584 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4585 | rm -f conftest.er1 |
|
|
4586 | cat conftest.err >&5 |
|
|
4587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4588 | (exit $ac_status); } >/dev/null; then |
|
|
4589 | if test -s conftest.err; then |
|
|
4590 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4591 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4592 | else |
|
|
4593 | ac_cpp_err= |
|
|
4594 | fi |
|
|
4595 | else |
|
|
4596 | ac_cpp_err=yes |
|
|
4597 | fi |
|
|
4598 | if test -z "$ac_cpp_err"; then |
|
|
4599 | # Broken: success on invalid input. |
|
|
4600 | continue |
|
|
4601 | else |
|
|
4602 | echo "$as_me: failed program was:" >&5 |
|
|
4603 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4604 | |
|
|
4605 | # Passes both tests. |
|
|
4606 | ac_preproc_ok=: |
|
|
4607 | break |
|
|
4608 | fi |
|
|
4609 | rm -f conftest.err conftest.$ac_ext |
|
|
4610 | |
8243 | done |
4611 | done |
8244 | |
4612 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
8245 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
4613 | rm -f conftest.err conftest.$ac_ext |
8246 | ;; |
4614 | if $ac_preproc_ok; then |
8247 | esac |
4615 | : |
8248 | fi |
|
|
8249 | RM=$ac_cv_path_RM |
|
|
8250 | |
|
|
8251 | if test -n "$RM"; then |
|
|
8252 | echo "$as_me:$LINENO: result: $RM" >&5 |
|
|
8253 | echo "${ECHO_T}$RM" >&6 |
|
|
8254 | else |
4616 | else |
8255 | echo "$as_me:$LINENO: result: no" >&5 |
4617 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
8256 | echo "${ECHO_T}no" >&6 |
4618 | See \`config.log' for more details." >&5 |
|
|
4619 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
4620 | See \`config.log' for more details." >&2;} |
|
|
4621 | { (exit 1); exit 1; }; } |
8257 | fi |
4622 | fi |
8258 | |
4623 | |
8259 | # Extract the first word of "cp", so it can be a program name with args. |
4624 | ac_ext=cc |
8260 | set dummy cp; ac_word=$2 |
4625 | ac_cpp='$CXXCPP $CPPFLAGS' |
8261 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4626 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4627 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8263 | if test "${ac_cv_path_CP+set}" = set; then |
4628 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
8264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8265 | else |
|
|
8266 | case $CP in |
|
|
8267 | [\\/]* | ?:[\\/]*) |
|
|
8268 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
|
|
8269 | ;; |
|
|
8270 | *) |
|
|
8271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8272 | for as_dir in $PATH |
|
|
8273 | do |
|
|
8274 | IFS=$as_save_IFS |
|
|
8275 | test -z "$as_dir" && as_dir=. |
|
|
8276 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8277 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8278 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
|
|
8279 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8280 | break 2 |
|
|
8281 | fi |
|
|
8282 | done |
|
|
8283 | done |
|
|
8284 | |
|
|
8285 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
|
|
8286 | ;; |
|
|
8287 | esac |
|
|
8288 | fi |
|
|
8289 | CP=$ac_cv_path_CP |
|
|
8290 | |
|
|
8291 | if test -n "$CP"; then |
|
|
8292 | echo "$as_me:$LINENO: result: $CP" >&5 |
|
|
8293 | echo "${ECHO_T}$CP" >&6 |
|
|
8294 | else |
|
|
8295 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
8296 | echo "${ECHO_T}no" >&6 |
|
|
8297 | fi |
|
|
8298 | |
|
|
8299 | # Extract the first word of "ln", so it can be a program name with args. |
|
|
8300 | set dummy ln; ac_word=$2 |
|
|
8301 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
8302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
8303 | if test "${ac_cv_path_LN+set}" = set; then |
|
|
8304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8305 | else |
|
|
8306 | case $LN in |
|
|
8307 | [\\/]* | ?:[\\/]*) |
|
|
8308 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
|
|
8309 | ;; |
|
|
8310 | *) |
|
|
8311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8312 | for as_dir in $PATH |
|
|
8313 | do |
|
|
8314 | IFS=$as_save_IFS |
|
|
8315 | test -z "$as_dir" && as_dir=. |
|
|
8316 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8317 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8318 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
|
|
8319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8320 | break 2 |
|
|
8321 | fi |
|
|
8322 | done |
|
|
8323 | done |
|
|
8324 | |
|
|
8325 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
|
|
8326 | ;; |
|
|
8327 | esac |
|
|
8328 | fi |
|
|
8329 | LN=$ac_cv_path_LN |
|
|
8330 | |
|
|
8331 | if test -n "$LN"; then |
|
|
8332 | echo "$as_me:$LINENO: result: $LN" >&5 |
|
|
8333 | echo "${ECHO_T}$LN" >&6 |
|
|
8334 | else |
|
|
8335 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
8336 | echo "${ECHO_T}no" >&6 |
|
|
8337 | fi |
|
|
8338 | |
|
|
8339 | # Extract the first word of "sed", so it can be a program name with args. |
|
|
8340 | set dummy sed; ac_word=$2 |
|
|
8341 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
8342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
8343 | if test "${ac_cv_path_SED+set}" = set; then |
|
|
8344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8345 | else |
|
|
8346 | case $SED in |
|
|
8347 | [\\/]* | ?:[\\/]*) |
|
|
8348 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
|
|
8349 | ;; |
|
|
8350 | *) |
|
|
8351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8352 | for as_dir in $PATH |
|
|
8353 | do |
|
|
8354 | IFS=$as_save_IFS |
|
|
8355 | test -z "$as_dir" && as_dir=. |
|
|
8356 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8357 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8358 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
|
|
8359 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8360 | break 2 |
|
|
8361 | fi |
|
|
8362 | done |
|
|
8363 | done |
|
|
8364 | |
|
|
8365 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
|
|
8366 | ;; |
|
|
8367 | esac |
|
|
8368 | fi |
|
|
8369 | SED=$ac_cv_path_SED |
|
|
8370 | |
|
|
8371 | if test -n "$SED"; then |
|
|
8372 | echo "$as_me:$LINENO: result: $SED" >&5 |
|
|
8373 | echo "${ECHO_T}$SED" >&6 |
|
|
8374 | else |
|
|
8375 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
8376 | echo "${ECHO_T}no" >&6 |
|
|
8377 | fi |
|
|
8378 | |
|
|
8379 | # Extract the first word of "echo", so it can be a program name with args. |
|
|
8380 | set dummy echo; ac_word=$2 |
|
|
8381 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
8382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
8383 | if test "${ac_cv_path_ECHO+set}" = set; then |
|
|
8384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8385 | else |
|
|
8386 | case $ECHO in |
|
|
8387 | [\\/]* | ?:[\\/]*) |
|
|
8388 | ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. |
|
|
8389 | ;; |
|
|
8390 | *) |
|
|
8391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8392 | for as_dir in $PATH |
|
|
8393 | do |
|
|
8394 | IFS=$as_save_IFS |
|
|
8395 | test -z "$as_dir" && as_dir=. |
|
|
8396 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8397 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8398 | ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" |
|
|
8399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8400 | break 2 |
|
|
8401 | fi |
|
|
8402 | done |
|
|
8403 | done |
|
|
8404 | |
|
|
8405 | test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" |
|
|
8406 | ;; |
|
|
8407 | esac |
|
|
8408 | fi |
|
|
8409 | ECHO=$ac_cv_path_ECHO |
|
|
8410 | |
|
|
8411 | if test -n "$ECHO"; then |
|
|
8412 | echo "$as_me:$LINENO: result: $ECHO" >&5 |
|
|
8413 | echo "${ECHO_T}$ECHO" >&6 |
|
|
8414 | else |
|
|
8415 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
8416 | echo "${ECHO_T}no" >&6 |
|
|
8417 | fi |
|
|
8418 | |
|
|
8419 | # Extract the first word of "cmp", so it can be a program name with args. |
|
|
8420 | set dummy cmp; ac_word=$2 |
|
|
8421 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
8422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
8423 | if test "${ac_cv_path_CMP+set}" = set; then |
|
|
8424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8425 | else |
|
|
8426 | case $CMP in |
|
|
8427 | [\\/]* | ?:[\\/]*) |
|
|
8428 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
|
|
8429 | ;; |
|
|
8430 | *) |
|
|
8431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8432 | for as_dir in $PATH |
|
|
8433 | do |
|
|
8434 | IFS=$as_save_IFS |
|
|
8435 | test -z "$as_dir" && as_dir=. |
|
|
8436 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8437 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8438 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
|
|
8439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8440 | break 2 |
|
|
8441 | fi |
|
|
8442 | done |
|
|
8443 | done |
|
|
8444 | |
|
|
8445 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
|
|
8446 | ;; |
|
|
8447 | esac |
|
|
8448 | fi |
|
|
8449 | CMP=$ac_cv_path_CMP |
|
|
8450 | |
|
|
8451 | if test -n "$CMP"; then |
|
|
8452 | echo "$as_me:$LINENO: result: $CMP" >&5 |
|
|
8453 | echo "${ECHO_T}$CMP" >&6 |
|
|
8454 | else |
|
|
8455 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
8456 | echo "${ECHO_T}no" >&6 |
|
|
8457 | fi |
|
|
8458 | |
|
|
8459 | # Extract the first word of "tbl", so it can be a program name with args. |
|
|
8460 | set dummy tbl; ac_word=$2 |
|
|
8461 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
8462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
8463 | if test "${ac_cv_path_TBL+set}" = set; then |
|
|
8464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8465 | else |
|
|
8466 | case $TBL in |
|
|
8467 | [\\/]* | ?:[\\/]*) |
|
|
8468 | ac_cv_path_TBL="$TBL" # Let the user override the test with a path. |
|
|
8469 | ;; |
|
|
8470 | *) |
|
|
8471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8472 | for as_dir in $PATH |
|
|
8473 | do |
|
|
8474 | IFS=$as_save_IFS |
|
|
8475 | test -z "$as_dir" && as_dir=. |
|
|
8476 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8477 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8478 | ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" |
|
|
8479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8480 | break 2 |
|
|
8481 | fi |
|
|
8482 | done |
|
|
8483 | done |
|
|
8484 | |
|
|
8485 | ;; |
|
|
8486 | esac |
|
|
8487 | fi |
|
|
8488 | TBL=$ac_cv_path_TBL |
|
|
8489 | |
|
|
8490 | if test -n "$TBL"; then |
|
|
8491 | echo "$as_me:$LINENO: result: $TBL" >&5 |
|
|
8492 | echo "${ECHO_T}$TBL" >&6 |
|
|
8493 | else |
|
|
8494 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
8495 | echo "${ECHO_T}no" >&6 |
|
|
8496 | fi |
|
|
8497 | |
|
|
8498 | |
|
|
8499 | |
4629 | |
8500 | |
4630 | |
8501 | echo "$as_me:$LINENO: checking for X" >&5 |
4631 | echo "$as_me:$LINENO: checking for X" >&5 |
8502 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
4632 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
8503 | |
4633 | |
… | |
… | |
8610 | rm -f conftest.er1 |
4740 | rm -f conftest.er1 |
8611 | cat conftest.err >&5 |
4741 | cat conftest.err >&5 |
8612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8613 | (exit $ac_status); } >/dev/null; then |
4743 | (exit $ac_status); } >/dev/null; then |
8614 | if test -s conftest.err; then |
4744 | if test -s conftest.err; then |
8615 | ac_cpp_err=$ac_c_preproc_warn_flag |
4745 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
8616 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4746 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
8617 | else |
4747 | else |
8618 | ac_cpp_err= |
4748 | ac_cpp_err= |
8619 | fi |
4749 | fi |
8620 | else |
4750 | else |
8621 | ac_cpp_err=yes |
4751 | ac_cpp_err=yes |
… | |
… | |
8665 | grep -v '^ *+' conftest.er1 >conftest.err |
4795 | grep -v '^ *+' conftest.er1 >conftest.err |
8666 | rm -f conftest.er1 |
4796 | rm -f conftest.er1 |
8667 | cat conftest.err >&5 |
4797 | cat conftest.err >&5 |
8668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8669 | (exit $ac_status); } && |
4799 | (exit $ac_status); } && |
8670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4800 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
4801 | || test ! -s conftest.err' |
8671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8672 | (eval $ac_try) 2>&5 |
4803 | (eval $ac_try) 2>&5 |
8673 | ac_status=$? |
4804 | ac_status=$? |
8674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8675 | (exit $ac_status); }; } && |
4806 | (exit $ac_status); }; } && |
… | |
… | |
8776 | grep -v '^ *+' conftest.er1 >conftest.err |
4907 | grep -v '^ *+' conftest.er1 >conftest.err |
8777 | rm -f conftest.er1 |
4908 | rm -f conftest.er1 |
8778 | cat conftest.err >&5 |
4909 | cat conftest.err >&5 |
8779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8780 | (exit $ac_status); } && |
4911 | (exit $ac_status); } && |
8781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4912 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
4913 | || test ! -s conftest.err' |
8782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8783 | (eval $ac_try) 2>&5 |
4915 | (eval $ac_try) 2>&5 |
8784 | ac_status=$? |
4916 | ac_status=$? |
8785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8786 | (exit $ac_status); }; } && |
4918 | (exit $ac_status); }; } && |
… | |
… | |
8827 | grep -v '^ *+' conftest.er1 >conftest.err |
4959 | grep -v '^ *+' conftest.er1 >conftest.err |
8828 | rm -f conftest.er1 |
4960 | rm -f conftest.er1 |
8829 | cat conftest.err >&5 |
4961 | cat conftest.err >&5 |
8830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8831 | (exit $ac_status); } && |
4963 | (exit $ac_status); } && |
8832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4964 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
4965 | || test ! -s conftest.err' |
8833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8834 | (eval $ac_try) 2>&5 |
4967 | (eval $ac_try) 2>&5 |
8835 | ac_status=$? |
4968 | ac_status=$? |
8836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8837 | (exit $ac_status); }; } && |
4970 | (exit $ac_status); }; } && |
… | |
… | |
8903 | grep -v '^ *+' conftest.er1 >conftest.err |
5036 | grep -v '^ *+' conftest.er1 >conftest.err |
8904 | rm -f conftest.er1 |
5037 | rm -f conftest.er1 |
8905 | cat conftest.err >&5 |
5038 | cat conftest.err >&5 |
8906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8907 | (exit $ac_status); } && |
5040 | (exit $ac_status); } && |
8908 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5041 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5042 | || test ! -s conftest.err' |
8909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8910 | (eval $ac_try) 2>&5 |
5044 | (eval $ac_try) 2>&5 |
8911 | ac_status=$? |
5045 | ac_status=$? |
8912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8913 | (exit $ac_status); }; } && |
5047 | (exit $ac_status); }; } && |
… | |
… | |
8958 | grep -v '^ *+' conftest.er1 >conftest.err |
5092 | grep -v '^ *+' conftest.er1 >conftest.err |
8959 | rm -f conftest.er1 |
5093 | rm -f conftest.er1 |
8960 | cat conftest.err >&5 |
5094 | cat conftest.err >&5 |
8961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8962 | (exit $ac_status); } && |
5096 | (exit $ac_status); } && |
8963 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5097 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5098 | || test ! -s conftest.err' |
8964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8965 | (eval $ac_try) 2>&5 |
5100 | (eval $ac_try) 2>&5 |
8966 | ac_status=$? |
5101 | ac_status=$? |
8967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8968 | (exit $ac_status); }; } && |
5103 | (exit $ac_status); }; } && |
… | |
… | |
9026 | grep -v '^ *+' conftest.er1 >conftest.err |
5161 | grep -v '^ *+' conftest.er1 >conftest.err |
9027 | rm -f conftest.er1 |
5162 | rm -f conftest.er1 |
9028 | cat conftest.err >&5 |
5163 | cat conftest.err >&5 |
9029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9030 | (exit $ac_status); } && |
5165 | (exit $ac_status); } && |
9031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5166 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5167 | || test ! -s conftest.err' |
9032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9033 | (eval $ac_try) 2>&5 |
5169 | (eval $ac_try) 2>&5 |
9034 | ac_status=$? |
5170 | ac_status=$? |
9035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9036 | (exit $ac_status); }; } && |
5172 | (exit $ac_status); }; } && |
… | |
… | |
9134 | grep -v '^ *+' conftest.er1 >conftest.err |
5270 | grep -v '^ *+' conftest.er1 >conftest.err |
9135 | rm -f conftest.er1 |
5271 | rm -f conftest.er1 |
9136 | cat conftest.err >&5 |
5272 | cat conftest.err >&5 |
9137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9138 | (exit $ac_status); } && |
5274 | (exit $ac_status); } && |
9139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5275 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5276 | || test ! -s conftest.err' |
9140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9141 | (eval $ac_try) 2>&5 |
5278 | (eval $ac_try) 2>&5 |
9142 | ac_status=$? |
5279 | ac_status=$? |
9143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9144 | (exit $ac_status); }; } && |
5281 | (exit $ac_status); }; } && |
… | |
… | |
9198 | grep -v '^ *+' conftest.er1 >conftest.err |
5335 | grep -v '^ *+' conftest.er1 >conftest.err |
9199 | rm -f conftest.er1 |
5336 | rm -f conftest.er1 |
9200 | cat conftest.err >&5 |
5337 | cat conftest.err >&5 |
9201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9202 | (exit $ac_status); } && |
5339 | (exit $ac_status); } && |
9203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5340 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5341 | || test ! -s conftest.err' |
9204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9205 | (eval $ac_try) 2>&5 |
5343 | (eval $ac_try) 2>&5 |
9206 | ac_status=$? |
5344 | ac_status=$? |
9207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9208 | (exit $ac_status); }; } && |
5346 | (exit $ac_status); }; } && |
… | |
… | |
9266 | grep -v '^ *+' conftest.er1 >conftest.err |
5404 | grep -v '^ *+' conftest.er1 >conftest.err |
9267 | rm -f conftest.er1 |
5405 | rm -f conftest.er1 |
9268 | cat conftest.err >&5 |
5406 | cat conftest.err >&5 |
9269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9270 | (exit $ac_status); } && |
5408 | (exit $ac_status); } && |
9271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5409 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5410 | || test ! -s conftest.err' |
9272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9273 | (eval $ac_try) 2>&5 |
5412 | (eval $ac_try) 2>&5 |
9274 | ac_status=$? |
5413 | ac_status=$? |
9275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9276 | (exit $ac_status); }; } && |
5415 | (exit $ac_status); }; } && |
… | |
… | |
9370 | grep -v '^ *+' conftest.er1 >conftest.err |
5509 | grep -v '^ *+' conftest.er1 >conftest.err |
9371 | rm -f conftest.er1 |
5510 | rm -f conftest.er1 |
9372 | cat conftest.err >&5 |
5511 | cat conftest.err >&5 |
9373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9374 | (exit $ac_status); } && |
5513 | (exit $ac_status); } && |
9375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5514 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5515 | || test ! -s conftest.err' |
9376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9377 | (eval $ac_try) 2>&5 |
5517 | (eval $ac_try) 2>&5 |
9378 | ac_status=$? |
5518 | ac_status=$? |
9379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9380 | (exit $ac_status); }; } && |
5520 | (exit $ac_status); }; } && |
… | |
… | |
9434 | grep -v '^ *+' conftest.er1 >conftest.err |
5574 | grep -v '^ *+' conftest.er1 >conftest.err |
9435 | rm -f conftest.er1 |
5575 | rm -f conftest.er1 |
9436 | cat conftest.err >&5 |
5576 | cat conftest.err >&5 |
9437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9438 | (exit $ac_status); } && |
5578 | (exit $ac_status); } && |
9439 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5579 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5580 | || test ! -s conftest.err' |
9440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9441 | (eval $ac_try) 2>&5 |
5582 | (eval $ac_try) 2>&5 |
9442 | ac_status=$? |
5583 | ac_status=$? |
9443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9444 | (exit $ac_status); }; } && |
5585 | (exit $ac_status); }; } && |
… | |
… | |
9531 | grep -v '^ *+' conftest.er1 >conftest.err |
5672 | grep -v '^ *+' conftest.er1 >conftest.err |
9532 | rm -f conftest.er1 |
5673 | rm -f conftest.er1 |
9533 | cat conftest.err >&5 |
5674 | cat conftest.err >&5 |
9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9535 | (exit $ac_status); } && |
5676 | (exit $ac_status); } && |
9536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5677 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5678 | || test ! -s conftest.err' |
9537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9538 | (eval $ac_try) 2>&5 |
5680 | (eval $ac_try) 2>&5 |
9539 | ac_status=$? |
5681 | ac_status=$? |
9540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9541 | (exit $ac_status); }; } && |
5683 | (exit $ac_status); }; } && |
… | |
… | |
9595 | grep -v '^ *+' conftest.er1 >conftest.err |
5737 | grep -v '^ *+' conftest.er1 >conftest.err |
9596 | rm -f conftest.er1 |
5738 | rm -f conftest.er1 |
9597 | cat conftest.err >&5 |
5739 | cat conftest.err >&5 |
9598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9599 | (exit $ac_status); } && |
5741 | (exit $ac_status); } && |
9600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5742 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5743 | || test ! -s conftest.err' |
9601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9602 | (eval $ac_try) 2>&5 |
5745 | (eval $ac_try) 2>&5 |
9603 | ac_status=$? |
5746 | ac_status=$? |
9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9605 | (exit $ac_status); }; } && |
5748 | (exit $ac_status); }; } && |
… | |
… | |
9692 | grep -v '^ *+' conftest.er1 >conftest.err |
5835 | grep -v '^ *+' conftest.er1 >conftest.err |
9693 | rm -f conftest.er1 |
5836 | rm -f conftest.er1 |
9694 | cat conftest.err >&5 |
5837 | cat conftest.err >&5 |
9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9696 | (exit $ac_status); } && |
5839 | (exit $ac_status); } && |
9697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5840 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5841 | || test ! -s conftest.err' |
9698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9699 | (eval $ac_try) 2>&5 |
5843 | (eval $ac_try) 2>&5 |
9700 | ac_status=$? |
5844 | ac_status=$? |
9701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9702 | (exit $ac_status); }; } && |
5846 | (exit $ac_status); }; } && |
… | |
… | |
9756 | grep -v '^ *+' conftest.er1 >conftest.err |
5900 | grep -v '^ *+' conftest.er1 >conftest.err |
9757 | rm -f conftest.er1 |
5901 | rm -f conftest.er1 |
9758 | cat conftest.err >&5 |
5902 | cat conftest.err >&5 |
9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9760 | (exit $ac_status); } && |
5904 | (exit $ac_status); } && |
9761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5905 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5906 | || test ! -s conftest.err' |
9762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9763 | (eval $ac_try) 2>&5 |
5908 | (eval $ac_try) 2>&5 |
9764 | ac_status=$? |
5909 | ac_status=$? |
9765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9766 | (exit $ac_status); }; } && |
5911 | (exit $ac_status); }; } && |
… | |
… | |
9835 | grep -v '^ *+' conftest.er1 >conftest.err |
5980 | grep -v '^ *+' conftest.er1 >conftest.err |
9836 | rm -f conftest.er1 |
5981 | rm -f conftest.er1 |
9837 | cat conftest.err >&5 |
5982 | cat conftest.err >&5 |
9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9839 | (exit $ac_status); } && |
5984 | (exit $ac_status); } && |
9840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5985 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5986 | || test ! -s conftest.err' |
9841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9842 | (eval $ac_try) 2>&5 |
5988 | (eval $ac_try) 2>&5 |
9843 | ac_status=$? |
5989 | ac_status=$? |
9844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9845 | (exit $ac_status); }; } && |
5991 | (exit $ac_status); }; } && |
… | |
… | |
9870 | |
6016 | |
9871 | fi |
6017 | fi |
9872 | |
6018 | |
9873 | |
6019 | |
9874 | |
6020 | |
|
|
6021 | LIBAFTERIMAGE_CFLAGS= |
|
|
6022 | AFTERIMAGE_LIBS= |
|
|
6023 | have_afterimage= |
|
|
6024 | |
9875 | if test x$support_xpm = xyes; then |
6025 | if test x$support_afterimage = xyes; then |
|
|
6026 | support_afterimage=no |
|
|
6027 | |
|
|
6028 | if test "x$afterimage_config" = "x" ; then |
|
|
6029 | # Extract the first word of "afterimage-config", so it can be a program name with args. |
|
|
6030 | set dummy afterimage-config; ac_word=$2 |
|
|
6031 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
6032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
6033 | if test "${ac_cv_path_afterimage_config+set}" = set; then |
|
|
6034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6035 | else |
|
|
6036 | case $afterimage_config in |
|
|
6037 | [\\/]* | ?:[\\/]*) |
|
|
6038 | ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path. |
|
|
6039 | ;; |
|
|
6040 | *) |
|
|
6041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
6042 | for as_dir in $PATH |
|
|
6043 | do |
|
|
6044 | IFS=$as_save_IFS |
|
|
6045 | test -z "$as_dir" && as_dir=. |
|
|
6046 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
6047 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
6048 | ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext" |
|
|
6049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
6050 | break 2 |
|
|
6051 | fi |
|
|
6052 | done |
|
|
6053 | done |
|
|
6054 | |
|
|
6055 | test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no" |
|
|
6056 | ;; |
|
|
6057 | esac |
|
|
6058 | fi |
|
|
6059 | afterimage_config=$ac_cv_path_afterimage_config |
|
|
6060 | |
|
|
6061 | if test -n "$afterimage_config"; then |
|
|
6062 | echo "$as_me:$LINENO: result: $afterimage_config" >&5 |
|
|
6063 | echo "${ECHO_T}$afterimage_config" >&6 |
|
|
6064 | else |
|
|
6065 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
6066 | echo "${ECHO_T}no" >&6 |
|
|
6067 | fi |
|
|
6068 | |
|
|
6069 | fi |
|
|
6070 | |
|
|
6071 | echo "$as_me:$LINENO: checking for libAfterImage" >&5 |
|
|
6072 | echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6 |
|
|
6073 | if $afterimage_config --version >/dev/null 2>&1 ; then |
|
|
6074 | LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
|
|
6075 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
|
|
6076 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
|
|
6077 | support_afterimage=yes |
|
|
6078 | fi |
|
|
6079 | fi |
|
|
6080 | |
|
|
6081 | if test "x$support_afterimage" = "xyes"; then |
|
|
6082 | echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5 |
|
|
6083 | echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6 |
|
|
6084 | else |
|
|
6085 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
6086 | echo "${ECHO_T}no" >&6 |
|
|
6087 | fi |
|
|
6088 | fi |
|
|
6089 | |
|
|
6090 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
9876 | |
6091 | |
9877 | |
6092 | |
9878 | |
6093 | |
9879 | # Initialize some more variables set by options. |
6094 | # Initialize some more variables set by options. |
9880 | # The variables have the same names as the options, with |
6095 | # The variables have the same names as the options, with |
… | |
… | |
9951 | rm -f conftest.er1 |
6166 | rm -f conftest.er1 |
9952 | cat conftest.err >&5 |
6167 | cat conftest.err >&5 |
9953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9954 | (exit $ac_status); } >/dev/null; then |
6169 | (exit $ac_status); } >/dev/null; then |
9955 | if test -s conftest.err; then |
6170 | if test -s conftest.err; then |
9956 | ac_cpp_err=$ac_c_preproc_warn_flag |
6171 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
9957 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6172 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
9958 | else |
6173 | else |
9959 | ac_cpp_err= |
6174 | ac_cpp_err= |
9960 | fi |
6175 | fi |
9961 | else |
6176 | else |
9962 | ac_cpp_err=yes |
6177 | ac_cpp_err=yes |
… | |
… | |
10051 | grep -v '^ *+' conftest.er1 >conftest.err |
6266 | grep -v '^ *+' conftest.er1 >conftest.err |
10052 | rm -f conftest.er1 |
6267 | rm -f conftest.er1 |
10053 | cat conftest.err >&5 |
6268 | cat conftest.err >&5 |
10054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10055 | (exit $ac_status); } && |
6270 | (exit $ac_status); } && |
10056 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6271 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
6272 | || test ! -s conftest.err' |
10057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10058 | (eval $ac_try) 2>&5 |
6274 | (eval $ac_try) 2>&5 |
10059 | ac_status=$? |
6275 | ac_status=$? |
10060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10061 | (exit $ac_status); }; } && |
6277 | (exit $ac_status); }; } && |
… | |
… | |
10163 | rm -f conftest.er1 |
6379 | rm -f conftest.er1 |
10164 | cat conftest.err >&5 |
6380 | cat conftest.err >&5 |
10165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10166 | (exit $ac_status); } >/dev/null; then |
6382 | (exit $ac_status); } >/dev/null; then |
10167 | if test -s conftest.err; then |
6383 | if test -s conftest.err; then |
10168 | ac_cpp_err=$ac_c_preproc_warn_flag |
6384 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
10169 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6385 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
10170 | else |
6386 | else |
10171 | ac_cpp_err= |
6387 | ac_cpp_err= |
10172 | fi |
6388 | fi |
10173 | else |
6389 | else |
10174 | ac_cpp_err=yes |
6390 | ac_cpp_err=yes |
… | |
… | |
10265 | grep -v '^ *+' conftest.er1 >conftest.err |
6481 | grep -v '^ *+' conftest.er1 >conftest.err |
10266 | rm -f conftest.er1 |
6482 | rm -f conftest.er1 |
10267 | cat conftest.err >&5 |
6483 | cat conftest.err >&5 |
10268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10269 | (exit $ac_status); } && |
6485 | (exit $ac_status); } && |
10270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6486 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
6487 | || test ! -s conftest.err' |
10271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10272 | (eval $ac_try) 2>&5 |
6489 | (eval $ac_try) 2>&5 |
10273 | ac_status=$? |
6490 | ac_status=$? |
10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10275 | (exit $ac_status); }; } && |
6492 | (exit $ac_status); }; } && |
… | |
… | |
10296 | #define HAVE_SYS_WAIT_H 1 |
6513 | #define HAVE_SYS_WAIT_H 1 |
10297 | _ACEOF |
6514 | _ACEOF |
10298 | |
6515 | |
10299 | fi |
6516 | fi |
10300 | |
6517 | |
|
|
6518 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6519 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
6520 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6522 | else |
|
|
6523 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6524 | /* confdefs.h. */ |
|
|
6525 | _ACEOF |
|
|
6526 | cat confdefs.h >>conftest.$ac_ext |
|
|
6527 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6528 | /* end confdefs.h. */ |
|
|
6529 | #include <stdlib.h> |
|
|
6530 | #include <stdarg.h> |
|
|
6531 | #include <string.h> |
|
|
6532 | #include <float.h> |
|
|
6533 | |
|
|
6534 | int |
|
|
6535 | main () |
|
|
6536 | { |
|
|
6537 | |
|
|
6538 | ; |
|
|
6539 | return 0; |
|
|
6540 | } |
|
|
6541 | _ACEOF |
|
|
6542 | rm -f conftest.$ac_objext |
|
|
6543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
6544 | (eval $ac_compile) 2>conftest.er1 |
|
|
6545 | ac_status=$? |
|
|
6546 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6547 | rm -f conftest.er1 |
|
|
6548 | cat conftest.err >&5 |
|
|
6549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6550 | (exit $ac_status); } && |
|
|
6551 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
6552 | || test ! -s conftest.err' |
|
|
6553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6554 | (eval $ac_try) 2>&5 |
|
|
6555 | ac_status=$? |
|
|
6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6557 | (exit $ac_status); }; } && |
|
|
6558 | { ac_try='test -s conftest.$ac_objext' |
|
|
6559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6560 | (eval $ac_try) 2>&5 |
|
|
6561 | ac_status=$? |
|
|
6562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6563 | (exit $ac_status); }; }; then |
|
|
6564 | ac_cv_header_stdc=yes |
|
|
6565 | else |
|
|
6566 | echo "$as_me: failed program was:" >&5 |
|
|
6567 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6568 | |
|
|
6569 | ac_cv_header_stdc=no |
|
|
6570 | fi |
|
|
6571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6572 | |
|
|
6573 | if test $ac_cv_header_stdc = yes; then |
|
|
6574 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
6575 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6576 | /* confdefs.h. */ |
|
|
6577 | _ACEOF |
|
|
6578 | cat confdefs.h >>conftest.$ac_ext |
|
|
6579 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6580 | /* end confdefs.h. */ |
|
|
6581 | #include <string.h> |
|
|
6582 | |
|
|
6583 | _ACEOF |
|
|
6584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6585 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
6586 | : |
|
|
6587 | else |
|
|
6588 | ac_cv_header_stdc=no |
|
|
6589 | fi |
|
|
6590 | rm -f conftest* |
|
|
6591 | |
|
|
6592 | fi |
|
|
6593 | |
|
|
6594 | if test $ac_cv_header_stdc = yes; then |
|
|
6595 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
6596 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6597 | /* confdefs.h. */ |
|
|
6598 | _ACEOF |
|
|
6599 | cat confdefs.h >>conftest.$ac_ext |
|
|
6600 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6601 | /* end confdefs.h. */ |
|
|
6602 | #include <stdlib.h> |
|
|
6603 | |
|
|
6604 | _ACEOF |
|
|
6605 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6606 | $EGREP "free" >/dev/null 2>&1; then |
|
|
6607 | : |
|
|
6608 | else |
|
|
6609 | ac_cv_header_stdc=no |
|
|
6610 | fi |
|
|
6611 | rm -f conftest* |
|
|
6612 | |
|
|
6613 | fi |
|
|
6614 | |
|
|
6615 | if test $ac_cv_header_stdc = yes; then |
|
|
6616 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
6617 | if test "$cross_compiling" = yes; then |
|
|
6618 | : |
|
|
6619 | else |
|
|
6620 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6621 | /* confdefs.h. */ |
|
|
6622 | _ACEOF |
|
|
6623 | cat confdefs.h >>conftest.$ac_ext |
|
|
6624 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6625 | /* end confdefs.h. */ |
|
|
6626 | #include <ctype.h> |
|
|
6627 | #if ((' ' & 0x0FF) == 0x020) |
|
|
6628 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
6629 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
6630 | #else |
|
|
6631 | # define ISLOWER(c) \ |
|
|
6632 | (('a' <= (c) && (c) <= 'i') \ |
|
|
6633 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
6634 | || ('s' <= (c) && (c) <= 'z')) |
|
|
6635 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
6636 | #endif |
|
|
6637 | |
|
|
6638 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
6639 | int |
|
|
6640 | main () |
|
|
6641 | { |
|
|
6642 | int i; |
|
|
6643 | for (i = 0; i < 256; i++) |
|
|
6644 | if (XOR (islower (i), ISLOWER (i)) |
|
|
6645 | || toupper (i) != TOUPPER (i)) |
|
|
6646 | exit(2); |
|
|
6647 | exit (0); |
|
|
6648 | } |
|
|
6649 | _ACEOF |
|
|
6650 | rm -f conftest$ac_exeext |
|
|
6651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6652 | (eval $ac_link) 2>&5 |
|
|
6653 | ac_status=$? |
|
|
6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6655 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
6656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6657 | (eval $ac_try) 2>&5 |
|
|
6658 | ac_status=$? |
|
|
6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6660 | (exit $ac_status); }; }; then |
|
|
6661 | : |
|
|
6662 | else |
|
|
6663 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
6664 | echo "$as_me: failed program was:" >&5 |
|
|
6665 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6666 | |
|
|
6667 | ( exit $ac_status ) |
|
|
6668 | ac_cv_header_stdc=no |
|
|
6669 | fi |
|
|
6670 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
6671 | fi |
|
|
6672 | fi |
|
|
6673 | fi |
|
|
6674 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
6675 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
6676 | if test $ac_cv_header_stdc = yes; then |
|
|
6677 | |
|
|
6678 | cat >>confdefs.h <<\_ACEOF |
|
|
6679 | #define STDC_HEADERS 1 |
|
|
6680 | _ACEOF |
|
|
6681 | |
|
|
6682 | fi |
|
|
6683 | |
|
|
6684 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
6685 | |
|
|
6686 | |
|
|
6687 | |
|
|
6688 | |
|
|
6689 | |
|
|
6690 | |
|
|
6691 | |
|
|
6692 | |
|
|
6693 | |
|
|
6694 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
6695 | inttypes.h stdint.h unistd.h |
|
|
6696 | do |
|
|
6697 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6698 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
6699 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
6700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
6701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6702 | else |
|
|
6703 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6704 | /* confdefs.h. */ |
|
|
6705 | _ACEOF |
|
|
6706 | cat confdefs.h >>conftest.$ac_ext |
|
|
6707 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6708 | /* end confdefs.h. */ |
|
|
6709 | $ac_includes_default |
|
|
6710 | |
|
|
6711 | #include <$ac_header> |
|
|
6712 | _ACEOF |
|
|
6713 | rm -f conftest.$ac_objext |
|
|
6714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
6715 | (eval $ac_compile) 2>conftest.er1 |
|
|
6716 | ac_status=$? |
|
|
6717 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6718 | rm -f conftest.er1 |
|
|
6719 | cat conftest.err >&5 |
|
|
6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6721 | (exit $ac_status); } && |
|
|
6722 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
6723 | || test ! -s conftest.err' |
|
|
6724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6725 | (eval $ac_try) 2>&5 |
|
|
6726 | ac_status=$? |
|
|
6727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6728 | (exit $ac_status); }; } && |
|
|
6729 | { ac_try='test -s conftest.$ac_objext' |
|
|
6730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6731 | (eval $ac_try) 2>&5 |
|
|
6732 | ac_status=$? |
|
|
6733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6734 | (exit $ac_status); }; }; then |
|
|
6735 | eval "$as_ac_Header=yes" |
|
|
6736 | else |
|
|
6737 | echo "$as_me: failed program was:" >&5 |
|
|
6738 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6739 | |
|
|
6740 | eval "$as_ac_Header=no" |
|
|
6741 | fi |
|
|
6742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6743 | fi |
|
|
6744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
6745 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
6746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
6747 | cat >>confdefs.h <<_ACEOF |
|
|
6748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6749 | _ACEOF |
|
|
6750 | |
|
|
6751 | fi |
|
|
6752 | |
|
|
6753 | done |
10301 | |
6754 | |
10302 | |
6755 | |
10303 | |
6756 | |
10304 | |
6757 | |
10305 | |
6758 | |
… | |
… | |
10318 | |
6771 | |
10319 | |
6772 | |
10320 | for ac_header in \ |
6773 | for ac_header in \ |
10321 | assert.h \ |
6774 | assert.h \ |
10322 | fcntl.h \ |
6775 | fcntl.h \ |
10323 | grp.h \ |
|
|
10324 | libc.h \ |
|
|
10325 | lastlog.h \ |
|
|
10326 | stdarg.h \ |
6776 | stdarg.h \ |
10327 | stdlib.h \ |
6777 | stdlib.h \ |
10328 | string.h \ |
6778 | string.h \ |
10329 | termios.h \ |
6779 | termios.h \ |
10330 | unistd.h \ |
6780 | unistd.h \ |
… | |
… | |
10332 | sys/ioctl.h \ |
6782 | sys/ioctl.h \ |
10333 | sys/select.h \ |
6783 | sys/select.h \ |
10334 | sys/sockio.h \ |
6784 | sys/sockio.h \ |
10335 | sys/strredir.h \ |
6785 | sys/strredir.h \ |
10336 | sys/time.h \ |
6786 | sys/time.h \ |
10337 | utmp.h \ |
6787 | stdint.h \ |
10338 | utmpx.h \ |
6788 | wchar.h \ |
10339 | stdint.h \ |
6789 | cwchar \ |
|
|
6790 | clocale \ |
10340 | |
6791 | |
10341 | do |
6792 | do |
10342 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6793 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10343 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10344 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6795 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
10368 | grep -v '^ *+' conftest.er1 >conftest.err |
6819 | grep -v '^ *+' conftest.er1 >conftest.err |
10369 | rm -f conftest.er1 |
6820 | rm -f conftest.er1 |
10370 | cat conftest.err >&5 |
6821 | cat conftest.err >&5 |
10371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10372 | (exit $ac_status); } && |
6823 | (exit $ac_status); } && |
10373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6824 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
6825 | || test ! -s conftest.err' |
10374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10375 | (eval $ac_try) 2>&5 |
6827 | (eval $ac_try) 2>&5 |
10376 | ac_status=$? |
6828 | ac_status=$? |
10377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10378 | (exit $ac_status); }; } && |
6830 | (exit $ac_status); }; } && |
… | |
… | |
10411 | rm -f conftest.er1 |
6863 | rm -f conftest.er1 |
10412 | cat conftest.err >&5 |
6864 | cat conftest.err >&5 |
10413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10414 | (exit $ac_status); } >/dev/null; then |
6866 | (exit $ac_status); } >/dev/null; then |
10415 | if test -s conftest.err; then |
6867 | if test -s conftest.err; then |
10416 | ac_cpp_err=$ac_c_preproc_warn_flag |
6868 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
10417 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6869 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
10418 | else |
6870 | else |
10419 | ac_cpp_err= |
6871 | ac_cpp_err= |
10420 | fi |
6872 | fi |
10421 | else |
6873 | else |
10422 | ac_cpp_err=yes |
6874 | ac_cpp_err=yes |
… | |
… | |
10432 | rm -f conftest.err conftest.$ac_ext |
6884 | rm -f conftest.err conftest.$ac_ext |
10433 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6885 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10434 | echo "${ECHO_T}$ac_header_preproc" >&6 |
6886 | echo "${ECHO_T}$ac_header_preproc" >&6 |
10435 | |
6887 | |
10436 | # So? What about this header? |
6888 | # So? What about this header? |
10437 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6889 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10438 | yes:no: ) |
6890 | yes:no: ) |
10439 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6891 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10440 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6892 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10441 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6893 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10442 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
6894 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
… | |
… | |
10517 | grep -v '^ *+' conftest.er1 >conftest.err |
6969 | grep -v '^ *+' conftest.er1 >conftest.err |
10518 | rm -f conftest.er1 |
6970 | rm -f conftest.er1 |
10519 | cat conftest.err >&5 |
6971 | cat conftest.err >&5 |
10520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10521 | (exit $ac_status); } && |
6973 | (exit $ac_status); } && |
10522 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6974 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
6975 | || test ! -s conftest.err' |
10523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10524 | (eval $ac_try) 2>&5 |
6977 | (eval $ac_try) 2>&5 |
10525 | ac_status=$? |
6978 | ac_status=$? |
10526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10527 | (exit $ac_status); }; } && |
6980 | (exit $ac_status); }; } && |
… | |
… | |
10582 | grep -v '^ *+' conftest.er1 >conftest.err |
7035 | grep -v '^ *+' conftest.er1 >conftest.err |
10583 | rm -f conftest.er1 |
7036 | rm -f conftest.er1 |
10584 | cat conftest.err >&5 |
7037 | cat conftest.err >&5 |
10585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10586 | (exit $ac_status); } && |
7039 | (exit $ac_status); } && |
10587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7040 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7041 | || test ! -s conftest.err' |
10588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10589 | (eval $ac_try) 2>&5 |
7043 | (eval $ac_try) 2>&5 |
10590 | ac_status=$? |
7044 | ac_status=$? |
10591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10592 | (exit $ac_status); }; } && |
7046 | (exit $ac_status); }; } && |
… | |
… | |
10632 | /* confdefs.h. */ |
7086 | /* confdefs.h. */ |
10633 | _ACEOF |
7087 | _ACEOF |
10634 | cat confdefs.h >>conftest.$ac_ext |
7088 | cat confdefs.h >>conftest.$ac_ext |
10635 | cat >>conftest.$ac_ext <<_ACEOF |
7089 | cat >>conftest.$ac_ext <<_ACEOF |
10636 | /* end confdefs.h. */ |
7090 | /* end confdefs.h. */ |
10637 | |
7091 | #include <X11/Xlib.h> |
|
|
7092 | #include <stdlib.h> |
10638 | main() |
7093 | main() |
10639 | { |
7094 | { |
10640 | exit(0); |
7095 | exit(0); |
10641 | (void) XOpenDisplay("foobar"); |
7096 | (void) XOpenDisplay("foobar"); |
10642 | } |
7097 | } |
… | |
… | |
10681 | /* confdefs.h. */ |
7136 | /* confdefs.h. */ |
10682 | _ACEOF |
7137 | _ACEOF |
10683 | cat confdefs.h >>conftest.$ac_ext |
7138 | cat confdefs.h >>conftest.$ac_ext |
10684 | cat >>conftest.$ac_ext <<_ACEOF |
7139 | cat >>conftest.$ac_ext <<_ACEOF |
10685 | /* end confdefs.h. */ |
7140 | /* end confdefs.h. */ |
10686 | |
7141 | #include <X11/Xlib.h> |
|
|
7142 | #include <stdlib.h> |
10687 | main() |
7143 | main() |
10688 | { |
7144 | { |
10689 | exit(0); |
7145 | exit(0); |
10690 | (void) XOpenDisplay("foobar"); |
7146 | (void) XOpenDisplay("foobar"); |
10691 | } |
7147 | } |
… | |
… | |
10747 | grep -v '^ *+' conftest.er1 >conftest.err |
7203 | grep -v '^ *+' conftest.er1 >conftest.err |
10748 | rm -f conftest.er1 |
7204 | rm -f conftest.er1 |
10749 | cat conftest.err >&5 |
7205 | cat conftest.err >&5 |
10750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10751 | (exit $ac_status); } && |
7207 | (exit $ac_status); } && |
10752 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7208 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7209 | || test ! -s conftest.err' |
10753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10754 | (eval $ac_try) 2>&5 |
7211 | (eval $ac_try) 2>&5 |
10755 | ac_status=$? |
7212 | ac_status=$? |
10756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10757 | (exit $ac_status); }; } && |
7214 | (exit $ac_status); }; } && |
… | |
… | |
10780 | |
7237 | |
10781 | fi |
7238 | fi |
10782 | LIBS=$ac_save_LIBS |
7239 | LIBS=$ac_save_LIBS |
10783 | CFLAGS=$ac_save_CFLAGS |
7240 | CFLAGS=$ac_save_CFLAGS |
10784 | |
7241 | |
|
|
7242 | echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
7243 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6 |
|
|
7244 | if test "${rxvt_xlib_illegal_access+set}" = set; then |
|
|
7245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7246 | else |
|
|
7247 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7248 | /* confdefs.h. */ |
|
|
7249 | _ACEOF |
|
|
7250 | cat confdefs.h >>conftest.$ac_ext |
|
|
7251 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7252 | /* end confdefs.h. */ |
|
|
7253 | |
|
|
7254 | #define XLIB_ILLEGAL_ACCESS |
|
|
7255 | #include <X11/Xlib.h> |
|
|
7256 | |
|
|
7257 | int |
|
|
7258 | main () |
|
|
7259 | { |
|
|
7260 | |
|
|
7261 | Display *dpy; |
|
|
7262 | dpy->xdefaults = (char *)0; |
|
|
7263 | |
|
|
7264 | ; |
|
|
7265 | return 0; |
|
|
7266 | } |
|
|
7267 | _ACEOF |
|
|
7268 | rm -f conftest.$ac_objext |
|
|
7269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7270 | (eval $ac_compile) 2>conftest.er1 |
|
|
7271 | ac_status=$? |
|
|
7272 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7273 | rm -f conftest.er1 |
|
|
7274 | cat conftest.err >&5 |
|
|
7275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7276 | (exit $ac_status); } && |
|
|
7277 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7278 | || test ! -s conftest.err' |
|
|
7279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7280 | (eval $ac_try) 2>&5 |
|
|
7281 | ac_status=$? |
|
|
7282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7283 | (exit $ac_status); }; } && |
|
|
7284 | { ac_try='test -s conftest.$ac_objext' |
|
|
7285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7286 | (eval $ac_try) 2>&5 |
|
|
7287 | ac_status=$? |
|
|
7288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7289 | (exit $ac_status); }; }; then |
|
|
7290 | rxvt_xlib_illegal_access=yes |
|
|
7291 | else |
|
|
7292 | echo "$as_me: failed program was:" >&5 |
|
|
7293 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7294 | |
|
|
7295 | rxvt_xlib_illegal_access=no |
|
|
7296 | |
|
|
7297 | fi |
|
|
7298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7299 | fi |
|
|
7300 | echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5 |
|
|
7301 | echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6 |
|
|
7302 | if test x$rxvt_xlib_illegal_access = xyes; then |
|
|
7303 | |
|
|
7304 | cat >>confdefs.h <<\_ACEOF |
|
|
7305 | #define XLIB_ILLEGAL_ACCESS 1 |
|
|
7306 | _ACEOF |
|
|
7307 | |
|
|
7308 | fi |
10785 | |
7309 | |
10786 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
7310 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
10787 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
7311 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
10788 | if test "${ac_cv_c_const+set}" = set; then |
7312 | if test "${ac_cv_c_const+set}" = set; then |
10789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
10856 | grep -v '^ *+' conftest.er1 >conftest.err |
7380 | grep -v '^ *+' conftest.er1 >conftest.err |
10857 | rm -f conftest.er1 |
7381 | rm -f conftest.er1 |
10858 | cat conftest.err >&5 |
7382 | cat conftest.err >&5 |
10859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10860 | (exit $ac_status); } && |
7384 | (exit $ac_status); } && |
10861 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7385 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7386 | || test ! -s conftest.err' |
10862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10863 | (eval $ac_try) 2>&5 |
7388 | (eval $ac_try) 2>&5 |
10864 | ac_status=$? |
7389 | ac_status=$? |
10865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10866 | (exit $ac_status); }; } && |
7391 | (exit $ac_status); }; } && |
… | |
… | |
10916 | grep -v '^ *+' conftest.er1 >conftest.err |
7441 | grep -v '^ *+' conftest.er1 >conftest.err |
10917 | rm -f conftest.er1 |
7442 | rm -f conftest.er1 |
10918 | cat conftest.err >&5 |
7443 | cat conftest.err >&5 |
10919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10920 | (exit $ac_status); } && |
7445 | (exit $ac_status); } && |
10921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7446 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7447 | || test ! -s conftest.err' |
10922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10923 | (eval $ac_try) 2>&5 |
7449 | (eval $ac_try) 2>&5 |
10924 | ac_status=$? |
7450 | ac_status=$? |
10925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10926 | (exit $ac_status); }; } && |
7452 | (exit $ac_status); }; } && |
… | |
… | |
10991 | grep -v '^ *+' conftest.er1 >conftest.err |
7517 | grep -v '^ *+' conftest.er1 >conftest.err |
10992 | rm -f conftest.er1 |
7518 | rm -f conftest.er1 |
10993 | cat conftest.err >&5 |
7519 | cat conftest.err >&5 |
10994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10995 | (exit $ac_status); } && |
7521 | (exit $ac_status); } && |
10996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7522 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7523 | || test ! -s conftest.err' |
10997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10998 | (eval $ac_try) 2>&5 |
7525 | (eval $ac_try) 2>&5 |
10999 | ac_status=$? |
7526 | ac_status=$? |
11000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11001 | (exit $ac_status); }; } && |
7528 | (exit $ac_status); }; } && |
… | |
… | |
11056 | grep -v '^ *+' conftest.er1 >conftest.err |
7583 | grep -v '^ *+' conftest.er1 >conftest.err |
11057 | rm -f conftest.er1 |
7584 | rm -f conftest.er1 |
11058 | cat conftest.err >&5 |
7585 | cat conftest.err >&5 |
11059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11060 | (exit $ac_status); } && |
7587 | (exit $ac_status); } && |
11061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7588 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7589 | || test ! -s conftest.err' |
11062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11063 | (eval $ac_try) 2>&5 |
7591 | (eval $ac_try) 2>&5 |
11064 | ac_status=$? |
7592 | ac_status=$? |
11065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11066 | (exit $ac_status); }; } && |
7594 | (exit $ac_status); }; } && |
… | |
… | |
11126 | cat >>confdefs.h <<\_ACEOF |
7654 | cat >>confdefs.h <<\_ACEOF |
11127 | #define gid_t int |
7655 | #define gid_t int |
11128 | _ACEOF |
7656 | _ACEOF |
11129 | |
7657 | |
11130 | fi |
7658 | fi |
11131 | |
|
|
11132 | |
|
|
11133 | |
|
|
11134 | echo "$as_me:$LINENO: checking for char" >&5 |
|
|
11135 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
|
|
11136 | if test "${ac_cv_type_char+set}" = set; then |
|
|
11137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11138 | else |
|
|
11139 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11140 | /* confdefs.h. */ |
|
|
11141 | _ACEOF |
|
|
11142 | cat confdefs.h >>conftest.$ac_ext |
|
|
11143 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11144 | /* end confdefs.h. */ |
|
|
11145 | $ac_includes_default |
|
|
11146 | int |
|
|
11147 | main () |
|
|
11148 | { |
|
|
11149 | if ((char *) 0) |
|
|
11150 | return 0; |
|
|
11151 | if (sizeof (char)) |
|
|
11152 | return 0; |
|
|
11153 | ; |
|
|
11154 | return 0; |
|
|
11155 | } |
|
|
11156 | _ACEOF |
|
|
11157 | rm -f conftest.$ac_objext |
|
|
11158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11159 | (eval $ac_compile) 2>conftest.er1 |
|
|
11160 | ac_status=$? |
|
|
11161 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11162 | rm -f conftest.er1 |
|
|
11163 | cat conftest.err >&5 |
|
|
11164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11165 | (exit $ac_status); } && |
|
|
11166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
11167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11168 | (eval $ac_try) 2>&5 |
|
|
11169 | ac_status=$? |
|
|
11170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11171 | (exit $ac_status); }; } && |
|
|
11172 | { ac_try='test -s conftest.$ac_objext' |
|
|
11173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11174 | (eval $ac_try) 2>&5 |
|
|
11175 | ac_status=$? |
|
|
11176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11177 | (exit $ac_status); }; }; then |
|
|
11178 | ac_cv_type_char=yes |
|
|
11179 | else |
|
|
11180 | echo "$as_me: failed program was:" >&5 |
|
|
11181 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11182 | |
|
|
11183 | ac_cv_type_char=no |
|
|
11184 | fi |
|
|
11185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11186 | fi |
|
|
11187 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
|
|
11188 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
|
|
11189 | |
|
|
11190 | echo "$as_me:$LINENO: checking size of char" >&5 |
|
|
11191 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
|
|
11192 | if test "${ac_cv_sizeof_char+set}" = set; then |
|
|
11193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11194 | else |
|
|
11195 | if test "$ac_cv_type_char" = yes; then |
|
|
11196 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
11197 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
11198 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
11199 | # This bug is HP SR number 8606223364. |
|
|
11200 | if test "$cross_compiling" = yes; then |
|
|
11201 | # Depending upon the size, compute the lo and hi bounds. |
|
|
11202 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11203 | /* confdefs.h. */ |
|
|
11204 | _ACEOF |
|
|
11205 | cat confdefs.h >>conftest.$ac_ext |
|
|
11206 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11207 | /* end confdefs.h. */ |
|
|
11208 | $ac_includes_default |
|
|
11209 | int |
|
|
11210 | main () |
|
|
11211 | { |
|
|
11212 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
|
|
11213 | test_array [0] = 0 |
|
|
11214 | |
|
|
11215 | ; |
|
|
11216 | return 0; |
|
|
11217 | } |
|
|
11218 | _ACEOF |
|
|
11219 | rm -f conftest.$ac_objext |
|
|
11220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11221 | (eval $ac_compile) 2>conftest.er1 |
|
|
11222 | ac_status=$? |
|
|
11223 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11224 | rm -f conftest.er1 |
|
|
11225 | cat conftest.err >&5 |
|
|
11226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11227 | (exit $ac_status); } && |
|
|
11228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
11229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11230 | (eval $ac_try) 2>&5 |
|
|
11231 | ac_status=$? |
|
|
11232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11233 | (exit $ac_status); }; } && |
|
|
11234 | { ac_try='test -s conftest.$ac_objext' |
|
|
11235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11236 | (eval $ac_try) 2>&5 |
|
|
11237 | ac_status=$? |
|
|
11238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11239 | (exit $ac_status); }; }; then |
|
|
11240 | ac_lo=0 ac_mid=0 |
|
|
11241 | while :; do |
|
|
11242 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11243 | /* confdefs.h. */ |
|
|
11244 | _ACEOF |
|
|
11245 | cat confdefs.h >>conftest.$ac_ext |
|
|
11246 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11247 | /* end confdefs.h. */ |
|
|
11248 | $ac_includes_default |
|
|
11249 | int |
|
|
11250 | main () |
|
|
11251 | { |
|
|
11252 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
|
|
11253 | test_array [0] = 0 |
|
|
11254 | |
|
|
11255 | ; |
|
|
11256 | return 0; |
|
|
11257 | } |
|
|
11258 | _ACEOF |
|
|
11259 | rm -f conftest.$ac_objext |
|
|
11260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11261 | (eval $ac_compile) 2>conftest.er1 |
|
|
11262 | ac_status=$? |
|
|
11263 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11264 | rm -f conftest.er1 |
|
|
11265 | cat conftest.err >&5 |
|
|
11266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11267 | (exit $ac_status); } && |
|
|
11268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
11269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11270 | (eval $ac_try) 2>&5 |
|
|
11271 | ac_status=$? |
|
|
11272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11273 | (exit $ac_status); }; } && |
|
|
11274 | { ac_try='test -s conftest.$ac_objext' |
|
|
11275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11276 | (eval $ac_try) 2>&5 |
|
|
11277 | ac_status=$? |
|
|
11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11279 | (exit $ac_status); }; }; then |
|
|
11280 | ac_hi=$ac_mid; break |
|
|
11281 | else |
|
|
11282 | echo "$as_me: failed program was:" >&5 |
|
|
11283 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11284 | |
|
|
11285 | ac_lo=`expr $ac_mid + 1` |
|
|
11286 | if test $ac_lo -le $ac_mid; then |
|
|
11287 | ac_lo= ac_hi= |
|
|
11288 | break |
|
|
11289 | fi |
|
|
11290 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
11291 | fi |
|
|
11292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11293 | done |
|
|
11294 | else |
|
|
11295 | echo "$as_me: failed program was:" >&5 |
|
|
11296 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11297 | |
|
|
11298 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11299 | /* confdefs.h. */ |
|
|
11300 | _ACEOF |
|
|
11301 | cat confdefs.h >>conftest.$ac_ext |
|
|
11302 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11303 | /* end confdefs.h. */ |
|
|
11304 | $ac_includes_default |
|
|
11305 | int |
|
|
11306 | main () |
|
|
11307 | { |
|
|
11308 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
|
|
11309 | test_array [0] = 0 |
|
|
11310 | |
|
|
11311 | ; |
|
|
11312 | return 0; |
|
|
11313 | } |
|
|
11314 | _ACEOF |
|
|
11315 | rm -f conftest.$ac_objext |
|
|
11316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11317 | (eval $ac_compile) 2>conftest.er1 |
|
|
11318 | ac_status=$? |
|
|
11319 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11320 | rm -f conftest.er1 |
|
|
11321 | cat conftest.err >&5 |
|
|
11322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11323 | (exit $ac_status); } && |
|
|
11324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
11325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11326 | (eval $ac_try) 2>&5 |
|
|
11327 | ac_status=$? |
|
|
11328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11329 | (exit $ac_status); }; } && |
|
|
11330 | { ac_try='test -s conftest.$ac_objext' |
|
|
11331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11332 | (eval $ac_try) 2>&5 |
|
|
11333 | ac_status=$? |
|
|
11334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11335 | (exit $ac_status); }; }; then |
|
|
11336 | ac_hi=-1 ac_mid=-1 |
|
|
11337 | while :; do |
|
|
11338 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11339 | /* confdefs.h. */ |
|
|
11340 | _ACEOF |
|
|
11341 | cat confdefs.h >>conftest.$ac_ext |
|
|
11342 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11343 | /* end confdefs.h. */ |
|
|
11344 | $ac_includes_default |
|
|
11345 | int |
|
|
11346 | main () |
|
|
11347 | { |
|
|
11348 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
|
|
11349 | test_array [0] = 0 |
|
|
11350 | |
|
|
11351 | ; |
|
|
11352 | return 0; |
|
|
11353 | } |
|
|
11354 | _ACEOF |
|
|
11355 | rm -f conftest.$ac_objext |
|
|
11356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11357 | (eval $ac_compile) 2>conftest.er1 |
|
|
11358 | ac_status=$? |
|
|
11359 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11360 | rm -f conftest.er1 |
|
|
11361 | cat conftest.err >&5 |
|
|
11362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11363 | (exit $ac_status); } && |
|
|
11364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
11365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11366 | (eval $ac_try) 2>&5 |
|
|
11367 | ac_status=$? |
|
|
11368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11369 | (exit $ac_status); }; } && |
|
|
11370 | { ac_try='test -s conftest.$ac_objext' |
|
|
11371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11372 | (eval $ac_try) 2>&5 |
|
|
11373 | ac_status=$? |
|
|
11374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11375 | (exit $ac_status); }; }; then |
|
|
11376 | ac_lo=$ac_mid; break |
|
|
11377 | else |
|
|
11378 | echo "$as_me: failed program was:" >&5 |
|
|
11379 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11380 | |
|
|
11381 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
11382 | if test $ac_mid -le $ac_hi; then |
|
|
11383 | ac_lo= ac_hi= |
|
|
11384 | break |
|
|
11385 | fi |
|
|
11386 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
11387 | fi |
|
|
11388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11389 | done |
|
|
11390 | else |
|
|
11391 | echo "$as_me: failed program was:" >&5 |
|
|
11392 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11393 | |
|
|
11394 | ac_lo= ac_hi= |
|
|
11395 | fi |
|
|
11396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11397 | fi |
|
|
11398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11399 | # Binary search between lo and hi bounds. |
|
|
11400 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
11401 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
11402 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11403 | /* confdefs.h. */ |
|
|
11404 | _ACEOF |
|
|
11405 | cat confdefs.h >>conftest.$ac_ext |
|
|
11406 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11407 | /* end confdefs.h. */ |
|
|
11408 | $ac_includes_default |
|
|
11409 | int |
|
|
11410 | main () |
|
|
11411 | { |
|
|
11412 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
|
|
11413 | test_array [0] = 0 |
|
|
11414 | |
|
|
11415 | ; |
|
|
11416 | return 0; |
|
|
11417 | } |
|
|
11418 | _ACEOF |
|
|
11419 | rm -f conftest.$ac_objext |
|
|
11420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11421 | (eval $ac_compile) 2>conftest.er1 |
|
|
11422 | ac_status=$? |
|
|
11423 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11424 | rm -f conftest.er1 |
|
|
11425 | cat conftest.err >&5 |
|
|
11426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11427 | (exit $ac_status); } && |
|
|
11428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
11429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11430 | (eval $ac_try) 2>&5 |
|
|
11431 | ac_status=$? |
|
|
11432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11433 | (exit $ac_status); }; } && |
|
|
11434 | { ac_try='test -s conftest.$ac_objext' |
|
|
11435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11436 | (eval $ac_try) 2>&5 |
|
|
11437 | ac_status=$? |
|
|
11438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11439 | (exit $ac_status); }; }; then |
|
|
11440 | ac_hi=$ac_mid |
|
|
11441 | else |
|
|
11442 | echo "$as_me: failed program was:" >&5 |
|
|
11443 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11444 | |
|
|
11445 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
11446 | fi |
|
|
11447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11448 | done |
|
|
11449 | case $ac_lo in |
|
|
11450 | ?*) ac_cv_sizeof_char=$ac_lo;; |
|
|
11451 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
|
|
11452 | See \`config.log' for more details." >&5 |
|
|
11453 | echo "$as_me: error: cannot compute sizeof (char), 77 |
|
|
11454 | See \`config.log' for more details." >&2;} |
|
|
11455 | { (exit 1); exit 1; }; } ;; |
|
|
11456 | esac |
|
|
11457 | else |
|
|
11458 | if test "$cross_compiling" = yes; then |
|
|
11459 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
|
11460 | See \`config.log' for more details." >&5 |
|
|
11461 | echo "$as_me: error: cannot run test program while cross compiling |
|
|
11462 | See \`config.log' for more details." >&2;} |
|
|
11463 | { (exit 1); exit 1; }; } |
|
|
11464 | else |
|
|
11465 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11466 | /* confdefs.h. */ |
|
|
11467 | _ACEOF |
|
|
11468 | cat confdefs.h >>conftest.$ac_ext |
|
|
11469 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11470 | /* end confdefs.h. */ |
|
|
11471 | $ac_includes_default |
|
|
11472 | long longval () { return (long) (sizeof (char)); } |
|
|
11473 | unsigned long ulongval () { return (long) (sizeof (char)); } |
|
|
11474 | #include <stdio.h> |
|
|
11475 | #include <stdlib.h> |
|
|
11476 | int |
|
|
11477 | main () |
|
|
11478 | { |
|
|
11479 | |
|
|
11480 | FILE *f = fopen ("conftest.val", "w"); |
|
|
11481 | if (! f) |
|
|
11482 | exit (1); |
|
|
11483 | if (((long) (sizeof (char))) < 0) |
|
|
11484 | { |
|
|
11485 | long i = longval (); |
|
|
11486 | if (i != ((long) (sizeof (char)))) |
|
|
11487 | exit (1); |
|
|
11488 | fprintf (f, "%ld\n", i); |
|
|
11489 | } |
|
|
11490 | else |
|
|
11491 | { |
|
|
11492 | unsigned long i = ulongval (); |
|
|
11493 | if (i != ((long) (sizeof (char)))) |
|
|
11494 | exit (1); |
|
|
11495 | fprintf (f, "%lu\n", i); |
|
|
11496 | } |
|
|
11497 | exit (ferror (f) || fclose (f) != 0); |
|
|
11498 | |
|
|
11499 | ; |
|
|
11500 | return 0; |
|
|
11501 | } |
|
|
11502 | _ACEOF |
|
|
11503 | rm -f conftest$ac_exeext |
|
|
11504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11505 | (eval $ac_link) 2>&5 |
|
|
11506 | ac_status=$? |
|
|
11507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11508 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11510 | (eval $ac_try) 2>&5 |
|
|
11511 | ac_status=$? |
|
|
11512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11513 | (exit $ac_status); }; }; then |
|
|
11514 | ac_cv_sizeof_char=`cat conftest.val` |
|
|
11515 | else |
|
|
11516 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11517 | echo "$as_me: failed program was:" >&5 |
|
|
11518 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11519 | |
|
|
11520 | ( exit $ac_status ) |
|
|
11521 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
|
|
11522 | See \`config.log' for more details." >&5 |
|
|
11523 | echo "$as_me: error: cannot compute sizeof (char), 77 |
|
|
11524 | See \`config.log' for more details." >&2;} |
|
|
11525 | { (exit 1); exit 1; }; } |
|
|
11526 | fi |
|
|
11527 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11528 | fi |
|
|
11529 | fi |
|
|
11530 | rm -f conftest.val |
|
|
11531 | else |
|
|
11532 | ac_cv_sizeof_char=0 |
|
|
11533 | fi |
|
|
11534 | fi |
|
|
11535 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
|
|
11536 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
|
|
11537 | cat >>confdefs.h <<_ACEOF |
|
|
11538 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
|
|
11539 | _ACEOF |
|
|
11540 | |
7659 | |
11541 | |
7660 | |
11542 | echo "$as_me:$LINENO: checking for short" >&5 |
7661 | echo "$as_me:$LINENO: checking for short" >&5 |
11543 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
7662 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
11544 | if test "${ac_cv_type_short+set}" = set; then |
7663 | if test "${ac_cv_type_short+set}" = set; then |
… | |
… | |
11569 | grep -v '^ *+' conftest.er1 >conftest.err |
7688 | grep -v '^ *+' conftest.er1 >conftest.err |
11570 | rm -f conftest.er1 |
7689 | rm -f conftest.er1 |
11571 | cat conftest.err >&5 |
7690 | cat conftest.err >&5 |
11572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11573 | (exit $ac_status); } && |
7692 | (exit $ac_status); } && |
11574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7693 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7694 | || test ! -s conftest.err' |
11575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11576 | (eval $ac_try) 2>&5 |
7696 | (eval $ac_try) 2>&5 |
11577 | ac_status=$? |
7697 | ac_status=$? |
11578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11579 | (exit $ac_status); }; } && |
7699 | (exit $ac_status); }; } && |
… | |
… | |
11631 | grep -v '^ *+' conftest.er1 >conftest.err |
7751 | grep -v '^ *+' conftest.er1 >conftest.err |
11632 | rm -f conftest.er1 |
7752 | rm -f conftest.er1 |
11633 | cat conftest.err >&5 |
7753 | cat conftest.err >&5 |
11634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11635 | (exit $ac_status); } && |
7755 | (exit $ac_status); } && |
11636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7756 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7757 | || test ! -s conftest.err' |
11637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11638 | (eval $ac_try) 2>&5 |
7759 | (eval $ac_try) 2>&5 |
11639 | ac_status=$? |
7760 | ac_status=$? |
11640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11641 | (exit $ac_status); }; } && |
7762 | (exit $ac_status); }; } && |
… | |
… | |
11671 | grep -v '^ *+' conftest.er1 >conftest.err |
7792 | grep -v '^ *+' conftest.er1 >conftest.err |
11672 | rm -f conftest.er1 |
7793 | rm -f conftest.er1 |
11673 | cat conftest.err >&5 |
7794 | cat conftest.err >&5 |
11674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11675 | (exit $ac_status); } && |
7796 | (exit $ac_status); } && |
11676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7797 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7798 | || test ! -s conftest.err' |
11677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11678 | (eval $ac_try) 2>&5 |
7800 | (eval $ac_try) 2>&5 |
11679 | ac_status=$? |
7801 | ac_status=$? |
11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11681 | (exit $ac_status); }; } && |
7803 | (exit $ac_status); }; } && |
… | |
… | |
11727 | grep -v '^ *+' conftest.er1 >conftest.err |
7849 | grep -v '^ *+' conftest.er1 >conftest.err |
11728 | rm -f conftest.er1 |
7850 | rm -f conftest.er1 |
11729 | cat conftest.err >&5 |
7851 | cat conftest.err >&5 |
11730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11731 | (exit $ac_status); } && |
7853 | (exit $ac_status); } && |
11732 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7854 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7855 | || test ! -s conftest.err' |
11733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11734 | (eval $ac_try) 2>&5 |
7857 | (eval $ac_try) 2>&5 |
11735 | ac_status=$? |
7858 | ac_status=$? |
11736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11737 | (exit $ac_status); }; } && |
7860 | (exit $ac_status); }; } && |
… | |
… | |
11767 | grep -v '^ *+' conftest.er1 >conftest.err |
7890 | grep -v '^ *+' conftest.er1 >conftest.err |
11768 | rm -f conftest.er1 |
7891 | rm -f conftest.er1 |
11769 | cat conftest.err >&5 |
7892 | cat conftest.err >&5 |
11770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11771 | (exit $ac_status); } && |
7894 | (exit $ac_status); } && |
11772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7895 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7896 | || test ! -s conftest.err' |
11773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11774 | (eval $ac_try) 2>&5 |
7898 | (eval $ac_try) 2>&5 |
11775 | ac_status=$? |
7899 | ac_status=$? |
11776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11777 | (exit $ac_status); }; } && |
7901 | (exit $ac_status); }; } && |
… | |
… | |
11831 | grep -v '^ *+' conftest.er1 >conftest.err |
7955 | grep -v '^ *+' conftest.er1 >conftest.err |
11832 | rm -f conftest.er1 |
7956 | rm -f conftest.er1 |
11833 | cat conftest.err >&5 |
7957 | cat conftest.err >&5 |
11834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11835 | (exit $ac_status); } && |
7959 | (exit $ac_status); } && |
11836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7960 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7961 | || test ! -s conftest.err' |
11837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11838 | (eval $ac_try) 2>&5 |
7963 | (eval $ac_try) 2>&5 |
11839 | ac_status=$? |
7964 | ac_status=$? |
11840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11841 | (exit $ac_status); }; } && |
7966 | (exit $ac_status); }; } && |
… | |
… | |
11977 | grep -v '^ *+' conftest.er1 >conftest.err |
8102 | grep -v '^ *+' conftest.er1 >conftest.err |
11978 | rm -f conftest.er1 |
8103 | rm -f conftest.er1 |
11979 | cat conftest.err >&5 |
8104 | cat conftest.err >&5 |
11980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11981 | (exit $ac_status); } && |
8106 | (exit $ac_status); } && |
11982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8107 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8108 | || test ! -s conftest.err' |
11983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11984 | (eval $ac_try) 2>&5 |
8110 | (eval $ac_try) 2>&5 |
11985 | ac_status=$? |
8111 | ac_status=$? |
11986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11987 | (exit $ac_status); }; } && |
8113 | (exit $ac_status); }; } && |
… | |
… | |
12039 | grep -v '^ *+' conftest.er1 >conftest.err |
8165 | grep -v '^ *+' conftest.er1 >conftest.err |
12040 | rm -f conftest.er1 |
8166 | rm -f conftest.er1 |
12041 | cat conftest.err >&5 |
8167 | cat conftest.err >&5 |
12042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12043 | (exit $ac_status); } && |
8169 | (exit $ac_status); } && |
12044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8170 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8171 | || test ! -s conftest.err' |
12045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12046 | (eval $ac_try) 2>&5 |
8173 | (eval $ac_try) 2>&5 |
12047 | ac_status=$? |
8174 | ac_status=$? |
12048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12049 | (exit $ac_status); }; } && |
8176 | (exit $ac_status); }; } && |
… | |
… | |
12079 | grep -v '^ *+' conftest.er1 >conftest.err |
8206 | grep -v '^ *+' conftest.er1 >conftest.err |
12080 | rm -f conftest.er1 |
8207 | rm -f conftest.er1 |
12081 | cat conftest.err >&5 |
8208 | cat conftest.err >&5 |
12082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12083 | (exit $ac_status); } && |
8210 | (exit $ac_status); } && |
12084 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8211 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8212 | || test ! -s conftest.err' |
12085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12086 | (eval $ac_try) 2>&5 |
8214 | (eval $ac_try) 2>&5 |
12087 | ac_status=$? |
8215 | ac_status=$? |
12088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12089 | (exit $ac_status); }; } && |
8217 | (exit $ac_status); }; } && |
… | |
… | |
12135 | grep -v '^ *+' conftest.er1 >conftest.err |
8263 | grep -v '^ *+' conftest.er1 >conftest.err |
12136 | rm -f conftest.er1 |
8264 | rm -f conftest.er1 |
12137 | cat conftest.err >&5 |
8265 | cat conftest.err >&5 |
12138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12139 | (exit $ac_status); } && |
8267 | (exit $ac_status); } && |
12140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8268 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8269 | || test ! -s conftest.err' |
12141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12142 | (eval $ac_try) 2>&5 |
8271 | (eval $ac_try) 2>&5 |
12143 | ac_status=$? |
8272 | ac_status=$? |
12144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12145 | (exit $ac_status); }; } && |
8274 | (exit $ac_status); }; } && |
… | |
… | |
12175 | grep -v '^ *+' conftest.er1 >conftest.err |
8304 | grep -v '^ *+' conftest.er1 >conftest.err |
12176 | rm -f conftest.er1 |
8305 | rm -f conftest.er1 |
12177 | cat conftest.err >&5 |
8306 | cat conftest.err >&5 |
12178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12179 | (exit $ac_status); } && |
8308 | (exit $ac_status); } && |
12180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8309 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8310 | || test ! -s conftest.err' |
12181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12182 | (eval $ac_try) 2>&5 |
8312 | (eval $ac_try) 2>&5 |
12183 | ac_status=$? |
8313 | ac_status=$? |
12184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12185 | (exit $ac_status); }; } && |
8315 | (exit $ac_status); }; } && |
… | |
… | |
12239 | grep -v '^ *+' conftest.er1 >conftest.err |
8369 | grep -v '^ *+' conftest.er1 >conftest.err |
12240 | rm -f conftest.er1 |
8370 | rm -f conftest.er1 |
12241 | cat conftest.err >&5 |
8371 | cat conftest.err >&5 |
12242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12243 | (exit $ac_status); } && |
8373 | (exit $ac_status); } && |
12244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8374 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8375 | || test ! -s conftest.err' |
12245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12246 | (eval $ac_try) 2>&5 |
8377 | (eval $ac_try) 2>&5 |
12247 | ac_status=$? |
8378 | ac_status=$? |
12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12249 | (exit $ac_status); }; } && |
8380 | (exit $ac_status); }; } && |
… | |
… | |
12353 | cat >>confdefs.h <<_ACEOF |
8484 | cat >>confdefs.h <<_ACEOF |
12354 | #define SIZEOF_INT $ac_cv_sizeof_int |
8485 | #define SIZEOF_INT $ac_cv_sizeof_int |
12355 | _ACEOF |
8486 | _ACEOF |
12356 | |
8487 | |
12357 | |
8488 | |
12358 | echo "$as_me:$LINENO: checking for long" >&5 |
|
|
12359 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
|
|
12360 | if test "${ac_cv_type_long+set}" = set; then |
|
|
12361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12362 | else |
|
|
12363 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12364 | /* confdefs.h. */ |
|
|
12365 | _ACEOF |
|
|
12366 | cat confdefs.h >>conftest.$ac_ext |
|
|
12367 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12368 | /* end confdefs.h. */ |
|
|
12369 | $ac_includes_default |
|
|
12370 | int |
|
|
12371 | main () |
|
|
12372 | { |
|
|
12373 | if ((long *) 0) |
|
|
12374 | return 0; |
|
|
12375 | if (sizeof (long)) |
|
|
12376 | return 0; |
|
|
12377 | ; |
|
|
12378 | return 0; |
|
|
12379 | } |
|
|
12380 | _ACEOF |
|
|
12381 | rm -f conftest.$ac_objext |
|
|
12382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12383 | (eval $ac_compile) 2>conftest.er1 |
|
|
12384 | ac_status=$? |
|
|
12385 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12386 | rm -f conftest.er1 |
|
|
12387 | cat conftest.err >&5 |
|
|
12388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12389 | (exit $ac_status); } && |
|
|
12390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
12391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12392 | (eval $ac_try) 2>&5 |
|
|
12393 | ac_status=$? |
|
|
12394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12395 | (exit $ac_status); }; } && |
|
|
12396 | { ac_try='test -s conftest.$ac_objext' |
|
|
12397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12398 | (eval $ac_try) 2>&5 |
|
|
12399 | ac_status=$? |
|
|
12400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12401 | (exit $ac_status); }; }; then |
|
|
12402 | ac_cv_type_long=yes |
|
|
12403 | else |
|
|
12404 | echo "$as_me: failed program was:" >&5 |
|
|
12405 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12406 | |
|
|
12407 | ac_cv_type_long=no |
|
|
12408 | fi |
|
|
12409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12410 | fi |
|
|
12411 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
|
|
12412 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
|
|
12413 | |
|
|
12414 | echo "$as_me:$LINENO: checking size of long" >&5 |
|
|
12415 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
|
|
12416 | if test "${ac_cv_sizeof_long+set}" = set; then |
|
|
12417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12418 | else |
|
|
12419 | if test "$ac_cv_type_long" = yes; then |
|
|
12420 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
12421 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
12422 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
12423 | # This bug is HP SR number 8606223364. |
|
|
12424 | if test "$cross_compiling" = yes; then |
|
|
12425 | # Depending upon the size, compute the lo and hi bounds. |
|
|
12426 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12427 | /* confdefs.h. */ |
|
|
12428 | _ACEOF |
|
|
12429 | cat confdefs.h >>conftest.$ac_ext |
|
|
12430 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12431 | /* end confdefs.h. */ |
|
|
12432 | $ac_includes_default |
|
|
12433 | int |
|
|
12434 | main () |
|
|
12435 | { |
|
|
12436 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
|
|
12437 | test_array [0] = 0 |
|
|
12438 | |
|
|
12439 | ; |
|
|
12440 | return 0; |
|
|
12441 | } |
|
|
12442 | _ACEOF |
|
|
12443 | rm -f conftest.$ac_objext |
|
|
12444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12445 | (eval $ac_compile) 2>conftest.er1 |
|
|
12446 | ac_status=$? |
|
|
12447 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12448 | rm -f conftest.er1 |
|
|
12449 | cat conftest.err >&5 |
|
|
12450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12451 | (exit $ac_status); } && |
|
|
12452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
12453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12454 | (eval $ac_try) 2>&5 |
|
|
12455 | ac_status=$? |
|
|
12456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12457 | (exit $ac_status); }; } && |
|
|
12458 | { ac_try='test -s conftest.$ac_objext' |
|
|
12459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12460 | (eval $ac_try) 2>&5 |
|
|
12461 | ac_status=$? |
|
|
12462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12463 | (exit $ac_status); }; }; then |
|
|
12464 | ac_lo=0 ac_mid=0 |
|
|
12465 | while :; do |
|
|
12466 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12467 | /* confdefs.h. */ |
|
|
12468 | _ACEOF |
|
|
12469 | cat confdefs.h >>conftest.$ac_ext |
|
|
12470 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12471 | /* end confdefs.h. */ |
|
|
12472 | $ac_includes_default |
|
|
12473 | int |
|
|
12474 | main () |
|
|
12475 | { |
|
|
12476 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
12477 | test_array [0] = 0 |
|
|
12478 | |
|
|
12479 | ; |
|
|
12480 | return 0; |
|
|
12481 | } |
|
|
12482 | _ACEOF |
|
|
12483 | rm -f conftest.$ac_objext |
|
|
12484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12485 | (eval $ac_compile) 2>conftest.er1 |
|
|
12486 | ac_status=$? |
|
|
12487 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12488 | rm -f conftest.er1 |
|
|
12489 | cat conftest.err >&5 |
|
|
12490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12491 | (exit $ac_status); } && |
|
|
12492 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
12493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12494 | (eval $ac_try) 2>&5 |
|
|
12495 | ac_status=$? |
|
|
12496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12497 | (exit $ac_status); }; } && |
|
|
12498 | { ac_try='test -s conftest.$ac_objext' |
|
|
12499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12500 | (eval $ac_try) 2>&5 |
|
|
12501 | ac_status=$? |
|
|
12502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12503 | (exit $ac_status); }; }; then |
|
|
12504 | ac_hi=$ac_mid; break |
|
|
12505 | else |
|
|
12506 | echo "$as_me: failed program was:" >&5 |
|
|
12507 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12508 | |
|
|
12509 | ac_lo=`expr $ac_mid + 1` |
|
|
12510 | if test $ac_lo -le $ac_mid; then |
|
|
12511 | ac_lo= ac_hi= |
|
|
12512 | break |
|
|
12513 | fi |
|
|
12514 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
12515 | fi |
|
|
12516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12517 | done |
|
|
12518 | else |
|
|
12519 | echo "$as_me: failed program was:" >&5 |
|
|
12520 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12521 | |
|
|
12522 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12523 | /* confdefs.h. */ |
|
|
12524 | _ACEOF |
|
|
12525 | cat confdefs.h >>conftest.$ac_ext |
|
|
12526 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12527 | /* end confdefs.h. */ |
|
|
12528 | $ac_includes_default |
|
|
12529 | int |
|
|
12530 | main () |
|
|
12531 | { |
|
|
12532 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
|
|
12533 | test_array [0] = 0 |
|
|
12534 | |
|
|
12535 | ; |
|
|
12536 | return 0; |
|
|
12537 | } |
|
|
12538 | _ACEOF |
|
|
12539 | rm -f conftest.$ac_objext |
|
|
12540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12541 | (eval $ac_compile) 2>conftest.er1 |
|
|
12542 | ac_status=$? |
|
|
12543 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12544 | rm -f conftest.er1 |
|
|
12545 | cat conftest.err >&5 |
|
|
12546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12547 | (exit $ac_status); } && |
|
|
12548 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
12549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12550 | (eval $ac_try) 2>&5 |
|
|
12551 | ac_status=$? |
|
|
12552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12553 | (exit $ac_status); }; } && |
|
|
12554 | { ac_try='test -s conftest.$ac_objext' |
|
|
12555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12556 | (eval $ac_try) 2>&5 |
|
|
12557 | ac_status=$? |
|
|
12558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12559 | (exit $ac_status); }; }; then |
|
|
12560 | ac_hi=-1 ac_mid=-1 |
|
|
12561 | while :; do |
|
|
12562 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12563 | /* confdefs.h. */ |
|
|
12564 | _ACEOF |
|
|
12565 | cat confdefs.h >>conftest.$ac_ext |
|
|
12566 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12567 | /* end confdefs.h. */ |
|
|
12568 | $ac_includes_default |
|
|
12569 | int |
|
|
12570 | main () |
|
|
12571 | { |
|
|
12572 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
|
|
12573 | test_array [0] = 0 |
|
|
12574 | |
|
|
12575 | ; |
|
|
12576 | return 0; |
|
|
12577 | } |
|
|
12578 | _ACEOF |
|
|
12579 | rm -f conftest.$ac_objext |
|
|
12580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12581 | (eval $ac_compile) 2>conftest.er1 |
|
|
12582 | ac_status=$? |
|
|
12583 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12584 | rm -f conftest.er1 |
|
|
12585 | cat conftest.err >&5 |
|
|
12586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12587 | (exit $ac_status); } && |
|
|
12588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
12589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12590 | (eval $ac_try) 2>&5 |
|
|
12591 | ac_status=$? |
|
|
12592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12593 | (exit $ac_status); }; } && |
|
|
12594 | { ac_try='test -s conftest.$ac_objext' |
|
|
12595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12596 | (eval $ac_try) 2>&5 |
|
|
12597 | ac_status=$? |
|
|
12598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12599 | (exit $ac_status); }; }; then |
|
|
12600 | ac_lo=$ac_mid; break |
|
|
12601 | else |
|
|
12602 | echo "$as_me: failed program was:" >&5 |
|
|
12603 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12604 | |
|
|
12605 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
12606 | if test $ac_mid -le $ac_hi; then |
|
|
12607 | ac_lo= ac_hi= |
|
|
12608 | break |
|
|
12609 | fi |
|
|
12610 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
12611 | fi |
|
|
12612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12613 | done |
|
|
12614 | else |
|
|
12615 | echo "$as_me: failed program was:" >&5 |
|
|
12616 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12617 | |
|
|
12618 | ac_lo= ac_hi= |
|
|
12619 | fi |
|
|
12620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12621 | fi |
|
|
12622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12623 | # Binary search between lo and hi bounds. |
|
|
12624 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
12625 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
12626 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12627 | /* confdefs.h. */ |
|
|
12628 | _ACEOF |
|
|
12629 | cat confdefs.h >>conftest.$ac_ext |
|
|
12630 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12631 | /* end confdefs.h. */ |
|
|
12632 | $ac_includes_default |
|
|
12633 | int |
|
|
12634 | main () |
|
|
12635 | { |
|
|
12636 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
12637 | test_array [0] = 0 |
|
|
12638 | |
|
|
12639 | ; |
|
|
12640 | return 0; |
|
|
12641 | } |
|
|
12642 | _ACEOF |
|
|
12643 | rm -f conftest.$ac_objext |
|
|
12644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12645 | (eval $ac_compile) 2>conftest.er1 |
|
|
12646 | ac_status=$? |
|
|
12647 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12648 | rm -f conftest.er1 |
|
|
12649 | cat conftest.err >&5 |
|
|
12650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12651 | (exit $ac_status); } && |
|
|
12652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
12653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12654 | (eval $ac_try) 2>&5 |
|
|
12655 | ac_status=$? |
|
|
12656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12657 | (exit $ac_status); }; } && |
|
|
12658 | { ac_try='test -s conftest.$ac_objext' |
|
|
12659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12660 | (eval $ac_try) 2>&5 |
|
|
12661 | ac_status=$? |
|
|
12662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12663 | (exit $ac_status); }; }; then |
|
|
12664 | ac_hi=$ac_mid |
|
|
12665 | else |
|
|
12666 | echo "$as_me: failed program was:" >&5 |
|
|
12667 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12668 | |
|
|
12669 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
12670 | fi |
|
|
12671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12672 | done |
|
|
12673 | case $ac_lo in |
|
|
12674 | ?*) ac_cv_sizeof_long=$ac_lo;; |
|
|
12675 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
12676 | See \`config.log' for more details." >&5 |
|
|
12677 | echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
12678 | See \`config.log' for more details." >&2;} |
|
|
12679 | { (exit 1); exit 1; }; } ;; |
|
|
12680 | esac |
|
|
12681 | else |
|
|
12682 | if test "$cross_compiling" = yes; then |
|
|
12683 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
|
12684 | See \`config.log' for more details." >&5 |
|
|
12685 | echo "$as_me: error: cannot run test program while cross compiling |
|
|
12686 | See \`config.log' for more details." >&2;} |
|
|
12687 | { (exit 1); exit 1; }; } |
|
|
12688 | else |
|
|
12689 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12690 | /* confdefs.h. */ |
|
|
12691 | _ACEOF |
|
|
12692 | cat confdefs.h >>conftest.$ac_ext |
|
|
12693 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12694 | /* end confdefs.h. */ |
|
|
12695 | $ac_includes_default |
|
|
12696 | long longval () { return (long) (sizeof (long)); } |
|
|
12697 | unsigned long ulongval () { return (long) (sizeof (long)); } |
|
|
12698 | #include <stdio.h> |
|
|
12699 | #include <stdlib.h> |
|
|
12700 | int |
|
|
12701 | main () |
|
|
12702 | { |
|
|
12703 | |
|
|
12704 | FILE *f = fopen ("conftest.val", "w"); |
|
|
12705 | if (! f) |
|
|
12706 | exit (1); |
|
|
12707 | if (((long) (sizeof (long))) < 0) |
|
|
12708 | { |
|
|
12709 | long i = longval (); |
|
|
12710 | if (i != ((long) (sizeof (long)))) |
|
|
12711 | exit (1); |
|
|
12712 | fprintf (f, "%ld\n", i); |
|
|
12713 | } |
|
|
12714 | else |
|
|
12715 | { |
|
|
12716 | unsigned long i = ulongval (); |
|
|
12717 | if (i != ((long) (sizeof (long)))) |
|
|
12718 | exit (1); |
|
|
12719 | fprintf (f, "%lu\n", i); |
|
|
12720 | } |
|
|
12721 | exit (ferror (f) || fclose (f) != 0); |
|
|
12722 | |
|
|
12723 | ; |
|
|
12724 | return 0; |
|
|
12725 | } |
|
|
12726 | _ACEOF |
|
|
12727 | rm -f conftest$ac_exeext |
|
|
12728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12729 | (eval $ac_link) 2>&5 |
|
|
12730 | ac_status=$? |
|
|
12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12732 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12734 | (eval $ac_try) 2>&5 |
|
|
12735 | ac_status=$? |
|
|
12736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12737 | (exit $ac_status); }; }; then |
|
|
12738 | ac_cv_sizeof_long=`cat conftest.val` |
|
|
12739 | else |
|
|
12740 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12741 | echo "$as_me: failed program was:" >&5 |
|
|
12742 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12743 | |
|
|
12744 | ( exit $ac_status ) |
|
|
12745 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
12746 | See \`config.log' for more details." >&5 |
|
|
12747 | echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
12748 | See \`config.log' for more details." >&2;} |
|
|
12749 | { (exit 1); exit 1; }; } |
|
|
12750 | fi |
|
|
12751 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12752 | fi |
|
|
12753 | fi |
|
|
12754 | rm -f conftest.val |
|
|
12755 | else |
|
|
12756 | ac_cv_sizeof_long=0 |
|
|
12757 | fi |
|
|
12758 | fi |
|
|
12759 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
|
|
12760 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
|
|
12761 | cat >>confdefs.h <<_ACEOF |
|
|
12762 | #define SIZEOF_LONG $ac_cv_sizeof_long |
|
|
12763 | _ACEOF |
|
|
12764 | |
|
|
12765 | |
|
|
12766 | echo "$as_me:$LINENO: checking for long long" >&5 |
8489 | echo "$as_me:$LINENO: checking for long long" >&5 |
12767 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
8490 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
12768 | if test "${ac_cv_type_long_long+set}" = set; then |
8491 | if test "${ac_cv_type_long_long+set}" = set; then |
12769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12770 | else |
8493 | else |
… | |
… | |
12793 | grep -v '^ *+' conftest.er1 >conftest.err |
8516 | grep -v '^ *+' conftest.er1 >conftest.err |
12794 | rm -f conftest.er1 |
8517 | rm -f conftest.er1 |
12795 | cat conftest.err >&5 |
8518 | cat conftest.err >&5 |
12796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12797 | (exit $ac_status); } && |
8520 | (exit $ac_status); } && |
12798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8521 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8522 | || test ! -s conftest.err' |
12799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12800 | (eval $ac_try) 2>&5 |
8524 | (eval $ac_try) 2>&5 |
12801 | ac_status=$? |
8525 | ac_status=$? |
12802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12803 | (exit $ac_status); }; } && |
8527 | (exit $ac_status); }; } && |
… | |
… | |
12855 | grep -v '^ *+' conftest.er1 >conftest.err |
8579 | grep -v '^ *+' conftest.er1 >conftest.err |
12856 | rm -f conftest.er1 |
8580 | rm -f conftest.er1 |
12857 | cat conftest.err >&5 |
8581 | cat conftest.err >&5 |
12858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12859 | (exit $ac_status); } && |
8583 | (exit $ac_status); } && |
12860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8584 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8585 | || test ! -s conftest.err' |
12861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12862 | (eval $ac_try) 2>&5 |
8587 | (eval $ac_try) 2>&5 |
12863 | ac_status=$? |
8588 | ac_status=$? |
12864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12865 | (exit $ac_status); }; } && |
8590 | (exit $ac_status); }; } && |
… | |
… | |
12895 | grep -v '^ *+' conftest.er1 >conftest.err |
8620 | grep -v '^ *+' conftest.er1 >conftest.err |
12896 | rm -f conftest.er1 |
8621 | rm -f conftest.er1 |
12897 | cat conftest.err >&5 |
8622 | cat conftest.err >&5 |
12898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12899 | (exit $ac_status); } && |
8624 | (exit $ac_status); } && |
12900 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8625 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8626 | || test ! -s conftest.err' |
12901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12902 | (eval $ac_try) 2>&5 |
8628 | (eval $ac_try) 2>&5 |
12903 | ac_status=$? |
8629 | ac_status=$? |
12904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12905 | (exit $ac_status); }; } && |
8631 | (exit $ac_status); }; } && |
… | |
… | |
12951 | grep -v '^ *+' conftest.er1 >conftest.err |
8677 | grep -v '^ *+' conftest.er1 >conftest.err |
12952 | rm -f conftest.er1 |
8678 | rm -f conftest.er1 |
12953 | cat conftest.err >&5 |
8679 | cat conftest.err >&5 |
12954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12955 | (exit $ac_status); } && |
8681 | (exit $ac_status); } && |
12956 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8682 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8683 | || test ! -s conftest.err' |
12957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12958 | (eval $ac_try) 2>&5 |
8685 | (eval $ac_try) 2>&5 |
12959 | ac_status=$? |
8686 | ac_status=$? |
12960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12961 | (exit $ac_status); }; } && |
8688 | (exit $ac_status); }; } && |
… | |
… | |
12991 | grep -v '^ *+' conftest.er1 >conftest.err |
8718 | grep -v '^ *+' conftest.er1 >conftest.err |
12992 | rm -f conftest.er1 |
8719 | rm -f conftest.er1 |
12993 | cat conftest.err >&5 |
8720 | cat conftest.err >&5 |
12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12995 | (exit $ac_status); } && |
8722 | (exit $ac_status); } && |
12996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8723 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8724 | || test ! -s conftest.err' |
12997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12998 | (eval $ac_try) 2>&5 |
8726 | (eval $ac_try) 2>&5 |
12999 | ac_status=$? |
8727 | ac_status=$? |
13000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13001 | (exit $ac_status); }; } && |
8729 | (exit $ac_status); }; } && |
… | |
… | |
13055 | grep -v '^ *+' conftest.er1 >conftest.err |
8783 | grep -v '^ *+' conftest.er1 >conftest.err |
13056 | rm -f conftest.er1 |
8784 | rm -f conftest.er1 |
13057 | cat conftest.err >&5 |
8785 | cat conftest.err >&5 |
13058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13059 | (exit $ac_status); } && |
8787 | (exit $ac_status); } && |
13060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8788 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8789 | || test ! -s conftest.err' |
13061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13062 | (eval $ac_try) 2>&5 |
8791 | (eval $ac_try) 2>&5 |
13063 | ac_status=$? |
8792 | ac_status=$? |
13064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13065 | (exit $ac_status); }; } && |
8794 | (exit $ac_status); }; } && |
… | |
… | |
13201 | grep -v '^ *+' conftest.er1 >conftest.err |
8930 | grep -v '^ *+' conftest.er1 >conftest.err |
13202 | rm -f conftest.er1 |
8931 | rm -f conftest.er1 |
13203 | cat conftest.err >&5 |
8932 | cat conftest.err >&5 |
13204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13205 | (exit $ac_status); } && |
8934 | (exit $ac_status); } && |
13206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8935 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8936 | || test ! -s conftest.err' |
13207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13208 | (eval $ac_try) 2>&5 |
8938 | (eval $ac_try) 2>&5 |
13209 | ac_status=$? |
8939 | ac_status=$? |
13210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13211 | (exit $ac_status); }; } && |
8941 | (exit $ac_status); }; } && |
… | |
… | |
13263 | grep -v '^ *+' conftest.er1 >conftest.err |
8993 | grep -v '^ *+' conftest.er1 >conftest.err |
13264 | rm -f conftest.er1 |
8994 | rm -f conftest.er1 |
13265 | cat conftest.err >&5 |
8995 | cat conftest.err >&5 |
13266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13267 | (exit $ac_status); } && |
8997 | (exit $ac_status); } && |
13268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8998 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8999 | || test ! -s conftest.err' |
13269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13270 | (eval $ac_try) 2>&5 |
9001 | (eval $ac_try) 2>&5 |
13271 | ac_status=$? |
9002 | ac_status=$? |
13272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13273 | (exit $ac_status); }; } && |
9004 | (exit $ac_status); }; } && |
… | |
… | |
13303 | grep -v '^ *+' conftest.er1 >conftest.err |
9034 | grep -v '^ *+' conftest.er1 >conftest.err |
13304 | rm -f conftest.er1 |
9035 | rm -f conftest.er1 |
13305 | cat conftest.err >&5 |
9036 | cat conftest.err >&5 |
13306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13307 | (exit $ac_status); } && |
9038 | (exit $ac_status); } && |
13308 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9039 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9040 | || test ! -s conftest.err' |
13309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13310 | (eval $ac_try) 2>&5 |
9042 | (eval $ac_try) 2>&5 |
13311 | ac_status=$? |
9043 | ac_status=$? |
13312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13313 | (exit $ac_status); }; } && |
9045 | (exit $ac_status); }; } && |
… | |
… | |
13359 | grep -v '^ *+' conftest.er1 >conftest.err |
9091 | grep -v '^ *+' conftest.er1 >conftest.err |
13360 | rm -f conftest.er1 |
9092 | rm -f conftest.er1 |
13361 | cat conftest.err >&5 |
9093 | cat conftest.err >&5 |
13362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13363 | (exit $ac_status); } && |
9095 | (exit $ac_status); } && |
13364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9096 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9097 | || test ! -s conftest.err' |
13365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13366 | (eval $ac_try) 2>&5 |
9099 | (eval $ac_try) 2>&5 |
13367 | ac_status=$? |
9100 | ac_status=$? |
13368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13369 | (exit $ac_status); }; } && |
9102 | (exit $ac_status); }; } && |
… | |
… | |
13399 | grep -v '^ *+' conftest.er1 >conftest.err |
9132 | grep -v '^ *+' conftest.er1 >conftest.err |
13400 | rm -f conftest.er1 |
9133 | rm -f conftest.er1 |
13401 | cat conftest.err >&5 |
9134 | cat conftest.err >&5 |
13402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13403 | (exit $ac_status); } && |
9136 | (exit $ac_status); } && |
13404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9137 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9138 | || test ! -s conftest.err' |
13405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13406 | (eval $ac_try) 2>&5 |
9140 | (eval $ac_try) 2>&5 |
13407 | ac_status=$? |
9141 | ac_status=$? |
13408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13409 | (exit $ac_status); }; } && |
9143 | (exit $ac_status); }; } && |
… | |
… | |
13463 | grep -v '^ *+' conftest.er1 >conftest.err |
9197 | grep -v '^ *+' conftest.er1 >conftest.err |
13464 | rm -f conftest.er1 |
9198 | rm -f conftest.er1 |
13465 | cat conftest.err >&5 |
9199 | cat conftest.err >&5 |
13466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13467 | (exit $ac_status); } && |
9201 | (exit $ac_status); } && |
13468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9202 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9203 | || test ! -s conftest.err' |
13469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13470 | (eval $ac_try) 2>&5 |
9205 | (eval $ac_try) 2>&5 |
13471 | ac_status=$? |
9206 | ac_status=$? |
13472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13473 | (exit $ac_status); }; } && |
9208 | (exit $ac_status); }; } && |
… | |
… | |
13608 | grep -v '^ *+' conftest.er1 >conftest.err |
9343 | grep -v '^ *+' conftest.er1 >conftest.err |
13609 | rm -f conftest.er1 |
9344 | rm -f conftest.er1 |
13610 | cat conftest.err >&5 |
9345 | cat conftest.err >&5 |
13611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13612 | (exit $ac_status); } && |
9347 | (exit $ac_status); } && |
13613 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9348 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9349 | || test ! -s conftest.err' |
13614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13615 | (eval $ac_try) 2>&5 |
9351 | (eval $ac_try) 2>&5 |
13616 | ac_status=$? |
9352 | ac_status=$? |
13617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13618 | (exit $ac_status); }; } && |
9354 | (exit $ac_status); }; } && |
… | |
… | |
13625 | rxvt_cv_int16_t=yes |
9361 | rxvt_cv_int16_t=yes |
13626 | else |
9362 | else |
13627 | echo "$as_me: failed program was:" >&5 |
9363 | echo "$as_me: failed program was:" >&5 |
13628 | sed 's/^/| /' conftest.$ac_ext >&5 |
9364 | sed 's/^/| /' conftest.$ac_ext >&5 |
13629 | |
9365 | |
13630 | if test $ac_cv_sizeof_char -ge 2; then |
9366 | if test "$ac_cv_sizeof_char" -ge 2; then |
13631 | rxvt_cv_int16_t=" char" |
9367 | rxvt_cv_int16_t=" char" |
13632 | else |
9368 | else |
13633 | if test $ac_cv_sizeof_short -ge 2; then |
9369 | if test "$ac_cv_sizeof_short" -ge 2; then |
13634 | rxvt_cv_int16_t=" short" |
9370 | rxvt_cv_int16_t=" short" |
13635 | else |
9371 | else |
13636 | if test $ac_cv_sizeof_int -ge 2; then |
9372 | if test "$ac_cv_sizeof_int" -ge 2; then |
13637 | rxvt_cv_int16_t=" int" |
9373 | rxvt_cv_int16_t=" int" |
13638 | else |
9374 | else |
13639 | if test $ac_cv_sizeof_long -ge 2; then |
9375 | if test "$ac_cv_sizeof_long" -ge 2; then |
13640 | rxvt_cv_int16_t=" long" |
9376 | rxvt_cv_int16_t=" long" |
13641 | else |
9377 | else |
13642 | if test $ac_cv_sizeof_long_long -ge 2; then |
9378 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
13643 | rxvt_cv_int16_t=" long long" |
9379 | rxvt_cv_int16_t=" long long" |
13644 | else |
9380 | else |
13645 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
9381 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
13646 | fi |
9382 | fi |
13647 | fi |
9383 | fi |
… | |
… | |
13690 | grep -v '^ *+' conftest.er1 >conftest.err |
9426 | grep -v '^ *+' conftest.er1 >conftest.err |
13691 | rm -f conftest.er1 |
9427 | rm -f conftest.er1 |
13692 | cat conftest.err >&5 |
9428 | cat conftest.err >&5 |
13693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13694 | (exit $ac_status); } && |
9430 | (exit $ac_status); } && |
13695 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9431 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9432 | || test ! -s conftest.err' |
13696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13697 | (eval $ac_try) 2>&5 |
9434 | (eval $ac_try) 2>&5 |
13698 | ac_status=$? |
9435 | ac_status=$? |
13699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13700 | (exit $ac_status); }; } && |
9437 | (exit $ac_status); }; } && |
… | |
… | |
13707 | rxvt_cv_uint16_t=yes |
9444 | rxvt_cv_uint16_t=yes |
13708 | else |
9445 | else |
13709 | echo "$as_me: failed program was:" >&5 |
9446 | echo "$as_me: failed program was:" >&5 |
13710 | sed 's/^/| /' conftest.$ac_ext >&5 |
9447 | sed 's/^/| /' conftest.$ac_ext >&5 |
13711 | |
9448 | |
13712 | if test $ac_cv_sizeof_char -ge 2; then |
9449 | if test "$ac_cv_sizeof_char" -ge 2; then |
13713 | rxvt_cv_uint16_t="unsigned char" |
9450 | rxvt_cv_uint16_t="unsigned char" |
13714 | else |
9451 | else |
13715 | if test $ac_cv_sizeof_short -ge 2; then |
9452 | if test "$ac_cv_sizeof_short" -ge 2; then |
13716 | rxvt_cv_uint16_t="unsigned short" |
9453 | rxvt_cv_uint16_t="unsigned short" |
13717 | else |
9454 | else |
13718 | if test $ac_cv_sizeof_int -ge 2; then |
9455 | if test "$ac_cv_sizeof_int" -ge 2; then |
13719 | rxvt_cv_uint16_t="unsigned int" |
9456 | rxvt_cv_uint16_t="unsigned int" |
13720 | else |
9457 | else |
13721 | if test $ac_cv_sizeof_long -ge 2; then |
9458 | if test "$ac_cv_sizeof_long" -ge 2; then |
13722 | rxvt_cv_uint16_t="unsigned long" |
9459 | rxvt_cv_uint16_t="unsigned long" |
13723 | else |
9460 | else |
13724 | if test $ac_cv_sizeof_long_long -ge 2; then |
9461 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
13725 | rxvt_cv_uint16_t="unsigned long long" |
9462 | rxvt_cv_uint16_t="unsigned long long" |
13726 | else |
9463 | else |
13727 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
9464 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
13728 | fi |
9465 | fi |
13729 | fi |
9466 | fi |
… | |
… | |
13772 | grep -v '^ *+' conftest.er1 >conftest.err |
9509 | grep -v '^ *+' conftest.er1 >conftest.err |
13773 | rm -f conftest.er1 |
9510 | rm -f conftest.er1 |
13774 | cat conftest.err >&5 |
9511 | cat conftest.err >&5 |
13775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13776 | (exit $ac_status); } && |
9513 | (exit $ac_status); } && |
13777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9514 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9515 | || test ! -s conftest.err' |
13778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13779 | (eval $ac_try) 2>&5 |
9517 | (eval $ac_try) 2>&5 |
13780 | ac_status=$? |
9518 | ac_status=$? |
13781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13782 | (exit $ac_status); }; } && |
9520 | (exit $ac_status); }; } && |
… | |
… | |
13789 | rxvt_cv_int32_t=yes |
9527 | rxvt_cv_int32_t=yes |
13790 | else |
9528 | else |
13791 | echo "$as_me: failed program was:" >&5 |
9529 | echo "$as_me: failed program was:" >&5 |
13792 | sed 's/^/| /' conftest.$ac_ext >&5 |
9530 | sed 's/^/| /' conftest.$ac_ext >&5 |
13793 | |
9531 | |
13794 | if test $ac_cv_sizeof_char -ge 4; then |
9532 | if test "$ac_cv_sizeof_char" -ge 4; then |
13795 | rxvt_cv_int32_t=" char" |
9533 | rxvt_cv_int32_t=" char" |
13796 | else |
9534 | else |
13797 | if test $ac_cv_sizeof_short -ge 4; then |
9535 | if test "$ac_cv_sizeof_short" -ge 4; then |
13798 | rxvt_cv_int32_t=" short" |
9536 | rxvt_cv_int32_t=" short" |
13799 | else |
9537 | else |
13800 | if test $ac_cv_sizeof_int -ge 4; then |
9538 | if test "$ac_cv_sizeof_int" -ge 4; then |
13801 | rxvt_cv_int32_t=" int" |
9539 | rxvt_cv_int32_t=" int" |
13802 | else |
9540 | else |
13803 | if test $ac_cv_sizeof_long -ge 4; then |
9541 | if test "$ac_cv_sizeof_long" -ge 4; then |
13804 | rxvt_cv_int32_t=" long" |
9542 | rxvt_cv_int32_t=" long" |
13805 | else |
9543 | else |
13806 | if test $ac_cv_sizeof_long_long -ge 4; then |
9544 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
13807 | rxvt_cv_int32_t=" long long" |
9545 | rxvt_cv_int32_t=" long long" |
13808 | else |
9546 | else |
13809 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
9547 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
13810 | fi |
9548 | fi |
13811 | fi |
9549 | fi |
… | |
… | |
13854 | grep -v '^ *+' conftest.er1 >conftest.err |
9592 | grep -v '^ *+' conftest.er1 >conftest.err |
13855 | rm -f conftest.er1 |
9593 | rm -f conftest.er1 |
13856 | cat conftest.err >&5 |
9594 | cat conftest.err >&5 |
13857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13858 | (exit $ac_status); } && |
9596 | (exit $ac_status); } && |
13859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9597 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9598 | || test ! -s conftest.err' |
13860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13861 | (eval $ac_try) 2>&5 |
9600 | (eval $ac_try) 2>&5 |
13862 | ac_status=$? |
9601 | ac_status=$? |
13863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13864 | (exit $ac_status); }; } && |
9603 | (exit $ac_status); }; } && |
… | |
… | |
13871 | rxvt_cv_uint32_t=yes |
9610 | rxvt_cv_uint32_t=yes |
13872 | else |
9611 | else |
13873 | echo "$as_me: failed program was:" >&5 |
9612 | echo "$as_me: failed program was:" >&5 |
13874 | sed 's/^/| /' conftest.$ac_ext >&5 |
9613 | sed 's/^/| /' conftest.$ac_ext >&5 |
13875 | |
9614 | |
13876 | if test $ac_cv_sizeof_char -ge 4; then |
9615 | if test "$ac_cv_sizeof_char" -ge 4; then |
13877 | rxvt_cv_uint32_t="unsigned char" |
9616 | rxvt_cv_uint32_t="unsigned char" |
13878 | else |
9617 | else |
13879 | if test $ac_cv_sizeof_short -ge 4; then |
9618 | if test "$ac_cv_sizeof_short" -ge 4; then |
13880 | rxvt_cv_uint32_t="unsigned short" |
9619 | rxvt_cv_uint32_t="unsigned short" |
13881 | else |
9620 | else |
13882 | if test $ac_cv_sizeof_int -ge 4; then |
9621 | if test "$ac_cv_sizeof_int" -ge 4; then |
13883 | rxvt_cv_uint32_t="unsigned int" |
9622 | rxvt_cv_uint32_t="unsigned int" |
13884 | else |
9623 | else |
13885 | if test $ac_cv_sizeof_long -ge 4; then |
9624 | if test "$ac_cv_sizeof_long" -ge 4; then |
13886 | rxvt_cv_uint32_t="unsigned long" |
9625 | rxvt_cv_uint32_t="unsigned long" |
13887 | else |
9626 | else |
13888 | if test $ac_cv_sizeof_long_long -ge 4; then |
9627 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
13889 | rxvt_cv_uint32_t="unsigned long long" |
9628 | rxvt_cv_uint32_t="unsigned long long" |
13890 | else |
9629 | else |
13891 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
9630 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
13892 | fi |
9631 | fi |
13893 | fi |
9632 | fi |
… | |
… | |
13907 | else |
9646 | else |
13908 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
9647 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
13909 | fi |
9648 | fi |
13910 | fi |
9649 | fi |
13911 | |
9650 | |
13912 | if test $ac_cv_sizeof_int_p -eq 8; then |
9651 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
13913 | rxvt_intp_define="#define intp_t int64_t" |
9652 | rxvt_intp_define="#define intp_t int64_t" |
13914 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
9653 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
13915 | else |
9654 | else |
13916 | if test $ac_cv_sizeof_int_p -eq 4; then |
9655 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
13917 | rxvt_intp_define="#define intp_t int32_t" |
9656 | rxvt_intp_define="#define intp_t int32_t" |
13918 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
9657 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
13919 | else |
9658 | else |
13920 | if test $ac_cv_sizeof_int_p -eq 2; then |
9659 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
13921 | rxvt_intp_define="#define intp_t int16_t" |
9660 | rxvt_intp_define="#define intp_t int16_t" |
13922 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
9661 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
13923 | else |
9662 | else |
13924 | rxvt_intp_define="#error set intp_t" |
9663 | rxvt_intp_define="#error set intp_t" |
13925 | rxvt_u_intp_define="#error set u_intp_t" |
9664 | rxvt_u_intp_define="#error set u_intp_t" |
… | |
… | |
13966 | grep -v '^ *+' conftest.er1 >conftest.err |
9705 | grep -v '^ *+' conftest.er1 >conftest.err |
13967 | rm -f conftest.er1 |
9706 | rm -f conftest.er1 |
13968 | cat conftest.err >&5 |
9707 | cat conftest.err >&5 |
13969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13970 | (exit $ac_status); } && |
9709 | (exit $ac_status); } && |
13971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9710 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9711 | || test ! -s conftest.err' |
13972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13973 | (eval $ac_try) 2>&5 |
9713 | (eval $ac_try) 2>&5 |
13974 | ac_status=$? |
9714 | ac_status=$? |
13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13976 | (exit $ac_status); }; } && |
9716 | (exit $ac_status); }; } && |
… | |
… | |
13996 | #define RETSIGTYPE $ac_cv_type_signal |
9736 | #define RETSIGTYPE $ac_cv_type_signal |
13997 | _ACEOF |
9737 | _ACEOF |
13998 | |
9738 | |
13999 | |
9739 | |
14000 | |
9740 | |
14001 | case "$host_alias" in |
|
|
14002 | *ultrix) ac_cv_func_setsid='no' ;; |
|
|
14003 | *) break;; |
|
|
14004 | esac |
|
|
14005 | |
|
|
14006 | |
|
|
14007 | |
|
|
14008 | |
|
|
14009 | |
|
|
14010 | |
|
|
14011 | |
|
|
14012 | |
|
|
14013 | |
|
|
14014 | |
|
|
14015 | |
|
|
14016 | |
|
|
14017 | |
|
|
14018 | |
|
|
14019 | |
|
|
14020 | |
|
|
14021 | |
9741 | |
14022 | |
9742 | |
14023 | |
9743 | |
14024 | for ac_func in \ |
9744 | for ac_func in \ |
14025 | atexit \ |
|
|
14026 | revoke \ |
|
|
14027 | unsetenv \ |
9745 | unsetenv \ |
14028 | setutent \ |
9746 | setutent \ |
14029 | seteuid \ |
|
|
14030 | setreuid \ |
|
|
14031 | setsid \ |
|
|
14032 | setpgrp \ |
|
|
14033 | setpgid \ |
|
|
14034 | openpty \ |
|
|
14035 | _getpty \ |
|
|
14036 | grantpt \ |
|
|
14037 | unlockpt \ |
|
|
14038 | isastream \ |
|
|
14039 | on_exit \ |
9747 | on_exit \ |
14040 | nanosleep \ |
|
|
14041 | updwtmp \ |
|
|
14042 | ttyslot \ |
|
|
14043 | |
9748 | |
14044 | do |
9749 | do |
14045 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9750 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14046 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9751 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
14047 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9752 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
… | |
… | |
14106 | grep -v '^ *+' conftest.er1 >conftest.err |
9811 | grep -v '^ *+' conftest.er1 >conftest.err |
14107 | rm -f conftest.er1 |
9812 | rm -f conftest.er1 |
14108 | cat conftest.err >&5 |
9813 | cat conftest.err >&5 |
14109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14110 | (exit $ac_status); } && |
9815 | (exit $ac_status); } && |
14111 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9816 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9817 | || test ! -s conftest.err' |
14112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14113 | (eval $ac_try) 2>&5 |
9819 | (eval $ac_try) 2>&5 |
14114 | ac_status=$? |
9820 | ac_status=$? |
14115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14116 | (exit $ac_status); }; } && |
9822 | (exit $ac_status); }; } && |
… | |
… | |
14140 | fi |
9846 | fi |
14141 | done |
9847 | done |
14142 | |
9848 | |
14143 | |
9849 | |
14144 | |
9850 | |
|
|
9851 | support_utmp=yes |
|
|
9852 | support_wtmp=yes |
|
|
9853 | support_lastlog=yes |
|
|
9854 | |
|
|
9855 | # Check whether --enable-utmp or --disable-utmp was given. |
|
|
9856 | if test "${enable_utmp+set}" = set; then |
|
|
9857 | enableval="$enable_utmp" |
|
|
9858 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
9859 | support_utmp=$enableval |
|
|
9860 | fi |
|
|
9861 | fi; |
|
|
9862 | |
|
|
9863 | # Check whether --enable-wtmp or --disable-wtmp was given. |
|
|
9864 | if test "${enable_wtmp+set}" = set; then |
|
|
9865 | enableval="$enable_wtmp" |
|
|
9866 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
9867 | support_wtmp=$enableval |
|
|
9868 | fi |
|
|
9869 | fi; |
|
|
9870 | |
|
|
9871 | # Check whether --enable-lastlog or --disable-lastlog was given. |
|
|
9872 | if test "${enable_lastlog+set}" = set; then |
|
|
9873 | enableval="$enable_lastlog" |
|
|
9874 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
9875 | support_lastlog=$enableval |
|
|
9876 | fi |
|
|
9877 | fi; |
|
|
9878 | |
|
|
9879 | if test x$support_utmp = xyes; then |
|
|
9880 | |
|
|
9881 | cat >>confdefs.h <<\_ACEOF |
|
|
9882 | #define UTMP_SUPPORT 1 |
|
|
9883 | _ACEOF |
|
|
9884 | |
|
|
9885 | fi |
|
|
9886 | if test x$support_wtmp = xyes; then |
|
|
9887 | |
|
|
9888 | cat >>confdefs.h <<\_ACEOF |
|
|
9889 | #define WTMP_SUPPORT 1 |
|
|
9890 | _ACEOF |
|
|
9891 | |
|
|
9892 | fi |
|
|
9893 | if test x$support_lastlog = xyes; then |
|
|
9894 | |
|
|
9895 | cat >>confdefs.h <<\_ACEOF |
|
|
9896 | #define LASTLOG_SUPPORT 1 |
|
|
9897 | _ACEOF |
|
|
9898 | |
|
|
9899 | fi |
|
|
9900 | |
|
|
9901 | |
|
|
9902 | |
|
|
9903 | |
|
|
9904 | for ac_func in \ |
|
|
9905 | ttyslot \ |
|
|
9906 | updwtmp \ |
|
|
9907 | updwtmpx \ |
|
|
9908 | |
|
|
9909 | do |
|
|
9910 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
9911 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
9912 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
9913 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
9914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9915 | else |
|
|
9916 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9917 | /* confdefs.h. */ |
|
|
9918 | _ACEOF |
|
|
9919 | cat confdefs.h >>conftest.$ac_ext |
|
|
9920 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9921 | /* end confdefs.h. */ |
|
|
9922 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
9923 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
9924 | #define $ac_func innocuous_$ac_func |
|
|
9925 | |
|
|
9926 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
9927 | which can conflict with char $ac_func (); below. |
|
|
9928 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
9929 | <limits.h> exists even on freestanding compilers. */ |
|
|
9930 | |
|
|
9931 | #ifdef __STDC__ |
|
|
9932 | # include <limits.h> |
|
|
9933 | #else |
|
|
9934 | # include <assert.h> |
|
|
9935 | #endif |
|
|
9936 | |
|
|
9937 | #undef $ac_func |
|
|
9938 | |
|
|
9939 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
9940 | #ifdef __cplusplus |
|
|
9941 | extern "C" |
|
|
9942 | { |
|
|
9943 | #endif |
|
|
9944 | /* We use char because int might match the return type of a gcc2 |
|
|
9945 | builtin and then its argument prototype would still apply. */ |
|
|
9946 | char $ac_func (); |
|
|
9947 | /* The GNU C library defines this for functions which it implements |
|
|
9948 | to always fail with ENOSYS. Some functions are actually named |
|
|
9949 | something starting with __ and the normal name is an alias. */ |
|
|
9950 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
9951 | choke me |
|
|
9952 | #else |
|
|
9953 | char (*f) () = $ac_func; |
|
|
9954 | #endif |
|
|
9955 | #ifdef __cplusplus |
|
|
9956 | } |
|
|
9957 | #endif |
|
|
9958 | |
|
|
9959 | int |
|
|
9960 | main () |
|
|
9961 | { |
|
|
9962 | return f != $ac_func; |
|
|
9963 | ; |
|
|
9964 | return 0; |
|
|
9965 | } |
|
|
9966 | _ACEOF |
|
|
9967 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
9968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
9969 | (eval $ac_link) 2>conftest.er1 |
|
|
9970 | ac_status=$? |
|
|
9971 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9972 | rm -f conftest.er1 |
|
|
9973 | cat conftest.err >&5 |
|
|
9974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9975 | (exit $ac_status); } && |
|
|
9976 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9977 | || test ! -s conftest.err' |
|
|
9978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9979 | (eval $ac_try) 2>&5 |
|
|
9980 | ac_status=$? |
|
|
9981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9982 | (exit $ac_status); }; } && |
|
|
9983 | { ac_try='test -s conftest$ac_exeext' |
|
|
9984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9985 | (eval $ac_try) 2>&5 |
|
|
9986 | ac_status=$? |
|
|
9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9988 | (exit $ac_status); }; }; then |
|
|
9989 | eval "$as_ac_var=yes" |
|
|
9990 | else |
|
|
9991 | echo "$as_me: failed program was:" >&5 |
|
|
9992 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9993 | |
|
|
9994 | eval "$as_ac_var=no" |
|
|
9995 | fi |
|
|
9996 | rm -f conftest.err conftest.$ac_objext \ |
|
|
9997 | conftest$ac_exeext conftest.$ac_ext |
|
|
9998 | fi |
|
|
9999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
10000 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
10001 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10002 | cat >>confdefs.h <<_ACEOF |
|
|
10003 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10004 | _ACEOF |
|
|
10005 | |
|
|
10006 | fi |
|
|
10007 | done |
|
|
10008 | |
|
|
10009 | |
|
|
10010 | |
|
|
10011 | |
|
|
10012 | |
|
|
10013 | for ac_header in \ |
|
|
10014 | utmp.h \ |
|
|
10015 | utmpx.h \ |
|
|
10016 | lastlog.h \ |
|
|
10017 | |
|
|
10018 | do |
|
|
10019 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10020 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10021 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10022 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10023 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10025 | fi |
|
|
10026 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10027 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10028 | else |
|
|
10029 | # Is the header compilable? |
|
|
10030 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
10031 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
10032 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10033 | /* confdefs.h. */ |
|
|
10034 | _ACEOF |
|
|
10035 | cat confdefs.h >>conftest.$ac_ext |
|
|
10036 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10037 | /* end confdefs.h. */ |
|
|
10038 | $ac_includes_default |
|
|
10039 | #include <$ac_header> |
|
|
10040 | _ACEOF |
|
|
10041 | rm -f conftest.$ac_objext |
|
|
10042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10043 | (eval $ac_compile) 2>conftest.er1 |
|
|
10044 | ac_status=$? |
|
|
10045 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10046 | rm -f conftest.er1 |
|
|
10047 | cat conftest.err >&5 |
|
|
10048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10049 | (exit $ac_status); } && |
|
|
10050 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10051 | || test ! -s conftest.err' |
|
|
10052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10053 | (eval $ac_try) 2>&5 |
|
|
10054 | ac_status=$? |
|
|
10055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10056 | (exit $ac_status); }; } && |
|
|
10057 | { ac_try='test -s conftest.$ac_objext' |
|
|
10058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10059 | (eval $ac_try) 2>&5 |
|
|
10060 | ac_status=$? |
|
|
10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10062 | (exit $ac_status); }; }; then |
|
|
10063 | ac_header_compiler=yes |
|
|
10064 | else |
|
|
10065 | echo "$as_me: failed program was:" >&5 |
|
|
10066 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10067 | |
|
|
10068 | ac_header_compiler=no |
|
|
10069 | fi |
|
|
10070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10071 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10072 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10073 | |
|
|
10074 | # Is the header present? |
|
|
10075 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
10076 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
10077 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10078 | /* confdefs.h. */ |
|
|
10079 | _ACEOF |
|
|
10080 | cat confdefs.h >>conftest.$ac_ext |
|
|
10081 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10082 | /* end confdefs.h. */ |
|
|
10083 | #include <$ac_header> |
|
|
10084 | _ACEOF |
|
|
10085 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10086 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10087 | ac_status=$? |
|
|
10088 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10089 | rm -f conftest.er1 |
|
|
10090 | cat conftest.err >&5 |
|
|
10091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10092 | (exit $ac_status); } >/dev/null; then |
|
|
10093 | if test -s conftest.err; then |
|
|
10094 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10095 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10096 | else |
|
|
10097 | ac_cpp_err= |
|
|
10098 | fi |
|
|
10099 | else |
|
|
10100 | ac_cpp_err=yes |
|
|
10101 | fi |
|
|
10102 | if test -z "$ac_cpp_err"; then |
|
|
10103 | ac_header_preproc=yes |
|
|
10104 | else |
|
|
10105 | echo "$as_me: failed program was:" >&5 |
|
|
10106 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10107 | |
|
|
10108 | ac_header_preproc=no |
|
|
10109 | fi |
|
|
10110 | rm -f conftest.err conftest.$ac_ext |
|
|
10111 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10112 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10113 | |
|
|
10114 | # So? What about this header? |
|
|
10115 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10116 | yes:no: ) |
|
|
10117 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10118 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10119 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
10120 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
10121 | ac_header_preproc=yes |
|
|
10122 | ;; |
|
|
10123 | no:yes:* ) |
|
|
10124 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
10125 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
10126 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
10127 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
10128 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
10129 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
10130 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10131 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10132 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
10133 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
10134 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
10135 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
10136 | ( |
|
|
10137 | cat <<\_ASBOX |
|
|
10138 | ## ------------------------------------------ ## |
|
|
10139 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10140 | ## ------------------------------------------ ## |
|
|
10141 | _ASBOX |
|
|
10142 | ) | |
|
|
10143 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10144 | ;; |
|
|
10145 | esac |
|
|
10146 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10150 | else |
|
|
10151 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
10152 | fi |
|
|
10153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10154 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10155 | |
|
|
10156 | fi |
|
|
10157 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10158 | cat >>confdefs.h <<_ACEOF |
|
|
10159 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10160 | _ACEOF |
|
|
10161 | |
|
|
10162 | fi |
|
|
10163 | |
|
|
10164 | done |
|
|
10165 | |
|
|
10166 | |
|
|
10167 | |
14145 | if test "${ac_cv_header_utmp_h+set}" = set; then |
10168 | if test "${ac_cv_header_utmp_h+set}" = set; then |
14146 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
10169 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
14147 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
10170 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
14148 | if test "${ac_cv_header_utmp_h+set}" = set; then |
10171 | if test "${ac_cv_header_utmp_h+set}" = set; then |
14149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
14170 | grep -v '^ *+' conftest.er1 >conftest.err |
10193 | grep -v '^ *+' conftest.er1 >conftest.err |
14171 | rm -f conftest.er1 |
10194 | rm -f conftest.er1 |
14172 | cat conftest.err >&5 |
10195 | cat conftest.err >&5 |
14173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14174 | (exit $ac_status); } && |
10197 | (exit $ac_status); } && |
14175 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10198 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10199 | || test ! -s conftest.err' |
14176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14177 | (eval $ac_try) 2>&5 |
10201 | (eval $ac_try) 2>&5 |
14178 | ac_status=$? |
10202 | ac_status=$? |
14179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14180 | (exit $ac_status); }; } && |
10204 | (exit $ac_status); }; } && |
… | |
… | |
14213 | rm -f conftest.er1 |
10237 | rm -f conftest.er1 |
14214 | cat conftest.err >&5 |
10238 | cat conftest.err >&5 |
14215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14216 | (exit $ac_status); } >/dev/null; then |
10240 | (exit $ac_status); } >/dev/null; then |
14217 | if test -s conftest.err; then |
10241 | if test -s conftest.err; then |
14218 | ac_cpp_err=$ac_c_preproc_warn_flag |
10242 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
14219 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
10243 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
14220 | else |
10244 | else |
14221 | ac_cpp_err= |
10245 | ac_cpp_err= |
14222 | fi |
10246 | fi |
14223 | else |
10247 | else |
14224 | ac_cpp_err=yes |
10248 | ac_cpp_err=yes |
… | |
… | |
14234 | rm -f conftest.err conftest.$ac_ext |
10258 | rm -f conftest.err conftest.$ac_ext |
14235 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10259 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14236 | echo "${ECHO_T}$ac_header_preproc" >&6 |
10260 | echo "${ECHO_T}$ac_header_preproc" >&6 |
14237 | |
10261 | |
14238 | # So? What about this header? |
10262 | # So? What about this header? |
14239 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10263 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
14240 | yes:no: ) |
10264 | yes:no: ) |
14241 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10265 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14242 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10266 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
14243 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
10267 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
14244 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
10268 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
… | |
… | |
14279 | |
10303 | |
14280 | fi |
10304 | fi |
14281 | if test $ac_cv_header_utmp_h = yes; then |
10305 | if test $ac_cv_header_utmp_h = yes; then |
14282 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10306 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
14283 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
10307 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
14284 | if test "${rxvt_cv_struct_utmp+set}" = set; then |
10308 | if test "${struct_utmp+set}" = set; then |
14285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14286 | else |
10310 | else |
14287 | cat >conftest.$ac_ext <<_ACEOF |
10311 | cat >conftest.$ac_ext <<_ACEOF |
14288 | /* confdefs.h. */ |
10312 | /* confdefs.h. */ |
14289 | _ACEOF |
10313 | _ACEOF |
14290 | cat confdefs.h >>conftest.$ac_ext |
10314 | cat confdefs.h >>conftest.$ac_ext |
14291 | cat >>conftest.$ac_ext <<_ACEOF |
10315 | cat >>conftest.$ac_ext <<_ACEOF |
14292 | /* end confdefs.h. */ |
10316 | /* end confdefs.h. */ |
14293 | #include <sys/types.h> |
10317 | #include <sys/types.h> |
14294 | #include <stdint.h> |
|
|
14295 | #include <utmp.h> |
10318 | #include <utmp.h> |
14296 | int |
10319 | int |
14297 | main () |
10320 | main () |
14298 | { |
10321 | { |
14299 | struct utmp ut; |
10322 | struct utmp ut; |
… | |
… | |
14308 | grep -v '^ *+' conftest.er1 >conftest.err |
10331 | grep -v '^ *+' conftest.er1 >conftest.err |
14309 | rm -f conftest.er1 |
10332 | rm -f conftest.er1 |
14310 | cat conftest.err >&5 |
10333 | cat conftest.err >&5 |
14311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14312 | (exit $ac_status); } && |
10335 | (exit $ac_status); } && |
14313 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10336 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10337 | || test ! -s conftest.err' |
14314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14315 | (eval $ac_try) 2>&5 |
10339 | (eval $ac_try) 2>&5 |
14316 | ac_status=$? |
10340 | ac_status=$? |
14317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14318 | (exit $ac_status); }; } && |
10342 | (exit $ac_status); }; } && |
… | |
… | |
14320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14321 | (eval $ac_try) 2>&5 |
10345 | (eval $ac_try) 2>&5 |
14322 | ac_status=$? |
10346 | ac_status=$? |
14323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14324 | (exit $ac_status); }; }; then |
10348 | (exit $ac_status); }; }; then |
14325 | rxvt_cv_struct_utmp=yes |
10349 | struct_utmp=yes |
14326 | else |
10350 | else |
14327 | echo "$as_me: failed program was:" >&5 |
10351 | echo "$as_me: failed program was:" >&5 |
14328 | sed 's/^/| /' conftest.$ac_ext >&5 |
10352 | sed 's/^/| /' conftest.$ac_ext >&5 |
14329 | |
10353 | |
14330 | rxvt_cv_struct_utmp=no |
10354 | struct_utmp=no |
14331 | fi |
10355 | fi |
14332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14333 | fi |
10357 | fi |
14334 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 |
10358 | echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
14335 | echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 |
10359 | echo "${ECHO_T}$struct_utmp" >&6 |
14336 | if test x$rxvt_cv_struct_utmp = xyes; then |
10360 | if test x$struct_utmp = xyes; then |
14337 | |
10361 | |
14338 | cat >>confdefs.h <<\_ACEOF |
10362 | cat >>confdefs.h <<\_ACEOF |
14339 | #define HAVE_STRUCT_UTMP 1 |
10363 | #define HAVE_STRUCT_UTMP 1 |
14340 | _ACEOF |
10364 | _ACEOF |
14341 | |
10365 | |
14342 | fi |
10366 | fi |
14343 | |
10367 | |
14344 | |
10368 | |
14345 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
10369 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
14346 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
10370 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
14347 | if test "${rxvt_cv_struct_utmp_host+set}" = set; then |
10371 | if test "${struct_utmp_host+set}" = set; then |
14348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14349 | else |
10373 | else |
14350 | cat >conftest.$ac_ext <<_ACEOF |
10374 | cat >conftest.$ac_ext <<_ACEOF |
14351 | /* confdefs.h. */ |
10375 | /* confdefs.h. */ |
14352 | _ACEOF |
10376 | _ACEOF |
… | |
… | |
14370 | grep -v '^ *+' conftest.er1 >conftest.err |
10394 | grep -v '^ *+' conftest.er1 >conftest.err |
14371 | rm -f conftest.er1 |
10395 | rm -f conftest.er1 |
14372 | cat conftest.err >&5 |
10396 | cat conftest.err >&5 |
14373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14374 | (exit $ac_status); } && |
10398 | (exit $ac_status); } && |
14375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10399 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10400 | || test ! -s conftest.err' |
14376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14377 | (eval $ac_try) 2>&5 |
10402 | (eval $ac_try) 2>&5 |
14378 | ac_status=$? |
10403 | ac_status=$? |
14379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14380 | (exit $ac_status); }; } && |
10405 | (exit $ac_status); }; } && |
… | |
… | |
14382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14383 | (eval $ac_try) 2>&5 |
10408 | (eval $ac_try) 2>&5 |
14384 | ac_status=$? |
10409 | ac_status=$? |
14385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14386 | (exit $ac_status); }; }; then |
10411 | (exit $ac_status); }; }; then |
14387 | rxvt_cv_struct_utmp_host=yes |
10412 | struct_utmp_host=yes |
14388 | else |
10413 | else |
14389 | echo "$as_me: failed program was:" >&5 |
10414 | echo "$as_me: failed program was:" >&5 |
14390 | sed 's/^/| /' conftest.$ac_ext >&5 |
10415 | sed 's/^/| /' conftest.$ac_ext >&5 |
14391 | |
10416 | |
14392 | rxvt_cv_struct_utmp_host=no |
10417 | struct_utmp_host=no |
14393 | fi |
10418 | fi |
14394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14395 | fi |
10420 | fi |
14396 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 |
10421 | echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
14397 | echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 |
10422 | echo "${ECHO_T}$struct_utmp_host" >&6 |
14398 | if test x$rxvt_cv_struct_utmp_host = xyes; then |
10423 | if test x$struct_utmp_host = xyes; then |
14399 | |
10424 | |
14400 | cat >>confdefs.h <<\_ACEOF |
10425 | cat >>confdefs.h <<\_ACEOF |
14401 | #define HAVE_UTMP_HOST 1 |
10426 | #define HAVE_UTMP_HOST 1 |
14402 | _ACEOF |
10427 | _ACEOF |
14403 | |
10428 | |
14404 | fi |
10429 | fi |
14405 | |
10430 | |
14406 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
10431 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
14407 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
10432 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
14408 | if test "${rxvt_cv_struct_utmp_pid+set}" = set; then |
10433 | if test "${struct_utmp_pid+set}" = set; then |
14409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14410 | else |
10435 | else |
14411 | cat >conftest.$ac_ext <<_ACEOF |
10436 | cat >conftest.$ac_ext <<_ACEOF |
14412 | /* confdefs.h. */ |
10437 | /* confdefs.h. */ |
14413 | _ACEOF |
10438 | _ACEOF |
… | |
… | |
14431 | grep -v '^ *+' conftest.er1 >conftest.err |
10456 | grep -v '^ *+' conftest.er1 >conftest.err |
14432 | rm -f conftest.er1 |
10457 | rm -f conftest.er1 |
14433 | cat conftest.err >&5 |
10458 | cat conftest.err >&5 |
14434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14435 | (exit $ac_status); } && |
10460 | (exit $ac_status); } && |
14436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10461 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10462 | || test ! -s conftest.err' |
14437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14438 | (eval $ac_try) 2>&5 |
10464 | (eval $ac_try) 2>&5 |
14439 | ac_status=$? |
10465 | ac_status=$? |
14440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14441 | (exit $ac_status); }; } && |
10467 | (exit $ac_status); }; } && |
… | |
… | |
14443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14444 | (eval $ac_try) 2>&5 |
10470 | (eval $ac_try) 2>&5 |
14445 | ac_status=$? |
10471 | ac_status=$? |
14446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14447 | (exit $ac_status); }; }; then |
10473 | (exit $ac_status); }; }; then |
14448 | rxvt_cv_struct_utmp_pid=yes |
10474 | struct_utmp_pid=yes |
14449 | else |
10475 | else |
14450 | echo "$as_me: failed program was:" >&5 |
10476 | echo "$as_me: failed program was:" >&5 |
14451 | sed 's/^/| /' conftest.$ac_ext >&5 |
10477 | sed 's/^/| /' conftest.$ac_ext >&5 |
14452 | |
10478 | |
14453 | rxvt_cv_struct_utmp_pid=no |
10479 | struct_utmp_pid=no |
14454 | fi |
10480 | fi |
14455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14456 | fi |
10482 | fi |
14457 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 |
10483 | echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
14458 | echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 |
10484 | echo "${ECHO_T}$struct_utmp_pid" >&6 |
14459 | if test x$rxvt_cv_struct_utmp_pid = xyes; then |
10485 | if test x$struct_utmp_pid = xyes; then |
14460 | |
10486 | |
14461 | cat >>confdefs.h <<\_ACEOF |
10487 | cat >>confdefs.h <<\_ACEOF |
14462 | #define HAVE_UTMP_PID 1 |
10488 | #define HAVE_UTMP_PID 1 |
14463 | _ACEOF |
10489 | _ACEOF |
14464 | |
10490 | |
… | |
… | |
14496 | grep -v '^ *+' conftest.er1 >conftest.err |
10522 | grep -v '^ *+' conftest.er1 >conftest.err |
14497 | rm -f conftest.er1 |
10523 | rm -f conftest.er1 |
14498 | cat conftest.err >&5 |
10524 | cat conftest.err >&5 |
14499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14500 | (exit $ac_status); } && |
10526 | (exit $ac_status); } && |
14501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10527 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10528 | || test ! -s conftest.err' |
14502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14503 | (eval $ac_try) 2>&5 |
10530 | (eval $ac_try) 2>&5 |
14504 | ac_status=$? |
10531 | ac_status=$? |
14505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14506 | (exit $ac_status); }; } && |
10533 | (exit $ac_status); }; } && |
… | |
… | |
14539 | rm -f conftest.er1 |
10566 | rm -f conftest.er1 |
14540 | cat conftest.err >&5 |
10567 | cat conftest.err >&5 |
14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14542 | (exit $ac_status); } >/dev/null; then |
10569 | (exit $ac_status); } >/dev/null; then |
14543 | if test -s conftest.err; then |
10570 | if test -s conftest.err; then |
14544 | ac_cpp_err=$ac_c_preproc_warn_flag |
10571 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
14545 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
10572 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
14546 | else |
10573 | else |
14547 | ac_cpp_err= |
10574 | ac_cpp_err= |
14548 | fi |
10575 | fi |
14549 | else |
10576 | else |
14550 | ac_cpp_err=yes |
10577 | ac_cpp_err=yes |
… | |
… | |
14560 | rm -f conftest.err conftest.$ac_ext |
10587 | rm -f conftest.err conftest.$ac_ext |
14561 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10588 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14562 | echo "${ECHO_T}$ac_header_preproc" >&6 |
10589 | echo "${ECHO_T}$ac_header_preproc" >&6 |
14563 | |
10590 | |
14564 | # So? What about this header? |
10591 | # So? What about this header? |
14565 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10592 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
14566 | yes:no: ) |
10593 | yes:no: ) |
14567 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10594 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14568 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10595 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
14569 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
10596 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
14570 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
10597 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
… | |
… | |
14605 | |
10632 | |
14606 | fi |
10633 | fi |
14607 | if test $ac_cv_header_utmpx_h = yes; then |
10634 | if test $ac_cv_header_utmpx_h = yes; then |
14608 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10635 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
14609 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
10636 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
14610 | if test "${rxvt_cv_struct_utmpx+set}" = set; then |
10637 | if test "${struct_utmpx+set}" = set; then |
14611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14612 | else |
10639 | else |
14613 | cat >conftest.$ac_ext <<_ACEOF |
10640 | cat >conftest.$ac_ext <<_ACEOF |
14614 | /* confdefs.h. */ |
10641 | /* confdefs.h. */ |
14615 | _ACEOF |
10642 | _ACEOF |
… | |
… | |
14633 | grep -v '^ *+' conftest.er1 >conftest.err |
10660 | grep -v '^ *+' conftest.er1 >conftest.err |
14634 | rm -f conftest.er1 |
10661 | rm -f conftest.er1 |
14635 | cat conftest.err >&5 |
10662 | cat conftest.err >&5 |
14636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14637 | (exit $ac_status); } && |
10664 | (exit $ac_status); } && |
14638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10665 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10666 | || test ! -s conftest.err' |
14639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14640 | (eval $ac_try) 2>&5 |
10668 | (eval $ac_try) 2>&5 |
14641 | ac_status=$? |
10669 | ac_status=$? |
14642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14643 | (exit $ac_status); }; } && |
10671 | (exit $ac_status); }; } && |
… | |
… | |
14645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14646 | (eval $ac_try) 2>&5 |
10674 | (eval $ac_try) 2>&5 |
14647 | ac_status=$? |
10675 | ac_status=$? |
14648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14649 | (exit $ac_status); }; }; then |
10677 | (exit $ac_status); }; }; then |
14650 | rxvt_cv_struct_utmpx=yes |
10678 | struct_utmpx=yes |
14651 | else |
10679 | else |
14652 | echo "$as_me: failed program was:" >&5 |
10680 | echo "$as_me: failed program was:" >&5 |
14653 | sed 's/^/| /' conftest.$ac_ext >&5 |
10681 | sed 's/^/| /' conftest.$ac_ext >&5 |
14654 | |
10682 | |
14655 | rxvt_cv_struct_utmpx=no |
10683 | struct_utmpx=no |
14656 | fi |
10684 | fi |
14657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14658 | fi |
10686 | fi |
14659 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 |
10687 | echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
14660 | echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 |
10688 | echo "${ECHO_T}$struct_utmpx" >&6 |
14661 | if test x$rxvt_cv_struct_utmpx = xyes; then |
10689 | if test x$struct_utmpx = xyes; then |
14662 | |
10690 | |
14663 | cat >>confdefs.h <<\_ACEOF |
10691 | cat >>confdefs.h <<\_ACEOF |
14664 | #define HAVE_STRUCT_UTMPX 1 |
10692 | #define HAVE_STRUCT_UTMPX 1 |
14665 | _ACEOF |
10693 | _ACEOF |
14666 | |
10694 | |
14667 | fi |
10695 | fi |
14668 | |
10696 | |
14669 | |
10697 | |
14670 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
10698 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
14671 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
10699 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
14672 | if test "${rxvt_cv_struct_utmpx_host+set}" = set; then |
10700 | if test "${struct_utmpx_host+set}" = set; then |
14673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14674 | else |
10702 | else |
14675 | cat >conftest.$ac_ext <<_ACEOF |
10703 | cat >conftest.$ac_ext <<_ACEOF |
14676 | /* confdefs.h. */ |
10704 | /* confdefs.h. */ |
14677 | _ACEOF |
10705 | _ACEOF |
… | |
… | |
14695 | grep -v '^ *+' conftest.er1 >conftest.err |
10723 | grep -v '^ *+' conftest.er1 >conftest.err |
14696 | rm -f conftest.er1 |
10724 | rm -f conftest.er1 |
14697 | cat conftest.err >&5 |
10725 | cat conftest.err >&5 |
14698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14699 | (exit $ac_status); } && |
10727 | (exit $ac_status); } && |
14700 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10728 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10729 | || test ! -s conftest.err' |
14701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14702 | (eval $ac_try) 2>&5 |
10731 | (eval $ac_try) 2>&5 |
14703 | ac_status=$? |
10732 | ac_status=$? |
14704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14705 | (exit $ac_status); }; } && |
10734 | (exit $ac_status); }; } && |
… | |
… | |
14707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14708 | (eval $ac_try) 2>&5 |
10737 | (eval $ac_try) 2>&5 |
14709 | ac_status=$? |
10738 | ac_status=$? |
14710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14711 | (exit $ac_status); }; }; then |
10740 | (exit $ac_status); }; }; then |
14712 | rxvt_cv_struct_utmpx_host=yes |
10741 | struct_utmpx_host=yes |
14713 | else |
10742 | else |
14714 | echo "$as_me: failed program was:" >&5 |
10743 | echo "$as_me: failed program was:" >&5 |
14715 | sed 's/^/| /' conftest.$ac_ext >&5 |
10744 | sed 's/^/| /' conftest.$ac_ext >&5 |
14716 | |
10745 | |
14717 | rxvt_cv_struct_utmpx_host=no |
10746 | struct_utmpx_host=no |
14718 | fi |
10747 | fi |
14719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14720 | fi |
10749 | fi |
14721 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 |
10750 | echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
14722 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 |
10751 | echo "${ECHO_T}$struct_utmpx_host" >&6 |
14723 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
10752 | if test x$struct_utmpx_host = xyes; then |
14724 | |
10753 | |
14725 | cat >>confdefs.h <<\_ACEOF |
10754 | cat >>confdefs.h <<\_ACEOF |
14726 | #define HAVE_UTMPX_HOST 1 |
10755 | #define HAVE_UTMPX_HOST 1 |
14727 | _ACEOF |
10756 | _ACEOF |
14728 | |
10757 | |
14729 | fi |
10758 | fi |
14730 | |
10759 | |
14731 | fi |
10760 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
10761 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
10762 | if test "${struct_utmpx_session+set}" = set; then |
|
|
10763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10764 | else |
|
|
10765 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10766 | /* confdefs.h. */ |
|
|
10767 | _ACEOF |
|
|
10768 | cat confdefs.h >>conftest.$ac_ext |
|
|
10769 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10770 | /* end confdefs.h. */ |
|
|
10771 | #include <sys/types.h> |
|
|
10772 | #include <utmpx.h> |
|
|
10773 | int |
|
|
10774 | main () |
|
|
10775 | { |
|
|
10776 | struct utmpx utx; utx.ut_session; |
|
|
10777 | ; |
|
|
10778 | return 0; |
|
|
10779 | } |
|
|
10780 | _ACEOF |
|
|
10781 | rm -f conftest.$ac_objext |
|
|
10782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10783 | (eval $ac_compile) 2>conftest.er1 |
|
|
10784 | ac_status=$? |
|
|
10785 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10786 | rm -f conftest.er1 |
|
|
10787 | cat conftest.err >&5 |
|
|
10788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10789 | (exit $ac_status); } && |
|
|
10790 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10791 | || test ! -s conftest.err' |
|
|
10792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10793 | (eval $ac_try) 2>&5 |
|
|
10794 | ac_status=$? |
|
|
10795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10796 | (exit $ac_status); }; } && |
|
|
10797 | { ac_try='test -s conftest.$ac_objext' |
|
|
10798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10799 | (eval $ac_try) 2>&5 |
|
|
10800 | ac_status=$? |
|
|
10801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10802 | (exit $ac_status); }; }; then |
|
|
10803 | struct_utmpx_session=yes |
|
|
10804 | else |
|
|
10805 | echo "$as_me: failed program was:" >&5 |
|
|
10806 | sed 's/^/| /' conftest.$ac_ext >&5 |
14732 | |
10807 | |
|
|
10808 | struct_utmpx_session=no |
|
|
10809 | fi |
|
|
10810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10811 | fi |
|
|
10812 | echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
|
|
10813 | echo "${ECHO_T}$struct_utmpx_session" >&6 |
|
|
10814 | if test x$struct_utmpx_session = xyes; then |
|
|
10815 | |
|
|
10816 | cat >>confdefs.h <<\_ACEOF |
|
|
10817 | #define HAVE_UTMPX_SESSION 1 |
|
|
10818 | _ACEOF |
|
|
10819 | |
|
|
10820 | fi |
|
|
10821 | |
|
|
10822 | fi |
14733 | |
10823 | |
14734 | |
10824 | |
14735 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10825 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
14736 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
10826 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
14737 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
10827 | if test "${struct_lastlog+set}" = set; then |
14738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14739 | else |
10829 | else |
14740 | cat >conftest.$ac_ext <<_ACEOF |
10830 | cat >conftest.$ac_ext <<_ACEOF |
14741 | /* confdefs.h. */ |
10831 | /* confdefs.h. */ |
14742 | _ACEOF |
10832 | _ACEOF |
… | |
… | |
14764 | grep -v '^ *+' conftest.er1 >conftest.err |
10854 | grep -v '^ *+' conftest.er1 >conftest.err |
14765 | rm -f conftest.er1 |
10855 | rm -f conftest.er1 |
14766 | cat conftest.err >&5 |
10856 | cat conftest.err >&5 |
14767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14768 | (exit $ac_status); } && |
10858 | (exit $ac_status); } && |
14769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10859 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10860 | || test ! -s conftest.err' |
14770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14771 | (eval $ac_try) 2>&5 |
10862 | (eval $ac_try) 2>&5 |
14772 | ac_status=$? |
10863 | ac_status=$? |
14773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14774 | (exit $ac_status); }; } && |
10865 | (exit $ac_status); }; } && |
… | |
… | |
14776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14777 | (eval $ac_try) 2>&5 |
10868 | (eval $ac_try) 2>&5 |
14778 | ac_status=$? |
10869 | ac_status=$? |
14779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14780 | (exit $ac_status); }; }; then |
10871 | (exit $ac_status); }; }; then |
14781 | rxvt_cv_struct_lastlog=yes |
10872 | struct_lastlog=yes |
14782 | else |
10873 | else |
14783 | echo "$as_me: failed program was:" >&5 |
10874 | echo "$as_me: failed program was:" >&5 |
14784 | sed 's/^/| /' conftest.$ac_ext >&5 |
10875 | sed 's/^/| /' conftest.$ac_ext >&5 |
14785 | |
10876 | |
14786 | rxvt_cv_struct_lastlog=no |
10877 | struct_lastlog=no |
14787 | fi |
10878 | fi |
14788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14789 | fi |
10880 | fi |
14790 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 |
10881 | echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
14791 | echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 |
10882 | echo "${ECHO_T}$struct_lastlog" >&6 |
14792 | if test x$rxvt_cv_struct_lastlog = xyes; then |
10883 | if test x$struct_lastlog = xyes; then |
14793 | |
10884 | |
14794 | cat >>confdefs.h <<\_ACEOF |
10885 | cat >>confdefs.h <<\_ACEOF |
14795 | #define HAVE_STRUCT_LASTLOG 1 |
10886 | #define HAVE_STRUCT_LASTLOG 1 |
14796 | _ACEOF |
10887 | _ACEOF |
14797 | |
10888 | |
14798 | fi |
10889 | fi |
14799 | |
10890 | |
14800 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
10891 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
14801 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
10892 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
14802 | if test "${rxvt_cv_struct_lastlogx+set}" = set; then |
10893 | if test "${struct_lastlogx+set}" = set; then |
14803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14804 | else |
10895 | else |
14805 | cat >conftest.$ac_ext <<_ACEOF |
10896 | cat >conftest.$ac_ext <<_ACEOF |
14806 | /* confdefs.h. */ |
10897 | /* confdefs.h. */ |
14807 | _ACEOF |
10898 | _ACEOF |
… | |
… | |
14829 | grep -v '^ *+' conftest.er1 >conftest.err |
10920 | grep -v '^ *+' conftest.er1 >conftest.err |
14830 | rm -f conftest.er1 |
10921 | rm -f conftest.er1 |
14831 | cat conftest.err >&5 |
10922 | cat conftest.err >&5 |
14832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14833 | (exit $ac_status); } && |
10924 | (exit $ac_status); } && |
14834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10925 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10926 | || test ! -s conftest.err' |
14835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14836 | (eval $ac_try) 2>&5 |
10928 | (eval $ac_try) 2>&5 |
14837 | ac_status=$? |
10929 | ac_status=$? |
14838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14839 | (exit $ac_status); }; } && |
10931 | (exit $ac_status); }; } && |
… | |
… | |
14841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14842 | (eval $ac_try) 2>&5 |
10934 | (eval $ac_try) 2>&5 |
14843 | ac_status=$? |
10935 | ac_status=$? |
14844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14845 | (exit $ac_status); }; }; then |
10937 | (exit $ac_status); }; }; then |
14846 | rxvt_cv_struct_lastlogx=yes |
10938 | struct_lastlogx=yes |
14847 | else |
10939 | else |
14848 | echo "$as_me: failed program was:" >&5 |
10940 | echo "$as_me: failed program was:" >&5 |
14849 | sed 's/^/| /' conftest.$ac_ext >&5 |
10941 | sed 's/^/| /' conftest.$ac_ext >&5 |
14850 | |
10942 | |
14851 | rxvt_cv_struct_lastlogx=no |
10943 | struct_lastlogx=no |
14852 | fi |
10944 | fi |
14853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14854 | fi |
10946 | fi |
14855 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 |
10947 | echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
14856 | echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 |
10948 | echo "${ECHO_T}$struct_lastlogx" >&6 |
14857 | if test x$rxvt_cv_struct_lastlogx = xyes; then |
10949 | if test x$struct_lastlogx = xyes; then |
14858 | |
10950 | |
14859 | cat >>confdefs.h <<\_ACEOF |
10951 | cat >>confdefs.h <<\_ACEOF |
14860 | #define HAVE_STRUCT_LASTLOGX 1 |
10952 | #define HAVE_STRUCT_LASTLOGX 1 |
14861 | _ACEOF |
10953 | _ACEOF |
14862 | |
10954 | |
14863 | fi |
10955 | fi |
14864 | |
10956 | |
14865 | |
10957 | |
14866 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
10958 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
14867 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
10959 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
14868 | if test "${rxvt_cv_path_utmp+set}" = set; then |
10960 | if test "${path_utmp+set}" = set; then |
14869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14870 | else |
10962 | else |
14871 | if test "$cross_compiling" = yes; then |
10963 | if test "$cross_compiling" = yes; then |
14872 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 |
10964 | { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
14873 | echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} |
10965 | echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
14874 | else |
10966 | else |
14875 | cat >conftest.$ac_ext <<_ACEOF |
10967 | cat >conftest.$ac_ext <<_ACEOF |
14876 | /* confdefs.h. */ |
10968 | /* confdefs.h. */ |
14877 | _ACEOF |
10969 | _ACEOF |
14878 | cat confdefs.h >>conftest.$ac_ext |
10970 | cat confdefs.h >>conftest.$ac_ext |
14879 | cat >>conftest.$ac_ext <<_ACEOF |
10971 | cat >>conftest.$ac_ext <<_ACEOF |
14880 | /* end confdefs.h. */ |
10972 | /* end confdefs.h. */ |
14881 | #include <stdio.h> |
10973 | #include <stdio.h> |
|
|
10974 | #include <stdlib.h> |
14882 | #include <sys/types.h> |
10975 | #include <sys/types.h> |
14883 | #include <utmp.h> |
10976 | #include <utmp.h> |
14884 | #include <errno.h> |
10977 | #include <errno.h> |
14885 | main() |
10978 | main() |
14886 | { |
10979 | { |
… | |
… | |
14914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14915 | (eval $ac_try) 2>&5 |
11008 | (eval $ac_try) 2>&5 |
14916 | ac_status=$? |
11009 | ac_status=$? |
14917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14918 | (exit $ac_status); }; }; then |
11011 | (exit $ac_status); }; }; then |
14919 | rxvt_cv_path_utmp=`cat conftestval` |
11012 | path_utmp=`cat conftestval` |
14920 | else |
11013 | else |
14921 | echo "$as_me: program exited with status $ac_status" >&5 |
11014 | echo "$as_me: program exited with status $ac_status" >&5 |
14922 | echo "$as_me: failed program was:" >&5 |
11015 | echo "$as_me: failed program was:" >&5 |
14923 | sed 's/^/| /' conftest.$ac_ext >&5 |
11016 | sed 's/^/| /' conftest.$ac_ext >&5 |
14924 | |
11017 | |
14925 | ( exit $ac_status ) |
11018 | ( exit $ac_status ) |
14926 | rxvt_cv_path_utmp= |
11019 | path_utmp= |
14927 | fi |
11020 | fi |
14928 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11021 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
14929 | fi |
11022 | fi |
14930 | fi |
11023 | fi |
14931 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 |
11024 | echo "$as_me:$LINENO: result: $path_utmp" >&5 |
14932 | echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 |
11025 | echo "${ECHO_T}$path_utmp" >&6 |
14933 | if test x$rxvt_cv_path_utmp != x; then |
11026 | if test x$path_utmp != x; then |
14934 | |
11027 | |
14935 | cat >>confdefs.h <<_ACEOF |
11028 | cat >>confdefs.h <<_ACEOF |
14936 | #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" |
11029 | #define UTMP_FILE "$path_utmp" |
14937 | _ACEOF |
11030 | _ACEOF |
14938 | |
11031 | |
14939 | fi |
11032 | fi |
14940 | |
11033 | |
14941 | |
11034 | |
14942 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
11035 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
14943 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
11036 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
14944 | if test "${rxvt_cv_path_utmpx+set}" = set; then |
11037 | if test "${path_utmpx+set}" = set; then |
14945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14946 | else |
11039 | else |
14947 | if test "$cross_compiling" = yes; then |
11040 | if test "$cross_compiling" = yes; then |
14948 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 |
11041 | { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
14949 | echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} |
11042 | echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
14950 | else |
11043 | else |
14951 | cat >conftest.$ac_ext <<_ACEOF |
11044 | cat >conftest.$ac_ext <<_ACEOF |
14952 | /* confdefs.h. */ |
11045 | /* confdefs.h. */ |
14953 | _ACEOF |
11046 | _ACEOF |
14954 | cat confdefs.h >>conftest.$ac_ext |
11047 | cat confdefs.h >>conftest.$ac_ext |
14955 | cat >>conftest.$ac_ext <<_ACEOF |
11048 | cat >>conftest.$ac_ext <<_ACEOF |
14956 | /* end confdefs.h. */ |
11049 | /* end confdefs.h. */ |
14957 | #include <stdio.h> |
11050 | #include <stdio.h> |
|
|
11051 | #include <stdlib.h> |
14958 | #include <sys/types.h> |
11052 | #include <sys/types.h> |
14959 | #include <utmpx.h> |
11053 | #include <utmpx.h> |
14960 | #include <errno.h> |
11054 | #include <errno.h> |
14961 | #include <sys/stat.h> |
11055 | #include <sys/stat.h> |
14962 | #ifdef HAVE_STRING_H |
11056 | #ifdef HAVE_STRING_H |
… | |
… | |
15000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15001 | (eval $ac_try) 2>&5 |
11095 | (eval $ac_try) 2>&5 |
15002 | ac_status=$? |
11096 | ac_status=$? |
15003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15004 | (exit $ac_status); }; }; then |
11098 | (exit $ac_status); }; }; then |
15005 | rxvt_cv_path_utmpx=`cat conftestval` |
11099 | path_utmpx=`cat conftestval` |
15006 | else |
11100 | else |
15007 | echo "$as_me: program exited with status $ac_status" >&5 |
11101 | echo "$as_me: program exited with status $ac_status" >&5 |
15008 | echo "$as_me: failed program was:" >&5 |
11102 | echo "$as_me: failed program was:" >&5 |
15009 | sed 's/^/| /' conftest.$ac_ext >&5 |
11103 | sed 's/^/| /' conftest.$ac_ext >&5 |
15010 | |
11104 | |
15011 | ( exit $ac_status ) |
11105 | ( exit $ac_status ) |
15012 | rxvt_cv_path_utmpx= |
11106 | path_utmpx= |
15013 | fi |
11107 | fi |
15014 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11108 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15015 | fi |
11109 | fi |
15016 | fi |
11110 | fi |
15017 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 |
11111 | echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
15018 | echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 |
11112 | echo "${ECHO_T}$path_utmpx" >&6 |
15019 | if test x$rxvt_cv_path_utmpx != x; then |
11113 | if test x$path_utmpx != x; then |
15020 | |
11114 | |
15021 | cat >>confdefs.h <<_ACEOF |
11115 | cat >>confdefs.h <<_ACEOF |
15022 | #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" |
11116 | #define UTMPX_FILE "$path_utmpx" |
15023 | _ACEOF |
11117 | _ACEOF |
15024 | |
11118 | |
15025 | fi |
11119 | fi |
15026 | |
11120 | |
15027 | |
11121 | |
15028 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
11122 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
15029 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
11123 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
15030 | if test "${rxvt_cv_path_wtmp+set}" = set; then |
11124 | if test "${path_wtmp+set}" = set; then |
15031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15032 | else |
11126 | else |
15033 | if test "$cross_compiling" = yes; then |
11127 | if test "$cross_compiling" = yes; then |
15034 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 |
11128 | { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
15035 | echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} |
11129 | echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
15036 | else |
11130 | else |
15037 | cat >conftest.$ac_ext <<_ACEOF |
11131 | cat >conftest.$ac_ext <<_ACEOF |
15038 | /* confdefs.h. */ |
11132 | /* confdefs.h. */ |
15039 | _ACEOF |
11133 | _ACEOF |
15040 | cat confdefs.h >>conftest.$ac_ext |
11134 | cat confdefs.h >>conftest.$ac_ext |
15041 | cat >>conftest.$ac_ext <<_ACEOF |
11135 | cat >>conftest.$ac_ext <<_ACEOF |
15042 | /* end confdefs.h. */ |
11136 | /* end confdefs.h. */ |
15043 | #include <stdio.h> |
11137 | #include <stdio.h> |
|
|
11138 | #include <stdlib.h> |
15044 | #include <sys/types.h> |
11139 | #include <sys/types.h> |
15045 | #ifdef HAVE_UTMP_H |
11140 | #ifdef HAVE_UTMP_H |
15046 | #include <utmp.h> |
11141 | #include <utmp.h> |
15047 | #endif |
11142 | #endif |
15048 | #include <errno.h> |
11143 | #include <errno.h> |
… | |
… | |
15078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15079 | (eval $ac_try) 2>&5 |
11174 | (eval $ac_try) 2>&5 |
15080 | ac_status=$? |
11175 | ac_status=$? |
15081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15082 | (exit $ac_status); }; }; then |
11177 | (exit $ac_status); }; }; then |
15083 | rxvt_cv_path_wtmp=`cat conftestval` |
11178 | path_wtmp=`cat conftestval` |
15084 | else |
11179 | else |
15085 | echo "$as_me: program exited with status $ac_status" >&5 |
11180 | echo "$as_me: program exited with status $ac_status" >&5 |
15086 | echo "$as_me: failed program was:" >&5 |
11181 | echo "$as_me: failed program was:" >&5 |
15087 | sed 's/^/| /' conftest.$ac_ext >&5 |
11182 | sed 's/^/| /' conftest.$ac_ext >&5 |
15088 | |
11183 | |
15089 | ( exit $ac_status ) |
11184 | ( exit $ac_status ) |
15090 | rxvt_cv_path_wtmp= |
11185 | path_wtmp= |
15091 | fi |
11186 | fi |
15092 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11187 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15093 | fi |
11188 | fi |
15094 | fi |
11189 | fi |
15095 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 |
11190 | echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
15096 | echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 |
11191 | echo "${ECHO_T}$path_wtmp" >&6 |
15097 | if test x$rxvt_cv_path_wtmp != x; then |
11192 | if test x$path_wtmp != x; then |
15098 | |
11193 | |
15099 | cat >>confdefs.h <<_ACEOF |
11194 | cat >>confdefs.h <<_ACEOF |
15100 | #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" |
11195 | #define WTMP_FILE "$path_wtmp" |
15101 | _ACEOF |
11196 | _ACEOF |
15102 | |
11197 | |
15103 | fi |
11198 | fi |
15104 | |
11199 | |
15105 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
11200 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
15106 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
11201 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
15107 | if test "${rxvt_cv_path_wtmpx+set}" = set; then |
11202 | if test "${path_wtmpx+set}" = set; then |
15108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15109 | else |
11204 | else |
15110 | if test "$cross_compiling" = yes; then |
11205 | if test "$cross_compiling" = yes; then |
15111 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 |
11206 | { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
15112 | echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} |
11207 | echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
15113 | else |
11208 | else |
15114 | cat >conftest.$ac_ext <<_ACEOF |
11209 | cat >conftest.$ac_ext <<_ACEOF |
15115 | /* confdefs.h. */ |
11210 | /* confdefs.h. */ |
15116 | _ACEOF |
11211 | _ACEOF |
15117 | cat confdefs.h >>conftest.$ac_ext |
11212 | cat confdefs.h >>conftest.$ac_ext |
15118 | cat >>conftest.$ac_ext <<_ACEOF |
11213 | cat >>conftest.$ac_ext <<_ACEOF |
15119 | /* end confdefs.h. */ |
11214 | /* end confdefs.h. */ |
15120 | #include <stdio.h> |
11215 | #include <stdio.h> |
|
|
11216 | #include <stdlib.h> |
15121 | #ifdef HAVE_UTMPX_H |
11217 | #ifdef HAVE_UTMPX_H |
15122 | #include <utmpx.h> |
11218 | #include <utmpx.h> |
15123 | #endif |
11219 | #endif |
15124 | #include <errno.h> |
11220 | #include <errno.h> |
15125 | main() |
11221 | main() |
… | |
… | |
15154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15155 | (eval $ac_try) 2>&5 |
11251 | (eval $ac_try) 2>&5 |
15156 | ac_status=$? |
11252 | ac_status=$? |
15157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15158 | (exit $ac_status); }; }; then |
11254 | (exit $ac_status); }; }; then |
15159 | rxvt_cv_path_wtmpx=`cat conftestval` |
11255 | path_wtmpx=`cat conftestval` |
15160 | else |
11256 | else |
15161 | echo "$as_me: program exited with status $ac_status" >&5 |
11257 | echo "$as_me: program exited with status $ac_status" >&5 |
15162 | echo "$as_me: failed program was:" >&5 |
11258 | echo "$as_me: failed program was:" >&5 |
15163 | sed 's/^/| /' conftest.$ac_ext >&5 |
11259 | sed 's/^/| /' conftest.$ac_ext >&5 |
15164 | |
11260 | |
15165 | ( exit $ac_status ) |
11261 | ( exit $ac_status ) |
15166 | rxvt_cv_path_wtmpx= |
11262 | path_wtmpx= |
15167 | fi |
11263 | fi |
15168 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11264 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15169 | fi |
11265 | fi |
15170 | fi |
11266 | fi |
15171 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 |
11267 | echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
15172 | echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 |
11268 | echo "${ECHO_T}$path_wtmpx" >&6 |
15173 | if test x$rxvt_cv_path_wtmpx != x; then |
11269 | if test x$path_wtmpx != x; then |
15174 | |
11270 | |
15175 | cat >>confdefs.h <<_ACEOF |
11271 | cat >>confdefs.h <<_ACEOF |
15176 | #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" |
11272 | #define WTMPX_FILE "$path_wtmpx" |
15177 | _ACEOF |
11273 | _ACEOF |
15178 | |
11274 | |
15179 | fi |
11275 | fi |
15180 | |
11276 | |
15181 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
11277 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
15182 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
11278 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
15183 | if test "${rxvt_cv_path_lastlog+set}" = set; then |
11279 | if test "${path_lastlog+set}" = set; then |
15184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15185 | else |
11281 | else |
15186 | if test "$cross_compiling" = yes; then |
11282 | if test "$cross_compiling" = yes; then |
15187 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 |
11283 | { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
15188 | echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} |
11284 | echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
15189 | else |
11285 | else |
15190 | cat >conftest.$ac_ext <<_ACEOF |
11286 | cat >conftest.$ac_ext <<_ACEOF |
15191 | /* confdefs.h. */ |
11287 | /* confdefs.h. */ |
15192 | _ACEOF |
11288 | _ACEOF |
15193 | cat confdefs.h >>conftest.$ac_ext |
11289 | cat confdefs.h >>conftest.$ac_ext |
15194 | cat >>conftest.$ac_ext <<_ACEOF |
11290 | cat >>conftest.$ac_ext <<_ACEOF |
15195 | /* end confdefs.h. */ |
11291 | /* end confdefs.h. */ |
15196 | #include <stdio.h> |
11292 | #include <stdio.h> |
|
|
11293 | #include <stdlib.h> |
15197 | #include <sys/types.h> |
11294 | #include <sys/types.h> |
15198 | #ifdef HAVE_UTMPX_H |
11295 | #ifdef HAVE_UTMPX_H |
15199 | #include <utmpx.h> |
11296 | #include <utmpx.h> |
15200 | #elif defined(HAVE_UTMP_H) |
11297 | #elif defined(HAVE_UTMP_H) |
15201 | #include <utmp.h> |
11298 | #include <utmp.h> |
… | |
… | |
15235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15236 | (eval $ac_try) 2>&5 |
11333 | (eval $ac_try) 2>&5 |
15237 | ac_status=$? |
11334 | ac_status=$? |
15238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15239 | (exit $ac_status); }; }; then |
11336 | (exit $ac_status); }; }; then |
15240 | rxvt_cv_path_lastlog=`cat conftestval` |
11337 | path_lastlog=`cat conftestval` |
15241 | else |
11338 | else |
15242 | echo "$as_me: program exited with status $ac_status" >&5 |
11339 | echo "$as_me: program exited with status $ac_status" >&5 |
15243 | echo "$as_me: failed program was:" >&5 |
11340 | echo "$as_me: failed program was:" >&5 |
15244 | sed 's/^/| /' conftest.$ac_ext >&5 |
11341 | sed 's/^/| /' conftest.$ac_ext >&5 |
15245 | |
11342 | |
15246 | ( exit $ac_status ) |
11343 | ( exit $ac_status ) |
15247 | rxvt_cv_path_lastlog= |
11344 | path_lastlog= |
15248 | fi |
11345 | fi |
15249 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11346 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15250 | fi |
11347 | fi |
15251 | fi |
11348 | fi |
15252 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 |
11349 | echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
15253 | echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 |
11350 | echo "${ECHO_T}$path_lastlog" >&6 |
15254 | if test x$rxvt_cv_path_lastlog != x; then |
11351 | if test x$path_lastlog != x; then |
15255 | |
11352 | |
15256 | cat >>confdefs.h <<_ACEOF |
11353 | cat >>confdefs.h <<_ACEOF |
15257 | #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" |
11354 | #define LASTLOG_FILE "$path_lastlog" |
15258 | _ACEOF |
11355 | _ACEOF |
15259 | |
11356 | |
15260 | if test -d "$rxvt_cv_path_lastlog"; then |
11357 | if test -d "$path_lastlog"; then |
15261 | |
11358 | |
15262 | cat >>confdefs.h <<\_ACEOF |
11359 | cat >>confdefs.h <<\_ACEOF |
15263 | #define LASTLOG_IS_DIR 1 |
11360 | #define LASTLOG_IS_DIR 1 |
15264 | _ACEOF |
11361 | _ACEOF |
15265 | |
11362 | |
15266 | fi |
11363 | fi |
15267 | fi |
11364 | fi |
15268 | |
11365 | |
15269 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11366 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
15270 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
11367 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
15271 | if test "${rxvt_cv_path_lastlogx+set}" = set; then |
11368 | if test "${path_lastlogx+set}" = set; then |
15272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15273 | else |
11370 | else |
15274 | if test "$cross_compiling" = yes; then |
11371 | if test "$cross_compiling" = yes; then |
15275 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 |
11372 | { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
15276 | echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} |
11373 | echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
15277 | else |
11374 | else |
15278 | cat >conftest.$ac_ext <<_ACEOF |
11375 | cat >conftest.$ac_ext <<_ACEOF |
15279 | /* confdefs.h. */ |
11376 | /* confdefs.h. */ |
15280 | _ACEOF |
11377 | _ACEOF |
15281 | cat confdefs.h >>conftest.$ac_ext |
11378 | cat confdefs.h >>conftest.$ac_ext |
15282 | cat >>conftest.$ac_ext <<_ACEOF |
11379 | cat >>conftest.$ac_ext <<_ACEOF |
15283 | /* end confdefs.h. */ |
11380 | /* end confdefs.h. */ |
15284 | #include <stdio.h> |
11381 | #include <stdio.h> |
|
|
11382 | #include <stdlib.h> |
15285 | #ifdef HAVE_UTMPX_H |
11383 | #ifdef HAVE_UTMPX_H |
15286 | #include <utmpx.h> |
11384 | #include <utmpx.h> |
15287 | #endif |
11385 | #endif |
15288 | #include <errno.h> |
11386 | #include <errno.h> |
15289 | main() |
11387 | main() |
… | |
… | |
15317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15318 | (eval $ac_try) 2>&5 |
11416 | (eval $ac_try) 2>&5 |
15319 | ac_status=$? |
11417 | ac_status=$? |
15320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15321 | (exit $ac_status); }; }; then |
11419 | (exit $ac_status); }; }; then |
15322 | rxvt_cv_path_lastlogx=`cat conftestval` |
11420 | path_lastlogx=`cat conftestval` |
15323 | else |
11421 | else |
15324 | echo "$as_me: program exited with status $ac_status" >&5 |
11422 | echo "$as_me: program exited with status $ac_status" >&5 |
15325 | echo "$as_me: failed program was:" >&5 |
11423 | echo "$as_me: failed program was:" >&5 |
15326 | sed 's/^/| /' conftest.$ac_ext >&5 |
11424 | sed 's/^/| /' conftest.$ac_ext >&5 |
15327 | |
11425 | |
15328 | ( exit $ac_status ) |
11426 | ( exit $ac_status ) |
15329 | rxvt_cv_path_lastlogx= |
11427 | path_lastlogx= |
15330 | fi |
11428 | fi |
15331 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11429 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15332 | fi |
11430 | fi |
15333 | fi |
11431 | fi |
15334 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 |
11432 | echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
15335 | echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 |
11433 | echo "${ECHO_T}$path_lastlogx" >&6 |
15336 | if test x$rxvt_cv_path_lastlogx != x; then |
11434 | if test x$path_lastlogx != x; then |
15337 | |
11435 | |
15338 | cat >>confdefs.h <<_ACEOF |
11436 | cat >>confdefs.h <<_ACEOF |
15339 | #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" |
11437 | #define LASTLOGX_FILE "$path_lastlogx" |
15340 | _ACEOF |
11438 | _ACEOF |
15341 | |
11439 | |
15342 | fi |
11440 | fi |
|
|
11441 | |
15343 | |
11442 | |
15344 | |
11443 | |
15345 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11444 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
15346 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11445 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
15347 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
11446 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
… | |
… | |
15388 | _ACEOF |
11487 | _ACEOF |
15389 | cat confdefs.h >>conftest.$ac_ext |
11488 | cat confdefs.h >>conftest.$ac_ext |
15390 | cat >>conftest.$ac_ext <<_ACEOF |
11489 | cat >>conftest.$ac_ext <<_ACEOF |
15391 | /* end confdefs.h. */ |
11490 | /* end confdefs.h. */ |
15392 | #include <X11/Xlib.h> |
11491 | #include <X11/Xlib.h> |
|
|
11492 | #include <stdlib.h> |
15393 | main() { |
11493 | main() { |
15394 | char *p; |
11494 | char *p; |
15395 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
11495 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
15396 | exit (XSupportsLocale() ? 0 : 1); |
11496 | exit (XSupportsLocale() ? 0 : 1); |
15397 | else |
11497 | else |
… | |
… | |
15458 | grep -v '^ *+' conftest.er1 >conftest.err |
11558 | grep -v '^ *+' conftest.er1 >conftest.err |
15459 | rm -f conftest.er1 |
11559 | rm -f conftest.er1 |
15460 | cat conftest.err >&5 |
11560 | cat conftest.err >&5 |
15461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15462 | (exit $ac_status); } && |
11562 | (exit $ac_status); } && |
15463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11563 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
11564 | || test ! -s conftest.err' |
15464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15465 | (eval $ac_try) 2>&5 |
11566 | (eval $ac_try) 2>&5 |
15466 | ac_status=$? |
11567 | ac_status=$? |
15467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15468 | (exit $ac_status); }; } && |
11569 | (exit $ac_status); }; } && |
… | |
… | |
15503 | /* confdefs.h. */ |
11604 | /* confdefs.h. */ |
15504 | _ACEOF |
11605 | _ACEOF |
15505 | cat confdefs.h >>conftest.$ac_ext |
11606 | cat confdefs.h >>conftest.$ac_ext |
15506 | cat >>conftest.$ac_ext <<_ACEOF |
11607 | cat >>conftest.$ac_ext <<_ACEOF |
15507 | /* end confdefs.h. */ |
11608 | /* end confdefs.h. */ |
15508 | #include <locale.h> |
11609 | #include <clocale> |
15509 | int |
11610 | int |
15510 | main () |
11611 | main () |
15511 | { |
11612 | { |
15512 | setlocale(LC_CTYPE, ""); |
11613 | setlocale(LC_CTYPE, ""); |
15513 | ; |
11614 | ; |
… | |
… | |
15521 | grep -v '^ *+' conftest.er1 >conftest.err |
11622 | grep -v '^ *+' conftest.er1 >conftest.err |
15522 | rm -f conftest.er1 |
11623 | rm -f conftest.er1 |
15523 | cat conftest.err >&5 |
11624 | cat conftest.err >&5 |
15524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15525 | (exit $ac_status); } && |
11626 | (exit $ac_status); } && |
15526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11627 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
11628 | || test ! -s conftest.err' |
15527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15528 | (eval $ac_try) 2>&5 |
11630 | (eval $ac_try) 2>&5 |
15529 | ac_status=$? |
11631 | ac_status=$? |
15530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15531 | (exit $ac_status); }; } && |
11633 | (exit $ac_status); }; } && |
… | |
… | |
15582 | grep -v '^ *+' conftest.er1 >conftest.err |
11684 | grep -v '^ *+' conftest.er1 >conftest.err |
15583 | rm -f conftest.er1 |
11685 | rm -f conftest.er1 |
15584 | cat conftest.err >&5 |
11686 | cat conftest.err >&5 |
15585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15586 | (exit $ac_status); } && |
11688 | (exit $ac_status); } && |
15587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11689 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
11690 | || test ! -s conftest.err' |
15588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15589 | (eval $ac_try) 2>&5 |
11692 | (eval $ac_try) 2>&5 |
15590 | ac_status=$? |
11693 | ac_status=$? |
15591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15592 | (exit $ac_status); }; } && |
11695 | (exit $ac_status); }; } && |
… | |
… | |
15614 | #define HAVE_NL_LANGINFO 1 |
11717 | #define HAVE_NL_LANGINFO 1 |
15615 | _ACEOF |
11718 | _ACEOF |
15616 | |
11719 | |
15617 | fi |
11720 | fi |
15618 | |
11721 | |
15619 | echo "$as_me:$LINENO: checking for getpt" >&5 |
11722 | |
15620 | echo $ECHO_N "checking for getpt... $ECHO_C" >&6 |
11723 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
15621 | if test "${rxvt_cv_func_getpt+set}" = set; then |
11724 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11725 | if test "${can_pass_fds+set}" = set; then |
15622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15623 | else |
11727 | else |
15624 | cat >conftest.$ac_ext <<_ACEOF |
11728 | cat >conftest.$ac_ext <<_ACEOF |
15625 | /* confdefs.h. */ |
11729 | /* confdefs.h. */ |
15626 | _ACEOF |
11730 | _ACEOF |
15627 | cat confdefs.h >>conftest.$ac_ext |
11731 | cat confdefs.h >>conftest.$ac_ext |
15628 | cat >>conftest.$ac_ext <<_ACEOF |
11732 | cat >>conftest.$ac_ext <<_ACEOF |
15629 | /* end confdefs.h. */ |
11733 | /* end confdefs.h. */ |
15630 | #define _GNU_SOURCE |
11734 | |
15631 | #ifdef HAVE_STDLIB_H |
11735 | #include <cstddef> // broken bsds (is that redundant?) need this |
|
|
11736 | #include <sys/types.h> |
|
|
11737 | #include <sys/socket.h> |
15632 | # include <stdlib.h> |
11738 | #include <sys/uio.h> |
15633 | #endif |
11739 | |
15634 | int |
11740 | int |
15635 | main () |
11741 | main () |
15636 | { |
11742 | { |
15637 | (void)getpt(); |
11743 | |
|
|
11744 | { |
|
|
11745 | msghdr msg; |
|
|
11746 | iovec iov; |
|
|
11747 | char buf [100]; |
|
|
11748 | char data = 0; |
|
|
11749 | |
|
|
11750 | iov.iov_base = &data; |
|
|
11751 | iov.iov_len = 1; |
|
|
11752 | |
|
|
11753 | msg.msg_iov = &iov; |
|
|
11754 | msg.msg_iovlen = 1; |
|
|
11755 | msg.msg_control = buf; |
|
|
11756 | msg.msg_controllen = sizeof buf; |
|
|
11757 | |
|
|
11758 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
11759 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
11760 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
11761 | cmsg->cmsg_len = 100; |
|
|
11762 | |
|
|
11763 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
11764 | |
|
|
11765 | return sendmsg (3, &msg, 0); |
|
|
11766 | } |
|
|
11767 | |
15638 | ; |
11768 | ; |
15639 | return 0; |
11769 | return 0; |
15640 | } |
11770 | } |
15641 | _ACEOF |
11771 | _ACEOF |
15642 | rm -f conftest.$ac_objext conftest$ac_exeext |
11772 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
15646 | grep -v '^ *+' conftest.er1 >conftest.err |
11776 | grep -v '^ *+' conftest.er1 >conftest.err |
15647 | rm -f conftest.er1 |
11777 | rm -f conftest.er1 |
15648 | cat conftest.err >&5 |
11778 | cat conftest.err >&5 |
15649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15650 | (exit $ac_status); } && |
11780 | (exit $ac_status); } && |
15651 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11781 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
11782 | || test ! -s conftest.err' |
15652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15653 | (eval $ac_try) 2>&5 |
11784 | (eval $ac_try) 2>&5 |
15654 | ac_status=$? |
11785 | ac_status=$? |
15655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15656 | (exit $ac_status); }; } && |
11787 | (exit $ac_status); }; } && |
… | |
… | |
15658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15659 | (eval $ac_try) 2>&5 |
11790 | (eval $ac_try) 2>&5 |
15660 | ac_status=$? |
11791 | ac_status=$? |
15661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15662 | (exit $ac_status); }; }; then |
11793 | (exit $ac_status); }; }; then |
15663 | rxvt_cv_func_getpt=yes |
11794 | can_pass_fds=yes |
15664 | else |
11795 | else |
15665 | echo "$as_me: failed program was:" >&5 |
11796 | echo "$as_me: failed program was:" >&5 |
15666 | sed 's/^/| /' conftest.$ac_ext >&5 |
11797 | sed 's/^/| /' conftest.$ac_ext >&5 |
15667 | |
11798 | |
15668 | rxvt_cv_func_getpt=no |
11799 | can_pass_fds=no |
15669 | fi |
11800 | fi |
15670 | rm -f conftest.err conftest.$ac_objext \ |
11801 | rm -f conftest.err conftest.$ac_objext \ |
15671 | conftest$ac_exeext conftest.$ac_ext |
11802 | conftest$ac_exeext conftest.$ac_ext |
15672 | fi |
11803 | fi |
15673 | echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 |
11804 | echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
15674 | echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 |
11805 | echo "${ECHO_T}$can_pass_fds" >&6 |
15675 | if test x$rxvt_cv_func_getpt = xyes; then |
11806 | if test x$can_pass_fds = xyes; then |
15676 | |
11807 | |
15677 | cat >>confdefs.h <<\_ACEOF |
11808 | cat >>confdefs.h <<\_ACEOF |
15678 | #define HAVE_GETPT 1 |
11809 | #define HAVE_UNIX_FDPASS 1 |
15679 | _ACEOF |
11810 | _ACEOF |
15680 | |
11811 | |
|
|
11812 | else |
|
|
11813 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
|
|
11814 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
|
|
11815 | { (exit 1); exit 1; }; } |
15681 | fi |
11816 | fi |
15682 | |
11817 | |
15683 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
11818 | |
|
|
11819 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
15684 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
11820 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
15685 | if test "${rxvt_cv_ptys+set}" = set; then |
11821 | if test "${rxvt_broken_ximcb+set}" = set; then |
15686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15687 | else |
11823 | else |
15688 | if test x$ac_cv_func_openpty = xyes; then |
|
|
15689 | rxvt_cv_ptys=OPENPTY |
|
|
15690 | else if test x$ac_cv_func__getpty = xyes; then |
|
|
15691 | rxvt_cv_ptys=SGI4 |
|
|
15692 | else if test -c /dev/ttyp20; then |
|
|
15693 | rxvt_cv_ptys=SCO |
|
|
15694 | else if test -c /dev/ptym/clone; then |
|
|
15695 | rxvt_cv_ptys=HPUX |
|
|
15696 | else if test x$rxvt_cv_func_getpt = xyes; then |
|
|
15697 | rxvt_cv_ptys=GLIBC |
|
|
15698 | else if test -c /dev/ptc -a -c /dev/pts; then |
|
|
15699 | rxvt_cv_ptys=PTC |
|
|
15700 | else if test -c /dev/ptc -a -d /dev/pts; then |
|
|
15701 | rxvt_cv_ptys=PTC |
|
|
15702 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
|
|
15703 | rxvt_cv_ptys=STREAMS |
|
|
15704 | else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then |
|
|
15705 | rxvt_cv_ptys=STREAMS |
|
|
15706 | else |
|
|
15707 | rxvt_cv_ptys=BSD |
|
|
15708 | fi |
|
|
15709 | fi |
|
|
15710 | fi |
|
|
15711 | fi |
|
|
15712 | fi |
|
|
15713 | fi |
|
|
15714 | fi |
|
|
15715 | fi |
|
|
15716 | fi |
|
|
15717 | |
|
|
15718 | fi |
|
|
15719 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
|
|
15720 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
|
|
15721 | |
|
|
15722 | if test x$rxvt_cv_ptys = xOPENPTY; then |
|
|
15723 | |
|
|
15724 | cat >>confdefs.h <<\_ACEOF |
|
|
15725 | #define PTYS_ARE_OPENPTY 1 |
|
|
15726 | _ACEOF |
|
|
15727 | |
|
|
15728 | fi |
|
|
15729 | if test x$rxvt_cv_ptys = xSCO; then |
|
|
15730 | |
|
|
15731 | cat >>confdefs.h <<\_ACEOF |
|
|
15732 | #define PTYS_ARE_NUMERIC 1 |
|
|
15733 | _ACEOF |
|
|
15734 | |
|
|
15735 | fi |
|
|
15736 | if test x$rxvt_cv_ptys = xSTREAMS; then |
|
|
15737 | |
|
|
15738 | cat >>confdefs.h <<\_ACEOF |
|
|
15739 | #define PTYS_ARE_PTMX 1 |
|
|
15740 | _ACEOF |
|
|
15741 | |
|
|
15742 | fi |
|
|
15743 | if test x$rxvt_cv_ptys = xPTC; then |
|
|
15744 | |
|
|
15745 | cat >>confdefs.h <<\_ACEOF |
|
|
15746 | #define PTYS_ARE_PTC 1 |
|
|
15747 | _ACEOF |
|
|
15748 | |
|
|
15749 | fi |
|
|
15750 | if test x$rxvt_cv_ptys = xSGI4; then |
|
|
15751 | |
|
|
15752 | cat >>confdefs.h <<\_ACEOF |
|
|
15753 | #define PTYS_ARE__GETPTY 1 |
|
|
15754 | _ACEOF |
|
|
15755 | |
|
|
15756 | fi |
|
|
15757 | if test x$rxvt_cv_ptys = xCONVEX; then |
|
|
15758 | |
|
|
15759 | cat >>confdefs.h <<\_ACEOF |
|
|
15760 | #define PTYS_ARE_GETPTY 1 |
|
|
15761 | _ACEOF |
|
|
15762 | |
|
|
15763 | fi |
|
|
15764 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
15765 | |
|
|
15766 | cat >>confdefs.h <<\_ACEOF |
|
|
15767 | #define PTYS_ARE_GETPT 1 |
|
|
15768 | _ACEOF |
|
|
15769 | |
|
|
15770 | fi |
|
|
15771 | if test x$rxvt_cv_ptys = xHPUX; then |
|
|
15772 | |
|
|
15773 | cat >>confdefs.h <<\_ACEOF |
|
|
15774 | #define PTYS_ARE_CLONE 1 |
|
|
15775 | _ACEOF |
|
|
15776 | |
|
|
15777 | fi |
|
|
15778 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then |
|
|
15779 | |
|
|
15780 | cat >>confdefs.h <<\_ACEOF |
|
|
15781 | #define PTYS_ARE_SEARCHED 1 |
|
|
15782 | _ACEOF |
|
|
15783 | |
|
|
15784 | fi |
|
|
15785 | |
|
|
15786 | |
|
|
15787 | { echo "$as_me:$LINENO: checking for pty ranges..." >&5 |
|
|
15788 | echo "$as_me: checking for pty ranges..." >&6;} |
|
|
15789 | ptys=`echo /dev/pty??` |
|
|
15790 | pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
|
|
15791 | pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
|
|
15792 | if test x$pch1 != x; then |
|
|
15793 | |
|
|
15794 | cat >>confdefs.h <<_ACEOF |
|
|
15795 | #define PTYCHAR1 "$pch1" |
|
|
15796 | _ACEOF |
|
|
15797 | |
|
|
15798 | fi |
|
|
15799 | if test x$pch2 != x; then |
|
|
15800 | |
|
|
15801 | cat >>confdefs.h <<_ACEOF |
|
|
15802 | #define PTYCHAR2 "$pch2" |
|
|
15803 | _ACEOF |
|
|
15804 | |
|
|
15805 | fi |
|
|
15806 | |
|
|
15807 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
|
|
15808 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
|
|
15809 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
|
|
15810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
15811 | else |
|
|
15812 | ac_check_lib_save_LIBS=$LIBS |
|
|
15813 | LIBS="-lxpg4 $LIBS" |
|
|
15814 | cat >conftest.$ac_ext <<_ACEOF |
11824 | cat >conftest.$ac_ext <<_ACEOF |
15815 | /* confdefs.h. */ |
|
|
15816 | _ACEOF |
|
|
15817 | cat confdefs.h >>conftest.$ac_ext |
|
|
15818 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
15819 | /* end confdefs.h. */ |
|
|
15820 | |
11825 | |
15821 | /* Override any gcc2 internal prototype to avoid an error. */ |
11826 | #include <X11/Xlib.h> |
15822 | #ifdef __cplusplus |
11827 | |
15823 | extern "C" |
11828 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
15824 | #endif |
11829 | |
15825 | /* We use char because int might match the return type of a gcc2 |
11830 | void f() { |
15826 | builtin and then its argument prototype would still apply. */ |
11831 | XIMCallback cb; |
15827 | char setlocale (); |
11832 | cb.callback = im_destroy_cb; |
15828 | int |
|
|
15829 | main () |
|
|
15830 | { |
|
|
15831 | setlocale (); |
|
|
15832 | ; |
|
|
15833 | return 0; |
|
|
15834 | } |
11833 | } |
|
|
11834 | |
15835 | _ACEOF |
11835 | _ACEOF |
15836 | rm -f conftest.$ac_objext conftest$ac_exeext |
11836 | rm -f conftest.$ac_objext |
15837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15838 | (eval $ac_link) 2>conftest.er1 |
11838 | (eval $ac_compile) 2>conftest.er1 |
15839 | ac_status=$? |
11839 | ac_status=$? |
15840 | grep -v '^ *+' conftest.er1 >conftest.err |
11840 | grep -v '^ *+' conftest.er1 >conftest.err |
15841 | rm -f conftest.er1 |
11841 | rm -f conftest.er1 |
15842 | cat conftest.err >&5 |
11842 | cat conftest.err >&5 |
15843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15844 | (exit $ac_status); } && |
11844 | (exit $ac_status); } && |
15845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11845 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
11846 | || test ! -s conftest.err' |
15846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15847 | (eval $ac_try) 2>&5 |
11848 | (eval $ac_try) 2>&5 |
15848 | ac_status=$? |
11849 | ac_status=$? |
15849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15850 | (exit $ac_status); }; } && |
11851 | (exit $ac_status); }; } && |
15851 | { ac_try='test -s conftest$ac_exeext' |
11852 | { ac_try='test -s conftest.$ac_objext' |
15852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15853 | (eval $ac_try) 2>&5 |
11854 | (eval $ac_try) 2>&5 |
15854 | ac_status=$? |
11855 | ac_status=$? |
15855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15856 | (exit $ac_status); }; }; then |
11857 | (exit $ac_status); }; }; then |
15857 | ac_cv_lib_xpg4_setlocale=yes |
11858 | rxvt_broken_ximcb=yes |
15858 | else |
11859 | else |
15859 | echo "$as_me: failed program was:" >&5 |
11860 | echo "$as_me: failed program was:" >&5 |
15860 | sed 's/^/| /' conftest.$ac_ext >&5 |
11861 | sed 's/^/| /' conftest.$ac_ext >&5 |
15861 | |
11862 | |
15862 | ac_cv_lib_xpg4_setlocale=no |
11863 | rxvt_broken_ximcb=no |
15863 | fi |
11864 | fi |
15864 | rm -f conftest.err conftest.$ac_objext \ |
11865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15865 | conftest$ac_exeext conftest.$ac_ext |
|
|
15866 | LIBS=$ac_check_lib_save_LIBS |
|
|
15867 | fi |
11866 | fi |
15868 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 |
11867 | echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
15869 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
11868 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6 |
15870 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
|
|
15871 | LIBS="$LIBS -lxpg4" |
|
|
15872 | fi |
|
|
15873 | |
11869 | |
15874 | |
11870 | if test x$rxvt_broken_ximcb = xyes; then |
15875 | if test x$support_inheritpixmap = xyes; then |
|
|
15876 | |
11871 | |
15877 | cat >>confdefs.h <<\_ACEOF |
11872 | cat >>confdefs.h <<\_ACEOF |
15878 | #define TRANSPARENT 1 |
11873 | #define XIMCB_PROTO_BROKEN 1 |
15879 | _ACEOF |
11874 | _ACEOF |
15880 | |
11875 | |
15881 | fi |
11876 | fi |
15882 | if test x$support_keepscrolling = xno; then |
|
|
15883 | |
11877 | |
15884 | cat >>confdefs.h <<\_ACEOF |
|
|
15885 | #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
|
|
15886 | _ACEOF |
|
|
15887 | |
11878 | |
15888 | fi |
|
|
15889 | if test x$support_selectionscrolling = xyes; then |
|
|
15890 | |
11879 | |
15891 | cat >>confdefs.h <<\_ACEOF |
|
|
15892 | #define SELECTION_SCROLLING 1 |
|
|
15893 | _ACEOF |
|
|
15894 | |
11880 | |
15895 | fi |
|
|
15896 | if test x$support_menubar = xyes; then |
|
|
15897 | |
11881 | |
15898 | cat >>confdefs.h <<\_ACEOF |
|
|
15899 | #define MENUBAR 1 |
|
|
15900 | _ACEOF |
|
|
15901 | |
11882 | |
15902 | fi |
|
|
15903 | if test x$support_frills = xno; then |
|
|
15904 | |
11883 | |
15905 | cat >>confdefs.h <<\_ACEOF |
11884 | for ac_header in \ |
15906 | #define NO_FRILLS 1 |
11885 | pty.h \ |
15907 | _ACEOF |
11886 | util.h \ |
|
|
11887 | libutil.h \ |
|
|
11888 | sys/ioctl.h \ |
|
|
11889 | sys/stropts.h \ |
15908 | |
11890 | |
15909 | fi |
|
|
15910 | if test x$support_linespace = xno; then |
|
|
15911 | |
|
|
15912 | cat >>confdefs.h <<\_ACEOF |
|
|
15913 | #define NO_LINESPACE 1 |
|
|
15914 | _ACEOF |
|
|
15915 | |
|
|
15916 | fi |
|
|
15917 | if test x$support_24bit = xyes; then |
|
|
15918 | |
|
|
15919 | cat >>confdefs.h <<\_ACEOF |
|
|
15920 | #define PREFER_24BIT 1 |
|
|
15921 | _ACEOF |
|
|
15922 | |
|
|
15923 | fi |
|
|
15924 | if test x$support_mousewheel = xyes; then |
|
|
15925 | |
|
|
15926 | cat >>confdefs.h <<\_ACEOF |
|
|
15927 | #define MOUSE_WHEEL 1 |
|
|
15928 | _ACEOF |
|
|
15929 | |
|
|
15930 | fi |
|
|
15931 | if test x$support_mouseslipwheel = xyes; then |
|
|
15932 | |
|
|
15933 | cat >>confdefs.h <<\_ACEOF |
|
|
15934 | #define MOUSE_SLIP_WHEELING 1 |
|
|
15935 | _ACEOF |
|
|
15936 | |
|
|
15937 | fi |
|
|
15938 | if test x$support_oldselection = xno; then |
|
|
15939 | |
|
|
15940 | cat >>confdefs.h <<\_ACEOF |
|
|
15941 | #define NO_OLD_SELECTION 1 |
|
|
15942 | _ACEOF |
|
|
15943 | |
|
|
15944 | fi |
|
|
15945 | if test x$support_utmp = xyes; then |
|
|
15946 | |
|
|
15947 | cat >>confdefs.h <<\_ACEOF |
|
|
15948 | #define UTMP_SUPPORT 1 |
|
|
15949 | _ACEOF |
|
|
15950 | |
|
|
15951 | fi |
|
|
15952 | if test x$support_wtmp = xyes; then |
|
|
15953 | |
|
|
15954 | cat >>confdefs.h <<\_ACEOF |
|
|
15955 | #define WTMP_SUPPORT 1 |
|
|
15956 | _ACEOF |
|
|
15957 | |
|
|
15958 | fi |
|
|
15959 | if test x$support_lastlog = xyes; then |
|
|
15960 | |
|
|
15961 | cat >>confdefs.h <<\_ACEOF |
|
|
15962 | #define LASTLOG_SUPPORT 1 |
|
|
15963 | _ACEOF |
|
|
15964 | |
|
|
15965 | fi |
|
|
15966 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
15967 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
15968 | |
|
|
15969 | cat >>confdefs.h <<\_ACEOF |
|
|
15970 | #define USE_XIM 1 |
|
|
15971 | _ACEOF |
|
|
15972 | |
|
|
15973 | fi |
|
|
15974 | fi |
|
|
15975 | if test x$support_xpm = xyes; then |
|
|
15976 | |
|
|
15977 | cat >>confdefs.h <<\_ACEOF |
|
|
15978 | #define XPM_BACKGROUND 1 |
|
|
15979 | _ACEOF |
|
|
15980 | |
|
|
15981 | fi |
|
|
15982 | if test x$support_scroll_rxvt = xyes; then |
|
|
15983 | |
|
|
15984 | cat >>confdefs.h <<\_ACEOF |
|
|
15985 | #define RXVT_SCROLLBAR 1 |
|
|
15986 | _ACEOF |
|
|
15987 | |
|
|
15988 | scrolltypes="rxvt" |
|
|
15989 | fi |
|
|
15990 | if test x$support_scroll_next = xyes; then |
|
|
15991 | |
|
|
15992 | cat >>confdefs.h <<\_ACEOF |
|
|
15993 | #define NEXT_SCROLLBAR 1 |
|
|
15994 | _ACEOF |
|
|
15995 | |
|
|
15996 | scrolltypes="$scrolltypes next" |
|
|
15997 | fi |
|
|
15998 | if test x$support_scroll_xterm = xyes; then |
|
|
15999 | |
|
|
16000 | cat >>confdefs.h <<\_ACEOF |
|
|
16001 | #define XTERM_SCROLLBAR 1 |
|
|
16002 | _ACEOF |
|
|
16003 | |
|
|
16004 | scrolltypes="$scrolltypes xterm" |
|
|
16005 | fi |
|
|
16006 | if test x$support_scroll_plain = xyes; then |
|
|
16007 | |
|
|
16008 | cat >>confdefs.h <<\_ACEOF |
|
|
16009 | #define PLAIN_SCROLLBAR 1 |
|
|
16010 | _ACEOF |
|
|
16011 | |
|
|
16012 | scrolltypes="$scrolltypes plain" |
|
|
16013 | fi |
|
|
16014 | if test x$support_pointer_blank = xyes; then |
|
|
16015 | |
|
|
16016 | cat >>confdefs.h <<\_ACEOF |
|
|
16017 | #define POINTER_BLANK 1 |
|
|
16018 | _ACEOF |
|
|
16019 | |
|
|
16020 | fi |
|
|
16021 | if test x$support_cursor_blink = xyes; then |
|
|
16022 | |
|
|
16023 | cat >>confdefs.h <<\_ACEOF |
|
|
16024 | #define CURSOR_BLINK 1 |
|
|
16025 | _ACEOF |
|
|
16026 | |
|
|
16027 | fi |
|
|
16028 | if test x$support_text_blink = xyes; then |
|
|
16029 | |
|
|
16030 | cat >>confdefs.h <<\_ACEOF |
|
|
16031 | #define TEXT_BLINK 1 |
|
|
16032 | _ACEOF |
|
|
16033 | |
|
|
16034 | fi |
|
|
16035 | if test x$support_unicode3 = xyes; then |
|
|
16036 | |
|
|
16037 | cat >>confdefs.h <<\_ACEOF |
|
|
16038 | #define UNICODE_3 1 |
|
|
16039 | _ACEOF |
|
|
16040 | |
|
|
16041 | fi |
|
|
16042 | if test x$codesets = xall; then |
|
|
16043 | codesets=jp,jp-ext,kr,cn,cn-ext,vn |
|
|
16044 | fi |
|
|
16045 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
|
|
16046 | |
|
|
16047 | cat >>confdefs.h <<\_ACEOF |
|
|
16048 | #define ENCODING_EU 1 |
|
|
16049 | _ACEOF |
|
|
16050 | |
|
|
16051 | case "$codeset" in |
|
|
16052 | VN ) |
|
|
16053 | cat >>confdefs.h <<\_ACEOF |
|
|
16054 | #define ENCODING_VN 1 |
|
|
16055 | _ACEOF |
|
|
16056 | ;; |
|
|
16057 | JP ) |
|
|
16058 | cat >>confdefs.h <<\_ACEOF |
|
|
16059 | #define ENCODING_JP 1 |
|
|
16060 | _ACEOF |
|
|
16061 | ;; |
|
|
16062 | JP_EXT ) |
|
|
16063 | cat >>confdefs.h <<\_ACEOF |
|
|
16064 | #define ENCODING_JP_EXT 1 |
|
|
16065 | _ACEOF |
|
|
16066 | ;; |
|
|
16067 | KR ) |
|
|
16068 | cat >>confdefs.h <<\_ACEOF |
|
|
16069 | #define ENCODING_KR 1 |
|
|
16070 | _ACEOF |
|
|
16071 | ;; |
|
|
16072 | CN ) |
|
|
16073 | cat >>confdefs.h <<\_ACEOF |
|
|
16074 | #define ENCODING_CN 1 |
|
|
16075 | _ACEOF |
|
|
16076 | ;; |
|
|
16077 | CN_EXT ) |
|
|
16078 | cat >>confdefs.h <<\_ACEOF |
|
|
16079 | #define ENCODING_CN_EXT 1 |
|
|
16080 | _ACEOF |
|
|
16081 | ;; |
|
|
16082 | esac |
|
|
16083 | done |
|
|
16084 | |
|
|
16085 | |
|
|
16086 | CFLAGS=${CFLAGS--O} |
|
|
16087 | LDFLAGS=${LDFLAGS--O} |
|
|
16088 | |
|
|
16089 | CPPFLAGS="$CPPFLAGS" |
|
|
16090 | |
|
|
16091 | |
|
|
16092 | |
|
|
16093 | |
|
|
16094 | |
|
|
16095 | |
|
|
16096 | |
|
|
16097 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
16098 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
16099 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
16100 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
16101 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
16102 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
16103 | fi |
|
|
16104 | |
|
|
16105 | |
|
|
16106 | |
|
|
16107 | |
|
|
16108 | |
|
|
16109 | if test x$support_addstrings = xno; then |
|
|
16110 | |
|
|
16111 | cat >>confdefs.h <<\_ACEOF |
|
|
16112 | #define NO_STRINGS 1 |
|
|
16113 | _ACEOF |
|
|
16114 | |
|
|
16115 | fi |
|
|
16116 | |
|
|
16117 | MCOMMON=./autoconf/Make.common |
|
|
16118 | |
|
|
16119 | |
|
|
16120 | test "$program_prefix" != NONE && |
|
|
16121 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
|
|
16122 | # Use a double $ so make ignores it. |
|
|
16123 | test "$program_suffix" != NONE && |
|
|
16124 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
|
|
16125 | # Double any \ or $. echo might interpret backslashes. |
|
|
16126 | # By default was `s,x,x', remove it if useless. |
|
|
16127 | cat <<\_ACEOF >conftest.sed |
|
|
16128 | s/[\\$]/&&/g;s/;s,x,x,$// |
|
|
16129 | _ACEOF |
|
|
16130 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
|
16131 | rm conftest.sed |
|
|
16132 | |
|
|
16133 | |
|
|
16134 | RXVTNAME=`echo rxvt|sed "$program_transform_name"` |
|
|
16135 | |
|
|
16136 | |
|
|
16137 | |
|
|
16138 | |
|
|
16139 | |
|
|
16140 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16141 | include_stdint_h="#include <stdint.h>" |
|
|
16142 | else |
|
|
16143 | include_stdint_h="/* #include <stdint.h> */" |
|
|
16144 | fi |
|
|
16145 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16146 | include_stdarg_h="#include <stdarg.h>" |
|
|
16147 | else |
|
|
16148 | include_stdarg_h="/* #include <stdarg.h> */" |
|
|
16149 | fi |
|
|
16150 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16151 | include_stdlib_h="#include <stdlib.h>" |
|
|
16152 | else |
|
|
16153 | include_stdlib_h="/* #include <stdlib.h> */" |
|
|
16154 | fi |
|
|
16155 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16156 | include_unistd_h="#include <unistd.h>" |
|
|
16157 | else |
|
|
16158 | include_unistd_h="/* #include <unistd.h> */" |
|
|
16159 | fi |
|
|
16160 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16161 | include_string_h="#include <string.h>" |
|
|
16162 | else |
|
|
16163 | include_string_h="/* #include <string.h> */" |
|
|
16164 | fi |
|
|
16165 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16166 | include_fcntl_h="#include <fcntl.h>" |
|
|
16167 | else |
|
|
16168 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
16169 | fi |
|
|
16170 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16171 | include_util_h="#include <util.h>" |
|
|
16172 | else |
|
|
16173 | include_util_h="/* #include <util.h> */" |
|
|
16174 | fi |
|
|
16175 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16176 | include_assert_h="#include <assert.h>" |
|
|
16177 | else |
|
|
16178 | include_assert_h="/* #include <assert.h> */" |
|
|
16179 | fi |
|
|
16180 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16181 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
16182 | else |
|
|
16183 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
16184 | fi |
|
|
16185 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16186 | include_sys_select_h="#include <sys/select.h>" |
|
|
16187 | else |
|
|
16188 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
16189 | fi |
|
|
16190 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16191 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
16192 | else |
|
|
16193 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
16194 | fi |
|
|
16195 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16196 | include_sys_time_h="#include <sys/time.h>" |
|
|
16197 | else |
|
|
16198 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
16199 | fi |
|
|
16200 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
16201 | include_time_h="#include <time.h>" |
|
|
16202 | else |
|
|
16203 | include_time_h="/* #include <time.h> */" |
|
|
16204 | fi |
|
|
16205 | |
|
|
16206 | if test x$support_xft = xyes; then |
|
|
16207 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
16208 | CFLAGS="$CFLAGS `pkg-config xft --cflags`" |
|
|
16209 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
16210 | |
|
|
16211 | |
|
|
16212 | for ac_header in X11/Xft/Xft.h |
|
|
16213 | do |
11891 | do |
16214 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11892 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16215 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11893 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16216 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11894 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16217 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11895 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
… | |
… | |
16240 | grep -v '^ *+' conftest.er1 >conftest.err |
11918 | grep -v '^ *+' conftest.er1 >conftest.err |
16241 | rm -f conftest.er1 |
11919 | rm -f conftest.er1 |
16242 | cat conftest.err >&5 |
11920 | cat conftest.err >&5 |
16243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16244 | (exit $ac_status); } && |
11922 | (exit $ac_status); } && |
16245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11923 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
11924 | || test ! -s conftest.err' |
16246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16247 | (eval $ac_try) 2>&5 |
11926 | (eval $ac_try) 2>&5 |
16248 | ac_status=$? |
11927 | ac_status=$? |
16249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16250 | (exit $ac_status); }; } && |
11929 | (exit $ac_status); }; } && |
… | |
… | |
16283 | rm -f conftest.er1 |
11962 | rm -f conftest.er1 |
16284 | cat conftest.err >&5 |
11963 | cat conftest.err >&5 |
16285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16286 | (exit $ac_status); } >/dev/null; then |
11965 | (exit $ac_status); } >/dev/null; then |
16287 | if test -s conftest.err; then |
11966 | if test -s conftest.err; then |
16288 | ac_cpp_err=$ac_c_preproc_warn_flag |
11967 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16289 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
11968 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
16290 | else |
11969 | else |
16291 | ac_cpp_err= |
11970 | ac_cpp_err= |
16292 | fi |
11971 | fi |
16293 | else |
11972 | else |
16294 | ac_cpp_err=yes |
11973 | ac_cpp_err=yes |
… | |
… | |
16304 | rm -f conftest.err conftest.$ac_ext |
11983 | rm -f conftest.err conftest.$ac_ext |
16305 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11984 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16306 | echo "${ECHO_T}$ac_header_preproc" >&6 |
11985 | echo "${ECHO_T}$ac_header_preproc" >&6 |
16307 | |
11986 | |
16308 | # So? What about this header? |
11987 | # So? What about this header? |
16309 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11988 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
16310 | yes:no: ) |
11989 | yes:no: ) |
16311 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11990 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16312 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11991 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
16313 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11992 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16314 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11993 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
… | |
… | |
16351 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12030 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
16352 | cat >>confdefs.h <<_ACEOF |
12031 | cat >>confdefs.h <<_ACEOF |
16353 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12032 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
16354 | _ACEOF |
12033 | _ACEOF |
16355 | |
12034 | |
|
|
12035 | fi |
|
|
12036 | |
|
|
12037 | done |
|
|
12038 | |
|
|
12039 | |
|
|
12040 | |
|
|
12041 | |
|
|
12042 | |
|
|
12043 | |
|
|
12044 | |
|
|
12045 | |
|
|
12046 | |
|
|
12047 | |
|
|
12048 | |
|
|
12049 | for ac_func in \ |
|
|
12050 | revoke \ |
|
|
12051 | _getpty \ |
|
|
12052 | getpt \ |
|
|
12053 | posix_openpt \ |
|
|
12054 | isastream \ |
|
|
12055 | setuid \ |
|
|
12056 | seteuid \ |
|
|
12057 | setreuid \ |
|
|
12058 | setresuid \ |
|
|
12059 | |
|
|
12060 | do |
|
|
12061 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12062 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12063 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12064 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12066 | else |
|
|
12067 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12068 | /* confdefs.h. */ |
|
|
12069 | _ACEOF |
|
|
12070 | cat confdefs.h >>conftest.$ac_ext |
|
|
12071 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12072 | /* end confdefs.h. */ |
|
|
12073 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12074 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12075 | #define $ac_func innocuous_$ac_func |
|
|
12076 | |
|
|
12077 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12078 | which can conflict with char $ac_func (); below. |
|
|
12079 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12080 | <limits.h> exists even on freestanding compilers. */ |
|
|
12081 | |
|
|
12082 | #ifdef __STDC__ |
|
|
12083 | # include <limits.h> |
|
|
12084 | #else |
|
|
12085 | # include <assert.h> |
|
|
12086 | #endif |
|
|
12087 | |
|
|
12088 | #undef $ac_func |
|
|
12089 | |
|
|
12090 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12091 | #ifdef __cplusplus |
|
|
12092 | extern "C" |
|
|
12093 | { |
|
|
12094 | #endif |
|
|
12095 | /* We use char because int might match the return type of a gcc2 |
|
|
12096 | builtin and then its argument prototype would still apply. */ |
|
|
12097 | char $ac_func (); |
|
|
12098 | /* The GNU C library defines this for functions which it implements |
|
|
12099 | to always fail with ENOSYS. Some functions are actually named |
|
|
12100 | something starting with __ and the normal name is an alias. */ |
|
|
12101 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12102 | choke me |
|
|
12103 | #else |
|
|
12104 | char (*f) () = $ac_func; |
|
|
12105 | #endif |
|
|
12106 | #ifdef __cplusplus |
|
|
12107 | } |
|
|
12108 | #endif |
|
|
12109 | |
|
|
12110 | int |
|
|
12111 | main () |
|
|
12112 | { |
|
|
12113 | return f != $ac_func; |
|
|
12114 | ; |
|
|
12115 | return 0; |
|
|
12116 | } |
|
|
12117 | _ACEOF |
|
|
12118 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12120 | (eval $ac_link) 2>conftest.er1 |
|
|
12121 | ac_status=$? |
|
|
12122 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12123 | rm -f conftest.er1 |
|
|
12124 | cat conftest.err >&5 |
|
|
12125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12126 | (exit $ac_status); } && |
|
|
12127 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
12128 | || test ! -s conftest.err' |
|
|
12129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12130 | (eval $ac_try) 2>&5 |
|
|
12131 | ac_status=$? |
|
|
12132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12133 | (exit $ac_status); }; } && |
|
|
12134 | { ac_try='test -s conftest$ac_exeext' |
|
|
12135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12136 | (eval $ac_try) 2>&5 |
|
|
12137 | ac_status=$? |
|
|
12138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12139 | (exit $ac_status); }; }; then |
|
|
12140 | eval "$as_ac_var=yes" |
|
|
12141 | else |
|
|
12142 | echo "$as_me: failed program was:" >&5 |
|
|
12143 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12144 | |
|
|
12145 | eval "$as_ac_var=no" |
|
|
12146 | fi |
|
|
12147 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12148 | conftest$ac_exeext conftest.$ac_ext |
|
|
12149 | fi |
|
|
12150 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12151 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12152 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12153 | cat >>confdefs.h <<_ACEOF |
|
|
12154 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12155 | _ACEOF |
|
|
12156 | |
|
|
12157 | fi |
|
|
12158 | done |
|
|
12159 | |
|
|
12160 | |
|
|
12161 | have_clone=no |
|
|
12162 | |
|
|
12163 | echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12164 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
|
|
12165 | if test -e /dev/ptym/clone; then |
|
|
12166 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12167 | echo "${ECHO_T}yes" >&6 |
|
|
12168 | |
|
|
12169 | cat >>confdefs.h <<\_ACEOF |
|
|
12170 | #define HAVE_DEV_CLONE 1 |
|
|
12171 | _ACEOF |
|
|
12172 | |
|
|
12173 | |
|
|
12174 | cat >>confdefs.h <<\_ACEOF |
|
|
12175 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12176 | _ACEOF |
|
|
12177 | |
|
|
12178 | have_clone=yes |
|
|
12179 | else |
|
|
12180 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12181 | echo "${ECHO_T}no" >&6 |
|
|
12182 | fi |
|
|
12183 | |
|
|
12184 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
12185 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
|
|
12186 | if test -e /dev/ptc; then |
|
|
12187 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12188 | echo "${ECHO_T}yes" >&6 |
|
|
12189 | |
|
|
12190 | cat >>confdefs.h <<\_ACEOF |
|
|
12191 | #define HAVE_DEV_PTC 1 |
|
|
12192 | _ACEOF |
|
|
12193 | |
|
|
12194 | |
|
|
12195 | cat >>confdefs.h <<\_ACEOF |
|
|
12196 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12197 | _ACEOF |
|
|
12198 | |
|
|
12199 | have_clone=yes |
|
|
12200 | else |
|
|
12201 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12202 | echo "${ECHO_T}no" >&6 |
|
|
12203 | fi |
|
|
12204 | |
|
|
12205 | case $host in |
|
|
12206 | *-*-cygwin*) |
|
|
12207 | have_clone=yes |
|
|
12208 | |
|
|
12209 | cat >>confdefs.h <<\_ACEOF |
|
|
12210 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12211 | _ACEOF |
|
|
12212 | |
|
|
12213 | ;; |
|
|
12214 | *) |
|
|
12215 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12216 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
|
|
12217 | if test -e /dev/ptmx; then |
|
|
12218 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12219 | echo "${ECHO_T}yes" >&6 |
|
|
12220 | |
|
|
12221 | cat >>confdefs.h <<\_ACEOF |
|
|
12222 | #define HAVE_DEV_PTMX 1 |
|
|
12223 | _ACEOF |
|
|
12224 | |
|
|
12225 | |
|
|
12226 | cat >>confdefs.h <<\_ACEOF |
|
|
12227 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12228 | _ACEOF |
|
|
12229 | |
|
|
12230 | have_clone=yes |
|
|
12231 | else |
|
|
12232 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12233 | echo "${ECHO_T}no" >&6 |
|
|
12234 | fi |
|
|
12235 | ;; |
|
|
12236 | esac |
|
|
12237 | |
|
|
12238 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12239 | echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12240 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
|
|
12241 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12242 | /* confdefs.h. */ |
|
|
12243 | _ACEOF |
|
|
12244 | cat confdefs.h >>conftest.$ac_ext |
|
|
12245 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12246 | /* end confdefs.h. */ |
|
|
12247 | #include <stdlib.h> |
|
|
12248 | int |
|
|
12249 | main () |
|
|
12250 | { |
|
|
12251 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12252 | ; |
|
|
12253 | return 0; |
|
|
12254 | } |
|
|
12255 | _ACEOF |
|
|
12256 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12258 | (eval $ac_link) 2>conftest.er1 |
|
|
12259 | ac_status=$? |
|
|
12260 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12261 | rm -f conftest.er1 |
|
|
12262 | cat conftest.err >&5 |
|
|
12263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12264 | (exit $ac_status); } && |
|
|
12265 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
12266 | || test ! -s conftest.err' |
|
|
12267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12268 | (eval $ac_try) 2>&5 |
|
|
12269 | ac_status=$? |
|
|
12270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12271 | (exit $ac_status); }; } && |
|
|
12272 | { ac_try='test -s conftest$ac_exeext' |
|
|
12273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12274 | (eval $ac_try) 2>&5 |
|
|
12275 | ac_status=$? |
|
|
12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12277 | (exit $ac_status); }; }; then |
|
|
12278 | unix98_pty=yes |
|
|
12279 | |
|
|
12280 | cat >>confdefs.h <<\_ACEOF |
|
|
12281 | #define UNIX98_PTY 1 |
|
|
12282 | _ACEOF |
|
|
12283 | |
|
|
12284 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12285 | echo "${ECHO_T}yes" >&6 |
|
|
12286 | else |
|
|
12287 | echo "$as_me: failed program was:" >&5 |
|
|
12288 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12289 | |
|
|
12290 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12291 | echo "${ECHO_T}no" >&6 |
|
|
12292 | fi |
|
|
12293 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12294 | conftest$ac_exeext conftest.$ac_ext |
|
|
12295 | fi |
|
|
12296 | |
|
|
12297 | if test -z "$unix98_pty"; then |
|
|
12298 | |
|
|
12299 | for ac_func in openpty |
|
|
12300 | do |
|
|
12301 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12302 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12303 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12304 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12306 | else |
|
|
12307 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12308 | /* confdefs.h. */ |
|
|
12309 | _ACEOF |
|
|
12310 | cat confdefs.h >>conftest.$ac_ext |
|
|
12311 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12312 | /* end confdefs.h. */ |
|
|
12313 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12314 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12315 | #define $ac_func innocuous_$ac_func |
|
|
12316 | |
|
|
12317 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12318 | which can conflict with char $ac_func (); below. |
|
|
12319 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12320 | <limits.h> exists even on freestanding compilers. */ |
|
|
12321 | |
|
|
12322 | #ifdef __STDC__ |
|
|
12323 | # include <limits.h> |
|
|
12324 | #else |
|
|
12325 | # include <assert.h> |
|
|
12326 | #endif |
|
|
12327 | |
|
|
12328 | #undef $ac_func |
|
|
12329 | |
|
|
12330 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12331 | #ifdef __cplusplus |
|
|
12332 | extern "C" |
|
|
12333 | { |
|
|
12334 | #endif |
|
|
12335 | /* We use char because int might match the return type of a gcc2 |
|
|
12336 | builtin and then its argument prototype would still apply. */ |
|
|
12337 | char $ac_func (); |
|
|
12338 | /* The GNU C library defines this for functions which it implements |
|
|
12339 | to always fail with ENOSYS. Some functions are actually named |
|
|
12340 | something starting with __ and the normal name is an alias. */ |
|
|
12341 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12342 | choke me |
|
|
12343 | #else |
|
|
12344 | char (*f) () = $ac_func; |
|
|
12345 | #endif |
|
|
12346 | #ifdef __cplusplus |
|
|
12347 | } |
|
|
12348 | #endif |
|
|
12349 | |
|
|
12350 | int |
|
|
12351 | main () |
|
|
12352 | { |
|
|
12353 | return f != $ac_func; |
|
|
12354 | ; |
|
|
12355 | return 0; |
|
|
12356 | } |
|
|
12357 | _ACEOF |
|
|
12358 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12360 | (eval $ac_link) 2>conftest.er1 |
|
|
12361 | ac_status=$? |
|
|
12362 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12363 | rm -f conftest.er1 |
|
|
12364 | cat conftest.err >&5 |
|
|
12365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12366 | (exit $ac_status); } && |
|
|
12367 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
12368 | || test ! -s conftest.err' |
|
|
12369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12370 | (eval $ac_try) 2>&5 |
|
|
12371 | ac_status=$? |
|
|
12372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12373 | (exit $ac_status); }; } && |
|
|
12374 | { ac_try='test -s conftest$ac_exeext' |
|
|
12375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12376 | (eval $ac_try) 2>&5 |
|
|
12377 | ac_status=$? |
|
|
12378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12379 | (exit $ac_status); }; }; then |
|
|
12380 | eval "$as_ac_var=yes" |
|
|
12381 | else |
|
|
12382 | echo "$as_me: failed program was:" >&5 |
|
|
12383 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12384 | |
|
|
12385 | eval "$as_ac_var=no" |
|
|
12386 | fi |
|
|
12387 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12388 | conftest$ac_exeext conftest.$ac_ext |
|
|
12389 | fi |
|
|
12390 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12391 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12392 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12393 | cat >>confdefs.h <<_ACEOF |
|
|
12394 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12395 | _ACEOF |
|
|
12396 | |
|
|
12397 | else |
|
|
12398 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12399 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
12400 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12402 | else |
|
|
12403 | ac_check_lib_save_LIBS=$LIBS |
|
|
12404 | LIBS="-lutil $LIBS" |
|
|
12405 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12406 | /* confdefs.h. */ |
|
|
12407 | _ACEOF |
|
|
12408 | cat confdefs.h >>conftest.$ac_ext |
|
|
12409 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12410 | /* end confdefs.h. */ |
|
|
12411 | |
|
|
12412 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12413 | #ifdef __cplusplus |
|
|
12414 | extern "C" |
|
|
12415 | #endif |
|
|
12416 | /* We use char because int might match the return type of a gcc2 |
|
|
12417 | builtin and then its argument prototype would still apply. */ |
|
|
12418 | char openpty (); |
|
|
12419 | int |
|
|
12420 | main () |
|
|
12421 | { |
|
|
12422 | openpty (); |
|
|
12423 | ; |
|
|
12424 | return 0; |
|
|
12425 | } |
|
|
12426 | _ACEOF |
|
|
12427 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12429 | (eval $ac_link) 2>conftest.er1 |
|
|
12430 | ac_status=$? |
|
|
12431 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12432 | rm -f conftest.er1 |
|
|
12433 | cat conftest.err >&5 |
|
|
12434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12435 | (exit $ac_status); } && |
|
|
12436 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
12437 | || test ! -s conftest.err' |
|
|
12438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12439 | (eval $ac_try) 2>&5 |
|
|
12440 | ac_status=$? |
|
|
12441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12442 | (exit $ac_status); }; } && |
|
|
12443 | { ac_try='test -s conftest$ac_exeext' |
|
|
12444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12445 | (eval $ac_try) 2>&5 |
|
|
12446 | ac_status=$? |
|
|
12447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12448 | (exit $ac_status); }; }; then |
|
|
12449 | ac_cv_lib_util_openpty=yes |
|
|
12450 | else |
|
|
12451 | echo "$as_me: failed program was:" >&5 |
|
|
12452 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12453 | |
|
|
12454 | ac_cv_lib_util_openpty=no |
|
|
12455 | fi |
|
|
12456 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12457 | conftest$ac_exeext conftest.$ac_ext |
|
|
12458 | LIBS=$ac_check_lib_save_LIBS |
|
|
12459 | fi |
|
|
12460 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12461 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12462 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12463 | cat >>confdefs.h <<\_ACEOF |
|
|
12464 | #define HAVE_OPENPTY 1 |
|
|
12465 | _ACEOF |
|
|
12466 | LIBS="$LIBS -lutil" |
|
|
12467 | fi |
|
|
12468 | |
|
|
12469 | fi |
|
|
12470 | done |
|
|
12471 | |
|
|
12472 | fi |
|
|
12473 | |
|
|
12474 | |
|
|
12475 | |
|
|
12476 | echo "$as_me:$LINENO: checking for tty group" >&5 |
|
|
12477 | echo $ECHO_N "checking for tty group... $ECHO_C" >&6 |
|
|
12478 | if test "${tty_group+set}" = set; then |
|
|
12479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12480 | else |
|
|
12481 | if test "$cross_compiling" = yes; then |
|
|
12482 | tty_group=no |
|
|
12483 | else |
|
|
12484 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12485 | /* confdefs.h. */ |
|
|
12486 | _ACEOF |
|
|
12487 | cat confdefs.h >>conftest.$ac_ext |
|
|
12488 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12489 | /* end confdefs.h. */ |
|
|
12490 | |
|
|
12491 | #include <sys/types.h> |
|
|
12492 | #include <sys/stat.h> |
|
|
12493 | #include <unistd.h> |
|
|
12494 | #include <grp.h> |
|
|
12495 | |
|
|
12496 | main() |
|
|
12497 | { |
|
|
12498 | struct stat st; |
|
|
12499 | struct group *gr; |
|
|
12500 | char *tty; |
|
|
12501 | gr = getgrnam("tty"); |
|
|
12502 | tty = ttyname(0); |
|
|
12503 | if (gr != 0 |
|
|
12504 | && tty != 0 |
|
|
12505 | && (stat(tty, &st)) == 0 |
|
|
12506 | && st.st_gid == gr->gr_gid) |
|
|
12507 | return 0; |
|
|
12508 | else |
|
|
12509 | return 1; |
|
|
12510 | } |
|
|
12511 | _ACEOF |
|
|
12512 | rm -f conftest$ac_exeext |
|
|
12513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12514 | (eval $ac_link) 2>&5 |
|
|
12515 | ac_status=$? |
|
|
12516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12517 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12519 | (eval $ac_try) 2>&5 |
|
|
12520 | ac_status=$? |
|
|
12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12522 | (exit $ac_status); }; }; then |
|
|
12523 | tty_group=yes |
|
|
12524 | else |
|
|
12525 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12526 | echo "$as_me: failed program was:" >&5 |
|
|
12527 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12528 | |
|
|
12529 | ( exit $ac_status ) |
|
|
12530 | tty_group=no |
|
|
12531 | fi |
|
|
12532 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12533 | fi |
|
|
12534 | fi |
|
|
12535 | echo "$as_me:$LINENO: result: $tty_group" >&5 |
|
|
12536 | echo "${ECHO_T}$tty_group" >&6 |
|
|
12537 | if test x$tty_group = xyes; then |
|
|
12538 | |
|
|
12539 | cat >>confdefs.h <<\_ACEOF |
|
|
12540 | #define TTY_GID_SUPPORT 1 |
|
|
12541 | _ACEOF |
|
|
12542 | |
|
|
12543 | fi |
|
|
12544 | |
|
|
12545 | if test x$support_xft = xyes; then |
|
|
12546 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
12547 | set dummy pkg-config; ac_word=$2 |
|
|
12548 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12550 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
|
|
12551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12552 | else |
|
|
12553 | case $PKG_CONFIG in |
|
|
12554 | [\\/]* | ?:[\\/]*) |
|
|
12555 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
|
|
12556 | ;; |
|
|
12557 | *) |
|
|
12558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12559 | for as_dir in $PATH |
|
|
12560 | do |
|
|
12561 | IFS=$as_save_IFS |
|
|
12562 | test -z "$as_dir" && as_dir=. |
|
|
12563 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12565 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12567 | break 2 |
|
|
12568 | fi |
|
|
12569 | done |
|
|
12570 | done |
|
|
12571 | |
|
|
12572 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
12573 | ;; |
|
|
12574 | esac |
|
|
12575 | fi |
|
|
12576 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
12577 | |
|
|
12578 | if test -n "$PKG_CONFIG"; then |
|
|
12579 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
|
|
12580 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
|
|
12581 | else |
|
|
12582 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12583 | echo "${ECHO_T}no" >&6 |
|
|
12584 | fi |
|
|
12585 | |
|
|
12586 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
|
|
12587 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
|
|
12588 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
|
|
12589 | else |
|
|
12590 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
12591 | set dummy xft-config; ac_word=$2 |
|
|
12592 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12594 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
|
|
12595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12596 | else |
|
|
12597 | case $XFT_CONFIG in |
|
|
12598 | [\\/]* | ?:[\\/]*) |
|
|
12599 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
12600 | ;; |
|
|
12601 | *) |
|
|
12602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12603 | for as_dir in $PATH |
|
|
12604 | do |
|
|
12605 | IFS=$as_save_IFS |
|
|
12606 | test -z "$as_dir" && as_dir=. |
|
|
12607 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12608 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12609 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12611 | break 2 |
|
|
12612 | fi |
|
|
12613 | done |
|
|
12614 | done |
|
|
12615 | |
|
|
12616 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
12617 | ;; |
|
|
12618 | esac |
|
|
12619 | fi |
|
|
12620 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
12621 | |
|
|
12622 | if test -n "$XFT_CONFIG"; then |
|
|
12623 | echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
|
|
12624 | echo "${ECHO_T}$XFT_CONFIG" >&6 |
|
|
12625 | else |
|
|
12626 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12627 | echo "${ECHO_T}no" >&6 |
|
|
12628 | fi |
|
|
12629 | |
|
|
12630 | if test $XFT_CONFIG != no; then |
|
|
12631 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
|
|
12632 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
12633 | fi |
|
|
12634 | fi |
|
|
12635 | |
|
|
12636 | |
|
|
12637 | for ac_header in X11/Xft/Xft.h |
|
|
12638 | do |
|
|
12639 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12641 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12645 | fi |
|
|
12646 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12647 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12648 | else |
|
|
12649 | # Is the header compilable? |
|
|
12650 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12651 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
12652 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12653 | /* confdefs.h. */ |
|
|
12654 | _ACEOF |
|
|
12655 | cat confdefs.h >>conftest.$ac_ext |
|
|
12656 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12657 | /* end confdefs.h. */ |
|
|
12658 | $ac_includes_default |
|
|
12659 | #include <$ac_header> |
|
|
12660 | _ACEOF |
|
|
12661 | rm -f conftest.$ac_objext |
|
|
12662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12663 | (eval $ac_compile) 2>conftest.er1 |
|
|
12664 | ac_status=$? |
|
|
12665 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12666 | rm -f conftest.er1 |
|
|
12667 | cat conftest.err >&5 |
|
|
12668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12669 | (exit $ac_status); } && |
|
|
12670 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
12671 | || test ! -s conftest.err' |
|
|
12672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12673 | (eval $ac_try) 2>&5 |
|
|
12674 | ac_status=$? |
|
|
12675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12676 | (exit $ac_status); }; } && |
|
|
12677 | { ac_try='test -s conftest.$ac_objext' |
|
|
12678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12679 | (eval $ac_try) 2>&5 |
|
|
12680 | ac_status=$? |
|
|
12681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12682 | (exit $ac_status); }; }; then |
|
|
12683 | ac_header_compiler=yes |
|
|
12684 | else |
|
|
12685 | echo "$as_me: failed program was:" >&5 |
|
|
12686 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12687 | |
|
|
12688 | ac_header_compiler=no |
|
|
12689 | fi |
|
|
12690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12691 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12692 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12693 | |
|
|
12694 | # Is the header present? |
|
|
12695 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12696 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12697 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12698 | /* confdefs.h. */ |
|
|
12699 | _ACEOF |
|
|
12700 | cat confdefs.h >>conftest.$ac_ext |
|
|
12701 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12702 | /* end confdefs.h. */ |
|
|
12703 | #include <$ac_header> |
|
|
12704 | _ACEOF |
|
|
12705 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12706 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12707 | ac_status=$? |
|
|
12708 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12709 | rm -f conftest.er1 |
|
|
12710 | cat conftest.err >&5 |
|
|
12711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12712 | (exit $ac_status); } >/dev/null; then |
|
|
12713 | if test -s conftest.err; then |
|
|
12714 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12715 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12716 | else |
|
|
12717 | ac_cpp_err= |
|
|
12718 | fi |
|
|
12719 | else |
|
|
12720 | ac_cpp_err=yes |
|
|
12721 | fi |
|
|
12722 | if test -z "$ac_cpp_err"; then |
|
|
12723 | ac_header_preproc=yes |
|
|
12724 | else |
|
|
12725 | echo "$as_me: failed program was:" >&5 |
|
|
12726 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12727 | |
|
|
12728 | ac_header_preproc=no |
|
|
12729 | fi |
|
|
12730 | rm -f conftest.err conftest.$ac_ext |
|
|
12731 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12732 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
12733 | |
|
|
12734 | # So? What about this header? |
|
|
12735 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12736 | yes:no: ) |
|
|
12737 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12738 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12739 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12740 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12741 | ac_header_preproc=yes |
|
|
12742 | ;; |
|
|
12743 | no:yes:* ) |
|
|
12744 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12745 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12746 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12747 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12748 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12749 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12750 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12751 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12752 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12753 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12754 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12755 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12756 | ( |
|
|
12757 | cat <<\_ASBOX |
|
|
12758 | ## ------------------------------------------ ## |
|
|
12759 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12760 | ## ------------------------------------------ ## |
|
|
12761 | _ASBOX |
|
|
12762 | ) | |
|
|
12763 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12764 | ;; |
|
|
12765 | esac |
|
|
12766 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12767 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12768 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12770 | else |
|
|
12771 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12772 | fi |
|
|
12773 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12774 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12775 | |
|
|
12776 | fi |
|
|
12777 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12778 | cat >>confdefs.h <<_ACEOF |
|
|
12779 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12780 | _ACEOF |
|
|
12781 | |
16356 | else |
12782 | else |
16357 | support_xft=no |
12783 | support_xft=no |
16358 | fi |
12784 | fi |
16359 | |
12785 | |
16360 | done |
12786 | done |
… | |
… | |
16396 | grep -v '^ *+' conftest.er1 >conftest.err |
12822 | grep -v '^ *+' conftest.er1 >conftest.err |
16397 | rm -f conftest.er1 |
12823 | rm -f conftest.er1 |
16398 | cat conftest.err >&5 |
12824 | cat conftest.err >&5 |
16399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16400 | (exit $ac_status); } && |
12826 | (exit $ac_status); } && |
16401 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
12827 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
12828 | || test ! -s conftest.err' |
16402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16403 | (eval $ac_try) 2>&5 |
12830 | (eval $ac_try) 2>&5 |
16404 | ac_status=$? |
12831 | ac_status=$? |
16405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16406 | (exit $ac_status); }; } && |
12833 | (exit $ac_status); }; } && |
… | |
… | |
16441 | #define XFT 1 |
12868 | #define XFT 1 |
16442 | _ACEOF |
12869 | _ACEOF |
16443 | |
12870 | |
16444 | fi |
12871 | fi |
16445 | fi |
12872 | fi |
|
|
12873 | if test x$support_styles = xyes; then |
16446 | |
12874 | |
|
|
12875 | cat >>confdefs.h <<\_ACEOF |
|
|
12876 | #define ENABLE_STYLES 1 |
|
|
12877 | _ACEOF |
|
|
12878 | |
|
|
12879 | fi |
|
|
12880 | if test x$support_iso14755 = xyes; then |
|
|
12881 | |
|
|
12882 | cat >>confdefs.h <<\_ACEOF |
|
|
12883 | #define ISO_14755 1 |
|
|
12884 | _ACEOF |
|
|
12885 | |
|
|
12886 | fi |
|
|
12887 | if test x$support_8bitctrls = xyes; then |
|
|
12888 | |
|
|
12889 | cat >>confdefs.h <<\_ACEOF |
|
|
12890 | #define EIGHT_BIT_CONTROLS 1 |
|
|
12891 | _ACEOF |
|
|
12892 | |
|
|
12893 | fi |
|
|
12894 | if test x$support_fading = xyes; then |
|
|
12895 | |
|
|
12896 | cat >>confdefs.h <<\_ACEOF |
|
|
12897 | #define OFF_FOCUS_FADING 1 |
|
|
12898 | _ACEOF |
|
|
12899 | |
|
|
12900 | fi |
|
|
12901 | if test x$support_tinting = xyes; then |
|
|
12902 | |
|
|
12903 | cat >>confdefs.h <<\_ACEOF |
|
|
12904 | #define TINTING 1 |
|
|
12905 | _ACEOF |
|
|
12906 | |
|
|
12907 | fi |
|
|
12908 | if test x$support_inheritpixmap = xyes; then |
|
|
12909 | |
|
|
12910 | cat >>confdefs.h <<\_ACEOF |
|
|
12911 | #define TRANSPARENT 1 |
|
|
12912 | _ACEOF |
|
|
12913 | |
|
|
12914 | fi |
|
|
12915 | if test x$support_keepscrolling = xno; then |
|
|
12916 | |
|
|
12917 | cat >>confdefs.h <<\_ACEOF |
|
|
12918 | #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
|
|
12919 | _ACEOF |
|
|
12920 | |
|
|
12921 | fi |
|
|
12922 | if test x$support_selectionscrolling = xyes; then |
|
|
12923 | |
|
|
12924 | cat >>confdefs.h <<\_ACEOF |
|
|
12925 | #define SELECTION_SCROLLING 1 |
|
|
12926 | _ACEOF |
|
|
12927 | |
|
|
12928 | fi |
|
|
12929 | if test x$support_frills = xyes; then |
|
|
12930 | |
|
|
12931 | cat >>confdefs.h <<\_ACEOF |
|
|
12932 | #define ENABLE_FRILLS 1 |
|
|
12933 | _ACEOF |
|
|
12934 | |
|
|
12935 | fi |
|
|
12936 | if test x$support_mousewheel = xyes; then |
|
|
12937 | |
|
|
12938 | cat >>confdefs.h <<\_ACEOF |
|
|
12939 | #define MOUSE_WHEEL 1 |
|
|
12940 | _ACEOF |
|
|
12941 | |
|
|
12942 | fi |
|
|
12943 | if test x$support_mouseslipwheel = xyes; then |
|
|
12944 | |
|
|
12945 | cat >>confdefs.h <<\_ACEOF |
|
|
12946 | #define MOUSE_SLIP_WHEELING 1 |
|
|
12947 | _ACEOF |
|
|
12948 | |
|
|
12949 | fi |
|
|
12950 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
12951 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
12952 | |
|
|
12953 | cat >>confdefs.h <<\_ACEOF |
|
|
12954 | #define USE_XIM 1 |
|
|
12955 | _ACEOF |
|
|
12956 | |
|
|
12957 | fi |
|
|
12958 | fi |
|
|
12959 | if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then |
|
|
12960 | |
|
|
12961 | cat >>confdefs.h <<\_ACEOF |
|
|
12962 | #define XPM_BACKGROUND 1 |
|
|
12963 | _ACEOF |
|
|
12964 | |
|
|
12965 | fi |
|
|
12966 | |
|
|
12967 | if test x$support_afterimage = xyes; then |
|
|
12968 | |
|
|
12969 | cat >>confdefs.h <<\_ACEOF |
|
|
12970 | #define HAVE_AFTERIMAGE 1 |
|
|
12971 | _ACEOF |
|
|
12972 | |
|
|
12973 | fi |
|
|
12974 | |
|
|
12975 | if test x$support_afterstep = xyes; then |
|
|
12976 | |
|
|
12977 | cat >>confdefs.h <<\_ACEOF |
|
|
12978 | #define AFTERSTEP_INTEGRATION 1 |
|
|
12979 | _ACEOF |
|
|
12980 | |
|
|
12981 | fi |
|
|
12982 | |
|
|
12983 | if test x$support_scroll_rxvt = xyes; then |
|
|
12984 | |
|
|
12985 | cat >>confdefs.h <<\_ACEOF |
|
|
12986 | #define RXVT_SCROLLBAR 1 |
|
|
12987 | _ACEOF |
|
|
12988 | |
|
|
12989 | scrolltypes="rxvt" |
|
|
12990 | fi |
|
|
12991 | if test x$support_scroll_next = xyes; then |
|
|
12992 | |
|
|
12993 | cat >>confdefs.h <<\_ACEOF |
|
|
12994 | #define NEXT_SCROLLBAR 1 |
|
|
12995 | _ACEOF |
|
|
12996 | |
|
|
12997 | scrolltypes="$scrolltypes next" |
|
|
12998 | fi |
|
|
12999 | if test x$support_scroll_xterm = xyes; then |
|
|
13000 | |
|
|
13001 | cat >>confdefs.h <<\_ACEOF |
|
|
13002 | #define XTERM_SCROLLBAR 1 |
|
|
13003 | _ACEOF |
|
|
13004 | |
|
|
13005 | scrolltypes="$scrolltypes xterm" |
|
|
13006 | fi |
|
|
13007 | if test x$support_scroll_plain = xyes; then |
|
|
13008 | |
|
|
13009 | cat >>confdefs.h <<\_ACEOF |
|
|
13010 | #define PLAIN_SCROLLBAR 1 |
|
|
13011 | _ACEOF |
|
|
13012 | |
|
|
13013 | scrolltypes="$scrolltypes plain" |
|
|
13014 | fi |
|
|
13015 | if test x$support_pointer_blank = xyes; then |
|
|
13016 | |
|
|
13017 | cat >>confdefs.h <<\_ACEOF |
|
|
13018 | #define POINTER_BLANK 1 |
|
|
13019 | _ACEOF |
|
|
13020 | |
|
|
13021 | fi |
|
|
13022 | if test x$support_text_blink = xyes; then |
|
|
13023 | |
|
|
13024 | cat >>confdefs.h <<\_ACEOF |
|
|
13025 | #define TEXT_BLINK 1 |
|
|
13026 | _ACEOF |
|
|
13027 | |
|
|
13028 | fi |
|
|
13029 | if test x$support_unicode3 = xyes; then |
|
|
13030 | |
|
|
13031 | cat >>confdefs.h <<\_ACEOF |
|
|
13032 | #define UNICODE_3 1 |
|
|
13033 | _ACEOF |
|
|
13034 | |
|
|
13035 | fi |
|
|
13036 | if test x$support_combining = xyes; then |
|
|
13037 | |
|
|
13038 | cat >>confdefs.h <<\_ACEOF |
|
|
13039 | #define ENABLE_COMBINING 1 |
|
|
13040 | _ACEOF |
|
|
13041 | |
|
|
13042 | fi |
|
|
13043 | if test x$codesets = xall; then |
|
|
13044 | codesets=jp,jp-ext,kr,zh,zh-ext |
|
|
13045 | fi |
|
|
13046 | |
|
|
13047 | cat >>confdefs.h <<\_ACEOF |
|
|
13048 | #define ENCODING_EU 1 |
|
|
13049 | _ACEOF |
|
|
13050 | |
|
|
13051 | |
|
|
13052 | cat >>confdefs.h <<\_ACEOF |
|
|
13053 | #define ENCODING_VN 1 |
|
|
13054 | _ACEOF |
|
|
13055 | |
|
|
13056 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
|
|
13057 | case "$codeset" in |
|
|
13058 | JP ) |
|
|
13059 | cat >>confdefs.h <<\_ACEOF |
|
|
13060 | #define ENCODING_JP 1 |
|
|
13061 | _ACEOF |
|
|
13062 | ;; |
|
|
13063 | JP_EXT ) |
|
|
13064 | cat >>confdefs.h <<\_ACEOF |
|
|
13065 | #define ENCODING_JP_EXT 1 |
|
|
13066 | _ACEOF |
|
|
13067 | ;; |
|
|
13068 | KR ) |
|
|
13069 | cat >>confdefs.h <<\_ACEOF |
|
|
13070 | #define ENCODING_KR 1 |
|
|
13071 | _ACEOF |
|
|
13072 | ;; |
|
|
13073 | ZH ) |
|
|
13074 | cat >>confdefs.h <<\_ACEOF |
|
|
13075 | #define ENCODING_ZH 1 |
|
|
13076 | _ACEOF |
|
|
13077 | ;; |
|
|
13078 | ZH_EXT ) |
|
|
13079 | cat >>confdefs.h <<\_ACEOF |
|
|
13080 | #define ENCODING_ZH_EXT 1 |
|
|
13081 | _ACEOF |
|
|
13082 | ;; |
|
|
13083 | esac |
|
|
13084 | done |
|
|
13085 | |
|
|
13086 | IF_PERL=\# |
|
|
13087 | if test x$support_perl = xyes; then |
|
|
13088 | # Extract the first word of "perl5", so it can be a program name with args. |
|
|
13089 | set dummy perl5; ac_word=$2 |
|
|
13090 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
13091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
13092 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
13093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13094 | else |
|
|
13095 | case $PERL in |
|
|
13096 | [\\/]* | ?:[\\/]*) |
|
|
13097 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
13098 | ;; |
|
|
13099 | *) |
|
|
13100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
13101 | for as_dir in $PATH |
|
|
13102 | do |
|
|
13103 | IFS=$as_save_IFS |
|
|
13104 | test -z "$as_dir" && as_dir=. |
|
|
13105 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
13106 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
13107 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
13108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
13109 | break 2 |
|
|
13110 | fi |
|
|
13111 | done |
|
|
13112 | done |
|
|
13113 | |
|
|
13114 | ;; |
|
|
13115 | esac |
|
|
13116 | fi |
|
|
13117 | PERL=$ac_cv_path_PERL |
|
|
13118 | |
|
|
13119 | if test -n "$PERL"; then |
|
|
13120 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
13121 | echo "${ECHO_T}$PERL" >&6 |
|
|
13122 | else |
|
|
13123 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
13124 | echo "${ECHO_T}no" >&6 |
|
|
13125 | fi |
|
|
13126 | |
|
|
13127 | # Extract the first word of "perl", so it can be a program name with args. |
|
|
13128 | set dummy perl; ac_word=$2 |
|
|
13129 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
13130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
13131 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
13132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13133 | else |
|
|
13134 | case $PERL in |
|
|
13135 | [\\/]* | ?:[\\/]*) |
|
|
13136 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
13137 | ;; |
|
|
13138 | *) |
|
|
13139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
13140 | for as_dir in $PATH |
|
|
13141 | do |
|
|
13142 | IFS=$as_save_IFS |
|
|
13143 | test -z "$as_dir" && as_dir=. |
|
|
13144 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
13145 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
13146 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
13147 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
13148 | break 2 |
|
|
13149 | fi |
|
|
13150 | done |
|
|
13151 | done |
|
|
13152 | |
|
|
13153 | ;; |
|
|
13154 | esac |
|
|
13155 | fi |
|
|
13156 | PERL=$ac_cv_path_PERL |
|
|
13157 | |
|
|
13158 | if test -n "$PERL"; then |
|
|
13159 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
13160 | echo "${ECHO_T}$PERL" >&6 |
|
|
13161 | else |
|
|
13162 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
13163 | echo "${ECHO_T}no" >&6 |
|
|
13164 | fi |
|
|
13165 | |
|
|
13166 | |
|
|
13167 | echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
|
|
13168 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 |
|
|
13169 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
|
|
13170 | |
|
|
13171 | save_CXXFLAGS="$CXXFLAGS" |
|
|
13172 | save_LIBS="$LIBS" |
|
|
13173 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
|
|
13174 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
|
|
13175 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13176 | /* confdefs.h. */ |
|
|
13177 | _ACEOF |
|
|
13178 | cat confdefs.h >>conftest.$ac_ext |
|
|
13179 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13180 | /* end confdefs.h. */ |
|
|
13181 | |
|
|
13182 | #include <EXTERN.h> |
|
|
13183 | #include <perl.h> |
|
|
13184 | #include <XSUB.h> |
|
|
13185 | |
|
|
13186 | int |
|
|
13187 | main () |
|
|
13188 | { |
|
|
13189 | |
|
|
13190 | PerlInterpreter *perl = perl_alloc (); |
|
|
13191 | |
|
|
13192 | ; |
|
|
13193 | return 0; |
|
|
13194 | } |
|
|
13195 | _ACEOF |
|
|
13196 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13198 | (eval $ac_link) 2>conftest.er1 |
|
|
13199 | ac_status=$? |
|
|
13200 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13201 | rm -f conftest.er1 |
|
|
13202 | cat conftest.err >&5 |
|
|
13203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13204 | (exit $ac_status); } && |
|
|
13205 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
13206 | || test ! -s conftest.err' |
|
|
13207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13208 | (eval $ac_try) 2>&5 |
|
|
13209 | ac_status=$? |
|
|
13210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13211 | (exit $ac_status); }; } && |
|
|
13212 | { ac_try='test -s conftest$ac_exeext' |
|
|
13213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13214 | (eval $ac_try) 2>&5 |
|
|
13215 | ac_status=$? |
|
|
13216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13217 | (exit $ac_status); }; }; then |
|
|
13218 | rxvt_perl_link=yes |
|
|
13219 | else |
|
|
13220 | echo "$as_me: failed program was:" >&5 |
|
|
13221 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13222 | |
|
|
13223 | rxvt_perl_link=no |
|
|
13224 | fi |
|
|
13225 | rm -f conftest.err conftest.$ac_objext \ |
|
|
13226 | conftest$ac_exeext conftest.$ac_ext |
|
|
13227 | CXXFLAGS="$save_CXXFLAGS" |
|
|
13228 | LIBS="$save_LIBS" |
|
|
13229 | |
|
|
13230 | if test x$rxvt_perl_link = xyes; then |
|
|
13231 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
13232 | echo "${ECHO_T}ok" >&6 |
|
|
13233 | |
|
|
13234 | cat >>confdefs.h <<\_ACEOF |
|
|
13235 | #define ENABLE_PERL 1 |
|
|
13236 | _ACEOF |
|
|
13237 | |
|
|
13238 | IF_PERL= |
|
|
13239 | PERL_O=rxvtperl.o |
|
|
13240 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
|
|
13241 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
|
|
13242 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
|
|
13243 | else |
|
|
13244 | { { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
|
|
13245 | echo "$as_me: error: no, unable to link" >&2;} |
|
|
13246 | { (exit 1); exit 1; }; } |
|
|
13247 | fi |
|
|
13248 | else |
|
|
13249 | { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
|
|
13250 | echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
|
|
13251 | { (exit 1); exit 1; }; } |
|
|
13252 | fi |
|
|
13253 | fi |
|
|
13254 | |
|
|
13255 | |
|
|
13256 | |
|
|
13257 | |
|
|
13258 | |
|
|
13259 | |
|
|
13260 | |
|
|
13261 | if test x$support_perl = xyes; then |
|
|
13262 | support_frills=yes |
|
|
13263 | fi |
|
|
13264 | |
|
|
13265 | |
|
|
13266 | |
|
|
13267 | |
|
|
13268 | |
|
|
13269 | |
|
|
13270 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
13271 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
13272 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
13273 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
13274 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
13275 | fi |
|
|
13276 | |
|
|
13277 | |
|
|
13278 | |
|
|
13279 | |
|
|
13280 | |
|
|
13281 | |
|
|
13282 | |
|
|
13283 | test "$program_prefix" != NONE && |
|
|
13284 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
|
|
13285 | # Use a double $ so make ignores it. |
|
|
13286 | test "$program_suffix" != NONE && |
|
|
13287 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
|
|
13288 | # Double any \ or $. echo might interpret backslashes. |
|
|
13289 | # By default was `s,x,x', remove it if useless. |
|
|
13290 | cat <<\_ACEOF >conftest.sed |
|
|
13291 | s/[\\$]/&&/g;s/;s,x,x,$// |
|
|
13292 | _ACEOF |
|
|
13293 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
|
13294 | rm conftest.sed |
|
|
13295 | |
|
|
13296 | |
|
|
13297 | |
|
|
13298 | |
|
|
13299 | |
|
|
13300 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13301 | include_stdint_h="#include <stdint.h>" |
|
|
13302 | else |
|
|
13303 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13304 | fi |
|
|
13305 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13306 | include_stdarg_h="#include <cstdarg>" |
|
|
13307 | else |
|
|
13308 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13309 | fi |
|
|
13310 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13311 | include_stdlib_h="#include <cstdlib>" |
|
|
13312 | else |
|
|
13313 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13314 | fi |
|
|
13315 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13316 | include_unistd_h="#include <unistd.h>" |
|
|
13317 | else |
|
|
13318 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13319 | fi |
|
|
13320 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13321 | include_string_h="#include <cstring>" |
|
|
13322 | else |
|
|
13323 | include_string_h="/* #include <cstring> */" |
|
|
13324 | fi |
|
|
13325 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13326 | include_fcntl_h="#include <fcntl.h>" |
|
|
13327 | else |
|
|
13328 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13329 | fi |
|
|
13330 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13331 | include_util_h="#include <util.h>" |
|
|
13332 | else |
|
|
13333 | include_util_h="/* #include <util.h> */" |
|
|
13334 | fi |
|
|
13335 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13336 | include_assert_h="#include <assert.h>" |
|
|
13337 | else |
|
|
13338 | include_assert_h="/* #include <assert.h> */" |
|
|
13339 | fi |
|
|
13340 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13341 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13342 | else |
|
|
13343 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13344 | fi |
|
|
13345 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13346 | include_sys_select_h="#include <sys/select.h>" |
|
|
13347 | else |
|
|
13348 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13349 | fi |
|
|
13350 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13351 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13352 | else |
|
|
13353 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13354 | fi |
|
|
13355 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13356 | include_sys_time_h="#include <sys/time.h>" |
|
|
13357 | else |
|
|
13358 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13359 | fi |
|
|
13360 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13361 | include_time_h="#include <time.h>" |
|
|
13362 | else |
|
|
13363 | include_time_h="/* #include <time.h> */" |
|
|
13364 | fi |
|
|
13365 | |
16447 | ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" |
13366 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
|
|
13367 | |
16448 | cat >confcache <<\_ACEOF |
13368 | cat >confcache <<\_ACEOF |
16449 | # This file is a shell script that caches the results of configure |
13369 | # This file is a shell script that caches the results of configure |
16450 | # tests run on this system so they can be shared between configure |
13370 | # tests run on this system so they can be shared between configure |
16451 | # scripts and configure runs, see configure's option --config-cache. |
13371 | # scripts and configure runs, see configure's option --config-cache. |
16452 | # It is not useful on other systems. If it contains results you don't |
13372 | # It is not useful on other systems. If it contains results you don't |
… | |
… | |
16968 | cat >>$CONFIG_STATUS <<\_ACEOF |
13888 | cat >>$CONFIG_STATUS <<\_ACEOF |
16969 | for ac_config_target in $ac_config_targets |
13889 | for ac_config_target in $ac_config_targets |
16970 | do |
13890 | do |
16971 | case "$ac_config_target" in |
13891 | case "$ac_config_target" in |
16972 | # Handling of arguments. |
13892 | # Handling of arguments. |
16973 | "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;; |
|
|
16974 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13893 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
16975 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13894 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
16976 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
13895 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
16977 | "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;; |
|
|
16978 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
13896 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
16979 | "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;; |
|
|
16980 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; |
13897 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
16981 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13898 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
16982 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13899 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
16983 | { (exit 1); exit 1; }; };; |
13900 | { (exit 1); exit 1; }; };; |
16984 | esac |
13901 | esac |
16985 | done |
13902 | done |
… | |
… | |
17060 | s,@DEFS@,$DEFS,;t t |
13977 | s,@DEFS@,$DEFS,;t t |
17061 | s,@ECHO_C@,$ECHO_C,;t t |
13978 | s,@ECHO_C@,$ECHO_C,;t t |
17062 | s,@ECHO_N@,$ECHO_N,;t t |
13979 | s,@ECHO_N@,$ECHO_N,;t t |
17063 | s,@ECHO_T@,$ECHO_T,;t t |
13980 | s,@ECHO_T@,$ECHO_T,;t t |
17064 | s,@LIBS@,$LIBS,;t t |
13981 | s,@LIBS@,$LIBS,;t t |
|
|
13982 | s,@build@,$build,;t t |
|
|
13983 | s,@build_cpu@,$build_cpu,;t t |
|
|
13984 | s,@build_vendor@,$build_vendor,;t t |
|
|
13985 | s,@build_os@,$build_os,;t t |
|
|
13986 | s,@host@,$host,;t t |
|
|
13987 | s,@host_cpu@,$host_cpu,;t t |
|
|
13988 | s,@host_vendor@,$host_vendor,;t t |
|
|
13989 | s,@host_os@,$host_os,;t t |
17065 | s,@VERSION@,$VERSION,;t t |
13990 | s,@VERSION@,$VERSION,;t t |
17066 | s,@DATE@,$DATE,;t t |
13991 | s,@DATE@,$DATE,;t t |
17067 | s,@LSMDATE@,$LSMDATE,;t t |
13992 | s,@LSMDATE@,$LSMDATE,;t t |
17068 | s,@LIBVERSION@,$LIBVERSION,;t t |
13993 | s,@LIBVERSION@,$LIBVERSION,;t t |
17069 | s,@CC@,$CC,;t t |
13994 | s,@CC@,$CC,;t t |
… | |
… | |
17078 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
14003 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
17079 | s,@CPP@,$CPP,;t t |
14004 | s,@CPP@,$CPP,;t t |
17080 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
14005 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
17081 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
14006 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
17082 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
14007 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
17083 | s,@AWK@,$AWK,;t t |
|
|
17084 | s,@EGREP@,$EGREP,;t t |
14008 | s,@EGREP@,$EGREP,;t t |
17085 | s,@build@,$build,;t t |
14009 | s,@LINKER@,$LINKER,;t t |
17086 | s,@build_cpu@,$build_cpu,;t t |
14010 | s,@CXXLIB@,$CXXLIB,;t t |
17087 | s,@build_vendor@,$build_vendor,;t t |
|
|
17088 | s,@build_os@,$build_os,;t t |
|
|
17089 | s,@host@,$host,;t t |
|
|
17090 | s,@host_cpu@,$host_cpu,;t t |
|
|
17091 | s,@host_vendor@,$host_vendor,;t t |
|
|
17092 | s,@host_os@,$host_os,;t t |
|
|
17093 | s,@LN_S@,$LN_S,;t t |
|
|
17094 | s,@ECHO@,$ECHO,;t t |
|
|
17095 | s,@RANLIB@,$RANLIB,;t t |
|
|
17096 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
|
17097 | s,@STRIP@,$STRIP,;t t |
|
|
17098 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
|
17099 | s,@LIBTOOL@,$LIBTOOL,;t t |
|
|
17100 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
14011 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
17101 | s,@MV@,$MV,;t t |
14012 | s,@RXVTNAME@,$RXVTNAME,;t t |
17102 | s,@RM@,$RM,;t t |
|
|
17103 | s,@CP@,$CP,;t t |
14013 | s,@TIC@,$TIC,;t t |
17104 | s,@LN@,$LN,;t t |
|
|
17105 | s,@SED@,$SED,;t t |
|
|
17106 | s,@CMP@,$CMP,;t t |
14014 | s,@CXXCPP@,$CXXCPP,;t t |
17107 | s,@TBL@,$TBL,;t t |
|
|
17108 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
14015 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
17109 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
14016 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
17110 | s,@X_LIBS@,$X_LIBS,;t t |
14017 | s,@X_LIBS@,$X_LIBS,;t t |
17111 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
14018 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
|
|
14019 | s,@afterimage_config@,$afterimage_config,;t t |
17112 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
14020 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
17113 | s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t |
14021 | s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t |
17114 | s,@XPM_LIBS@,$XPM_LIBS,;t t |
14022 | s,@XPM_LIBS@,$XPM_LIBS,;t t |
17115 | s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t |
14023 | s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t |
17116 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
14024 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
17117 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
14025 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
17118 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
14026 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
17119 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
14027 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
17120 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
14028 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
17121 | s,@DEBUG@,$DEBUG,;t t |
14029 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
17122 | s,@DINCLUDE@,$DINCLUDE,;t t |
14030 | s,@XFT_CONFIG@,$XFT_CONFIG,;t t |
|
|
14031 | s,@PERL@,$PERL,;t t |
17123 | s,@DLIB@,$DLIB,;t t |
14032 | s,@PERLLIB@,$PERLLIB,;t t |
17124 | s,@RXVTNAME@,$RXVTNAME,;t t |
14033 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
|
|
14034 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
|
|
14035 | s,@IF_PERL@,$IF_PERL,;t t |
|
|
14036 | s,@PERL_O@,$PERL_O,;t t |
|
|
14037 | s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t |
|
|
14038 | s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t |
17125 | s,@include_stdint_h@,$include_stdint_h,;t t |
14039 | s,@include_stdint_h@,$include_stdint_h,;t t |
17126 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
14040 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
17127 | s,@include_stdlib_h@,$include_stdlib_h,;t t |
14041 | s,@include_stdlib_h@,$include_stdlib_h,;t t |
17128 | s,@include_unistd_h@,$include_unistd_h,;t t |
14042 | s,@include_unistd_h@,$include_unistd_h,;t t |
17129 | s,@include_string_h@,$include_string_h,;t t |
14043 | s,@include_string_h@,$include_string_h,;t t |
… | |
… | |
17135 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
14049 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
17136 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
14050 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
17137 | s,@include_time_h@,$include_time_h,;t t |
14051 | s,@include_time_h@,$include_time_h,;t t |
17138 | s,@LIBOBJS@,$LIBOBJS,;t t |
14052 | s,@LIBOBJS@,$LIBOBJS,;t t |
17139 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
14053 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
17140 | /@MCOMMON@/r $MCOMMON |
|
|
17141 | s,@MCOMMON@,,;t t |
|
|
17142 | CEOF |
14054 | CEOF |
17143 | |
14055 | |
17144 | _ACEOF |
14056 | _ACEOF |
17145 | |
14057 | |
17146 | cat >>$CONFIG_STATUS <<\_ACEOF |
14058 | cat >>$CONFIG_STATUS <<\_ACEOF |
… | |
… | |
17303 | case $INSTALL in |
14215 | case $INSTALL in |
17304 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
14216 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
17305 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
14217 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
17306 | esac |
14218 | esac |
17307 | |
14219 | |
|
|
14220 | if test x"$ac_file" != x-; then |
|
|
14221 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
14222 | echo "$as_me: creating $ac_file" >&6;} |
|
|
14223 | rm -f "$ac_file" |
|
|
14224 | fi |
17308 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14225 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
17309 | # use $as_me), people would be surprised to read: |
14226 | # use $as_me), people would be surprised to read: |
17310 | # /* config.h. Generated by config.status. */ |
14227 | # /* config.h. Generated by config.status. */ |
17311 | if test x"$ac_file" = x-; then |
14228 | if test x"$ac_file" = x-; then |
17312 | configure_input= |
14229 | configure_input= |
… | |
… | |
17341 | echo "$as_me: error: cannot find input file: $f" >&2;} |
14258 | echo "$as_me: error: cannot find input file: $f" >&2;} |
17342 | { (exit 1); exit 1; }; } |
14259 | { (exit 1); exit 1; }; } |
17343 | fi;; |
14260 | fi;; |
17344 | esac |
14261 | esac |
17345 | done` || { (exit 1); exit 1; } |
14262 | done` || { (exit 1); exit 1; } |
17346 | |
|
|
17347 | if test x"$ac_file" != x-; then |
|
|
17348 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
17349 | echo "$as_me: creating $ac_file" >&6;} |
|
|
17350 | rm -f "$ac_file" |
|
|
17351 | fi |
|
|
17352 | _ACEOF |
14263 | _ACEOF |
17353 | cat >>$CONFIG_STATUS <<_ACEOF |
14264 | cat >>$CONFIG_STATUS <<_ACEOF |
17354 | sed "$ac_vpsub |
14265 | sed "$ac_vpsub |
17355 | $extrasub |
14266 | $extrasub |
17356 | _ACEOF |
14267 | _ACEOF |
… | |
… | |
17635 | echo "Configuration: |
14546 | echo "Configuration: |
17636 | |
14547 | |
17637 | Rxvt version: $VERSION : $DATE |
14548 | Rxvt version: $VERSION : $DATE |
17638 | Source code location: $srcdir |
14549 | Source code location: $srcdir |
17639 | Install path: ${prefix}/bin |
14550 | Install path: ${prefix}/bin |
17640 | Compiler: $CC |
14551 | Compiler: $CXX |
17641 | Compiler flags: $CFLAGS" |
14552 | Compiler flags: $CXXFLAGS |
17642 | |
14553 | Linker: $LINKER" |
17643 | if test "$MALLOC_TYPE" = S; then |
|
|
17644 | echo " malloc support: system default" |
|
|
17645 | fi |
|
|
17646 | if test "$MALLOC_TYPE" = G; then |
|
|
17647 | echo " malloc support: Gray Watson's dmalloc" |
|
|
17648 | fi |
|
|
17649 | if test "$MALLOC_TYPE" = D; then |
|
|
17650 | echo " malloc support: Doug Lea's malloc" |
|
|
17651 | fi |
|
|
17652 | |
14554 | |
17653 | if test x$support_xpm = xyes; then |
14555 | if test x$support_xpm = xyes; then |
17654 | echo " Xpm library: $XPM_LIBS" |
14556 | echo " Xpm library: $XPM_LIBS" |
17655 | fi |
14557 | fi |
17656 | |
14558 | |
17657 | echo " |
14559 | if test x$support_afterimage = xyes; then |
17658 | The following are set in config.h |
14560 | echo " AfterImage support: yes" |
17659 | " |
14561 | fi |
17660 | echo " pty/tty type: "$rxvt_cv_ptys |
14562 | |
17661 | if test x$support_utmp != xyes; then |
14563 | if test x$support_afterstep = xyes; then |
17662 | echo " utmp support: disabled |
14564 | echo " AfterStep integration: yes" |
17663 | " |
|
|
17664 | else |
|
|
17665 | echo " utmp support: enabled |
|
|
17666 | utmp file: $rxvt_cv_path_utmp |
|
|
17667 | utmpx file: $rxvt_cv_path_utmpx |
|
|
17668 | wtmp file: $rxvt_cv_path_wtmp |
|
|
17669 | wtmpx file: $rxvt_cv_path_wtmpx |
|
|
17670 | lastlog file: $rxvt_cv_path_lastlog |
|
|
17671 | ttys/ttytab file: $rxvt_cv_path_ttytab |
|
|
17672 | " |
|
|
17673 | fi |
14565 | fi |
|
|
14566 | |
17674 | if test x$term != x; then |
14567 | if test x$term != x; then |
17675 | echo " set TERM to: $term |
14568 | echo " set TERM to: $term" |
17676 | " |
|
|
17677 | fi |
14569 | fi |
17678 | if test x$terminfo != x; then |
14570 | if test x$terminfo != x; then |
17679 | echo " set TERMINFO to: $terminfo |
14571 | echo " set TERMINFO to: $terminfo" |
17680 | " |
|
|
17681 | fi |
14572 | fi |
17682 | if test x$rxvt_cv_ptys = xUNKNOWN; then |
14573 | echo " default resource name: $RESNAME" |
17683 | echo ".----------------------------------------------------------------." |
14574 | echo " resource class: $RESCLASS" |
17684 | echo ". WARNING: could not determine pty/tty type. Do not build until ." |
14575 | if test x$RESFALLBACK != x; then |
17685 | echo ". the appropriate PTYS_ARE_* is defined in config.h ." |
14576 | echo " resource class fallback: $RESFALLBACK" |
17686 | echo ".----------------------------------------------------------------." |
|
|
17687 | fi |
14577 | fi |
|
|
14578 | echo |
|
|
14579 | echo " embedded perl: $support_perl" |
|
|
14580 | echo |
17688 | if test x$support_xpm = xneedsmanualspecification; then |
14581 | if test x$support_xpm = xneedsmanualspecification; then |
17689 | echo ".----------------------------------------------------------------." |
14582 | echo ".----------------------------------------------------------------." |
17690 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14583 | echo ". WARNING: --enable-xpm-background was specified however the ." |
17691 | echo ". XPM includes files and libraries could not be found. ." |
14584 | echo ". XPM includes files and libraries could not be found. ." |
17692 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
14585 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
… | |
… | |
17700 | echo ". WARNING: --enable-xim was specified however the locale support ." |
14593 | echo ". WARNING: --enable-xim was specified however the locale support ." |
17701 | echo ". functions could not be found. ." |
14594 | echo ". functions could not be found. ." |
17702 | echo ". XIM is now being DISABLED! ." |
14595 | echo ". XIM is now being DISABLED! ." |
17703 | echo ".----------------------------------------------------------------." |
14596 | echo ".----------------------------------------------------------------." |
17704 | fi |
14597 | fi |
|
|
14598 | |
17705 | echo " *** Please check src/feature.h for further options *** |
14599 | echo "*** Optionally check src/feature.h for further, rarely used options ***" |
17706 | " |
14600 | echo |
|
|
14601 | |