~ubuntu-branches/ubuntu/raring/mesa/raring-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen, Timo Aaltonen, Maarten Lankhorst
  • Date: 2013-04-16 15:35:32 UTC
  • mfrom: (1.7.15)
  • Revision ID: package-import@ubuntu.com-20130416153532-1u9s6vb32cqryh4x
Tags: 9.1.1-0ubuntu1
[ Timo Aaltonen ]
* Merge from unreleased debian git
  - new upstream release (LP: #1112147, #1164093)
* Revert a commit to fix slow blur on intel.
* vbo-fix-crash.diff: Patch from the stable tree that fixes a crasher
  with shared display lists.

[ Maarten Lankhorst ]
* Add some more patches to fix image copy regressions on nouveau.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.69 for Mesa 9.0.3.
 
3
# Generated by GNU Autoconf 2.69 for Mesa 9.1.1.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa>.
6
6
#
198
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
201
test \$(( 1 + 1 )) = 2 || exit 1
201
202
 
202
203
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
204
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205
206
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
207
    PATH=/empty FPATH=/empty; export PATH FPATH
207
208
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
 
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
 
test \$(( 1 + 1 )) = 2 || exit 1"
 
209
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210
210
  if (eval "$as_required") 2>/dev/null; then :
211
211
  as_have_required=yes
212
212
else
591
591
# Identity of this package.
592
592
PACKAGE_NAME='Mesa'
593
593
PACKAGE_TARNAME='mesa'
594
 
PACKAGE_VERSION='9.0.3'
595
 
PACKAGE_STRING='Mesa 9.0.3'
 
594
PACKAGE_VERSION='9.1.1'
 
595
PACKAGE_STRING='Mesa 9.1.1'
596
596
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa'
597
597
PACKAGE_URL=''
598
598
 
636
636
am__EXEEXT_TRUE
637
637
LTLIBOBJS
638
638
LIBOBJS
 
639
XA_VERSION
 
640
XA_TINY
 
641
XA_MINOR
 
642
XA_MAJOR
 
643
XVMC_MINOR
 
644
XVMC_MAJOR
 
645
VDPAU_MINOR
 
646
VDPAU_MAJOR
 
647
CROSS_COMPILING_FALSE
 
648
CROSS_COMPILING_TRUE
639
649
HAVE_SPARC_ASM_FALSE
640
650
HAVE_SPARC_ASM_TRUE
641
651
HAVE_X86_64_ASM_FALSE
644
654
HAVE_X86_ASM_TRUE
645
655
HAVE_X11_DRIVER_FALSE
646
656
HAVE_X11_DRIVER_TRUE
 
657
NEED_LIBPROGRAM_FALSE
 
658
NEED_LIBPROGRAM_TRUE
647
659
GALLIUM_MAKE_DIRS
 
660
LLVM_NEEDS_FNORTTI_FALSE
 
661
LLVM_NEEDS_FNORTTI_TRUE
 
662
HAVE_MESA_LLVM_FALSE
 
663
HAVE_MESA_LLVM_TRUE
648
664
HAVE_GALLIUM_COMPUTE_FALSE
649
665
HAVE_GALLIUM_COMPUTE_TRUE
650
666
HAVE_DRM_LOADER_GALLIUM_FALSE
653
669
HAVE_LOADER_GALLIUM_TRUE
654
670
USE_R600_LLVM_COMPILER_FALSE
655
671
USE_R600_LLVM_COMPILER_TRUE
 
672
R600_NEED_RADEON_GALLIUM_FALSE
 
673
R600_NEED_RADEON_GALLIUM_TRUE
656
674
NEED_RADEON_GALLIUM_FALSE
657
675
NEED_RADEON_GALLIUM_TRUE
658
676
HAVE_NOOP_GALLIUM_FALSE
665
683
GALLIUM_PIPE_LOADER_DEFINES
666
684
GALLIUM_PIPE_LOADER_XCB_LIBS
667
685
GALLIUM_PIPE_LOADER_XCB_CFLAGS
 
686
HAVE_GALLIUM_LLVMPIPE_FALSE
 
687
HAVE_GALLIUM_LLVMPIPE_TRUE
 
688
HAVE_GALLIUM_SOFTPIPE_FALSE
 
689
HAVE_GALLIUM_SOFTPIPE_TRUE
 
690
HAVE_GALLIUM_NOUVEAU_FALSE
 
691
HAVE_GALLIUM_NOUVEAU_TRUE
 
692
HAVE_GALLIUM_RADEONSI_FALSE
 
693
HAVE_GALLIUM_RADEONSI_TRUE
 
694
HAVE_GALLIUM_R600_FALSE
 
695
HAVE_GALLIUM_R600_TRUE
 
696
HAVE_GALLIUM_R300_FALSE
 
697
HAVE_GALLIUM_R300_TRUE
 
698
HAVE_GALLIUM_I915_FALSE
 
699
HAVE_GALLIUM_I915_TRUE
 
700
HAVE_GALLIUM_SVGA_FALSE
 
701
HAVE_GALLIUM_SVGA_TRUE
668
702
OPENCL_LIB_INSTALL_DIR
669
 
VA_LIB_INSTALL_DIR
670
703
VDPAU_LIB_INSTALL_DIR
671
704
XVMC_LIB_INSTALL_DIR
672
705
LLVM_CONFIG
696
729
WAYLAND_CFLAGS
697
730
EGL_CLIENT_APIS
698
731
VG_LIB_DEPS
 
732
HAVE_OPENGL_FALSE
 
733
HAVE_OPENGL_TRUE
699
734
CLANG_RESOURCE_DIR
700
735
LLVM_VERSION
701
736
LLVM_INCLUDEDIR
710
745
HAVE_GALLIUM_TRUE
711
746
LIBCLC_LIBEXECDIR
712
747
LIBCLC_INCLUDEDIR
713
 
LIBVA_LIBS
714
 
LIBVA_CFLAGS
715
748
VDPAU_LIBS
716
749
VDPAU_CFLAGS
717
750
XVMC_LIBS
718
751
XVMC_CFLAGS
 
752
HAVE_OPENVG_FALSE
 
753
HAVE_OPENVG_TRUE
719
754
VG_PC_LIB_PRIV
720
755
XEXT_LIBS
721
756
XEXT_CFLAGS
773
808
GL_PC_LIB_PRIV
774
809
GL_PC_REQ_PRIV
775
810
GL_LIB_DEPS
 
811
X11_INCLUDES
776
812
HAVE_XF86VIDMODE_FALSE
777
813
HAVE_XF86VIDMODE_TRUE
778
814
DRIGL_LIBS
799
835
SRC_DIRS
800
836
HAVE_SHARED_GLAPI_FALSE
801
837
HAVE_SHARED_GLAPI_TRUE
802
 
SHARED_GLAPI
803
838
NEED_LIBMESA_FALSE
804
839
NEED_LIBMESA_TRUE
805
840
HAVE_DRI_FALSE
810
845
PTHREAD_LIBS
811
846
PTHREAD_CC
812
847
ax_pthread_config
 
848
CLOCK_LIB
813
849
DLOPEN_LIBS
814
 
PIC_FLAGS
815
850
MESA_ASM_FILES
816
851
GLAPI_LIB_GLOB
817
852
VG_LIB_GLOB
828
863
GL_LIB_NAME
829
864
OSMESA_LIB
830
865
GL_LIB
831
 
MKLIB_OPTIONS
832
866
BUILD_SHARED_FALSE
833
867
BUILD_SHARED_TRUE
834
868
VISIBILITY_CXXFLAGS
835
869
VISIBILITY_CFLAGS
836
870
DEFINES
 
871
DEFINES_FOR_BUILD
837
872
LIB_DIR
838
873
PKG_CONFIG_LIBDIR
839
874
PKG_CONFIG_PATH
840
875
PKG_CONFIG
841
 
MKDEP_OPTIONS
842
876
POSIX_SHELL
843
877
INDENT_FLAGS
844
878
INDENT
846
880
LEXLIB
847
881
LEX_OUTPUT_ROOT
848
882
LEX
849
 
YACC_INST
850
883
YFLAGS
851
884
YACC
852
 
MKDEP
853
 
PYTHON2
854
 
MAKE
855
 
am__fastdepCCAS_FALSE
856
 
am__fastdepCCAS_TRUE
857
 
CCASDEPMODE
858
 
CCASFLAGS
859
 
CCAS
860
 
CXXCPP
861
 
am__fastdepCXX_FALSE
862
 
am__fastdepCXX_TRUE
863
 
CXXDEPMODE
864
 
ac_ct_CXX
865
 
CXXFLAGS
866
 
CXX
867
 
OSMESA_VERSION
868
 
CPP
869
885
OTOOL64
870
886
OTOOL
871
887
LIPO
883
899
FGREP
884
900
EGREP
885
901
GREP
 
902
LIBTOOL
886
903
SED
887
 
LIBTOOL
 
904
PYTHON2
 
905
MAKE
 
906
am__fastdepCCAS_FALSE
 
907
am__fastdepCCAS_TRUE
 
908
CCASDEPMODE
 
909
CCASFLAGS
 
910
CCAS
 
911
CXXCPPFLAGS_FOR_BUILD
 
912
CXXFLAGS_FOR_BUILD
 
913
CXXCPP_FOR_BUILD
 
914
ac_ct_CXX_FOR_BUILD
 
915
CXX_FOR_BUILD
 
916
CXXCPP
 
917
am__fastdepCXX_FALSE
 
918
am__fastdepCXX_TRUE
 
919
CXXDEPMODE
 
920
ac_ct_CXX
 
921
CXXFLAGS
 
922
CXX
 
923
LDFLAGS_FOR_BUILD
 
924
CPPFLAGS_FOR_BUILD
 
925
CFLAGS_FOR_BUILD
 
926
BUILD_OBJEXT
 
927
BUILD_EXEEXT
 
928
CPP_FOR_BUILD
 
929
ac_ct_CC_FOR_BUILD
 
930
CC_FOR_BUILD
 
931
CPP
 
932
OSMESA_VERSION
888
933
am__fastdepCC_FALSE
889
934
am__fastdepCC_TRUE
890
935
CCDEPMODE
931
976
INSTALL_DATA
932
977
INSTALL_SCRIPT
933
978
INSTALL_PROGRAM
 
979
target_os
 
980
target_vendor
 
981
target_cpu
 
982
target
934
983
host_os
935
984
host_vendor
936
985
host_cpu
997
1046
enable_mangling
998
1047
enable_texture_float
999
1048
enable_asm
1000
 
enable_pic
1001
1049
enable_selinux
1002
1050
enable_opengl
1003
1051
enable_gles1
1009
1057
enable_egl
1010
1058
enable_xorg
1011
1059
enable_xa
1012
 
enable_d3d1x
1013
1060
enable_gbm
1014
1061
enable_xvmc
1015
1062
enable_vdpau
1016
 
enable_va
1017
1063
enable_opencl
1018
1064
enable_xlib_glx
1019
1065
enable_gallium_egl
1042
1088
with_llvm_prefix
1043
1089
with_xvmc_libdir
1044
1090
with_vdpau_libdir
1045
 
with_va_libdir
1046
1091
with_opencl_libdir
1047
1092
'
1048
1093
      ac_precious_vars='build_alias
1065
1110
PKG_CONFIG
1066
1111
PKG_CONFIG_PATH
1067
1112
PKG_CONFIG_LIBDIR
1068
 
MKLIB_OPTIONS
1069
 
PIC_FLAGS
1070
1113
LIBDRM_CFLAGS
1071
1114
LIBDRM_LIBS
1072
1115
X11_CFLAGS
1101
1144
XVMC_LIBS
1102
1145
VDPAU_CFLAGS
1103
1146
VDPAU_LIBS
1104
 
LIBVA_CFLAGS
1105
 
LIBVA_LIBS
1106
1147
WAYLAND_CFLAGS
1107
1148
WAYLAND_LIBS
1108
1149
XCB_DRI2_CFLAGS
1649
1690
  # Omit some internal or obsolete options to make the list less imposing.
1650
1691
  # This message is too long to be a string in the A/UX 3.1 sh.
1651
1692
  cat <<_ACEOF
1652
 
\`configure' configures Mesa 9.0.3 to adapt to many kinds of systems.
 
1693
\`configure' configures Mesa 9.1.1 to adapt to many kinds of systems.
1653
1694
 
1654
1695
Usage: $0 [OPTION]... [VAR=VALUE]...
1655
1696
 
1716
1757
System types:
1717
1758
  --build=BUILD     configure for building on BUILD [guessed]
1718
1759
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1760
  --target=TARGET   configure for building compilers for TARGET [HOST]
1719
1761
_ACEOF
1720
1762
fi
1721
1763
 
1722
1764
if test -n "$ac_init_help"; then
1723
1765
  case $ac_init_help in
1724
 
     short | recursive ) echo "Configuration of Mesa 9.0.3:";;
 
1766
     short | recursive ) echo "Configuration of Mesa 9.1.1:";;
1725
1767
   esac
1726
1768
  cat <<\_ACEOF
1727
1769
 
1729
1771
  --disable-option-checking  ignore unrecognized --enable/--with options
1730
1772
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1731
1773
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1732
 
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1733
 
  --disable-silent-rules         verbose build output (undo: `make V=0')
1734
 
  --disable-dependency-tracking  speeds up one-time build
1735
 
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1774
  --enable-silent-rules   less verbose build output (undo: "make V=1")
 
1775
  --disable-silent-rules  verbose build output (undo: "make V=0")
 
1776
  --enable-dependency-tracking
 
1777
                          do not reject slow dependency extractors
 
1778
  --disable-dependency-tracking
 
1779
                          speeds up one-time build
1736
1780
  --enable-static[=PKGS]  build static libraries [default=no]
1737
1781
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1738
1782
  --enable-fast-install[=PKGS]
1748
1792
                          [default=disabled]
1749
1793
  --disable-asm           disable assembly usage [default=enabled on supported
1750
1794
                          plaforms]
1751
 
  --disable-pic           compile PIC objects [default=enabled for shared
1752
 
                          builds on supported platforms]
1753
1795
  --enable-selinux        Build SELinux-aware Mesa [default=disabled]
1754
1796
  --disable-opengl        disable support for standard OpenGL API [default=no]
1755
1797
  --enable-gles1          enable support for OpenGL ES 1.x API [default=no]
1762
1804
  --enable-xorg           enable support for X.Org DDX API [default=no]
1763
1805
  --enable-xa             enable build of the XA X Acceleration API
1764
1806
                          [default=no]
1765
 
  --enable-d3d1x          enable support for Direct3D 10 & 11 low-level API
1766
 
                          [default=no]
1767
1807
  --enable-gbm            enable gbm library [default=auto]
1768
1808
  --enable-xvmc           enable xvmc library [default=auto]
1769
1809
  --enable-vdpau          enable vdpau library [default=auto]
1770
 
  --enable-va             enable va library [default=auto]
1771
 
  --enable-opencl         enable OpenCL library [default=no]
 
1810
  --enable-opencl         enable OpenCL library NOTE: Enabling this option
 
1811
                          will also enable --with-llvm-shared-libs
 
1812
                          [default=no]
1772
1813
  --enable-xlib-glx       make GLX library Xlib-based instead of DRI-based
1773
1814
                          [default=disabled]
1774
1815
  --enable-gallium-egl    enable optional EGL state tracker (not required for
1781
1822
                          shaders [default=disable]
1782
1823
  --enable-gallium-tests  Enable optional Gallium tests) [default=disable]
1783
1824
  --enable-shared-glapi   Enable shared glapi for OpenGL [default=yes]
1784
 
  --disable-driglx-direct enable direct rendering in GLX and EGL for DRI
 
1825
  --disable-driglx-direct disable direct rendering in GLX and EGL for DRI
1785
1826
                          [default=auto]
1786
1827
  --enable-glx-tls        enable TLS support in GLX [default=disabled]
1787
1828
  --enable-gallium-g3dvl  build gallium g3dvl [default=disabled]
1803
1844
  --with-gallium-drivers[=DIRS...]
1804
1845
                          comma delimited Gallium drivers list, e.g.
1805
1846
                          "i915,nouveau,r300,r600,radeonsi,svga,swrast"
1806
 
                          [default=r300,r600,swrast]
 
1847
                          [default=r300,r600,svga,swrast]
1807
1848
  --with-dri-driverdir=DIR
1808
1849
                          directory for the DRI drivers [${libdir}/dri]
1809
1850
  --with-dri-searchpath=DIRS...
1835
1876
  --with-xvmc-libdir=DIR  directory for the XVMC libraries [default=${libdir}]
1836
1877
  --with-vdpau-libdir=DIR directory for the VDPAU libraries
1837
1878
                          [default=${libdir}/vdpau]
1838
 
  --with-va-libdir=DIR    directory for the VA libraries
1839
 
                          [default=${libdir}/va]
1840
1879
  --with-opencl-libdir=DIR
1841
1880
                          directory for the OpenCL libraries
1842
1881
                          [default=${libdir}/opencl]
1866
1905
              directories to add to pkg-config's search path
1867
1906
  PKG_CONFIG_LIBDIR
1868
1907
              path overriding pkg-config's built-in search path
1869
 
  MKLIB_OPTIONS
1870
 
              Options for the Mesa library script, mklib
1871
 
  PIC_FLAGS   compiler flags for PIC code
1872
1908
  LIBDRM_CFLAGS
1873
1909
              C compiler flags for LIBDRM, overriding pkg-config
1874
1910
  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1923
1959
  VDPAU_CFLAGS
1924
1960
              C compiler flags for VDPAU, overriding pkg-config
1925
1961
  VDPAU_LIBS  linker flags for VDPAU, overriding pkg-config
1926
 
  LIBVA_CFLAGS
1927
 
              C compiler flags for LIBVA, overriding pkg-config
1928
 
  LIBVA_LIBS  linker flags for LIBVA, overriding pkg-config
1929
1962
  WAYLAND_CFLAGS
1930
1963
              C compiler flags for WAYLAND, overriding pkg-config
1931
1964
  WAYLAND_LIBS
2008
2041
test -n "$ac_init_help" && exit $ac_status
2009
2042
if $ac_init_version; then
2010
2043
  cat <<\_ACEOF
2011
 
Mesa configure 9.0.3
 
2044
Mesa configure 9.1.1
2012
2045
generated by GNU Autoconf 2.69
2013
2046
 
2014
2047
Copyright (C) 2012 Free Software Foundation, Inc.
2060
2093
 
2061
2094
} # ac_fn_c_try_compile
2062
2095
 
 
2096
# ac_fn_c_try_cpp LINENO
 
2097
# ----------------------
 
2098
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
2099
ac_fn_c_try_cpp ()
 
2100
{
 
2101
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2102
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
2103
case "(($ac_try" in
 
2104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2105
  *) ac_try_echo=$ac_try;;
 
2106
esac
 
2107
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2108
$as_echo "$ac_try_echo"; } >&5
 
2109
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
2110
  ac_status=$?
 
2111
  if test -s conftest.err; then
 
2112
    grep -v '^ *+' conftest.err >conftest.er1
 
2113
    cat conftest.er1 >&5
 
2114
    mv -f conftest.er1 conftest.err
 
2115
  fi
 
2116
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2117
  test $ac_status = 0; } > conftest.i && {
 
2118
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2119
         test ! -s conftest.err
 
2120
       }; then :
 
2121
  ac_retval=0
 
2122
else
 
2123
  $as_echo "$as_me: failed program was:" >&5
 
2124
sed 's/^/| /' conftest.$ac_ext >&5
 
2125
 
 
2126
    ac_retval=1
 
2127
fi
 
2128
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2129
  as_fn_set_status $ac_retval
 
2130
 
 
2131
} # ac_fn_c_try_cpp
 
2132
 
 
2133
# ac_fn_cxx_try_compile LINENO
 
2134
# ----------------------------
 
2135
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
2136
ac_fn_cxx_try_compile ()
 
2137
{
 
2138
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2139
  rm -f conftest.$ac_objext
 
2140
  if { { ac_try="$ac_compile"
 
2141
case "(($ac_try" in
 
2142
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2143
  *) ac_try_echo=$ac_try;;
 
2144
esac
 
2145
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2146
$as_echo "$ac_try_echo"; } >&5
 
2147
  (eval "$ac_compile") 2>conftest.err
 
2148
  ac_status=$?
 
2149
  if test -s conftest.err; then
 
2150
    grep -v '^ *+' conftest.err >conftest.er1
 
2151
    cat conftest.er1 >&5
 
2152
    mv -f conftest.er1 conftest.err
 
2153
  fi
 
2154
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2155
  test $ac_status = 0; } && {
 
2156
         test -z "$ac_cxx_werror_flag" ||
 
2157
         test ! -s conftest.err
 
2158
       } && test -s conftest.$ac_objext; then :
 
2159
  ac_retval=0
 
2160
else
 
2161
  $as_echo "$as_me: failed program was:" >&5
 
2162
sed 's/^/| /' conftest.$ac_ext >&5
 
2163
 
 
2164
        ac_retval=1
 
2165
fi
 
2166
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2167
  as_fn_set_status $ac_retval
 
2168
 
 
2169
} # ac_fn_cxx_try_compile
 
2170
 
 
2171
# ac_fn_cxx_try_cpp LINENO
 
2172
# ------------------------
 
2173
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
2174
ac_fn_cxx_try_cpp ()
 
2175
{
 
2176
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2177
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
2178
case "(($ac_try" in
 
2179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2180
  *) ac_try_echo=$ac_try;;
 
2181
esac
 
2182
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2183
$as_echo "$ac_try_echo"; } >&5
 
2184
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
2185
  ac_status=$?
 
2186
  if test -s conftest.err; then
 
2187
    grep -v '^ *+' conftest.err >conftest.er1
 
2188
    cat conftest.er1 >&5
 
2189
    mv -f conftest.er1 conftest.err
 
2190
  fi
 
2191
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2192
  test $ac_status = 0; } > conftest.i && {
 
2193
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
2194
         test ! -s conftest.err
 
2195
       }; then :
 
2196
  ac_retval=0
 
2197
else
 
2198
  $as_echo "$as_me: failed program was:" >&5
 
2199
sed 's/^/| /' conftest.$ac_ext >&5
 
2200
 
 
2201
    ac_retval=1
 
2202
fi
 
2203
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2204
  as_fn_set_status $ac_retval
 
2205
 
 
2206
} # ac_fn_cxx_try_cpp
 
2207
 
2063
2208
# ac_fn_c_try_link LINENO
2064
2209
# -----------------------
2065
2210
# Try to link conftest.$ac_ext, and return whether this succeeded.
2137
2282
 
2138
2283
} # ac_fn_c_check_header_compile
2139
2284
 
2140
 
# ac_fn_c_try_cpp LINENO
2141
 
# ----------------------
2142
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2143
 
ac_fn_c_try_cpp ()
2144
 
{
2145
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
2147
 
case "(($ac_try" in
2148
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149
 
  *) ac_try_echo=$ac_try;;
2150
 
esac
2151
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152
 
$as_echo "$ac_try_echo"; } >&5
2153
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2154
 
  ac_status=$?
2155
 
  if test -s conftest.err; then
2156
 
    grep -v '^ *+' conftest.err >conftest.er1
2157
 
    cat conftest.er1 >&5
2158
 
    mv -f conftest.er1 conftest.err
2159
 
  fi
2160
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2161
 
  test $ac_status = 0; } > conftest.i && {
2162
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2163
 
         test ! -s conftest.err
2164
 
       }; then :
2165
 
  ac_retval=0
2166
 
else
2167
 
  $as_echo "$as_me: failed program was:" >&5
2168
 
sed 's/^/| /' conftest.$ac_ext >&5
2169
 
 
2170
 
    ac_retval=1
2171
 
fi
2172
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173
 
  as_fn_set_status $ac_retval
2174
 
 
2175
 
} # ac_fn_c_try_cpp
2176
 
 
2177
2285
# ac_fn_c_try_run LINENO
2178
2286
# ----------------------
2179
2287
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2283
2391
 
2284
2392
} # ac_fn_c_check_func
2285
2393
 
2286
 
# ac_fn_cxx_try_compile LINENO
2287
 
# ----------------------------
2288
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
2289
 
ac_fn_cxx_try_compile ()
2290
 
{
2291
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292
 
  rm -f conftest.$ac_objext
2293
 
  if { { ac_try="$ac_compile"
2294
 
case "(($ac_try" in
2295
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296
 
  *) ac_try_echo=$ac_try;;
2297
 
esac
2298
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299
 
$as_echo "$ac_try_echo"; } >&5
2300
 
  (eval "$ac_compile") 2>conftest.err
2301
 
  ac_status=$?
2302
 
  if test -s conftest.err; then
2303
 
    grep -v '^ *+' conftest.err >conftest.er1
2304
 
    cat conftest.er1 >&5
2305
 
    mv -f conftest.er1 conftest.err
2306
 
  fi
2307
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2308
 
  test $ac_status = 0; } && {
2309
 
         test -z "$ac_cxx_werror_flag" ||
2310
 
         test ! -s conftest.err
2311
 
       } && test -s conftest.$ac_objext; then :
2312
 
  ac_retval=0
2313
 
else
2314
 
  $as_echo "$as_me: failed program was:" >&5
2315
 
sed 's/^/| /' conftest.$ac_ext >&5
2316
 
 
2317
 
        ac_retval=1
2318
 
fi
2319
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320
 
  as_fn_set_status $ac_retval
2321
 
 
2322
 
} # ac_fn_cxx_try_compile
2323
 
 
2324
 
# ac_fn_cxx_try_cpp LINENO
2325
 
# ------------------------
2326
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2327
 
ac_fn_cxx_try_cpp ()
2328
 
{
2329
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
2331
 
case "(($ac_try" in
2332
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333
 
  *) ac_try_echo=$ac_try;;
2334
 
esac
2335
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2336
 
$as_echo "$ac_try_echo"; } >&5
2337
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2338
 
  ac_status=$?
2339
 
  if test -s conftest.err; then
2340
 
    grep -v '^ *+' conftest.err >conftest.er1
2341
 
    cat conftest.er1 >&5
2342
 
    mv -f conftest.er1 conftest.err
2343
 
  fi
2344
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2345
 
  test $ac_status = 0; } > conftest.i && {
2346
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2347
 
         test ! -s conftest.err
2348
 
       }; then :
2349
 
  ac_retval=0
2350
 
else
2351
 
  $as_echo "$as_me: failed program was:" >&5
2352
 
sed 's/^/| /' conftest.$ac_ext >&5
2353
 
 
2354
 
    ac_retval=1
2355
 
fi
2356
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357
 
  as_fn_set_status $ac_retval
2358
 
 
2359
 
} # ac_fn_cxx_try_cpp
2360
 
 
2361
2394
# ac_fn_cxx_try_link LINENO
2362
2395
# -------------------------
2363
2396
# Try to link conftest.$ac_ext, and return whether this succeeded.
2498
2531
This file contains any messages produced by compilers while
2499
2532
running configure, to aid debugging if configure makes a mistake.
2500
2533
 
2501
 
It was created by Mesa $as_me 9.0.3, which was
 
2534
It was created by Mesa $as_me 9.1.1, which was
2502
2535
generated by GNU Autoconf 2.69.  Invocation command line was
2503
2536
 
2504
2537
  $ $0 $@
2947
2980
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2948
2981
 
2949
2982
 
2950
 
am__api_version='1.11'
 
2983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 
2984
$as_echo_n "checking target system type... " >&6; }
 
2985
if ${ac_cv_target+:} false; then :
 
2986
  $as_echo_n "(cached) " >&6
 
2987
else
 
2988
  if test "x$target_alias" = x; then
 
2989
  ac_cv_target=$ac_cv_host
 
2990
else
 
2991
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2992
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 
2993
fi
 
2994
 
 
2995
fi
 
2996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 
2997
$as_echo "$ac_cv_target" >&6; }
 
2998
case $ac_cv_target in
 
2999
*-*-*) ;;
 
3000
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
 
3001
esac
 
3002
target=$ac_cv_target
 
3003
ac_save_IFS=$IFS; IFS='-'
 
3004
set x $ac_cv_target
 
3005
shift
 
3006
target_cpu=$1
 
3007
target_vendor=$2
 
3008
shift; shift
 
3009
# Remember, the first character of IFS is used to create $*,
 
3010
# except with old shells:
 
3011
target_os=$*
 
3012
IFS=$ac_save_IFS
 
3013
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
3014
 
 
3015
 
 
3016
# The aliases save the names the user supplied, while $host etc.
 
3017
# will get canonicalized.
 
3018
test -n "$target_alias" &&
 
3019
  test "$program_prefix$program_suffix$program_transform_name" = \
 
3020
    NONENONEs,x,x, &&
 
3021
  program_prefix=${target_alias}-
 
3022
 
 
3023
am__api_version='1.12'
2951
3024
 
2952
3025
# Find a good install program.  We prefer a C program (faster),
2953
3026
# so one script is as good as another.  But avoid the broken or
3044
3117
 
3045
3118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3046
3119
$as_echo_n "checking whether build environment is sane... " >&6; }
3047
 
# Just in case
3048
 
sleep 1
3049
 
echo timestamp > conftest.file
3050
3120
# Reject unsafe characters in $srcdir or the absolute working directory
3051
3121
# name.  Accept space and tab only in the latter.
3052
3122
am_lf='
3057
3127
esac
3058
3128
case $srcdir in
3059
3129
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3060
 
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
3130
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3061
3131
esac
3062
3132
 
3063
 
# Do `set' in a subshell so we don't clobber the current shell's
 
3133
# Do 'set' in a subshell so we don't clobber the current shell's
3064
3134
# arguments.  Must try -L first in case configure is actually a
3065
3135
# symlink; some systems play weird games with the mod time of symlinks
3066
3136
# (eg FreeBSD returns the mod time of the symlink's containing
3067
3137
# directory).
3068
3138
if (
3069
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3070
 
   if test "$*" = "X"; then
3071
 
      # -L didn't work.
3072
 
      set X `ls -t "$srcdir/configure" conftest.file`
3073
 
   fi
3074
 
   rm -f conftest.file
3075
 
   if test "$*" != "X $srcdir/configure conftest.file" \
3076
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
3077
 
 
3078
 
      # If neither matched, then we have a broken ls.  This can happen
3079
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
3080
 
      # broken ls alias from the environment.  This has actually
3081
 
      # happened.  Such a system could not be considered "sane".
3082
 
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3083
 
alias in your environment" "$LINENO" 5
3084
 
   fi
3085
 
 
 
3139
   am_has_slept=no
 
3140
   for am_try in 1 2; do
 
3141
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
3142
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
3143
     if test "$*" = "X"; then
 
3144
        # -L didn't work.
 
3145
        set X `ls -t "$srcdir/configure" conftest.file`
 
3146
     fi
 
3147
     if test "$*" != "X $srcdir/configure conftest.file" \
 
3148
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
3149
 
 
3150
        # If neither matched, then we have a broken ls.  This can happen
 
3151
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
3152
        # broken ls alias from the environment.  This has actually
 
3153
        # happened.  Such a system could not be considered "sane".
 
3154
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
3155
  alias in your environment" "$LINENO" 5
 
3156
     fi
 
3157
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
3158
       break
 
3159
     fi
 
3160
     # Just in case.
 
3161
     sleep 1
 
3162
     am_has_slept=yes
 
3163
   done
3086
3164
   test "$2" = conftest.file
3087
3165
   )
3088
3166
then
3094
3172
fi
3095
3173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096
3174
$as_echo "yes" >&6; }
 
3175
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
3176
# generated files are strictly newer.
 
3177
am_sleep_pid=
 
3178
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
3179
  ( sleep 1 ) &
 
3180
  am_sleep_pid=$!
 
3181
fi
 
3182
 
 
3183
rm -f conftest.file
 
3184
 
3097
3185
test "$program_prefix" != NONE &&
3098
3186
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3099
3187
# Use a double $ so make ignores it.
3120
3208
  am_missing_run="$MISSING --run "
3121
3209
else
3122
3210
  am_missing_run=
3123
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3124
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
3211
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
3212
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3125
3213
fi
3126
3214
 
3127
3215
if test x"${install_sh}" != xset; then
3133
3221
  esac
3134
3222
fi
3135
3223
 
3136
 
# Installed binaries are usually stripped using `strip' when the user
3137
 
# run `make install-strip'.  However `strip' might not be the right
 
3224
# Installed binaries are usually stripped using 'strip' when the user
 
3225
# run "make install-strip".  However 'strip' might not be the right
3138
3226
# tool to use in cross-compilation environments, therefore Automake
3139
 
# will honor the `STRIP' environment variable to overrule this program.
 
3227
# will honor the 'STRIP' environment variable to overrule this program.
3140
3228
if test "$cross_compiling" != no; then
3141
3229
  if test -n "$ac_tool_prefix"; then
3142
3230
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3275
3363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3276
3364
$as_echo "$MKDIR_P" >&6; }
3277
3365
 
3278
 
mkdir_p="$MKDIR_P"
3279
 
case $mkdir_p in
3280
 
  [\\/$]* | ?:[\\/]*) ;;
3281
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3282
 
esac
3283
 
 
3284
3366
for ac_prog in gawk mawk nawk awk
3285
3367
do
3286
3368
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3385
3467
 
3386
3468
# Define the identity of the package.
3387
3469
 PACKAGE='mesa'
3388
 
 VERSION='9.0.3'
 
3470
 VERSION='9.1.1'
3389
3471
 
3390
3472
 
3391
3473
cat >>confdefs.h <<_ACEOF
3413
3495
 
3414
3496
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3415
3497
 
 
3498
# For better backward compatibility.  To be removed once Automake 1.9.x
 
3499
# dies out for good.  For more background, see:
 
3500
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
3501
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
3502
mkdir_p='$(MKDIR_P)'
 
3503
 
3416
3504
# We need awk for the "check" target.  The system "awk" is bad on
3417
3505
# some platforms.
3418
3506
# Always define AMTAR for backward compatibility.  Yes, it's still used
3436
3524
  enableval=$enable_silent_rules;
3437
3525
fi
3438
3526
 
3439
 
case $enable_silent_rules in
3440
 
yes) AM_DEFAULT_VERBOSITY=0;;
3441
 
no)  AM_DEFAULT_VERBOSITY=1;;
3442
 
*)   AM_DEFAULT_VERBOSITY=0;;
 
3527
case $enable_silent_rules in # (((
 
3528
  yes) AM_DEFAULT_VERBOSITY=0;;
 
3529
   no) AM_DEFAULT_VERBOSITY=1;;
 
3530
    *) AM_DEFAULT_VERBOSITY=0;;
3443
3531
esac
3444
3532
am_make=${MAKE-make}
3445
3533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3490
3578
_am_result=none
3491
3579
# First try GNU make style include.
3492
3580
echo "include confinc" > confmf
3493
 
# Ignore all kinds of additional output from `make'.
 
3581
# Ignore all kinds of additional output from 'make'.
3494
3582
case `$am_make -s -f confmf 2> /dev/null` in #(
3495
3583
*the\ am__doit\ target*)
3496
3584
  am__include=include
4334
4422
  # We make a subdir and do the tests there.  Otherwise we can end up
4335
4423
  # making bogus files that we don't know about and never remove.  For
4336
4424
  # instance it was reported that on HP-UX the gcc test will end up
4337
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4338
 
  # in D'.
 
4425
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
4426
  # in D".
4339
4427
  rm -rf conftest.dir
4340
4428
  mkdir conftest.dir
4341
4429
  # Copy depcomp to subdir because otherwise we won't find it if we're
4370
4458
    : > sub/conftest.c
4371
4459
    for i in 1 2 3 4 5 6; do
4372
4460
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4373
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4374
 
      # Solaris 8's {/usr,}/bin/sh.
4375
 
      touch sub/conftst$i.h
 
4461
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
4462
      # Solaris 10 /bin/sh.
 
4463
      echo '/* dummy */' > sub/conftst$i.h
4376
4464
    done
4377
4465
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4378
4466
 
4379
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4467
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4380
4468
    # mode.  It turns out that the SunPro C++ compiler does not properly
4381
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
4382
 
    # versions had trouble with output in subdirs
 
4469
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
4470
    # versions had trouble with output in subdirs.
4383
4471
    am__obj=sub/conftest.${OBJEXT-o}
4384
4472
    am__minus_obj="-o $am__obj"
4385
4473
    case $depmode in
4388
4476
      test "$am__universal" = false || continue
4389
4477
      ;;
4390
4478
    nosideeffect)
4391
 
      # after this tag, mechanisms are not by side-effect, so they'll
4392
 
      # only be used when explicitly requested
 
4479
      # After this tag, mechanisms are not by side-effect, so they'll
 
4480
      # only be used when explicitly requested.
4393
4481
      if test "x$enable_dependency_tracking" = xyes; then
4394
4482
        continue
4395
4483
      else
4397
4485
      fi
4398
4486
      ;;
4399
4487
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4400
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4488
      # This compiler won't grok '-c -o', but also, the minuso test has
4401
4489
      # not run yet.  These depmodes are late enough in the game, and
4402
4490
      # so weak that their functioning should not be impacted.
4403
4491
      am__obj=conftest.${OBJEXT-o}
4613
4701
esac
4614
4702
 
4615
4703
 
 
4704
OSMESA_VERSION=8
 
4705
 
 
4706
 
 
4707
LIBDRM_REQUIRED=2.4.24
 
4708
LIBDRM_RADEON_REQUIRED=2.4.42
 
4709
LIBDRM_INTEL_REQUIRED=2.4.38
 
4710
LIBDRM_NVVIEUX_REQUIRED=2.4.33
 
4711
LIBDRM_NOUVEAU_REQUIRED="2.4.33 libdrm >= 2.4.41"
 
4712
DRI2PROTO_REQUIRED=2.6
 
4713
GLPROTO_REQUIRED=1.4.14
 
