comparison configure @ 94175:dfdc13740582

* configure.in: Define USE_LUCID/USE_MOTIF in config.h. * lwlib/Makefile.in (TOOLKIT_DEFINES): Remove. * src/Makefile.in (TOOLKIT_DEFINES): Remove. (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 18 Apr 2008 15:48:06 +0000
parents 5b10e5646973
children d462d412f132
comparison
equal deleted inserted replaced
94174:660ccc6b7af1 94175:dfdc13740582
16732 # else 16732 # else
16733 # include <time.h> 16733 # include <time.h>
16734 # endif 16734 # endif
16735 #endif 16735 #endif
16736 16736
16737 #include <limits.h>
16738 #include <stdlib.h> 16737 #include <stdlib.h>
16739 16738
16740 #ifdef HAVE_UNISTD_H 16739 #ifdef HAVE_UNISTD_H
16741 # include <unistd.h> 16740 # include <unistd.h>
16742 #endif 16741 #endif
16881 /* This test makes some buggy mktime implementations loop. 16880 /* This test makes some buggy mktime implementations loop.
16882 Give up after 60 seconds; a mktime slower than that 16881 Give up after 60 seconds; a mktime slower than that
16883 isn't worth using anyway. */ 16882 isn't worth using anyway. */
16884 alarm (60); 16883 alarm (60);
16885 16884
16886 for (;;) 16885 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16887 { 16886 continue;
16888 t = (time_t_max << 1) + 1; 16887 time_t_max--;
16889 if (t <= time_t_max) 16888 if ((time_t) -1 < 0)
16890 break; 16889 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16891 time_t_max = t; 16890 continue;
16892 }
16893 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16894
16895 delta = time_t_max / 997; /* a suitable prime number */ 16891 delta = time_t_max / 997; /* a suitable prime number */
16896 for (i = 0; i < N_STRINGS; i++) 16892 for (i = 0; i < N_STRINGS; i++)
16897 { 16893 {
16898 if (tz_strings[i]) 16894 if (tz_strings[i])
16899 putenv (tz_strings[i]); 16895 putenv (tz_strings[i]);
16904 if (! (mktime_test ((time_t) 1) 16900 if (! (mktime_test ((time_t) 1)
16905 && mktime_test ((time_t) (60 * 60)) 16901 && mktime_test ((time_t) (60 * 60))
16906 && mktime_test ((time_t) (60 * 60 * 24)))) 16902 && mktime_test ((time_t) (60 * 60 * 24))))
16907 return 1; 16903 return 1;
16908 16904
16909 for (j = 1; ; j <<= 1) 16905 for (j = 1; 0 < j; j *= 2)
16910 if (! bigtime_test (j)) 16906 if (! bigtime_test (j))
16911 return 1; 16907 return 1;
16912 else if (INT_MAX / 2 < j) 16908 if (! bigtime_test (j - 1))
16913 break;
16914 if (! bigtime_test (INT_MAX))
16915 return 1; 16909 return 1;
16916 } 16910 }
16917 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 16911 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16918 } 16912 }
16919 _ACEOF 16913 _ACEOF
18818 /* confdefs.h. */ 18812 /* confdefs.h. */
18819 _ACEOF 18813 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext 18814 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF 18815 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */ 18816 /* end confdefs.h. */
18823 #include <sys/types.h> /* for off_t */ 18817 #include <stdio.h>
18824 #include <stdio.h>
18825 int 18818 int
18826 main () 18819 main ()
18827 { 18820 {
18828 int (*fp) (FILE *, off_t, int) = fseeko; 18821 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18829 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18830 ; 18822 ;
18831 return 0; 18823 return 0;
18832 } 18824 }
18833 _ACEOF 18825 _ACEOF
18834 rm -f conftest.$ac_objext conftest$ac_exeext 18826 rm -f conftest.$ac_objext conftest$ac_exeext
18864 _ACEOF 18856 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext 18857 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF 18858 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */ 18859 /* end confdefs.h. */
18868 #define _LARGEFILE_SOURCE 1 18860 #define _LARGEFILE_SOURCE 1
18869 #include <sys/types.h> /* for off_t */ 18861 #include <stdio.h>
18870 #include <stdio.h>
18871 int 18862 int
18872 main () 18863 main ()
18873 { 18864 {
18874 int (*fp) (FILE *, off_t, int) = fseeko; 18865 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18875 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18876 ; 18866 ;
18877 return 0; 18867 return 0;
18878 } 18868 }
18879 _ACEOF 18869 _ACEOF
18880 rm -f conftest.$ac_objext conftest$ac_exeext 18870 rm -f conftest.$ac_objext conftest$ac_exeext
24060 24050
24061 cat >>confdefs.h <<\_ACEOF 24051 cat >>confdefs.h <<\_ACEOF
24062 #define USE_X_TOOLKIT 1 24052 #define USE_X_TOOLKIT 1
24063 _ACEOF 24053 _ACEOF
24064 24054
24055 if test "${USE_X_TOOLKIT}" == "LUCID"; then
24056
24057 cat >>confdefs.h <<\_ACEOF
24058 #define USE_LUCID 1
24059 _ACEOF
24060
24061 elif test "${USE_X_TOOLKIT}" == "MOTIF"; then
24062
24063 cat >>confdefs.h <<\_ACEOF
24064 #define USE_MOTIF 1
24065 _ACEOF
24066
24067 fi
24065 fi 24068 fi
24066 if test "${HAVE_X11}" = "yes" ; then 24069 if test "${HAVE_X11}" = "yes" ; then
24067 24070
24068 cat >>confdefs.h <<\_ACEOF 24071 cat >>confdefs.h <<\_ACEOF
24069 #define HAVE_X11 1 24072 #define HAVE_X11 1