Mercurial > hg > CbC > CbC_gcc
comparison libssp/configure @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | 77e2b8dfacca |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
604 LIBOBJS | 604 LIBOBJS |
605 toolexeclibdir | 605 toolexeclibdir |
606 toolexecdir | 606 toolexecdir |
607 enable_static | 607 enable_static |
608 enable_shared | 608 enable_shared |
609 lt_host_flags | |
609 OTOOL64 | 610 OTOOL64 |
610 OTOOL | 611 OTOOL |
611 LIPO | 612 LIPO |
612 NMEDIT | 613 NMEDIT |
613 DSYMUTIL | 614 DSYMUTIL |
623 SED | 624 SED |
624 LIBTOOL | 625 LIBTOOL |
625 ssp_have_usable_vsnprintf | 626 ssp_have_usable_vsnprintf |
626 EGREP | 627 EGREP |
627 GREP | 628 GREP |
629 LIBSSP_USE_SYMVER_SUN_FALSE | |
630 LIBSSP_USE_SYMVER_SUN_TRUE | |
631 LIBSSP_USE_SYMVER_GNU_FALSE | |
632 LIBSSP_USE_SYMVER_GNU_TRUE | |
628 LIBSSP_USE_SYMVER_FALSE | 633 LIBSSP_USE_SYMVER_FALSE |
629 LIBSSP_USE_SYMVER_TRUE | 634 LIBSSP_USE_SYMVER_TRUE |
630 CPP | 635 CPP |
631 am__fastdepCC_FALSE | 636 am__fastdepCC_FALSE |
632 am__fastdepCC_TRUE | 637 am__fastdepCC_TRUE |
4091 | 4096 |
4092 fi | 4097 fi |
4093 | 4098 |
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 | 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 |
4095 $as_echo_n "checking whether symbol versioning is supported... " >&6; } | 4100 $as_echo_n "checking whether symbol versioning is supported... " >&6; } |
4096 cat > conftest.map <<EOF | 4101 if test x$gcc_no_link = xyes; then |
4102 # If we cannot link, we cannot build shared libraries, so do not use | |
4103 # symbol versioning. | |
4104 ssp_use_symver=no | |
4105 else | |
4106 save_LDFLAGS="$LDFLAGS" | |
4107 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
4108 cat > conftest.map <<EOF | |
4097 FOO_1.0 { | 4109 FOO_1.0 { |
4098 global: *foo*; bar; local: *; | 4110 global: *foo*; bar; local: *; |
4099 }; | 4111 }; |
4100 EOF | 4112 EOF |
4101 save_LDFLAGS="$LDFLAGS" | |
4102 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
4103 if test x$gcc_no_link = xyes; then | |
4104 # If we cannot link, we cannot build shared libraries, so do not use | |
4105 # symbol versioning. | |
4106 ssp_use_symver=no | |
4107 else | |
4108 if test x$gcc_no_link = xyes; then | 4113 if test x$gcc_no_link = xyes; then |
4109 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | 4114 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
4110 fi | 4115 fi |
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4112 /* end confdefs.h. */ | 4117 /* end confdefs.h. */ |
4118 ; | 4123 ; |
4119 return 0; | 4124 return 0; |
4120 } | 4125 } |
4121 _ACEOF | 4126 _ACEOF |
4122 if ac_fn_c_try_link "$LINENO"; then : | 4127 if ac_fn_c_try_link "$LINENO"; then : |
4123 ssp_use_symver=yes | 4128 ssp_use_symver=gnu |
4124 else | 4129 else |
4125 ssp_use_symver=no | 4130 ssp_use_symver=no |
4126 fi | 4131 fi |
4127 rm -f core conftest.err conftest.$ac_objext \ | 4132 rm -f core conftest.err conftest.$ac_objext \ |
4128 conftest$ac_exeext conftest.$ac_ext | 4133 conftest$ac_exeext conftest.$ac_ext |
4129 fi | 4134 if test x$ssp_use_symver = xno; then |
4130 LDFLAGS="$save_LDFLAGS" | 4135 case "$target_os" in |
4136 solaris2*) | |
4137 LDFLAGS="$save_LDFLAGS" | |
4138 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" | |
4139 # Sun ld cannot handle wildcards and treats all entries as undefined. | |
4140 cat > conftest.map <<EOF | |
4141 FOO_1.0 { | |
4142 global: foo; local: *; | |
4143 }; | |
4144 EOF | |
4145 if test x$gcc_no_link = xyes; then | |
4146 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
4147 fi | |
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4149 /* end confdefs.h. */ | |
4150 int foo; | |
4151 int | |
4152 main () | |
4153 { | |
4154 | |
4155 ; | |
4156 return 0; | |
4157 } | |
4158 _ACEOF | |
4159 if ac_fn_c_try_link "$LINENO"; then : | |
4160 ssp_use_symver=sun | |
4161 else | |
4162 ssp_use_symver=no | |
4163 fi | |
4164 rm -f core conftest.err conftest.$ac_objext \ | |
4165 conftest$ac_exeext conftest.$ac_ext | |
4166 ;; | |
4167 esac | |
4168 fi | |
4169 LDFLAGS="$save_LDFLAGS" | |
4170 fi | |
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5 | 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5 |
4132 $as_echo "$ssp_use_symver" >&6; } | 4172 $as_echo "$ssp_use_symver" >&6; } |
4133 if test "x$ssp_use_symver" = xyes; then | 4173 if test "x$ssp_use_symver" != xno; then |
4134 LIBSSP_USE_SYMVER_TRUE= | 4174 LIBSSP_USE_SYMVER_TRUE= |
4135 LIBSSP_USE_SYMVER_FALSE='#' | 4175 LIBSSP_USE_SYMVER_FALSE='#' |
4136 else | 4176 else |
4137 LIBSSP_USE_SYMVER_TRUE='#' | 4177 LIBSSP_USE_SYMVER_TRUE='#' |
4138 LIBSSP_USE_SYMVER_FALSE= | 4178 LIBSSP_USE_SYMVER_FALSE= |
4179 fi | |
4180 | |
4181 if test "x$ssp_use_symver" = xgnu; then | |
4182 LIBSSP_USE_SYMVER_GNU_TRUE= | |
4183 LIBSSP_USE_SYMVER_GNU_FALSE='#' | |
4184 else | |
4185 LIBSSP_USE_SYMVER_GNU_TRUE='#' | |
4186 LIBSSP_USE_SYMVER_GNU_FALSE= | |
4187 fi | |
4188 | |
4189 if test "x$ssp_use_symver" = xsun; then | |
4190 LIBSSP_USE_SYMVER_SUN_TRUE= | |
4191 LIBSSP_USE_SYMVER_SUN_FALSE='#' | |
4192 else | |
4193 LIBSSP_USE_SYMVER_SUN_TRUE='#' | |
4194 LIBSSP_USE_SYMVER_SUN_FALSE= | |
4139 fi | 4195 fi |
4140 | 4196 |
4141 | 4197 |
4142 | 4198 |
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4421 $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h | 4477 $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h |
4422 | 4478 |
4423 $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h | 4479 $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h |
4424 | 4480 |
4425 else | 4481 else |
4426 for ac_func in mempcpy strncpy strncat | 4482 for ac_func in memmove mempcpy strncpy strncat |
4427 do : | 4483 do : |
4428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 4484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 4485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
4430 eval as_val=\$$as_ac_var | 4486 eval as_val=\$$as_ac_var |
4431 if test "x$as_val" = x""yes; then : | 4487 if test "x$as_val" = x""yes; then : |
8781 | 8837 |
8782 dgux*) | 8838 dgux*) |
8783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 8839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8784 hardcode_libdir_flag_spec='-L$libdir' | 8840 hardcode_libdir_flag_spec='-L$libdir' |
8785 hardcode_shlibpath_var=no | 8841 hardcode_shlibpath_var=no |
8786 ;; | |
8787 | |
8788 freebsd1*) | |
8789 ld_shlibs=no | |
8790 ;; | 8842 ;; |
8791 | 8843 |
8792 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 8844 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8793 # support. Future versions do this automatically, but an explicit c++rt0.o | 8845 # support. Future versions do this automatically, but an explicit c++rt0.o |
8794 # does not break anything, and helps significantly (at the cost of a little | 8846 # does not break anything, and helps significantly (at the cost of a little |
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
9709 soname_spec='${libname}${release}${shared_ext}$major' | 9761 soname_spec='${libname}${release}${shared_ext}$major' |
9710 shlibpath_var=LD_LIBRARY_PATH | 9762 shlibpath_var=LD_LIBRARY_PATH |
9711 ;; | 9763 ;; |
9712 | 9764 |
9713 freebsd1*) | |
9714 dynamic_linker=no | |
9715 ;; | |
9716 | |
9717 freebsd* | dragonfly*) | 9765 freebsd* | dragonfly*) |
9718 # DragonFly does not have aout. When/if they implement a new | 9766 # DragonFly does not have aout. When/if they implement a new |
9719 # versioning mechanism, adjust this. | 9767 # versioning mechanism, adjust this. |
9720 if test -x /usr/bin/objformat; then | 9768 if test -x /usr/bin/objformat; then |
9721 objformat=`/usr/bin/objformat` | 9769 objformat=`/usr/bin/objformat` |
10589 lt_cv_dlopen_self=cross | 10637 lt_cv_dlopen_self=cross |
10590 else | 10638 else |
10591 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 10639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10592 lt_status=$lt_dlunknown | 10640 lt_status=$lt_dlunknown |
10593 cat > conftest.$ac_ext <<_LT_EOF | 10641 cat > conftest.$ac_ext <<_LT_EOF |
10594 #line 10594 "configure" | 10642 #line 10642 "configure" |
10595 #include "confdefs.h" | 10643 #include "confdefs.h" |
10596 | 10644 |
10597 #if HAVE_DLFCN_H | 10645 #if HAVE_DLFCN_H |
10598 #include <dlfcn.h> | 10646 #include <dlfcn.h> |
10599 #endif | 10647 #endif |
10695 lt_cv_dlopen_self_static=cross | 10743 lt_cv_dlopen_self_static=cross |
10696 else | 10744 else |
10697 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 10745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10698 lt_status=$lt_dlunknown | 10746 lt_status=$lt_dlunknown |
10699 cat > conftest.$ac_ext <<_LT_EOF | 10747 cat > conftest.$ac_ext <<_LT_EOF |
10700 #line 10700 "configure" | 10748 #line 10748 "configure" |
10701 #include "confdefs.h" | 10749 #include "confdefs.h" |
10702 | 10750 |
10703 #if HAVE_DLFCN_H | 10751 #if HAVE_DLFCN_H |
10704 #include <dlfcn.h> | 10752 #include <dlfcn.h> |
10705 #endif | 10753 #endif |
10930 | 10978 |
10931 | 10979 |
10932 | 10980 |
10933 | 10981 |
10934 # Only expand once: | 10982 # Only expand once: |
10983 | |
10984 | |
10985 | |
10986 | |
10987 | |
10988 case $host in | |
10989 *-cygwin* | *-mingw*) | |
10990 # 'host' will be top-level target in the case of a target lib, | |
10991 # we must compare to with_cross_host to decide if this is a native | |
10992 # or cross-compiler and select where to install dlls appropriately. | |
10993 if test -n "$with_cross_host" && | |
10994 test x"$with_cross_host" != x"no"; then | |
10995 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
10996 else | |
10997 lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
10998 fi | |
10999 ;; | |
11000 *) | |
11001 lt_host_flags= | |
11002 ;; | |
11003 esac | |
11004 | |
10935 | 11005 |
10936 | 11006 |
10937 | 11007 |
10938 | 11008 |
10939 | 11009 |
11092 as_fn_error "conditional \"am__fastdepCC\" was never defined. | 11162 as_fn_error "conditional \"am__fastdepCC\" was never defined. |
11093 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 11163 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11094 fi | 11164 fi |
11095 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then | 11165 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then |
11096 as_fn_error "conditional \"LIBSSP_USE_SYMVER\" was never defined. | 11166 as_fn_error "conditional \"LIBSSP_USE_SYMVER\" was never defined. |
11167 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11168 fi | |
11169 if test -z "${LIBSSP_USE_SYMVER_GNU_TRUE}" && test -z "${LIBSSP_USE_SYMVER_GNU_FALSE}"; then | |
11170 as_fn_error "conditional \"LIBSSP_USE_SYMVER_GNU\" was never defined. | |
11171 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11172 fi | |
11173 if test -z "${LIBSSP_USE_SYMVER_SUN_TRUE}" && test -z "${LIBSSP_USE_SYMVER_SUN_FALSE}"; then | |
11174 as_fn_error "conditional \"LIBSSP_USE_SYMVER_SUN\" was never defined. | |
11097 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 11175 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11098 fi | 11176 fi |
11099 | 11177 |
11100 : ${CONFIG_STATUS=./config.status} | 11178 : ${CONFIG_STATUS=./config.status} |
11101 ac_write_fail=0 | 11179 ac_write_fail=0 |