4714
LIBDRM_XORG_REQUIRED=2.4.24
 
4715
LIBKMS_XORG_REQUIRED=1.0.0
 
4716
 
 
4717
ac_ext=c
 
4718
ac_cpp='$CPP $CPPFLAGS'
 
4719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
4723
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
4724
# On Suns, sometimes $CPP names a directory.
 
4725
if test -n "$CPP" && test -d "$CPP"; then
 
4726
  CPP=
 
4727
fi
 
4728
if test -z "$CPP"; then
 
4729
  if ${ac_cv_prog_CPP+:} false; then :
 
4730
  $as_echo_n "(cached) " >&6
 
4731
else
 
4732
      # Double quotes because CPP needs to be expanded
 
4733
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4734
    do
 
4735
      ac_preproc_ok=false
 
4736
for ac_c_preproc_warn_flag in '' yes
 
4737
do
 
4738
  # Use a header file that comes with gcc, so configuring glibc
 
4739
  # with a fresh cross-compiler works.
 
4740
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4741
  # <limits.h> exists even on freestanding compilers.
 
4742
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4743
  # not just through cpp. "Syntax error" is here to catch this case.
 
4744
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4745
/* end confdefs.h.  */
 
4746
#ifdef __STDC__
 
4747
# include <limits.h>
 
4748
#else
 
4749
# include <assert.h>
 
4750
#endif
 
4751
                     Syntax error
 
4752
_ACEOF
 
4753
if ac_fn_c_try_cpp "$LINENO"; then :
 
4754
 
 
4755
else
 
4756
  # Broken: fails on valid input.
 
4757
continue
 
4758
fi
 
4759
rm -f conftest.err conftest.i conftest.$ac_ext
 
4760
 
 
4761
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4762
  # can be detected and how.
 
4763
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4764
/* end confdefs.h.  */
 
4765
#include <ac_nonexistent.h>
 
4766
_ACEOF
 
4767
if ac_fn_c_try_cpp "$LINENO"; then :
 
4768
  # Broken: success on invalid input.
 
4769
continue
 
4770
else
 
4771
  # Passes both tests.
 
4772
ac_preproc_ok=:
 
4773
break
 
4774
fi
 
4775
rm -f conftest.err conftest.i conftest.$ac_ext
 
4776
 
 
4777
done
 
4778
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4779
rm -f conftest.i conftest.err conftest.$ac_ext
 
4780
if $ac_preproc_ok; then :
 
4781
  break
 
4782
fi
 
4783
 
 
4784
    done
 
4785
    ac_cv_prog_CPP=$CPP
 
4786
 
 
4787
fi
 
4788
  CPP=$ac_cv_prog_CPP
 
4789
else
 
4790
  ac_cv_prog_CPP=$CPP
 
4791
fi
 
4792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
4793
$as_echo "$CPP" >&6; }
 
4794
ac_preproc_ok=false
 
4795
for ac_c_preproc_warn_flag in '' yes
 
4796
do
 
4797
  # Use a header file that comes with gcc, so configuring glibc
 
4798
  # with a fresh cross-compiler works.
 
4799
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4800
  # <limits.h> exists even on freestanding compilers.
 
4801
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4802
  # not just through cpp. "Syntax error" is here to catch this case.
 
4803
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4804
/* end confdefs.h.  */
 
4805
#ifdef __STDC__
 
4806
# include <limits.h>
 
4807
#else
 
4808
# include <assert.h>
 
4809
#endif
 
4810
                     Syntax error
 
4811
_ACEOF
 
4812
if ac_fn_c_try_cpp "$LINENO"; then :
 
4813
 
 
4814
else
 
4815
  # Broken: fails on valid input.
 
4816
continue
 
4817
fi
 
4818
rm -f conftest.err conftest.i conftest.$ac_ext
 
4819
 
 
4820
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4821
  # can be detected and how.
 
4822
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4823
/* end confdefs.h.  */
 
4824
#include <ac_nonexistent.h>
 
4825
_ACEOF
 
4826
if ac_fn_c_try_cpp "$LINENO"; then :
 
4827
  # Broken: success on invalid input.
 
4828
continue
 
4829
else
 
4830
  # Passes both tests.
 
4831
ac_preproc_ok=:
 
4832
break
 
4833
fi
 
4834
rm -f conftest.err conftest.i conftest.$ac_ext
 
4835
 
 
4836
done
 
4837
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4838
rm -f conftest.i conftest.err conftest.$ac_ext
 
4839
if $ac_preproc_ok; then :
 
4840
 
 
4841
else
 
