comparison configure @ 430:a5df635868b2 r21-2-23

Import from CVS: tag r21-2-23
author cvs
date Mon, 13 Aug 2007 11:29:08 +0200
parents 43177a4f3daf
children 3a7e78e1142d
comparison
equal deleted inserted replaced
429:8305706cbb93 430:a5df635868b2
7764 EOF 7764 EOF
7765 } 7765 }
7766 7766
7767 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi 7767 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
7768 if test "$have_xaw3d"; then 7768 if test "$have_xaw3d"; then
7769 libs_x="-lXaw3d $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw3d\" to \$libs_x"; fi 7769 libs_x="-lXaw3d $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw3d\" to \$libs_x"; fi
7770 else 7770 else
7771 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi 7771 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi
7772 fi ;; 7772 fi ;;
7773 *athena* ) 7773 *athena* )
7774 { test "$extra_verbose" = "yes" && cat << \EOF 7774 { test "$extra_verbose" = "yes" && cat << \EOF
11840 } 11840 }
11841 11841
11842 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 11842 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11843 fi 11843 fi
11844 11844
11845 for ac_hdr in dlfcn.h 11845 if test "$with_modules" != "no"; then
11846 do 11846 echo "checking for module support" 1>&6
11847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11847 echo "configure:11848: checking for module support" >&5
11848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11848
11849 echo "configure:11850: checking for $ac_hdr" >&5 11849 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
11850 11850 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
11851 cat > conftest.$ac_ext <<EOF 11851 echo "configure:11852: checking for dlfcn.h" >&5
11852 #line 11853 "configure" 11852
11853 #include "confdefs.h" 11853 cat > conftest.$ac_ext <<EOF
11854 #include <$ac_hdr> 11854 #line 11855 "configure"
11855 #include "confdefs.h"
11856 #include <dlfcn.h>
11855 EOF 11857 EOF
11856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11857 { (eval echo configure:11858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11859 { (eval echo configure:11860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11859 if test -z "$ac_err"; then 11861 if test -z "$ac_err"; then
11860 rm -rf conftest* 11862 rm -rf conftest*
11861 eval "ac_cv_header_$ac_safe=yes" 11863 eval "ac_cv_header_$ac_safe=yes"
11862 else 11864 else
11867 eval "ac_cv_header_$ac_safe=no" 11869 eval "ac_cv_header_$ac_safe=no"
11868 fi 11870 fi
11869 rm -f conftest* 11871 rm -f conftest*
11870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11871 echo "$ac_t""yes" 1>&6 11873 echo "$ac_t""yes" 1>&6
11872 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 11874
11873 { test "$extra_verbose" = "yes" && cat << EOF 11875
11874 Defining $ac_tr_hdr
11875 EOF
11876 cat >> confdefs.h <<EOF
11877 #define $ac_tr_hdr 1
11878 EOF
11879 }
11880 have_dlfcn=yes
11881 { test "$extra_verbose" = "yes" && cat << \EOF
11882 Defining HAVE_DLFCN_H
11883 EOF
11884 cat >> confdefs.h <<\EOF
11885 #define HAVE_DLFCN_H 1
11886 EOF
11887 }
11888
11889 else
11890 echo "$ac_t""no" 1>&6
11891 fi
11892 done
11893
11894 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11895 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11876 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11896 echo "configure:11897: checking for dlopen in -ldl" >&5 11877 echo "configure:11878: checking for dlopen in -ldl" >&5
11897 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11878 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11898 11879
11899 xe_check_libs=" -ldl " 11880 xe_check_libs=" -ldl "
11900 cat > conftest.$ac_ext <<EOF 11881 cat > conftest.$ac_ext <<EOF
11901 #line 11902 "configure" 11882 #line 11883 "configure"
11902 #include "confdefs.h" 11883 #include "confdefs.h"
11903 /* Override any gcc2 internal prototype to avoid an error. */ 11884 /* Override any gcc2 internal prototype to avoid an error. */
11904 /* We use char because int might match the return type of a gcc2 11885 /* We use char because int might match the return type of a gcc2
11905 builtin and then its argument prototype would still apply. */ 11886 builtin and then its argument prototype would still apply. */
11906 char dlopen(); 11887 char dlopen();
11907 11888
11908 int main() { 11889 int main() {
11909 dlopen() 11890 dlopen()
11910 ; return 0; } 11891 ; return 0; }
11911 EOF 11892 EOF
11912 if { (eval echo configure:11913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11893 if { (eval echo configure:11894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11913 rm -rf conftest* 11894 rm -rf conftest*
11914 eval "ac_cv_lib_$ac_lib_var=yes" 11895 eval "ac_cv_lib_$ac_lib_var=yes"
11915 else 11896 else
11916 echo "configure: failed program was:" >&5 11897 echo "configure: failed program was:" >&5
11917 cat conftest.$ac_ext >&5 11898 cat conftest.$ac_ext >&5
11921 rm -f conftest* 11902 rm -f conftest*
11922 xe_check_libs="" 11903 xe_check_libs=""
11923 11904
11924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 11905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11925 echo "$ac_t""yes" 1>&6 11906 echo "$ac_t""yes" 1>&6
11926 { test "$extra_verbose" = "yes" && cat << \EOF 11907 have_dl=yes libdl=dl
11927 Defining HAVE_DLOPEN 11908 else
11928 EOF 11909 echo "$ac_t""no" 1>&6
11929 cat >> confdefs.h <<\EOF 11910
11930 #define HAVE_DLOPEN 1 11911 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11931 EOF 11912 echo "configure:11913: checking for dlopen in -lc" >&5
11932 } 11913 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11933 DLL_LIB=dl; with_modules=yes
11934 else
11935 echo "$ac_t""no" 1>&6
11936 fi
11937
11938 }
11939 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11940 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11941 echo "configure:11942: checking for _dlopen in -lc" >&5
11942 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11943 11914
11944 xe_check_libs=" -lc " 11915 xe_check_libs=" -lc "
11945 cat > conftest.$ac_ext <<EOF 11916 cat > conftest.$ac_ext <<EOF
11946 #line 11947 "configure" 11917 #line 11918 "configure"
11947 #include "confdefs.h"
11948 /* Override any gcc2 internal prototype to avoid an error. */
11949 /* We use char because int might match the return type of a gcc2
11950 builtin and then its argument prototype would still apply. */
11951 char _dlopen();
11952
11953 int main() {
11954 _dlopen()
11955 ; return 0; }
11956 EOF
11957 if { (eval echo configure:11958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11958 rm -rf conftest*
11959 eval "ac_cv_lib_$ac_lib_var=yes"
11960 else
11961 echo "configure: failed program was:" >&5
11962 cat conftest.$ac_ext >&5
11963 rm -rf conftest*
11964 eval "ac_cv_lib_$ac_lib_var=no"
11965 fi
11966 rm -f conftest*
11967 xe_check_libs=""
11968
11969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11970 echo "$ac_t""yes" 1>&6
11971 { test "$extra_verbose" = "yes" && cat << \EOF
11972 Defining HAVE_DLOPEN
11973 EOF
11974 cat >> confdefs.h <<\EOF
11975 #define HAVE_DLOPEN 1
11976 EOF
11977 }
11978 DLL_LIB=; with_modules=yes
11979 else
11980 echo "$ac_t""no" 1>&6
11981 fi
11982
11983 }
11984 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11985 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11986 echo "configure:11987: checking for dlopen in -lc" >&5
11987 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11988
11989 xe_check_libs=" -lc "
11990 cat > conftest.$ac_ext <<EOF
11991 #line 11992 "configure"
11992 #include "confdefs.h" 11918 #include "confdefs.h"
11993 /* Override any gcc2 internal prototype to avoid an error. */ 11919 /* Override any gcc2 internal prototype to avoid an error. */
11994 /* We use char because int might match the return type of a gcc2 11920 /* We use char because int might match the return type of a gcc2
11995 builtin and then its argument prototype would still apply. */ 11921 builtin and then its argument prototype would still apply. */
11996 char dlopen(); 11922 char dlopen();
11997 11923
11998 int main() { 11924 int main() {
11999 dlopen() 11925 dlopen()
12000 ; return 0; } 11926 ; return 0; }
12001 EOF 11927 EOF
12002 if { (eval echo configure:12003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11928 if { (eval echo configure:11929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12003 rm -rf conftest* 11929 rm -rf conftest*
12004 eval "ac_cv_lib_$ac_lib_var=yes" 11930 eval "ac_cv_lib_$ac_lib_var=yes"
12005 else 11931 else
12006 echo "configure: failed program was:" >&5 11932 echo "configure: failed program was:" >&5
12007 cat conftest.$ac_ext >&5 11933 cat conftest.$ac_ext >&5
12011 rm -f conftest* 11937 rm -f conftest*
12012 xe_check_libs="" 11938 xe_check_libs=""
12013 11939
12014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 11940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12015 echo "$ac_t""yes" 1>&6 11941 echo "$ac_t""yes" 1>&6
12016 { test "$extra_verbose" = "yes" && cat << \EOF 11942 have_dl=yes
11943 else
11944 echo "$ac_t""no" 1>&6
11945 fi
11946
11947
11948 fi
11949
11950
11951 else
11952 echo "$ac_t""no" 1>&6
11953 fi
11954
11955 if test -n "$have_dl"; then
11956 { test "$extra_verbose" = "yes" && cat << \EOF
12017 Defining HAVE_DLOPEN 11957 Defining HAVE_DLOPEN
12018 EOF 11958 EOF
12019 cat >> confdefs.h <<\EOF 11959 cat >> confdefs.h <<\EOF
12020 #define HAVE_DLOPEN 1 11960 #define HAVE_DLOPEN 1
12021 EOF 11961 EOF
12022 } 11962 }
12023 DLL_LIB=; with_modules=yes 11963
12024 else 11964 else
12025 echo "$ac_t""no" 1>&6 11965
12026 fi
12027
12028 }
12029 test -z "$with_modules" && {
12030 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11966 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12031 echo "configure:12032: checking for shl_load in -ldld" >&5 11967 echo "configure:11968: checking for shl_load in -ldld" >&5
12032 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11968 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12033 11969
12034 xe_check_libs=" -ldld " 11970 xe_check_libs=" -ldld "
12035 cat > conftest.$ac_ext <<EOF 11971 cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure" 11972 #line 11973 "configure"
12037 #include "confdefs.h" 11973 #include "confdefs.h"
12038 /* Override any gcc2 internal prototype to avoid an error. */ 11974 /* Override any gcc2 internal prototype to avoid an error. */
12039 /* We use char because int might match the return type of a gcc2 11975 /* We use char because int might match the return type of a gcc2
12040 builtin and then its argument prototype would still apply. */ 11976 builtin and then its argument prototype would still apply. */
12041 char shl_load(); 11977 char shl_load();
12042 11978
12043 int main() { 11979 int main() {
12044 shl_load() 11980 shl_load()
12045 ; return 0; } 11981 ; return 0; }
12046 EOF 11982 EOF
12047 if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11983 if { (eval echo configure:11984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12048 rm -rf conftest* 11984 rm -rf conftest*
12049 eval "ac_cv_lib_$ac_lib_var=yes" 11985 eval "ac_cv_lib_$ac_lib_var=yes"
12050 else 11986 else
12051 echo "configure: failed program was:" >&5 11987 echo "configure: failed program was:" >&5
12052 cat conftest.$ac_ext >&5 11988 cat conftest.$ac_ext >&5
12056 rm -f conftest* 11992 rm -f conftest*
12057 xe_check_libs="" 11993 xe_check_libs=""
12058 11994
12059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 11995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12060 echo "$ac_t""yes" 1>&6 11996 echo "$ac_t""yes" 1>&6
12061 { test "$extra_verbose" = "yes" && cat << \EOF 11997 libdl=dld have_dl=yes;
11998 { test "$extra_verbose" = "yes" && cat << \EOF
12062 Defining HAVE_SHL_LOAD 11999 Defining HAVE_SHL_LOAD
12063 EOF 12000 EOF
12064 cat >> confdefs.h <<\EOF 12001 cat >> confdefs.h <<\EOF
12065 #define HAVE_SHL_LOAD 1 12002 #define HAVE_SHL_LOAD 1
12066 EOF 12003 EOF
12067 } 12004 }
12068 DLL_LIB=dld; with_modules=yes 12005
12069 else 12006 else
12070 echo "$ac_t""no" 1>&6 12007 echo "$ac_t""no" 1>&6
12071 fi 12008
12072
12073 }
12074 test -z "$with_modules" && {
12075 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 12009 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12076 echo "configure:12077: checking for dld_init in -ldld" >&5 12010 echo "configure:12011: checking for dld_init in -ldld" >&5
12077 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 12011 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12078 12012
12079 xe_check_libs=" -ldld " 12013 xe_check_libs=" -ldld "
12080 cat > conftest.$ac_ext <<EOF 12014 cat > conftest.$ac_ext <<EOF
12081 #line 12082 "configure" 12015 #line 12016 "configure"
12082 #include "confdefs.h" 12016 #include "confdefs.h"
12083 /* Override any gcc2 internal prototype to avoid an error. */ 12017 /* Override any gcc2 internal prototype to avoid an error. */
12084 /* We use char because int might match the return type of a gcc2 12018 /* We use char because int might match the return type of a gcc2
12085 builtin and then its argument prototype would still apply. */ 12019 builtin and then its argument prototype would still apply. */
12086 char dld_init(); 12020 char dld_init();
12087 12021
12088 int main() { 12022 int main() {
12089 dld_init() 12023 dld_init()
12090 ; return 0; } 12024 ; return 0; }
12091 EOF 12025 EOF
12092 if { (eval echo configure:12093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12026 if { (eval echo configure:12027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12093 rm -rf conftest* 12027 rm -rf conftest*
12094 eval "ac_cv_lib_$ac_lib_var=yes" 12028 eval "ac_cv_lib_$ac_lib_var=yes"
12095 else 12029 else
12096 echo "configure: failed program was:" >&5 12030 echo "configure: failed program was:" >&5
12097 cat conftest.$ac_ext >&5 12031 cat conftest.$ac_ext >&5
12101 rm -f conftest* 12035 rm -f conftest*
12102 xe_check_libs="" 12036 xe_check_libs=""
12103 12037
12104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 12038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
12105 echo "$ac_t""yes" 1>&6 12039 echo "$ac_t""yes" 1>&6
12106 { test "$extra_verbose" = "yes" && cat << \EOF 12040 libdl=dld have_dl=yes;
12041 { test "$extra_verbose" = "yes" && cat << \EOF
12107 Defining HAVE_DLD_INIT 12042 Defining HAVE_DLD_INIT
12108 EOF 12043 EOF
12109 cat >> confdefs.h <<\EOF 12044 cat >> confdefs.h <<\EOF
12110 #define HAVE_DLD_INIT 1 12045 #define HAVE_DLD_INIT 1
12111 EOF 12046 EOF
12112 } 12047 }
12113 DLL_LIB=dld; with_modules=yes 12048
12114 else 12049 else
12115 echo "$ac_t""no" 1>&6 12050 echo "$ac_t""no" 1>&6
12116 fi 12051 fi
12117 12052
12118 } 12053
12119 if test "$with_modules" = "yes"; then 12054 fi
12120 12055
12056
12057 fi
12058
12059 if test -n "$have_dl"; then
12060
12121 dll_ld= 12061 dll_ld=
12122 dll_ldflags= 12062 dll_ldflags=
12123 dll_cflags= 12063 dll_cflags=
12124 dll_post= 12064 dll_post=
12125 dll_ldo="-o" 12065 dll_ldo="-o"
12126 ld_dynamic_link_flags= 12066 ld_dynamic_link_flags=
12127 xehost=$canonical 12067 xehost=$canonical
12128 xealias=$internal_configuration 12068 xealias=$internal_configuration
12129 12069
12130 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 12070 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12131 echo "configure:12132: checking how to build dynamic libraries for ${xehost}" >&5 12071 echo "configure:12072: checking how to build dynamic libraries for ${xehost}" >&5
12132 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 12072 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12133 case "$xehost" in 12073 case "$xehost" in
12134 *-*-linux-gnu*) ;; 12074 *-*-linux-gnu*) ;;
12135 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 12075 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12136 esac 12076 esac
12154 # Now see if the compiler is really GCC. 12094 # Now see if the compiler is really GCC.
12155 if test "$GCC" = "yes"; then 12095 if test "$GCC" = "yes"; then
12156 XEGCC=yes 12096 XEGCC=yes
12157 else 12097 else
12158 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 12098 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12159 echo "configure:12160: checking checking whether we are using GNU C" >&5 12099 echo "configure:12100: checking checking whether we are using GNU C" >&5
12160 cat > conftest.$ac_ext <<EOF 12100 cat > conftest.$ac_ext <<EOF
12161 #line 12162 "configure" 12101 #line 12102 "configure"
12162 #include "confdefs.h" 12102 #include "confdefs.h"
12163 12103
12164 #ifdef __GNUC__ 12104 #ifdef __GNUC__
12165 yes; 12105 yes;
12166 #endif 12106 #endif
12178 12118
12179 echo "$ac_t""${XEGCC}" 1>&6 12119 echo "$ac_t""${XEGCC}" 1>&6
12180 fi 12120 fi
12181 12121
12182 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 12122 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12183 echo "configure:12184: checking how to produce PIC code" >&5 12123 echo "configure:12124: checking how to produce PIC code" >&5
12184 wl= 12124 wl=
12185 12125
12186 can_build_shared=yes 12126 can_build_shared=yes
12187 if test "$XEGCC" = yes; then 12127 if test "$XEGCC" = yes; then
12188 wl='-Wl,' 12128 wl='-Wl,'
12206 ;; 12146 ;;
12207 esac 12147 esac
12208 else 12148 else
12209 # PORTME Check for PIC flags for the system compiler. 12149 # PORTME Check for PIC flags for the system compiler.
12210 case "$xehost_os" in 12150 case "$xehost_os" in
12211 hpux9* | hpux10*) 12151 hpux9* | hpux1[0-9]*)
12212 # Is there a better link_static_flag that works with the bundled CC? 12152 # Is there a better link_static_flag that works with the bundled CC?
12213 wl='-Wl,' 12153 wl='-Wl,'
12214 dll_cflags='+Z' 12154 dll_cflags='+Z'
12215 ;; 12155 ;;
12216 12156
12271 if test -n "$dll_cflags"; then 12211 if test -n "$dll_cflags"; then
12272 echo "$ac_t""${dll_cflags}" 1>&6 12212 echo "$ac_t""${dll_cflags}" 1>&6
12273 12213
12274 # Check to make sure the dll_cflags actually works. 12214 # Check to make sure the dll_cflags actually works.
12275 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 12215 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12276 echo "configure:12277: checking if PIC flag ${dll_cflags} really works" >&5 12216 echo "configure:12217: checking if PIC flag ${dll_cflags} really works" >&5
12277 save_CFLAGS="$CFLAGS" 12217 save_CFLAGS="$CFLAGS"
12278 CFLAGS="$CFLAGS $dll_cflags -DPIC" 12218 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12279 cat > conftest.$ac_ext <<EOF 12219 cat > conftest.$ac_ext <<EOF
12280 #line 12281 "configure" 12220 #line 12221 "configure"
12281 #include "confdefs.h" 12221 #include "confdefs.h"
12282 12222
12283 int main() { 12223 int main() {
12284 int x=0; 12224 int x=0;
12285 ; return 0; } 12225 ; return 0; }
12286 EOF 12226 EOF
12287 if { (eval echo configure:12288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12227 if { (eval echo configure:12228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12288 rm -rf conftest* 12228 rm -rf conftest*
12289 12229
12290 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 12230 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12291 # reports no error. So, we need to grep stderr for (Bundled). 12231 # reports no error. So, we need to grep stderr for (Bundled).
12292 if grep '(Bundled)' config.log >/dev/null; then 12232 if grep '(Bundled)' config.log >/dev/null; then
12313 if test "$can_build_shared" = "yes"; then 12253 if test "$can_build_shared" = "yes"; then
12314 cc_produces_so=no 12254 cc_produces_so=no
12315 xldf= 12255 xldf=
12316 xcldf= 12256 xcldf=
12317 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 12257 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12318 echo "configure:12319: checking if C compiler can produce shared libraries" >&5 12258 echo "configure:12259: checking if C compiler can produce shared libraries" >&5
12319 if test "$XEGCC" = yes; then 12259 if test "$XEGCC" = yes; then
12320 xcldf="-shared" 12260 xcldf="-shared"
12321 xldf="-shared" 12261 xldf="-shared"
12322 else # Not using GCC 12262 else # Not using GCC
12323 case "$xehost_os" in 12263 case "$xehost_os" in
12364 LDFLAGS="$xcldf $LDFLAGS" 12304 LDFLAGS="$xcldf $LDFLAGS"
12365 LIBS= 12305 LIBS=
12366 xe_libs= 12306 xe_libs=
12367 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 12307 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12368 cat > conftest.$ac_ext <<EOF 12308 cat > conftest.$ac_ext <<EOF
12369 #line 12370 "configure" 12309 #line 12310 "configure"
12370 #include "confdefs.h" 12310 #include "confdefs.h"
12371 12311
12372 int main() { 12312 int main() {
12373 int x=0; 12313 int x=0;
12374 ; return 0; } 12314 ; return 0; }
12375 EOF 12315 EOF
12376 if { (eval echo configure:12377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12316 if { (eval echo configure:12317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12377 rm -rf conftest* 12317 rm -rf conftest*
12378 cc_produces_so=yes 12318 cc_produces_so=yes
12379 else 12319 else
12380 echo "configure: failed program was:" >&5 12320 echo "configure: failed program was:" >&5
12381 cat conftest.$ac_ext >&5 12321 cat conftest.$ac_ext >&5
12396 if test -z "$LTLD"; then 12336 if test -z "$LTLD"; then
12397 ac_prog=ld 12337 ac_prog=ld
12398 if test "$XEGCC" = yes; then 12338 if test "$XEGCC" = yes; then
12399 # Check if gcc -print-prog-name=ld gives a path. 12339 # Check if gcc -print-prog-name=ld gives a path.
12400 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 12340 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12401 echo "configure:12402: checking for ld used by GCC" >&5 12341 echo "configure:12342: checking for ld used by GCC" >&5
12402 ac_prog=`($CC -print-prog-name=ld) 2>&5` 12342 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12403 case "$ac_prog" in 12343 case "$ac_prog" in
12404 # Accept absolute paths. 12344 # Accept absolute paths.
12405 /*) 12345 /*)
12406 if test -z "$LTLD"; then 12346 if test -z "$LTLD"; then
12421 with_gnu_ld=unknown 12361 with_gnu_ld=unknown
12422 ;; 12362 ;;
12423 esac 12363 esac
12424 else 12364 else
12425 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 12365 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12426 echo "configure:12427: checking for GNU ld" >&5 12366 echo "configure:12367: checking for GNU ld" >&5
12427 fi 12367 fi
12428 12368
12429 if test -z "$LTLD"; then 12369 if test -z "$LTLD"; then
12430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 12370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12431 for ac_dir in $PATH; do 12371 for ac_dir in $PATH; do
12459 12399
12460 ld_dynamic_link_flags= 12400 ld_dynamic_link_flags=
12461 12401
12462 # Check to see if it really is or isn't GNU ld. 12402 # Check to see if it really is or isn't GNU ld.
12463 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 12403 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12464 echo "configure:12465: checking if the linker is GNU ld" >&5 12404 echo "configure:12405: checking if the linker is GNU ld" >&5
12465 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 12405 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12466 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 12406 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12467 xe_gnu_ld=yes 12407 xe_gnu_ld=yes
12468 else 12408 else
12469 xe_gnu_ld=no 12409 xe_gnu_ld=no
12486 can_build_shared=yes 12426 can_build_shared=yes
12487 else 12427 else
12488 # OK - only NOW do we futz about with ld. 12428 # OK - only NOW do we futz about with ld.
12489 # See if the linker supports building shared libraries. 12429 # See if the linker supports building shared libraries.
12490 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 12430 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12491 echo "configure:12492: checking whether the linker supports shared libraries" >&5 12431 echo "configure:12432: checking whether the linker supports shared libraries" >&5
12492 dll_ld=$CC 12432 dll_ld=$CC
12493 dll_ldflags=$LDFLAGS 12433 dll_ldflags=$LDFLAGS
12494 ld_shlibs=yes 12434 ld_shlibs=yes
12495 can_build_shared=yes 12435 can_build_shared=yes
12496 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 12436 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12682 12622
12683 12623
12684 12624
12685 12625
12686 12626
12627 fi
12628
12687 if test "$can_build_shared" = "yes"; then 12629 if test "$can_build_shared" = "yes"; then
12688 { test "$extra_verbose" = "yes" && cat << \EOF 12630 { test "$extra_verbose" = "yes" && cat << \EOF
12689 Defining HAVE_SHLIB 12631 Defining HAVE_SHLIB
12690 EOF 12632 EOF
12691 cat >> confdefs.h <<\EOF 12633 cat >> confdefs.h <<\EOF
12692 #define HAVE_SHLIB 1 12634 #define HAVE_SHLIB 1
12693 EOF 12635 EOF
12694 } 12636 }
12695 12637
12696 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then 12638 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
12697 echo " xemacs will be linked with \"sysdll.o\"" 12639 echo " xemacs will be linked with \"sysdll.o emodules.o\""
12698 fi
12699 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
12700 echo " xemacs will be linked with \"emodules.o\""
12701 fi 12640 fi
12702 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 12641 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12703 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi 12642 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
12704 for ac_func in dlerror _dlerror 12643 for ac_func in dlerror _dlerror
12705 do 12644 do
12706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12707 echo "configure:12708: checking for $ac_func" >&5 12646 echo "configure:12647: checking for $ac_func" >&5
12708 12647
12709 cat > conftest.$ac_ext <<EOF 12648 cat > conftest.$ac_ext <<EOF
12710 #line 12711 "configure" 12649 #line 12650 "configure"
12711 #include "confdefs.h" 12650 #include "confdefs.h"
12712 /* System header to define __stub macros and hopefully few prototypes, 12651 /* System header to define __stub macros and hopefully few prototypes,
12713 which can conflict with char $ac_func(); below. */ 12652 which can conflict with char $ac_func(); below. */
12714 #include <assert.h> 12653 #include <assert.h>
12715 /* Override any gcc2 internal prototype to avoid an error. */ 12654 /* Override any gcc2 internal prototype to avoid an error. */
12728 $ac_func(); 12667 $ac_func();
12729 #endif 12668 #endif
12730 12669
12731 ; return 0; } 12670 ; return 0; }
12732 EOF 12671 EOF
12733 if { (eval echo configure:12734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12672 if { (eval echo configure:12673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12734 rm -rf conftest* 12673 rm -rf conftest*
12735 eval "ac_cv_func_$ac_func=yes" 12674 eval "ac_cv_func_$ac_func=yes"
12736 else 12675 else
12737 echo "configure: failed program was:" >&5 12676 echo "configure: failed program was:" >&5
12738 cat conftest.$ac_ext >&5 12677 cat conftest.$ac_ext >&5
12755 else 12694 else
12756 echo "$ac_t""no" 1>&6 12695 echo "$ac_t""no" 1>&6
12757 fi 12696 fi
12758 done 12697 done
12759 12698
12699 with_modules=yes
12760 else 12700 else
12761 echo "configure: warning: disabling shared library support" 1>&2 12701 if test "$with_modules" = "yes"; then
12702 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
12703 else
12704 echo "configure: warning: "Module support cannot be provided."" 1>&2
12705 fi
12762 with_modules=no 12706 with_modules=no
12763 fi 12707 fi
12764 fi 12708 fi
12765 12709
12766 cat > conftest.$ac_ext <<EOF 12710 cat > conftest.$ac_ext <<EOF
12767 #line 12768 "configure" 12711 #line 12712 "configure"
12768 #include "confdefs.h" 12712 #include "confdefs.h"
12769 int main(int c,char *v[]){return 0;} 12713 int main(int c,char *v[]){return 0;}
12770 EOF 12714 EOF
12771 if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12715 if { (eval echo configure:12716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12772 then 12716 then
12773 : 12717 :
12774 else 12718 else
12775 conftest_rc="$?" 12719 conftest_rc="$?"
12776 echo "configure: failed program was:" >&5 12720 echo "configure: failed program was:" >&5
13363 xemacs_betaname=".${emacs_beta_version}" 13307 xemacs_betaname=".${emacs_beta_version}"
13364 else 13308 else
13365 xemacs_betaname="-b${emacs_beta_version}" 13309 xemacs_betaname="-b${emacs_beta_version}"
13366 fi 13310 fi
13367 else 13311 else
13368 xemacs_betaname="" 13312 xemacs_betaname=""
13369 fi 13313 fi
13370 13314
13371 ( 13315 (
13372 echo " 13316 echo "
13373 13317
13433 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling." 13377 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
13434 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling." 13378 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
13435 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling." 13379 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
13436 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." 13380 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
13437 test "$with_native_sound" = yes && echo " Compiling in native sound support." 13381 test "$with_native_sound" = yes && echo " Compiling in native sound support."
13438 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support." 13382 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support."
13439 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously." 13383 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
13440 test "$with_esd" = yes && echo " Compiling in support for Enlightened Sound Daemon." 13384 test "$with_esd" = yes && echo " Compiling in support for Enlightened Sound Daemon."
13441 13385
13442 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." 13386 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
13443 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." 13387 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
13500 ;; 13444 ;;
13501 athena ) echo " Using Athena dialog boxes." ;; 13445 athena ) echo " Using Athena dialog boxes." ;;
13502 athena3d ) echo " Using Athena-3d dialog boxes." ;; 13446 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13503 msw ) echo " Using MS-Windows dialog boxes." ;; 13447 msw ) echo " Using MS-Windows dialog boxes." ;;
13504 esac 13448 esac
13505 test "$with_modules" = "yes" && echo " Compiling in DSO module support." 13449 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support."
13506 test "$with_clash_detection" = yes && \ 13450 test "$with_clash_detection" = yes && \
13507 echo " Clash detection will use \"$lockdir\" for locking files." 13451 echo " Clash detection will use \"$lockdir\" for locking files."
13508 echo " movemail will use \"$mail_locking\" for locking mail spool files." 13452 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13509 test "$with_pop" = yes && echo " Using POP for mail access." 13453 test "$with_pop" = yes && echo " Using POP for mail access."
13510 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication." 13454 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13534 13478
13535 13479
13536 for file in $internal_makefile_list; do 13480 for file in $internal_makefile_list; do
13537 test "$file" = src/Makefile.in && \ 13481 test "$file" = src/Makefile.in && \
13538 file="src/Makefile.in:src/Makefile.in.in:src/depend" 13482 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13539 ac_output_files="${ac_output_files+$ac_output_files }$file" 13483 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
13540 done 13484 done
13541 ac_output_files="$ac_output_files src/paths.h lib-src/config.values" 13485 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13542 if test "$with_modules" = "yes"; then 13486 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi
13543 ac_output_files="$ac_output_files lib-src/ellcc.h"
13544 fi
13545 13487
13546 trap '' 1 2 15 13488 trap '' 1 2 15
13547 13489
13548 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 13490 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13549 13491