Mercurial > hg > CbC > CbC_gcc
comparison zlib/configure @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
600 | 600 |
601 ac_subst_vars='am__EXEEXT_FALSE | 601 ac_subst_vars='am__EXEEXT_FALSE |
602 am__EXEEXT_TRUE | 602 am__EXEEXT_TRUE |
603 LTLIBOBJS | 603 LTLIBOBJS |
604 LIBOBJS | 604 LIBOBJS |
605 PICFLAG | |
605 TARGET_LIBRARY_FALSE | 606 TARGET_LIBRARY_FALSE |
606 TARGET_LIBRARY_TRUE | 607 TARGET_LIBRARY_TRUE |
607 toolexeclibdir | 608 toolexeclibdir |
608 toolexecdir | 609 toolexecdir |
609 target_all | 610 target_all |
627 SED | 628 SED |
628 LIBTOOL | 629 LIBTOOL |
629 am__fastdepCC_FALSE | 630 am__fastdepCC_FALSE |
630 am__fastdepCC_TRUE | 631 am__fastdepCC_TRUE |
631 CCDEPMODE | 632 CCDEPMODE |
633 am__nodep | |
632 AMDEPBACKSLASH | 634 AMDEPBACKSLASH |
633 AMDEP_FALSE | 635 AMDEP_FALSE |
634 AMDEP_TRUE | 636 AMDEP_TRUE |
635 am__quote | 637 am__quote |
636 am__include | 638 am__include |
734 enable_static | 736 enable_static |
735 with_pic | 737 with_pic |
736 enable_fast_install | 738 enable_fast_install |
737 with_gnu_ld | 739 with_gnu_ld |
738 enable_libtool_lock | 740 enable_libtool_lock |
741 enable_host_shared | |
739 ' | 742 ' |
740 ac_precious_vars='build_alias | 743 ac_precious_vars='build_alias |
741 host_alias | 744 host_alias |
742 target_alias | 745 target_alias |
743 CPP | 746 CPP |
1368 --enable-shared[=PKGS] build shared libraries [default=yes] | 1371 --enable-shared[=PKGS] build shared libraries [default=yes] |
1369 --enable-static[=PKGS] build static libraries [default=yes] | 1372 --enable-static[=PKGS] build static libraries [default=yes] |
1370 --enable-fast-install[=PKGS] | 1373 --enable-fast-install[=PKGS] |
1371 optimize for fast installation [default=yes] | 1374 optimize for fast installation [default=yes] |
1372 --disable-libtool-lock avoid locking (might break parallel builds) | 1375 --disable-libtool-lock avoid locking (might break parallel builds) |
1376 --enable-host-shared build host code as shared libraries | |
1373 | 1377 |
1374 Optional Packages: | 1378 Optional Packages: |
1375 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | 1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1376 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | 1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1377 --with-target-subdir=SUBDIR | 1381 --with-target-subdir=SUBDIR |
2821 | 2825 |
2822 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | 2826 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2823 | 2827 |
2824 # We need awk for the "check" target. The system "awk" is bad on | 2828 # We need awk for the "check" target. The system "awk" is bad on |
2825 # some platforms. | 2829 # some platforms. |
2826 # Always define AMTAR for backward compatibility. | 2830 # Always define AMTAR for backward compatibility. Yes, it's still used |
2827 | 2831 # in the wild :-( We should find a proper way to deprecate it ... |
2828 AMTAR=${AMTAR-"${am_missing_run}tar"} | 2832 AMTAR='$${TAR-tar}' |
2829 | 2833 |
2830 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | 2834 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
2831 | 2835 |
2832 | 2836 |
2833 | 2837 |
2834 | 2838 |
2835 | 2839 |
3750 fi | 3754 fi |
3751 | 3755 |
3752 if test "x$enable_dependency_tracking" != xno; then | 3756 if test "x$enable_dependency_tracking" != xno; then |
3753 am_depcomp="$ac_aux_dir/depcomp" | 3757 am_depcomp="$ac_aux_dir/depcomp" |
3754 AMDEPBACKSLASH='\' | 3758 AMDEPBACKSLASH='\' |
3759 am__nodep='_no' | |
3755 fi | 3760 fi |
3756 if test "x$enable_dependency_tracking" != xno; then | 3761 if test "x$enable_dependency_tracking" != xno; then |
3757 AMDEP_TRUE= | 3762 AMDEP_TRUE= |
3758 AMDEP_FALSE='#' | 3763 AMDEP_FALSE='#' |
3759 else | 3764 else |
3774 # We make a subdir and do the tests there. Otherwise we can end up | 3779 # We make a subdir and do the tests there. Otherwise we can end up |
3775 # making bogus files that we don't know about and never remove. For | 3780 # making bogus files that we don't know about and never remove. For |
3776 # instance it was reported that on HP-UX the gcc test will end up | 3781 # instance it was reported that on HP-UX the gcc test will end up |
3777 # making a dummy file named `D' -- because `-MD' means `put the output | 3782 # making a dummy file named `D' -- because `-MD' means `put the output |
3778 # in D'. | 3783 # in D'. |
3784 rm -rf conftest.dir | |
3779 mkdir conftest.dir | 3785 mkdir conftest.dir |
3780 # Copy depcomp to subdir because otherwise we won't find it if we're | 3786 # Copy depcomp to subdir because otherwise we won't find it if we're |
3781 # using a relative directory. | 3787 # using a relative directory. |
3782 cp "$am_depcomp" conftest.dir | 3788 cp "$am_depcomp" conftest.dir |
3783 cd conftest.dir | 3789 cd conftest.dir |
3833 continue | 3839 continue |
3834 else | 3840 else |
3835 break | 3841 break |
3836 fi | 3842 fi |
3837 ;; | 3843 ;; |
3838 msvisualcpp | msvcmsys) | 3844 msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3839 # This compiler won't grok `-c -o', but also, the minuso test has | 3845 # This compiler won't grok `-c -o', but also, the minuso test has |
3840 # not run yet. These depmodes are late enough in the game, and | 3846 # not run yet. These depmodes are late enough in the game, and |
3841 # so weak that their functioning should not be impacted. | 3847 # so weak that their functioning should not be impacted. |
3842 am__obj=conftest.${OBJEXT-o} | 3848 am__obj=conftest.${OBJEXT-o} |
3843 am__minus_obj= | 3849 am__minus_obj= |
5851 fi | 5857 fi |
5852 fi | 5858 fi |
5853 rm -rf conftest* | 5859 rm -rf conftest* |
5854 ;; | 5860 ;; |
5855 | 5861 |
5856 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | 5862 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
5857 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | 5863 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
5858 # Find out which ABI we are using. | 5864 # Find out which ABI we are using. |
5859 echo 'int i;' > conftest.$ac_ext | 5865 echo 'int i;' > conftest.$ac_ext |
5860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 5866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5861 (eval $ac_compile) 2>&5 | 5867 (eval $ac_compile) 2>&5 |
5867 case $host in | 5873 case $host in |
5868 x86_64-*kfreebsd*-gnu) | 5874 x86_64-*kfreebsd*-gnu) |
5869 LD="${LD-ld} -m elf_i386_fbsd" | 5875 LD="${LD-ld} -m elf_i386_fbsd" |
5870 ;; | 5876 ;; |
5871 x86_64-*linux*) | 5877 x86_64-*linux*) |
5872 LD="${LD-ld} -m elf_i386" | 5878 case `/usr/bin/file conftest.o` in |
5879 *x86-64*) | |
5880 LD="${LD-ld} -m elf32_x86_64" | |
5881 ;; | |
5882 *) | |
5883 LD="${LD-ld} -m elf_i386" | |
5884 ;; | |
5885 esac | |
5873 ;; | 5886 ;; |
5874 ppc64-*linux*|powerpc64-*linux*) | 5887 powerpc64le-*linux*) |
5888 LD="${LD-ld} -m elf32lppclinux" | |
5889 ;; | |
5890 powerpc64-*linux*) | |
5875 LD="${LD-ld} -m elf32ppclinux" | 5891 LD="${LD-ld} -m elf32ppclinux" |
5876 ;; | 5892 ;; |
5877 s390x-*linux*) | 5893 s390x-*linux*) |
5878 LD="${LD-ld} -m elf_s390" | 5894 LD="${LD-ld} -m elf_s390" |
5879 ;; | 5895 ;; |
5888 LD="${LD-ld} -m elf_x86_64_fbsd" | 5904 LD="${LD-ld} -m elf_x86_64_fbsd" |
5889 ;; | 5905 ;; |
5890 x86_64-*linux*) | 5906 x86_64-*linux*) |
5891 LD="${LD-ld} -m elf_x86_64" | 5907 LD="${LD-ld} -m elf_x86_64" |
5892 ;; | 5908 ;; |
5893 ppc*-*linux*|powerpc*-*linux*) | 5909 powerpcle-*linux*) |
5910 LD="${LD-ld} -m elf64lppc" | |
5911 ;; | |
5912 powerpc-*linux*) | |
5894 LD="${LD-ld} -m elf64ppc" | 5913 LD="${LD-ld} -m elf64ppc" |
5895 ;; | 5914 ;; |
5896 s390*-*linux*|s390*-*tpf*) | 5915 s390*-*linux*|s390*-*tpf*) |
5897 LD="${LD-ld} -m elf64_s390" | 5916 LD="${LD-ld} -m elf64_s390" |
5898 ;; | 5917 ;; |
6576 # to the OS version, if on x86, and 10.4, the deployment | 6595 # to the OS version, if on x86, and 10.4, the deployment |
6577 # target defaults to 10.4. Don't you love it? | 6596 # target defaults to 10.4. Don't you love it? |
6578 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | 6597 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
6579 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | 6598 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
6580 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 6599 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
6581 10.[012]*) | 6600 10.[012][,.]*) |
6582 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | 6601 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
6583 10.*) | 6602 10.*) |
6584 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 6603 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
6585 esac | 6604 esac |
6586 ;; | 6605 ;; |
7411 # All AIX code is PIC. | 7430 # All AIX code is PIC. |
7412 if test "$host_cpu" = ia64; then | 7431 if test "$host_cpu" = ia64; then |
7413 # AIX 5 now supports IA64 processor | 7432 # AIX 5 now supports IA64 processor |
7414 lt_prog_compiler_static='-Bstatic' | 7433 lt_prog_compiler_static='-Bstatic' |
7415 fi | 7434 fi |
7435 lt_prog_compiler_pic='-fPIC' | |
7416 ;; | 7436 ;; |
7417 | 7437 |
7418 amigaos*) | 7438 amigaos*) |
7419 case $host_cpu in | 7439 case $host_cpu in |
7420 powerpc) | 7440 powerpc) |
8147 esac | 8167 esac |
8148 fi | 8168 fi |
8149 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | 8169 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
8150 && test "$tmp_diet" = no | 8170 && test "$tmp_diet" = no |
8151 then | 8171 then |
8152 tmp_addflag= | 8172 tmp_addflag=' $pic_flag' |
8153 tmp_sharedflag='-shared' | 8173 tmp_sharedflag='-shared' |
8154 case $cc_basename,$host_cpu in | 8174 case $cc_basename,$host_cpu in |
8155 pgcc*) # Portland Group C compiler | 8175 pgcc*) # Portland Group C compiler |
8156 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 8176 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
8157 tmp_addflag=' $pic_flag' | 8177 tmp_addflag=' $pic_flag' |
8329 # Also, AIX nm treats weak defined symbols like other global | 8349 # Also, AIX nm treats weak defined symbols like other global |
8330 # defined symbols, whereas GNU nm marks them as "W". | 8350 # defined symbols, whereas GNU nm marks them as "W". |
8331 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 8351 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
8332 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 8352 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
8333 else | 8353 else |
8334 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 8354 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
8335 fi | 8355 fi |
8336 aix_use_runtimelinking=no | 8356 aix_use_runtimelinking=no |
8337 | 8357 |
8338 # Test if we are trying to use run time linking or normal | 8358 # Test if we are trying to use run time linking or normal |
8339 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 8359 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
8598 hardcode_direct=yes | 8618 hardcode_direct=yes |
8599 hardcode_shlibpath_var=no | 8619 hardcode_shlibpath_var=no |
8600 ;; | 8620 ;; |
8601 | 8621 |
8602 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 8622 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8603 freebsd2*) | 8623 freebsd2.*) |
8604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 8624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8605 hardcode_direct=yes | 8625 hardcode_direct=yes |
8606 hardcode_minus_L=yes | 8626 hardcode_minus_L=yes |
8607 hardcode_shlibpath_var=no | 8627 hardcode_shlibpath_var=no |
8608 ;; | 8628 ;; |
9514 # versioning mechanism, adjust this. | 9534 # versioning mechanism, adjust this. |
9515 if test -x /usr/bin/objformat; then | 9535 if test -x /usr/bin/objformat; then |
9516 objformat=`/usr/bin/objformat` | 9536 objformat=`/usr/bin/objformat` |
9517 else | 9537 else |
9518 case $host_os in | 9538 case $host_os in |
9519 freebsd[123]*) objformat=aout ;; | 9539 freebsd[23].*) objformat=aout ;; |
9520 *) objformat=elf ;; | 9540 *) objformat=elf ;; |
9521 esac | 9541 esac |
9522 fi | 9542 fi |
9523 version_type=freebsd-$objformat | 9543 version_type=freebsd-$objformat |
9524 case $version_type in | 9544 case $version_type in |
9532 need_version=yes | 9552 need_version=yes |
9533 ;; | 9553 ;; |
9534 esac | 9554 esac |
9535 shlibpath_var=LD_LIBRARY_PATH | 9555 shlibpath_var=LD_LIBRARY_PATH |
9536 case $host_os in | 9556 case $host_os in |
9537 freebsd2*) | 9557 freebsd2.*) |
9538 shlibpath_overrides_runpath=yes | 9558 shlibpath_overrides_runpath=yes |
9539 ;; | 9559 ;; |
9540 freebsd3.[01]* | freebsdelf3.[01]*) | 9560 freebsd3.[01]* | freebsdelf3.[01]*) |
9541 shlibpath_overrides_runpath=yes | 9561 shlibpath_overrides_runpath=yes |
9542 hardcode_into_libs=yes | 9562 hardcode_into_libs=yes |
10384 lt_cv_dlopen_self=cross | 10404 lt_cv_dlopen_self=cross |
10385 else | 10405 else |
10386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 10406 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10387 lt_status=$lt_dlunknown | 10407 lt_status=$lt_dlunknown |
10388 cat > conftest.$ac_ext <<_LT_EOF | 10408 cat > conftest.$ac_ext <<_LT_EOF |
10389 #line 10389 "configure" | 10409 #line 10409 "configure" |
10390 #include "confdefs.h" | 10410 #include "confdefs.h" |
10391 | 10411 |
10392 #if HAVE_DLFCN_H | 10412 #if HAVE_DLFCN_H |
10393 #include <dlfcn.h> | 10413 #include <dlfcn.h> |
10394 #endif | 10414 #endif |
10490 lt_cv_dlopen_self_static=cross | 10510 lt_cv_dlopen_self_static=cross |
10491 else | 10511 else |
10492 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 10512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10493 lt_status=$lt_dlunknown | 10513 lt_status=$lt_dlunknown |
10494 cat > conftest.$ac_ext <<_LT_EOF | 10514 cat > conftest.$ac_ext <<_LT_EOF |
10495 #line 10495 "configure" | 10515 #line 10515 "configure" |
10496 #include "confdefs.h" | 10516 #include "confdefs.h" |
10497 | 10517 |
10498 #if HAVE_DLFCN_H | 10518 #if HAVE_DLFCN_H |
10499 #include <dlfcn.h> | 10519 #include <dlfcn.h> |
10500 #endif | 10520 #endif |
11185 if test "${multilib}" = "yes"; then | 11205 if test "${multilib}" = "yes"; then |
11186 multilib_arg="--enable-multilib" | 11206 multilib_arg="--enable-multilib" |
11187 else | 11207 else |
11188 multilib_arg= | 11208 multilib_arg= |
11189 fi | 11209 fi |
11210 | |
11211 # Check whether --enable-host-shared was given. | |
11212 if test "${enable_host_shared+set}" = set; then : | |
11213 enableval=$enable_host_shared; PICFLAG=-fPIC | |
11214 else | |
11215 PICFLAG= | |
11216 fi | |
11217 | |
11218 | |
11190 | 11219 |
11191 ac_config_files="$ac_config_files Makefile" | 11220 ac_config_files="$ac_config_files Makefile" |
11192 | 11221 |
11193 cat >confcache <<\_ACEOF | 11222 cat >confcache <<\_ACEOF |
11194 # This file is a shell script that caches the results of configure | 11223 # This file is a shell script that caches the results of configure |
11921 multi_basedir="$multi_basedir" | 11950 multi_basedir="$multi_basedir" |
11922 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | 11951 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
11923 CC="$CC" | 11952 CC="$CC" |
11924 CXX="$CXX" | 11953 CXX="$CXX" |
11925 GFORTRAN="$GFORTRAN" | 11954 GFORTRAN="$GFORTRAN" |
11926 GCJ="$GCJ" | |
11927 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | 11955 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
11928 | 11956 |
11929 | 11957 |
11930 # The HP-UX ksh and POSIX shell print the target directory to stdout | 11958 # The HP-UX ksh and POSIX shell print the target directory to stdout |
11931 # if CDPATH is set. | 11959 # if CDPATH is set. |