4842
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4843
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4844
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
4845
See \`config.log' for more details" "$LINENO" 5; }
 
4846
fi
 
4847
 
 
4848
ac_ext=c
 
4849
ac_cpp='$CPP $CPPFLAGS'
 
4850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4853
 
 
4854
ac_ext=c
 
4855
ac_cpp='$CPP $CPPFLAGS'
 
4856
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4857
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4858
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4859
if test -n "$ac_tool_prefix"; then
 
4860
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
4861
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
4862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4863
$as_echo_n "checking for $ac_word... " >&6; }
 
4864
if ${ac_cv_prog_CC+:} false; then :
 
4865
  $as_echo_n "(cached) " >&6
 
4866
else
 
4867
  if test -n "$CC"; then
 
4868
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4869
else
 
4870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4871
for as_dir in $PATH
 
4872
do
 
4873
  IFS=$as_save_IFS
 
4874
  test -z "$as_dir" && as_dir=.
 
4875
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4876
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4877
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
4878
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4879
    break 2
 
4880
  fi
 
4881
done
 
4882
  done
 
4883
IFS=$as_save_IFS
 
4884
 
 
4885
fi
 
4886
fi
 
4887
CC=$ac_cv_prog_CC
 
4888
if test -n "$CC"; then
 
4889
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4890
$as_echo "$CC" >&6; }
 
4891
else
 
4892
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4893
$as_echo "no" >&6; }
 
4894
fi
 
4895
 
 
4896
 
 
4897
fi
 
4898
if test -z "$ac_cv_prog_CC"; then
 
4899
  ac_ct_CC=$CC
 
4900
  # Extract the first word of "gcc", so it can be a program name with args.
 
4901
set dummy gcc; ac_word=$2
 
4902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4903
$as_echo_n "checking for $ac_word... " >&6; }
 
4904
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
4905
  $as_echo_n "(cached) " >&6
 
4906
else
 
4907
  if test -n "$ac_ct_CC"; then
 
4908
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4909
else
 
4910
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4911
for as_dir in $PATH
 
4912
do
 
4913
  IFS=$as_save_IFS
 
4914
  test -z "$as_dir" && as_dir=.
 
4915
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4916
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4917
    ac_cv_prog_ac_ct_CC="gcc"
 
4918
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4919
    break 2
 
4920
  fi
 
4921
done
 
4922
  done
 
4923
IFS=$as_save_IFS
 
4924
 
 
4925
fi
 
4926
fi
 
4927
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4928
if test -n "$ac_ct_CC"; then
 
4929
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4930
$as_echo "$ac_ct_CC" >&6; }
 
4931
else
 
4932
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4933
$as_echo "no" >&6; }
 
4934
fi
 
4935
 
 
4936
  if test "x$ac_ct_CC" = x; then
 
4937
    CC=""
 
4938
  else
 
4939
    case $cross_compiling:$ac_tool_warned in
 
4940
yes:)
 
4941
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4942
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4943
ac_tool_warned=yes ;;
 
4944
esac
 
4945
    CC=$ac_ct_CC
 
4946
  fi
 
4947
else
 
4948
  CC="$ac_cv_prog_CC"
 
4949
fi
 
4950
 
 
4951
if test -z "$CC"; then
 
4952
          if test -n "$ac_tool_prefix"; then
 
4953
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4954
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4956
$as_echo_n "checking for $ac_word... " >&6; }
 
4957
if ${ac_cv_prog_CC+:} false; then :
 
4958
  $as_echo_n "(cached) " >&6
 
4959
else
 
4960
  if test -n "$CC"; then
 
4961
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4962
else
 
4963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4964
for as_dir in $PATH
 
4965
do
 
4966
  IFS=$as_save_IFS
 
4967
  test -z "$as_dir" && as_dir=.
 
4968
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4969
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4970
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4971
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4972
    break 2
 
4973
  fi
 
4974
done
 
4975
  done
 
4976
IFS=$as_save_IFS
 
4977
 
 
4978
fi
 
4979
fi
 
4980
CC=$ac_cv_prog_CC
 
4981
if test -n "$CC"; then
 
4982
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4983
$as_echo "$CC" >&6; }
 
4984
else
 
4985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4986
$as_echo "no" >&6; }
 
4987
fi
 
4988
 
 
4989
 
 
4990
  fi
 
4991
fi
 
4992
if test -z "$CC"; then
 
4993
  # Extract the first word of "cc", so it can be a program name with args.
 
4994
set dummy cc; ac_word=$2
 
4995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4996
$as_echo_n "checking for $ac_word... " >&6; }
 
4997
if ${ac_cv_prog_CC+:} false; then :
 
4998
  $as_echo_n "(cached) " >&6
 
4999
else
 
5000
  if test -n "$CC"; then
 
5001
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5002
else
 
5003
  ac_prog_rejected=no
 
5004
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5005
for as_dir in $PATH
 
5006
do
 
5007
  IFS=$as_save_IFS
 
5008
  test -z "$as_dir" && as_dir=.
 
5009
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5010
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5011
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
5012
       ac_prog_rejected=yes
 
5013
       continue
 
5014
     fi
 
5015
    ac_cv_prog_CC="cc"
 
5016
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5017
    break 2
 
5018
  fi
 
5019
done
 
5020
  done
 
5021
IFS=$as_save_IFS
 
5022
 
 
5023
if test $ac_prog_rejected = yes; then
 
5024
  # We found a bogon in the path, so make sure we never use it.
 
5025
  set dummy $ac_cv_prog_CC
 
5026
  shift
 
5027
  if test $# != 0; then
 
5028
    # We chose a different compiler from the bogus one.
 
5029
    # However, it has the same basename, so the bogon will be chosen
 
5030
    # first if we set CC to just the basename; use the full file name.
 
5031
    shift
 
5032
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
5033
  fi
 
5034
fi
 
5035
fi
 
5036
fi
 
5037
CC=$ac_cv_prog_CC
 
5038
if test -n "$CC"; then
 
5039
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
5040
$as_echo "$CC" >&6; }
 
5041
else
 
5042
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5043
$as_echo "no" >&6; }
 
5044
fi
 
5045
 
 
5046
 
 
5047
fi
 
5048
if test -z "$CC"; then
 
5049
  if test -n "$ac_tool_prefix"; then
 
5050
  for ac_prog in cl.exe
 
5051
  do
 
5052
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5053
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5055
$as_echo_n "checking for $ac_word... " >&6; }
 
5056
if ${ac_cv_prog_CC+:} false; then :
 
5057
  $as_echo_n "(cached) " >&6
 
5058
else
 
5059
  if test -n "$CC"; then
 
5060
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5061
else
 
5062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5063
for as_dir in $PATH
 
5064
do
 
5065
  IFS=$as_save_IFS
 
5066
  test -z "$as_dir" && as_dir=.
 
5067
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5068
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5069
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
5070
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5071
    break 2
 
5072
  fi
 
5073
done
 
5074
  done
 
5075
IFS=$as_save_IFS
 
5076
 
 
5077
fi
 
5078
fi
 
5079
CC=$ac_cv_prog_CC
 
5080
if test -n "$CC"; then
 
5081
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
5082
$as_echo "$CC" >&6; }
 
5083
else
 
5084
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5085
$as_echo "no" >&6; }
 
5086
fi
 
5087
 
 
5088
 
 
5089
    test -n "$CC" && break
 
5090
  done
 
5091
fi
 
5092
if test -z "$CC"; then
 
5093
  ac_ct_CC=$CC
 
5094
  for ac_prog in cl.exe
 
5095
do
 
5096
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5097
set dummy $ac_prog; ac_word=$2
 
5098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5099
$as_echo_n "checking for $ac_word... " >&6; }
 
5100
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
5101
  $as_echo_n "(cached) " >&6
 
5102
else
 
5103
  if test -n "$ac_ct_CC"; then
 
5104
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
5105
else
 
5106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5107
for as_dir in $PATH
 
5108
do
 
5109
  IFS=$as_save_IFS
 
5110
  test -z "$as_dir" && as_dir=.
 
5111
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5112
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5113
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
5114
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5115
    break 2
 
5116
  fi
 
5117
done
 
5118
  done
 
5119
IFS=$as_save_IFS
 
5120
 
 
5121
fi
 
5122
fi
 
5123
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
5124
if test -n "$ac_ct_CC"; then
 
5125
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
5126
$as_echo "$ac_ct_CC" >&6; }
 
5127
else
 
5128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5129
$as_echo "no" >&6; }
 
5130
fi
 
5131
 
 
5132
 
 
5133
  test -n "$ac_ct_CC" && break
 
5134
done
 
5135
 
 
5136
  if test "x$ac_ct_CC" = x; then
 
5137
    CC=""
 
5138
  else
 
5139
    case $cross_compiling:$ac_tool_warned in
 
5140
yes:)
 
5141
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5142
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5143
ac_tool_warned=yes ;;
 
5144
esac
 
5145
    CC=$ac_ct_CC
 
5146
  fi
 
5147
fi
 
5148
 
 
5149
fi
 
5150
 
 
5151
 
 
5152
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5153
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5154
as_fn_error $? "no acceptable C compiler found in \$PATH
 
5155
See \`config.log' for more details" "$LINENO" 5; }
 
5156
 
 
5157
# Provide some information about the compiler.
 
5158
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
5159
set X $ac_compile
 
5160
ac_compiler=$2
 
5161
for ac_option in --version -v -V -qversion; do
 
5162
  { { ac_try="$ac_compiler $ac_option >&5"
 
5163
case "(($ac_try" in
 
5164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5165
  *) ac_try_echo=$ac_try;;
 
5166
esac
 
5167
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5168
$as_echo "$ac_try_echo"; } >&5
 
5169
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
5170
  ac_status=$?
 
5171
  if test -s conftest.err; then
 
5172
    sed '10a\
 
5173
... rest of stderr output deleted ...
 
5174
         10q' conftest.err >conftest.er1
 
5175
    cat conftest.er1 >&5
 
5176
  fi
 
5177
  rm -f conftest.er1 conftest.err
 
5178
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5179
  test $ac_status = 0; }
 
5180
done
 
5181
 
 
5182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
5183
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
5184
if ${ac_cv_c_compiler_gnu+:} false; then :
 
5185
  $as_echo_n "(cached) " >&6
 
5186
else
 
5187
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5188
/* end confdefs.h.  */
 
5189
 
 
5190
int
 
5191
main ()
 
5192
{
 
5193
#ifndef __GNUC__
 
5194
       choke me
 
5195
#endif
 
5196
 
 
5197
  ;
 
5198
  return 0;
 
5199
}
 
5200
_ACEOF
 
5201
if ac_fn_c_try_compile "$LINENO"; then :
 
5202
  ac_compiler_gnu=yes
 
5203
else
 
5204
  ac_compiler_gnu=no
 
5205
fi
 
5206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5207
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
5208
 
 
5209
fi
 
5210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
5211
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
5212
if test $ac_compiler_gnu = yes; then
 
5213
  GCC=yes
 
5214
else
 
5215
  GCC=
 
5216
fi
 
5217
ac_test_CFLAGS=${CFLAGS+set}
 
5218
ac_save_CFLAGS=$CFLAGS
 
5219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
5220
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
5221
if ${ac_cv_prog_cc_g+:} false; then :
 
5222
  $as_echo_n "(cached) " >&6
 
5223
else
 
5224
  ac_save_c_werror_flag=$ac_c_werror_flag
 
5225
   ac_c_werror_flag=yes
 
5226
   ac_cv_prog_cc_g=no
 
5227
   CFLAGS="-g"
 
5228
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5229
/* end confdefs.h.  */
 
5230
 
 
5231
int
 
5232
main ()
 
5233
{
 
5234
 
 
5235
  ;
 
5236
  return 0;
 
5237
}
 
5238
_ACEOF
 
5239
if ac_fn_c_try_compile "$LINENO"; then :
 
5240
  ac_cv_prog_cc_g=yes
 
5241
else
 
5242
  CFLAGS=""
 
5243
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5244
/* end confdefs.h.  */
 
5245
 
 
5246
int
 
5247
main ()
 
5248
{
 
5249
 
 
5250
  ;
 
5251
  return 0;
 
5252
}
 
5253
_ACEOF
 
5254
if ac_fn_c_try_compile "$LINENO"; then :
 
5255
 
 
5256
else
 
5257
  ac_c_werror_flag=$ac_save_c_werror_flag
 
5258
         CFLAGS="-g"
 
5259
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5260
/* end confdefs.h.  */
 
5261
 
 
5262
int
 
5263
main ()
 
5264
{
 
5265
 
 
5266
  ;
 
5267
  return 0;
 
5268
}
 
5269
_ACEOF
 
5270
if ac_fn_c_try_compile "$LINENO"; then :
 
5271
  ac_cv_prog_cc_g=yes
 
5272
fi
 
5273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5274
fi
 
5275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5276
fi
 
5277
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5278
   ac_c_werror_flag=$ac_save_c_werror_flag
 
5279
fi
 
5280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
5281
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
5282
if test "$ac_test_CFLAGS" = set; then
 
5283
  CFLAGS=$ac_save_CFLAGS
 
5284
elif test $ac_cv_prog_cc_g = yes; then
 
5285
  if test "$GCC" = yes; then
 
5286
    CFLAGS="-g -O2"
 
5287
  else
 
5288
    CFLAGS="-g"
 
5289
  fi
 
5290
else
 
5291
  if test "$GCC" = yes; then
 
5292
    CFLAGS="-O2"
 
5293
  else
 
5294
    CFLAGS=
 
5295
  fi
 
5296
fi
 
5297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
5298
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
5299
if ${ac_cv_prog_cc_c89+:} false; then :
 
5300
  $as_echo_n "(cached) " >&6
 
5301
else
 
5302
  ac_cv_prog_cc_c89=no
 
5303
ac_save_CC=$CC
 
5304
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5305
/* end confdefs.h.  */
 
5306
#include <stdarg.h>
 
5307
#include <stdio.h>
 
5308
struct stat;
 
5309
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
5310
struct buf { int x; };
 
5311
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
5312
static char *e (p, i)
 
5313
     char **p;
 
5314
     int i;
 
5315
{
 
5316
  return p[i];
 
5317
}
 
5318
static char *f (char * (*g) (char **, int), char **p, ...)
 
5319
{
 
5320
  char *s;
 
5321
  va_list v;
 
5322
  va_start (v,p);
 
5323
  s = g (p, va_arg (v,int));
 
5324
  va_end (v);
 
5325
  return s;
 
5326
}
 
5327
 
 
5328
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
5329
   function prototypes and stuff, but not '\xHH' hex character constants.
 
5330
   These don't provoke an error unfortunately, instead are silently treated
 
5331
   as 'x'.  The following induces an error, until -std is added to get
 
5332
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
5333
   array size at least.  It's necessary to write '\x00'==0 to get something
 
5334
   that's true only with -std.  */
 
5335
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
5336
 
 
5337
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
5338
   inside strings and character constants.  */
 
5339
#define FOO(x) 'x'
 
5340
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
5341
 
 
5342
int test (int i, double x);
 
5343
struct s1 {int (*f) (int a);};
 
5344
struct s2 {int (*f) (double a);};
 
5345
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
5346
int argc;
 
5347
char **argv;
 
5348
int
 
5349
main ()
 
5350
{
 
5351
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
5352
  ;
 
5353
  return 0;
 
5354
}
 
5355
_ACEOF
 
5356
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
5357
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
5358
do
 
5359
  CC="$ac_save_CC $ac_arg"
 
5360
  if ac_fn_c_try_compile "$LINENO"; then :
 
5361
  ac_cv_prog_cc_c89=$ac_arg
 
5362
fi
 
5363
rm -f core conftest.err conftest.$ac_objext
 
5364
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
5365
done
 
5366
rm -f conftest.$ac_ext
 
5367
CC=$ac_save_CC
 
5368
 
 
5369
fi
 
5370
# AC_CACHE_VAL
 
5371
case "x$ac_cv_prog_cc_c89" in
 
5372
  x)
 
5373
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
5374
$as_echo "none needed" >&6; } ;;
 
5375
  xno)
 
5376
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
5377
$as_echo "unsupported" >&6; } ;;
 
5378
  *)
 
5379
    CC="$CC $ac_cv_prog_cc_c89"
 
5380
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
5381
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
5382
esac
 
5383
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
5384
 
 
5385
fi
 
5386
 
 
5387
ac_ext=c
 
5388
ac_cpp='$CPP $CPPFLAGS'
 
5389
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5390
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5391
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5392
 
 
5393
depcc="$CC"   am_compiler_list=
 
5394
 
 
5395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
5396
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
5397
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
5398
  $as_echo_n "(cached) " >&6
 
5399
else
 
5400
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5401
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5402
  # making bogus files that we don't know about and never remove.  For
 
5403
  # instance it was reported that on HP-UX the gcc test will end up
 
5404
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
5405
  # in D".
 
5406
  rm -rf conftest.dir
 
5407
  mkdir conftest.dir
 
5408
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5409
  # using a relative directory.
 
5410
  cp "$am_depcomp" conftest.dir
 
5411
  cd conftest.dir
 
5412
  # We will build objects and dependencies in a subdirectory because
 
5413
  # it helps to detect inapplicable dependency modes.  For instance
 
5414
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5415
  # side effect of compilation, but ICC will put the dependencies in
 
5416
  # the current directory while Tru64 will put them in the object
 
5417
  # directory.
 
5418
  mkdir sub
 
5419
 
 
5420
  am_cv_CC_dependencies_compiler_type=none
 
5421
  if test "$am_compiler_list" = ""; then
 
5422
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5423
  fi
 
5424
  am__universal=false
 
5425
  case " $depcc " in #(
 
5426
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
5427
     esac
 
5428
 
 
5429
  for depmode in $am_compiler_list; do
 
5430
    # Setup a source with many dependencies, because some compilers
 
5431
    # like to wrap large dependency lists on column 80 (with \), and
 
5432
    # we should not choose a depcomp mode which is confused by this.
 
5433
    #
 
5434
    # We need to recreate these files for each test, as the compiler may
 
5435
    # overwrite some of them when testing with obscure command lines.
 
5436
    # This happens at least with the AIX C compiler.
 
5437
    : > sub/conftest.c
 
5438
    for i in 1 2 3 4 5 6; do
 
5439
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5440
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
5441
      # Solaris 10 /bin/sh.
 
5442
      echo '/* dummy */' > sub/conftst$i.h
 
5443
    done
 
5444
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5445
 
 
5446
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
5447
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5448
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
5449
    # versions had trouble with output in subdirs.
 
5450
    am__obj=sub/conftest.${OBJEXT-o}
 
5451
    am__minus_obj="-o $am__obj"
 
5452
    case $depmode in
 
5453
    gcc)
 
5454
      # This depmode causes a compiler race in universal mode.
 
5455
      test "$am__universal" = false || continue
 
5456
      ;;
 
5457
    nosideeffect)
 
5458
      # After this tag, mechanisms are not by side-effect, so they'll
 
5459
      # only be used when explicitly requested.
 
5460
      if test "x$enable_dependency_tracking" = xyes; then
 
5461
        continue
 
5462
      else
 
5463
        break
 
5464
      fi
 
5465
      ;;
 
5466
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
5467
      # This compiler won't grok '-c -o', but also, the minuso test has
 
5468
      # not run yet.  These depmodes are late enough in the game, and
 
5469
      # so weak that their functioning should not be impacted.
 
5470
      am__obj=conftest.${OBJEXT-o}
 
5471
      am__minus_obj=
 
5472
      ;;
 
5473
    none) break ;;
 
5474
    esac
 
5475
    if depmode=$depmode \
 
5476
       source=sub/conftest.c object=$am__obj \
 
5477
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5478
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
5479
         >/dev/null 2>conftest.err &&
 
5480
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5481
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5482
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
5483
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5484
      # icc doesn't choke on unknown options, it will just issue warnings
 
5485
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5486
      # that says an option was ignored or not supported.
 
5487
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5488
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5489
      # The diagnosis changed in icc 8.0:
 
5490
      #   icc: Command line remark: option '-MP' not supported
 
5491
      if (grep 'ignoring option' conftest.err ||
 
5492
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5493
        am_cv_CC_dependencies_compiler_type=$depmode
 
5494
        break
 
5495
      fi
 
5496
    fi
 
5497
  done
 
5498
 
 
5499
  cd ..
 
5500
  rm -rf conftest.dir
 
5501
else
 
5502
  am_cv_CC_dependencies_compiler_type=none
 
5503
fi
 
5504
 
 
5505
fi
 
5506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
5507
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
5508
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
5509
 
 
5510
 if
 
5511
  test "x$enable_dependency_tracking" != xno \
 
5512
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
5513
  am__fastdepCC_TRUE=
 
5514
  am__fastdepCC_FALSE='#'
 
5515
else
 
5516
  am__fastdepCC_TRUE='#'
 
5517
  am__fastdepCC_FALSE=
 
5518
fi
 
5519
 
 
5520
 
 
5521
 
 
5522
 
 
5523
 
 
5524
save_cross_compiling=$cross_compiling
 
5525
save_ac_tool_prefix=$ac_tool_prefix
 
5526
cross_compiling=no
 
5527
ac_tool_prefix=
 
5528
 
 
5529
ac_ext=c
 
5530
ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
 
5531
ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
 
5532
ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
 
5533
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5534
if test -n "$ac_tool_prefix"; then
 
5535
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
5536
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
5537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5538
$as_echo_n "checking for $ac_word... " >&6; }
 
5539
if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
 
5540
  $as_echo_n "(cached) " >&6
 
5541
else
 
5542
  if test -n "$CC_FOR_BUILD"; then
 
5543
  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
 
5544
else
 
5545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5546
for as_dir in $PATH
 
5547
do
 
5548
  IFS=$as_save_IFS
 
5549
  test -z "$as_dir" && as_dir=.
 
5550
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5551
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5552
    ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
 
5553
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5554
    break 2
 
5555
  fi
 
5556
done
 
5557
  done
 
5558
IFS=$as_save_IFS
 
5559
 
 
5560
fi
 
5561
fi
 
5562
CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
 
5563
if test -n "$CC_FOR_BUILD"; then
 
5564
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
 
5565
$as_echo "$CC_FOR_BUILD" >&6; }
 
5566
else
 
5567
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5568
$as_echo "no" >&6; }
 
5569
fi
 
5570
 
 
5571
 
 
5572
fi
 
5573
if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
 
5574
  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
 
5575
  # Extract the first word of "gcc", so it can be a program name with args.
 
5576
set dummy gcc; ac_word=$2
 
5577
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5578
$as_echo_n "checking for $ac_word... " >&6; }
 
5579
if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
 
5580
  $as_echo_n "(cached) " >&6
 
5581
else
 
5582
  if test -n "$ac_ct_CC_FOR_BUILD"; then
 
5583
  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
 
5584
else
 
5585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5586
for as_dir in $PATH
 
5587
do
 
5588
  IFS=$as_save_IFS
 
5589
  test -z "$as_dir" && as_dir=.
 
5590
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5591
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5592
    ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
 
5593
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5594
    break 2
 
5595
  fi
 
5596
done
 
5597
  done
 
5598
IFS=$as_save_IFS
 
5599
 
 
5600
fi
 
5601
fi
 
5602
ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
 
5603
if test -n "$ac_ct_CC_FOR_BUILD"; then
 
5604
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
 
5605
$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
 
5606
else
 
5607
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5608
$as_echo "no" >&6; }
 
5609
fi
 
5610
 
 
5611
  if test "x$ac_ct_CC_FOR_BUILD" = x; then
 
5612
    CC_FOR_BUILD=""
 
5613
  else
 
5614
    case $cross_compiling:$ac_tool_warned in
 
5615
yes:)
 
5616
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
 
5617
$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
 
5618
ac_tool_warned=yes ;;
 
5619
esac
 
5620
    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
 
5621
  fi
 
5622
else
 
5623
  CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
 
5624
fi
 
5625
 
 
5626
if test -z "$CC_FOR_BUILD"; then
 
5627
          if test -n "$ac_tool_prefix"; then
 
5628
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
5629
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
5630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5631
$as_echo_n "checking for $ac_word... " >&6; }
 
5632
if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
 
5633
  $as_echo_n "(cached) " >&6
 
5634
else
 
5635
  if test -n "$CC_FOR_BUILD"; then
 
5636
  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
 
5637
else
 
5638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5639
for as_dir in $PATH
 
5640
do
 
5641
  IFS=$as_save_IFS
 
5642
  test -z "$as_dir" && as_dir=.
 
5643
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5644
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5645
    ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
 
5646
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5647
    break 2
 
5648
  fi
 
5649
done
 
5650
  done
 
5651
IFS=$as_save_IFS
 
5652
 
 
5653
fi
 
5654
fi
 
5655
CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
 
5656
if test -n "$CC_FOR_BUILD"; then
 
5657
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
 
5658
$as_echo "$CC_FOR_BUILD" >&6; }
 
5659
else
 
5660
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5661
$as_echo "no" >&6; }
 
5662
fi
 
5663
 
 
5664
 
 
5665
  fi
 
5666
fi
 
5667
if test -z "$CC_FOR_BUILD"; then
 
5668
  # Extract the first word of "cc", so it can be a program name with args.
 
5669
set dummy cc; ac_word=$2
 
5670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5671
$as_echo_n "checking for $ac_word... " >&6; }
 
5672
if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
 
5673
  $as_echo_n "(cached) " >&6
 
5674
else
 
5675
  if test -n "$CC_FOR_BUILD"; then
 
5676
  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
 
5677
else
 
5678
  ac_prog_rejected=no
 
5679
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5680
for as_dir in $PATH
 
5681
do
 
5682
  IFS=$as_save_IFS
 
5683
  test -z "$as_dir" && as_dir=.
 
5684
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5685
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5686
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
5687
       ac_prog_rejected=yes
 
5688
       continue
 
5689
     fi
 
5690
    ac_cv_prog_CC_FOR_BUILD="cc"
 
5691
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5692
    break 2
 
5693
  fi
 
5694
done
 
5695
  done
 
5696
IFS=$as_save_IFS
 
5697
 
 
5698
if test $ac_prog_rejected = yes; then
 
5699
  # We found a bogon in the path, so make sure we never use it.
 
5700
  set dummy $ac_cv_prog_CC_FOR_BUILD
 
5701
  shift
 
5702
  if test $# != 0; then
 
5703
    # We chose a different compiler from the bogus one.
 
5704
    # However, it has the same basename, so the bogon will be chosen
 
5705
    # first if we set CC_FOR_BUILD to just the basename; use the full file name.
 
5706
    shift
 
5707
    ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
 
5708
  fi
 
5709
fi
 
5710
fi
 
5711
fi
 
5712
CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
 
5713
if test -n "$CC_FOR_BUILD"; then
 
5714
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
 
5715
$as_echo "$CC_FOR_BUILD" >&6; }
 
5716
else
 
5717
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5718
$as_echo "no" >&6; }
 
5719
fi
 
5720
 
 
5721
 
 
5722
fi
 
5723
if test -z "$CC_FOR_BUILD"; then
 
5724
  if test -n "$ac_tool_prefix"; then
 
5725
  for ac_prog in cl.exe
 
5726
  do
 
5727
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5728
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5730
$as_echo_n "checking for $ac_word... " >&6; }
 
5731
if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
 
5732
  $as_echo_n "(cached) " >&6
 
5733
else
 
5734
  if test -n "$CC_FOR_BUILD"; then
 
5735
  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
 
5736
else
 
5737
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5738
for as_dir in $PATH
 
5739
do
 
5740
  IFS=$as_save_IFS
 
5741
  test -z "$as_dir" && as_dir=.
 
5742
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5743
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5744
    ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
 
5745
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5746
    break 2
 
5747
  fi
 
5748
done
 
5749
  done
 
5750
IFS=$as_save_IFS
 
5751
 
 
5752
fi
 
5753
fi
 
5754
CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
 
5755
if test -n "$CC_FOR_BUILD"; then
 
5756
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
 
5757
$as_echo "$CC_FOR_BUILD" >&6; }
 
5758
else
 
5759
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5760
$as_echo "no" >&6; }
 
5761
fi
 
5762
 
 
5763
 
 
5764
    test -n "$CC_FOR_BUILD" && break
 
5765
  done
 
5766
fi
 
5767
if test -z "$CC_FOR_BUILD"; then
 
5768
  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
 
5769
  for ac_prog in cl.exe
 
5770
do
 
5771
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5772
set dummy $ac_prog; ac_word=$2
 
5773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5774
$as_echo_n "checking for $ac_word... " >&6; }
 
5775
if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
 
5776
  $as_echo_n "(cached) " >&6
 
5777
else
 
5778
  if test -n "$ac_ct_CC_FOR_BUILD"; then
 
5779
  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
 
5780
else
 
5781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5782
for as_dir in $PATH
 
5783
do
 
5784
  IFS=$as_save_IFS
 
5785
  test -z "$as_dir" && as_dir=.
 
5786
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5787
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5788
    ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
 
5789
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5790
    break 2
 
5791
  fi
 
5792
done
 
5793
  done
 
5794
IFS=$as_save_IFS
 
5795
 
 
5796
fi
 
5797
fi
 
5798
ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
 
5799
if test -n "$ac_ct_CC_FOR_BUILD"; then
 
5800
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
 
5801
$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
 
5802
else
 
5803
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5804
$as_echo "no" >&6; }
 
5805
fi
 
5806
 
 
5807
 
 
5808
  test -n "$ac_ct_CC_FOR_BUILD" && break
 
5809
done
 
5810
 
 
5811
  if test "x$ac_ct_CC_FOR_BUILD" = x; then
 
5812
    CC_FOR_BUILD=""
 
5813
  else
 
5814
    case $cross_compiling:$ac_tool_warned in
 
5815
yes:)
 
5816
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
 
5817
$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
 
5818
ac_tool_warned=yes ;;
 
5819
esac
 
5820
    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
 
5821
  fi
 
5822
fi
 
5823
 
 
5824
fi
 
5825
 
 
5826
 
 
5827
test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5828
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5829
as_fn_error $? "no acceptable C compiler found in \$PATH
 
5830
See \`config.log' for more details" "$LINENO" 5; }
 
5831
 
 
5832
# Provide some information about the compiler.
 
5833
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
5834
set X $ac_build_compile
 
5835
ac_compiler=$2
 
5836
for ac_option in --version -v -V -qversion; do
 
5837
  { { ac_try="$ac_compiler $ac_option >&5"
 
5838
case "(($ac_try" in
 
5839
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5840
  *) ac_try_echo=$ac_try;;
 
5841
esac
 
5842
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5843
$as_echo "$ac_try_echo"; } >&5
 
5844
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
5845
  ac_status=$?
 
5846
  if test -s conftest.err; then
 
5847
    sed '10a\
 
5848
... rest of stderr output deleted ...
 
5849
         10q' conftest.err >conftest.er1
 
5850
    cat conftest.er1 >&5
 
5851
  fi
 
5852
  rm -f conftest.er1 conftest.err
 
5853
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5854
  test $ac_status = 0; }
 
5855
done
 
5856
 
 
5857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
5858
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
5859
if ${ac_cv_c_compiler_gnu+:} false; then :
 
5860
  $as_echo_n "(cached) " >&6
 
5861
else
 
5862
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5863
/* end confdefs.h.  */
 
5864
 
 
5865
int
 
5866
main ()
 
5867
{
 
5868
#ifndef __GNUC__
 
5869
       choke me
 
5870
#endif
 
5871
 
 
5872
  ;
 
5873
  return 0;
 
5874
}
 
5875
_ACEOF
 
5876
if ac_fn_c_try_compile "$LINENO"; then :
 
5877
  ac_compiler_gnu=yes
 
5878
else
 
5879
  ac_compiler_gnu=no
 
5880
fi
 
5881
rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
 
5882
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
5883
 
 
5884
fi
 
5885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
5886
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
5887
if test $ac_compiler_gnu = yes; then
 
5888
  GCC=yes
 
5889
else
 
5890
  GCC=
 
5891
fi
 
5892
ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
 
5893
ac_save_CFLAGS=$CFLAGS_FOR_BUILD
 
5894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
 
5895
$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
 
5896
if ${ac_cv_build_prog_cc_g+:} false; then :
 
5897
  $as_echo_n "(cached) " >&6
 
5898
else
 
5899
  ac_save_c_werror_flag=$ac_c_werror_flag
 
5900
   ac_c_werror_flag=yes
 
5901
   ac_cv_build_prog_cc_g=no
 
5902
   CFLAGS_FOR_BUILD="-g"
 
5903
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5904
/* end confdefs.h.  */
 
5905
 
 
5906
int
 
5907
main ()
 
5908
{
 
5909
 
 
5910
  ;
 
5911
  return 0;
 
5912
}
 
5913
_ACEOF
 
5914
if ac_fn_c_try_compile "$LINENO"; then :
 
5915
  ac_cv_build_prog_cc_g=yes
 
5916
else
 
5917
  CFLAGS_FOR_BUILD=""
 
5918
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5919
/* end confdefs.h.  */
 
5920
 
 
5921
int
 
5922
main ()
 
5923
{
 
5924
 
 
5925
  ;
 
5926
  return 0;
 
5927
}
 
5928
_ACEOF
 
5929
if ac_fn_c_try_compile "$LINENO"; then :
 
5930
 
 
5931
else
 
5932
  ac_c_werror_flag=$ac_save_c_werror_flag
 
5933
         CFLAGS_FOR_BUILD="-g"
 
5934
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5935
/* end confdefs.h.  */
 
5936
 
 
5937
int
 
5938
main ()
 
5939
{
 
5940
 
 
5941
  ;
 
5942
  return 0;
 
5943
}
 
5944
_ACEOF
 
5945
if ac_fn_c_try_compile "$LINENO"; then :
 
5946
  ac_cv_build_prog_cc_g=yes
 
5947
fi
 
5948
rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
 
5949
fi
 
5950
rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
 
5951
fi
 
5952
rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
 
5953
   ac_c_werror_flag=$ac_save_c_werror_flag
 
5954
fi
 
5955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
 
5956
$as_echo "$ac_cv_build_prog_cc_g" >&6; }
 
5957
if test "$ac_test_CFLAGS" = set; then
 
5958
  CFLAGS_FOR_BUILD=$ac_save_CFLAGS
 
5959
elif test $ac_cv_build_prog_cc_g = yes; then
 
5960
  if test "$GCC" = yes; then
 
5961
    CFLAGS_FOR_BUILD="-g -O2"
 
5962
  else
 
5963
    CFLAGS_FOR_BUILD="-g"
 
5964
  fi
 
5965
else
 
5966
  if test "$GCC" = yes; then
 
5967
    CFLAGS_FOR_BUILD="-O2"
 
5968
  else
 
5969
    CFLAGS_FOR_BUILD=
 
5970
  fi
 
5971
fi
 
5972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
 
5973
$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
 
5974
if ${ac_cv_prog_cc_c89+:} false; then :
 
5975
  $as_echo_n "(cached) " >&6
 
5976
else
 
5977
  ac_cv_prog_cc_c89=no
 
5978
ac_save_CC=$CC_FOR_BUILD
 
5979
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5980
/* end confdefs.h.  */
 
5981
#include <stdarg.h>
 
5982
#include <stdio.h>
 
5983
struct stat;
 
5984
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
5985
struct buf { int x; };
 
5986
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
5987
static char *e (p, i)
 
5988
     char **p;
 
5989
     int i;
 
5990
{
 
5991
  return p[i];
 
5992
}
 
5993
static char *f (char * (*g) (char **, int), char **p, ...)
 
5994
{
 
5995
  char *s;
 
5996
  va_list v;
 
5997
  va_start (v,p);
 
5998
  s = g (p, va_arg (v,int));
 
5999
  va_end (v);
 
6000
  return s;
 
6001
}
 
6002
 
 
6003
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
6004
   function prototypes and stuff, but not '\xHH' hex character constants.
 
6005
   These don't provoke an error unfortunately, instead are silently treated
 
6006
   as 'x'.  The following induces an error, until -std is added to get
 
6007
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
6008
   array size at least.  It's necessary to write '\x00'==0 to get something
 
6009
   that's true only with -std.  */
 
6010
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
6011
 
 
6012
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
6013
   inside strings and character constants.  */
 
6014
#define FOO(x) 'x'
 
6015
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
6016
 
 
6017
int test (int i, double x);
 
6018
struct s1 {int (*f) (int a);};
 
6019
struct s2 {int (*f) (double a);};
 
6020
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
6021
int argc;
 
6022
char **argv;
 
6023
int
 
6024
main ()
 
6025
{
 
6026
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
6027
  ;
 
6028
  return 0;
 
6029
}
 
6030
_ACEOF
 
6031
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
6032
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
6033
do
 
6034
  CC_FOR_BUILD="$ac_save_CC $ac_arg"
 
6035
  if ac_fn_c_try_compile "$LINENO"; then :
 
6036
  ac_cv_prog_cc_c89=$ac_arg
 
6037
fi
 
6038
rm -f core conftest.err conftest.$ac_build_objext
 
6039
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
6040
done
 
6041
rm -f conftest.$ac_ext
 
6042
CC_FOR_BUILD=$ac_save_CC
 
6043
 
 
6044
fi
 
6045
# AC_CACHE_VAL
 
6046
case "x$ac_cv_prog_cc_c89" in
 
6047
  x)
 
6048
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
6049
$as_echo "none needed" >&6; } ;;
 
6050
  xno)
 
6051
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
6052
$as_echo "unsupported" >&6; } ;;
 
6053
  *)
 
6054
    CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
 
6055
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
6056
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
6057
esac
 
6058
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
6059
 
 
6060
fi
 
6061
 
 
6062
ac_ext=c
 
6063
ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
 
6064
ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
 
6065
ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
 
6066
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6067
 
 
6068
depcc="$CC_FOR_BUILD"   am_compiler_list=
 
6069
 
 
6070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
6071
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
6072
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
6073
  $as_echo_n "(cached) " >&6
 
6074
else
 
6075
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6076
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6077
  # making bogus files that we don't know about and never remove.  For
 
6078
  # instance it was reported that on HP-UX the gcc test will end up
 
6079
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
6080
  # in D".
 
6081
  rm -rf conftest.dir
 
6082
  mkdir conftest.dir
 
6083
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6084
  # using a relative directory.
 
6085
  cp "$am_depcomp" conftest.dir
 
6086
  cd conftest.dir
 
6087
  # We will build objects and dependencies in a subdirectory because
 
6088
  # it helps to detect inapplicable dependency modes.  For instance
 
6089
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6090
  # side effect of compilation, but ICC will put the dependencies in
 
6091
  # the current directory while Tru64 will put them in the object
 
6092
  # directory.
 
6093
  mkdir sub
 
6094
 
 
6095
  am_cv_CC_dependencies_compiler_type=none
 
6096
  if test "$am_compiler_list" = ""; then
 
6097
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6098
  fi
 
6099
  am__universal=false
 
6100
  case " $depcc " in #(
 
6101
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
6102
     esac
 
6103
 
 
6104
  for depmode in $am_compiler_list; do
 
6105
    # Setup a source with many dependencies, because some compilers
 
6106
    # like to wrap large dependency lists on column 80 (with \), and
 
6107
    # we should not choose a depcomp mode which is confused by this.
 
6108
    #
 
6109
    # We need to recreate these files for each test, as the compiler may
 
6110
    # overwrite some of them when testing with obscure command lines.
 
6111
    # This happens at least with the AIX C compiler.
 
6112
    : > sub/conftest.c
 
6113
    for i in 1 2 3 4 5 6; do
 
6114
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6115
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
6116
      # Solaris 10 /bin/sh.
 
6117
      echo '/* dummy */' > sub/conftst$i.h
 
6118
    done
 
6119
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6120
 
 
6121
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
6122
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6123
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
6124
    # versions had trouble with output in subdirs.
 
6125
    am__obj=sub/conftest.${OBJEXT-o}
 
6126
    am__minus_obj="-o $am__obj"
 
6127
    case $depmode in
 
6128
    gcc)
 
6129
      # This depmode causes a compiler race in universal mode.
 
6130
      test "$am__universal" = false || continue
 
6131
      ;;
 
6132
    nosideeffect)
 
6133
      # After this tag, mechanisms are not by side-effect, so they'll
 
6134
      # only be used when explicitly requested.
 
6135
      if test "x$enable_dependency_tracking" = xyes; then
 
6136
        continue
 
6137
      else
 
6138
        break
 
6139
      fi
 
6140
      ;;
 
6141
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
6142
      # This compiler won't grok '-c -o', but also, the minuso test has
 
6143
      # not run yet.  These depmodes are late enough in the game, and
 
6144
      # so weak that their functioning should not be impacted.
 
6145
      am__obj=conftest.${OBJEXT-o}
 
6146
      am__minus_obj=
 
6147
      ;;
 
6148
    none) break ;;
 
6149
    esac
 
6150
    if depmode=$depmode \
 
6151
       source=sub/conftest.c object=$am__obj \
 
6152
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6153
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
6154
         >/dev/null 2>conftest.err &&
 
6155
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6156
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6157
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
6158
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6159
      # icc doesn't choke on unknown options, it will just issue warnings
 
6160
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6161
      # that says an option was ignored or not supported.
 
6162
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6163
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6164
      # The diagnosis changed in icc 8.0:
 
6165
      #   icc: Command line remark: option '-MP' not supported
 
6166
      if (grep 'ignoring option' conftest.err ||
 
6167
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6168
        am_cv_CC_dependencies_compiler_type=$depmode
 
6169
        break
 
6170
      fi
 
6171
    fi
 
6172
  done
 
6173
 
 
6174
  cd ..
 
6175
  rm -rf conftest.dir
 
6176
else
 
6177
  am_cv_CC_dependencies_compiler_type=none
 
6178
fi
 
6179
 
 
6180
fi
 
6181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
6182
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
6183
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
6184
 
 
6185
 if
 
6186
  test "x$enable_dependency_tracking" != xno \
 
6187
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
6188
  am__fastdepCC_TRUE=
 
6189
  am__fastdepCC_FALSE='#'
 
6190
else
 
6191
  am__fastdepCC_TRUE='#'
 
6192
  am__fastdepCC_FALSE=
 
6193
fi
 
6194
 
 
6195
 
 
6196
ac_ext=c
 
6197
ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
 
6198
ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
 
6199
ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
 
6200
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
6202
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6203
# On Suns, sometimes $CPP names a directory.
 
6204
if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
 
6205
  CPP_FOR_BUILD=
 
6206
fi
 
6207
if test -z "$CPP_FOR_BUILD"; then
 
6208
  if ${ac_cv_build_prog_CPP+:} false; then :
 
6209
  $as_echo_n "(cached) " >&6
 
6210
else
 
6211
      # Double quotes because CPP needs to be expanded
 
6212
    for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
 
6213
    do
 
6214
      ac_preproc_ok=false
 
6215
for ac_c_preproc_warn_flag in '' yes
 
6216
do
 
6217
  # Use a header file that comes with gcc, so configuring glibc
 
6218
  # with a fresh cross-compiler works.
 
6219
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6220
  # <limits.h> exists even on freestanding compilers.
 
6221
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6222
  # not just through cpp. "Syntax error" is here to catch this case.
 
6223
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6224
/* end confdefs.h.  */
 
6225
#ifdef __STDC__
 
6226
# include <limits.h>
 
6227
#else
 
6228
# include <assert.h>
 
6229
#endif
 
6230
                     Syntax error
 
6231
_ACEOF
 
6232
if ac_fn_c_try_cpp "$LINENO"; then :
 
6233
 
 
6234
else
 
6235
  # Broken: fails on valid input.
 
6236
continue
 
6237
fi
 
6238
rm -f conftest.err conftest.i conftest.$ac_ext
 
6239
 
 
6240
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6241
  # can be detected and how.
 
6242
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6243
/* end confdefs.h.  */
 
6244
#include <ac_nonexistent.h>
 
6245
_ACEOF
 
6246
if ac_fn_c_try_cpp "$LINENO"; then :
 
6247
  # Broken: success on invalid input.
 
6248
continue
 
6249
else
 
6250
  # Passes both tests.
 
6251
ac_preproc_ok=:
 
6252
break
 
6253
fi
 
6254
rm -f conftest.err conftest.i conftest.$ac_ext
 
6255
 
 
6256
done
 
6257
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6258
rm -f conftest.i conftest.err conftest.$ac_ext
 
6259
if $ac_preproc_ok; then :
 
6260
  break
 
6261
fi
 
6262
 
 
6263
    done
 
6264
    ac_cv_build_prog_CPP=$CPP_FOR_BUILD
 
6265
 
 
6266
fi
 
6267
  CPP_FOR_BUILD=$ac_cv_build_prog_CPP
 
6268
else
 
6269
  ac_cv_build_prog_CPP=$CPP_FOR_BUILD
 
6270
fi
 
6271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
 
6272
$as_echo "$CPP_FOR_BUILD" >&6; }
 
6273
ac_preproc_ok=false
 
6274
for ac_c_preproc_warn_flag in '' yes
 
6275
do
 
6276
  # Use a header file that comes with gcc, so configuring glibc
 
6277
  # with a fresh cross-compiler works.
 
6278
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6279
  # <limits.h> exists even on freestanding compilers.
 
6280
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6281
  # not just through cpp. "Syntax error" is here to catch this case.
 
6282
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6283
/* end confdefs.h.  */
 
6284
#ifdef __STDC__
 
6285
# include <limits.h>
 
6286
#else
 
6287
# include <assert.h>
 
6288
#endif
 
6289
                     Syntax error
 
6290
_ACEOF
 
6291
if ac_fn_c_try_cpp "$LINENO"; then :
 
6292
 
 
6293
else
 
6294
  # Broken: fails on valid input.
 
6295
continue
 
6296
fi
 
6297
rm -f conftest.err conftest.i conftest.$ac_ext
 
6298
 
 
6299
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6300
  # can be detected and how.
 
6301
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6302
/* end confdefs.h.  */
 
6303
#include <ac_nonexistent.h>
 
6304
_ACEOF
 
6305
if ac_fn_c_try_cpp "$LINENO"; then :
 
6306
  # Broken: success on invalid input.
 
6307
continue
 
6308
else
 
6309
  # Passes both tests.
 
6310
ac_preproc_ok=:
 
6311
break
 
6312
fi
 
6313
rm -f conftest.err conftest.i conftest.$ac_ext
 
6314
 
 
6315
done
 
6316
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6317
rm -f conftest.i conftest.err conftest.$ac_ext
 
6318
if $ac_preproc_ok; then :
 
6319
 
 
6320
else
 
6321
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6322
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6323
as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
 
6324
See \`config.log' for more details" "$LINENO" 5; }
 
6325
fi
 
6326
 
 
6327
ac_ext=c
 
6328
ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
 
6329
ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
 
6330
ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
 
6331
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6332
 
 
6333
 
 
6334
 
 
6335
ac_tool_prefix=$save_ac_tool_prefix
 
6336
cross_compiling=$save_cross_compiling
 
6337
 
 
6338
 
 
6339
BUILD_EXEEXT=$ac_build_exeext
 
6340
BUILD_OBJEXT=$ac_build_objext
 
6341
 
 
6342
ac_ext=cpp
 
6343
ac_cpp='$CXXCPP $CPPFLAGS'
 
6344
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6345
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6346
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6347
if test -z "$CXX"; then
 
6348
  if test -n "$CCC"; then
 
6349
    CXX=$CCC
 
6350
  else
 
6351
    if test -n "$ac_tool_prefix"; then
 
6352
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
6353
  do
 
6354
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6355
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6357
$as_echo_n "checking for $ac_word... " >&6; }
 
6358
if ${ac_cv_prog_CXX+:} false; then :
 
6359
  $as_echo_n "(cached) " >&6
 
6360
else
 
6361
  if test -n "$CXX"; then
 
6362
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
6363
else
 
6364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6365
for as_dir in $PATH
 
6366
do
 
6367
  IFS=$as_save_IFS
 
6368
  test -z "$as_dir" && as_dir=.
 
6369
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6370
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6371
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
6372
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6373
    break 2
 
6374
  fi
 
6375
done
 
6376
  done
 
6377
IFS=$as_save_IFS
 
6378
 
 
6379
fi
 
6380
fi
 
6381
CXX=$ac_cv_prog_CXX
 
6382
if test -n "$CXX"; then
 
6383
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
6384
$as_echo "$CXX" >&6; }
 
6385
else
 
6386
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6387
$as_echo "no" >&6; }
 
6388
fi
 
6389
 
 
6390
 
 
6391
    test -n "$CXX" && break
 
6392
  done
 
6393
fi
 
6394
if test -z "$CXX"; then
 
6395
  ac_ct_CXX=$CXX
 
6396
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
6397
do
 
6398
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6399
set dummy $ac_prog; ac_word=$2
 
6400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6401
$as_echo_n "checking for $ac_word... " >&6; }
 
6402
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
6403
  $as_echo_n "(cached) " >&6
 
6404
else
 
6405
  if test -n "$ac_ct_CXX"; then
 
6406
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
6407
else
 
6408
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6409
for as_dir in $PATH
 
6410
do
 
6411
  IFS=$as_save_IFS
 
6412
  test -z "$as_dir" && as_dir=.
 
6413
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6414
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6415
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
6416
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6417
    break 2
 
6418
  fi
 
6419
done
 
6420
  done
 
6421
IFS=$as_save_IFS
 
6422
 
 
6423
fi
 
6424
fi
 
6425
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
6426
if test -n "$ac_ct_CXX"; then
 
6427
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
6428
$as_echo "$ac_ct_CXX" >&6; }
 
6429
else
 
6430
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6431
$as_echo "no" >&6; }
 
6432
fi
 
6433
 
 
6434
 
 
6435
  test -n "$ac_ct_CXX" && break
 
6436
done
 
6437
 
 
6438
  if test "x$ac_ct_CXX" = x; then
 
6439
    CXX="g++"
 
6440
  else
 
6441
    case $cross_compiling:$ac_tool_warned in
 
6442
yes:)
 
6443
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6444
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6445
ac_tool_warned=yes ;;
 
6446
esac
 
6447
    CXX=$ac_ct_CXX
 
6448
  fi
 
6449
fi
 
6450
 
 
6451
  fi
 
6452
fi
 
6453
# Provide some information about the compiler.
 
6454
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
6455
set X $ac_compile
 
6456
ac_compiler=$2
 
6457
for ac_option in --version -v -V -qversion; do
 
6458
  { { ac_try="$ac_compiler $ac_option >&5"
 
6459
case "(($ac_try" in
 
6460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6461
  *) ac_try_echo=$ac_try;;
 
6462
esac
 
6463
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6464
$as_echo "$ac_try_echo"; } >&5
 
6465
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
6466
  ac_status=$?
 
6467
  if test -s conftest.err; then
 
6468
    sed '10a\
 
6469
... rest of stderr output deleted ...
 
6470
         10q' conftest.err >conftest.er1
 
6471
    cat conftest.er1 >&5
 
6472
  fi
 
6473
  rm -f conftest.er1 conftest.err
 
6474
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6475
  test $ac_status = 0; }
 
6476
done
 
6477
 
 
6478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
6479
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
6480
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
6481
  $as_echo_n "(cached) " >&6
 
6482
else
 
6483
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6484
/* end confdefs.h.  */
 
6485
 
 
6486
int
 
6487
main ()
 
6488
{
 
6489
#ifndef __GNUC__
 
6490
       choke me
 
6491
#endif
 
6492
 
 
6493
  ;
 
6494
  return 0;
 
6495
}
 
6496
_ACEOF
 
6497
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6498
  ac_compiler_gnu=yes
 
6499
else
 
6500
  ac_compiler_gnu=no
 
6501
fi
 
6502
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6503
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
6504
 
 
6505
fi
 
6506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
6507
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
6508
if test $ac_compiler_gnu = yes; then
 
6509
  GXX=yes
 
6510
else
 
6511
  GXX=
 
6512
fi
 
6513
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
6514
ac_save_CXXFLAGS=$CXXFLAGS
 
6515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
6516
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
6517
if ${ac_cv_prog_cxx_g+:} false; then :
 
6518
  $as_echo_n "(cached) " >&6
 
6519
else
 
6520
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
6521
   ac_cxx_werror_flag=yes
 
6522
   ac_cv_prog_cxx_g=no
 
6523
   CXXFLAGS="-g"
 
6524
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6525
/* end confdefs.h.  */
 
6526
 
 
6527
int
 
6528
main ()
 
6529
{
 
6530
 
 
6531
  ;
 
6532
  return 0;
 
6533
}
 
6534
_ACEOF
 
6535
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6536
  ac_cv_prog_cxx_g=yes
 
6537
else
 
6538
  CXXFLAGS=""
 
6539
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6540
/* end confdefs.h.  */
 
6541
 
 
6542
int
 
6543
main ()
 
6544
{
 
6545
 
 
6546
  ;
 
6547
  return 0;
 
6548
}
 
6549
_ACEOF
 
6550
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6551
 
 
6552
else
 
6553
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6554
         CXXFLAGS="-g"
 
6555
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6556
/* end confdefs.h.  */
 
6557
 
 
6558
int
 
6559
main ()
 
6560
{
 
6561
 
 
6562
  ;
 
6563
  return 0;
 
6564
}
 
6565
_ACEOF
 
6566
if ac_fn_cxx_try_compile "$LINENO"; then :
 
6567
  ac_cv_prog_cxx_g=yes
 
6568
fi
 
6569
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6570
fi
 
6571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6572
fi
 
6573
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6574
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6575
fi
 
6576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
6577
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
6578
if test "$ac_test_CXXFLAGS" = set; then
 
6579
  CXXFLAGS=$ac_save_CXXFLAGS
 
6580
elif test $ac_cv_prog_cxx_g = yes; then
 
6581
  if test "$GXX" = yes; then
 
6582
    CXXFLAGS="-g -O2"
 
6583
  else
 
6584
    CXXFLAGS="-g"
 
6585
  fi
 
6586
else
 
6587
  if test "$GXX" = yes; then
 
6588
    CXXFLAGS="-O2"
 
6589
  else
 
6590
    CXXFLAGS=
 
6591
  fi
 
6592
fi
 
6593
ac_ext=c
 
6594
ac_cpp='$CPP $CPPFLAGS'
 
6595
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6596
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6597
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6598
 
 
6599
depcc="$CXX"  am_compiler_list=
 
6600
 
 
6601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
6602
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
6603
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
6604
  $as_echo_n "(cached) " >&6
 
6605
else
 
6606
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6607
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6608
  # making bogus files that we don't know about and never remove.  For
 
6609
  # instance it was reported that on HP-UX the gcc test will end up
 
6610
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
6611
  # in D".
 
6612
  rm -rf conftest.dir
 
6613
  mkdir conftest.dir
 
6614
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6615
  # using a relative directory.
 
6616
  cp "$am_depcomp" conftest.dir
 
6617
  cd conftest.dir
 
6618
  # We will build objects and dependencies in a subdirectory because
 
6619
  # it helps to detect inapplicable dependency modes.  For instance
 
6620
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6621
  # side effect of compilation, but ICC will put the dependencies in
 
6622
  # the current directory while Tru64 will put them in the object
 
6623
  # directory.
 
6624
  mkdir sub
 
6625
 
 
6626
  am_cv_CXX_dependencies_compiler_type=none
 
6627
  if test "$am_compiler_list" = ""; then
 
6628
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6629
  fi
 
6630
  am__universal=false
 
6631
  case " $depcc " in #(
 
6632
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
6633
     esac
 
6634
 
 
6635
  for depmode in $am_compiler_list; do
 
6636
    # Setup a source with many dependencies, because some compilers
 
6637
    # like to wrap large dependency lists on column 80 (with \), and
 
6638
    # we should not choose a depcomp mode which is confused by this.
 
6639
    #
 
6640
    # We need to recreate these files for each test, as the compiler may
 
6641
    # overwrite some of them when testing with obscure command lines.
 
6642
    # This happens at least with the AIX C compiler.
 
6643
    : > sub/conftest.c
 
6644
    for i in 1 2 3 4 5 6; do
 
6645
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6646
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
6647
      # Solaris 10 /bin/sh.
 
6648
      echo '/* dummy */' > sub/conftst$i.h
 
6649
    done
 
6650
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6651
 
 
6652
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
6653
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6654
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
6655
    # versions had trouble with output in subdirs.
 
6656
    am__obj=sub/conftest.${OBJEXT-o}
 
6657
    am__minus_obj="-o $am__obj"
 
6658
    case $depmode in
 
6659
    gcc)
 
6660
      # This depmode causes a compiler race in universal mode.
 
6661
      test "$am__universal" = false || continue
 
6662
      ;;
 
6663
    nosideeffect)
 
6664
      # After this tag, mechanisms are not by side-effect, so they'll
 
6665
      # only be used when explicitly requested.
 
6666
      if test "x$enable_dependency_tracking" = xyes; then
 
6667
        continue
 
6668
      else
 
6669
        break
 
6670
      fi
 
6671
      ;;
 
6672
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
6673
      # This compiler won't grok '-c -o', but also, the minuso test has
 
6674
      # not run yet.  These depmodes are late enough in the game, and
 
6675
      # so weak that their functioning should not be impacted.
 
6676
      am__obj=conftest.${OBJEXT-o}
 
6677
      am__minus_obj=
 
6678
      ;;
 
6679
    none) break ;;
 
6680
    esac
 
6681
    if depmode=$depmode \
 
6682
       source=sub/conftest.c object=$am__obj \
 
6683
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6684
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
6685
         >/dev/null 2>conftest.err &&
 
6686
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6687
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6688
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
6689
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6690
      # icc doesn't choke on unknown options, it will just issue warnings
 
6691
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6692
      # that says an option was ignored or not supported.
 
6693
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6694
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6695
      # The diagnosis changed in icc 8.0:
 
6696
      #   icc: Command line remark: option '-MP' not supported
 
6697
      if (grep 'ignoring option' conftest.err ||
 
6698
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6699
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6700
        break
 
6701
      fi
 
6702
    fi
 
6703
  done
 
6704
 
 
6705
  cd ..
 
6706
  rm -rf conftest.dir
 
6707
else
 
6708
  am_cv_CXX_dependencies_compiler_type=none
 
6709
fi
 
6710
 
 
6711
fi
 
6712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6713
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
6714
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6715
 
 
6716
 if
 
6717
  test "x$enable_dependency_tracking" != xno \
 
6718
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6719
  am__fastdepCXX_TRUE=
 
6720
  am__fastdepCXX_FALSE='#'
 
6721
else
 
6722
  am__fastdepCXX_TRUE='#'
 
6723
  am__fastdepCXX_FALSE=
 
6724
fi
 
6725
 
 
6726
 
 
6727
ac_ext=cpp
 
6728
ac_cpp='$CXXCPP $CPPFLAGS'
 
6729
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6730
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6731
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
6733
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
6734
if test -z "$CXXCPP"; then
 
6735
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
6736
  $as_echo_n "(cached) " >&6
 
6737
else
 
6738
      # Double quotes because CXXCPP needs to be expanded
 
6739
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6740
    do
 
6741
      ac_preproc_ok=false
 
6742
for ac_cxx_preproc_warn_flag in '' yes
 
6743
do
 
6744
  # Use a header file that comes with gcc, so configuring glibc
 
6745
  # with a fresh cross-compiler works.
 
6746
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6747
  # <limits.h> exists even on freestanding compilers.
 
6748
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6749
  # not just through cpp. "Syntax error" is here to catch this case.
 
6750
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6751
/* end confdefs.h.  */
 
6752
#ifdef __STDC__
 
6753
# include <limits.h>
 
6754
#else
 
6755
# include <assert.h>
 
6756
#endif
 
6757
                     Syntax error
 
6758
_ACEOF
 
6759
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
6760
 
 
6761
else
 
6762
  # Broken: fails on valid input.
 
6763
continue
 
6764
fi
 
6765
rm -f conftest.err conftest.i conftest.$ac_ext
 
6766
 
 
6767
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6768
  # can be detected and how.
 
6769
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6770
/* end confdefs.h.  */
 
6771
#include <ac_nonexistent.h>
 
6772
_ACEOF
 
6773
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
6774
  # Broken: success on invalid input.
 
6775
continue
 
6776
else
 
6777
  # Passes both tests.
 
6778
ac_preproc_ok=:
 
6779
break
 
6780
fi
 
6781
rm -f conftest.err conftest.i conftest.$ac_ext
 
6782
 
 
6783
done
 
6784
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6785
rm -f conftest.i conftest.err conftest.$ac_ext
 
6786
if $ac_preproc_ok; then :
 
6787
  break
 
6788
fi
 
6789
 
 
6790
    done
 
6791
    ac_cv_prog_CXXCPP=$CXXCPP
 
6792
 
 
6793
fi
 
6794
  CXXCPP=$ac_cv_prog_CXXCPP
 
6795
else
 
6796
  ac_cv_prog_CXXCPP=$CXXCPP
 
6797
fi
 
6798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
6799
$as_echo "$CXXCPP" >&6; }
 
6800
ac_preproc_ok=false
 
6801
for ac_cxx_preproc_warn_flag in '' yes
 
6802
do
 
6803
  # Use a header file that comes with gcc, so configuring glibc
 
6804
  # with a fresh cross-compiler works.
 
6805
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6806
  # <limits.h> exists even on freestanding compilers.
 
6807
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6808
  # not just through cpp. "Syntax error" is here to catch this case.
 
6809
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6810
/* end confdefs.h.  */
 
6811
#ifdef __STDC__
 
6812
# include <limits.h>
 
6813
#else
 
6814
# include <assert.h>
 
6815
#endif
 
6816
                     Syntax error
 
6817
_ACEOF
 
6818
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
6819
 
 
6820
else
 
6821
  # Broken: fails on valid input.
 
6822
continue
 
6823
fi
 
6824
rm -f conftest.err conftest.i conftest.$ac_ext
 
6825
 
 
6826
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6827
  # can be detected and how.
 
6828
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6829
/* end confdefs.h.  */
 
6830
#include <ac_nonexistent.h>
 
6831
_ACEOF
 
6832
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
6833
  # Broken: success on invalid input.
 
6834
continue
 
6835
else
 
6836
  # Passes both tests.
 
6837
ac_preproc_ok=:
 
6838
break
 
6839
fi
 
6840
rm -f conftest.err conftest.i conftest.$ac_ext
 
6841
 
 
6842
done
 
6843
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6844
rm -f conftest.i conftest.err conftest.$ac_ext
 
6845
if $ac_preproc_ok; then :
 
6846
 
 
6847
else
 
6848
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6849
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6850
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
6851
See \`config.log' for more details" "$LINENO" 5; }
 
6852
fi
 
6853
 
 
6854
ac_ext=c
 
6855
ac_cpp='$CPP $CPPFLAGS'
 
6856
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6857
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6858
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6859
 
 
6860
 
 
6861
 
 
6862
save_cross_compiling=$cross_compiling
 
6863
save_ac_tool_prefix=$ac_tool_prefix
 
6864
cross_compiling=no
 
6865
ac_tool_prefix=
 
6866
 
 
6867
ac_ext=cpp
 
6868
ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
 
6869
ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
 
6870
ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6871
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6872
if test -z "$CXX_FOR_BUILD"; then
 
6873
  if test -n "$CCC"; then
 
6874
    CXX_FOR_BUILD=$CCC
 
6875
  else
 
6876
    if test -n "$ac_tool_prefix"; then
 
6877
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
6878
  do
 
6879
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6880
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6882
$as_echo_n "checking for $ac_word... " >&6; }
 
6883
if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
 
6884
  $as_echo_n "(cached) " >&6
 
6885
else
 
6886
  if test -n "$CXX_FOR_BUILD"; then
 
6887
  ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
 
6888
else
 
6889
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6890
for as_dir in $PATH
 
6891
do
 
6892
  IFS=$as_save_IFS
 
6893
  test -z "$as_dir" && as_dir=.
 
6894
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6895
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6896
    ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
 
6897
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6898
    break 2
 
6899
  fi
 
6900
done
 
6901
  done
 
6902
IFS=$as_save_IFS
 
6903
 
 
6904
fi
 
6905
fi
 
6906
CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
 
6907
if test -n "$CXX_FOR_BUILD"; then
 
6908
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
 
6909
$as_echo "$CXX_FOR_BUILD" >&6; }
 
6910
else
 
6911
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6912
$as_echo "no" >&6; }
 
6913
fi
 
6914
 
 
6915
 
 
6916
    test -n "$CXX_FOR_BUILD" && break
 
6917
  done
 
6918
fi
 
6919
if test -z "$CXX_FOR_BUILD"; then
 
6920
  ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
 
6921
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
6922
do
 
6923
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6924
set dummy $ac_prog; ac_word=$2
 
6925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6926
$as_echo_n "checking for $ac_word... " >&6; }
 
6927
if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
 
6928
  $as_echo_n "(cached) " >&6
 
6929
else
 
6930
  if test -n "$ac_ct_CXX_FOR_BUILD"; then
 
6931
  ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
 
6932
else
 
6933
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6934
for as_dir in $PATH
 
6935
do
 
6936
  IFS=$as_save_IFS
 
6937
  test -z "$as_dir" && as_dir=.
 
6938
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6939
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6940
    ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
 
6941
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6942
    break 2
 
6943
  fi
 
6944
done
 
6945
  done
 
6946
IFS=$as_save_IFS
 
6947
 
 
6948
fi
 
6949
fi
 
6950
ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
 
6951
if test -n "$ac_ct_CXX_FOR_BUILD"; then
 
6952
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
 
6953
$as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
 
6954
else
 
6955
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6956
$as_echo "no" >&6; }
 
6957
fi
 
6958
 
 
6959
 
 
6960
  test -n "$ac_ct_CXX_FOR_BUILD" && break
 
6961
done
 
6962
 
 
6963
  if test "x$ac_ct_CXX_FOR_BUILD" = x; then
 
6964
    CXX_FOR_BUILD="g++"
 
6965
  else
 
6966
    case $cross_compiling:$ac_tool_warned in
 
6967
yes:)
 
6968
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
 
6969
$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
 
6970
ac_tool_warned=yes ;;
 
6971
esac
 
6972
    CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
 
6973
  fi
 
6974
fi
 
6975
 
 
6976
  fi
 
6977
fi
 
6978
# Provide some information about the compiler.
 
6979
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
6980
set X $ac_build_compile
 
6981
ac_compiler=$2
 
6982
for ac_option in --version -v -V -qversion; do
 
6983
  { { ac_try="$ac_compiler $ac_option >&5"
 
6984
case "(($ac_try" in
 
6985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6986
  *) ac_try_echo=$ac_try;;
 
6987
esac
 
6988
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6989
$as_echo "$ac_try_echo"; } >&5
 
6990
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
6991
  ac_status=$?
 
6992
  if test -s conftest.err; then
 
6993
    sed '10a\
 
6994
... rest of stderr output deleted ...
 
6995
         10q' conftest.err >conftest.er1
 
6996
    cat conftest.er1 >&5
 
6997
  fi
 
6998
  rm -f conftest.er1 conftest.err
 
6999
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7000
  test $ac_status = 0; }
 
7001
done
 
7002
 
 
7003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
7004
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
7005
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
7006
  $as_echo_n "(cached) " >&6
 
7007
else
 
7008
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7009
/* end confdefs.h.  */
 
7010
 
 
7011
int
 
7012
main ()
 
7013
{
 
7014
#ifndef __GNUC__
 
7015
       choke me
 
7016
#endif
 
7017
 
 
7018
  ;
 
7019
  return 0;
 
7020
}
 
7021
_ACEOF
 
7022
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7023
  ac_compiler_gnu=yes
 
7024
else
 
7025
  ac_compiler_gnu=no
 
7026
fi
 
7027
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7028
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
7029
 
 
7030
fi
 
7031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
7032
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
7033
if test $ac_compiler_gnu = yes; then
 
7034
  GXX=yes
 
7035
else
 
7036
  GXX=
 
7037
fi
 
7038
ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
 
7039
ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
 
7040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
 
7041
$as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
 
7042
if ${ac_cv_build_prog_cxx_g+:} false; then :
 
7043
  $as_echo_n "(cached) " >&6
 
7044
else
 
7045
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
7046
   ac_cxx_werror_flag=yes
 
7047
   ac_cv_build_prog_cxx_g=no
 
7048
   CXXFLAGS_FOR_BUILD="-g"
 
7049
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7050
/* end confdefs.h.  */
 
7051
 
 
7052
int
 
7053
main ()
 
7054
{
 
7055
 
 
7056
  ;
 
7057
  return 0;
 
7058
}
 
7059
_ACEOF
 
7060
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7061
  ac_cv_build_prog_cxx_g=yes
 
7062
else
 
7063
  CXXFLAGS_FOR_BUILD=""
 
7064
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7065
/* end confdefs.h.  */
 
7066
 
 
7067
int
 
7068
main ()
 
7069
{
 
7070
 
 
7071
  ;
 
7072
  return 0;
 
7073
}
 
7074
_ACEOF
 
7075
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7076
 
 
7077
else
 
7078
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
7079
         CXXFLAGS_FOR_BUILD="-g"
 
7080
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7081
/* end confdefs.h.  */
 
7082
 
 
7083
int
 
7084
main ()
 
7085
{
 
7086
 
 
7087
  ;
 
7088
  return 0;
 
7089
}
 
7090
_ACEOF
 
7091
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7092
  ac_cv_build_prog_cxx_g=yes
 
7093
fi
 
7094
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7095
fi
 
7096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7097
fi
 
7098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7099
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
7100
fi
 
7101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
 
7102
$as_echo "$ac_cv_build_prog_cxx_g" >&6; }
 
7103
if test "$ac_test_CXXFLAGS" = set; then
 
7104
  CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
 
7105
elif test $ac_cv_build_prog_cxx_g = yes; then
 
7106
  if test "$GXX" = yes; then
 
7107
    CXXFLAGS_FOR_BUILD="-g -O2"
 
7108
  else
 
7109
    CXXFLAGS_FOR_BUILD="-g"
 
7110
  fi
 
7111
else
 
7112
  if test "$GXX" = yes; then
 
7113
    CXXFLAGS_FOR_BUILD="-O2"
 
7114
  else
 
7115
    CXXFLAGS_FOR_BUILD=
 
7116
  fi
 
7117
fi
 
7118
ac_ext=c
 
7119
ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
 
7120
ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
 
7121
ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7122
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7123
 
 
7124
depcc="$CXX_FOR_BUILD"  am_compiler_list=
 
7125
 
 
7126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
7127
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
7128
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
7129
  $as_echo_n "(cached) " >&6
 
7130
else
 
7131
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
7132
  # We make a subdir and do the tests there.  Otherwise we can end up
 
7133
  # making bogus files that we don't know about and never remove.  For
 
7134
  # instance it was reported that on HP-UX the gcc test will end up
 
7135
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
7136
  # in D".
 
7137
  rm -rf conftest.dir
 
7138
  mkdir conftest.dir
 
7139
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
7140
  # using a relative directory.
 
7141
  cp "$am_depcomp" conftest.dir
 
7142
  cd conftest.dir
 
7143
  # We will build objects and dependencies in a subdirectory because
 
7144
  # it helps to detect inapplicable dependency modes.  For instance
 
7145
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
7146
  # side effect of compilation, but ICC will put the dependencies in
 
7147
  # the current directory while Tru64 will put them in the object
 
7148
  # directory.
 
7149
  mkdir sub
 
7150
 
 
7151
  am_cv_CXX_dependencies_compiler_type=none
 
7152
  if test "$am_compiler_list" = ""; then
 
7153
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
7154
  fi
 
7155
  am__universal=false
 
7156
  case " $depcc " in #(
 
7157
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
7158
     esac
 
7159
 
 
7160
  for depmode in $am_compiler_list; do
 
7161
    # Setup a source with many dependencies, because some compilers
 
7162
    # like to wrap large dependency lists on column 80 (with \), and
 
7163
    # we should not choose a depcomp mode which is confused by this.
 
7164
    #
 
7165
    # We need to recreate these files for each test, as the compiler may
 
7166
    # overwrite some of them when testing with obscure command lines.
 
7167
    # This happens at least with the AIX C compiler.
 
7168
    : > sub/conftest.c
 
7169
    for i in 1 2 3 4 5 6; do
 
7170
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
7171
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
7172
      # Solaris 10 /bin/sh.
 
7173
      echo '/* dummy */' > sub/conftst$i.h
 
7174
    done
 
7175
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
7176
 
 
7177
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
7178
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7179
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
7180
    # versions had trouble with output in subdirs.
 
7181
    am__obj=sub/conftest.${OBJEXT-o}
 
7182
    am__minus_obj="-o $am__obj"
 
7183
    case $depmode in
 
7184
    gcc)
 
7185
      # This depmode causes a compiler race in universal mode.
 
7186
      test "$am__universal" = false || continue
 
7187
      ;;
 
7188
    nosideeffect)
 
7189
      # After this tag, mechanisms are not by side-effect, so they'll
 
7190
      # only be used when explicitly requested.
 
7191
      if test "x$enable_dependency_tracking" = xyes; then
 
7192
        continue
 
7193
      else
 
7194
        break
 
7195
      fi
 
7196
      ;;
 
7197
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
7198
      # This compiler won't grok '-c -o', but also, the minuso test has
 
7199
      # not run yet.  These depmodes are late enough in the game, and
 
7200
      # so weak that their functioning should not be impacted.
 
7201
      am__obj=conftest.${OBJEXT-o}
 
7202
      am__minus_obj=
 
7203
      ;;
 
7204
    none) break ;;
 
7205
    esac
 
7206
    if depmode=$depmode \
 
7207
       source=sub/conftest.c object=$am__obj \
 
7208
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
7209
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
7210
         >/dev/null 2>conftest.err &&
 
7211
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
7212
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
7213
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
7214
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
7215
      # icc doesn't choke on unknown options, it will just issue warnings
 
7216
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7217
      # that says an option was ignored or not supported.
 
7218
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7219
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7220
      # The diagnosis changed in icc 8.0:
 
7221
      #   icc: Command line remark: option '-MP' not supported
 
7222
      if (grep 'ignoring option' conftest.err ||
 
7223
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
7224
        am_cv_CXX_dependencies_compiler_type=$depmode
 
7225
        break
 
7226
      fi
 
7227
    fi
 
7228
  done
 
7229
 
 
7230
  cd ..
 
7231
  rm -rf conftest.dir
 
7232
else
 
7233
  am_cv_CXX_dependencies_compiler_type=none
 
7234
fi
 
7235
 
 
7236
fi
 
7237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
7238
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
7239
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
7240
 
 
7241
 if
 
7242
  test "x$enable_dependency_tracking" != xno \
 
7243
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
7244
  am__fastdepCXX_TRUE=
 
7245
  am__fastdepCXX_FALSE='#'
 
7246
else
 
7247
  am__fastdepCXX_TRUE='#'
 
7248
  am__fastdepCXX_FALSE=
 
7249
fi
 
7250
 
 
7251
 
 
7252
ac_ext=cpp
 
7253
ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
 
7254
ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
 
7255
ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7256
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
7258
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
7259
if test -z "$CXXCPP_FOR_BUILD"; then
 
7260
  if ${ac_cv_build_prog_CXXCPP+:} false; then :
 
7261
  $as_echo_n "(cached) " >&6
 
7262
else
 
7263
      # Double quotes because CXXCPP needs to be expanded
 
7264
    for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
 
7265
    do
 
7266
      ac_preproc_ok=false
 
7267
for ac_cxx_preproc_warn_flag in '' yes
 
7268
do
 
7269
  # Use a header file that comes with gcc, so configuring glibc
 
7270
  # with a fresh cross-compiler works.
 
7271
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7272
  # <limits.h> exists even on freestanding compilers.
 
7273
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7274
  # not just through cpp. "Syntax error" is here to catch this case.
 
7275
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7276
/* end confdefs.h.  */
 
7277
#ifdef __STDC__
 
7278
# include <limits.h>
 
7279
#else
 
7280
# include <assert.h>
 
7281
#endif
 
7282
                     Syntax error
 
7283
_ACEOF
 
7284
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7285
 
 
7286
else
 
7287
  # Broken: fails on valid input.
 
7288
continue
 
7289
fi
 
7290
rm -f conftest.err conftest.i conftest.$ac_ext
 
7291
 
 
7292
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7293
  # can be detected and how.
 
7294
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7295
/* end confdefs.h.  */
 
7296
#include <ac_nonexistent.h>
 
7297
_ACEOF
 
7298
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7299
  # Broken: success on invalid input.
 
7300
continue
 
7301
else
 
7302
  # Passes both tests.
 
7303
ac_preproc_ok=:
 
7304
break
 
7305
fi
 
7306
rm -f conftest.err conftest.i conftest.$ac_ext
 
7307
 
 
7308
done
 
7309
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7310
rm -f conftest.i conftest.err conftest.$ac_ext
 
7311
if $ac_preproc_ok; then :
 
7312
  break
 
7313
fi
 
7314
 
 
7315
    done
 
7316
    ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
 
7317
 
 
7318
fi
 
7319
  CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
 
7320
else
 
7321
  ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
 
7322
fi
 
7323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
 
7324
$as_echo "$CXXCPP_FOR_BUILD" >&6; }
 
7325
ac_preproc_ok=false
 
7326
for ac_cxx_preproc_warn_flag in '' yes
 
7327
do
 
7328
  # Use a header file that comes with gcc, so configuring glibc
 
7329
  # with a fresh cross-compiler works.
 
7330
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7331
  # <limits.h> exists even on freestanding compilers.
 
7332
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7333
  # not just through cpp. "Syntax error" is here to catch this case.
 
7334
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7335
/* end confdefs.h.  */
 
7336
#ifdef __STDC__
 
7337
# include <limits.h>
 
7338
#else
 
7339
# include <assert.h>
 
7340
#endif
 
7341
                     Syntax error
 
7342
_ACEOF
 
7343
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7344
 
 
7345
else
 
7346
  # Broken: fails on valid input.
 
7347
continue
 
7348
fi
 
7349
rm -f conftest.err conftest.i conftest.$ac_ext
 
7350
 
 
7351
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7352
  # can be detected and how.
 
7353
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7354
/* end confdefs.h.  */
 
7355
#include <ac_nonexistent.h>
 
7356
_ACEOF
 
7357
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7358
  # Broken: success on invalid input.
 
7359
continue
 
7360
else
 
7361
  # Passes both tests.
 
7362
ac_preproc_ok=:
 
7363
break
 
7364
fi
 
7365
rm -f conftest.err conftest.i conftest.$ac_ext
 
7366
 
 
7367
done
 
7368
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7369
rm -f conftest.i conftest.err conftest.$ac_ext
 
7370
if $ac_preproc_ok; then :
 
7371
 
 
7372
else
 
7373
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7374
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7375
as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
 
7376
See \`config.log' for more details" "$LINENO" 5; }
 
7377
fi
 
7378
 
 
7379
ac_ext=c
 
7380
ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
 
7381
ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
 
7382
ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7383
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7384
 
 
7385
 
 
7386
ac_tool_prefix=$save_ac_tool_prefix
 
7387
cross_compiling=$save_cross_compiling
 
7388
 
 
7389
 
 
7390
 
 
7391
if test "x$CC" != xcc; then
 
7392
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
7393
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
7394
else
 
7395
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
7396
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
7397
fi
 
7398
set dummy $CC; ac_cc=`$as_echo "$2" |
 
