comparison configure @ 2553:b880fa9b5d8a

[xemacs-hg @ 2005-02-03 17:33:50 by james] Fix the C++ build the rest of the way. See xemacs-patches message with ID <ps4qgteel0.fsf@diannao.ittc.ku.edu>.
author james
date Thu, 03 Feb 2005 17:34:03 +0000
parents 902d5bd9b75c
children d96db265d893
comparison
equal deleted inserted replaced
2552:166ed8151e62 2553:b880fa9b5d8a
2978 sol2 ) cflags_warning="-v" ;; 2978 sol2 ) cflags_warning="-v" ;;
2979 esac 2979 esac
2980 elif test "$CC" = "xlc"; then 2980 elif test "$CC" = "xlc"; then
2981 cflags_warning="-qinfo" 2981 cflags_warning="-qinfo"
2982 elif test "$GCC" = "yes"; then 2982 elif test "$GCC" = "yes"; then
2983 cflags_warning="-Wall -Wno-switch -Wmissing-prototypes" 2983 cflags_warning="-Wall -Wno-switch -Wundef"
2984 2984
2985 cflags_warning="$cflags_warning -Wsign-compare -Wno-char-subscripts" 2985 cflags_warning="$cflags_warning -Wsign-compare -Wno-char-subscripts"
2986 cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes"
2987 test "$__GCC3" = "yes" && cflags_warning="$cflags_warning -Wpacked" 2986 test "$__GCC3" = "yes" && cflags_warning="$cflags_warning -Wpacked"
2988 test "$have_glibc" != "yes" && \ 2987 test "$have_glibc" != "yes" && \
2989 cflags_warning="$cflags_warning -Wpointer-arith" 2988 cflags_warning="$cflags_warning -Wpointer-arith"
2990 if test "$xemacs_compiler" = "g++"; then 2989 if test "$xemacs_compiler" = "g++"; then
2991 xe_cflags_warning="$cflags_warning -Weffc++" 2990 xe_cflags_warning="$cflags_warning -Weffc++"
2992 elif test "$__GCC3" = "yes"; then 2991 elif test "$__GCC3" = "yes"; then
2993 xe_cflags_warning="$cflags_warning -Wunused-parameter" 2992 xe_cflags_warning="$cflags_warning -Wunused-parameter"
2994 fi 2993 fi
2995 cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations" 2994 cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations"
2995 cflags_warning="$cflags_warning -Wmissing-prototypes -Wstrict-prototypes"
2996 elif test "$__ICC" = "yes"; then 2996 elif test "$__ICC" = "yes"; then
2997 cflags_warning="-Wall -w1 -we147" 2997 cflags_warning="-Wall -w1 -we147"
2998 fi 2998 fi
2999 fi 2999 fi
3000 test -z "$xe_cflags_warning" && xe_cflags_warning="$cflags_warning" 3000 test -z "$xe_cflags_warning" && xe_cflags_warning="$cflags_warning"
4851 4851
4852 cat > conftest.$ac_ext <<EOF 4852 cat > conftest.$ac_ext <<EOF
4853 #line 4854 "configure" 4853 #line 4854 "configure"
4854 #include "confdefs.h" 4854 #include "confdefs.h"
4855 #include <stdio.h> 4855 #include <stdio.h>
4856 main() 4856 int main()
4857 { 4857 {
4858 FILE *f=fopen("conftestval", "w"); 4858 FILE *f=fopen("conftestval", "w");
4859 if (!f) exit(1); 4859 if (!f) return(1);
4860 fprintf(f, "%d\n", sizeof(short)); 4860 fprintf(f, "%d\n", sizeof(short));
4861 exit(0); 4861 return(0);
4862 } 4862 }
4863 EOF 4863 EOF
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4865 then 4865 then
4866 ac_cv_sizeof_short=`cat conftestval` 4866 ac_cv_sizeof_short=`cat conftestval`
4893 4893
4894 cat > conftest.$ac_ext <<EOF 4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure" 4895 #line 4896 "configure"
4896 #include "confdefs.h" 4896 #include "confdefs.h"
4897 #include <stdio.h> 4897 #include <stdio.h>
4898 main() 4898 int main()
4899 { 4899 {
4900 FILE *f=fopen("conftestval", "w"); 4900 FILE *f=fopen("conftestval", "w");
4901 if (!f) exit(1); 4901 if (!f) return(1);
4902 fprintf(f, "%d\n", sizeof(int)); 4902 fprintf(f, "%d\n", sizeof(int));
4903 exit(0); 4903 return(0);
4904 } 4904 }
4905 EOF 4905 EOF
4906 if { (eval echo configure:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4906 if { (eval echo configure:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4907 then 4907 then
4908 ac_cv_sizeof_int=`cat conftestval` 4908 ac_cv_sizeof_int=`cat conftestval`
4929 4929
4930 cat > conftest.$ac_ext <<EOF 4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure" 4931 #line 4932 "configure"
4932 #include "confdefs.h" 4932 #include "confdefs.h"
4933 #include <stdio.h> 4933 #include <stdio.h>
4934 main() 4934 int main()
4935 { 4935 {
4936 FILE *f=fopen("conftestval", "w"); 4936 FILE *f=fopen("conftestval", "w");
4937 if (!f) exit(1); 4937 if (!f) return(1);
4938 fprintf(f, "%d\n", sizeof(long)); 4938 fprintf(f, "%d\n", sizeof(long));
4939 exit(0); 4939 return(0);
4940 } 4940 }
4941 EOF 4941 EOF
4942 if { (eval echo configure:4943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4942 if { (eval echo configure:4943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4943 then 4943 then
4944 ac_cv_sizeof_long=`cat conftestval` 4944 ac_cv_sizeof_long=`cat conftestval`
4965 4965
4966 cat > conftest.$ac_ext <<EOF 4966 cat > conftest.$ac_ext <<EOF
4967 #line 4968 "configure" 4967 #line 4968 "configure"
4968 #include "confdefs.h" 4968 #include "confdefs.h"
4969 #include <stdio.h> 4969 #include <stdio.h>
4970 main() 4970 int main()
4971 { 4971 {
4972 FILE *f=fopen("conftestval", "w"); 4972 FILE *f=fopen("conftestval", "w");
4973 if (!f) exit(1); 4973 if (!f) return(1);
4974 fprintf(f, "%d\n", sizeof(long long)); 4974 fprintf(f, "%d\n", sizeof(long long));
4975 exit(0); 4975 return(0);
4976 } 4976 }
4977 EOF 4977 EOF
4978 if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4978 if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4979 then 4979 then
4980 ac_cv_sizeof_long_long=`cat conftestval` 4980 ac_cv_sizeof_long_long=`cat conftestval`
5001 5001
5002 cat > conftest.$ac_ext <<EOF 5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure" 5003 #line 5004 "configure"
5004 #include "confdefs.h" 5004 #include "confdefs.h"
5005 #include <stdio.h> 5005 #include <stdio.h>
5006 main() 5006 int main()
5007 { 5007 {
5008 FILE *f=fopen("conftestval", "w"); 5008 FILE *f=fopen("conftestval", "w");
5009 if (!f) exit(1); 5009 if (!f) return(1);
5010 fprintf(f, "%d\n", sizeof(void *)); 5010 fprintf(f, "%d\n", sizeof(void *));
5011 exit(0); 5011 return(0);
5012 } 5012 }
5013 EOF 5013 EOF
5014 if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5014 if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5015 then 5015 then
5016 ac_cv_sizeof_void_p=`cat conftestval` 5016 ac_cv_sizeof_void_p=`cat conftestval`
5037 5037
5038 cat > conftest.$ac_ext <<EOF 5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure" 5039 #line 5040 "configure"
5040 #include "confdefs.h" 5040 #include "confdefs.h"
5041 #include <stdio.h> 5041 #include <stdio.h>
5042 main() 5042 int main()
5043 { 5043 {
5044 FILE *f=fopen("conftestval", "w"); 5044 FILE *f=fopen("conftestval", "w");
5045 if (!f) exit(1); 5045 if (!f) return(1);
5046 fprintf(f, "%d\n", sizeof(double)); 5046 fprintf(f, "%d\n", sizeof(double));
5047 exit(0); 5047 return(0);
5048 } 5048 }
5049 EOF 5049 EOF
5050 if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5050 if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5051 then 5051 then
5052 ac_cv_sizeof_double=`cat conftestval` 5052 ac_cv_sizeof_double=`cat conftestval`