7399
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
7400
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
 
7401
  $as_echo_n "(cached) " >&6
 
7402
else
 
7403
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7404
/* end confdefs.h.  */
 
7405
 
 
7406
int
 
7407
main ()
 
7408
{
 
7409
 
 
7410
  ;
 
7411
  return 0;
 
7412
}
 
7413
_ACEOF
 
7414
# Make sure it works both with $CC and with simple cc.
 
7415
# We do the test twice because some compilers refuse to overwrite an
 
7416
# existing .o file with -o, though they will create one.
 
7417
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
7418
rm -f conftest2.*
 
7419
if { { case "(($ac_try" in
 
7420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7421
  *) ac_try_echo=$ac_try;;
 
7422
esac
 
7423
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
7424
$as_echo "$ac_try_echo"; } >&5
 
7425
  (eval "$ac_try") 2>&5
 
7426
  ac_status=$?
 
7427
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7428
  test $ac_status = 0; } &&
 
7429
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
7430
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7431
  *) ac_try_echo=$ac_try;;
 
7432
esac
 
7433
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
7434
$as_echo "$ac_try_echo"; } >&5
 
7435
  (eval "$ac_try") 2>&5
 
7436
  ac_status=$?
 
7437
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7438
  test $ac_status = 0; };
 
7439
then
 
7440
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
7441
  if test "x$CC" != xcc; then
 
7442
    # Test first that cc exists at all.
 
7443
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
7444
  { { case "(($ac_try" in
 
7445
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7446
  *) ac_try_echo=$ac_try;;
 
7447
esac
 
7448
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
7449
$as_echo "$ac_try_echo"; } >&5
 
7450
  (eval "$ac_try") 2>&5
 
7451
  ac_status=$?
 
7452
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7453
  test $ac_status = 0; }; }; then
 
7454
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
7455
      rm -f conftest2.*
 
7456
      if { { case "(($ac_try" in
 
7457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7458
  *) ac_try_echo=$ac_try;;
 
7459
esac
 
7460
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
7461
$as_echo "$ac_try_echo"; } >&5
 
7462
  (eval "$ac_try") 2>&5
 
7463
  ac_status=$?
 
7464
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7465
  test $ac_status = 0; } &&
 
7466
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
7467
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7468
  *) ac_try_echo=$ac_try;;
 
7469
esac
 
7470
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
7471
$as_echo "$ac_try_echo"; } >&5
 
7472
  (eval "$ac_try") 2>&5
 
7473
  ac_status=$?
 
7474
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7475
  test $ac_status = 0; };
 
7476
      then
 
7477
        # cc works too.
 
7478
        :
 
7479
      else
 
7480
        # cc exists but doesn't like -o.
 
7481
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
7482
      fi
 
7483
    fi
 
7484
  fi
 
7485
else
 
7486
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
7487
fi
 
7488
rm -f core conftest*
 
7489
 
 
7490
fi
 
7491
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
7492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7493
$as_echo "yes" >&6; }
 
7494
else
 
7495
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7496
$as_echo "no" >&6; }
 
7497
 
 
7498
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
7499
 
 
7500
fi
 
7501
 
 
7502
# FIXME: we rely on the cache variable name because
 
7503
# there is no other way.
 
7504
set dummy $CC
 
7505
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
7506
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
7507
if test "$am_t" != yes; then
 
7508
   # Losing compiler, so override with the script.
 
7509
   # FIXME: It is wrong to rewrite CC.
 
7510
   # But if we don't then we get into trouble of one sort or another.
 
7511
   # A longer-term fix would be to have automake use am__CC in this case,
 
7512
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
7513
   CC="$am_aux_dir/compile $CC"
 
7514
fi
 
7515
 
 
7516
 
 
7517
# By default we simply use the C compiler to build assembly code.
 
7518
 
 
7519
test "${CCAS+set}" = set || CCAS=$CC
 
7520
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
7521
 
 
7522
 
 
7523
 
 
7524
depcc="$CCAS"   am_compiler_list=
 
7525
 
 
7526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
7527
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
7528
if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
 
7529
  $as_echo_n "(cached) " >&6
 
7530
else
 
7531
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
7532
  # We make a subdir and do the tests there.  Otherwise we can end up
 
7533
  # making bogus files that we don't know about and never remove.  For
 
7534
  # instance it was reported that on HP-UX the gcc test will end up
 
7535
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
7536
  # in D".
 
7537
  rm -rf conftest.dir
 
7538
  mkdir conftest.dir
 
7539
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
7540
  # using a relative directory.
 
7541
  cp "$am_depcomp" conftest.dir
 
7542
  cd conftest.dir
 
7543
  # We will build objects and dependencies in a subdirectory because
 
7544
  # it helps to detect inapplicable dependency modes.  For instance
 
7545
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
7546
  # side effect of compilation, but ICC will put the dependencies in
 
7547
  # the current directory while Tru64 will put them in the object
 
7548
  # directory.
 
7549
  mkdir sub
 
7550
 
 
7551
  am_cv_CCAS_dependencies_compiler_type=none
 
7552
  if test "$am_compiler_list" = ""; then
 
7553
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
7554
  fi
 
7555
  am__universal=false
 
7556
 
 
7557
 
 
7558
  for depmode in $am_compiler_list; do
 
7559
    # Setup a source with many dependencies, because some compilers
 
7560
    # like to wrap large dependency lists on column 80 (with \), and
 
7561
    # we should not choose a depcomp mode which is confused by this.
 
7562
    #
 
7563
    # We need to recreate these files for each test, as the compiler may
 
7564
    # overwrite some of them when testing with obscure command lines.
 
7565
    # This happens at least with the AIX C compiler.
 
7566
    : > sub/conftest.c
 
7567
    for i in 1 2 3 4 5 6; do
 
7568
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
7569
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
7570
      # Solaris 10 /bin/sh.
 
7571
      echo '/* dummy */' > sub/conftst$i.h
 
7572
    done
 
7573
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
7574
 
 
7575
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
7576
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7577
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
7578
    # versions had trouble with output in subdirs.
 
7579
    am__obj=sub/conftest.${OBJEXT-o}
 
7580
    am__minus_obj="-o $am__obj"
 
7581
    case $depmode in
 
7582
    gcc)
 
7583
      # This depmode causes a compiler race in universal mode.
 
7584
      test "$am__universal" = false || continue
 
7585
      ;;
 
7586
    nosideeffect)
 
7587
      # After this tag, mechanisms are not by side-effect, so they'll
 
7588
      # only be used when explicitly requested.
 
7589
      if test "x$enable_dependency_tracking" = xyes; then
 
7590
        continue
 
7591
      else
 
7592
        break
 
7593
      fi
 
7594
      ;;
 
7595
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
7596
      # This compiler won't grok '-c -o', but also, the minuso test has
 
7597
      # not run yet.  These depmodes are late enough in the game, and
 
7598
      # so weak that their functioning should not be impacted.
 
7599
      am__obj=conftest.${OBJEXT-o}
 
7600
      am__minus_obj=
 
7601
      ;;
 
7602
    none) break ;;
 
7603
    esac
 
7604
    if depmode=$depmode \
 
7605
       source=sub/conftest.c object=$am__obj \
 
7606
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
7607
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
7608
         >/dev/null 2>conftest.err &&
 
7609
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
7610
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
7611
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
7612
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
7613
      # icc doesn't choke on unknown options, it will just issue warnings
 
7614
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7615
      # that says an option was ignored or not supported.
 
7616
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7617
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7618
      # The diagnosis changed in icc 8.0:
 
7619
      #   icc: Command line remark: option '-MP' not supported
 
7620
      if (grep 'ignoring option' conftest.err ||
 
7621
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
7622
        am_cv_CCAS_dependencies_compiler_type=$depmode
 
7623
        break
 
7624
      fi
 
7625
    fi
 
7626
  done
 
7627
 
 
7628
  cd ..
 
7629
  rm -rf conftest.dir
 
7630
else
 
7631
  am_cv_CCAS_dependencies_compiler_type=none
 
7632
fi
 
7633
 
 
7634
fi
 
7635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
 
7636
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
 
7637
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
 
7638
 
 
7639
 if
 
7640
  test "x$enable_dependency_tracking" != xno \
 
7641
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
 
7642
  am__fastdepCCAS_TRUE=
 
7643
  am__fastdepCCAS_FALSE='#'
 
7644
else
 
7645
  am__fastdepCCAS_TRUE='#'
 
7646
  am__fastdepCCAS_FALSE=
 
7647
fi
 
7648
 
 
7649
 
 
7650
for ac_prog in gmake make
 
7651
do
 
7652
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7653
set dummy $ac_prog; ac_word=$2
 
7654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7655
$as_echo_n "checking for $ac_word... " >&6; }
 
7656
if ${ac_cv_prog_MAKE+:} false; then :
 
7657
  $as_echo_n "(cached) " >&6
 
7658
else
 
7659
  if test -n "$MAKE"; then
 
7660
  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
 
7661
else
 
7662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7663
for as_dir in $PATH
 
7664
do
 
7665
  IFS=$as_save_IFS
 
7666
  test -z "$as_dir" && as_dir=.
 
7667
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7668
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7669
    ac_cv_prog_MAKE="$ac_prog"
 
7670
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7671
    break 2
 
7672
  fi
 
7673
done
 
7674
  done
 
7675
IFS=$as_save_IFS
 
7676
 
 
7677
fi
 
7678
fi
 
7679
MAKE=$ac_cv_prog_MAKE
 
7680
if test -n "$MAKE"; then
 
7681
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
 
7682
$as_echo "$MAKE" >&6; }
 
7683
else
 
7684
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7685
$as_echo "no" >&6; }
 
7686
fi
 
7687
 
 
7688
 
 
7689
  test -n "$MAKE" && break
 
7690
done
 
7691
 
 
7692
for ac_prog in python2 python
 
7693
do
 
7694
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7695
set dummy $ac_prog; ac_word=$2
 
7696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7697
$as_echo_n "checking for $ac_word... " >&6; }
 
7698
if ${ac_cv_prog_PYTHON2+:} false; then :
 
7699
  $as_echo_n "(cached) " >&6
 
7700
else
 
7701
  if test -n "$PYTHON2"; then
 
7702
  ac_cv_prog_PYTHON2="$PYTHON2" # Let the user override the test.
 
7703
else
 
7704
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7705
for as_dir in $PATH
 
7706
do
 
7707
  IFS=$as_save_IFS
 
7708
  test -z "$as_dir" && as_dir=.
 
7709
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7710
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7711
    ac_cv_prog_PYTHON2="$ac_prog"
 
7712
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7713
    break 2
 
7714
  fi
 
7715
done
 
7716
  done
 
7717
IFS=$as_save_IFS
 
7718
 
 
7719
fi
 
7720
fi
 
7721
PYTHON2=$ac_cv_prog_PYTHON2
 
7722
if test -n "$PYTHON2"; then
 
7723
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2" >&5
 
7724
$as_echo "$PYTHON2" >&6; }
 
7725
else
 
7726
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7727
$as_echo "no" >&6; }
 
7728
fi
 
7729
 
 
7730
 
 
7731
  test -n "$PYTHON2" && break
 
7732
done
 
7733
 
 
7734
 
 
7735
    if test -z $PYTHON2;
 
7736
    then
 
7737
        PYTHON2="python"
 
7738
    fi
 
7739
    PYTHON_NAME=`basename $PYTHON2`
 
7740
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: libxml2" >&5
 
7741
$as_echo_n "checking $PYTHON_NAME module: libxml2... " >&6; }
 
7742
        $PYTHON2 -c "import libxml2" 2>/dev/null
 
7743
        if test $? -eq 0;
 
7744
        then
 
7745
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7746
$as_echo "yes" >&6; }
 
7747
                eval HAVE_PYMOD_LIBXML2=yes
 
7748
        else
 
7749
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7750
$as_echo "no" >&6; }
 
7751
                eval HAVE_PYMOD_LIBXML2=no
 
7752
                #
 
7753
                if test -n "needed"
 
7754
                then
 
7755
                        as_fn_error $? "failed to find required module libxml2" "$LINENO" 5
 
7756
                        exit 1
 
7757
                fi
 
7758
        fi
 
7759
 
 
7760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
7761
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
7762
if ${ac_cv_path_SED+:} false; then :
 
7763
  $as_echo_n "(cached) " >&6
 
7764
else
 
7765
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
7766
     for ac_i in 1 2 3 4 5 6 7; do
 
7767
       ac_script="$ac_script$as_nl$ac_script"
 
7768
     done
 
7769
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
7770
     { ac_script=; unset ac_script;}
 
7771
     if test -z "$SED"; then
 
7772
  ac_path_SED_found=false
 
7773
  # Loop through the user's path and test for each of PROGNAME-LIST
 
7774
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7775
for as_dir in $PATH
 
7776
do
 
7777
  IFS=$as_save_IFS
 
7778
  test -z "$as_dir" && as_dir=.
 
7779
    for ac_prog in sed gsed; do
 
7780
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7781
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
7782
      as_fn_executable_p "$ac_path_SED" || continue
 
7783
# Check for GNU ac_path_SED and select it if it is found.
 
7784
  # Check for GNU $ac_path_SED
 
7785
case `"$ac_path_SED" --version 2>&1` in
 
7786
*GNU*)
 
7787
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
7788
*)
 
7789
  ac_count=0
 
7790
  $as_echo_n 0123456789 >"conftest.in"
 
7791
  while :
 
7792
  do
 
7793
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
7794
    mv "conftest.tmp" "conftest.in"
 
7795
    cp "conftest.in" "conftest.nl"
 
7796
    $as_echo '' >> "conftest.nl"
 
7797
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
7798
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
7799
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
7800
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
7801
      # Best one so far, save it but keep looking for a better one
 
7802
      ac_cv_path_SED="$ac_path_SED"
 
7803
      ac_path_SED_max=$ac_count
 
7804
    fi
 
7805
    # 10*(2^10) chars as input seems more than enough
 
7806
    test $ac_count -gt 10 && break
 
7807
  done
 
7808
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
7809
esac
 
7810
 
 
7811
      $ac_path_SED_found && break 3
 
7812
    done
 
7813
  done
 
7814
  done
 
7815
IFS=$as_save_IFS
 
7816
  if test -z "$ac_cv_path_SED"; then
 
7817
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
7818
  fi
 
7819
else
 
7820
  ac_cv_path_SED=$SED
 
7821
fi
 
7822
 
 
7823
fi
 
7824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
7825
$as_echo "$ac_cv_path_SED" >&6; }
 
7826
 SED="$ac_cv_path_SED"
 
7827
  rm -f conftest.sed
 
7828
 
 
7829
 
 
7830
 
4616
7831
 
4617
7832
case `pwd` in
4618
7833
  *\ * | *\     *)
5829
9044
  fi
5830
9045
  ;;
5831
9046
 
 
9047
gnu*)
 
9048
  lt_cv_deplibs_check_method=pass_all
 
9049
  ;;
 
9050
 
5832
9051
haiku*)
5833
9052
  lt_cv_deplibs_check_method=pass_all
5834
9053
  ;;
5867
9086
  ;;
5868
9087
 
5869
9088
# This must be glibc/ELF.
5870
 
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
9089
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5871
9090
  lt_cv_deplibs_check_method=pass_all
5872
9091
  ;;
5873
9092
 
5874
 
netbsd* | netbsdelf*-gnu)
 
9093
netbsd*)
5875
9094
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5876
9095
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5877
9096
  else
7832
11051
    ;;
7833
11052
  esac
7834
11053
 
7835
 
ac_ext=c
7836
 
ac_cpp='$CPP $CPPFLAGS'
7837
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7840
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7841
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7842
 
# On Suns, sometimes $CPP names a directory.
7843
 
if test -n "$CPP" && test -d "$CPP"; then
7844
 
  CPP=
7845
 
fi
7846
 
if test -z "$CPP"; then
7847
 
  if ${ac_cv_prog_CPP+:} false; then :
7848
 
  $as_echo_n "(cached) " >&6
7849
 
else
7850
 
      # Double quotes because CPP needs to be expanded
7851
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7852
 
    do
7853
 
      ac_preproc_ok=false
7854
 
for ac_c_preproc_warn_flag in '' yes
7855
 
do
7856
 
  # Use a header file that comes with gcc, so configuring glibc
7857
 
  # with a fresh cross-compiler works.
7858
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7859
 
  # <limits.h> exists even on freestanding compilers.
7860
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
7861
 
  # not just through cpp. "Syntax error" is here to catch this case.
7862
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863
 
/* end confdefs.h.  */
7864
 
#ifdef __STDC__
7865
 
# include <limits.h>
7866
 
#else
7867
 
# include <assert.h>
7868
 
#endif
7869
 
                     Syntax error
7870
 
_ACEOF
7871
 
if ac_fn_c_try_cpp "$LINENO"; then :
7872
 
 
7873
 
else
7874
 
  # Broken: fails on valid input.
7875
 
continue
7876
 
fi
7877
 
rm -f conftest.err conftest.i conftest.$ac_ext
7878
 
 
7879
 
  # OK, works on sane cases.  Now check whether nonexistent headers
7880
 
  # can be detected and how.
7881
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882
 
/* end confdefs.h.  */
7883
 
#include <ac_nonexistent.h>
7884
 
_ACEOF
7885
 
if ac_fn_c_try_cpp "$LINENO"; then :
7886
 
  # Broken: success on invalid input.
7887
 
continue
7888
 
else
7889
 
  # Passes both tests.
7890
 
ac_preproc_ok=:
7891
 
break
7892
 
fi
7893
 
rm -f conftest.err conftest.i conftest.$ac_ext
7894
 
 
7895
 
done
7896
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7897
 
rm -f conftest.i conftest.err conftest.$ac_ext
7898
 
if $ac_preproc_ok; then :
7899
 
  break
7900
 
fi
7901
 
 
7902
 
    done
7903
 
    ac_cv_prog_CPP=$CPP
7904
 
 
7905
 
fi
7906
 
  CPP=$ac_cv_prog_CPP
7907
 
else
7908
 
  ac_cv_prog_CPP=$CPP
7909
 
fi
7910
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7911
 
$as_echo "$CPP" >&6; }
7912
 
ac_preproc_ok=false
7913
 
for ac_c_preproc_warn_flag in '' yes
7914
 
do
7915
 
  # Use a header file that comes with gcc, so configuring glibc
7916
 
  # with a fresh cross-compiler works.
7917
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7918
 
  # <limits.h> exists even on freestanding compilers.
7919
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
7920
 
  # not just through cpp. "Syntax error" is here to catch this case.
7921
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922
 
/* end confdefs.h.  */
7923
 
#ifdef __STDC__
7924
 
# include <limits.h>
7925
 
#else
7926
 
# include <assert.h>
7927
 
#endif
7928
 
                     Syntax error
7929
 
_ACEOF
7930
 
if ac_fn_c_try_cpp "$LINENO"; then :
7931
 
 
7932
 
else
7933
 
  # Broken: fails on valid input.
7934
 
continue
7935
 
fi
7936
 
rm -f conftest.err conftest.i conftest.$ac_ext
7937
 
 
7938
 
  # OK, works on sane cases.  Now check whether nonexistent headers
7939
 
  # can be detected and how.
7940
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941
 
/* end confdefs.h.  */
7942
 
#include <ac_nonexistent.h>
7943
 
_ACEOF
7944
 
if ac_fn_c_try_cpp "$LINENO"; then :
7945
 
  # Broken: success on invalid input.
7946
 
continue
7947
 
else
7948
 
  # Passes both tests.
7949
 
ac_preproc_ok=:
7950
 
break
7951
 
fi
7952
 
rm -f conftest.err conftest.i conftest.$ac_ext
7953
 
 
7954
 
done
7955
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7956
 
rm -f conftest.i conftest.err conftest.$ac_ext
7957
 
if $ac_preproc_ok; then :
7958
 
 
7959
 
else
7960
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7961
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7962
 
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7963
 
See \`config.log' for more details" "$LINENO" 5; }
7964
 
fi
7965
 
 
7966
 
ac_ext=c
7967
 
ac_cpp='$CPP $CPPFLAGS'
7968
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971
 
 
7972
11054
 
7973
11055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7974
11056
$as_echo_n "checking for ANSI C header files... " >&6; }
8115
11197
 
8116
11198
 
8117
11199
 
 
11200
func_stripname_cnf ()
 
11201
{
 
11202
  case ${2} in
 
11203
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
11204
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
11205
  esac
 
11206
} # func_stripname_cnf
 
11207
 
 
11208
 
 
11209
 
 
11210
 
8118
11211
 
8119
11212
# Set options
8120
11213
# Check whether --enable-static was given.
8792
11885
      lt_prog_compiler_static='-non_shared'
8793
11886
      ;;
8794
11887
 
8795
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
11888
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8796
11889
      case $cc_basename in
8797
11890
      # old Intel for x86_64 which still supported -KPIC.
8798
11891
      ecc*)
9270
12363
  openbsd*)
9271
12364
    with_gnu_ld=no
9272
12365
    ;;
9273
 
  linux* | k*bsd*-gnu | gnu*)
9274
 
    link_all_deplibs=no
9275
 
    ;;
9276
12366
  esac
9277
12367
 
9278
12368
  ld_shlibs=yes
9494
12584
      fi
9495
12585
      ;;
9496
12586
 
9497
 
    netbsd* | netbsdelf*-gnu)
 
12587
    netbsd*)
9498
12588
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9499
12589
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9500
12590
        wlarc=
9671
12761
        if test "$aix_use_runtimelinking" = yes; then
9672
12762
          shared_flag="$shared_flag "'${wl}-G'
9673
12763
        fi
9674
 
        link_all_deplibs=no
9675
12764
      else
9676
12765
        # not using gcc
9677
12766
        if test "$host_cpu" = ia64; then
10125
13214
      link_all_deplibs=yes
10126
13215
      ;;
10127
13216
 
10128
 
    netbsd* | netbsdelf*-gnu)
 
13217
    netbsd*)
10129
13218
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10130
13219
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10131
13220
      else
10962
14051
  esac
10963
14052
  ;;
10964
14053
 
 
14054
gnu*)
 
14055
  version_type=linux # correct to gnu/linux during the next big refactor
 
14056
  need_lib_prefix=no
 
14057
  need_version=no
 
14058
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14059
  soname_spec='${libname}${release}${shared_ext}$major'
 
14060
  shlibpath_var=LD_LIBRARY_PATH
 
14061
  shlibpath_overrides_runpath=no
 
14062
  hardcode_into_libs=yes
 
14063
  ;;
 
14064
 
10965
14065
haiku*)
10966
14066
  version_type=linux # correct to gnu/linux during the next big refactor
10967
14067
  need_lib_prefix=no
11078
14178
  ;;
11079
14179
 
11080
14180
# This must be glibc/ELF.
11081
 
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
14181
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11082
14182
  version_type=linux # correct to gnu/linux during the next big refactor
11083
14183
  need_lib_prefix=no
11084
14184
  need_version=no
11127
14227
  # before this can be enabled.
11128
14228
  hardcode_into_libs=yes
11129
14229
 
 
14230
  # Add ABI-specific directories to the system library path.
 
14231
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
14232
 
11130
14233
  # Append ld.so.conf contents to the search path
11131
14234
  if test -f /etc/ld.so.conf; then
11132
14235
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11133
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14236
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
14237
 
11134
14238
  fi
11135
14239
 
11136
14240
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11142
14246
  dynamic_linker='GNU/Linux ld.so'
11143
14247
  ;;
11144
14248
 
11145
 
netbsdelf*-gnu)
11146
 
  version_type=linux
11147
 
  need_lib_prefix=no
11148
 
  need_version=no
11149
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11150
 
  soname_spec='${libname}${release}${shared_ext}$major'
11151
 
  shlibpath_var=LD_LIBRARY_PATH
11152
 
  shlibpath_overrides_runpath=no
11153
 
  hardcode_into_libs=yes
11154
 
  dynamic_linker='NetBSD ld.elf_so'
11155
 
  ;;
11156
 
 
11157
14249
netbsd*)
11158
14250
  version_type=sunos
11159
14251
  need_lib_prefix=no
12102
15194
 
12103
15195
CC="$lt_save_CC"
12104
15196
 
12105
 
 
12106
 
 
12107
 
 
12108
 
 
12109
 
 
12110
 
 
12111
 
 
12112
 
 
12113
 
 
12114
 
 
12115
 
 
12116
 
 
12117
 
 
12118
 
 
12119
 
        ac_config_commands="$ac_config_commands libtool"
12120
 
 
12121
 
 
12122
 
 
12123
 
 
12124
 
# Only expand once:
12125
 
 
12126
 
 
12127
 
 
12128
 
OSMESA_VERSION=8
12129
 
 
12130
 
 
12131
 
LIBDRM_REQUIRED=2.4.24
12132
 
LIBDRM_RADEON_REQUIRED=2.4.39
12133
 
LIBDRM_INTEL_REQUIRED=2.4.38
12134
 
LIBDRM_NVVIEUX_REQUIRED=2.4.33
12135
 
LIBDRM_NOUVEAU_REQUIRED=2.4.33
12136
 
DRI2PROTO_REQUIRED=2.6
12137
 
GLPROTO_REQUIRED=1.4.14
12138
 
LIBDRM_XORG_REQUIRED=2.4.24
12139
 
LIBKMS_XORG_REQUIRED=1.0.0
12140
 
 
12141
 
ac_ext=c
12142
 
ac_cpp='$CPP $CPPFLAGS'
12143
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12144
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12145
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12146
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12147
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
12148
 
# On Suns, sometimes $CPP names a directory.
12149
 
if test -n "$CPP" && test -d "$CPP"; then
12150
 
  CPP=
12151
 
fi
12152
 
if test -z "$CPP"; then
12153
 
  if ${ac_cv_prog_CPP+:} false; then :
12154
 
  $as_echo_n "(cached) " >&6
12155
 
else
12156
 
      # Double quotes because CPP needs to be expanded
12157
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12158
 
    do
12159
 
      ac_preproc_ok=false
12160
 
for ac_c_preproc_warn_flag in '' yes
12161
 
do
12162
 
  # Use a header file that comes with gcc, so configuring glibc
12163
 
  # with a fresh cross-compiler works.
12164
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12165
 
  # <limits.h> exists even on freestanding compilers.
12166
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
12167
 
  # not just through cpp. "Syntax error" is here to catch this case.
12168
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169
 
/* end confdefs.h.  */
12170
 
#ifdef __STDC__
12171
 
# include <limits.h>
12172
 
#else
12173
 
# include <assert.h>
12174
 
#endif
12175
 
                     Syntax error
12176
 
_ACEOF
12177
 
if ac_fn_c_try_cpp "$LINENO"; then :
12178
 
 
12179
 
else
12180
 
  # Broken: fails on valid input.
12181
 
continue
12182
 
fi
12183
 
rm -f conftest.err conftest.i conftest.$ac_ext
12184
 
 
12185
 
  # OK, works on sane cases.  Now check whether nonexistent headers
12186
 
  # can be detected and how.
12187
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188
 
/* end confdefs.h.  */
12189
 
#include <ac_nonexistent.h>
12190
 
_ACEOF
12191
 
if ac_fn_c_try_cpp "$LINENO"; then :
12192
 
  # Broken: success on invalid input.
12193
 
continue
12194
 
else
12195
 
  # Passes both tests.
12196
 
ac_preproc_ok=:
12197
 
break
12198
 
fi
12199
 
rm -f conftest.err conftest.i conftest.$ac_ext
12200
 
 
12201
 
done
12202
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12203
 
rm -f conftest.i conftest.err conftest.$ac_ext
12204
 
if $ac_preproc_ok; then :
12205
 
  break
12206
 
fi
12207
 
 
12208
 
    done
12209
 
    ac_cv_prog_CPP=$CPP
12210
 
 
12211
 
fi
12212
 
  CPP=$ac_cv_prog_CPP
12213
 
else
12214
 
  ac_cv_prog_CPP=$CPP
12215
 
fi
12216
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12217
 
$as_echo "$CPP" >&6; }
12218
 
ac_preproc_ok=false
12219
 
for ac_c_preproc_warn_flag in '' yes
12220
 
do
12221
 
  # Use a header file that comes with gcc, so configuring glibc
12222
 
  # with a fresh cross-compiler works.
12223
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12224
 
  # <limits.h> exists even on freestanding compilers.
12225
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
12226
 
  # not just through cpp. "Syntax error" is here to catch this case.
12227
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228
 
/* end confdefs.h.  */
12229
 
#ifdef __STDC__
12230
 
# include <limits.h>
12231
 
#else
12232
 
# include <assert.h>
12233
 
#endif
12234
 
                     Syntax error
12235
 
_ACEOF
12236
 
if ac_fn_c_try_cpp "$LINENO"; then :
12237
 
 
12238
 
else
12239
 
  # Broken: fails on valid input.
12240
 
continue
12241
 
fi
12242
 
rm -f conftest.err conftest.i conftest.$ac_ext
12243
 
 
12244
 
  # OK, works on sane cases.  Now check whether nonexistent headers
12245
 
  # can be detected and how.
12246
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247
 
/* end confdefs.h.  */
12248
 
#include <ac_nonexistent.h>
12249
 
_ACEOF
12250
 
if ac_fn_c_try_cpp "$LINENO"; then :
12251
 
  # Broken: success on invalid input.
12252
 
continue
12253
 
else
12254
 
  # Passes both tests.
12255
 
ac_preproc_ok=:
12256
 
break
12257
 
fi
12258
 
rm -f conftest.err conftest.i conftest.$ac_ext
12259
 
 
12260
 
done
12261
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12262
 
rm -f conftest.i conftest.err conftest.$ac_ext
12263
 
if $ac_preproc_ok; then :
12264
 
 
12265
 
else
12266
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12267
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12268
 
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12269
 
See \`config.log' for more details" "$LINENO" 5; }
12270
 
fi
12271
 
 
12272
 
ac_ext=c
12273
 
ac_cpp='$CPP $CPPFLAGS'
12274
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12275
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12276
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12277
 
 
12278
 
ac_ext=c
12279
 
ac_cpp='$CPP $CPPFLAGS'
12280
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12281
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12282
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12283
 
if test -n "$ac_tool_prefix"; then
12284
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12285
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
12286
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287
 
$as_echo_n "checking for $ac_word... " >&6; }
12288
 
if ${ac_cv_prog_CC+:} false; then :
12289
 
  $as_echo_n "(cached) " >&6
12290
 
else
12291
 
  if test -n "$CC"; then
12292
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
12293
 
else
12294
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295
 
for as_dir in $PATH
12296
 
do
12297
 
  IFS=$as_save_IFS
12298
 
  test -z "$as_dir" && as_dir=.
12299
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12300
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12301
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12302
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12303
 
    break 2
12304
 
  fi
12305
 
done
12306
 
  done
12307
 
IFS=$as_save_IFS
12308
 
 
12309
 
fi
12310
 
fi
12311
 
CC=$ac_cv_prog_CC
12312
 
if test -n "$CC"; then
12313
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12314
 
$as_echo "$CC" >&6; }
12315
 
else
12316
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317
 
$as_echo "no" >&6; }
12318
 
fi
12319
 
 
12320
 
 
12321
 
fi
12322
 
if test -z "$ac_cv_prog_CC"; then
12323
 
  ac_ct_CC=$CC
12324
 
  # Extract the first word of "gcc", so it can be a program name with args.
12325
 
set dummy gcc; ac_word=$2
12326
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327
 
$as_echo_n "checking for $ac_word... " >&6; }
12328
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
12329
 
  $as_echo_n "(cached) " >&6
12330
 
else
12331
 
  if test -n "$ac_ct_CC"; then
12332
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12333
 
else
12334
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335
 
for as_dir in $PATH
12336
 
do
12337
 
  IFS=$as_save_IFS
12338
 
  test -z "$as_dir" && as_dir=.
12339
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12340
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341
 
    ac_cv_prog_ac_ct_CC="gcc"
12342
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343
 
    break 2
12344
 
  fi
12345
 
done
12346
 
  done
12347
 
IFS=$as_save_IFS
12348
 
 
12349
 
fi
12350
 
fi
12351
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12352
 
if test -n "$ac_ct_CC"; then
12353
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12354
 
$as_echo "$ac_ct_CC" >&6; }
12355
 
else
12356
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357
 
$as_echo "no" >&6; }
12358
 
fi
12359
 
 
12360
 
  if test "x$ac_ct_CC" = x; then
12361
 
    CC=""
12362
 
  else
12363
 
    case $cross_compiling:$ac_tool_warned in
12364
 
yes:)
12365
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12366
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12367
 
ac_tool_warned=yes ;;
12368
 
esac
12369
 
    CC=$ac_ct_CC
12370
 
  fi
12371
 
else
12372
 
  CC="$ac_cv_prog_CC"
12373
 
fi
12374
 
 
12375
 
if test -z "$CC"; then
12376
 
          if test -n "$ac_tool_prefix"; then
12377
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12378
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
12379
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12380
 
$as_echo_n "checking for $ac_word... " >&6; }
12381
 
if ${ac_cv_prog_CC+:} false; then :
12382
 
  $as_echo_n "(cached) " >&6
12383
 
else
12384
 
  if test -n "$CC"; then
12385
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
12386
 
else
12387
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388
 
for as_dir in $PATH
12389
 
do
12390
 
  IFS=$as_save_IFS
12391
 
  test -z "$as_dir" && as_dir=.
12392
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12393
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12394
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
12395
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12396
 
    break 2
12397
 
  fi
12398
 
done
12399
 
  done
12400
 
IFS=$as_save_IFS
12401
 
 
12402
 
fi
12403
 
fi
12404
 
CC=$ac_cv_prog_CC
12405
 
if test -n "$CC"; then
12406
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12407
 
$as_echo "$CC" >&6; }
12408
 
else
12409
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410
 
$as_echo "no" >&6; }
12411
 
fi
12412
 
 
12413
 
 
12414
 
  fi
12415
 
fi
12416
 
if test -z "$CC"; then
12417
 
  # Extract the first word of "cc", so it can be a program name with args.
12418
 
set dummy cc; ac_word=$2
12419
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420
 
$as_echo_n "checking for $ac_word... " >&6; }
12421
 
if ${ac_cv_prog_CC+:} false; then :
12422
 
  $as_echo_n "(cached) " >&6
12423
 
else
12424
 
  if test -n "$CC"; then
12425
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
12426
 
else
12427
 
  ac_prog_rejected=no
12428
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429
 
for as_dir in $PATH
12430
 
do
12431
 
  IFS=$as_save_IFS
12432
 
  test -z "$as_dir" && as_dir=.
12433
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12434
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12436
 
       ac_prog_rejected=yes
12437
 
       continue
12438
 
     fi
12439
 
    ac_cv_prog_CC="cc"
12440
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12441
 
    break 2
12442
 
  fi
12443
 
done
12444
 
  done
12445
 
IFS=$as_save_IFS
12446
 
 
12447
 
if test $ac_prog_rejected = yes; then
12448
 
  # We found a bogon in the path, so make sure we never use it.
12449
 
  set dummy $ac_cv_prog_CC
12450
 
  shift
12451
 
  if test $# != 0; then
12452
 
    # We chose a different compiler from the bogus one.
12453
 
    # However, it has the same basename, so the bogon will be chosen
12454
 
    # first if we set CC to just the basename; use the full file name.
12455
 
    shift
12456
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12457
 
  fi
12458
 
fi
12459
 
fi
12460
 
fi
12461
 
CC=$ac_cv_prog_CC
12462
 
if test -n "$CC"; then
12463
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12464
 
$as_echo "$CC" >&6; }
12465
 
else
12466
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467
 
$as_echo "no" >&6; }
12468
 
fi
12469
 
 
12470
 
 
12471
 
fi
12472
 
if test -z "$CC"; then
12473
 
  if test -n "$ac_tool_prefix"; then
12474
 
  for ac_prog in cl.exe
12475
 
  do
12476
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12477
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12478
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479
 
$as_echo_n "checking for $ac_word... " >&6; }
12480
 
if ${ac_cv_prog_CC+:} false; then :
12481
 
  $as_echo_n "(cached) " >&6
12482
 
else
12483
 
  if test -n "$CC"; then
12484
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
12485
 
else
12486
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487
 
for as_dir in $PATH
12488
 
do
12489
 
  IFS=$as_save_IFS
12490
 
  test -z "$as_dir" && as_dir=.
12491
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12492
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12493
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12494
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495
 
    break 2
12496
 
  fi
12497
 
done
12498
 
  done
12499
 
IFS=$as_save_IFS
12500
 
 
12501
 
fi
12502
 
fi
12503
 
CC=$ac_cv_prog_CC
12504
 
if test -n "$CC"; then
12505
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12506
 
$as_echo "$CC" >&6; }
12507
 
else
12508
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509
 
$as_echo "no" >&6; }
12510
 
fi
12511
 
 
12512
 
 
12513
 
    test -n "$CC" && break
12514
 
  done
12515
 
fi
12516
 
if test -z "$CC"; then
12517
 
  ac_ct_CC=$CC
12518
 
  for ac_prog in cl.exe
12519
 
do
12520
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12521
 
set dummy $ac_prog; ac_word=$2
12522
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523
 
$as_echo_n "checking for $ac_word... " >&6; }
12524
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
12525
 
  $as_echo_n "(cached) " >&6
12526
 
else
12527
 
  if test -n "$ac_ct_CC"; then
12528
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12529
 
else
12530
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531
 
for as_dir in $PATH
12532
 
do
12533
 
  IFS=$as_save_IFS
12534
 
  test -z "$as_dir" && as_dir=.
12535
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12536
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12537
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
12538
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12539
 
    break 2
12540
 
  fi
12541
 
done
12542
 
  done
12543
 
IFS=$as_save_IFS
12544
 
 
12545
 
fi
12546
 
fi
12547
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12548
 
if test -n "$ac_ct_CC"; then
12549
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12550
 
$as_echo "$ac_ct_CC" >&6; }
12551
 
else
12552
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553
 
$as_echo "no" >&6; }
12554
 
fi
12555
 
 
12556
 
 
12557
 
  test -n "$ac_ct_CC" && break
12558
 
done
12559
 
 
12560
 
  if test "x$ac_ct_CC" = x; then
12561
 
    CC=""
12562
 
  else
12563
 
    case $cross_compiling:$ac_tool_warned in
12564
 
yes:)
12565
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12566
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12567
 
ac_tool_warned=yes ;;
12568
 
esac
12569
 
    CC=$ac_ct_CC
12570
 
  fi
12571
 
fi
12572
 
 
12573
 
fi
12574
 
 
12575
 
 
12576
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12577
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12578
 
as_fn_error $? "no acceptable C compiler found in \$PATH
12579
 
See \`config.log' for more details" "$LINENO" 5; }
12580
 
 
12581
 
# Provide some information about the compiler.
12582
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12583
 
set X $ac_compile
12584
 
ac_compiler=$2
12585
 
for ac_option in --version -v -V -qversion; do
12586
 
  { { ac_try="$ac_compiler $ac_option >&5"
12587
 
case "(($ac_try" in
12588
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589
 
  *) ac_try_echo=$ac_try;;
12590
 
esac
12591
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12592
 
$as_echo "$ac_try_echo"; } >&5
12593
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12594
 
  ac_status=$?
12595
 
  if test -s conftest.err; then
12596
 
    sed '10a\
12597
 
... rest of stderr output deleted ...
12598
 
         10q' conftest.err >conftest.er1
12599
 
    cat conftest.er1 >&5
12600
 
  fi
12601
 
  rm -f conftest.er1 conftest.err
12602
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603
 
  test $ac_status = 0; }
12604
 
done
12605
 
 
12606
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12607
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12608
 
if ${ac_cv_c_compiler_gnu+:} false; then :
12609
 
  $as_echo_n "(cached) " >&6
12610
 
else
12611
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612
 
/* end confdefs.h.  */
12613
 
 
12614
 
int
12615
 
main ()
12616
 
{
12617
 
#ifndef __GNUC__
12618
 
       choke me
12619
 
#endif
12620
 
 
12621
 
  ;
12622
 
  return 0;
12623
 
}
12624
 
_ACEOF
12625
 
if ac_fn_c_try_compile "$LINENO"; then :
12626
 
  ac_compiler_gnu=yes
12627
 
else
12628
 
  ac_compiler_gnu=no
12629
 
fi
12630
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12632
 
 
12633
 
fi
12634
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12635
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12636
 
if test $ac_compiler_gnu = yes; then
12637
 
  GCC=yes
12638
 
else
12639
 
  GCC=
12640
 
fi
12641
 
ac_test_CFLAGS=${CFLAGS+set}
12642
 
ac_save_CFLAGS=$CFLAGS
12643
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12644
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
12645
 
if ${ac_cv_prog_cc_g+:} false; then :
12646
 
  $as_echo_n "(cached) " >&6
12647
 
else
12648
 
  ac_save_c_werror_flag=$ac_c_werror_flag
12649
 
   ac_c_werror_flag=yes
12650
 
   ac_cv_prog_cc_g=no
12651
 
   CFLAGS="-g"
12652
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12653
 
/* end confdefs.h.  */
12654
 
 
12655
 
int
12656
 
main ()
12657
 
{
12658
 
 
12659
 
  ;
12660
 
  return 0;
12661
 
}
12662
 
_ACEOF
12663
 
if ac_fn_c_try_compile "$LINENO"; then :
12664
 
  ac_cv_prog_cc_g=yes
12665
 
else
12666
 
  CFLAGS=""
12667
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668
 
/* end confdefs.h.  */
12669
 
 
12670
 
int
12671
 
main ()
12672
 
{
12673
 
 
12674
 
  ;
12675
 
  return 0;
12676
 
}
12677
 
_ACEOF
12678
 
if ac_fn_c_try_compile "$LINENO"; then :
12679
 
 
12680
 
else
12681
 
  ac_c_werror_flag=$ac_save_c_werror_flag
12682
 
         CFLAGS="-g"
12683
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684
 
/* end confdefs.h.  */
12685
 
 
12686
 
int
12687
 
main ()
12688
 
{
12689
 
 
12690
 
  ;
12691
 
  return 0;
12692
 
}
12693
 
_ACEOF
12694
 
if ac_fn_c_try_compile "$LINENO"; then :
12695
 
  ac_cv_prog_cc_g=yes
12696
 
fi
12697
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698
 
fi
12699
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700
 
fi
12701
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702
 
   ac_c_werror_flag=$ac_save_c_werror_flag
12703
 
fi
12704
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12705
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
12706
 
if test "$ac_test_CFLAGS" = set; then
12707
 
  CFLAGS=$ac_save_CFLAGS
12708
 
elif test $ac_cv_prog_cc_g = yes; then
12709
 
  if test "$GCC" = yes; then
12710
 
    CFLAGS="-g -O2"
12711
 
  else
12712
 
    CFLAGS="-g"
12713
 
  fi
12714
 
else
12715
 
  if test "$GCC" = yes; then
12716
 
    CFLAGS="-O2"
12717
 
  else
12718
 
    CFLAGS=
12719
 
  fi
12720
 
fi
12721
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12722
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12723
 
if ${ac_cv_prog_cc_c89+:} false; then :
12724
 
  $as_echo_n "(cached) " >&6
12725
 
else
12726
 
  ac_cv_prog_cc_c89=no
12727
 
ac_save_CC=$CC
12728
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729
 
/* end confdefs.h.  */
12730
 
#include <stdarg.h>
12731
 
#include <stdio.h>
12732
 
struct stat;
12733
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12734
 
struct buf { int x; };
12735
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12736
 
static char *e (p, i)
12737
 
     char **p;
12738
 
     int i;
12739
 
{
12740
 
  return p[i];
12741
 
}
12742
 
static char *f (char * (*g) (char **, int), char **p, ...)
12743
 
{
12744
 
  char *s;
12745
 
  va_list v;
12746
 
  va_start (v,p);
12747
 
  s = g (p, va_arg (v,int));
12748
 
  va_end (v);
12749
 
  return s;
12750
 
}
12751
 
 
12752
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12753
 
   function prototypes and stuff, but not '\xHH' hex character constants.
12754
 
   These don't provoke an error unfortunately, instead are silently treated
12755
 
   as 'x'.  The following induces an error, until -std is added to get
12756
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12757
 
   array size at least.  It's necessary to write '\x00'==0 to get something
12758
 
   that's true only with -std.  */
12759
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12760
 
 
12761
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12762
 
   inside strings and character constants.  */
12763
 
#define FOO(x) 'x'
12764
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12765
 
 
12766
 
int test (int i, double x);
12767
 
struct s1 {int (*f) (int a);};
12768
 
struct s2 {int (*f) (double a);};
12769
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12770
 
int argc;
12771
 
char **argv;
12772
 
int
12773
 
main ()
12774
 
{
12775
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12776
 
  ;
12777
 
  return 0;
12778
 
}
12779
 
_ACEOF
12780
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12781
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12782
 
do
12783
 
  CC="$ac_save_CC $ac_arg"
12784
 
  if ac_fn_c_try_compile "$LINENO"; then :
12785
 
  ac_cv_prog_cc_c89=$ac_arg
12786
 
fi
12787
 
rm -f core conftest.err conftest.$ac_objext
12788
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
12789
 
done
12790
 
rm -f conftest.$ac_ext
12791
 
CC=$ac_save_CC
12792
 
 
12793
 
fi
12794
 
# AC_CACHE_VAL
12795
 
case "x$ac_cv_prog_cc_c89" in
12796
 
  x)
12797
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12798
 
$as_echo "none needed" >&6; } ;;
12799
 
  xno)
12800
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12801
 
$as_echo "unsupported" >&6; } ;;
12802
 
  *)
12803
 
    CC="$CC $ac_cv_prog_cc_c89"
12804
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12805
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12806
 
esac
12807
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
12808
 
 
12809
 
fi
12810
 
 
12811
 
ac_ext=c
12812
 
ac_cpp='$CPP $CPPFLAGS'
12813
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12814
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12815
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12816
 
 
12817
 
depcc="$CC"   am_compiler_list=
12818
 
 
12819
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12820
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
12821
 
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12822
 
  $as_echo_n "(cached) " >&6
12823
 
else
12824
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12825
 
  # We make a subdir and do the tests there.  Otherwise we can end up
12826
 
  # making bogus files that we don't know about and never remove.  For
12827
 
  # instance it was reported that on HP-UX the gcc test will end up
12828
 
  # making a dummy file named `D' -- because `-MD' means `put the output
12829
 
  # in D'.
12830
 
  rm -rf conftest.dir
12831
 
  mkdir conftest.dir
12832
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
12833
 
  # using a relative directory.
12834
 
  cp "$am_depcomp" conftest.dir
12835
 
  cd conftest.dir
12836
 
  # We will build objects and dependencies in a subdirectory because
12837
 
  # it helps to detect inapplicable dependency modes.  For instance
12838
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
12839
 
  # side effect of compilation, but ICC will put the dependencies in
12840
 
  # the current directory while Tru64 will put them in the object
12841
 
  # directory.
12842
 
  mkdir sub
12843
 
 
12844
 
  am_cv_CC_dependencies_compiler_type=none
12845
 
  if test "$am_compiler_list" = ""; then
12846
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12847
 
  fi
12848
 
  am__universal=false
12849
 
  case " $depcc " in #(
12850
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12851
 
     esac
12852
 
 
12853
 
  for depmode in $am_compiler_list; do
12854
 
    # Setup a source with many dependencies, because some compilers
12855
 
    # like to wrap large dependency lists on column 80 (with \), and
12856
 
    # we should not choose a depcomp mode which is confused by this.
12857
 
    #
12858
 
    # We need to recreate these files for each test, as the compiler may
12859
 
    # overwrite some of them when testing with obscure command lines.
12860
 
    # This happens at least with the AIX C compiler.
12861
 
    : > sub/conftest.c
12862
 
    for i in 1 2 3 4 5 6; do
12863
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12864
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12865
 
      # Solaris 8's {/usr,}/bin/sh.
12866
 
      touch sub/conftst$i.h
12867
 
    done
12868
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12869
 
 
12870
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12871
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
12872
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
12873
 
    # versions had trouble with output in subdirs
12874
 
    am__obj=sub/conftest.${OBJEXT-o}
12875
 
    am__minus_obj="-o $am__obj"
12876
 
    case $depmode in
12877
 
    gcc)
12878
 
      # This depmode causes a compiler race in universal mode.
12879
 
      test "$am__universal" = false || continue
12880
 
      ;;
12881
 
    nosideeffect)
12882
 
      # after this tag, mechanisms are not by side-effect, so they'll
12883
 
      # only be used when explicitly requested
12884
 
      if test "x$enable_dependency_tracking" = xyes; then
12885
 
        continue
12886
 
      else
12887
 
        break
12888
 
      fi
12889
 
      ;;
12890
 
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12891
 
      # This compiler won't grok `-c -o', but also, the minuso test has
12892
 
      # not run yet.  These depmodes are late enough in the game, and
12893
 
      # so weak that their functioning should not be impacted.
12894
 
      am__obj=conftest.${OBJEXT-o}
12895
 
      am__minus_obj=
12896
 
      ;;
12897
 
    none) break ;;
12898
 
    esac
12899
 
    if depmode=$depmode \
12900
 
       source=sub/conftest.c object=$am__obj \
12901
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12902
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12903
 
         >/dev/null 2>conftest.err &&
12904
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12905
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12906
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12907
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12908
 
      # icc doesn't choke on unknown options, it will just issue warnings
12909
 
      # or remarks (even with -Werror).  So we grep stderr for any message
12910
 
      # that says an option was ignored or not supported.
12911
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
12912
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
12913
 
      # The diagnosis changed in icc 8.0:
12914
 
      #   icc: Command line remark: option '-MP' not supported
12915
 
      if (grep 'ignoring option' conftest.err ||
12916
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12917
 
        am_cv_CC_dependencies_compiler_type=$depmode
12918
 
        break
12919
 
      fi
12920
 
    fi
12921
 
  done
12922
 
 
12923
 
  cd ..
12924
 
  rm -rf conftest.dir
12925
 
else
12926
 
  am_cv_CC_dependencies_compiler_type=none
12927
 
fi
12928
 
 
12929
 
fi
12930
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12931
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12932
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12933
 
 
12934
 
 if
12935
 
  test "x$enable_dependency_tracking" != xno \
12936
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12937
 
  am__fastdepCC_TRUE=
12938
 
  am__fastdepCC_FALSE='#'
12939
 
else
12940
 
  am__fastdepCC_TRUE='#'
12941
 
  am__fastdepCC_FALSE=
12942
 
fi
12943
 
 
12944
 
 
12945
 
ac_ext=cpp
12946
 
ac_cpp='$CXXCPP $CPPFLAGS'
12947
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12948
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12949
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12950
 
if test -z "$CXX"; then
12951
 
  if test -n "$CCC"; then
12952
 
    CXX=$CCC
12953
 
  else
12954
 
    if test -n "$ac_tool_prefix"; then
12955
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12956
 
  do
12957
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12958
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12959
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12960
 
$as_echo_n "checking for $ac_word... " >&6; }
12961
 
if ${ac_cv_prog_CXX+:} false; then :
12962
 
  $as_echo_n "(cached) " >&6
12963
 
else
12964
 
  if test -n "$CXX"; then
12965
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12966
 
else
12967
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968
 
for as_dir in $PATH
12969
 
do
12970
 
  IFS=$as_save_IFS
12971
 
  test -z "$as_dir" && as_dir=.
12972
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12973
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12974
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12975
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12976
 
    break 2
12977
 
  fi
12978
 
done
12979
 
  done
12980
 
IFS=$as_save_IFS
12981
 
 
12982
 
fi
12983
 
fi
12984
 
CXX=$ac_cv_prog_CXX
12985
 
if test -n "$CXX"; then
12986
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12987
 
$as_echo "$CXX" >&6; }
12988
 
else
12989
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990
 
$as_echo "no" >&6; }
12991
 
fi
12992
 
 
12993
 
 
12994
 
    test -n "$CXX" && break
12995
 
  done
12996
 
fi
12997
 
if test -z "$CXX"; then
12998
 
  ac_ct_CXX=$CXX
12999
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13000
 
do
13001
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13002
 
set dummy $ac_prog; ac_word=$2
13003
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004
 
$as_echo_n "checking for $ac_word... " >&6; }
13005
 
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13006
 
  $as_echo_n "(cached) " >&6
13007
 
else
13008
 
  if test -n "$ac_ct_CXX"; then
13009
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13010
 
else
13011
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012
 
for as_dir in $PATH
13013
 
do
13014
 
  IFS=$as_save_IFS
13015
 
  test -z "$as_dir" && as_dir=.
13016
 
    for ac_exec_ext in '' $ac_executable_extensions; do
13017
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13018
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
13019
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13020
 
    break 2
13021
 
  fi
13022
 
done
13023
 
  done
13024
 
IFS=$as_save_IFS
13025
 
 
13026
 
fi
13027
 
fi
13028
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13029
 
if test -n "$ac_ct_CXX"; then
13030
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13031
 
$as_echo "$ac_ct_CXX" >&6; }
13032
 
else
13033
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034
 
$as_echo "no" >&6; }
13035
 
fi
13036
 
 
13037
 
 
13038
 
  test -n "$ac_ct_CXX" && break
13039
 
done
13040
 
 
13041
 
  if test "x$ac_ct_CXX" = x; then
13042
 
    CXX="g++"
13043
 
  else
13044
 
    case $cross_compiling:$ac_tool_warned in
13045
 
yes:)
13046
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13047
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13048
 
ac_tool_warned=yes ;;
13049
 
esac
13050
 
    CXX=$ac_ct_CXX
13051
 
  fi
13052
 
fi
13053
 
 
13054
 
  fi
13055
 
fi
13056
 
# Provide some information about the compiler.
13057
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13058
 
set X $ac_compile
13059
 
ac_compiler=$2
13060
 
for ac_option in --version -v -V -qversion; do
13061
 
  { { ac_try="$ac_compiler $ac_option >&5"
13062
 
case "(($ac_try" in
13063
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064
 
  *) ac_try_echo=$ac_try;;
13065
 
esac
13066
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13067
 
$as_echo "$ac_try_echo"; } >&5
13068
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13069
 
  ac_status=$?
13070
 
  if test -s conftest.err; then
13071
 
    sed '10a\
13072
 
... rest of stderr output deleted ...
13073
 
         10q' conftest.err >conftest.er1
13074
 
    cat conftest.er1 >&5
13075
 
  fi
13076
 
  rm -f conftest.er1 conftest.err
13077
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13078
 
  test $ac_status = 0; }
13079
 
done
13080
 
 
13081
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13082
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13083
 
if ${ac_cv_cxx_compiler_gnu+:} false; then :
13084
 
  $as_echo_n "(cached) " >&6
13085
 
else
13086
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087
 
/* end confdefs.h.  */
13088
 
 
13089
 
int
13090
 
main ()
13091
 
{
13092
 
#ifndef __GNUC__
13093
 
       choke me
13094
 
#endif
13095
 
 
13096
 
  ;
13097
 
  return 0;
13098
 
}
13099
 
_ACEOF
13100
 
if ac_fn_cxx_try_compile "$LINENO"; then :
13101
 
  ac_compiler_gnu=yes
13102
 
else
13103
 
  ac_compiler_gnu=no
13104
 
fi
13105
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13106
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13107
 
 
13108
 
fi
13109
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13110
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13111
 
if test $ac_compiler_gnu = yes; then
13112
 
  GXX=yes
13113
 
else
13114
 
  GXX=
13115
 
fi
13116
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
13117
 
ac_save_CXXFLAGS=$CXXFLAGS
13118
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13119
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13120
 
if ${ac_cv_prog_cxx_g+:} false; then :
13121
 
  $as_echo_n "(cached) " >&6
13122
 
else
13123
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13124
 
   ac_cxx_werror_flag=yes
13125
 
   ac_cv_prog_cxx_g=no
13126
 
   CXXFLAGS="-g"
13127
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128
 
/* end confdefs.h.  */
13129
 
 
13130
 
int
13131
 
main ()
13132
 
{
13133
 
 
13134
 
  ;
13135
 
  return 0;
13136
 
}
13137
 
_ACEOF
13138
 
if ac_fn_cxx_try_compile "$LINENO"; then :
13139
 
  ac_cv_prog_cxx_g=yes
13140
 
else
13141
 
  CXXFLAGS=""
13142
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143
 
/* end confdefs.h.  */
13144
 
 
13145
 
int
13146
 
main ()
13147
 
{
13148
 
 
13149
 
  ;
13150
 
  return 0;
13151
 
}
13152
 
_ACEOF
13153
 
if ac_fn_cxx_try_compile "$LINENO"; then :
13154
 
 
13155
 
else
13156
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13157
 
         CXXFLAGS="-g"
13158
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159
 
/* end confdefs.h.  */
13160
 
 
13161
 
int
13162
 
main ()
13163
 
{
13164
 
 
13165
 
  ;
13166
 
  return 0;
13167
 
}
13168
 
_ACEOF
13169
 
if ac_fn_cxx_try_compile "$LINENO"; then :
13170
 
  ac_cv_prog_cxx_g=yes
13171
 
fi
13172
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13173
 
fi
13174
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13175
 
fi
13176
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13178
 
fi
13179
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13180
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
13181
 
if test "$ac_test_CXXFLAGS" = set; then
13182
 
  CXXFLAGS=$ac_save_CXXFLAGS
13183
 
elif test $ac_cv_prog_cxx_g = yes; then
13184
 
  if test "$GXX" = yes; then
13185
 
    CXXFLAGS="-g -O2"
13186
 
  else
13187
 
    CXXFLAGS="-g"
13188
 
  fi
13189
 
else
13190
 
  if test "$GXX" = yes; then
13191
 
    CXXFLAGS="-O2"
13192
 
  else
13193
 
    CXXFLAGS=
13194
 
  fi
13195
 
fi
13196
 
ac_ext=c
13197
 
ac_cpp='$CPP $CPPFLAGS'
13198
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13199
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13200
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13201
 
 
13202
 
depcc="$CXX"  am_compiler_list=
13203
 
 
13204
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13205
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
13206
 
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13207
 
  $as_echo_n "(cached) " >&6
13208
 
else
13209
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13210
 
  # We make a subdir and do the tests there.  Otherwise we can end up
13211
 
  # making bogus files that we don't know about and never remove.  For
13212
 
  # instance it was reported that on HP-UX the gcc test will end up
13213
 
  # making a dummy file named `D' -- because `-MD' means `put the output
13214
 
  # in D'.
13215
 
  rm -rf conftest.dir
13216
 
  mkdir conftest.dir
13217
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
13218
 
  # using a relative directory.
13219
 
  cp "$am_depcomp" conftest.dir
13220
 
  cd conftest.dir
13221
 
  # We will build objects and dependencies in a subdirectory because
13222
 
  # it helps to detect inapplicable dependency modes.  For instance
13223
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
13224
 
  # side effect of compilation, but ICC will put the dependencies in
13225
 
  # the current directory while Tru64 will put them in the object
13226
 
  # directory.
13227
 
  mkdir sub
13228
 
 
13229
 
  am_cv_CXX_dependencies_compiler_type=none
13230
 
  if test "$am_compiler_list" = ""; then
13231
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13232
 
  fi
13233
 
  am__universal=false
13234
 
  case " $depcc " in #(
13235
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13236
 
     esac
13237
 
 
13238
 
  for depmode in $am_compiler_list; do
13239
 
    # Setup a source with many dependencies, because some compilers
13240
 
    # like to wrap large dependency lists on column 80 (with \), and
13241
 
    # we should not choose a depcomp mode which is confused by this.
13242
 
    #
13243
 
    # We need to recreate these files for each test, as the compiler may
13244
 
    # overwrite some of them when testing with obscure command lines.
13245
 
    # This happens at least with the AIX C compiler.
13246
 
    : > sub/conftest.c
13247
 
    for i in 1 2 3 4 5 6; do
13248
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13249
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13250
 
      # Solaris 8's {/usr,}/bin/sh.
13251
 
      touch sub/conftst$i.h
13252
 
    done
13253
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13254
 
 
13255
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13256
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
13257
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
13258
 
    # versions had trouble with output in subdirs
13259
 
    am__obj=sub/conftest.${OBJEXT-o}
13260
 
    am__minus_obj="-o $am__obj"
13261
 
    case $depmode in
13262
 
    gcc)
13263
 
      # This depmode causes a compiler race in universal mode.
13264
 
      test "$am__universal" = false || continue
13265
 
      ;;
13266
 
    nosideeffect)
13267
 
      # after this tag, mechanisms are not by side-effect, so they'll
13268
 
      # only be used when explicitly requested
13269
 
      if test "x$enable_dependency_tracking" = xyes; then
13270
 
        continue
13271
 
      else
13272
 
        break
13273
 
      fi
13274
 
      ;;
13275
 
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13276
 
      # This compiler won't grok `-c -o', but also, the minuso test has
13277
 
      # not run yet.  These depmodes are late enough in the game, and
13278
 
      # so weak that their functioning should not be impacted.
13279
 
      am__obj=conftest.${OBJEXT-o}
13280
 
      am__minus_obj=
13281
 
      ;;
13282
 
    none) break ;;
13283
 
    esac
13284
 
    if depmode=$depmode \
13285
 
       source=sub/conftest.c object=$am__obj \
13286
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13287
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13288
 
         >/dev/null 2>conftest.err &&
13289
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13290
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13291
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13292
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13293
 
      # icc doesn't choke on unknown options, it will just issue warnings
13294
 
      # or remarks (even with -Werror).  So we grep stderr for any message
13295
 
      # that says an option was ignored or not supported.
13296
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
13297
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
13298
 
      # The diagnosis changed in icc 8.0:
13299
 
      #   icc: Command line remark: option '-MP' not supported
13300
 
      if (grep 'ignoring option' conftest.err ||
13301
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13302
 
        am_cv_CXX_dependencies_compiler_type=$depmode
13303
 
        break
13304
 
      fi
13305
 
    fi
13306
 
  done
13307
 
 
13308
 
  cd ..
13309
 
  rm -rf conftest.dir
13310
 
else
13311
 
  am_cv_CXX_dependencies_compiler_type=none
13312
 
fi
13313
 
 
13314
 
fi
13315
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13316
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13317
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13318
 
 
13319
 
 if
13320
 
  test "x$enable_dependency_tracking" != xno \
13321
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13322
 
  am__fastdepCXX_TRUE=
13323
 
  am__fastdepCXX_FALSE='#'
13324
 
else
13325
 
  am__fastdepCXX_TRUE='#'
13326
 
  am__fastdepCXX_FALSE=
13327
 
fi
13328
 
 
13329
 
 
13330
 
 
13331
 
 
13332
 
func_stripname_cnf ()
13333
 
{
13334
 
  case ${2} in
13335
 
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13336
 
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13337
 
  esac
13338
 
} # func_stripname_cnf
13339
 
 
13340
15197
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13341
15198
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13342
15199
    (test "X$CXX" != "Xg++"))) ; then
14136
15993
        ld_shlibs_CXX=yes
14137
15994
        ;;
14138
15995
 
 
15996
      gnu*)
 
15997
        ;;
 
15998
 
14139
15999
      haiku*)
14140
16000
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14141
16001
        link_all_deplibs_CXX=yes
14297
16157
        inherit_rpath_CXX=yes
14298
16158
        ;;
14299
16159
 
14300
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
16160
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14301
16161
        case $cc_basename in
14302
16162
          KCC*)
14303
16163
            # Kuck and Associates, Inc. (KAI) C++ Compiler
15157
17017
            ;;
15158
17018
        esac
15159
17019
        ;;
15160
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
17020
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
15161
17021
        case $cc_basename in
15162
17022
          KCC*)
15163
17023
            # KAI C++ Compiler
15221
17081
            ;;
15222
17082
        esac
15223
17083
        ;;
15224
 
      netbsd* | netbsdelf*-gnu)
 
17084
      netbsd*)
15225
17085
        ;;
15226
17086
      *qnx* | *nto*)
15227
17087
        # QNX uses GNU C++, but need to define -shared option too, otherwise
15592
17452
      ;;
15593
17453
    esac
15594
17454
    ;;
15595
 
  linux* | k*bsd*-gnu | gnu*)
15596
 
    link_all_deplibs_CXX=no
15597
 
    ;;
15598
17455
  *)
15599
17456
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15600
17457
    ;;
16029
17886
  esac
16030
17887
  ;;
16031
17888
 
 
17889
gnu*)
 
17890
  version_type=linux # correct to gnu/linux during the next big refactor
 
17891
  need_lib_prefix=no
 
17892
  need_version=no
 
17893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17894
  soname_spec='${libname}${release}${shared_ext}$major'
 
17895
  shlibpath_var=LD_LIBRARY_PATH
 
17896
  shlibpath_overrides_runpath=no
 
17897
  hardcode_into_libs=yes
 
17898
  ;;
 
17899
 
16032
17900
haiku*)
16033
17901
  version_type=linux # correct to gnu/linux during the next big refactor
16034
17902
  need_lib_prefix=no
16145
18013
  ;;
16146
18014
 
16147
18015
# This must be glibc/ELF.
16148
 
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
18016
linux* | k*bsd*-gnu | kopensolaris*-gnu)
16149
18017
  version_type=linux # correct to gnu/linux during the next big refactor
16150
18018
  need_lib_prefix=no
16151
18019
  need_version=no
16194
18062
  # before this can be enabled.
16195
18063
  hardcode_into_libs=yes
16196
18064
 
 
18065
  # Add ABI-specific directories to the system library path.
 
18066
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
18067
 
16197
18068
  # Append ld.so.conf contents to the search path
16198
18069
  if test -f /etc/ld.so.conf; then
16199
18070
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16200
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18071
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
18072
 
16201
18073
  fi
16202
18074
 
16203
18075
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16209
18081
  dynamic_linker='GNU/Linux ld.so'
16210
18082
  ;;
16211
18083
 
16212
 
netbsdelf*-gnu)
16213
 
  version_type=linux
16214
 
  need_lib_prefix=no
16215
 
  need_version=no
16216
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16217
 
  soname_spec='${libname}${release}${shared_ext}$major'
16218
 
  shlibpath_var=LD_LIBRARY_PATH
16219
 
  shlibpath_overrides_runpath=no
16220
 
  hardcode_into_libs=yes
16221
 
  dynamic_linker='NetBSD ld.elf_so'
16222
 
  ;;
16223
 
 
16224
18084
netbsd*)
16225
18085
  version_type=sunos
16226
18086
  need_lib_prefix=no
16527
18387
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16528
18388
 
16529
18389
 
16530
 
if test "x$CC" != xcc; then
16531
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16532
 
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16533
 
else
16534
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16535
 
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16536
 
fi
16537
 
set dummy $CC; ac_cc=`$as_echo "$2" |
16538
 
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16539
 
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
16540
 
  $as_echo_n "(cached) " >&6
16541
 
else
16542
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16543
 
/* end confdefs.h.  */
16544
 
 
16545
 
int
16546
 
main ()
16547
 
{
16548
 
 
16549
 
  ;
16550
 
  return 0;
16551
 
}
16552
 
_ACEOF
16553
 
# Make sure it works both with $CC and with simple cc.
16554
 
# We do the test twice because some compilers refuse to overwrite an
16555
 
# existing .o file with -o, though they will create one.
16556
 
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16557
 
rm -f conftest2.*
16558
 
if { { case "(($ac_try" in
16559
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560
 
  *) ac_try_echo=$ac_try;;
16561
 
esac
16562
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16563
 
$as_echo "$ac_try_echo"; } >&5
16564
 
  (eval "$ac_try") 2>&5
16565
 
  ac_status=$?
16566
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16567
 
  test $ac_status = 0; } &&
16568
 
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
16569
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570
 
  *) ac_try_echo=$ac_try;;
16571
 
esac
16572
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16573
 
$as_echo "$ac_try_echo"; } >&5
16574
 
  (eval "$ac_try") 2>&5
16575
 
  ac_status=$?
16576
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16577
 
  test $ac_status = 0; };
16578
 
then
16579
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16580
 
  if test "x$CC" != xcc; then
16581
 
    # Test first that cc exists at all.
16582
 
    if { ac_try='cc -c conftest.$ac_ext >&5'
16583
 
  { { case "(($ac_try" in
16584
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585
 
  *) ac_try_echo=$ac_try;;
16586
 
esac
16587
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16588
 
$as_echo "$ac_try_echo"; } >&5
16589
 
  (eval "$ac_try") 2>&5
16590
 
  ac_status=$?
16591
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16592
 
  test $ac_status = 0; }; }; then
16593
 
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16594
 
      rm -f conftest2.*
16595
 
      if { { case "(($ac_try" in
16596
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597
 
  *) ac_try_echo=$ac_try;;
16598
 
esac
16599
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16600
 
$as_echo "$ac_try_echo"; } >&5
16601
 
  (eval "$ac_try") 2>&5
16602
 
  ac_status=$?
16603
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16604
 
  test $ac_status = 0; } &&
16605
 
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
16606
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607
 
  *) ac_try_echo=$ac_try;;
16608
 
esac
16609
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16610
 
$as_echo "$ac_try_echo"; } >&5
16611
 
  (eval "$ac_try") 2>&5
16612
 
  ac_status=$?
16613
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16614
 
  test $ac_status = 0; };
16615
 
      then
16616
 
        # cc works too.
16617
 
        :
16618
 
      else
16619
 
        # cc exists but doesn't like -o.
16620
 
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
16621
 
      fi
16622
 
    fi
16623
 
  fi
16624
 
else
16625
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
16626
 
fi
16627
 
rm -f core conftest*
16628
 
 
16629
 
fi
16630
 
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
16631
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16632
 
$as_echo "yes" >&6; }
16633
 
else
16634
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16635
 
$as_echo "no" >&6; }
16636
 
 
16637
 
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
16638
 
 
16639
 
fi
16640
 
 
16641
 
# FIXME: we rely on the cache variable name because
16642
 
# there is no other way.
16643
 
set dummy $CC
16644
 
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16645
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16646
 
if test "$am_t" != yes; then
16647
 
   # Losing compiler, so override with the script.
16648
 
   # FIXME: It is wrong to rewrite CC.
16649
 
   # But if we don't then we get into trouble of one sort or another.
16650
 
   # A longer-term fix would be to have automake use am__CC in this case,
16651
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16652
 
   CC="$am_aux_dir/compile $CC"
16653
 
fi
16654
 
 
16655
 
 
16656
 
# By default we simply use the C compiler to build assembly code.
16657
 
 
16658
 
test "${CCAS+set}" = set || CCAS=$CC
16659
 
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
16660
 
 
16661
 
 
16662
 
 
16663
 
depcc="$CCAS"   am_compiler_list=
16664
 
 
16665
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16666
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
16667
 
if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
16668
 
  $as_echo_n "(cached) " >&6
16669
 
else
16670
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16671
 
  # We make a subdir and do the tests there.  Otherwise we can end up
16672
 
  # making bogus files that we don't know about and never remove.  For
16673
 
  # instance it was reported that on HP-UX the gcc test will end up
16674
 
  # making a dummy file named `D' -- because `-MD' means `put the output
16675
 
  # in D'.
16676
 
  rm -rf conftest.dir
16677
 
  mkdir conftest.dir
16678
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
16679
 
  # using a relative directory.
16680
 
  cp "$am_depcomp" conftest.dir
16681
 
  cd conftest.dir
16682
 
  # We will build objects and dependencies in a subdirectory because
16683
 
  # it helps to detect inapplicable dependency modes.  For instance
16684
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
16685
 
  # side effect of compilation, but ICC will put the dependencies in
16686
 
  # the current directory while Tru64 will put them in the object
16687
 
  # directory.
16688
 
  mkdir sub
16689
 
 
16690
 
  am_cv_CCAS_dependencies_compiler_type=none
16691
 
  if test "$am_compiler_list" = ""; then
16692
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16693
 
  fi
16694
 
  am__universal=false
16695
 
 
16696
 
 
16697
 
  for depmode in $am_compiler_list; do
16698
 
    # Setup a source with many dependencies, because some compilers
16699
 
    # like to wrap large dependency lists on column 80 (with \), and
16700
 
    # we should not choose a depcomp mode which is confused by this.
16701
 
    #
16702
 
    # We need to recreate these files for each test, as the compiler may
16703
 
    # overwrite some of them when testing with obscure command lines.
16704
 
    # This happens at least with the AIX C compiler.
16705
 
    : > sub/conftest.c
16706
 
    for i in 1 2 3 4 5 6; do
16707
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
16708
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16709
 
      # Solaris 8's {/usr,}/bin/sh.
16710
 
      touch sub/conftst$i.h
16711
 
    done
16712
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16713
 
 
16714
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
16715
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
16716
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
16717
 
    # versions had trouble with output in subdirs
16718
 
    am__obj=sub/conftest.${OBJEXT-o}
16719
 
    am__minus_obj="-o $am__obj"
16720
 
    case $depmode in
16721
 
    gcc)
16722
 
      # This depmode causes a compiler race in universal mode.
16723
 
      test "$am__universal" = false || continue
16724
 
      ;;
16725
 
    nosideeffect)
16726
 
      # after this tag, mechanisms are not by side-effect, so they'll
16727
 
      # only be used when explicitly requested
16728
 
      if test "x$enable_dependency_tracking" = xyes; then
16729
 
        continue
16730
 
      else
16731
 
        break
16732
 
      fi
16733
 
      ;;
16734
 
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16735
 
      # This compiler won't grok `-c -o', but also, the minuso test has
16736
 
      # not run yet.  These depmodes are late enough in the game, and
16737
 
      # so weak that their functioning should not be impacted.
16738
 
      am__obj=conftest.${OBJEXT-o}
16739
 
      am__minus_obj=
16740
 
      ;;
16741
 
    none) break ;;
16742
 
    esac
16743
 
    if depmode=$depmode \
16744
 
       source=sub/conftest.c object=$am__obj \
16745
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16746
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16747
 
         >/dev/null 2>conftest.err &&
16748
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16749
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16750
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16751
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16752
 
      # icc doesn't choke on unknown options, it will just issue warnings
16753
 
      # or remarks (even with -Werror).  So we grep stderr for any message
16754
 
      # that says an option was ignored or not supported.
16755
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
16756
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
16757
 
      # The diagnosis changed in icc 8.0:
16758
 
      #   icc: Command line remark: option '-MP' not supported
16759
 
      if (grep 'ignoring option' conftest.err ||
16760
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16761
 
        am_cv_CCAS_dependencies_compiler_type=$depmode
16762
 
        break
16763
 
      fi
16764
 
    fi
16765
 
  done
16766
 
 
16767
 
  cd ..
16768
 
  rm -rf conftest.dir
16769
 
else
16770
 
  am_cv_CCAS_dependencies_compiler_type=none
16771
 
fi
16772
 
 
16773
 
fi
16774
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
16775
 
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
16776
 
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
16777
 
 
16778
 
 if
16779
 
  test "x$enable_dependency_tracking" != xno \
16780
 
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
16781
 
  am__fastdepCCAS_TRUE=
16782
 
  am__fastdepCCAS_FALSE='#'
16783
 
else
16784
 
  am__fastdepCCAS_TRUE='#'
16785
 
  am__fastdepCCAS_FALSE=
16786
 
fi
16787
 
 
16788
 
 
16789
 
for ac_prog in gmake make
16790
 
do
16791
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
16792
 
set dummy $ac_prog; ac_word=$2
16793
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16794
 
$as_echo_n "checking for $ac_word... " >&6; }
16795
 
if ${ac_cv_prog_MAKE+:} false; then :
16796
 
  $as_echo_n "(cached) " >&6
16797
 
else
16798
 
  if test -n "$MAKE"; then
16799
 
  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
16800
 
else
16801
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16802
 
for as_dir in $PATH
16803
 
do
16804
 
  IFS=$as_save_IFS
16805
 
  test -z "$as_dir" && as_dir=.
16806
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16807
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16808
 
    ac_cv_prog_MAKE="$ac_prog"
16809
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16810
 
    break 2
16811
 
  fi
16812
 
done
16813
 
  done
16814
 
IFS=$as_save_IFS
16815
 
 
16816
 
fi
16817
 
fi
16818
 
MAKE=$ac_cv_prog_MAKE
16819
 
if test -n "$MAKE"; then
16820
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
16821
 
$as_echo "$MAKE" >&6; }
16822
 
else
16823
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16824
 
$as_echo "no" >&6; }
16825
 
fi
16826
 
 
16827
 
 
16828
 
  test -n "$MAKE" && break
16829
 
done
16830
 
 
16831
 
for ac_prog in python2 python
16832
 
do
16833
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
16834
 
set dummy $ac_prog; ac_word=$2
16835
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16836
 
$as_echo_n "checking for $ac_word... " >&6; }
16837
 
if ${ac_cv_prog_PYTHON2+:} false; then :
16838
 
  $as_echo_n "(cached) " >&6
16839
 
else
16840
 
  if test -n "$PYTHON2"; then
16841
 
  ac_cv_prog_PYTHON2="$PYTHON2" # Let the user override the test.
16842
 
else
16843
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16844
 
for as_dir in $PATH
16845
 
do
16846
 
  IFS=$as_save_IFS
16847
 
  test -z "$as_dir" && as_dir=.
16848
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16849
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16850
 
    ac_cv_prog_PYTHON2="$ac_prog"
16851
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16852
 
    break 2
16853
 
  fi
16854
 
done
16855
 
  done
16856
 
IFS=$as_save_IFS
16857
 
 
16858
 
fi
16859
 
fi
16860
 
PYTHON2=$ac_cv_prog_PYTHON2
16861
 
if test -n "$PYTHON2"; then
16862
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2" >&5
16863
 
$as_echo "$PYTHON2" >&6; }
16864
 
else
16865
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16866
 
$as_echo "no" >&6; }
16867
 
fi
16868
 
 
16869
 
 
16870
 
  test -n "$PYTHON2" && break
16871
 
done
16872
 
 
16873
 
 
16874
 
    if test -z $PYTHON2;
16875
 
    then
16876
 
        PYTHON2="python"
16877
 
    fi
16878
 
    PYTHON_NAME=`basename $PYTHON2`
16879
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: libxml2" >&5
16880
 
$as_echo_n "checking $PYTHON_NAME module: libxml2... " >&6; }
16881
 
        $PYTHON2 -c "import libxml2" 2>/dev/null
16882
 
        if test $? -eq 0;
16883
 
        then
16884
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16885
 
$as_echo "yes" >&6; }
16886
 
                eval HAVE_PYMOD_LIBXML2=yes
16887
 
        else
16888
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16889
 
$as_echo "no" >&6; }
16890
 
                eval HAVE_PYMOD_LIBXML2=no
16891
 
                #
16892
 
                if test -n "needed"
16893
 
                then
16894
 
                        as_fn_error $? "failed to find required module libxml2" "$LINENO" 5
16895
 
                        exit 1
16896
 
                fi
16897
 
        fi
16898
 
 
16899
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
16900
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
16901
 
if ${ac_cv_path_SED+:} false; then :
16902
 
  $as_echo_n "(cached) " >&6
16903
 
else
16904
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
16905
 
     for ac_i in 1 2 3 4 5 6 7; do
16906
 
       ac_script="$ac_script$as_nl$ac_script"
16907
 
     done
16908
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
16909
 
     { ac_script=; unset ac_script;}
16910
 
     if test -z "$SED"; then
16911
 
  ac_path_SED_found=false
16912
 
  # Loop through the user's path and test for each of PROGNAME-LIST
16913
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16914
 
for as_dir in $PATH
16915
 
do
16916
 
  IFS=$as_save_IFS
16917
 
  test -z "$as_dir" && as_dir=.
16918
 
    for ac_prog in sed gsed; do
16919
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16920
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
16921
 
      as_fn_executable_p "$ac_path_SED" || continue
16922
 
# Check for GNU ac_path_SED and select it if it is found.
16923
 
  # Check for GNU $ac_path_SED
16924
 
case `"$ac_path_SED" --version 2>&1` in
16925
 
*GNU*)
16926
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
16927
 
*)
16928
 
  ac_count=0
16929
 
  $as_echo_n 0123456789 >"conftest.in"
16930
 
  while :
16931
 
  do
16932
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
16933
 
    mv "conftest.tmp" "conftest.in"
16934
 
    cp "conftest.in" "conftest.nl"
16935
 
    $as_echo '' >> "conftest.nl"
16936
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
16937
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16938
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
16939
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
16940
 
      # Best one so far, save it but keep looking for a better one
16941
 
      ac_cv_path_SED="$ac_path_SED"
16942
 
      ac_path_SED_max=$ac_count
16943
 
    fi
16944
 
    # 10*(2^10) chars as input seems more than enough
16945
 
    test $ac_count -gt 10 && break
16946
 
  done
16947
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16948
 
esac
16949
 
 
16950
 
      $ac_path_SED_found && break 3
16951
 
    done
16952
 
  done
16953
 
  done
16954
 
IFS=$as_save_IFS
16955
 
  if test -z "$ac_cv_path_SED"; then
16956
 
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
16957
 
  fi
16958
 
else
16959
 
  ac_cv_path_SED=$SED
16960
 
fi
16961
 
 
16962
 
fi
16963
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
16964
 
$as_echo "$ac_cv_path_SED" >&6; }
16965
 
 SED="$ac_cv_path_SED"
16966
 
  rm -f conftest.sed
16967
 
 
16968
 
 
16969
 
# Extract the first word of "makedepend", so it can be a program name with args.
16970
 
set dummy makedepend; ac_word=$2
16971
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16972
 
$as_echo_n "checking for $ac_word... " >&6; }
16973
 
if ${ac_cv_path_MKDEP+:} false; then :
16974
 
  $as_echo_n "(cached) " >&6
16975
 
else
16976
 
  case $MKDEP in
16977
 
  [\\/]* | ?:[\\/]*)
16978
 
  ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
16979
 
  ;;
16980
 
  *)
16981
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16982
 
for as_dir in $PATH
16983
 
do
16984
 
  IFS=$as_save_IFS
16985
 
  test -z "$as_dir" && as_dir=.
16986
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16987
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16988
 
    ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
16989
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16990
 
    break 2
16991
 
  fi
16992
 
done
16993
 
  done
16994
 
IFS=$as_save_IFS
16995
 
 
16996
 
  ;;
16997
 
esac
16998
 
fi
16999
 
MKDEP=$ac_cv_path_MKDEP
17000
 
if test -n "$MKDEP"; then
17001
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
17002
 
$as_echo "$MKDEP" >&6; }
17003
 
else
17004
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17005
 
$as_echo "no" >&6; }
17006
 
fi
17007
 
 
17008
 
 
17009
 
 
17010
 
if test "x$MKDEP" = "x"; then
17011
 
    as_fn_error $? "makedepend is required to build Mesa" "$LINENO" 5
17012
 
fi
 
18390
 
 
18391
 
 
18392
 
 
18393
 
 
18394
 
 
18395
 
 
18396
 
 
18397
 
 
18398
 
 
18399
 
 
18400
 
 
18401
 
 
18402
 
 
18403
        ac_config_commands="$ac_config_commands libtool"
 
18404
 
 
18405
 
 
18406
 
 
18407
 
 
18408
# Only expand once:
 
18409
 
 
18410
 
17013
18411
 
17014
18412
for ac_prog in 'bison -y' byacc
17015
18413
do
17054
18452
done
17055
18453
test -n "$YACC" || YACC="yacc"
17056
18454
 
17057
 
# Extract the first word of "$YACC", so it can be a program name with args.
17058
 
set dummy $YACC; ac_word=$2
17059
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17060
 
$as_echo_n "checking for $ac_word... " >&6; }
17061
 
if ${ac_cv_path_YACC_INST+:} false; then :
 
18455
 
 
18456
 
 
18457
 
 
18458
 
 
18459
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
 
18460
$as_echo_n "checking if bison is the parser generator... " >&6; }
 
18461
if ${ax_cv_prog_bison+:} false; then :
17062
18462
  $as_echo_n "(cached) " >&6
17063
18463
else
17064
 
  case $YACC_INST in
17065
 
  [\\/]* | ?:[\\/]*)
17066
 
  ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
17067
 
  ;;
17068
 
  *)
17069
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17070
 
for as_dir in $PATH
17071
 
do
17072
 
  IFS=$as_save_IFS
17073
 
  test -z "$as_dir" && as_dir=.
17074
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17075
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17076
 
    ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
17077
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17078
 
    break 2
17079
 
  fi
17080
 
done
17081
 
  done
17082
 
IFS=$as_save_IFS
17083
 
 
17084
 
  ;;
17085
 
esac
17086
 
fi
17087
 
YACC_INST=$ac_cv_path_YACC_INST
17088
 
if test -n "$YACC_INST"; then
17089
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
17090
 
$as_echo "$YACC_INST" >&6; }
17091
 
else
17092
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17093
 
$as_echo "no" >&6; }
17094
 
fi
17095
 
 
17096
 
 
17097
 
if test ! -f "$srcdir/src/glsl/glcpp/glcpp-parse.c"; then
17098
 
    if test -z "$YACC_INST"; then
17099
 
        as_fn_error $? "yacc not found - unable to compile glcpp-parse.y" "$LINENO" 5
17100
 
    fi
17101
 
fi
 
18464
 
 
18465
    if $YACC --version 2>/dev/null | $EGREP -q '^bison '; then :
 
18466
  ax_cv_prog_bison=yes
 
18467
else
 
18468
  ax_cv_prog_bison=no
 
18469
fi
 
18470
 
 
18471
fi
 
18472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
 
18473
$as_echo "$ax_cv_prog_bison" >&6; }
 
18474
  if test "$ax_cv_prog_bison" = "yes"; then :
 
18475
 
 
18476
                              YACC="${YACC% -y}"
 
18477
 
 
18478
else
 
18479
  if test ! -f "$srcdir/src/glsl/glcpp/glcpp-parse.c"; then :
 
18480
  as_fn_error $? "bison not found - unable to compile glcpp-parse.y" "$LINENO" 5
 
18481
fi
 
18482
 
 
18483
fi
 
18484
 
17102
18485
for ac_prog in flex lex
17103
18486
do
17104
18487
  # Extract the first word of "$ac_prog", so it can be a program name with args.
17258
18641
rm -f conftest.l $LEX_OUTPUT_ROOT.c
17259
18642
 
17260
18643
fi
 
18644
if test "$LEX" = :; then
 
18645
  LEX=${am_missing_run}flex
 
18646
fi
 
18647
 
 
18648
 
 
18649
 
 
18650
 
 
18651
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
 
18652
$as_echo_n "checking if flex is the lexer generator... " >&6; }
 
18653
if ${ax_cv_prog_flex+:} false; then :
 
18654
  $as_echo_n "(cached) " >&6
 
18655
else
 
18656
 
 
18657
    if $LEX --version 2>/dev/null | $EGREP -q '^flex '; then :
 
18658
  ax_cv_prog_flex=yes
 
18659
else
 
18660
  ax_cv_prog_flex=no
 
18661
fi
 
18662
 
 
18663
fi
 
18664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
 
18665
$as_echo "$ax_cv_prog_flex" >&6; }
 
18666
  if test "$ax_cv_prog_flex" = "yes"; then :
 
18667
 
 
18668
else
 
18669
  if test ! -f "$srcdir/src/glsl/glcpp/glcpp-lex.c"; then :
 
18670
  as_fn_error $? "flex not found - unable to compile glcpp-lex.l" "$LINENO" 5
 
18671
fi
 
18672
 
 
18673
fi
 
18674
 
17261
18675
 
17262
18676
# Extract the first word of "perl", so it can be a program name with args.
17263
18677
set dummy perl; ac_word=$2
17339
18753
 
17340
18754
 
17341
18755
if test "x$INDENT" != "xcat"; then
17342
 
    INDENT_FLAGS='-i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool'
 
18756
    INDENT_FLAGS='-i4 -nut -br -brs -npcs -ce -TGLubyte -TGLbyte -TBool'
17343
18757
 
17344
18758
fi
17345
18759
 
17346
18760
 
17347
 
test "x$INSTALL" = "x$ac_install_sh" && INSTALL='$(MINSTALL)'
17348
18761
 
17349
18762
case "$host_os" in
17350
18763
solaris*)
17449
18862
fi
17450
18863
 
17451
18864
 
17452
 
MKDEP_OPTIONS=-fdepend
17453
 
if test "x$GCC" = xyes; then
17454
 
    for dir in include include-fixed; do
17455
 
        GCC_INCLUDES=`$CC -print-file-name=$dir`
17456
 
        if test "x$GCC_INCLUDES" != x && \
17457
 
           test "$GCC_INCLUDES" != "$dir" && \
17458
 
           test -d "$GCC_INCLUDES"; then
17459
 
            MKDEP_OPTIONS="$MKDEP_OPTIONS -I$GCC_INCLUDES"
17460
 
        fi
17461
 
    done
17462
 
fi
17463
 
 
17464
 
 
17465
 
 
17466
18865
 
17467
18866
 
17468
18867
 
17590
18989
_SAVE_LDFLAGS="$LDFLAGS"
17591
18990
_SAVE_CPPFLAGS="$CPPFLAGS"
17592
18991
 
 
18992
DEFINES_FOR_BUILD=""
 
18993
 
 
18994
case "$build_os" in
 
18995
linux*|*-gnu*|gnu*)
 
18996
    DEFINES_FOR_BUILD="$DEFINES_FOR_BUILD -D_GNU_SOURCE"
 
18997
    ;;
 
18998
solaris*)
 
18999
    DEFINES_FOR_BUILD="$DEFINES_FOR_BUILD -DSVR4"
 
19000
    ;;
 
19001
cygwin*)
 
19002
    DEFINES_FOR_BUILD="$DEFINES_FOR_BUILD"
 
19003
    ;;
 
19004
esac
 
19005
 
17593
19006
DEFINES=""
17594
19007
 
17595
19008
case "$host_os" in
17605
19018
esac
17606
19019
 
17607
19020
if test "x$GCC" = xyes; then
17608
 
    CFLAGS="$CFLAGS -Wall -std=c99"
 
19021
    case "$host_os" in
 
19022
    cygwin*)
 
19023
        CFLAGS="$CFLAGS -Wall -std=gnu99"
 
19024
        ;;
 
19025
    *)
 
19026
        CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -Wall -std=c99"
 
19027
        CFLAGS="$CFLAGS -Wall -std=c99"
 
19028
        ;;
 
19029
    esac
17609
19030
 
17610
19031
    # Enable -Werror=implicit-function-declaration and
17611
19032
    # -Werror=missing-prototypes, if available, or otherwise, just
17669
19090
    CFLAGS=$save_CFLAGS
17670
19091
 
17671
19092
    # Work around aliasing bugs - developers should comment this out
 
19093
    CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -fno-strict-aliasing"
17672
19094
    CFLAGS="$CFLAGS -fno-strict-aliasing"
17673
19095
 
17674
19096
    # gcc's builtin memcmp is slower than glibc's
17675
19097
    # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
 
19098
    CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -fno-builtin-memcmp"
17676
19099
    CFLAGS="$CFLAGS -fno-builtin-memcmp"
17677
19100
fi
17678
19101
if test "x$GXX" = xyes; then
 
19102
    CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -Wall"
17679
19103
    CXXFLAGS="$CXXFLAGS -Wall"
17680
19104
 
17681
19105
    # Enable -fvisibility=hidden if using a gcc that supports it
17721
19145
    CXXFLAGS=$save_CXXFLAGS
17722
19146
 
17723
19147
    # Work around aliasing bugs - developers should comment this out
 
19148
    CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -fno-strict-aliasing"
17724
19149
    CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
17725
19150
 
17726
19151
    # gcc's builtin memcmp is slower than glibc's
17727
19152
    # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
 
19153
    CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -fno-builtin-memcmp"
17728
19154
    CXXFLAGS="$CXXFLAGS -fno-builtin-memcmp"
17729
19155
fi
17730
19156
 
17794
19220
fi
17795
19221
 
17796
19222
 
17797
 
 
17798
 
if test "$enable_static" = yes; then
17799
 
    MKLIB_OPTIONS="$MKLIB_OPTIONS -static"
17800
 
fi
17801
 
 
17802
 
 
17803
19223
# Check whether --enable-debug was given.
17804
19224
if test "${enable_debug+set}" = set; then :
17805
19225
  enableval=$enable_debug; enable_debug="$enableval"
17809
19229
fi
17810
19230
 
17811
19231
if test "x$enable_debug" = xyes; then
 
19232
    DEFINES_FOR_BUILD="$DEFINES_FOR_BUILD -DDEBUG"
 
19233
    if test "x$GCC_FOR_BUILD" = xyes; then
 
19234
        CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -g -O0"
 
19235
    fi
 
19236
    if test "x$GXX_FOR_BUILD" = xyes; then
 
19237
        CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -g -O0"
 
19238
    fi
 
19239
 
17812
19240
    DEFINES="$DEFINES -DDEBUG"
17813
19241
    if test "x$GCC" = xyes; then
17814
 
        CFLAGS="$CFLAGS -g"
 
19242
        CFLAGS="$CFLAGS -g -O0"
17815
19243
    fi
17816
19244
    if test "x$GXX" = xyes; then
17817
 
        CXXFLAGS="$CXXFLAGS -g"
 
19245
        CXXFLAGS="$CXXFLAGS -g -O0"
17818
19246
    fi
17819
19247
fi
17820
19248
 
17999
19427
fi
18000
19428
 
18001
19429
 
18002
 
 
18003
 
# Check whether --enable-pic was given.
18004
 
if test "${enable_pic+set}" = set; then :
18005
 
  enableval=$enable_pic; enable_pic="$enableval"
18006
 
    test "x$enable_pic" = x && enable_pic=auto
18007
 
else
18008
 
  enable_pic=auto
18009
 
fi
18010
 
 
18011
 
# disable PIC by default for static builds
18012
 
if test "$enable_pic" = auto && test "$enable_static" = yes; then
18013
 
    enable_pic=no
18014
 
fi
18015
 
# if PIC hasn't been explicitly disabled, try to figure out the flags
18016
 
if test "$enable_pic" != no; then
18017
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to produce PIC" >&5
18018
 
$as_echo_n "checking for $CC option to produce PIC... " >&6; }
18019
 
    # allow the user's flags to override
18020
 
    if test "x$PIC_FLAGS" = x; then
18021
 
        # see if we're using GCC
18022
 
        if test "x$GCC" = xyes; then
18023
 
            case "$host_os" in
18024
 
            aix*|beos*|cygwin*|irix5*|irix6*|osf3*|osf4*|osf5*)
18025
 
                # PIC is the default for these OSes.
18026
 
                ;;
18027
 
            mingw*|os2*|pw32*)
18028
 
                # This hack is so that the source file can tell whether
18029
 
                # it is being built for inclusion in a dll (and should
18030
 
                # export symbols for example).
18031
 
                PIC_FLAGS="-DDLL_EXPORT"
18032
 
                ;;
18033
 
            darwin*|rhapsody*)
18034
 
                # PIC is the default on this platform
18035
 
                # Common symbols not allowed in MH_DYLIB files
18036
 
                PIC_FLAGS="-fno-common"
18037
 
                ;;
18038
 
            hpux*)
18039
 
                # PIC is the default for IA64 HP-UX and 64-bit HP-UX,
18040
 
                # but not for PA HP-UX.
18041
 
                case $host_cpu in
18042
 
                hppa*64*|ia64*)
18043
 
                    ;;
18044
 
                *)
18045
 
                    PIC_FLAGS="-fPIC"
18046
 
                    ;;
18047
 
                esac
18048
 
                ;;
18049
 
            *)
18050
 
                # Everyone else on GCC uses -fPIC
18051
 
                PIC_FLAGS="-fPIC"
18052
 
                ;;
18053
 
            esac
18054
 
        else # !GCC
18055
 
            case "$host_os" in
18056
 
            hpux9*|hpux10*|hpux11*)
18057
 
                # PIC is the default for IA64 HP-UX and 64-bit HP-UX,
18058
 
                # but not for PA HP-UX.
18059
 
                case "$host_cpu" in
18060
 
                hppa*64*|ia64*)
18061
 
                    # +Z the default
18062
 
                    ;;
18063
 
                *)
18064
 
                    PIC_FLAGS="+Z"
18065
 
                    ;;
18066
 
                esac
18067
 
                ;;
18068
 
            linux*|k*bsd*-gnu)
18069
 
                case `basename "$CC"` in
18070
 
                icc*|ecc*|ifort*)
18071
 
                    PIC_FLAGS="-KPIC"
18072
 
                    ;;
18073
 
                pgcc*|pgf77*|pgf90*|pgf95*)
18074
 
                    # Portland Group compilers (*not* the Pentium gcc
18075
 
                    # compiler, which looks to be a dead project)
18076
 
                    PIC_FLAGS="-fpic"
18077
 
                    ;;
18078
 
                ccc*)
18079
 
                    # All Alpha code is PIC.
18080
 
                    ;;
18081
 
                xl*)
18082
 
                    # IBM XL C 8.0/Fortran 10.1 on PPC
18083
 
                    PIC_FLAGS="-qpic"
18084
 
                    ;;
18085
 
                *)
18086
 
                    case `$CC -V 2>&1 | sed 5q` in
18087
 
                    *Sun\ C*|*Sun\ F*)
18088
 
                        # Sun C 5.9 or Sun Fortran
18089
 
                        PIC_FLAGS="-KPIC"
18090
 
                        ;;
18091
 
                    esac
18092
 
                esac
18093
 
                ;;
18094
 
            solaris*)
18095
 
                PIC_FLAGS="-KPIC"
18096
 
                ;;
18097
 
            sunos4*)
18098
 
                PIC_FLAGS="-PIC"
18099
 
                ;;
18100
 
            esac
18101
 
        fi # GCC
18102
 
    fi # PIC_FLAGS
18103
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIC_FLAGS" >&5
18104
 
$as_echo "$PIC_FLAGS" >&6; }
18105
 
fi
18106
 
 
18107
 
 
18108
 
 
18109
19430
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18110
19431
if test "x$ac_cv_func_dlopen" = xyes; then :
18111
19432
  DEFINES="$DEFINES -DHAVE_DLOPEN"
18154
19475
 
18155
19476
 
18156
19477
 
 
19478
for ac_func in clock_gettime
 
19479
do :
 
19480
  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
 
19481
if test "x$ac_cv_func_clock_gettime" = xyes; then :
 
19482
  cat >>confdefs.h <<_ACEOF
 
19483
#define HAVE_CLOCK_GETTIME 1
 
19484
_ACEOF
 
19485
 CLOCK_LIB=
 
19486
else
 
19487
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
 
19488
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
 
19489
if ${ac_cv_lib_rt_clock_gettime+:} false; then :
 
19490
  $as_echo_n "(cached) " >&6
 
19491
else
 
19492
  ac_check_lib_save_LIBS=$LIBS
 
19493
LIBS="-lrt  $LIBS"
 
19494
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19495
/* end confdefs.h.  */
 
19496
 
 
19497
/* Override any GCC internal prototype to avoid an error.
 
19498
   Use char because int might match the return type of a GCC
 
19499
   builtin and then its argument prototype would still apply.  */
 
19500
#ifdef __cplusplus
 
19501
extern "C"
 
19502
#endif
 
19503
char clock_gettime ();
 
19504
int
 
19505
main ()
 
19506
{
 
19507
return clock_gettime ();
 
19508
  ;
 
19509
  return 0;
 
19510
}
 
19511
_ACEOF
 
19512
if ac_fn_c_try_link "$LINENO"; then :
 
19513
  ac_cv_lib_rt_clock_gettime=yes
 
19514
else
 
19515
  ac_cv_lib_rt_clock_gettime=no
 
19516
fi
 
19517
rm -f core conftest.err conftest.$ac_objext \
 
19518
    conftest$ac_exeext conftest.$ac_ext
 
19519
LIBS=$ac_check_lib_save_LIBS
 
19520
fi
 
19521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
 
19522
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
 
19523
if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
 
19524
  CLOCK_LIB=-lrt
 
19525
else
 
19526
  as_fn_error $? "Couldn't find clock_gettime" "$LINENO" 5
 
19527
fi
 
19528
 
 
19529
fi
 
19530
done
 
19531
 
 
19532
 
 
19533
 
18157
19534
ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
18158
19535
if test "x$ac_cv_func_posix_memalign" = xyes; then :
18159
19536
  DEFINES="$DEFINES -DHAVE_POSIX_MEMALIGN"
18698
20075
  enable_xa=no
18699
20076
fi
18700
20077
 
18701
 
# Check whether --enable-d3d1x was given.
18702
 
if test "${enable_d3d1x+set}" = set; then :
18703
 
  enableval=$enable_d3d1x; enable_d3d1x="$enableval"
18704
 
else
18705
 
  enable_d3d1x=no
18706
 
fi
18707
 
 
 
20078
enable_d3d1x=no
18708
20079
# Check whether --enable-gbm was given.
18709
20080
if test "${enable_gbm+set}" = set; then :
18710
20081
  enableval=$enable_gbm; enable_gbm="$enableval"
18727
20098
  enable_vdpau=auto
18728
20099
fi
18729
20100
 
18730
 
# Check whether --enable-va was given.
18731
 
if test "${enable_va+set}" = set; then :
18732
 
  enableval=$enable_va; enable_va="$enableval"
18733
 
else
18734
 
  enable_va=auto
18735
 
fi
18736
 
 
18737
20101
# Check whether --enable-opencl was given.
18738
20102
if test "${enable_opencl+set}" = set; then :
18739
 
  enableval=$enable_opencl; enable_opencl="$enableval"
 
20103
  enableval=$enable_opencl;
18740
20104
else
18741
20105
  enable_opencl=no
18742
20106
fi
18780
20144
 
18781
20145
 
18782
20146
# Option for Gallium drivers
 
20147
 
 
20148
# Keep this in sync with the --with-gallium-drivers help string default value
18783
20149
GALLIUM_DRIVERS_DEFAULT="r300,r600,svga,swrast"
18784
20150
 
18785
20151
 
18807
20173
        "x$enable_d3d1x" = xno -a \
18808
20174
        "x$enable_xvmc" = xno -a \
18809
20175
        "x$enable_vdpau" = xno -a \
18810
 
        "x$enable_va" = xno -a \
18811
20176
        "x$enable_opencl" = xno; then
18812
20177
    as_fn_error $? "at least one API should be enabled" "$LINENO" 5
18813
20178
fi
18814
20179
 
18815
 
# Building OpenGL ES1 and/or ES2 without OpenGL is not supported on mesa 9.0.x
18816
 
if test "x$enable_opengl" = xno -a \
18817
 
        "x$enable_gles1" = xyes; then
18818
 
    as_fn_error $? "Building OpenGL ES1 without OpenGL is not supported" "$LINENO" 5
18819
 
fi
18820
 
 
18821
 
if test "x$enable_opengl" = xno -a \
18822
 
        "x$enable_gles2" = xyes; then
18823
 
    as_fn_error $? "Building OpenGL ES2 without OpenGL is not supported" "$LINENO" 5
18824
 
fi
18825
 
 
18826
20180
API_DEFINES=""
18827
20181
if test "x$enable_opengl" = xno; then
18828
20182
    API_DEFINES="$API_DEFINES -DFEATURE_GL=0"
18900
20254
    enable_shared_glapi=no
18901
20255
fi
18902
20256
 
18903
 
# TODO: Get rid of SHARED_GLAPI variable
18904
 
SHARED_GLAPI="0"
18905
20257
if test "x$enable_shared_glapi" = xyes; then
18906
 
    SHARED_GLAPI="1"
18907
20258
    # libGL will use libglapi for function lookups (IN_DRI_DRIVER means to use
18908
20259
    # the remap table)
18909
20260
    DEFINES="$DEFINES -DIN_DRI_DRIVER"
18910
20261
    CORE_DIRS="mapi/shared-glapi"
18911
20262
fi
18912
 
 
18913
20263
 if test "x$enable_shared_glapi" = xyes; then
18914
20264
  HAVE_SHARED_GLAPI_TRUE=
18915
20265
  HAVE_SHARED_GLAPI_FALSE='#'
18919
20269
fi
18920
20270
 
18921
20271
 
18922
 
SRC_DIRS="gtest"
18923
20272
GALLIUM_DIRS="auxiliary drivers state_trackers"
18924
20273
GALLIUM_TARGET_DIRS=""
18925
20274
GALLIUM_WINSYS_DIRS="sw"
18944
20293
# build glsl and mesa if OpenGL or OpenGL ES is enabled
18945
20294
case "x$enable_opengl$enable_gles1$enable_gles2" in
18946
20295
x*yes*)
18947
 
    CORE_DIRS="mapi/glapi/gen $CORE_DIRS glsl mesa"
 
20296
    CORE_DIRS="mapi/glapi/gen $CORE_DIRS gtest glsl mesa"
18948
20297
    ;;
18949
20298
esac
18950
20299
 
19127
20476
        # Put the nasty error message in config.log where it belongs
19128
20477
        echo "$X11_PKG_ERRORS" >&5
19129
20478
 
19130
 
        as_fn_error $? "Package requirements (x11) were not met:
19131
 
 
19132
 
$X11_PKG_ERRORS
19133
 
 
19134
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19135
 
installed software in a non-standard prefix.
19136
 
 
19137
 
Alternatively, you may set the environment variables X11_CFLAGS
19138
 
and X11_LIBS to avoid the need to call pkg-config.
19139
 
See the pkg-config man page for more details." "$LINENO" 5
 
20479
        no_x=yes
19140
20480
elif test $pkg_failed = untried; then
19141
20481
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142
20482
$as_echo "no" >&6; }
19143
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19144
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19145
 
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19146
 
is in your PATH or set the PKG_CONFIG environment variable to the full
19147
 
path to pkg-config.
19148
 
 
19149
 
Alternatively, you may set the environment variables X11_CFLAGS
19150
 
and X11_LIBS to avoid the need to call pkg-config.
19151
 
See the pkg-config man page for more details.
19152
 
 
19153
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19154
 
See \`config.log' for more details" "$LINENO" 5; }
 
20483
        no_x=yes
19155
20484
else
19156
20485
        X11_CFLAGS=$pkg_cv_X11_CFLAGS
19157
20486
        X11_LIBS=$pkg_cv_X11_LIBS
19158
20487
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19159
20488
$as_echo "yes" >&6; }
19160
 
 
 
20489
        no_x=no
19161
20490
fi
19162
20491
 
19163
20492
 
19166
20495
    as_fn_error $? "X11 development libraries needed for GLX" "$LINENO" 5
19167
20496
fi
19168
20497
 
19169
 
if test "x$enable_glx" = xyes; then
19170
 
    DEFINES="$DEFINES -DUSE_XCB"
19171
 
fi
19172
 
 
19173
20498
case "$host_os" in
19174
20499
gnu*)
19175
20500
        driglx_direct_default="no"
19481
20806
    fi
19482
20807
 
19483
20808
    # find the DRI deps for libGL
19484
 
    dri_modules="x11 xext xdamage xfixes x11-xcb xcb-glx >= 1.8.1"
 
20809
    dri_modules="x11 xext xdamage xfixes x11-xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8"
19485
20810
 
19486
20811
    # add xf86vidmode if available
19487
20812
 
19686
21011
 
19687
21012
 
19688
21013
 
 
21014
 
19689
21015
DRI_LIB_DEPS="\$(top_builddir)/src/mesa/libdricore/libdricore${VERSION}.la"
19690
21016
 
19691
21017
 
19901
21227
        LIBS="$save_LIBS"
19902
21228
    fi
19903
21229
 
19904
 
    # if we are building any dri driver other than swrast ...
19905
 
    if test -n "$DRI_DIRS" -a x"$DRI_DIRS" != xswrast; then
 
21230
    # if we are building any dri driver other than swrast or using the dri state tracker ...
 
21231
    if test -n "$DRI_DIRS" -a x"$DRI_DIRS" != xswrast || test "x$enable_dri" = xyes; then
19906
21232
        # ... libdrm is required
19907
21233
        if test "x$have_libdrm" != xyes; then
19908
21234
            as_fn_error $? "DRI drivers requires libdrm >= $LIBDRM_REQUIRED" "$LINENO" 5
19913
21239
 
19914
21240
    # put all the necessary libs together
19915
21241
    DRI_LIB_DEPS="$DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIB -lm $PTHREAD_LIBS $DLOPEN_LIBS"
19916
 
    GALLIUM_DRI_LIB_DEPS="$GALLIUM_DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIB -lm $PTHREAD_LIBS $DLOPEN_LIBS"
 
21242
    GALLIUM_DRI_LIB_DEPS="$GALLIUM_DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIB -lm $CLOCK_LIB $PTHREAD_LIBS $DLOPEN_LIBS"
19917
21243
fi
19918
21244
 if test -n "$DRI_DIRS"; then
19919
21245
  NEED_LIBDRICORE_TRUE=
20458
21784
 
20459
21785
    if test "$enable_static" != yes; then
20460
21786
        # build egl_glx when libGL is built
20461
 
        if test "x$enable_glx" = xyes; then
20462
 
            HAVE_EGL_DRIVER_GLX=1
20463
 
        fi
20464
 
 
20465
21787
 
20466
21788
pkg_failed=no
20467
21789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
21111
22433
    CORE_DIRS="$CORE_DIRS mapi/vgapi"
21112
22434
    GALLIUM_STATE_TRACKERS_DIRS="vega $GALLIUM_STATE_TRACKERS_DIRS"
21113
22435
    HAVE_ST_VEGA=yes
21114
 
    VG_PC_LIB_PRIV="-lm $PTHREAD_LIBS $DLOPEN_LIBS"
21115
 
 
21116
 
fi
 
22436
    VG_PC_LIB_PRIV="-lm $CLOCK_LIB $PTHREAD_LIBS $DLOPEN_LIBS"
 
22437
 
 
22438
fi
 
22439
 if test "x$enable_openvg" = xyes; then
 
22440
  HAVE_OPENVG_TRUE=
 
22441
  HAVE_OPENVG_FALSE='#'
 
22442
else
 
22443
  HAVE_OPENVG_TRUE='#'
 
22444
  HAVE_OPENVG_FALSE=
 
22445
fi
 
22446
 
21117
22447
 
21118
22448
 
21119
22449
if test "x$enable_d3d1x" = xyes; then
21162
22492
  enable_vdpau=no
21163
22493
fi
21164
22494
    fi
21165
 
 
21166
 
    if test "x$enable_va" = xauto; then
21167
 
        #don't enable vaapi state tracker even if package exists
21168
 
        #PKG_CHECK_EXISTS([libva], [enable_vdpau=yes], [enable_vdpau=no])
21169
 
        enable_va=no
21170
 
    fi
21171
22495
fi
21172
22496
 
21173
22497
if test "x$enable_xvmc" = xyes; then
21362
22686
    HAVE_ST_VDPAU="yes"
21363
22687
fi
21364
22688
 
21365
 
if test "x$enable_va" = xyes; then
21366
 
 
21367
 
pkg_failed=no
21368
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA" >&5
21369
 
$as_echo_n "checking for LIBVA... " >&6; }
21370
 
 
21371
 
if test -n "$LIBVA_CFLAGS"; then
21372
 
    pkg_cv_LIBVA_CFLAGS="$LIBVA_CFLAGS"
21373
 
 elif test -n "$PKG_CONFIG"; then
21374
 
    if test -n "$PKG_CONFIG" && \
21375
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva = 0.31.1 x11-xcb xcb-dri2 >= 1.8\""; } >&5
21376
 
  ($PKG_CONFIG --exists --print-errors "libva = 0.31.1 x11-xcb xcb-dri2 >= 1.8") 2>&5
21377
 
  ac_status=$?
21378
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21379
 
  test $ac_status = 0; }; then
21380
 
  pkg_cv_LIBVA_CFLAGS=`$PKG_CONFIG --cflags "libva = 0.31.1 x11-xcb xcb-dri2 >= 1.8" 2>/dev/null`
21381
 
                      test "x$?" != "x0" && pkg_failed=yes
21382
 
else
21383
 
  pkg_failed=yes
21384
 
fi
21385
 
 else
21386
 
    pkg_failed=untried
21387
 
fi
21388
 
if test -n "$LIBVA_LIBS"; then
21389
 
    pkg_cv_LIBVA_LIBS="$LIBVA_LIBS"
21390
 
 elif test -n "$PKG_CONFIG"; then
21391
 
    if test -n "$PKG_CONFIG" && \
21392
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva = 0.31.1 x11-xcb xcb-dri2 >= 1.8\""; } >&5
21393
 
  ($PKG_CONFIG --exists --print-errors "libva = 0.31.1 x11-xcb xcb-dri2 >= 1.8") 2>&5
21394
 
  ac_status=$?
21395
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21396
 
  test $ac_status = 0; }; then
21397
 
  pkg_cv_LIBVA_LIBS=`$PKG_CONFIG --libs "libva = 0.31.1 x11-xcb xcb-dri2 >= 1.8" 2>/dev/null`
21398
 
                      test "x$?" != "x0" && pkg_failed=yes
21399
 
else
21400
 
  pkg_failed=yes
21401
 
fi
21402
 
 else
21403
 
    pkg_failed=untried
21404
 
fi
21405
 
 
21406
 
 
21407
 
 
21408
 
if test $pkg_failed = yes; then
21409
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21410
 
$as_echo "no" >&6; }
21411
 
 
21412
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21413
 
        _pkg_short_errors_supported=yes
21414
 
else
21415
 
        _pkg_short_errors_supported=no
21416
 
fi
21417
 
        if test $_pkg_short_errors_supported = yes; then
21418
 
                LIBVA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libva = 0.31.1 x11-xcb xcb-dri2 >= 1.8" 2>&1`
21419
 
        else
21420
 
                LIBVA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libva = 0.31.1 x11-xcb xcb-dri2 >= 1.8" 2>&1`
21421
 
        fi
21422
 
        # Put the nasty error message in config.log where it belongs
21423
 
        echo "$LIBVA_PKG_ERRORS" >&5
21424
 
 
21425
 
        as_fn_error $? "Package requirements (libva = 0.31.1 x11-xcb xcb-dri2 >= 1.8) were not met:
21426
 
 
21427
 
$LIBVA_PKG_ERRORS
21428
 
 
21429
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21430
 
installed software in a non-standard prefix.
21431
 
 
21432
 
Alternatively, you may set the environment variables LIBVA_CFLAGS
21433
 
and LIBVA_LIBS to avoid the need to call pkg-config.
21434
 
See the pkg-config man page for more details." "$LINENO" 5
21435
 
elif test $pkg_failed = untried; then
21436
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21437
 
$as_echo "no" >&6; }
21438
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21439
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21440
 
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21441
 
is in your PATH or set the PKG_CONFIG environment variable to the full
21442
 
path to pkg-config.
21443
 
 
21444
 
Alternatively, you may set the environment variables LIBVA_CFLAGS
21445
 
and LIBVA_LIBS to avoid the need to call pkg-config.
21446
 
See the pkg-config man page for more details.
21447
 
 
21448
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21449
 
See \`config.log' for more details" "$LINENO" 5; }
21450
 
else
21451
 
        LIBVA_CFLAGS=$pkg_cv_LIBVA_CFLAGS
21452
 
        LIBVA_LIBS=$pkg_cv_LIBVA_LIBS
21453
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21454
 
$as_echo "yes" >&6; }
21455
 
 
21456
 
fi
21457
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: vaapi state tracker currently unmaintained" >&5
21458
 
$as_echo "$as_me: WARNING: vaapi state tracker currently unmaintained" >&2;}
21459
 
    GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS va"
21460
 
    HAVE_ST_VA="yes"
21461
 
fi
21462
 
 
21463
22689
 
21464
22690
 
21465
22691
# Check whether --with-libclc-path was given.
21509
22735
    enable_gallium_loader=yes
21510
22736
fi
21511
22737
 
 
22738
if test "x$enable_gallium_gbm" = xyes || test "x$enable_opencl" = xyes; then
 
22739
    GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS pipe-loader"
 
22740
fi
 
22741
 
21512
22742
if test "x$with_gallium_drivers" != x; then
21513
22743
    SRC_DIRS="$SRC_DIRS gallium gallium/winsys gallium/targets"
21514
22744
fi
21535
22765
case "x$enable_opengl$enable_gles1$enable_gles2" in
21536
22766
x*yes*)
21537
22767
    EGL_CLIENT_APIS="$EGL_CLIENT_APIS "'$(GL_LIB)'
 
22768
    HAVE_OPENGL=yes
21538
22769
    ;;
21539
22770
esac
 
22771
 if test "x$HAVE_OPENGL" = xyes; then
 
22772
  HAVE_OPENGL_TRUE=
 
22773
  HAVE_OPENGL_FALSE='#'
 
22774
else
 
22775
  HAVE_OPENGL_TRUE='#'
 
22776
  HAVE_OPENGL_FALSE=
 
22777
fi
 
22778
 
21540
22779
 
21541
22780
 
21542
22781
 
21715
22954
    pkg_cv_XCB_DRI2_CFLAGS="$XCB_DRI2_CFLAGS"
21716
22955
 elif test -n "$PKG_CONFIG"; then
21717
22956
    if test -n "$PKG_CONFIG" && \
21718
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-dri2 xcb-xfixes\""; } >&5
21719
 
  ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-dri2 xcb-xfixes") 2>&5
 
22957
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-dri2 >= 1.8 xcb-xfixes\""; } >&5
 
22958
  ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-dri2 >= 1.8 xcb-xfixes") 2>&5
21720
22959
  ac_status=$?
21721
22960
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21722
22961
  test $ac_status = 0; }; then
21723
 
  pkg_cv_XCB_DRI2_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb-dri2 xcb-xfixes" 2>/dev/null`
 
22962
  pkg_cv_XCB_DRI2_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb-dri2 >= 1.8 xcb-xfixes" 2>/dev/null`
21724
22963
                      test "x$?" != "x0" && pkg_failed=yes
21725
22964
else
21726
22965
  pkg_failed=yes
21732
22971
    pkg_cv_XCB_DRI2_LIBS="$XCB_DRI2_LIBS"
21733
22972
 elif test -n "$PKG_CONFIG"; then
21734
22973
    if test -n "$PKG_CONFIG" && \
21735
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-dri2 xcb-xfixes\""; } >&5
21736
 
  ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-dri2 xcb-xfixes") 2>&5
 
22974
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-dri2 >= 1.8 xcb-xfixes\""; } >&5
 
22975
  ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-dri2 >= 1.8 xcb-xfixes") 2>&5
21737
22976
  ac_status=$?
21738
22977
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21739
22978
  test $ac_status = 0; }; then
21740
 
  pkg_cv_XCB_DRI2_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb-dri2 xcb-xfixes" 2>/dev/null`
 
22979
  pkg_cv_XCB_DRI2_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb-dri2 >= 1.8 xcb-xfixes" 2>/dev/null`
21741
22980
                      test "x$?" != "x0" && pkg_failed=yes
21742
22981
else
21743
22982
  pkg_failed=yes
21758
22997
        _pkg_short_errors_supported=no
21759
22998
fi
21760
22999
        if test $_pkg_short_errors_supported = yes; then
21761
 
                XCB_DRI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11-xcb xcb-dri2 xcb-xfixes" 2>&1`
 
23000
                XCB_DRI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11-xcb xcb-dri2 >= 1.8 xcb-xfixes" 2>&1`
21762
23001
        else
21763
 
                XCB_DRI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11-xcb xcb-dri2 xcb-xfixes" 2>&1`
 
23002
                XCB_DRI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11-xcb xcb-dri2 >= 1.8 xcb-xfixes" 2>&1`
21764
23003
        fi
21765
23004
        # Put the nasty error message in config.log where it belongs
21766
23005
        echo "$XCB_DRI2_PKG_ERRORS" >&5
21767
23006
 
21768
 
        as_fn_error $? "Package requirements (x11-xcb xcb-dri2 xcb-xfixes) were not met:
 
23007
        as_fn_error $? "Package requirements (x11-xcb xcb-dri2 >= 1.8 xcb-xfixes) were not met:
21769
23008
 
21770
23009
$XCB_DRI2_PKG_ERRORS
21771
23010
 
21797
23036
$as_echo "yes" >&6; }
21798
23037
 
21799
23038
fi
21800
 
                # workaround a bug in xcb-dri2 generated by xcb-proto 1.6
21801
 
                save_LIBS="$LIBS"
21802
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb_dri2_connect_alignment_pad in -lxcb-dri2" >&5
21803
 
$as_echo_n "checking for xcb_dri2_connect_alignment_pad in -lxcb-dri2... " >&6; }
21804
 
if ${ac_cv_lib_xcb_dri2_xcb_dri2_connect_alignment_pad+:} false; then :
21805
 
  $as_echo_n "(cached) " >&6
21806
 
else
21807
 
  ac_check_lib_save_LIBS=$LIBS
21808
 
LIBS="-lxcb-dri2  $LIBS"
21809
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21810
 
/* end confdefs.h.  */
21811
 
 
21812
 
/* Override any GCC internal prototype to avoid an error.
21813
 
   Use char because int might match the return type of a GCC
21814
 
   builtin and then its argument prototype would still apply.  */
21815
 
#ifdef __cplusplus
21816
 
extern "C"
21817
 
#endif
21818
 
char xcb_dri2_connect_alignment_pad ();
21819
 
int
21820
 
main ()
21821
 
{
21822
 
return xcb_dri2_connect_alignment_pad ();
21823
 
  ;
21824
 
  return 0;
21825
 
}
21826
 
_ACEOF
21827
 
if ac_fn_c_try_link "$LINENO"; then :
21828
 
  ac_cv_lib_xcb_dri2_xcb_dri2_connect_alignment_pad=yes
21829
 
else
21830
 
  ac_cv_lib_xcb_dri2_xcb_dri2_connect_alignment_pad=no
21831
 
fi
21832
 
rm -f core conftest.err conftest.$ac_objext \
21833
 
    conftest$ac_exeext conftest.$ac_ext
21834
 
LIBS=$ac_check_lib_save_LIBS
21835
 
fi
21836
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcb_dri2_xcb_dri2_connect_alignment_pad" >&5
21837
 
$as_echo "$ac_cv_lib_xcb_dri2_xcb_dri2_connect_alignment_pad" >&6; }
21838
 
if test "x$ac_cv_lib_xcb_dri2_xcb_dri2_connect_alignment_pad" = xyes; then :
21839
 
  cat >>confdefs.h <<_ACEOF
21840
 
#define HAVE_LIBXCB_DRI2 1
21841
 
_ACEOF
21842
 
 
21843
 
  LIBS="-lxcb-dri2 $LIBS"
21844
 
 
21845
 
else
21846
 
  DEFINES="$DEFINES -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN"
21847
 
fi
21848
 
 
21849
 
                LIBS="$save_LIBS"
 
23039
 
 
23040
                if test "x$enable_glx" = xyes; then
 
23041
                        HAVE_EGL_DRIVER_GLX=1
 
23042
                fi
21850
23043
                ;;
21851
23044
 
21852
23045
        drm)
21995
23188
 
21996
23189
# Check whether --with-llvm-shared-libs was given.
21997
23190
if test "${with_llvm_shared_libs+set}" = set; then :
21998
 
  withval=$with_llvm_shared_libs; with_llvm_shared_libs=yes
 
23191
  withval=$with_llvm_shared_libs;
21999
23192
else
22000
23193
  with_llvm_shared_libs=no
22001
23194
fi
22002
23195
 
 
23196
if test x$enable_opencl = xyes; then :
 
23197
 
 
23198
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenCL required, forcing LLVM shared libraries" >&5
 
23199
$as_echo "$as_me: WARNING: OpenCL required, forcing LLVM shared libraries" >&2;}
 
23200
        with_llvm_shared_libs=yes
 
23201
 
 
23202
fi
22003
23203
 
22004
23204
 
22005
23205
# Check whether --with-llvm-prefix was given.
22011
23211
 
22012
23212
 
22013
23213
 
 
23214
# Call this inside ` ` to get the return value.
 
23215
# $1 is the llvm-config command with arguments.
 
23216
strip_unwanted_llvm_flags() {
 
23217
    # Use \> (marks the end of the word)
 
23218
    echo `$1` | sed \
 
23219
        -e 's/-DNDEBUG\>//g' \
 
23220
        -e 's/-pedantic\>//g' \
 
23221
        -e 's/-Wcovered-switch-default\>//g' \
 
23222
        -e 's/-O.\>//g' \
 
23223
        -e 's/-g\>//g' \
 
23224
        -e 's/-Wall\>//g' \
 
23225
        -e 's/-fomit-frame-pointer\>//g'
 
23226
}
 
23227
 
 
23228
 
22014
23229
if test "x$with_gallium_drivers" = x; then
22015
23230
    enable_gallium_llvm=no
22016
23231
fi
22108
23323
 
22109
23324
    if test "x$LLVM_CONFIG" != xno; then
22110
23325
        LLVM_VERSION=`$LLVM_CONFIG --version | sed 's/svn.*//g'`
22111
 
        LLVM_CFLAGS=`$LLVM_CONFIG --cppflags|sed -e 's/-DNDEBUG\>//g' -e 's/-pedantic//g' -e 's/-Wcovered-switch-default//g'`
22112
 
        if test "x$with_llvm_shared_libs" = xyes; then
22113
 
                    LLVM_LIBS="-lLLVM-`$LLVM_CONFIG --version`"
22114
 
        else
22115
 
            LLVM_COMPONENTS="engine bitwriter"
22116
 
            if $LLVM_CONFIG --components | grep -q '\<mcjit\>'; then
22117
 
                LLVM_COMPONENTS="${LLVM_COMPONENTS} mcjit"
22118
 
            fi
22119
 
            if test "x$enable_opencl" = xyes; then
22120
 
                LLVM_COMPONENTS="${LLVM_COMPONENTS} ipo linker instrumentation"
22121
 
            fi
22122
 
            LLVM_LIBS="`$LLVM_CONFIG --libs ${LLVM_COMPONENTS}`"
22123
 
        fi
 
23326
        LLVM_VERSION_INT=`echo $LLVM_VERSION | sed -e 's/\([0-9]\)\.\([0-9]\)/\10\2/g'`
 
23327
        LLVM_COMPONENTS="engine bitwriter"
 
23328
        if $LLVM_CONFIG --components | grep -q '\<mcjit\>'; then
 
23329
            LLVM_COMPONENTS="${LLVM_COMPONENTS} mcjit"
 
23330
        fi
 
23331
        if $LLVM_CONFIG --components | grep -q '\<oprofilejit\>'; then
 
23332
            LLVM_COMPONENTS="${LLVM_COMPONENTS} oprofilejit"
 
23333
        fi
 
23334
 
 
23335
        if test "x$enable_opencl" = xyes; then
 
23336
            LLVM_COMPONENTS="${LLVM_COMPONENTS} ipo linker instrumentation"
 
23337
        fi
22124
23338
        LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`
22125
23339
        LLVM_BINDIR=`$LLVM_CONFIG --bindir`
22126
 
        LLVM_CXXFLAGS=`$LLVM_CONFIG --cxxflags|sed -e 's/-DNDEBUG\>//g' -e 's/-pedantic//g' -e 's/-Wcovered-switch-default//g'`
22127
 
        LLVM_CPPFLAGS=`$LLVM_CONFIG --cppflags|sed -e 's/-DNDEBUG\>//g' -e 's/-pedantic//g' -e 's/-Wcovered-switch-default//g'`
 
23340
        LLVM_CPPFLAGS=`strip_unwanted_llvm_flags "$LLVM_CONFIG --cppflags"`
 
23341
        LLVM_CFLAGS=$LLVM_CPPFLAGS   # CPPFLAGS seem to be sufficient
 
23342
        LLVM_CXXFLAGS=`strip_unwanted_llvm_flags "$LLVM_CONFIG --cxxflags"`
22128
23343
        LLVM_INCLUDEDIR=`$LLVM_CONFIG --includedir`
22129
23344
        LLVM_LIBDIR=`$LLVM_CONFIG --libdir`
22130
 
        DEFINES="${DEFINES} -DHAVE_LLVM=`echo $LLVM_VERSION | sed -e 's/\([0-9]\)\.\([0-9]\)/0x0\10\2/g'`"
 
23345
        DEFINES="${DEFINES} -DHAVE_LLVM=0x0$LLVM_VERSION_INT"
22131
23346
        MESA_LLVM=1
22132
23347
 
22133
23348
                if test "x$enable_opencl" = xyes; then
22161
23376
        fi
22162
23377
    else
22163
23378
        MESA_LLVM=0
 
23379
        LLVM_VERSION_INT=0
22164
23380
    fi
22165
23381
else
22166
23382
    MESA_LLVM=0
 
23383
    LLVM_VERSION_INT=0
22167
23384
fi
22168
23385
 
22169
23386
 
22177
23394
 
22178
23395
 
22179
23396
if test "x$enable_gallium_tests" = xyes; then
22180
 
    SRC_DIRS="$SRC_DIRS gallium/tests/trivial"
 
23397
    SRC_DIRS="$SRC_DIRS gallium/tests/trivial gallium/tests/unit"
22181
23398
    enable_gallium_loader=yes
22182
23399
fi
22183
23400
 
22192
23409
 
22193
23410
 
22194
23411
 
22195
 
# Check whether --with-va-libdir was given.
22196
 
if test "${with_va_libdir+set}" = set; then :
22197
 
  withval=$with_va_libdir; VA_LIB_INSTALL_DIR="$withval"
22198
 
else
22199
 
  VA_LIB_INSTALL_DIR='${libdir}/va'
22200
 
fi
22201
 
 
22202
 
 
22203
 
 
22204
 
 
22205
23412
# Check whether --with-opencl-libdir was given.
22206
23413
if test "${with_opencl_libdir+set}" = set; then :
22207
23414
  withval=$with_opencl_libdir; OPENCL_LIB_INSTALL_DIR="$withval"
22214
23421
gallium_check_st() {
22215
23422
    if test "x$HAVE_ST_DRI" = xyes || test "x$HAVE_ST_XORG" = xyes ||
22216
23423
         test "x$HAVE_ST_XA" = xyes || test "x$HAVE_ST_XVMC" = xyes ||
22217
 
         test "x$HAVE_ST_VDPAU" = xyes || test "x$HAVE_ST_VA" = xyes; then
 
23424
         test "x$HAVE_ST_VDPAU" = xyes; then
22218
23425
         if test "x$have_libdrm" != xyes; then
22219
23426
            as_fn_error $? "DRI or Xorg DDX requires libdrm >= $LIBDRM_REQUIRED" "$LINENO" 5
22220
23427
         fi
22235
23442
    if test "x$HAVE_ST_VDPAU" = xyes && test "x$6" != x; then
22236
23443
         GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS $6"
22237
23444
    fi
22238
 
    if test "x$HAVE_ST_VA" = xyes && test "x$7" != x; then
22239
 
         GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS $7"
22240
 
    fi
22241
23445
}
22242
23446
 
22243
23447
gallium_require_llvm() {
22309
23513
        # Put the nasty error message in config.log where it belongs
22310
23514
        echo "$LIBUDEV_PKG_ERRORS" >&5
22311
23515
 
22312
 
        as_fn_error $? "Gallium drm loader requrires libudev" "$LINENO" 5
 
23516
        as_fn_error $? "Gallium drm loader requires libudev" "$LINENO" 5
22313
23517
elif test $pkg_failed = untried; then
22314
23518
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22315
23519
$as_echo "no" >&6; }
22316
 
        as_fn_error $? "Gallium drm loader requrires libudev" "$LINENO" 5
 
23520
        as_fn_error $? "Gallium drm loader requires libudev" "$LINENO" 5
22317
23521
else
22318
23522
        LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
22319
23523
        LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
22328
23532
    fi
22329
23533
}
22330
23534
 
 
23535
radeon_llvm_check() {
 
23536
    LLVM_REQUIRED_VERSION_MAJOR="3"
 
23537
    LLVM_REQUIRED_VERSION_MINOR="2"
 
23538
    if test "$LLVM_VERSION_INT" -lt "${LLVM_REQUIRED_VERSION_MAJOR}0${LLVM_REQUIRED_VERSION_MINOR}"; then
 
23539
        as_fn_error $? "LLVM $LLVM_REQUIRED_VERSION_MAJOR.$LLVM_REQUIRED_VERSION_MINOR or newer with R600 target enabled is required.
 
23540
                     To use the r600/radeonsi LLVM backend, you need to fetch the LLVM source from:
 
23541
                     git://people.freedesktop.org/~tstellar/llvm master
 
23542
                     and build with --enable-experimental-targets=R600" "$LINENO" 5
 
23543
    fi
 
23544
    if test true && $LLVM_CONFIG --targets-built | grep -qv '\<R600\>' ; then
 
23545
        as_fn_error $? "LLVM R600 Target not enabled.  You can enable it when building the LLVM
 
23546
                      sources with the --enable-experimental-targets=R600
 
23547
                      configure flag" "$LINENO" 5
 
23548
    fi
 
23549
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please ensure you use the latest llvm tree from git://people.freedesktop.org/~tstellar/llvm master before submitting a bug" >&5
 
23550
$as_echo "$as_me: WARNING: Please ensure you use the latest llvm tree from git://people.freedesktop.org/~tstellar/llvm master before submitting a bug" >&2;}
 
23551
    LLVM_COMPONENTS="${LLVM_COMPONENTS} r600"
 
23552
}
 
23553
 
22331
23554
if test "x$with_gallium_drivers" != x; then
22332
23555
    gallium_drivers=`IFS=', '; echo $with_gallium_drivers`
22333
23556
    for driver in $gallium_drivers; do
22334
23557
        case "x$driver" in
22335
23558
        xsvga)
 
23559
            HAVE_GALLIUM_SVGA=yes
22336
23560
            GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS svga softpipe"
22337
23561
            gallium_check_st "svga/drm" "dri-vmwgfx" "" "xa-vmwgfx"
22338
23562
            ;;
22339
23563
        xi915)
 
23564
            HAVE_GALLIUM_I915=yes
22340
23565
 
22341
23566
pkg_failed=no
22342
23567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INTEL" >&5
22436
23661
            gallium_check_st "i915/drm" "dri-i915" "xorg-i915"
22437
23662
            ;;
22438
23663
        xr300)
 
23664
            HAVE_GALLIUM_R300=yes
22439
23665
 
22440
23666
pkg_failed=no
22441
23667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RADEON" >&5
22529
23755
fi
22530
23756
            gallium_require_llvm "Gallium R300"
22531
23757
            GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r300"
22532
 
            gallium_check_st "radeon/drm" "dri-r300" "xorg-r300" "" "xvmc-r300" "vdpau-r300" "va-r300"
 
23758
            gallium_check_st "radeon/drm" "dri-r300" "" "" "xvmc-r300" "vdpau-r300"
22533
23759
            ;;
22534
23760
        xr600)
 
23761
            HAVE_GALLIUM_R600=yes
22535
23762
 
22536
23763
pkg_failed=no
22537
23764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RADEON" >&5
22626
23853
            gallium_require_drm_loader
22627
23854
            GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r600"
22628
23855
            if test "x$enable_r600_llvm" = xyes -o "x$enable_opencl" = xyes; then
22629
 
                if test "x$LLVM_VERSION" != "x3.1"; then
22630
 
                    as_fn_error $? "LLVM 3.1 is required for the r600 llvm compiler." "$LINENO" 5
22631
 
                fi
 
23856
                radeon_llvm_check
22632
23857
                NEED_RADEON_GALLIUM=yes;
 
23858
                R600_NEED_RADEON_GALLIUM=yes;
 
23859
                LLVM_COMPONENTS="${LLVM_COMPONENTS} ipo bitreader asmparser"
22633
23860
            fi
22634
23861
            if test "x$enable_r600_llvm" = xyes; then
22635
23862
                USE_R600_LLVM_COMPILER=yes;
22636
23863
            fi
22637
 
            if test "x$enable_opencl" = xyes -a "x$with_llvm_shared_libs" = xno; then
22638
 
                LLVM_LIBS="${LLVM_LIBS} `$LLVM_CONFIG --libs bitreader asmparser`"
 
23864
            if test "x$enable_opencl" = xyes; then
 
23865
                LLVM_COMPONENTS="${LLVM_COMPONENTS} bitreader asmparser"
22639
23866
            fi
22640
 
            gallium_check_st "radeon/drm" "dri-r600" "xorg-r600" "" "xvmc-r600" "vdpau-r600" "va-r600"
 
23867
            gallium_check_st "radeon/drm" "dri-r600" "xorg-r600" "" "xvmc-r600" "vdpau-r600"
22641
23868
            ;;
22642
23869
        xradeonsi)
 
23870
            HAVE_GALLIUM_RADEONSI=yes
22643
23871
 
22644
23872
pkg_failed=no
22645
23873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RADEON" >&5
22733
23961
fi
22734
23962
            gallium_require_drm_loader
22735
23963
            GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS radeonsi"
22736
 
            if test "x$LLVM_VERSION" != "x3.1"; then
22737
 
                as_fn_error $? "LLVM 3.1 is required to build the radeonsi driver." "$LINENO" 5
22738
 
            fi
 
23964
            radeon_llvm_check
22739
23965
            NEED_RADEON_GALLIUM=yes;
22740
23966
            gallium_check_st "radeon/drm" "dri-radeonsi" "xorg-radeonsi" "" "" "vdpau-radeonsi" ""
22741
23967
            ;;
22742
23968
        xnouveau)
 
23969
            HAVE_GALLIUM_NOUVEAU=yes
22743
23970
 
22744
23971
pkg_failed=no
22745
23972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NOUVEAU" >&5
22836
24063
            gallium_check_st "nouveau/drm" "dri-nouveau" "xorg-nouveau" "" "xvmc-nouveau" "vdpau-nouveau"
22837
24064
            ;;
22838
24065
        xswrast)
 
24066
            HAVE_GALLIUM_SOFTPIPE=yes
22839
24067
            GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS softpipe"
22840
24068
            if test "x$MESA_LLVM" = x1; then
 
24069
                HAVE_GALLIUM_LLVMPIPE=yes
22841
24070
                GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS llvmpipe"
22842
24071
            fi
22843
24072
 
22850
24079
            if test "x$HAVE_ST_XVMC" = xyes; then
22851
24080
                GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS xvmc-softpipe"
22852
24081
            fi
22853
 
            if test "x$HAVE_ST_VA" = xyes; then
22854
 
                GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS va-softpipe"
22855
 
            fi
22856
24082
            if test "x$HAVE_ST_VDPAU" = xyes ||
22857
 
               test "x$HAVE_ST_XVMC" = xyes ||
22858
 
               test "x$HAVE_ST_VA" = xyes; then
 
24083
               test "x$HAVE_ST_XVMC" = xyes; then
22859
24084
               if test "x$HAVE_WINSYS_XLIB" != xyes; then
22860
24085
                  GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/xlib"
22861
24086
               fi
22868
24093
    done
22869
24094
fi
22870
24095
 
 
24096
 
 
24097
if test "x$MESA_LLVM" != x0; then
 
24098
 
 
24099
    LLVM_LIBS="`$LLVM_CONFIG --libs ${LLVM_COMPONENTS}`"
 
24100
 
 
24101
    if test "x$with_llvm_shared_libs" = xyes; then
 
24102
                LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version`
 
24103
        as_ac_File=`$as_echo "ac_cv_file_"$LLVM_LIBDIR/lib$LLVM_SO_NAME.so"" | $as_tr_sh`
 
24104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$LLVM_LIBDIR/lib$LLVM_SO_NAME.so\"" >&5
 
24105
$as_echo_n "checking for \"$LLVM_LIBDIR/lib$LLVM_SO_NAME.so\"... " >&6; }
 
24106
if eval \${$as_ac_File+:} false; then :
 
24107
  $as_echo_n "(cached) " >&6
 
24108
else
 
24109
  test "$cross_compiling" = yes &&
 
24110
  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
 
24111
if test -r ""$LLVM_LIBDIR/lib$LLVM_SO_NAME.so""; then
 
24112
  eval "$as_ac_File=yes"
 
24113
else
 
24114
  eval "$as_ac_File=no"
 
24115
fi
 
24116
fi
 
24117
eval ac_res=\$$as_ac_File
 
24118
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
24119
$as_echo "$ac_res" >&6; }
 
24120
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
 
24121
  llvm_have_one_so=yes
 
24122
fi
 
24123
 
 
24124
 
 
24125
        if test "x$llvm_have_one_so" = xyes; then
 
24126
                        LLVM_LIBS="-l$LLVM_SO_NAME"
 
24127
        else
 
24128
                                    as_ac_File=`$as_echo "ac_cv_file_"$LLVM_LIBDIR/libLLVMTarget.so"" | $as_tr_sh`
 
24129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$LLVM_LIBDIR/libLLVMTarget.so\"" >&5
 
24130
$as_echo_n "checking for \"$LLVM_LIBDIR/libLLVMTarget.so\"... " >&6; }
 
24131
if eval \${$as_ac_File+:} false; then :
 
24132
  $as_echo_n "(cached) " >&6
 
24133
else
 
24134
  test "$cross_compiling" = yes &&
 
24135
  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
 
24136
if test -r ""$LLVM_LIBDIR/libLLVMTarget.so""; then
 
24137
  eval "$as_ac_File=yes"
 
24138
else
 
24139
  eval "$as_ac_File=no"
 
24140
fi
 
24141
fi
 
24142
eval ac_res=\$$as_ac_File
 
24143
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
24144
$as_echo "$ac_res" >&6; }
 
24145
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
 
24146
 
 
24147
else
 
24148
  as_fn_error $? "Could not find llvm shared libraries:
 
24149
        Please make sure you have built llvm with the --enable-shared option
 
24150
        and that your llvm libraries are installed in $LLVM_LIBDIR
 
24151
        If you have installed your llvm libraries to a different directory you
 
24152
        can use the --with-llvm-prefix= configure flag to specify this directory.
 
24153
        NOTE: Mesa is attempting to use llvm shared libraries because you have
 
24154
        passed one of the following options to configure:
 
24155
                --with-llvm-shared-libs
 
24156
                --enable-opencl
 
24157
        If you do not want to build with llvm shared libraries and instead want to
 
24158
        use llvm static libraries then remove these options from your configure
 
24159
        invocation and reconfigure." "$LINENO" 5
 
24160
fi
 
24161
 
 
24162
 
 
24163
                                         fi
 
24164
    fi
 
24165
fi
 
24166
 
 
24167
 if test "x$HAVE_GALLIUM_SVGA" = xyes; then
 
24168
  HAVE_GALLIUM_SVGA_TRUE=
 
24169
  HAVE_GALLIUM_SVGA_FALSE='#'
 
24170
else
 
24171
  HAVE_GALLIUM_SVGA_TRUE='#'
 
24172
  HAVE_GALLIUM_SVGA_FALSE=
 
24173
fi
 
24174
 
 
24175
 if test "x$HAVE_GALLIUM_I915" = xyes; then
 
24176
  HAVE_GALLIUM_I915_TRUE=
 
24177
  HAVE_GALLIUM_I915_FALSE='#'
 
24178
else
 
24179
  HAVE_GALLIUM_I915_TRUE='#'
 
24180
  HAVE_GALLIUM_I915_FALSE=
 
24181
fi
 
24182
 
 
24183
 if test "x$HAVE_GALLIUM_R300" = xyes; then
 
24184
  HAVE_GALLIUM_R300_TRUE=
 
24185
  HAVE_GALLIUM_R300_FALSE='#'
 
24186
else
 
24187
  HAVE_GALLIUM_R300_TRUE='#'
 
24188
  HAVE_GALLIUM_R300_FALSE=
 
24189
fi
 
24190
 
 
24191
 if test "x$HAVE_GALLIUM_R600" = xyes; then
 
24192
  HAVE_GALLIUM_R600_TRUE=
 
24193
  HAVE_GALLIUM_R600_FALSE='#'
 
24194
else
 
24195
  HAVE_GALLIUM_R600_TRUE='#'
 
24196
  HAVE_GALLIUM_R600_FALSE=
 
24197
fi
 
24198
 
 
24199
 if test "x$HAVE_GALLIUM_RADEONSI" = xyes; then
 
24200
  HAVE_GALLIUM_RADEONSI_TRUE=
 
24201
  HAVE_GALLIUM_RADEONSI_FALSE='#'
 
24202
else
 
24203
  HAVE_GALLIUM_RADEONSI_TRUE='#'
 
24204
  HAVE_GALLIUM_RADEONSI_FALSE=
 
24205
fi
 
24206
 
 
24207
 if test "x$HAVE_GALLIUM_NOUVEAU" = xyes; then
 
24208
  HAVE_GALLIUM_NOUVEAU_TRUE=
 
24209
  HAVE_GALLIUM_NOUVEAU_FALSE='#'
 
24210
else
 
24211
  HAVE_GALLIUM_NOUVEAU_TRUE='#'
 
24212
  HAVE_GALLIUM_NOUVEAU_FALSE=
 
24213
fi
 
24214
 
 
24215
 if test "x$HAVE_GALLIUM_SOFTPIPE" = xyes; then
 
24216
  HAVE_GALLIUM_SOFTPIPE_TRUE=
 
24217
  HAVE_GALLIUM_SOFTPIPE_FALSE='#'
 
24218
else
 
24219
  HAVE_GALLIUM_SOFTPIPE_TRUE='#'
 
24220
  HAVE_GALLIUM_SOFTPIPE_FALSE=
 
24221
fi
 
24222
 
 
24223
 if test "x$HAVE_GALLIUM_LLVMPIPE" = xyes; then
 
24224
  HAVE_GALLIUM_LLVMPIPE_TRUE=
 
24225
  HAVE_GALLIUM_LLVMPIPE_FALSE='#'
 
24226
else
 
24227
  HAVE_GALLIUM_LLVMPIPE_TRUE='#'
 
24228
  HAVE_GALLIUM_LLVMPIPE_FALSE=
 
24229
fi
 
24230
 
 
24231
 
22871
24232
if test "x$enable_gallium_loader" = xyes; then
22872
24233
    GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/null"
22873
24234
    GALLIUM_PIPE_LOADER_DEFINES="-DHAVE_PIPE_LOADER_SW"
22874
 
    GALLIUM_PIPE_LOADER_LIBS="\$(TOP)/src/gallium/auxiliary/pipe-loader/libpipe_loader.a"
22875
 
    GALLIUM_PIPE_LOADER_LIBS="$GALLIUM_PIPE_LOADER_LIBS \$(TOP)/src/gallium/winsys/sw/null/libws_null.a"
 
24235
    GALLIUM_PIPE_LOADER_LIBS="\$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader.la"
 
24236
    GALLIUM_PIPE_LOADER_LIBS="$GALLIUM_PIPE_LOADER_LIBS \$(top_builddir)/src/gallium/winsys/sw/null/libws_null.la"
22876
24237
 
22877
24238
    if test "x$HAVE_WINSYS_XLIB" = xyes; then
22878
24239
        GALLIUM_PIPE_LOADER_DEFINES="$GALLIUM_PIPE_LOADER_DEFINES -DHAVE_PIPE_LOADER_XLIB"
22879
 
        GALLIUM_PIPE_LOADER_LIBS="$GALLIUM_PIPE_LOADER_LIBS \$(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a"
 
24240
        GALLIUM_PIPE_LOADER_LIBS="$GALLIUM_PIPE_LOADER_LIBS \$(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la"
22880
24241
    fi
22881
24242
 
22882
24243
    if test "x$enable_gallium_drm_loader" = xyes; then
23011
24372
  NEED_RADEON_GALLIUM_FALSE=
23012
24373
fi
23013
24374
 
 
24375
 if test x$R600_NEED_RADEON_GALLIUM = xyes; then
 
24376
  R600_NEED_RADEON_GALLIUM_TRUE=
 
24377
  R600_NEED_RADEON_GALLIUM_FALSE='#'
 
24378
else
 
24379
  R600_NEED_RADEON_GALLIUM_TRUE='#'
 
24380
  R600_NEED_RADEON_GALLIUM_FALSE=
 
24381
fi
 
24382
 
23014
24383
 if test x$USE_R600_LLVM_COMPILER = xyes; then
23015
24384
  USE_R600_LLVM_COMPILER_TRUE=
23016
24385
  USE_R600_LLVM_COMPILER_FALSE='#'
23043
24412
  HAVE_GALLIUM_COMPUTE_FALSE=
23044
24413
fi
23045
24414
 
23046
 
 
 
24415
 if test x$MESA_LLVM = x1; then
 
24416
  HAVE_MESA_LLVM_TRUE=
 
24417
  HAVE_MESA_LLVM_FALSE='#'
 
24418
else
 
24419
  HAVE_MESA_LLVM_TRUE='#'
 
24420
  HAVE_MESA_LLVM_FALSE=
 
24421
fi
 
24422
 
 
24423
 if test $LLVM_VERSION_INT -ge 302; then
 
24424
  LLVM_NEEDS_FNORTTI_TRUE=
 
24425
  LLVM_NEEDS_FNORTTI_FALSE='#'
 
24426
else
 
24427
  LLVM_NEEDS_FNORTTI_TRUE='#'
 
24428
  LLVM_NEEDS_FNORTTI_FALSE=
 
24429
fi
 
24430
 
 
24431
 
 
24432
 
 
24433
 
 
24434
 if test "x$with_gallium_drivers" != x -o \
 
24435
                                     "x$enable_xlib_glx" = xyes -o \
 
24436
                                     "x$enable_osmesa" = xyes; then
 
24437
  NEED_LIBPROGRAM_TRUE=
 
24438
  NEED_LIBPROGRAM_FALSE='#'
 
24439
else
 
24440
  NEED_LIBPROGRAM_TRUE='#'
 
24441
  NEED_LIBPROGRAM_FALSE=
 
24442
fi
23047
24443
 
23048
24444
 if echo "$DRIVER_DIRS" | grep 'x11' >/dev/null 2>&1; then
23049
24445
  HAVE_X11_DRIVER_TRUE=
23079
24475
fi
23080
24476
 
23081
24477
 
 
24478
 if test "x$cross_compiling" = xyes; then
 
24479
  CROSS_COMPILING_TRUE=
 
24480
  CROSS_COMPILING_FALSE='#'
 
24481
else
 
24482
  CROSS_COMPILING_TRUE='#'
 
24483
  CROSS_COMPILING_FALSE=
 
24484
fi
 
24485
 
 
24486
 
 
24487
VDPAU_MAJOR=1
 
24488
 
 
24489
VDPAU_MINOR=0
 
24490
 
 
24491
 
 
24492
XVMC_MAJOR=1
 
24493
 
 
24494
XVMC_MINOR=0
 
24495
 
 
24496
 
 
24497
XA_MAJOR=1
 
24498
 
 
24499
XA_MINOR=0
 
24500
 
 
24501
XA_TINY=0
 
24502
 
 
24503
XA_VERSION="$XA_MAJOR.$XA_MINOR.$XA_TINY"
 
24504
 
 
24505
 
23082
24506
SRC_DIRS="$CORE_DIRS $SRC_DIRS"
23083
24507
 
23084
24508
LDFLAGS="$_SAVE_LDFLAGS"
23087
24511
CFLAGS="$CFLAGS $USER_CFLAGS"
23088
24512
CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
23089
24513
 
23090
 
ac_config_files="$ac_config_files configs/current Makefile src/egl/Makefile src/egl/drivers/Makefile src/egl/drivers/dri2/Makefile src/egl/drivers/glx/Makefile src/egl/main/Makefile src/egl/main/egl.pc src/egl/wayland/Makefile src/egl/wayland/wayland-drm/Makefile src/egl/wayland/wayland-egl/Makefile src/egl/wayland/wayland-egl/wayland-egl.pc src/gallium/Makefile src/gallium/auxiliary/pipe-loader/Makefile src/gallium/drivers/Makefile src/gallium/drivers/r300/Makefile src/gallium/drivers/r600/Makefile src/gallium/state_trackers/clover/Makefile src/gallium/targets/opencl/Makefile src/gbm/Makefile src/gbm/main/gbm.pc src/glsl/Makefile src/glsl/glcpp/Makefile src/glsl/tests/Makefile src/glx/Makefile src/glx/tests/Makefile src/gtest/Makefile src/Makefile src/mapi/es1api/Makefile src/mapi/es1api/glesv1_cm.pc src/mapi/es2api/Makefile src/mapi/es2api/glesv2.pc src/mapi/glapi/Makefile src/mapi/glapi/gen/Makefile src/mapi/glapi/tests/Makefile src/mapi/shared-glapi/Makefile src/mapi/shared-glapi/tests/Makefile src/mapi/vgapi/Makefile src/mapi/vgapi/vg.pc src/mesa/Makefile src/mesa/gl.pc src/mesa/drivers/Makefile src/mesa/drivers/dri/dri.pc src/mesa/drivers/dri/common/Makefile src/mesa/drivers/dri/i915/Makefile src/mesa/drivers/dri/i965/Makefile src/mesa/drivers/dri/Makefile src/mesa/drivers/dri/nouveau/Makefile src/mesa/drivers/dri/r200/Makefile src/mesa/drivers/dri/radeon/Makefile src/mesa/drivers/dri/swrast/Makefile src/mesa/drivers/osmesa/Makefile src/mesa/drivers/osmesa/osmesa.pc src/mesa/drivers/x11/Makefile src/mesa/libdricore/Makefile src/mesa/main/tests/Makefile src/mesa/x86-64/Makefile src/mesa/x86/Makefile"
 
24514
ac_config_files="$ac_config_files Makefile src/Makefile src/egl/Makefile src/egl/drivers/Makefile src/egl/drivers/dri2/Makefile src/egl/drivers/glx/Makefile src/egl/main/Makefile src/egl/main/egl.pc src/egl/wayland/Makefile src/egl/wayland/wayland-drm/Makefile src/egl/wayland/wayland-egl/Makefile src/egl/wayland/wayland-egl/wayland-egl.pc src/gallium/Makefile src/gallium/auxiliary/Makefile src/gallium/auxiliary/pipe-loader/Makefile src/gallium/drivers/Makefile src/gallium/drivers/i915/Makefile src/gallium/drivers/llvmpipe/Makefile src/gallium/drivers/nouveau/Makefile src/gallium/drivers/nv30/Makefile src/gallium/drivers/nv50/Makefile src/gallium/drivers/nvc0/Makefile src/gallium/drivers/r300/Makefile src/gallium/drivers/r600/Makefile src/gallium/drivers/radeon/Makefile src/gallium/drivers/radeonsi/Makefile src/gallium/drivers/rbug/Makefile src/gallium/drivers/softpipe/Makefile src/gallium/drivers/svga/Makefile src/gallium/drivers/trace/Makefile src/gallium/state_trackers/Makefile src/gallium/state_trackers/clover/Makefile src/gallium/state_trackers/dri/Makefile src/gallium/state_trackers/dri/drm/Makefile src/gallium/state_trackers/dri/sw/Makefile src/gallium/state_trackers/egl/Makefile src/gallium/state_trackers/gbm/Makefile src/gallium/state_trackers/glx/Makefile src/gallium/state_trackers/vdpau/Makefile src/gallium/state_trackers/vega/Makefile src/gallium/state_trackers/xa/Makefile src/gallium/state_trackers/xorg/Makefile src/gallium/state_trackers/xvmc/Makefile src/gallium/targets/Makefile src/gallium/targets/dri-i915/Makefile src/gallium/targets/dri-nouveau/Makefile src/gallium/targets/dri-r300/Makefile src/gallium/targets/dri-r600/Makefile src/gallium/targets/dri-radeonsi/Makefile src/gallium/targets/dri-swrast/Makefile src/gallium/targets/dri-vmwgfx/Makefile src/gallium/targets/egl-static/Makefile src/gallium/targets/gbm/Makefile src/gallium/targets/opencl/Makefile src/gallium/targets/pipe-loader/Makefile src/gallium/targets/libgl-xlib/Makefile src/gallium/targets/vdpau-nouveau/Makefile src/gallium/targets/vdpau-r300/Makefile src/gallium/targets/vdpau-r600/Makefile src/gallium/targets/vdpau-radeonsi/Makefile src/gallium/targets/vdpau-softpipe/Makefile src/gallium/targets/xa-vmwgfx/Makefile src/gallium/targets/xa-vmwgfx/xatracker.pc src/gallium/targets/xorg-i915/Makefile src/gallium/targets/xorg-nouveau/Makefile src/gallium/targets/xorg-r600/Makefile src/gallium/targets/xorg-radeonsi/Makefile src/gallium/targets/xvmc-nouveau/Makefile src/gallium/targets/xvmc-r300/Makefile src/gallium/targets/xvmc-r600/Makefile src/gallium/targets/xvmc-softpipe/Makefile src/gallium/tests/trivial/Makefile src/gallium/tests/unit/Makefile src/gallium/winsys/Makefile src/gallium/winsys/i915/drm/Makefile src/gallium/winsys/i915/sw/Makefile src/gallium/winsys/nouveau/drm/Makefile src/gallium/winsys/radeon/drm/Makefile src/gallium/winsys/svga/drm/Makefile src/gallium/winsys/sw/Makefile src/gallium/winsys/sw/dri/Makefile src/gallium/winsys/sw/fbdev/Makefile src/gallium/winsys/sw/null/Makefile src/gallium/winsys/sw/wayland/Makefile src/gallium/winsys/sw/wrapper/Makefile src/gallium/winsys/sw/xlib/Makefile src/gbm/Makefile src/gbm/main/gbm.pc src/glsl/Makefile src/glsl/builtin_compiler/Makefile src/glx/Makefile src/glx/tests/Makefile src/gtest/Makefile src/mapi/es1api/Makefile src/mapi/es1api/glesv1_cm.pc src/mapi/es2api/Makefile src/mapi/es2api/glesv2.pc src/mapi/glapi/Makefile src/mapi/glapi/gen/Makefile src/mapi/glapi/tests/Makefile src/mapi/shared-glapi/Makefile src/mapi/shared-glapi/tests/Makefile src/mapi/vgapi/Makefile src/mapi/vgapi/vg.pc src/mesa/Makefile src/mesa/gl.pc src/mesa/drivers/Makefile src/mesa/drivers/dri/dri.pc src/mesa/drivers/dri/common/Makefile src/mesa/drivers/dri/common/xmlpool/Makefile src/mesa/drivers/dri/i915/Makefile src/mesa/drivers/dri/i965/Makefile src/mesa/drivers/dri/Makefile src/mesa/drivers/dri/nouveau/Makefile src/mesa/drivers/dri/r200/Makefile src/mesa/drivers/dri/radeon/Makefile src/mesa/drivers/dri/swrast/Makefile src/mesa/drivers/osmesa/Makefile src/mesa/drivers/osmesa/osmesa.pc src/mesa/drivers/x11/Makefile src/mesa/libdricore/Makefile src/mesa/main/tests/Makefile src/mesa/main/tests/hash_table/Makefile src/mesa/program/Makefile src/mesa/x86-64/Makefile src/mesa/x86/Makefile"
23091
24515
 
23092
24516
 
23093
24517
GALLIUM_TARGET_DIRS=`echo $GALLIUM_TARGET_DIRS|tr " " "\n"|sort -u|tr "\n" " "`
23241
24665
LTLIBOBJS=$ac_ltlibobjs
23242
24666
 
23243
24667
 
 
24668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
24669
$as_echo_n "checking that generated files are newer than configure... " >&6; }
 
24670
   if test -n "$am_sleep_pid"; then
 
24671
     # Hide warnings about reused PIDs.
 
24672
     wait $am_sleep_pid 2>/dev/null
 
24673
   fi
 
24674
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
24675
$as_echo "done" >&6; }
23244
24676
 if test -n "$EXEEXT"; then
23245
24677
  am__EXEEXT_TRUE=
23246
24678
  am__EXEEXT_FALSE='#'
23261
24693
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23262
24694
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23263
24695
fi
 
24696
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
24697
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
24698
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24699
fi
 
24700
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
24701
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
24702
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24703
fi
23264
24704
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23265
24705
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23266
24706
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23321
24761
  as_fn_error $? "conditional \"HAVE_COMMON_DRI\" was never defined.
23322
24762
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23323
24763
fi
 
24764
if test -z "${HAVE_OPENVG_TRUE}" && test -z "${HAVE_OPENVG_FALSE}"; then
 
24765
  as_fn_error $? "conditional \"HAVE_OPENVG\" was never defined.
 
24766
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24767
fi
23324
24768
if test -z "${HAVE_GALLIUM_TRUE}" && test -z "${HAVE_GALLIUM_FALSE}"; then
23325
24769
  as_fn_error $? "conditional \"HAVE_GALLIUM\" was never defined.
23326
24770
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23327
24771
fi
 
24772
if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
 
24773
  as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
 
24774
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24775
fi
23328
24776
if test -z "${HAVE_EGL_PLATFORM_X11_TRUE}" && test -z "${HAVE_EGL_PLATFORM_X11_FALSE}"; then
23329
24777
  as_fn_error $? "conditional \"HAVE_EGL_PLATFORM_X11\" was never defined.
23330
24778
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23353
24801
  as_fn_error $? "conditional \"HAVE_EGL_DRIVER_GLX\" was never defined.
23354
24802
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23355
24803
fi
 
24804
if test -z "${HAVE_GALLIUM_SVGA_TRUE}" && test -z "${HAVE_GALLIUM_SVGA_FALSE}"; then
 
24805
  as_fn_error $? "conditional \"HAVE_GALLIUM_SVGA\" was never defined.
 
24806
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24807
fi
 
24808
if test -z "${HAVE_GALLIUM_I915_TRUE}" && test -z "${HAVE_GALLIUM_I915_FALSE}"; then
 
24809
  as_fn_error $? "conditional \"HAVE_GALLIUM_I915\" was never defined.
 
24810
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24811
fi
 
24812
if test -z "${HAVE_GALLIUM_R300_TRUE}" && test -z "${HAVE_GALLIUM_R300_FALSE}"; then
 
24813
  as_fn_error $? "conditional \"HAVE_GALLIUM_R300\" was never defined.
 
24814
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24815
fi
 
24816
if test -z "${HAVE_GALLIUM_R600_TRUE}" && test -z "${HAVE_GALLIUM_R600_FALSE}"; then
 
24817
  as_fn_error $? "conditional \"HAVE_GALLIUM_R600\" was never defined.
 
24818
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24819
fi
 
24820
if test -z "${HAVE_GALLIUM_RADEONSI_TRUE}" && test -z "${HAVE_GALLIUM_RADEONSI_FALSE}"; then
 
24821
  as_fn_error $? "conditional \"HAVE_GALLIUM_RADEONSI\" was never defined.
 
24822
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24823
fi
 
24824
if test -z "${HAVE_GALLIUM_NOUVEAU_TRUE}" && test -z "${HAVE_GALLIUM_NOUVEAU_FALSE}"; then
 
24825
  as_fn_error $? "conditional \"HAVE_GALLIUM_NOUVEAU\" was never defined.
 
24826
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24827
fi
 
24828
if test -z "${HAVE_GALLIUM_SOFTPIPE_TRUE}" && test -z "${HAVE_GALLIUM_SOFTPIPE_FALSE}"; then
 
24829
  as_fn_error $? "conditional \"HAVE_GALLIUM_SOFTPIPE\" was never defined.
 
24830
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24831
fi
 
24832
if test -z "${HAVE_GALLIUM_LLVMPIPE_TRUE}" && test -z "${HAVE_GALLIUM_LLVMPIPE_FALSE}"; then
 
24833
  as_fn_error $? "conditional \"HAVE_GALLIUM_LLVMPIPE\" was never defined.
 
24834
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24835
fi
23356
24836
if test -z "${HAVE_GALAHAD_GALLIUM_TRUE}" && test -z "${HAVE_GALAHAD_GALLIUM_FALSE}"; then
23357
24837
  as_fn_error $? "conditional \"HAVE_GALAHAD_GALLIUM\" was never defined.
23358
24838
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23369
24849
  as_fn_error $? "conditional \"NEED_RADEON_GALLIUM\" was never defined.
23370
24850
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23371
24851
fi
 
24852
if test -z "${R600_NEED_RADEON_GALLIUM_TRUE}" && test -z "${R600_NEED_RADEON_GALLIUM_FALSE}"; then
 
24853
  as_fn_error $? "conditional \"R600_NEED_RADEON_GALLIUM\" was never defined.
 
24854
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24855
fi
23372
24856
if test -z "${USE_R600_LLVM_COMPILER_TRUE}" && test -z "${USE_R600_LLVM_COMPILER_FALSE}"; then
23373
24857
  as_fn_error $? "conditional \"USE_R600_LLVM_COMPILER\" was never defined.
23374
24858
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23385
24869
  as_fn_error $? "conditional \"HAVE_GALLIUM_COMPUTE\" was never defined.
23386
24870
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23387
24871
fi
 
24872
if test -z "${HAVE_MESA_LLVM_TRUE}" && test -z "${HAVE_MESA_LLVM_FALSE}"; then
 
24873
  as_fn_error $? "conditional \"HAVE_MESA_LLVM\" was never defined.
 
24874
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24875
fi
 
24876
if test -z "${LLVM_NEEDS_FNORTTI_TRUE}" && test -z "${LLVM_NEEDS_FNORTTI_FALSE}"; then
 
24877
  as_fn_error $? "conditional \"LLVM_NEEDS_FNORTTI\" was never defined.
 
24878
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24879
fi
 
24880
if test -z "${NEED_LIBPROGRAM_TRUE}" && test -z "${NEED_LIBPROGRAM_FALSE}"; then
 
24881
  as_fn_error $? "conditional \"NEED_LIBPROGRAM\" was never defined.
 
24882
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24883
fi
23388
24884
if test -z "${HAVE_X11_DRIVER_TRUE}" && test -z "${HAVE_X11_DRIVER_FALSE}"; then
23389
24885
  as_fn_error $? "conditional \"HAVE_X11_DRIVER\" was never defined.
23390
24886
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23401
24897
  as_fn_error $? "conditional \"HAVE_SPARC_ASM\" was never defined.
23402
24898
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23403
24899
fi
 
24900
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
 
24901
  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
 
24902
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24903
fi
23404
24904
 
23405
24905
: "${CONFIG_STATUS=./config.status}"
23406
24906
ac_write_fail=0
23798
25298
# report actual input values of CONFIG_FILES etc. instead of their
23799
25299
# values after options handling.
23800
25300
ac_log="
23801
 
This file was extended by Mesa $as_me 9.0.3, which was
 
25301
This file was extended by Mesa $as_me 9.1.1, which was
23802
25302
generated by GNU Autoconf 2.69.  Invocation command line was
23803
25303
 
23804
25304
  CONFIG_FILES    = $CONFIG_FILES
23855
25355
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23856
25356
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23857
25357
ac_cs_version="\\
23858
 
Mesa config.status 9.0.3
 
25358
Mesa config.status 9.1.1
23859
25359
configured by $0, generated by GNU Autoconf 2.69,
23860
25360
  with options \\"\$ac_cs_config\\"
23861
25361
 
24350
25850
  case $ac_config_target in
24351
25851
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24352
25852
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24353
 
    "configs/current") CONFIG_FILES="$CONFIG_FILES configs/current" ;;
24354
25853
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
25854
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24355
25855
    "src/egl/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/Makefile" ;;
24356
25856
    "src/egl/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/drivers/Makefile" ;;
24357
25857
    "src/egl/drivers/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/drivers/dri2/Makefile" ;;
24363
25863
    "src/egl/wayland/wayland-egl/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/wayland/wayland-egl/Makefile" ;;
24364
25864
    "src/egl/wayland/wayland-egl/wayland-egl.pc") CONFIG_FILES="$CONFIG_FILES src/egl/wayland/wayland-egl/wayland-egl.pc" ;;
24365
25865
    "src/gallium/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/Makefile" ;;
 
25866
    "src/gallium/auxiliary/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/auxiliary/Makefile" ;;
24366
25867
    "src/gallium/auxiliary/pipe-loader/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/auxiliary/pipe-loader/Makefile" ;;
24367
25868
    "src/gallium/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/Makefile" ;;
 
25869
    "src/gallium/drivers/i915/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/i915/Makefile" ;;
 
25870
    "src/gallium/drivers/llvmpipe/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/llvmpipe/Makefile" ;;
 
25871
    "src/gallium/drivers/nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/nouveau/Makefile" ;;
 
25872
    "src/gallium/drivers/nv30/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/nv30/Makefile" ;;
 
25873
    "src/gallium/drivers/nv50/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/nv50/Makefile" ;;
 
25874
    "src/gallium/drivers/nvc0/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/nvc0/Makefile" ;;
24368
25875
    "src/gallium/drivers/r300/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/r300/Makefile" ;;
24369
25876
    "src/gallium/drivers/r600/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/r600/Makefile" ;;
 
25877
    "src/gallium/drivers/radeon/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/radeon/Makefile" ;;
 
25878
    "src/gallium/drivers/radeonsi/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/radeonsi/Makefile" ;;
 
25879
    "src/gallium/drivers/rbug/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/rbug/Makefile" ;;
 
25880
    "src/gallium/drivers/softpipe/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/softpipe/Makefile" ;;
 
25881
    "src/gallium/drivers/svga/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/svga/Makefile" ;;
 
25882
    "src/gallium/drivers/trace/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/trace/Makefile" ;;
 
25883
    "src/gallium/state_trackers/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/Makefile" ;;
24370
25884
    "src/gallium/state_trackers/clover/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/clover/Makefile" ;;
 
25885
    "src/gallium/state_trackers/dri/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/dri/Makefile" ;;
 
25886
    "src/gallium/state_trackers/dri/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/dri/drm/Makefile" ;;
 
25887
    "src/gallium/state_trackers/dri/sw/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/dri/sw/Makefile" ;;
 
25888
    "src/gallium/state_trackers/egl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/egl/Makefile" ;;
 
25889
    "src/gallium/state_trackers/gbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/gbm/Makefile" ;;
 
25890
    "src/gallium/state_trackers/glx/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/glx/Makefile" ;;
 
25891
    "src/gallium/state_trackers/vdpau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/vdpau/Makefile" ;;
 
25892
    "src/gallium/state_trackers/vega/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/vega/Makefile" ;;
 
25893
    "src/gallium/state_trackers/xa/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/xa/Makefile" ;;
 
25894
    "src/gallium/state_trackers/xorg/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/xorg/Makefile" ;;
 
25895
    "src/gallium/state_trackers/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/xvmc/Makefile" ;;
 
25896
    "src/gallium/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/Makefile" ;;
 
25897
    "src/gallium/targets/dri-i915/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-i915/Makefile" ;;
 
25898
    "src/gallium/targets/dri-nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-nouveau/Makefile" ;;
 
25899
    "src/gallium/targets/dri-r300/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-r300/Makefile" ;;
 
25900
    "src/gallium/targets/dri-r600/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-r600/Makefile" ;;
 
25901
    "src/gallium/targets/dri-radeonsi/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-radeonsi/Makefile" ;;
 
25902
    "src/gallium/targets/dri-swrast/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-swrast/Makefile" ;;
 
25903
    "src/gallium/targets/dri-vmwgfx/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-vmwgfx/Makefile" ;;
 
25904
    "src/gallium/targets/egl-static/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/egl-static/Makefile" ;;
 
25905
    "src/gallium/targets/gbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/gbm/Makefile" ;;
24371
25906
    "src/gallium/targets/opencl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/opencl/Makefile" ;;
 
25907
    "src/gallium/targets/pipe-loader/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/pipe-loader/Makefile" ;;
 
25908
    "src/gallium/targets/libgl-xlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/libgl-xlib/Makefile" ;;
 
25909
    "src/gallium/targets/vdpau-nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/vdpau-nouveau/Makefile" ;;
 
25910
    "src/gallium/targets/vdpau-r300/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/vdpau-r300/Makefile" ;;
 
25911
    "src/gallium/targets/vdpau-r600/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/vdpau-r600/Makefile" ;;
 
25912
    "src/gallium/targets/vdpau-radeonsi/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/vdpau-radeonsi/Makefile" ;;
 
25913
    "src/gallium/targets/vdpau-softpipe/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/vdpau-softpipe/Makefile" ;;
 
25914
    "src/gallium/targets/xa-vmwgfx/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xa-vmwgfx/Makefile" ;;
 
25915
    "src/gallium/targets/xa-vmwgfx/xatracker.pc") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xa-vmwgfx/xatracker.pc" ;;
 
25916
    "src/gallium/targets/xorg-i915/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xorg-i915/Makefile" ;;
 
25917
    "src/gallium/targets/xorg-nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xorg-nouveau/Makefile" ;;
 
25918
    "src/gallium/targets/xorg-r600/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xorg-r600/Makefile" ;;
 
25919
    "src/gallium/targets/xorg-radeonsi/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xorg-radeonsi/Makefile" ;;
 
25920
    "src/gallium/targets/xvmc-nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xvmc-nouveau/Makefile" ;;
 
25921
    "src/gallium/targets/xvmc-r300/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xvmc-r300/Makefile" ;;
 
25922
    "src/gallium/targets/xvmc-r600/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xvmc-r600/Makefile" ;;
 
25923
    "src/gallium/targets/xvmc-softpipe/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xvmc-softpipe/Makefile" ;;
 
25924
    "src/gallium/tests/trivial/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/tests/trivial/Makefile" ;;
 
25925
    "src/gallium/tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/tests/unit/Makefile" ;;
 
25926
    "src/gallium/winsys/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/Makefile" ;;
 
25927
    "src/gallium/winsys/i915/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/i915/drm/Makefile" ;;
 
25928
    "src/gallium/winsys/i915/sw/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/i915/sw/Makefile" ;;
 
25929
    "src/gallium/winsys/nouveau/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/nouveau/drm/Makefile" ;;
 
25930
    "src/gallium/winsys/radeon/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/radeon/drm/Makefile" ;;
 
25931
    "src/gallium/winsys/svga/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/svga/drm/Makefile" ;;
 
25932
    "src/gallium/winsys/sw/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/Makefile" ;;
 
25933
    "src/gallium/winsys/sw/dri/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/dri/Makefile" ;;
 
25934
    "src/gallium/winsys/sw/fbdev/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/fbdev/Makefile" ;;
 
25935
    "src/gallium/winsys/sw/null/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/null/Makefile" ;;
 
25936
    "src/gallium/winsys/sw/wayland/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/wayland/Makefile" ;;
 
25937
    "src/gallium/winsys/sw/wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/wrapper/Makefile" ;;
 
25938
    "src/gallium/winsys/sw/xlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/xlib/Makefile" ;;
24372
25939
    "src/gbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gbm/Makefile" ;;
24373
25940
    "src/gbm/main/gbm.pc") CONFIG_FILES="$CONFIG_FILES src/gbm/main/gbm.pc" ;;
24374
25941
    "src/glsl/Makefile") CONFIG_FILES="$CONFIG_FILES src/glsl/Makefile" ;;
24375
 
    "src/glsl/glcpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/glsl/glcpp/Makefile" ;;
24376
 
    "src/glsl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/glsl/tests/Makefile" ;;
 
25942
    "src/glsl/builtin_compiler/Makefile") CONFIG_FILES="$CONFIG_FILES src/glsl/builtin_compiler/Makefile" ;;
24377
25943
    "src/glx/Makefile") CONFIG_FILES="$CONFIG_FILES src/glx/Makefile" ;;
24378
25944
    "src/glx/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/glx/tests/Makefile" ;;
24379
25945
    "src/gtest/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtest/Makefile" ;;
24380
 
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24381
25946
    "src/mapi/es1api/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/es1api/Makefile" ;;
24382
25947
    "src/mapi/es1api/glesv1_cm.pc") CONFIG_FILES="$CONFIG_FILES src/mapi/es1api/glesv1_cm.pc" ;;
24383
25948
    "src/mapi/es2api/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/es2api/Makefile" ;;
24394
25959
    "src/mesa/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/Makefile" ;;
24395
25960
    "src/mesa/drivers/dri/dri.pc") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/dri.pc" ;;
24396
25961
    "src/mesa/drivers/dri/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/common/Makefile" ;;
 
25962
    "src/mesa/drivers/dri/common/xmlpool/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/common/xmlpool/Makefile" ;;
24397
25963
    "src/mesa/drivers/dri/i915/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/i915/Makefile" ;;
24398
25964
    "src/mesa/drivers/dri/i965/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/i965/Makefile" ;;
24399
25965
    "src/mesa/drivers/dri/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/Makefile" ;;
24406
25972
    "src/mesa/drivers/x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/x11/Makefile" ;;
24407
25973
    "src/mesa/libdricore/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/libdricore/Makefile" ;;
24408
25974
    "src/mesa/main/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/main/tests/Makefile" ;;
 
25975
    "src/mesa/main/tests/hash_table/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/main/tests/hash_table/Makefile" ;;
 
25976
    "src/mesa/program/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/program/Makefile" ;;
24409
25977
    "src/mesa/x86-64/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/x86-64/Makefile" ;;
24410
25978
    "src/mesa/x86/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/x86/Makefile" ;;
24411
25979
 
24851
26419
    # Strip MF so we end up with the name of the file.
24852
26420
    mf=`echo "$mf" | sed -e 's/:.*$//'`
24853
26421
    # Check whether this is an Automake generated Makefile or not.
24854
 
    # We used to match only the files named `Makefile.in', but
 
26422
    # We used to match only the files named 'Makefile.in', but
24855
26423
    # some people rename them; so instead we look at the file content.
24856
26424
    # Grep'ing the first line is not enough: some people post-process
24857
26425
    # each Makefile.in and add a new line on top of each file to say so.
24885
26453
      continue
24886
26454
    fi
24887
26455
    # Extract the definition of DEPDIR, am__include, and am__quote
24888
 
    # from the Makefile without running `make'.
 
26456
    # from the Makefile without running 'make'.
24889
26457
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24890
26458
    test -z "$DEPDIR" && continue
24891
26459
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
24892
26460
    test -z "am__include" && continue
24893
26461
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24894
 
    # When using ansi2knr, U may be empty or an underscore; expand it
24895
 
    U=`sed -n 's/^U = //p' < "$mf"`
24896
26462
    # Find all dependency output files, they are included files with
24897
26463
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
24898
26464
    # simplest approach to changing $(DEPDIR) to its actual value in the
24899
26465
    # expansion.
24900
26466
    for file in `sed -n "
24901
26467
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24902
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
26468
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24903
26469
      # Make sure the directory exists.
24904
26470
      test -f "$dirpart/$file" && continue
24905
26471
      fdir=`$as_dirname -- "$file" ||
25857
27423
echo "        Shared-glapi:    $enable_shared_glapi"
25858
27424
 
25859
27425
# cleanup the CFLAGS/CXXFLAGS/DEFINES vars
25860
 
cflags=`echo $CFLAGS $PIC_FLAGS | \
 
27426
cflags=`echo $CFLAGS | \
25861
27427
    $SED 's/^ *//;s/  */ /;s/ *$//'`
25862
 
cxxflags=`echo $CXXFLAGS $PIC_FLAGS | \
 
27428
cxxflags=`echo $CXXFLAGS | \
25863
27429
    $SED 's/^ *//;s/  */ /;s/ *$//'`
25864
27430
defines=`echo $DEFINES | $SED 's/^ *//;s/  */ /;s/ *$//'`
25865
27431
echo ""
25867
27433
echo "        CXXFLAGS:        $cxxflags"
25868
27434
echo "        Macros:          $defines"
25869
27435
echo ""
 
27436
if test "x$MESA_LLVM" = x1; then
 
27437
    echo "        LLVM_CFLAGS:     $LLVM_CFLAGS"
 
27438
    echo "        LLVM_CXXFLAGS:   $LLVM_CXXFLAGS"
 
27439
    echo "        LLVM_CPPFLAGS:   $LLVM_CPPFLAGS"
 
27440
    echo ""
 
27441
fi
25870
27442
echo "        PYTHON2:         $PYTHON2"
25871
27443
 
25872
27444
echo ""