Codebase list libass / 8b6cecb
New upstream version 0.15.2 Sebastian Ramacher 2 years ago
35 changed file(s) with 7980 addition(s) and 5711 deletion(s). Raw diff Collapse all Expand all
0 libass (0.15.2)
1 * Fix some known 0.15.x regressions:
2 * Fix Core Text font fallback failing on some fonts with multiple names
3 * Fix DirectWrite failing to look up any but
4 the first loaded variant of system fonts
5 * Fix some format string bugs, which could lead to
6 garbled log messages or on some platforms crashes
7 * Fix ass_set_fonts_dir failing to load long paths
8 * Better handling of control characters that have no associated font glyphs
9 * DirectWrite: font lookup is now closer to VSFilter
10 * DirectWrite: this font provider can now be built for UWP
11
012 libass (0.15.1)
113 * Fix currently known 0.15.0 regressions:
214 * Fix crashing on some ASS files with embedded fonts
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
167167 $(am__extra_recursive_targets)
168168 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
169169 cscope distdir distdir-am dist dist-all distcheck
170 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
171 $(LISP)config.h.in
170 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
171 config.h.in
172172 # Read a list of newline-separated strings from the standard input,
173173 # and print each of them once, without duplicates. Input order is
174174 # *not* preserved.
185185 unique=`for i in $$list; do \
186186 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
187187 done | $(am__uniquify_input)`
188 ETAGS = etags
189 CTAGS = ctags
190 CSCOPE = cscope
191188 DIST_SUBDIRS = libass test compare profile
192189 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
193 $(srcdir)/libass.pc.in COPYING compile config.guess config.sub \
194 install-sh ltmain.sh missing
190 $(srcdir)/libass.pc.in COPYING README.md compile config.guess \
191 config.sub install-sh ltmain.sh missing
195192 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
196193 distdir = $(PACKAGE)-$(VERSION)
197194 top_distdir = $(distdir)
230227 DIST_ARCHIVES = $(distdir).tar.gz
231228 GZIP_ENV = --best
232229 DIST_TARGETS = dist-gzip
230 # Exists only to be overridden by the user if desired.
231 AM_DISTCHECK_DVI_TARGET = dvi
233232 distuninstallcheck_listfiles = find . -type f -print
234233 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
235234 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
247246 CC = @CC@
248247 CCDEPMODE = @CCDEPMODE@
249248 CFLAGS = @CFLAGS@
250 CPP = @CPP@
251249 CPPFLAGS = @CPPFLAGS@
250 CSCOPE = @CSCOPE@
251 CTAGS = @CTAGS@
252252 CYGPATH_W = @CYGPATH_W@
253253 DEFS = @DEFS@
254254 DEPDIR = @DEPDIR@
259259 ECHO_N = @ECHO_N@
260260 ECHO_T = @ECHO_T@
261261 EGREP = @EGREP@
262 ETAGS = @ETAGS@
262263 EXEEXT = @EXEEXT@
263264 FGREP = @FGREP@
264265 FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
360361 prefix = @prefix@
361362 program_transform_name = @program_transform_name@
362363 psdir = @psdir@
364 runstatedir = @runstatedir@
363365 sbindir = @sbindir@
364366 sharedstatedir = @sharedstatedir@
365367 srcdir = @srcdir@
566568 distclean-tags:
567569 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
568570 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
569
570571 distdir: $(BUILT_SOURCES)
571572 $(MAKE) $(AM_MAKEFLAGS) distdir-am
572573
650651 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
651652 $(am__post_remove_distdir)
652653
654 dist-zstd: distdir
655 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
656 $(am__post_remove_distdir)
657
653658 dist-tarZ: distdir
654659 @echo WARNING: "Support for distribution archives compressed with" \
655660 "legacy program 'compress' is deprecated." >&2
692697 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
693698 *.zip*) \
694699 unzip $(distdir).zip ;;\
700 *.tar.zst*) \
701 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
695702 esac
696703 chmod -R a-w $(distdir)
697704 chmod u+w $(distdir)
707714 $(DISTCHECK_CONFIGURE_FLAGS) \
708715 --srcdir=../.. --prefix="$$dc_install_base" \
709716 && $(MAKE) $(AM_MAKEFLAGS) \
710 && $(MAKE) $(AM_MAKEFLAGS) dvi \
717 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
711718 && $(MAKE) $(AM_MAKEFLAGS) check \
712719 && $(MAKE) $(AM_MAKEFLAGS) install \
713720 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
872879 am--refresh check check-am clean clean-cscope clean-generic \
873880 clean-libtool cscope cscopelist-am ctags ctags-am dist \
874881 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
875 dist-xz dist-zip distcheck distclean distclean-generic \
876 distclean-hdr distclean-libtool distclean-tags distcleancheck \
877 distdir distuninstallcheck dvi dvi-am html html-am info \
878 info-am install install-am install-data install-data-am \
879 install-dvi install-dvi-am install-exec install-exec-am \
880 install-html install-html-am install-info install-info-am \
881 install-man install-pdf install-pdf-am install-pkgconfigDATA \
882 install-ps install-ps-am install-strip installcheck \
883 installcheck-am installdirs installdirs-am maintainer-clean \
884 maintainer-clean-generic mostlyclean mostlyclean-generic \
885 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
886 uninstall-am uninstall-pkgconfigDATA
882 dist-xz dist-zip dist-zstd distcheck distclean \
883 distclean-generic distclean-hdr distclean-libtool \
884 distclean-tags distcleancheck distdir distuninstallcheck dvi \
885 dvi-am html html-am info info-am install install-am \
886 install-data install-data-am install-dvi install-dvi-am \
887 install-exec install-exec-am install-html install-html-am \
888 install-info install-info-am install-man install-pdf \
889 install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
890 install-strip installcheck installcheck-am installdirs \
891 installdirs-am maintainer-clean maintainer-clean-generic \
892 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
893 ps ps-am tags tags-am uninstall uninstall-am \
894 uninstall-pkgconfigDATA
887895
888896 .PRECIOUS: Makefile
889897
0 [![Build status](https://github.com/libass/libass/actions/workflows/ghci.yml/badge.svg?branch=master&event=push)](https://github.com/libass/libass/actions/workflows/ghci.yml?query=branch%3Amaster+event%3Apush)
1
2 [![Coverity scan build status](https://scan.coverity.com/projects/3531/badge.svg)](https://scan.coverity.com/projects/3531)
3
4 libass
5 ======
6 libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format. It is mostly compatible with VSFilter.
7
8 Get it
9 ======
10 See [GitHub releases](https://github.com/libass/libass/releases) for the latest release 0.15.2 (released 2021-09-12). This is a bug fix release. See the [changelog](https://github.com/libass/libass/blob/master/Changelog) for a detailed list of changes.
11
12 Source code is available from our [GitHub repository](https://github.com/libass/libass).
13
14 Contact
15 =======
16 Please use the [issue tracker](https://github.com/libass/libass/issues?state=open) to report bugs or feature requests. We have an IRC channel, too. Talk to us on [irc.libera.chat/#libass](irc://irc.libera.chat/libass).
17
18 Related Links
19 =============
20 The following projects/companies use libass:
21
22 - [MPlayer](http://www.mplayerhq.hu/)
23 - [mplayer2](http://www.mplayer2.org/)
24 - [mpv](http://mpv.io/)
25 - [VLC](http://www.videolan.org/)
26 - [GStreamer](http://gstreamer.freedesktop.org/) (assrender plugin)
27 - [FFmpeg](http://ffmpeg.org/)
28 - [Libav](http://libav.org/) (unmaintained)
29 - [Aegisub](http://www.aegisub.org/)
30 - [Kodi (XBMC)](http://kodi.tv/)
31 - [avidemux](http://fixounet.free.fr/avidemux/)
32 - [PunkGraphicsStream (BD subtitle encoder)](http://code.google.com/p/punkgraphicstream/)
33 - [HandBrake](http://handbrake.fr/)
34 - [MX Player](https://play.google.com/store/apps/details?id=com.mxtech.videoplayer.ad)
35 - [QMPlay2](http://zaps166.sourceforge.net/?app=QMPlay2)
36 - [SubtitlesOctopus](https://github.com/libass/JavascriptSubtitlesOctopus) (JavaScript ASS via wasm libass)
37 - [Crunchyroll](http://www.crunchyroll.com/) uses SubtitlesOctopus
38 - [AssRender for Avisynth(+)](http://avisynth.nl/index.php/AssRender)
39
40 Information about the ASS format:
41 =================================
42 - [ASS specification (incomplete)](http://moodub.free.fr/video/ass-specs.doc)
43 - [ASS override tags (Aegisub manual)](http://docs.aegisub.org/latest/ASS_Tags/)
44 - [VSFilter source code (Guliverkli2)](http://sourceforge.net/p/guliverkli2/code/HEAD/tree/src/subtitles/)
45
46 Other ASS/SSA implementations:
47 ==============================
48 - VSFilter:
49 - [xy-VSFilter/XySubFilter](https://github.com/Cyberbeing/xy-VSFilter/)
50 - [pfmod](https://github.com/pinterf/xy-VSFilter/)
51 - VSFilter in [MPC-HC](https://github.com/clsid2/mpc-hc/tree/develop/src/filters/transform/VSFilter/)
52 - [VSFilterMod](https://code.google.com/archive/p/vsfiltermod/) (with custom format extensions)
53 - [sorayuki fork](https://github.com/sorayuki/VSFilterMod/) with some bugfixes
54 - [Threaded VSFilter](https://code.google.com/p/threaded-vsfilter/) (defunct)
55 - VSFilter in [Guliverkli2](http://sourceforge.net/projects/guliverkli2/) (defunct, subsumed by all of the above)
56 - VSFilter in [guliverkli](http://sourceforge.net/projects/guliverkli/) (defunct, forked as Guliverkli2)
57 - [ffdshow](http://ffdshow-tryout.sourceforge.net/) (defunct)
58 - [Perian](https://github.com/MaddTheSane/perian) (defunct)
59 - [asa](http://git.spaceboyz.net/asa.git) (defunct)
60 - [libjass](https://github.com/Arnavion/libjass) (defunct)
61 - [ASS.js](https://github.com/weizhenye/ASS)
0 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.4 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1313 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1414 m4_ifndef([AC_AUTOCONF_VERSION],
1515 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
17 [m4_warning([this file was generated for autoconf 2.71.
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
295295 AS_VAR_IF([$1], [""], [$5], [$4])dnl
296296 ])dnl PKG_CHECK_VAR
297297
298 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
298 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
299299 #
300300 # This file is free software; the Free Software Foundation
301301 # gives unlimited permission to copy and/or distribute it,
310310 [am__api_version='1.16'
311311 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
312312 dnl require some minimum version. Point them to the right macro.
313 m4_if([$1], [1.16.1], [],
313 m4_if([$1], [1.16.4], [],
314314 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
315315 ])
316316
326326 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
327327 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
328328 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
329 [AM_AUTOMAKE_VERSION([1.16.1])dnl
329 [AM_AUTOMAKE_VERSION([1.16.4])dnl
330330 m4_ifndef([AC_AUTOCONF_VERSION],
331331 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
332332 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
333333
334334 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
335335
336 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
336 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
337337 #
338338 # This file is free software; the Free Software Foundation
339339 # gives unlimited permission to copy and/or distribute it,
385385
386386 # AM_COND_IF -*- Autoconf -*-
387387
388 # Copyright (C) 2008-2018 Free Software Foundation, Inc.
388 # Copyright (C) 2008-2021 Free Software Foundation, Inc.
389389 #
390390 # This file is free software; the Free Software Foundation
391391 # gives unlimited permission to copy and/or distribute it,
422422
423423 # AM_CONDITIONAL -*- Autoconf -*-
424424
425 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
425 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
426426 #
427427 # This file is free software; the Free Software Foundation
428428 # gives unlimited permission to copy and/or distribute it,
453453 Usually this means the macro was only invoked conditionally.]])
454454 fi])])
455455
456 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
456 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
457457 #
458458 # This file is free software; the Free Software Foundation
459459 # gives unlimited permission to copy and/or distribute it,
644644
645645 # Generate code to set up dependency tracking. -*- Autoconf -*-
646646
647 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
647 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
648648 #
649649 # This file is free software; the Free Software Foundation
650650 # gives unlimited permission to copy and/or distribute it,
683683 done
684684 if test $am_rc -ne 0; then
685685 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
686 for automatic dependency tracking. Try re-running configure with the
686 for automatic dependency tracking. If GNU make was not used, consider
687 re-running the configure script with MAKE="gmake" (or whatever is
688 necessary). You can also try re-running configure with the
687689 '--disable-dependency-tracking' option to at least be able to build
688690 the package (albeit without support for automatic dependency tracking).])
689691 fi
710712
711713 # Do all the work for Automake. -*- Autoconf -*-
712714
713 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
715 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
714716 #
715717 # This file is free software; the Free Software Foundation
716718 # gives unlimited permission to copy and/or distribute it,
774776 [_AM_SET_OPTIONS([$1])dnl
775777 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
776778 m4_if(
777 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
779 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
778780 [ok:ok],,
779781 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
780782 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
826828 [m4_define([AC_PROG_OBJCXX],
827829 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
828830 ])
831 # Variables for tags utilities; see am/tags.am
832 if test -z "$CTAGS"; then
833 CTAGS=ctags
834 fi
835 AC_SUBST([CTAGS])
836 if test -z "$ETAGS"; then
837 ETAGS=etags
838 fi
839 AC_SUBST([ETAGS])
840 if test -z "$CSCOPE"; then
841 CSCOPE=cscope
842 fi
843 AC_SUBST([CSCOPE])
844
829845 AC_REQUIRE([AM_SILENT_RULES])dnl
830846 dnl The testsuite driver may need to know about EXEEXT, so add the
831847 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
907923 done
908924 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
909925
910 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
926 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
911927 #
912928 # This file is free software; the Free Software Foundation
913929 # gives unlimited permission to copy and/or distribute it,
928944 fi
929945 AC_SUBST([install_sh])])
930946
931 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
947 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
932948 #
933949 # This file is free software; the Free Software Foundation
934950 # gives unlimited permission to copy and/or distribute it,
949965
950966 # Check to see how 'make' treats includes. -*- Autoconf -*-
951967
952 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
968 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
953969 #
954970 # This file is free software; the Free Software Foundation
955971 # gives unlimited permission to copy and/or distribute it,
9921008
9931009 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9941010
995 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
1011 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
9961012 #
9971013 # This file is free software; the Free Software Foundation
9981014 # gives unlimited permission to copy and/or distribute it,
10131029 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10141030 AC_REQUIRE_AUX_FILE([missing])dnl
10151031 if test x"${MISSING+set}" != xset; then
1016 case $am_aux_dir in
1017 *\ * | *\ *)
1018 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1019 *)
1020 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1021 esac
1032 MISSING="\${SHELL} '$am_aux_dir/missing'"
10221033 fi
10231034 # Use eval to expand $SHELL
10241035 if eval "$MISSING --is-lightweight"; then
10311042
10321043 # Helper functions for option handling. -*- Autoconf -*-
10331044
1034 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1045 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
10351046 #
10361047 # This file is free software; the Free Software Foundation
10371048 # gives unlimited permission to copy and/or distribute it,
10601071 AC_DEFUN([_AM_IF_OPTION],
10611072 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10621073
1063 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
1074 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
10641075 #
10651076 # This file is free software; the Free Software Foundation
10661077 # gives unlimited permission to copy and/or distribute it,
11071118 # For backward compatibility.
11081119 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
11091120
1110 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1121 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
11111122 #
11121123 # This file is free software; the Free Software Foundation
11131124 # gives unlimited permission to copy and/or distribute it,
11261137
11271138 # Check to make sure that the build environment is sane. -*- Autoconf -*-
11281139
1129 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
1140 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
11301141 #
11311142 # This file is free software; the Free Software Foundation
11321143 # gives unlimited permission to copy and/or distribute it,
12071218 rm -f conftest.file
12081219 ])
12091220
1210 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
1221 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
12111222 #
12121223 # This file is free software; the Free Software Foundation
12131224 # gives unlimited permission to copy and/or distribute it,
12671278 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
12681279 ])
12691280
1270 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1281 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
12711282 #
12721283 # This file is free software; the Free Software Foundation
12731284 # gives unlimited permission to copy and/or distribute it,
12951306 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12961307 AC_SUBST([INSTALL_STRIP_PROGRAM])])
12971308
1298 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
1309 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
12991310 #
13001311 # This file is free software; the Free Software Foundation
13011312 # gives unlimited permission to copy and/or distribute it,
13141325
13151326 # Check how to create a tarball. -*- Autoconf -*-
13161327
1317 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
1328 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
13181329 #
13191330 # This file is free software; the Free Software Foundation
13201331 # gives unlimited permission to copy and/or distribute it,
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
172172 unique=`for i in $$list; do \
173173 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
174174 done | $(am__uniquify_input)`
175 ETAGS = etags
176 CTAGS = ctags
177 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
175 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp \
176 README.md
178177 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
179178 ACLOCAL = @ACLOCAL@
180179 AMTAR = @AMTAR@
189188 CC = @CC@
190189 CCDEPMODE = @CCDEPMODE@
191190 CFLAGS = @CFLAGS@
192 CPP = @CPP@
193191 CPPFLAGS = @CPPFLAGS@
192 CSCOPE = @CSCOPE@
193 CTAGS = @CTAGS@
194194 CYGPATH_W = @CYGPATH_W@
195195 DEFS = @DEFS@
196196 DEPDIR = @DEPDIR@
201201 ECHO_N = @ECHO_N@
202202 ECHO_T = @ECHO_T@
203203 EGREP = @EGREP@
204 ETAGS = @ETAGS@
204205 EXEEXT = @EXEEXT@
205206 FGREP = @FGREP@
206207 FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
302303 prefix = @prefix@
303304 program_transform_name = @program_transform_name@
304305 psdir = @psdir@
306 runstatedir = @runstatedir@
305307 sbindir = @sbindir@
306308 sharedstatedir = @sharedstatedir@
307309 srcdir = @srcdir@
483485
484486 distclean-tags:
485487 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
486
487488 distdir: $(BUILT_SOURCES)
488489 $(MAKE) $(AM_MAKEFLAGS) distdir-am
489490
0 Regression Testing
1 ==================
2
3 To build a test utility configure libass with the `--enable-compare` flag.
4 The utility works with `png` image files so there is external dependency of libpng.
5
6 Test program command line:
7 `compare ([-i] <input-dir>)+ [-o <output-dir>] [-s <scale:1-8>] [-p <pass-level:0-3>]`
8
9 * `<input-dir>` is a test input directory, can be several of them;
10 * `<output-dir>` if present sets directory to store the rendering results;
11 * `<scale>` sets an oversampling factor (positive integer up to 8, default 1);
12 * `<pass-level>` corresponds to the level of image differences required to pass test:
13 - 0: only `SAME` level accepted, bitwise comparison mode;
14 - 1: `GOOD` level or less required;
15 - 2: `BAD` level or less required, default mode;
16 - 3: `FAIL` level or less required, i. e. any difference accepted, error checking mode.
17
18 An input directory consists of font files (`*.ttf`, `*.otf` and `*.pfb`), subtitle files (`*.ass`), and image files (`*.png`).
19 All the fonts required for rendering should be present in the input directories as
20 libass is configured to not use anything external outside of it (`ASS_FONTPROVIDER_NONE`).
21 After loading all the fonts in the directories, the test program scans for subtitle files (`<sub_name>.ass`)
22 and their corresponding image files in the form of `<sub_name>-NNNN.png`,
23 where `NNNN` is an arbitrary number of decimal digits.
24 The subtitle file then would be rendered at the time of `NNNN` milliseconds and compared with the loaded image file.
25 For example, an input directory can have the following structure:
26
27 ```
28 test/
29 font1.ttf
30 font2.otf
31 sub1.ass
32 sub1-0500.png
33 sub1-1500.png
34 sub1-2500.png
35 sub2.ass
36 sub2-153000.png
37 ```
38
39 More precisely, the test program (`compare`) would scan all input directories and do the following:
40 1) load all the fonts found (`*.ttf`, `*.otf`, `*.pfb`);
41 2) search for subtitle files (`*.ass`);
42 3) for every file found (`<sub_name>.ass`) scan for the files with names of `<sub_name>-NNNN.png`;
43 4) interpret `NNNN` as a time in milliseconds and render the subtitle file at that time with a transparent background;
44 5) fuzzy compare the rendering result with the corresponding png file;
45 6) save the rendering result in the output directory if requested.
46
47 Target images should be transparent RGBA png files with 8 or 16 bits per channel.
48 A subtitle rendering resolution is determined by the extents of the target image files multiplied by an optional scale factor (`-s` switch).
49 In the case of nontrivial scale factor, the result would be downsampled using 16-bit precision before comparison.
50 Downsampling is done assuming a linear color space which is physically incorrect but commonly used in computer rendering.
51
52 It's possible to save rendering results by using `-o` switch.
53 Saved files would have the same names as the target image files.
54 That functionality can be used for an initial generation of target images
55 by supplying arbitrary source images with correct names and extents.
56
57 Test program output can look like the following:
58 ```
59 Loading font 'font1.ttf'.
60 Loading font 'font2.otf'.
61 Processing 'sub1.ass':
62 Time 0:00:00.500 - 2.464 BAD
63 Time 0:00:01.500 - 1.412 OK
64 Time 0:00:02.500 - 4.919 FAIL
65 Processing 'sub2.ass':
66 Time 0:02:33.000 - 0.728 OK
67 Only 3 of 4 images have passed test
68 ```
69 For each target image file the program reports a maximal ratio of the per pixel comparison difference to the baseline error scale.
70 The baseline error scale tries to take account of neighboring pixels to estimate visibility of a difference in that specific pixel location.
71 Zero difference is marked as `SAME` (level 0), nonzero value in the range of [0–2.0] is marked as `GOOD` (level 1),
72 in the range of [2.0–4.0] as `BAD` (level 2) and more than 4.0 as `FAIL` (level 3).
73 Any problem during processing of a specific image is treated as a level 4 difference.
74 If all images have level of difference less or equal to pass level (`-p` switch, default 2) then the test is considered as passed
75 and program returns 0. Otherwise program returns maximal level of difference throughout all images (4 in case of error).
76
77 Note that almost any type of a rendering error can be greatly exaggerated by the specially tailored test cases.
78 Therefore test cases should be chosen to represent generic real world scenarios only.
2121 #include <sys/stat.h>
2222 #include <dirent.h>
2323 #include <string.h>
24
25 #if defined(_WIN32) && !defined(__CYGWIN__)
26 #include <direct.h>
27 #define mkdir(path, mode) _mkdir(path)
28 #endif
2429
2530
2631 #define FFMAX(a,b) ((a) > (b) ? (a) : (b))
279284 const char *dir, const char *file)
280285 {
281286 char path[4096];
282 snprintf(path, sizeof(path), "%s/%s.ass", dir, file);
287 snprintf(path, sizeof(path), "%s/%s", dir, file);
283288 ASS_Track *track = ass_read_file(lib, path, NULL);
284289 if (!track) {
285 printf("Cannot load subtitle file '%s.ass'!\n", file);
290 printf("Cannot load subtitle file '%s'!\n", file);
286291 return NULL;
287292 }
288 printf("Processing '%s.ass':\n", file);
293 printf("Processing '%s':\n", file);
289294 return track;
290295 }
291296
295300 return false;
296301 }
297302
298 static bool process_image(ASS_Renderer *renderer, ASS_Track *track,
299 const char *input, const char *output,
300 const char *file, int64_t time, int scale)
303 typedef enum {
304 R_SAME, R_GOOD, R_BAD, R_FAIL, R_ERROR
305 } Result;
306
307 static const char *result_text[R_ERROR] = {
308 "SAME", "GOOD", "BAD", "FAIL"
309 };
310
311 Result classify_result(double error)
312 {
313 if (error == 0)
314 return R_SAME;
315 else if (error < 2)
316 return R_GOOD;
317 else if (error < 4)
318 return R_BAD;
319 else
320 return R_FAIL;
321 }
322
323 static Result process_image(ASS_Renderer *renderer, ASS_Track *track,
324 const char *input, const char *output,
325 const char *file, int64_t time, int scale)
301326 {
302327 uint64_t tm = time;
303328 unsigned msec = tm % 1000; tm /= 1000;
311336 Image16 target;
312337 if (!read_png(path, &target)) {
313338 printf("PNG reading failed!\n");
314 return false;
339 return R_ERROR;
315340 }
316341
317342 uint16_t *grad = malloc(2 * target.width * target.height);
318343 if (!grad) {
319344 free(target.buffer);
320 return out_of_memory();
345 out_of_memory();
346 return R_ERROR;
321347 }
322348 calc_grad(&target, grad);
323349
334360 int res = compare(&target, grad, img, out_file, &max_err, scale);
335361 free(target.buffer);
336362 free(grad);
337 if (!res)
338 return out_of_memory();
339 bool flag = max_err < 4;
340 printf("%.3f %s\n", max_err, flag ? (max_err < 2 ? "OK" : "BAD") : "FAIL");
363 if (!res) {
364 out_of_memory();
365 return R_ERROR;
366 }
367 Result flag = classify_result(max_err);
368 printf("%.3f %s\n", max_err, result_text[flag]);
341369 if (res < 0)
342370 printf("Cannot write PNG to file '%s'!\n", path);
343371 return flag;
346374
347375 typedef struct {
348376 char *name;
377 size_t prefix;
378 const char *dir;
349379 int64_t time;
350380 } Item;
351381
354384 Item *items;
355385 } ItemList;
356386
357 static bool init_items(ItemList *list)
358 {
359 int n = 256;
360 list->n_items = list->max_items = 0;
361 list->items = malloc(n * sizeof(Item));
362 if (!list->items)
363 return out_of_memory();
364 list->max_items = n;
365 return true;
366 }
367
368387 static bool add_item(ItemList *list)
369388 {
370389 if (list->n_items < list->max_items)
371390 return true;
372391
373 int n = 2 * list->max_items;
392 size_t n = list->max_items ? 2 * list->max_items : 256;
374393 Item *next = realloc(list->items, n * sizeof(Item));
375394 if (!next)
376395 return out_of_memory();
389408 static int item_compare(const void *ptr1, const void *ptr2)
390409 {
391410 const Item *e1 = ptr1, *e2 = ptr2;
392 int cmp = strcmp(e1->name, e2->name);
411
412 int cmp_len = 0;
413 size_t len = e1->prefix;
414 if (len > e2->prefix) {
415 cmp_len = +1;
416 len = e2->prefix;
417 } else if (len < e2->prefix) {
418 cmp_len = -1;
419 }
420 int cmp = memcmp(e1->name, e2->name, len);
393421 if (cmp)
394422 return cmp;
423 if (cmp_len)
424 return cmp_len;
395425 if (e1->time > e2->time)
396426 return +1;
397427 if (e1->time < e2->time)
400430 }
401431
402432
403 static bool add_sub_item(ItemList *list, const char *file, int len)
433 static bool add_sub_item(ItemList *list, const char *dir, const char *file, size_t len)
404434 {
405435 if (!add_item(list))
406436 return false;
407437
408438 Item *item = &list->items[list->n_items];
409 item->name = strndup(file, len);
439 item->name = strdup(file);
410440 if (!item->name)
411441 return out_of_memory();
442 item->prefix = len;
443 item->dir = dir;
412444 item->time = -1;
413445 list->n_items++;
414446 return true;
415447 }
416448
417 static bool add_img_item(ItemList *list, const char *file, int len)
449 static bool add_img_item(ItemList *list, const char *dir, const char *file, size_t len)
418450 {
419451 // Parse image name:
420452 // <subtitle_name>-<time_in_msec>.png
421453
422 int pos = len, first = len;
454 size_t pos = len, first = len;
423455 while (true) {
424456 if (!pos--)
425457 return true;
440472 item->name = strdup(file);
441473 if (!item->name)
442474 return out_of_memory();
443 item->name[pos] = '\0';
475 item->prefix = pos;
476 item->dir = dir;
444477 item->time = 0;
445 for (int i = first; i < len; i++)
478 for (size_t i = first; i < len; i++)
446479 item->time = 10 * item->time + (file[i] - '0');
447480 list->n_items++;
448481 return true;
449482 }
450483
451
452 static int print_usage(const char *program)
453 {
484 static bool process_input(ItemList *list, const char *path, ASS_Library *lib)
485 {
486 DIR *dir = opendir(path);
487 if (!dir) {
488 printf("Cannot open input directory '%s'!\n", path);
489 return false;
490 }
491 struct dirent *file;
492 while ((file = readdir(dir))) {
493 const char *name = file->d_name;
494 if (name[0] == '.')
495 continue;
496 const char *ext = strrchr(name + 1, '.');
497 if (!ext)
498 continue;
499
500 char ext_lc[5];
501 size_t pos = 0;
502 while (pos < sizeof(ext_lc) - 1) {
503 char c = ext[pos + 1];
504 if (!c)
505 break;
506 if (c >= 'A' && c <= 'Z')
507 c += 'a' - 'A';
508 ext_lc[pos] = c;
509 pos++;
510 }
511 ext_lc[pos] = '\0';
512
513 if (!strcmp(ext_lc, "png")) {
514 if (add_img_item(list, path, name, ext - name))
515 continue;
516 } else if (!strcmp(ext_lc, "ass")) {
517 if (add_sub_item(list, path, name, ext - name))
518 continue;
519 } else if (!strcmp(ext_lc, "ttf") ||
520 !strcmp(ext_lc, "otf") ||
521 !strcmp(ext_lc, "pfb")) {
522 if (load_font(lib, path, name))
523 continue;
524 printf("Cannot load font '%s'!\n", name);
525 } else {
526 continue;
527 }
528 closedir(dir);
529 return false;
530 }
531 closedir(dir);
532 return true;
533 }
534
535
536 enum {
537 OUTPUT, SCALE, LEVEL, INPUT
538 };
539
540 static int *parse_cmdline(int argc, char *argv[])
541 {
542 int *pos = calloc(INPUT + argc, sizeof(int));
543 if (!pos) {
544 out_of_memory();
545 return NULL;
546 }
547 int input = INPUT;
548 for (int i = 1; i < argc; i++) {
549 if (argv[i][0] != '-') {
550 pos[input++] = i;
551 continue;
552 }
553 int index;
554 switch (argv[i][1]) {
555 case 'i': index = input++; break;
556 case 'o': index = OUTPUT; break;
557 case 's': index = SCALE; break;
558 case 'p': index = LEVEL; break;
559 default: goto fail;
560 }
561 if (argv[i][2] || ++i >= argc || pos[index])
562 goto fail;
563 pos[index] = i;
564 }
565 if (pos[INPUT])
566 return pos;
567
568 fail:
569 free(pos);
454570 const char *fmt =
455 "Usage: %s [-i] <input-dir> [-o <output-dir>] [-s <scale:1-8>]\n";
456 printf(fmt, program);
457 return 1;
571 "Usage: %s ([-i] <input-dir>)+ [-o <output-dir>] [-s <scale:1-8>] [-p <pass-level:0-3>]\n";
572 printf(fmt, argv[0]);
573 return NULL;
458574 }
459575
460576 void msg_callback(int level, const char *fmt, va_list va, void *data)
461577 {
462578 if (level > 3)
463579 return;
464 printf("libass: ");
465 vprintf(fmt, va);
466 printf("\n");
580 fprintf(stderr, "libass: ");
581 vfprintf(stderr, fmt, va);
582 fprintf(stderr, "\n");
467583 }
468584
469585 int main(int argc, char *argv[])
470586 {
471 enum {
472 INPUT, OUTPUT, SCALE
473 };
474 int pos[3] = {0};
475 for (int i = 1; i < argc; i++) {
476 if (argv[i][0] != '-') {
477 if (pos[INPUT])
478 return print_usage(argv[0]);
479 pos[INPUT] = i;
480 continue;
481 }
482 int index;
483 switch (argv[i][1]) {
484 case 'i': index = INPUT; break;
485 case 'o': index = OUTPUT; break;
486 case 's': index = SCALE; break;
487 default: return print_usage(argv[0]);
488 }
489 if (argv[i][2] || ++i >= argc || pos[index])
490 return print_usage(argv[0]);
491 pos[index] = i;
492 }
493 if (!pos[INPUT])
494 return print_usage(argv[0]);
587 int *pos = parse_cmdline(argc, argv);
588 if (!pos)
589 return R_ERROR;
590
591 ASS_Library *lib = NULL;
592 ItemList list = {0};
593 int result = R_ERROR;
495594
496595 int scale = 1;
497596 if (pos[SCALE]) {
498597 const char *arg = argv[pos[SCALE]];
499598 if (arg[0] < '1' || arg[0] > '8' || arg[1]) {
500599 printf("Invalid scale value, should be 1-8!\n");
501 return 1;
600 goto end;
502601 }
503602 scale = arg[0] - '0';
504603 }
505604
506 const char *input = argv[pos[INPUT]];
507 DIR *dir = opendir(input);
508 if (!dir) {
509 printf("Cannot open input directory '%s'!\n", input);
510 return 1;
605 int level = R_BAD;
606 if (pos[LEVEL]) {
607 const char *arg = argv[pos[LEVEL]];
608 if (arg[0] < '0' || arg[0] > '3' || arg[1]) {
609 printf("Invalid pass level value, should be 0-3!\n");
610 goto end;
611 }
612 level = arg[0] - '0';
511613 }
512614
513615 const char *output = NULL;
517619 if (stat(output, &st)) {
518620 if (mkdir(output, 0755)) {
519621 printf("Cannot create output directory '%s'!\n", output);
520 closedir(dir);
521 return 1;
622 goto end;
522623 }
523624 } else if (!(st.st_mode & S_IFDIR)) {
524625 printf("Invalid output directory '%s'!\n", output);
525 closedir(dir);
526 return 1;
527 }
528 }
529
530 ASS_Library *lib = ass_library_init();
626 goto end;
627 }
628 }
629
630 lib = ass_library_init();
531631 if (!lib) {
532632 printf("ass_library_init failed!\n");
533 closedir(dir);
534 return 1;
633 goto end;
535634 }
536635 ass_set_message_cb(lib, msg_callback, NULL);
537636 ass_set_extract_fonts(lib, true);
538637
539 ItemList list;
540 if (!init_items(&list)) {
541 ass_library_done(lib);
542 closedir(dir);
543 return 1;
544 }
545
546 while (true) {
547 struct dirent *file = readdir(dir);
548 if (!file)
549 break;
550 const char *name = file->d_name;
551 if (name[0] == '.')
552 continue;
553 const char *ext = strrchr(name + 1, '.');
554 if (!ext)
555 continue;
556
557 if (!strcmp(ext, ".png")) {
558 if (add_img_item(&list, name, ext - name))
559 continue;
560 } else if (!strcmp(ext, ".ass")) {
561 if (add_sub_item(&list, name, ext - name))
562 continue;
563 } else if (!strcmp(ext, ".ttf") || !strcmp(ext, ".otf") || !strcmp(ext, ".pfb")) {
564 if (load_font(lib, input, name))
565 continue;
566 printf("Cannot load font '%s'!\n", name);
567 } else {
568 continue;
569 }
570 delete_items(&list);
571 ass_library_done(lib);
572 closedir(dir);
573 return 1;
574 }
575 closedir(dir);
638 for (int *input = pos + INPUT; *input; input++) {
639 if (!process_input(&list, argv[*input], lib))
640 goto end;
641 }
576642
577643 ASS_Renderer *renderer = ass_renderer_init(lib);
578644 if (!renderer) {
579645 printf("ass_renderer_init failed!\n");
580 delete_items(&list);
581 ass_library_done(lib);
582 return 1;
646 goto end;
583647 }
584648 ass_set_fonts(renderer, NULL, NULL, ASS_FONTPROVIDER_NONE, NULL, 0);
585649
586 int prefix;
650 result = 0;
651 size_t prefix = 0;
587652 const char *prev = "";
588653 ASS_Track *track = NULL;
589654 unsigned total = 0, good = 0;
590655 qsort(list.items, list.n_items, sizeof(Item), item_compare);
591656 for (size_t i = 0; i < list.n_items; i++) {
592 if (strcmp(prev, list.items[i].name)) {
593 if (track)
657 char *name = list.items[i].name;
658 size_t len = list.items[i].prefix;
659 if (prefix != len || memcmp(prev, name, len)) {
660 if (track) {
594661 ass_free_track(track);
595 prev = list.items[i].name;
596 prefix = strlen(prev);
597 if (list.items[i].time < 0)
598 track = load_track(lib, input, prev);
599 else {
600 printf("Missing subtitle file '%s.ass'!\n", prev);
601662 track = NULL;
663 }
664 prev = name;
665 prefix = len;
666 if (list.items[i].time >= 0) {
667 printf("Missing subtitle file '%.*s.ass'!\n", (int) len, name);
602668 total++;
603 }
669 } else if (i + 1 < list.n_items && list.items[i + 1].time >= 0)
670 track = load_track(lib, list.items[i].dir, prev);
604671 continue;
605672 }
606
673 if (list.items[i].time < 0) {
674 printf("Multiple subtitle files '%.*s.ass'!\n", (int) len, name);
675 continue;
676 }
607677 total++;
608678 if (!track)
609679 continue;
610 char *name = list.items[i].name;
611 name[prefix] = '-'; // restore initial filename
612 if (process_image(renderer, track, input, output,
613 name, list.items[i].time, scale))
680 Result res = process_image(renderer, track, list.items[i].dir, output,
681 name, list.items[i].time, scale);
682 result = FFMAX(result, res);
683 if (res <= level)
614684 good++;
615685 }
616686 if (track)
617687 ass_free_track(track);
688 ass_renderer_done(renderer);
689
690 if (!total) {
691 printf("No images found!\n");
692 result = R_ERROR;
693 } else if (good < total) {
694 printf("Only %u of %u images have passed test (%s or better)\n",
695 good, total, result_text[level]);
696 } else {
697 printf("All %u images have passed test (%s or better)\n",
698 total, result_text[level]);
699 result = 0;
700 }
701
702 end:
618703 delete_items(&list);
619 ass_renderer_done(renderer);
620 ass_library_done(lib);
621
622 if (good < total) {
623 printf("Only %u of %u images have passed test\n", good, total);
624 return 1;
625 }
626 printf("All %u images have passed test\n", total);
627 return 0;
628 }
704 if (lib)
705 ass_library_done(lib);
706 free(pos);
707 return result;
708 }
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
5252 MINGW*)
5353 file_conv=mingw
5454 ;;
55 CYGWIN*)
55 CYGWIN* | MSYS*)
5656 file_conv=cygwin
5757 ;;
5858 *)
6666 mingw/*)
6767 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6868 ;;
69 cygwin/*)
69 cygwin/* | msys/*)
7070 file=`cygpath -m "$file" || echo "$file"`
7171 ;;
7272 wine/*)
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-03-08'
2 # Copyright 1992-2021 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2021-06-03'
57
68 # This file is free software; you can redistribute it and/or modify it
79 # under the terms of the GNU General Public License as published by
2628 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2729 #
2830 # You can get the latest version of this script from:
29 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
31 # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
3032 #
3133 # Please send patches to <config-patches@gnu.org>.
34
35
36 # The "shellcheck disable" line above the timestamp inhibits complaints
37 # about features and limitations of the classic Bourne shell that were
38 # superseded or lifted in POSIX. However, this script identifies a wide
39 # variety of pre-POSIX systems that do not have POSIX shells at all, and
40 # even some reasonably current systems (Solaris 10 as case-in-point) still
41 # have a pre-POSIX /bin/sh.
3242
3343
3444 me=`echo "$0" | sed -e 's,.*/,,'`
4959 GNU config.guess ($timestamp)
5060
5161 Originally written by Per Bothner.
52 Copyright 1992-2018 Free Software Foundation, Inc.
62 Copyright 1992-2021 Free Software Foundation, Inc.
5363
5464 This is free software; see the source for copying conditions. There is NO
5565 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8393 exit 1
8494 fi
8595
86 trap 'exit 1' 1 2 15
96 # Just in case it came from the environment.
97 GUESS=
8798
8899 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
89100 # compiler to aid in system detection is discouraged as it requires
95106
96107 # Portable tmp directory creation inspired by the Autoconf team.
97108
98 set_cc_for_build='
99 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
100 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
101 : ${TMPDIR=/tmp} ;
102 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
103 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
104 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
105 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
106 dummy=$tmp/dummy ;
107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > "$dummy.c" ;
110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112 CC_FOR_BUILD="$c"; break ;
113 fi ;
114 done ;
115 if test x"$CC_FOR_BUILD" = x ; then
116 CC_FOR_BUILD=no_compiler_found ;
117 fi
118 ;;
119 ,,*) CC_FOR_BUILD=$CC ;;
120 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
121 esac ; set_cc_for_build= ;'
109 tmp=
110 # shellcheck disable=SC2172
111 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
112
113 set_cc_for_build() {
114 # prevent multiple calls if $tmp is already set
115 test "$tmp" && return 0
116 : "${TMPDIR=/tmp}"
117 # shellcheck disable=SC2039,SC3028
118 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
119 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
120 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
121 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
122 dummy=$tmp/dummy
123 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
124 ,,) echo "int x;" > "$dummy.c"
125 for driver in cc gcc c89 c99 ; do
126 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
127 CC_FOR_BUILD=$driver
128 break
129 fi
130 done
131 if test x"$CC_FOR_BUILD" = x ; then
132 CC_FOR_BUILD=no_compiler_found
133 fi
134 ;;
135 ,,*) CC_FOR_BUILD=$CC ;;
136 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
137 esac
138 }
122139
123140 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
124141 # (ghazi@noc.rutgers.edu 1994-08-24)
125 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
142 if test -f /.attbin/uname ; then
126143 PATH=$PATH:/.attbin ; export PATH
127144 fi
128145
129146 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
130147 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
148 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132149 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133150
134 case "$UNAME_SYSTEM" in
151 case $UNAME_SYSTEM in
135152 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval "$set_cc_for_build"
153 LIBC=unknown
154
155 set_cc_for_build
141156 cat <<-EOF > "$dummy.c"
142157 #include <features.h>
143158 #if defined(__UCLIBC__)
144159 LIBC=uclibc
145160 #elif defined(__dietlibc__)
146161 LIBC=dietlibc
162 #elif defined(__GLIBC__)
163 LIBC=gnu
147164 #else
148 LIBC=gnu
165 #include <stdarg.h>
166 /* First heuristic to detect musl libc. */
167 #ifdef __DEFINED_va_list
168 LIBC=musl
169 #endif
149170 #endif
150171 EOF
151 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
152
153 # If ldd exists, use it to detect musl libc.
154 if command -v ldd >/dev/null && \
155 ldd --version 2>&1 | grep -q ^musl
156 then
157 LIBC=musl
172 cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
173 eval "$cc_set_libc"
174
175 # Second heuristic to detect musl libc.
176 if [ "$LIBC" = unknown ] &&
177 command -v ldd >/dev/null &&
178 ldd --version 2>&1 | grep -q ^musl; then
179 LIBC=musl
180 fi
181
182 # If the system lacks a compiler, then just pick glibc.
183 # We could probably try harder.
184 if [ "$LIBC" = unknown ]; then
185 LIBC=gnu
158186 fi
159187 ;;
160188 esac
161189
162190 # Note: order is significant - the case branches are not exclusive.
163191
164 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
192 case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
165193 *:NetBSD:*:*)
166194 # NetBSD (nbsd) targets should (where applicable) match one or
167195 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
173201 #
174202 # Note: NetBSD doesn't particularly care about the vendor
175203 # portion of the name. We always set it to "unknown".
176 sysctl="sysctl -n hw.machine_arch"
177204 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
178 "/sbin/$sysctl" 2>/dev/null || \
179 "/usr/sbin/$sysctl" 2>/dev/null || \
205 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
206 /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
180207 echo unknown)`
181 case "$UNAME_MACHINE_ARCH" in
208 case $UNAME_MACHINE_ARCH in
209 aarch64eb) machine=aarch64_be-unknown ;;
182210 armeb) machine=armeb-unknown ;;
183211 arm*) machine=arm-unknown ;;
184212 sh3el) machine=shl-unknown ;;
187215 earmv*)
188216 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
189217 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
190 machine="${arch}${endian}"-unknown
218 machine=${arch}${endian}-unknown
191219 ;;
192 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
220 *) machine=$UNAME_MACHINE_ARCH-unknown ;;
193221 esac
194222 # The Operating System including object format, if it has switched
195223 # to ELF recently (or will in the future) and ABI.
196 case "$UNAME_MACHINE_ARCH" in
224 case $UNAME_MACHINE_ARCH in
197225 earm*)
198226 os=netbsdelf
199227 ;;
200228 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
201 eval "$set_cc_for_build"
229 set_cc_for_build
202230 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
203231 | grep -q __ELF__
204232 then
214242 ;;
215243 esac
216244 # Determine ABI tags.
217 case "$UNAME_MACHINE_ARCH" in
245 case $UNAME_MACHINE_ARCH in
218246 earm*)
219247 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
220248 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
225253 # thus, need a distinct triplet. However, they do not need
226254 # kernel version information, so it can be replaced with a
227255 # suitable tag, in the style of linux-gnu.
228 case "$UNAME_VERSION" in
256 case $UNAME_VERSION in
229257 Debian*)
230258 release='-gnu'
231259 ;;
236264 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
237265 # contains redundant information, the shorter form:
238266 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
239 echo "$machine-${os}${release}${abi}"
240 exit ;;
267 GUESS=$machine-${os}${release}${abi-}
268 ;;
241269 *:Bitrig:*:*)
242270 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
243 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
244 exit ;;
271 GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE
272 ;;
245273 *:OpenBSD:*:*)
246274 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
247 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
248 exit ;;
275 GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE
276 ;;
277 *:SecBSD:*:*)
278 UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'`
279 GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE
280 ;;
249281 *:LibertyBSD:*:*)
250282 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
251 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
252 exit ;;
283 GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE
284 ;;
253285 *:MidnightBSD:*:*)
254 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
255 exit ;;
286 GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE
287 ;;
256288 *:ekkoBSD:*:*)
257 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
258 exit ;;
289 GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE
290 ;;
259291 *:SolidBSD:*:*)
260 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
261 exit ;;
292 GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE
293 ;;
294 *:OS108:*:*)
295 GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE
296 ;;
262297 macppc:MirBSD:*:*)
263 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
264 exit ;;
298 GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE
299 ;;
265300 *:MirBSD:*:*)
266 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
267 exit ;;
301 GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE
302 ;;
268303 *:Sortix:*:*)
269 echo "$UNAME_MACHINE"-unknown-sortix
270 exit ;;
304 GUESS=$UNAME_MACHINE-unknown-sortix
305 ;;
306 *:Twizzler:*:*)
307 GUESS=$UNAME_MACHINE-unknown-twizzler
308 ;;
271309 *:Redox:*:*)
272 echo "$UNAME_MACHINE"-unknown-redox
273 exit ;;
310 GUESS=$UNAME_MACHINE-unknown-redox
311 ;;
274312 mips:OSF1:*.*)
275 echo mips-dec-osf1
276 exit ;;
313 GUESS=mips-dec-osf1
314 ;;
277315 alpha:OSF1:*:*)
316 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
317 trap '' 0
278318 case $UNAME_RELEASE in
279319 *4.0)
280320 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
288328 # covers most systems running today. This code pipes the CPU
289329 # types through head -n 1, so we only detect the type of CPU 0.
290330 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
291 case "$ALPHA_CPU_TYPE" in
331 case $ALPHA_CPU_TYPE in
292332 "EV4 (21064)")
293333 UNAME_MACHINE=alpha ;;
294334 "EV4.5 (21064)")
325365 # A Tn.n version is a released field test version.
326366 # A Xn.n version is an unreleased experimental baselevel.
327367 # 1.2 uses "1.2" for uname -r.
328 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
329 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
330 exitcode=$?
331 trap '' 0
332 exit $exitcode ;;
368 OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
369 GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
370 ;;
333371 Amiga*:UNIX_System_V:4.0:*)
334 echo m68k-unknown-sysv4
335 exit ;;
372 GUESS=m68k-unknown-sysv4
373 ;;
336374 *:[Aa]miga[Oo][Ss]:*:*)
337 echo "$UNAME_MACHINE"-unknown-amigaos
338 exit ;;
375 GUESS=$UNAME_MACHINE-unknown-amigaos
376 ;;
339377 *:[Mm]orph[Oo][Ss]:*:*)
340 echo "$UNAME_MACHINE"-unknown-morphos
341 exit ;;
378 GUESS=$UNAME_MACHINE-unknown-morphos
379 ;;
342380 *:OS/390:*:*)
343 echo i370-ibm-openedition
344 exit ;;
381 GUESS=i370-ibm-openedition
382 ;;
345383 *:z/VM:*:*)
346 echo s390-ibm-zvmoe
347 exit ;;
384 GUESS=s390-ibm-zvmoe
385 ;;
348386 *:OS400:*:*)
349 echo powerpc-ibm-os400
350 exit ;;
387 GUESS=powerpc-ibm-os400
388 ;;
351389 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
352 echo arm-acorn-riscix"$UNAME_RELEASE"
353 exit ;;
390 GUESS=arm-acorn-riscix$UNAME_RELEASE
391 ;;
354392 arm*:riscos:*:*|arm*:RISCOS:*:*)
355 echo arm-unknown-riscos
356 exit ;;
393 GUESS=arm-unknown-riscos
394 ;;
357395 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
358 echo hppa1.1-hitachi-hiuxmpp
359 exit ;;
396 GUESS=hppa1.1-hitachi-hiuxmpp
397 ;;
360398 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
361399 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
362 if test "`(/bin/universe) 2>/dev/null`" = att ; then
363 echo pyramid-pyramid-sysv3
364 else
365 echo pyramid-pyramid-bsd
366 fi
367 exit ;;
400 case `(/bin/universe) 2>/dev/null` in
401 att) GUESS=pyramid-pyramid-sysv3 ;;
402 *) GUESS=pyramid-pyramid-bsd ;;
403 esac
404 ;;
368405 NILE*:*:*:dcosx)
369 echo pyramid-pyramid-svr4
370 exit ;;
406 GUESS=pyramid-pyramid-svr4
407 ;;
371408 DRS?6000:unix:4.0:6*)
372 echo sparc-icl-nx6
373 exit ;;
409 GUESS=sparc-icl-nx6
410 ;;
374411 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
375412 case `/usr/bin/uname -p` in
376 sparc) echo sparc-icl-nx7; exit ;;
377 esac ;;
413 sparc) GUESS=sparc-icl-nx7 ;;
414 esac
415 ;;
378416 s390x:SunOS:*:*)
379 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
380 exit ;;
417 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
418 GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
419 ;;
381420 sun4H:SunOS:5.*:*)
382 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
383 exit ;;
421 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
422 GUESS=sparc-hal-solaris2$SUN_REL
423 ;;
384424 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
385 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
386 exit ;;
425 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
426 GUESS=sparc-sun-solaris2$SUN_REL
427 ;;
387428 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
388 echo i386-pc-auroraux"$UNAME_RELEASE"
389 exit ;;
429 GUESS=i386-pc-auroraux$UNAME_RELEASE
430 ;;
390431 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
391 eval "$set_cc_for_build"
432 set_cc_for_build
392433 SUN_ARCH=i386
393434 # If there is a compiler, see if it is configured for 64-bit objects.
394435 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
395436 # This test works for both compilers.
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
437 if test "$CC_FOR_BUILD" != no_compiler_found; then
397438 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
398439 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
399440 grep IS_64BIT_ARCH >/dev/null
401442 SUN_ARCH=x86_64
402443 fi
403444 fi
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
405 exit ;;
445 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
446 GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
447 ;;
406448 sun4*:SunOS:6*:*)
407449 # According to config.sub, this is the proper way to canonicalize
408450 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
409451 # it's likely to be more like Solaris than SunOS4.
410 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
411 exit ;;
452 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
453 GUESS=sparc-sun-solaris3$SUN_REL
454 ;;
412455 sun4*:SunOS:*:*)
413 case "`/usr/bin/arch -k`" in
456 case `/usr/bin/arch -k` in
414457 Series*|S4*)
415458 UNAME_RELEASE=`uname -v`
416459 ;;
417460 esac
418461 # Japanese Language versions have a version number like `4.1.3-JL'.
419 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
420 exit ;;
462 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
463 GUESS=sparc-sun-sunos$SUN_REL
464 ;;
421465 sun3*:SunOS:*:*)
422 echo m68k-sun-sunos"$UNAME_RELEASE"
423 exit ;;
466 GUESS=m68k-sun-sunos$UNAME_RELEASE
467 ;;
424468 sun*:*:4.2BSD:*)
425469 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
426470 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
427 case "`/bin/arch`" in
471 case `/bin/arch` in
428472 sun3)
429 echo m68k-sun-sunos"$UNAME_RELEASE"
473 GUESS=m68k-sun-sunos$UNAME_RELEASE
430474 ;;
431475 sun4)
432 echo sparc-sun-sunos"$UNAME_RELEASE"
476 GUESS=sparc-sun-sunos$UNAME_RELEASE
433477 ;;
434478 esac
435 exit ;;
479 ;;
436480 aushp:SunOS:*:*)
437 echo sparc-auspex-sunos"$UNAME_RELEASE"
438 exit ;;
481 GUESS=sparc-auspex-sunos$UNAME_RELEASE
482 ;;
439483 # The situation for MiNT is a little confusing. The machine name
440484 # can be virtually everything (everything which is not
441485 # "atarist" or "atariste" at least should have a processor
445489 # MiNT. But MiNT is downward compatible to TOS, so this should
446490 # be no problem.
447491 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
448 echo m68k-atari-mint"$UNAME_RELEASE"
449 exit ;;
492 GUESS=m68k-atari-mint$UNAME_RELEASE
493 ;;
450494 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
451 echo m68k-atari-mint"$UNAME_RELEASE"
452 exit ;;
495 GUESS=m68k-atari-mint$UNAME_RELEASE
496 ;;
453497 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
454 echo m68k-atari-mint"$UNAME_RELEASE"
455 exit ;;
498 GUESS=m68k-atari-mint$UNAME_RELEASE
499 ;;
456500 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
457 echo m68k-milan-mint"$UNAME_RELEASE"
458 exit ;;
501 GUESS=m68k-milan-mint$UNAME_RELEASE
502 ;;
459503 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
460 echo m68k-hades-mint"$UNAME_RELEASE"
461 exit ;;
504 GUESS=m68k-hades-mint$UNAME_RELEASE
505 ;;
462506 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
463 echo m68k-unknown-mint"$UNAME_RELEASE"
464 exit ;;
507 GUESS=m68k-unknown-mint$UNAME_RELEASE
508 ;;
465509 m68k:machten:*:*)
466 echo m68k-apple-machten"$UNAME_RELEASE"
467 exit ;;
510 GUESS=m68k-apple-machten$UNAME_RELEASE
511 ;;
468512 powerpc:machten:*:*)
469 echo powerpc-apple-machten"$UNAME_RELEASE"
470 exit ;;
513 GUESS=powerpc-apple-machten$UNAME_RELEASE
514 ;;
471515 RISC*:Mach:*:*)
472 echo mips-dec-mach_bsd4.3
473 exit ;;
516 GUESS=mips-dec-mach_bsd4.3
517 ;;
474518 RISC*:ULTRIX:*:*)
475 echo mips-dec-ultrix"$UNAME_RELEASE"
476 exit ;;
519 GUESS=mips-dec-ultrix$UNAME_RELEASE
520 ;;
477521 VAX*:ULTRIX*:*:*)
478 echo vax-dec-ultrix"$UNAME_RELEASE"
479 exit ;;
522 GUESS=vax-dec-ultrix$UNAME_RELEASE
523 ;;
480524 2020:CLIX:*:* | 2430:CLIX:*:*)
481 echo clipper-intergraph-clix"$UNAME_RELEASE"
482 exit ;;
525 GUESS=clipper-intergraph-clix$UNAME_RELEASE
526 ;;
483527 mips:*:*:UMIPS | mips:*:*:RISCos)
484 eval "$set_cc_for_build"
528 set_cc_for_build
485529 sed 's/^ //' << EOF > "$dummy.c"
486530 #ifdef __cplusplus
487531 #include <stdio.h> /* for printf() prototype */
507551 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
508552 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
509553 { echo "$SYSTEM_NAME"; exit; }
510 echo mips-mips-riscos"$UNAME_RELEASE"
511 exit ;;
554 GUESS=mips-mips-riscos$UNAME_RELEASE
555 ;;
512556 Motorola:PowerMAX_OS:*:*)
513 echo powerpc-motorola-powermax
514 exit ;;
557 GUESS=powerpc-motorola-powermax
558 ;;
515559 Motorola:*:4.3:PL8-*)
516 echo powerpc-harris-powermax
517 exit ;;
560 GUESS=powerpc-harris-powermax
561 ;;
518562 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
519 echo powerpc-harris-powermax
520 exit ;;
563 GUESS=powerpc-harris-powermax
564 ;;
521565 Night_Hawk:Power_UNIX:*:*)
522 echo powerpc-harris-powerunix
523 exit ;;
566 GUESS=powerpc-harris-powerunix
567 ;;
524568 m88k:CX/UX:7*:*)
525 echo m88k-harris-cxux7
526 exit ;;
569 GUESS=m88k-harris-cxux7
570 ;;
527571 m88k:*:4*:R4*)
528 echo m88k-motorola-sysv4
529 exit ;;
572 GUESS=m88k-motorola-sysv4
573 ;;
530574 m88k:*:3*:R3*)
531 echo m88k-motorola-sysv3
532 exit ;;
575 GUESS=m88k-motorola-sysv3
576 ;;
533577 AViiON:dgux:*:*)
534578 # DG/UX returns AViiON for all architectures
535579 UNAME_PROCESSOR=`/usr/bin/uname -p`
536 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
580 if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
537581 then
538 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
539 [ "$TARGET_BINARY_INTERFACE"x = x ]
582 if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
583 test "$TARGET_BINARY_INTERFACE"x = x
540584 then
541 echo m88k-dg-dgux"$UNAME_RELEASE"
585 GUESS=m88k-dg-dgux$UNAME_RELEASE
542586 else
543 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
587 GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
544588 fi
545589 else
546 echo i586-dg-dgux"$UNAME_RELEASE"
547 fi
548 exit ;;
590 GUESS=i586-dg-dgux$UNAME_RELEASE
591 fi
592 ;;
549593 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
550 echo m88k-dolphin-sysv3
551 exit ;;
594 GUESS=m88k-dolphin-sysv3
595 ;;
552596 M88*:*:R3*:*)
553597 # Delta 88k system running SVR3
554 echo m88k-motorola-sysv3
555 exit ;;
598 GUESS=m88k-motorola-sysv3
599 ;;
556600 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
557 echo m88k-tektronix-sysv3
558 exit ;;
601 GUESS=m88k-tektronix-sysv3
602 ;;
559603 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
560 echo m68k-tektronix-bsd
561 exit ;;
604 GUESS=m68k-tektronix-bsd
605 ;;
562606 *:IRIX*:*:*)
563 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
564 exit ;;
607 IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
608 GUESS=mips-sgi-irix$IRIX_REL
609 ;;
565610 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
566 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
567 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
611 GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id
612 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
568613 i*86:AIX:*:*)
569 echo i386-ibm-aix
570 exit ;;
614 GUESS=i386-ibm-aix
615 ;;
571616 ia64:AIX:*:*)
572 if [ -x /usr/bin/oslevel ] ; then
617 if test -x /usr/bin/oslevel ; then
573618 IBM_REV=`/usr/bin/oslevel`
574619 else
575 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
576 fi
577 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
578 exit ;;
620 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
621 fi
622 GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
623 ;;
579624 *:AIX:2:3)
580625 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
581 eval "$set_cc_for_build"
626 set_cc_for_build
582627 sed 's/^ //' << EOF > "$dummy.c"
583628 #include <sys/systemcfg.h>
584629
592637 EOF
593638 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
594639 then
595 echo "$SYSTEM_NAME"
640 GUESS=$SYSTEM_NAME
596641 else
597 echo rs6000-ibm-aix3.2.5
642 GUESS=rs6000-ibm-aix3.2.5
598643 fi
599644 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
600 echo rs6000-ibm-aix3.2.4
645 GUESS=rs6000-ibm-aix3.2.4
601646 else
602 echo rs6000-ibm-aix3.2
603 fi
604 exit ;;
647 GUESS=rs6000-ibm-aix3.2
648 fi
649 ;;
605650 *:AIX:*:[4567])
606651 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
607652 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
609654 else
610655 IBM_ARCH=powerpc
611656 fi
612 if [ -x /usr/bin/lslpp ] ; then
613 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
657 if test -x /usr/bin/lslpp ; then
658 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \
614659 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
615660 else
616 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
617 fi
618 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
619 exit ;;
661 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
662 fi
663 GUESS=$IBM_ARCH-ibm-aix$IBM_REV
664 ;;
620665 *:AIX:*:*)
621 echo rs6000-ibm-aix
622 exit ;;
666 GUESS=rs6000-ibm-aix
667 ;;
623668 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
624 echo romp-ibm-bsd4.4
625 exit ;;
669 GUESS=romp-ibm-bsd4.4
670 ;;
626671 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
627 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
628 exit ;; # report: romp-ibm BSD 4.3
672 GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to
673 ;; # report: romp-ibm BSD 4.3
629674 *:BOSX:*:*)
630 echo rs6000-bull-bosx
631 exit ;;
675 GUESS=rs6000-bull-bosx
676 ;;
632677 DPX/2?00:B.O.S.:*:*)
633 echo m68k-bull-sysv3
634 exit ;;
678 GUESS=m68k-bull-sysv3
679 ;;
635680 9000/[34]??:4.3bsd:1.*:*)
636 echo m68k-hp-bsd
637 exit ;;
681 GUESS=m68k-hp-bsd
682 ;;
638683 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
639 echo m68k-hp-bsd4.4
640 exit ;;
684 GUESS=m68k-hp-bsd4.4
685 ;;
641686 9000/[34678]??:HP-UX:*:*)
642 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
643 case "$UNAME_MACHINE" in
687 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
688 case $UNAME_MACHINE in
644689 9000/31?) HP_ARCH=m68000 ;;
645690 9000/[34]??) HP_ARCH=m68k ;;
646691 9000/[678][0-9][0-9])
647 if [ -x /usr/bin/getconf ]; then
692 if test -x /usr/bin/getconf; then
648693 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
649694 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
650 case "$sc_cpu_version" in
695 case $sc_cpu_version in
651696 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
652697 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
653698 532) # CPU_PA_RISC2_0
654 case "$sc_kernel_bits" in
699 case $sc_kernel_bits in
655700 32) HP_ARCH=hppa2.0n ;;
656701 64) HP_ARCH=hppa2.0w ;;
657702 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
658703 esac ;;
659704 esac
660705 fi
661 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
706 if test "$HP_ARCH" = ""; then
707 set_cc_for_build
663708 sed 's/^ //' << EOF > "$dummy.c"
664709
665710 #define _HPUX_SOURCE
697742 test -z "$HP_ARCH" && HP_ARCH=hppa
698743 fi ;;
699744 esac
700 if [ "$HP_ARCH" = hppa2.0w ]
745 if test "$HP_ARCH" = hppa2.0w
701746 then
702 eval "$set_cc_for_build"
747 set_cc_for_build
703748
704749 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
705750 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
718763 HP_ARCH=hppa64
719764 fi
720765 fi
721 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
722 exit ;;
766 GUESS=$HP_ARCH-hp-hpux$HPUX_REV
767 ;;
723768 ia64:HP-UX:*:*)
724 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
725 echo ia64-hp-hpux"$HPUX_REV"
726 exit ;;
769 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
770 GUESS=ia64-hp-hpux$HPUX_REV
771 ;;
727772 3050*:HI-UX:*:*)
728 eval "$set_cc_for_build"
773 set_cc_for_build
729774 sed 's/^ //' << EOF > "$dummy.c"
730775 #include <unistd.h>
731776 int
753798 EOF
754799 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
755800 { echo "$SYSTEM_NAME"; exit; }
756 echo unknown-hitachi-hiuxwe2
757 exit ;;
801 GUESS=unknown-hitachi-hiuxwe2
802 ;;
758803 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
759 echo hppa1.1-hp-bsd
760 exit ;;
804 GUESS=hppa1.1-hp-bsd
805 ;;
761806 9000/8??:4.3bsd:*:*)
762 echo hppa1.0-hp-bsd
763 exit ;;
807 GUESS=hppa1.0-hp-bsd
808 ;;
764809 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
765 echo hppa1.0-hp-mpeix
766 exit ;;
810 GUESS=hppa1.0-hp-mpeix
811 ;;
767812 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
768 echo hppa1.1-hp-osf
769 exit ;;
813 GUESS=hppa1.1-hp-osf
814 ;;
770815 hp8??:OSF1:*:*)
771 echo hppa1.0-hp-osf
772 exit ;;
816 GUESS=hppa1.0-hp-osf
817 ;;
773818 i*86:OSF1:*:*)
774 if [ -x /usr/sbin/sysversion ] ; then
775 echo "$UNAME_MACHINE"-unknown-osf1mk
819 if test -x /usr/sbin/sysversion ; then
820 GUESS=$UNAME_MACHINE-unknown-osf1mk
776821 else
777 echo "$UNAME_MACHINE"-unknown-osf1
778 fi
779 exit ;;
822 GUESS=$UNAME_MACHINE-unknown-osf1
823 fi
824 ;;
780825 parisc*:Lites*:*:*)
781 echo hppa1.1-hp-lites
782 exit ;;
826 GUESS=hppa1.1-hp-lites
827 ;;
783828 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
784 echo c1-convex-bsd
785 exit ;;
829 GUESS=c1-convex-bsd
830 ;;
786831 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
787832 if getsysinfo -f scalar_acc
788833 then echo c32-convex-bsd
790835 fi
791836 exit ;;
792837 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
793 echo c34-convex-bsd
794 exit ;;
838 GUESS=c34-convex-bsd
839 ;;
795840 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
796 echo c38-convex-bsd
797 exit ;;
841 GUESS=c38-convex-bsd
842 ;;
798843 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
799 echo c4-convex-bsd
800 exit ;;
844 GUESS=c4-convex-bsd
845 ;;
801846 CRAY*Y-MP:*:*:*)
802 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
803 exit ;;
847 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
848 GUESS=ymp-cray-unicos$CRAY_REL
849 ;;
804850 CRAY*[A-Z]90:*:*:*)
805851 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
806852 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
808854 -e 's/\.[^.]*$/.X/'
809855 exit ;;
810856 CRAY*TS:*:*:*)
811 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
812 exit ;;
857 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
858 GUESS=t90-cray-unicos$CRAY_REL
859 ;;
813860 CRAY*T3E:*:*:*)
814 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
815 exit ;;
861 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
862 GUESS=alphaev5-cray-unicosmk$CRAY_REL
863 ;;
816864 CRAY*SV1:*:*:*)
817 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
818 exit ;;
865 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
866 GUESS=sv1-cray-unicos$CRAY_REL
867 ;;
819868 *:UNICOS/mp:*:*)
820 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
821 exit ;;
869 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
870 GUESS=craynv-cray-unicosmp$CRAY_REL
871 ;;
822872 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
823873 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
824874 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
825875 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
826 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
827 exit ;;
876 GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
877 ;;
828878 5000:UNIX_System_V:4.*:*)
829879 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
830880 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
831 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
832 exit ;;
881 GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
882 ;;
833883 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
834 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
835 exit ;;
884 GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
885 ;;
836886 sparc*:BSD/OS:*:*)
837 echo sparc-unknown-bsdi"$UNAME_RELEASE"
838 exit ;;
887 GUESS=sparc-unknown-bsdi$UNAME_RELEASE
888 ;;
839889 *:BSD/OS:*:*)
840 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
841 exit ;;
890 GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE
891 ;;
892 arm:FreeBSD:*:*)
893 UNAME_PROCESSOR=`uname -p`
894 set_cc_for_build
895 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
896 | grep -q __ARM_PCS_VFP
897 then
898 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
899 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi
900 else
901 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
902 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf
903 fi
904 ;;
842905 *:FreeBSD:*:*)
843906 UNAME_PROCESSOR=`/usr/bin/uname -p`
844 case "$UNAME_PROCESSOR" in
907 case $UNAME_PROCESSOR in
845908 amd64)
846909 UNAME_PROCESSOR=x86_64 ;;
847910 i386)
848911 UNAME_PROCESSOR=i586 ;;
849912 esac
850 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
851 exit ;;
913 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
914 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL
915 ;;
852916 i*:CYGWIN*:*)
853 echo "$UNAME_MACHINE"-pc-cygwin
854 exit ;;
917 GUESS=$UNAME_MACHINE-pc-cygwin
918 ;;
855919 *:MINGW64*:*)
856 echo "$UNAME_MACHINE"-pc-mingw64
857 exit ;;
920 GUESS=$UNAME_MACHINE-pc-mingw64
921 ;;
858922 *:MINGW*:*)
859 echo "$UNAME_MACHINE"-pc-mingw32
860 exit ;;
923 GUESS=$UNAME_MACHINE-pc-mingw32
924 ;;
861925 *:MSYS*:*)
862 echo "$UNAME_MACHINE"-pc-msys
863 exit ;;
926 GUESS=$UNAME_MACHINE-pc-msys
927 ;;
864928 i*:PW*:*)
865 echo "$UNAME_MACHINE"-pc-pw32
866 exit ;;
929 GUESS=$UNAME_MACHINE-pc-pw32
930 ;;
867931 *:Interix*:*)
868 case "$UNAME_MACHINE" in
932 case $UNAME_MACHINE in
869933 x86)
870 echo i586-pc-interix"$UNAME_RELEASE"
871 exit ;;
934 GUESS=i586-pc-interix$UNAME_RELEASE
935 ;;
872936 authenticamd | genuineintel | EM64T)
873 echo x86_64-unknown-interix"$UNAME_RELEASE"
874 exit ;;
937 GUESS=x86_64-unknown-interix$UNAME_RELEASE
938 ;;
875939 IA64)
876 echo ia64-unknown-interix"$UNAME_RELEASE"
877 exit ;;
940 GUESS=ia64-unknown-interix$UNAME_RELEASE
941 ;;
878942 esac ;;
879943 i*:UWIN*:*)
880 echo "$UNAME_MACHINE"-pc-uwin
881 exit ;;
944 GUESS=$UNAME_MACHINE-pc-uwin
945 ;;
882946 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
883 echo x86_64-unknown-cygwin
884 exit ;;
947 GUESS=x86_64-pc-cygwin
948 ;;
885949 prep*:SunOS:5.*:*)
886 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
887 exit ;;
950 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
951 GUESS=powerpcle-unknown-solaris2$SUN_REL
952 ;;
888953 *:GNU:*:*)
889954 # the GNU system
890 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
891 exit ;;
955 GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'`
956 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'`
957 GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL
958 ;;
892959 *:GNU/*:*:*)
893960 # other systems with GNU libc and userland
894 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
895 exit ;;
896 i*86:Minix:*:*)
897 echo "$UNAME_MACHINE"-pc-minix
898 exit ;;
961 GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"`
962 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
963 GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC
964 ;;
965 *:Minix:*:*)
966 GUESS=$UNAME_MACHINE-unknown-minix
967 ;;
899968 aarch64:Linux:*:*)
900 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
901 exit ;;
969 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
970 ;;
902971 aarch64_be:Linux:*:*)
903972 UNAME_MACHINE=aarch64_be
904 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
905 exit ;;
973 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
974 ;;
906975 alpha:Linux:*:*)
907 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
976 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
908977 EV5) UNAME_MACHINE=alphaev5 ;;
909978 EV56) UNAME_MACHINE=alphaev56 ;;
910979 PCA56) UNAME_MACHINE=alphapca56 ;;
915984 esac
916985 objdump --private-headers /bin/sh | grep -q ld.so.1
917986 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
918 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
919 exit ;;
920 arc:Linux:*:* | arceb:Linux:*:*)
921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
922 exit ;;
987 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
988 ;;
989 arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
990 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
991 ;;
923992 arm*:Linux:*:*)
924 eval "$set_cc_for_build"
993 set_cc_for_build
925994 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
926995 | grep -q __ARM_EABI__
927996 then
928 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
997 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
929998 else
930999 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
9311000 | grep -q __ARM_PCS_VFP
9321001 then
933 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
1002 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi
9341003 else
935 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
1004 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf
9361005 fi
9371006 fi
938 exit ;;
1007 ;;
9391008 avr32*:Linux:*:*)
940 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
941 exit ;;
1009 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1010 ;;
9421011 cris:Linux:*:*)
943 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
944 exit ;;
1012 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1013 ;;
9451014 crisv32:Linux:*:*)
946 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
947 exit ;;
1015 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1016 ;;
9481017 e2k:Linux:*:*)
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
950 exit ;;
1018 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1019 ;;
9511020 frv:Linux:*:*)
952 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
953 exit ;;
1021 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1022 ;;
9541023 hexagon:Linux:*:*)
955 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
956 exit ;;
1024 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1025 ;;
9571026 i*86:Linux:*:*)
958 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
959 exit ;;
1027 GUESS=$UNAME_MACHINE-pc-linux-$LIBC
1028 ;;
9601029 ia64:Linux:*:*)
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
962 exit ;;
1030 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1031 ;;
9631032 k1om:Linux:*:*)
964 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
965 exit ;;
1033 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1034 ;;
1035 loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
1036 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1037 ;;
9661038 m32r*:Linux:*:*)
967 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
968 exit ;;
1039 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1040 ;;
9691041 m68*:Linux:*:*)
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
971 exit ;;
1042 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1043 ;;
9721044 mips:Linux:*:* | mips64:Linux:*:*)
973 eval "$set_cc_for_build"
1045 set_cc_for_build
1046 IS_GLIBC=0
1047 test x"${LIBC}" = xgnu && IS_GLIBC=1
9741048 sed 's/^ //' << EOF > "$dummy.c"
9751049 #undef CPU
976 #undef ${UNAME_MACHINE}
977 #undef ${UNAME_MACHINE}el
1050 #undef mips
1051 #undef mipsel
1052 #undef mips64
1053 #undef mips64el
1054 #if ${IS_GLIBC} && defined(_ABI64)
1055 LIBCABI=gnuabi64
1056 #else
1057 #if ${IS_GLIBC} && defined(_ABIN32)
1058 LIBCABI=gnuabin32
1059 #else
1060 LIBCABI=${LIBC}
1061 #endif
1062 #endif
1063
1064 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1065 CPU=mipsisa64r6
1066 #else
1067 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1068 CPU=mipsisa32r6
1069 #else
1070 #if defined(__mips64)
1071 CPU=mips64
1072 #else
1073 CPU=mips
1074 #endif
1075 #endif
1076 #endif
1077
9781078 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
979 CPU=${UNAME_MACHINE}el
1079 MIPS_ENDIAN=el
9801080 #else
9811081 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
982 CPU=${UNAME_MACHINE}
1082 MIPS_ENDIAN=
9831083 #else
984 CPU=
1084 MIPS_ENDIAN=
9851085 #endif
9861086 #endif
9871087 EOF
988 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
989 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
1088 cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`
1089 eval "$cc_set_vars"
1090 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
9901091 ;;
9911092 mips64el:Linux:*:*)
992 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
993 exit ;;
1093 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1094 ;;
9941095 openrisc*:Linux:*:*)
995 echo or1k-unknown-linux-"$LIBC"
996 exit ;;
1096 GUESS=or1k-unknown-linux-$LIBC
1097 ;;
9971098 or32:Linux:*:* | or1k*:Linux:*:*)
998 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
999 exit ;;
1099 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1100 ;;
10001101 padre:Linux:*:*)
1001 echo sparc-unknown-linux-"$LIBC"
1002 exit ;;
1102 GUESS=sparc-unknown-linux-$LIBC
1103 ;;
10031104 parisc64:Linux:*:* | hppa64:Linux:*:*)
1004 echo hppa64-unknown-linux-"$LIBC"
1005 exit ;;
1105 GUESS=hppa64-unknown-linux-$LIBC
1106 ;;
10061107 parisc:Linux:*:* | hppa:Linux:*:*)
10071108 # Look for CPU level
10081109 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1009 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1010 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1011 *) echo hppa-unknown-linux-"$LIBC" ;;
1110 PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;;
1111 PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;;
1112 *) GUESS=hppa-unknown-linux-$LIBC ;;
10121113 esac
1013 exit ;;
1114 ;;
10141115 ppc64:Linux:*:*)
1015 echo powerpc64-unknown-linux-"$LIBC"
1016 exit ;;
1116 GUESS=powerpc64-unknown-linux-$LIBC
1117 ;;
10171118 ppc:Linux:*:*)
1018 echo powerpc-unknown-linux-"$LIBC"
1019 exit ;;
1119 GUESS=powerpc-unknown-linux-$LIBC
1120 ;;
10201121 ppc64le:Linux:*:*)
1021 echo powerpc64le-unknown-linux-"$LIBC"
1022 exit ;;
1122 GUESS=powerpc64le-unknown-linux-$LIBC
1123 ;;
10231124 ppcle:Linux:*:*)
1024 echo powerpcle-unknown-linux-"$LIBC"
1025 exit ;;
1026 riscv32:Linux:*:* | riscv64:Linux:*:*)
1027 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1028 exit ;;
1125 GUESS=powerpcle-unknown-linux-$LIBC
1126 ;;
1127 riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
1128 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1129 ;;
10291130 s390:Linux:*:* | s390x:Linux:*:*)
1030 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
1031 exit ;;
1131 GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
1132 ;;
10321133 sh64*:Linux:*:*)
1033 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1034 exit ;;
1134 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1135 ;;
10351136 sh*:Linux:*:*)
1036 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1037 exit ;;
1137 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1138 ;;
10381139 sparc:Linux:*:* | sparc64:Linux:*:*)
1039 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1040 exit ;;
1140 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1141 ;;
10411142 tile*:Linux:*:*)
1042 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1043 exit ;;
1143 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1144 ;;
10441145 vax:Linux:*:*)
1045 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
1046 exit ;;
1146 GUESS=$UNAME_MACHINE-dec-linux-$LIBC
1147 ;;
10471148 x86_64:Linux:*:*)
1048 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1049 exit ;;
1149 set_cc_for_build
1150 LIBCABI=$LIBC
1151 if test "$CC_FOR_BUILD" != no_compiler_found; then
1152 if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
1153 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1154 grep IS_X32 >/dev/null
1155 then
1156 LIBCABI=${LIBC}x32
1157 fi
1158 fi
1159 GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI
1160 ;;
10501161 xtensa*:Linux:*:*)
1051 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1052 exit ;;
1162 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1163 ;;
10531164 i*86:DYNIX/ptx:4*:*)
10541165 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10551166 # earlier versions are messed up and put the nodename in both
10561167 # sysname and nodename.
1057 echo i386-sequent-sysv4
1058 exit ;;
1168 GUESS=i386-sequent-sysv4
1169 ;;
10591170 i*86:UNIX_SV:4.2MP:2.*)
10601171 # Unixware is an offshoot of SVR4, but it has its own version
10611172 # number series starting with 2...
10621173 # I am not positive that other SVR4 systems won't match this,
10631174 # I just have to hope. -- rms.
10641175 # Use sysv4.2uw... so that sysv4* matches it.
1065 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
1066 exit ;;
1176 GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
1177 ;;
10671178 i*86:OS/2:*:*)
10681179 # If we were able to find `uname', then EMX Unix compatibility
10691180 # is probably installed.
1070 echo "$UNAME_MACHINE"-pc-os2-emx
1071 exit ;;
1181 GUESS=$UNAME_MACHINE-pc-os2-emx
1182 ;;
10721183 i*86:XTS-300:*:STOP)
1073 echo "$UNAME_MACHINE"-unknown-stop
1074 exit ;;
1184 GUESS=$UNAME_MACHINE-unknown-stop
1185 ;;
10751186 i*86:atheos:*:*)
1076 echo "$UNAME_MACHINE"-unknown-atheos
1077 exit ;;
1187 GUESS=$UNAME_MACHINE-unknown-atheos
1188 ;;
10781189 i*86:syllable:*:*)
1079 echo "$UNAME_MACHINE"-pc-syllable
1080 exit ;;
1190 GUESS=$UNAME_MACHINE-pc-syllable
1191 ;;
10811192 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1082 echo i386-unknown-lynxos"$UNAME_RELEASE"
1083 exit ;;
1193 GUESS=i386-unknown-lynxos$UNAME_RELEASE
1194 ;;
10841195 i*86:*DOS:*:*)
1085 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1086 exit ;;
1196 GUESS=$UNAME_MACHINE-pc-msdosdjgpp
1197 ;;
10871198 i*86:*:4.*:*)
10881199 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
10891200 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1090 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
1201 GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
10911202 else
1092 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
1093 fi
1094 exit ;;
1203 GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
1204 fi
1205 ;;
10951206 i*86:*:5:[678]*)
10961207 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10971208 case `/bin/uname -X | grep "^Machine"` in
10991210 *Pentium) UNAME_MACHINE=i586 ;;
11001211 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
11011212 esac
1102 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
1103 exit ;;
1213 GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1214 ;;
11041215 i*86:*:3.2:*)
11051216 if test -f /usr/options/cb.name; then
11061217 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1107 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
1218 GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
11081219 elif /bin/uname -X 2>/dev/null >/dev/null ; then
11091220 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
11101221 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
11141225 && UNAME_MACHINE=i686
11151226 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
11161227 && UNAME_MACHINE=i686
1117 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
1228 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
11181229 else
1119 echo "$UNAME_MACHINE"-pc-sysv32
1120 fi
1121 exit ;;
1230 GUESS=$UNAME_MACHINE-pc-sysv32
1231 fi
1232 ;;
11221233 pc:*:*:*)
11231234 # Left here for compatibility:
11241235 # uname -m prints for DJGPP always 'pc', but it prints nothing about
11261237 # Note: whatever this is, it MUST be the same as what config.sub
11271238 # prints for the "djgpp" host, or else GDB configure will decide that
11281239 # this is a cross-build.
1129 echo i586-pc-msdosdjgpp
1130 exit ;;
1240 GUESS=i586-pc-msdosdjgpp
1241 ;;
11311242 Intel:Mach:3*:*)
1132 echo i386-pc-mach3
1133 exit ;;
1243 GUESS=i386-pc-mach3
1244 ;;
11341245 paragon:*:*:*)
1135 echo i860-intel-osf1
1136 exit ;;
1246 GUESS=i860-intel-osf1
1247 ;;
11371248 i860:*:4.*:*) # i860-SVR4
11381249 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1139 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
1250 GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4
11401251 else # Add other i860-SVR4 vendors below as they are discovered.
1141 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
1142 fi
1143 exit ;;
1252 GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4
1253 fi
1254 ;;
11441255 mini*:CTIX:SYS*5:*)
11451256 # "miniframe"
1146 echo m68010-convergent-sysv
1147 exit ;;
1257 GUESS=m68010-convergent-sysv
1258 ;;
11481259 mc68k:UNIX:SYSTEM5:3.51m)
1149 echo m68k-convergent-sysv
1150 exit ;;
1260 GUESS=m68k-convergent-sysv
1261 ;;
11511262 M680?0:D-NIX:5.3:*)
1152 echo m68k-diab-dnix
1153 exit ;;
1263 GUESS=m68k-diab-dnix
1264 ;;
11541265 M68*:*:R3V[5678]*:*)
11551266 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
11561267 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
11751286 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
11761287 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11771288 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1178 echo m68k-unknown-lynxos"$UNAME_RELEASE"
1179 exit ;;
1289 GUESS=m68k-unknown-lynxos$UNAME_RELEASE
1290 ;;
11801291 mc68030:UNIX_System_V:4.*:*)
1181 echo m68k-atari-sysv4
1182 exit ;;
1292 GUESS=m68k-atari-sysv4
1293 ;;
11831294 TSUNAMI:LynxOS:2.*:*)
1184 echo sparc-unknown-lynxos"$UNAME_RELEASE"
1185 exit ;;
1295 GUESS=sparc-unknown-lynxos$UNAME_RELEASE
1296 ;;
11861297 rs6000:LynxOS:2.*:*)
1187 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
1188 exit ;;
1298 GUESS=rs6000-unknown-lynxos$UNAME_RELEASE
1299 ;;
11891300 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1190 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
1191 exit ;;
1301 GUESS=powerpc-unknown-lynxos$UNAME_RELEASE
1302 ;;
11921303 SM[BE]S:UNIX_SV:*:*)
1193 echo mips-dde-sysv"$UNAME_RELEASE"
1194 exit ;;
1304 GUESS=mips-dde-sysv$UNAME_RELEASE
1305 ;;
11951306 RM*:ReliantUNIX-*:*:*)
1196 echo mips-sni-sysv4
1197 exit ;;
1307 GUESS=mips-sni-sysv4
1308 ;;
11981309 RM*:SINIX-*:*:*)
1199 echo mips-sni-sysv4
1200 exit ;;
1310 GUESS=mips-sni-sysv4
1311 ;;
12011312 *:SINIX-*:*:*)
12021313 if uname -p 2>/dev/null >/dev/null ; then
12031314 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1204 echo "$UNAME_MACHINE"-sni-sysv4
1315 GUESS=$UNAME_MACHINE-sni-sysv4
12051316 else
1206 echo ns32k-sni-sysv
1207 fi
1208 exit ;;
1317 GUESS=ns32k-sni-sysv
1318 fi
1319 ;;
12091320 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
12101321 # says <Richard.M.Bartel@ccMail.Census.GOV>
1211 echo i586-unisys-sysv4
1212 exit ;;
1322 GUESS=i586-unisys-sysv4
1323 ;;
12131324 *:UNIX_System_V:4*:FTX*)
12141325 # From Gerald Hewes <hewes@openmarket.com>.
12151326 # How about differentiating between stratus architectures? -djm
1216 echo hppa1.1-stratus-sysv4
1217 exit ;;
1327 GUESS=hppa1.1-stratus-sysv4
1328 ;;
12181329 *:*:*:FTX*)
12191330 # From seanf@swdc.stratus.com.
1220 echo i860-stratus-sysv4
1221 exit ;;
1331 GUESS=i860-stratus-sysv4
1332 ;;
12221333 i*86:VOS:*:*)
12231334 # From Paul.Green@stratus.com.
1224 echo "$UNAME_MACHINE"-stratus-vos
1225 exit ;;
1335 GUESS=$UNAME_MACHINE-stratus-vos
1336 ;;
12261337 *:VOS:*:*)
12271338 # From Paul.Green@stratus.com.
1228 echo hppa1.1-stratus-vos
1229 exit ;;
1339 GUESS=hppa1.1-stratus-vos
1340 ;;
12301341 mc68*:A/UX:*:*)
1231 echo m68k-apple-aux"$UNAME_RELEASE"
1232 exit ;;
1342 GUESS=m68k-apple-aux$UNAME_RELEASE
1343 ;;
12331344 news*:NEWS-OS:6*:*)
1234 echo mips-sony-newsos6
1235 exit ;;
1345 GUESS=mips-sony-newsos6
1346 ;;
12361347 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1237 if [ -d /usr/nec ]; then
1238 echo mips-nec-sysv"$UNAME_RELEASE"
1348 if test -d /usr/nec; then
1349 GUESS=mips-nec-sysv$UNAME_RELEASE
12391350 else
1240 echo mips-unknown-sysv"$UNAME_RELEASE"
1241 fi
1242 exit ;;
1351 GUESS=mips-unknown-sysv$UNAME_RELEASE
1352 fi
1353 ;;
12431354 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1244 echo powerpc-be-beos
1245 exit ;;
1355 GUESS=powerpc-be-beos
1356 ;;
12461357 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1247 echo powerpc-apple-beos
1248 exit ;;
1358 GUESS=powerpc-apple-beos
1359 ;;
12491360 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1250 echo i586-pc-beos
1251 exit ;;
1361 GUESS=i586-pc-beos
1362 ;;
12521363 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1253 echo i586-pc-haiku
1254 exit ;;
1364 GUESS=i586-pc-haiku
1365 ;;
12551366 x86_64:Haiku:*:*)
1256 echo x86_64-unknown-haiku
1257 exit ;;
1367 GUESS=x86_64-unknown-haiku
1368 ;;
12581369 SX-4:SUPER-UX:*:*)
1259 echo sx4-nec-superux"$UNAME_RELEASE"
1260 exit ;;
1370 GUESS=sx4-nec-superux$UNAME_RELEASE
1371 ;;
12611372 SX-5:SUPER-UX:*:*)
1262 echo sx5-nec-superux"$UNAME_RELEASE"
1263 exit ;;
1373 GUESS=sx5-nec-superux$UNAME_RELEASE
1374 ;;
12641375 SX-6:SUPER-UX:*:*)
1265 echo sx6-nec-superux"$UNAME_RELEASE"
1266 exit ;;
1376 GUESS=sx6-nec-superux$UNAME_RELEASE
1377 ;;
12671378 SX-7:SUPER-UX:*:*)
1268 echo sx7-nec-superux"$UNAME_RELEASE"
1269 exit ;;
1379 GUESS=sx7-nec-superux$UNAME_RELEASE
1380 ;;
12701381 SX-8:SUPER-UX:*:*)
1271 echo sx8-nec-superux"$UNAME_RELEASE"
1272 exit ;;
1382 GUESS=sx8-nec-superux$UNAME_RELEASE
1383 ;;
12731384 SX-8R:SUPER-UX:*:*)
1274 echo sx8r-nec-superux"$UNAME_RELEASE"
1275 exit ;;
1385 GUESS=sx8r-nec-superux$UNAME_RELEASE
1386 ;;
12761387 SX-ACE:SUPER-UX:*:*)
1277 echo sxace-nec-superux"$UNAME_RELEASE"
1278 exit ;;
1388 GUESS=sxace-nec-superux$UNAME_RELEASE
1389 ;;
12791390 Power*:Rhapsody:*:*)
1280 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
1281 exit ;;
1391 GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
1392 ;;
12821393 *:Rhapsody:*:*)
1283 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
1284 exit ;;
1394 GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
1395 ;;
1396 arm64:Darwin:*:*)
1397 GUESS=aarch64-apple-darwin$UNAME_RELEASE
1398 ;;
12851399 *:Darwin:*:*)
1286 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1287 eval "$set_cc_for_build"
1288 if test "$UNAME_PROCESSOR" = unknown ; then
1289 UNAME_PROCESSOR=powerpc
1290 fi
1291 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1292 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
1293 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1294 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1295 grep IS_64BIT_ARCH >/dev/null
1296 then
1297 case $UNAME_PROCESSOR in
1298 i386) UNAME_PROCESSOR=x86_64 ;;
1299 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1300 esac
1301 fi
1302 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1303 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1304 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1305 grep IS_PPC >/dev/null
1306 then
1307 UNAME_PROCESSOR=powerpc
1308 fi
1400 UNAME_PROCESSOR=`uname -p`
1401 case $UNAME_PROCESSOR in
1402 unknown) UNAME_PROCESSOR=powerpc ;;
1403 esac
1404 if command -v xcode-select > /dev/null 2> /dev/null && \
1405 ! xcode-select --print-path > /dev/null 2> /dev/null ; then
1406 # Avoid executing cc if there is no toolchain installed as
1407 # cc will be a stub that puts up a graphical alert
1408 # prompting the user to install developer tools.
1409 CC_FOR_BUILD=no_compiler_found
1410 else
1411 set_cc_for_build
1412 fi
1413 if test "$CC_FOR_BUILD" != no_compiler_found; then
1414 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1415 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1416 grep IS_64BIT_ARCH >/dev/null
1417 then
1418 case $UNAME_PROCESSOR in
1419 i386) UNAME_PROCESSOR=x86_64 ;;
1420 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1421 esac
1422 fi
1423 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1424 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1425 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1426 grep IS_PPC >/dev/null
1427 then
1428 UNAME_PROCESSOR=powerpc
13091429 fi
13101430 elif test "$UNAME_PROCESSOR" = i386 ; then
1311 # Avoid executing cc on OS X 10.9, as it ships with a stub
1312 # that puts up a graphical alert prompting to install
1313 # developer tools. Any system running Mac OS X 10.7 or
1314 # later (Darwin 11 and later) is required to have a 64-bit
1315 # processor. This is not true of the ARM version of Darwin
1316 # that Apple uses in portable devices.
1317 UNAME_PROCESSOR=x86_64
1318 fi
1319 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
1320 exit ;;
1431 # uname -m returns i386 or x86_64
1432 UNAME_PROCESSOR=$UNAME_MACHINE
1433 fi
1434 GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE
1435 ;;
13211436 *:procnto*:*:* | *:QNX:[0123456789]*:*)
13221437 UNAME_PROCESSOR=`uname -p`
13231438 if test "$UNAME_PROCESSOR" = x86; then
13241439 UNAME_PROCESSOR=i386
13251440 UNAME_MACHINE=pc
13261441 fi
1327 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
1328 exit ;;
1442 GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
1443 ;;
13291444 *:QNX:*:4*)
1330 echo i386-pc-qnx
1331 exit ;;
1445 GUESS=i386-pc-qnx
1446 ;;
13321447 NEO-*:NONSTOP_KERNEL:*:*)
1333 echo neo-tandem-nsk"$UNAME_RELEASE"
1334 exit ;;
1448 GUESS=neo-tandem-nsk$UNAME_RELEASE
1449 ;;
13351450 NSE-*:NONSTOP_KERNEL:*:*)
1336 echo nse-tandem-nsk"$UNAME_RELEASE"
1337 exit ;;
1451 GUESS=nse-tandem-nsk$UNAME_RELEASE
1452 ;;
13381453 NSR-*:NONSTOP_KERNEL:*:*)
1339 echo nsr-tandem-nsk"$UNAME_RELEASE"
1340 exit ;;
1454 GUESS=nsr-tandem-nsk$UNAME_RELEASE
1455 ;;
13411456 NSV-*:NONSTOP_KERNEL:*:*)
1342 echo nsv-tandem-nsk"$UNAME_RELEASE"
1343 exit ;;
1457 GUESS=nsv-tandem-nsk$UNAME_RELEASE
1458 ;;
13441459 NSX-*:NONSTOP_KERNEL:*:*)
1345 echo nsx-tandem-nsk"$UNAME_RELEASE"
1346 exit ;;
1460 GUESS=nsx-tandem-nsk$UNAME_RELEASE
1461 ;;
13471462 *:NonStop-UX:*:*)
1348 echo mips-compaq-nonstopux
1349 exit ;;
1463 GUESS=mips-compaq-nonstopux
1464 ;;
13501465 BS2000:POSIX*:*:*)
1351 echo bs2000-siemens-sysv
1352 exit ;;
1466 GUESS=bs2000-siemens-sysv
1467 ;;
13531468 DS/*:UNIX_System_V:*:*)
1354 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
1355 exit ;;
1469 GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
1470 ;;
13561471 *:Plan9:*:*)
13571472 # "uname -m" is not consistent, so use $cputype instead. 386
13581473 # is converted to i386 for consistency with other x86
13591474 # operating systems.
1360 if test "$cputype" = 386; then
1475 if test "${cputype-}" = 386; then
13611476 UNAME_MACHINE=i386
1362 else
1363 UNAME_MACHINE="$cputype"
1364 fi
1365 echo "$UNAME_MACHINE"-unknown-plan9
1366 exit ;;
1477 elif test "x${cputype-}" != x; then
1478 UNAME_MACHINE=$cputype
1479 fi
1480 GUESS=$UNAME_MACHINE-unknown-plan9
1481 ;;
13671482 *:TOPS-10:*:*)
1368 echo pdp10-unknown-tops10
1369 exit ;;
1483 GUESS=pdp10-unknown-tops10
1484 ;;
13701485 *:TENEX:*:*)
1371 echo pdp10-unknown-tenex
1372 exit ;;
1486 GUESS=pdp10-unknown-tenex
1487 ;;
13731488 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1374 echo pdp10-dec-tops20
1375 exit ;;
1489 GUESS=pdp10-dec-tops20
1490 ;;
13761491 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1377 echo pdp10-xkl-tops20
1378 exit ;;
1492 GUESS=pdp10-xkl-tops20
1493 ;;
13791494 *:TOPS-20:*:*)
1380 echo pdp10-unknown-tops20
1381 exit ;;
1495 GUESS=pdp10-unknown-tops20
1496 ;;
13821497 *:ITS:*:*)
1383 echo pdp10-unknown-its
1384 exit ;;
1498 GUESS=pdp10-unknown-its
1499 ;;
13851500 SEI:*:*:SEIUX)
1386 echo mips-sei-seiux"$UNAME_RELEASE"
1387 exit ;;
1501 GUESS=mips-sei-seiux$UNAME_RELEASE
1502 ;;
13881503 *:DragonFly:*:*)
1389 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
1390 exit ;;
1504 DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
1505 GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL
1506 ;;
13911507 *:*VMS:*:*)
13921508 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1393 case "$UNAME_MACHINE" in
1394 A*) echo alpha-dec-vms ; exit ;;
1395 I*) echo ia64-dec-vms ; exit ;;
1396 V*) echo vax-dec-vms ; exit ;;
1509 case $UNAME_MACHINE in
1510 A*) GUESS=alpha-dec-vms ;;
1511 I*) GUESS=ia64-dec-vms ;;
1512 V*) GUESS=vax-dec-vms ;;
13971513 esac ;;
13981514 *:XENIX:*:SysV)
1399 echo i386-pc-xenix
1400 exit ;;
1515 GUESS=i386-pc-xenix
1516 ;;
14011517 i*86:skyos:*:*)
1402 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
1403 exit ;;
1518 SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
1519 GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
1520 ;;
14041521 i*86:rdos:*:*)
1405 echo "$UNAME_MACHINE"-pc-rdos
1406 exit ;;
1407 i*86:AROS:*:*)
1408 echo "$UNAME_MACHINE"-pc-aros
1409 exit ;;
1522 GUESS=$UNAME_MACHINE-pc-rdos
1523 ;;
1524 *:AROS:*:*)
1525 GUESS=$UNAME_MACHINE-unknown-aros
1526 ;;
14101527 x86_64:VMkernel:*:*)
1411 echo "$UNAME_MACHINE"-unknown-esx
1412 exit ;;
1528 GUESS=$UNAME_MACHINE-unknown-esx
1529 ;;
14131530 amd64:Isilon\ OneFS:*:*)
1414 echo x86_64-unknown-onefs
1415 exit ;;
1531 GUESS=x86_64-unknown-onefs
1532 ;;
1533 *:Unleashed:*:*)
1534 GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
1535 ;;
14161536 esac
14171537
1538 # Do we have a guess based on uname results?
1539 if test "x$GUESS" != x; then
1540 echo "$GUESS"
1541 exit
1542 fi
1543
1544 # No uname command or uname output not recognized.
1545 set_cc_for_build
1546 cat > "$dummy.c" <<EOF
1547 #ifdef _SEQUENT_
1548 #include <sys/types.h>
1549 #include <sys/utsname.h>
1550 #endif
1551 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1552 #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1553 #include <signal.h>
1554 #if defined(_SIZE_T_) || defined(SIGLOST)
1555 #include <sys/utsname.h>
1556 #endif
1557 #endif
1558 #endif
1559 main ()
1560 {
1561 #if defined (sony)
1562 #if defined (MIPSEB)
1563 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1564 I don't know.... */
1565 printf ("mips-sony-bsd\n"); exit (0);
1566 #else
1567 #include <sys/param.h>
1568 printf ("m68k-sony-newsos%s\n",
1569 #ifdef NEWSOS4
1570 "4"
1571 #else
1572 ""
1573 #endif
1574 ); exit (0);
1575 #endif
1576 #endif
1577
1578 #if defined (NeXT)
1579 #if !defined (__ARCHITECTURE__)
1580 #define __ARCHITECTURE__ "m68k"
1581 #endif
1582 int version;
1583 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1584 if (version < 4)
1585 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1586 else
1587 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1588 exit (0);
1589 #endif
1590
1591 #if defined (MULTIMAX) || defined (n16)
1592 #if defined (UMAXV)
1593 printf ("ns32k-encore-sysv\n"); exit (0);
1594 #else
1595 #if defined (CMU)
1596 printf ("ns32k-encore-mach\n"); exit (0);
1597 #else
1598 printf ("ns32k-encore-bsd\n"); exit (0);
1599 #endif
1600 #endif
1601 #endif
1602
1603 #if defined (__386BSD__)
1604 printf ("i386-pc-bsd\n"); exit (0);
1605 #endif
1606
1607 #if defined (sequent)
1608 #if defined (i386)
1609 printf ("i386-sequent-dynix\n"); exit (0);
1610 #endif
1611 #if defined (ns32000)
1612 printf ("ns32k-sequent-dynix\n"); exit (0);
1613 #endif
1614 #endif
1615
1616 #if defined (_SEQUENT_)
1617 struct utsname un;
1618
1619 uname(&un);
1620 if (strncmp(un.version, "V2", 2) == 0) {
1621 printf ("i386-sequent-ptx2\n"); exit (0);
1622 }
1623 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1624 printf ("i386-sequent-ptx1\n"); exit (0);
1625 }
1626 printf ("i386-sequent-ptx\n"); exit (0);
1627 #endif
1628
1629 #if defined (vax)
1630 #if !defined (ultrix)
1631 #include <sys/param.h>
1632 #if defined (BSD)
1633 #if BSD == 43
1634 printf ("vax-dec-bsd4.3\n"); exit (0);
1635 #else
1636 #if BSD == 199006
1637 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1638 #else
1639 printf ("vax-dec-bsd\n"); exit (0);
1640 #endif
1641 #endif
1642 #else
1643 printf ("vax-dec-bsd\n"); exit (0);
1644 #endif
1645 #else
1646 #if defined(_SIZE_T_) || defined(SIGLOST)
1647 struct utsname un;
1648 uname (&un);
1649 printf ("vax-dec-ultrix%s\n", un.release); exit (0);
1650 #else
1651 printf ("vax-dec-ultrix\n"); exit (0);
1652 #endif
1653 #endif
1654 #endif
1655 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1656 #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1657 #if defined(_SIZE_T_) || defined(SIGLOST)
1658 struct utsname *un;
1659 uname (&un);
1660 printf ("mips-dec-ultrix%s\n", un.release); exit (0);
1661 #else
1662 printf ("mips-dec-ultrix\n"); exit (0);
1663 #endif
1664 #endif
1665 #endif
1666
1667 #if defined (alliant) && defined (i860)
1668 printf ("i860-alliant-bsd\n"); exit (0);
1669 #endif
1670
1671 exit (1);
1672 }
1673 EOF
1674
1675 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` &&
1676 { echo "$SYSTEM_NAME"; exit; }
1677
1678 # Apollos put the system type in the environment.
1679 test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }
1680
14181681 echo "$0: unable to guess system type" >&2
14191682
1420 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1683 case $UNAME_MACHINE:$UNAME_SYSTEM in
14211684 mips:Linux | mips64:Linux)
14221685 # If we got here on MIPS GNU/Linux, output extra information.
14231686 cat >&2 <<EOF
14341697 operating system you are using. If your script is old, overwrite *all*
14351698 copies of config.guess and config.sub with the latest versions from:
14361699
1437 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1700 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
14381701 and
1439 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1702 https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
1703 EOF
1704
1705 our_year=`echo $timestamp | sed 's,-.*,,'`
1706 thisyear=`date +%Y`
1707 # shellcheck disable=SC2003
1708 script_age=`expr "$thisyear" - "$our_year"`
1709 if test "$script_age" -lt 3 ; then
1710 cat >&2 <<EOF
14401711
14411712 If $0 has already been updated, send the following data and any
14421713 information you think might be pertinent to config-patches@gnu.org to
14641735 UNAME_SYSTEM = "$UNAME_SYSTEM"
14651736 UNAME_VERSION = "$UNAME_VERSION"
14661737 EOF
1738 fi
14671739
14681740 exit 1
14691741
55 /* found CoreText framework */
66 #undef CONFIG_CORETEXT
77
8 /* found DirectWrite */
8 /* found DirectWrite and GDI (Win32) */
99 #undef CONFIG_DIRECTWRITE
1010
1111 /* found fontconfig via pkg-config */
4141 /* Define to 1 if you have the <inttypes.h> header file. */
4242 #undef HAVE_INTTYPES_H
4343
44 /* Define to 1 if you have the <memory.h> header file. */
45 #undef HAVE_MEMORY_H
46
4744 /* Define to 1 if you have the <stdint.h> header file. */
4845 #undef HAVE_STDINT_H
46
47 /* Define to 1 if you have the <stdio.h> header file. */
48 #undef HAVE_STDIO_H
4949
5050 /* Define to 1 if you have the <stdlib.h> header file. */
5151 #undef HAVE_STDLIB_H
9595 /* Define to the version of this package. */
9696 #undef PACKAGE_VERSION
9797
98 /* Define to 1 if you have the ANSI C header files. */
98 /* Define to 1 if all of the C90 standard headers exist (not just the ones
99 required in a freestanding environment). This macro is provided for
100 backward compatibility; new code need not use it. */
99101 #undef STDC_HEADERS
100102
101103 /* Version number of package */
+1526
-1454
config.sub less more
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-03-08'
2 # Copyright 1992-2021 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2021-07-03'
57
68 # This file is free software; you can redistribute it and/or modify it
79 # under the terms of the GNU General Public License as published by
3234 # Otherwise, we print the canonical config type on stdout and succeed.
3335
3436 # You can get the latest version of this script from:
35 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
37 # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
3638
3739 # This file is supposed to be the same for all GNU packages
3840 # and recognize all the CPU types, system types and aliases
4951 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
5052 # It is wrong to echo any other type of specification.
5153
54 # The "shellcheck disable" line above the timestamp inhibits complaints
55 # about features and limitations of the classic Bourne shell that were
56 # superseded or lifted in POSIX. However, this script identifies a wide
57 # variety of pre-POSIX systems that do not have POSIX shells at all, and
58 # even some reasonably current systems (Solaris 10 as case-in-point) still
59 # have a pre-POSIX /bin/sh.
60
5261 me=`echo "$0" | sed -e 's,.*/,,'`
5362
5463 usage="\
6675 version="\
6776 GNU config.sub ($timestamp)
6877
69 Copyright 1992-2018 Free Software Foundation, Inc.
78 Copyright 1992-2021 Free Software Foundation, Inc.
7079
7180 This is free software; see the source for copying conditions. There is NO
7281 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8897 - ) # Use stdin as input.
8998 break ;;
9099 -* )
91 echo "$me: invalid option $1$help"
100 echo "$me: invalid option $1$help" >&2
92101 exit 1 ;;
93102
94103 *local*)
109118 exit 1;;
110119 esac
111120
112 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
113 # Here we must recognize all the valid KERNEL-OS combinations.
114 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
115 case $maybe_os in
116 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
117 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
119 kopensolaris*-gnu* | cloudabi*-eabi* | \
120 storm-chaos* | os2-emx* | rtmk-nova*)
121 os=-$maybe_os
122 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123 ;;
124 android-linux)
125 os=-linux-android
126 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
127 ;;
128 *)
129 basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
130 if [ "$basic_machine" != "$1" ]
131 then os=`echo "$1" | sed 's/.*-/-/'`
132 else os=; fi
133 ;;
121 # Split fields of configuration type
122 # shellcheck disable=SC2162
123 IFS="-" read field1 field2 field3 field4 <<EOF
124 $1
125 EOF
126
127 # Separate into logical components for further validation
128 case $1 in
129 *-*-*-*-*)
130 echo Invalid configuration \`"$1"\': more than four components >&2
131 exit 1
132 ;;
133 *-*-*-*)
134 basic_machine=$field1-$field2
135 basic_os=$field3-$field4
136 ;;
137 *-*-*)
138 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
139 # parts
140 maybe_os=$field2-$field3
141 case $maybe_os in
142 nto-qnx* | linux-* | uclinux-uclibc* \
143 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
144 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
145 | storm-chaos* | os2-emx* | rtmk-nova*)
146 basic_machine=$field1
147 basic_os=$maybe_os
148 ;;
149 android-linux)
150 basic_machine=$field1-unknown
151 basic_os=linux-android
152 ;;
153 *)
154 basic_machine=$field1-$field2
155 basic_os=$field3
156 ;;
157 esac
158 ;;
159 *-*)
160 # A lone config we happen to match not fitting any pattern
161 case $field1-$field2 in
162 decstation-3100)
163 basic_machine=mips-dec
164 basic_os=
165 ;;
166 *-*)
167 # Second component is usually, but not always the OS
168 case $field2 in
169 # Prevent following clause from handling this valid os
170 sun*os*)
171 basic_machine=$field1
172 basic_os=$field2
173 ;;
174 # Manufacturers
175 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
176 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
177 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
178 | convergent* | ncr* | news | 32* | 3600* | 3100* \
179 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
180 | ultra | tti* | harris | dolphin | highlevel | gould \
181 | cbm | ns | masscomp | apple | axis | knuth | cray \
182 | microblaze* | sim | cisco \
183 | oki | wec | wrs | winbond)
184 basic_machine=$field1-$field2
185 basic_os=
186 ;;
187 *)
188 basic_machine=$field1
189 basic_os=$field2
190 ;;
191 esac
192 ;;
193 esac
194 ;;
195 *)
196 # Convert single-component short-hands not valid as part of
197 # multi-component configurations.
198 case $field1 in
199 386bsd)
200 basic_machine=i386-pc
201 basic_os=bsd
202 ;;
203 a29khif)
204 basic_machine=a29k-amd
205 basic_os=udi
206 ;;
207 adobe68k)
208 basic_machine=m68010-adobe
209 basic_os=scout
210 ;;
211 alliant)
212 basic_machine=fx80-alliant
213 basic_os=
214 ;;
215 altos | altos3068)
216 basic_machine=m68k-altos
217 basic_os=
218 ;;
219 am29k)
220 basic_machine=a29k-none
221 basic_os=bsd
222 ;;
223 amdahl)
224 basic_machine=580-amdahl
225 basic_os=sysv
226 ;;
227 amiga)
228 basic_machine=m68k-unknown
229 basic_os=
230 ;;
231 amigaos | amigados)
232 basic_machine=m68k-unknown
233 basic_os=amigaos
234 ;;
235 amigaunix | amix)
236 basic_machine=m68k-unknown
237 basic_os=sysv4
238 ;;
239 apollo68)
240 basic_machine=m68k-apollo
241 basic_os=sysv
242 ;;
243 apollo68bsd)
244 basic_machine=m68k-apollo
245 basic_os=bsd
246 ;;
247 aros)
248 basic_machine=i386-pc
249 basic_os=aros
250 ;;
251 aux)
252 basic_machine=m68k-apple
253 basic_os=aux
254 ;;
255 balance)
256 basic_machine=ns32k-sequent
257 basic_os=dynix
258 ;;
259 blackfin)
260 basic_machine=bfin-unknown
261 basic_os=linux
262 ;;
263 cegcc)
264 basic_machine=arm-unknown
265 basic_os=cegcc
266 ;;
267 convex-c1)
268 basic_machine=c1-convex
269 basic_os=bsd
270 ;;
271 convex-c2)
272 basic_machine=c2-convex
273 basic_os=bsd
274 ;;
275 convex-c32)
276 basic_machine=c32-convex
277 basic_os=bsd
278 ;;
279 convex-c34)
280 basic_machine=c34-convex
281 basic_os=bsd
282 ;;
283 convex-c38)
284 basic_machine=c38-convex
285 basic_os=bsd
286 ;;
287 cray)
288 basic_machine=j90-cray
289 basic_os=unicos
290 ;;
291 crds | unos)
292 basic_machine=m68k-crds
293 basic_os=
294 ;;
295 da30)
296 basic_machine=m68k-da30
297 basic_os=
298 ;;
299 decstation | pmax | pmin | dec3100 | decstatn)
300 basic_machine=mips-dec
301 basic_os=
302 ;;
303 delta88)
304 basic_machine=m88k-motorola
305 basic_os=sysv3
306 ;;
307 dicos)
308 basic_machine=i686-pc
309 basic_os=dicos
310 ;;
311 djgpp)
312 basic_machine=i586-pc
313 basic_os=msdosdjgpp
314 ;;
315 ebmon29k)
316 basic_machine=a29k-amd
317 basic_os=ebmon
318 ;;
319 es1800 | OSE68k | ose68k | ose | OSE)
320 basic_machine=m68k-ericsson
321 basic_os=ose
322 ;;
323 gmicro)
324 basic_machine=tron-gmicro
325 basic_os=sysv
326 ;;
327 go32)
328 basic_machine=i386-pc
329 basic_os=go32
330 ;;
331 h8300hms)
332 basic_machine=h8300-hitachi
333 basic_os=hms
334 ;;
335 h8300xray)
336 basic_machine=h8300-hitachi
337 basic_os=xray
338 ;;
339 h8500hms)
340 basic_machine=h8500-hitachi
341 basic_os=hms
342 ;;
343 harris)
344 basic_machine=m88k-harris
345 basic_os=sysv3
346 ;;
347 hp300 | hp300hpux)
348 basic_machine=m68k-hp
349 basic_os=hpux
350 ;;
351 hp300bsd)
352 basic_machine=m68k-hp
353 basic_os=bsd
354 ;;
355 hppaosf)
356 basic_machine=hppa1.1-hp
357 basic_os=osf
358 ;;
359 hppro)
360 basic_machine=hppa1.1-hp
361 basic_os=proelf
362 ;;
363 i386mach)
364 basic_machine=i386-mach
365 basic_os=mach
366 ;;
367 isi68 | isi)
368 basic_machine=m68k-isi
369 basic_os=sysv
370 ;;
371 m68knommu)
372 basic_machine=m68k-unknown
373 basic_os=linux
374 ;;
375 magnum | m3230)
376 basic_machine=mips-mips
377 basic_os=sysv
378 ;;
379 merlin)
380 basic_machine=ns32k-utek
381 basic_os=sysv
382 ;;
383 mingw64)
384 basic_machine=x86_64-pc
385 basic_os=mingw64
386 ;;
387 mingw32)
388 basic_machine=i686-pc
389 basic_os=mingw32
390 ;;
391 mingw32ce)
392 basic_machine=arm-unknown
393 basic_os=mingw32ce
394 ;;
395 monitor)
396 basic_machine=m68k-rom68k
397 basic_os=coff
398 ;;
399 morphos)
400 basic_machine=powerpc-unknown
401 basic_os=morphos
402 ;;
403 moxiebox)
404 basic_machine=moxie-unknown
405 basic_os=moxiebox
406 ;;
407 msdos)
408 basic_machine=i386-pc
409 basic_os=msdos
410 ;;
411 msys)
412 basic_machine=i686-pc
413 basic_os=msys
414 ;;
415 mvs)
416 basic_machine=i370-ibm
417 basic_os=mvs
418 ;;
419 nacl)
420 basic_machine=le32-unknown
421 basic_os=nacl
422 ;;
423 ncr3000)
424 basic_machine=i486-ncr
425 basic_os=sysv4
426 ;;
427 netbsd386)
428 basic_machine=i386-pc
429 basic_os=netbsd
430 ;;
431 netwinder)
432 basic_machine=armv4l-rebel
433 basic_os=linux
434 ;;
435 news | news700 | news800 | news900)
436 basic_machine=m68k-sony
437 basic_os=newsos
438 ;;
439 news1000)
440 basic_machine=m68030-sony
441 basic_os=newsos
442 ;;
443 necv70)
444 basic_machine=v70-nec
445 basic_os=sysv
446 ;;
447 nh3000)
448 basic_machine=m68k-harris
449 basic_os=cxux
450 ;;
451 nh[45]000)
452 basic_machine=m88k-harris
453 basic_os=cxux
454 ;;
455 nindy960)
456 basic_machine=i960-intel
457 basic_os=nindy
458 ;;
459 mon960)
460 basic_machine=i960-intel
461 basic_os=mon960
462 ;;
463 nonstopux)
464 basic_machine=mips-compaq
465 basic_os=nonstopux
466 ;;
467 os400)
468 basic_machine=powerpc-ibm
469 basic_os=os400
470 ;;
471 OSE68000 | ose68000)
472 basic_machine=m68000-ericsson
473 basic_os=ose
474 ;;
475 os68k)
476 basic_machine=m68k-none
477 basic_os=os68k
478 ;;
479 paragon)
480 basic_machine=i860-intel
481 basic_os=osf
482 ;;
483 parisc)
484 basic_machine=hppa-unknown
485 basic_os=linux
486 ;;
487 psp)
488 basic_machine=mipsallegrexel-sony
489 basic_os=psp
490 ;;
491 pw32)
492 basic_machine=i586-unknown
493 basic_os=pw32
494 ;;
495 rdos | rdos64)
496 basic_machine=x86_64-pc
497 basic_os=rdos
498 ;;
499 rdos32)
500 basic_machine=i386-pc
501 basic_os=rdos
502 ;;
503 rom68k)
504 basic_machine=m68k-rom68k
505 basic_os=coff
506 ;;
507 sa29200)
508 basic_machine=a29k-amd
509 basic_os=udi
510 ;;
511 sei)
512 basic_machine=mips-sei
513 basic_os=seiux
514 ;;
515 sequent)
516 basic_machine=i386-sequent
517 basic_os=
518 ;;
519 sps7)
520 basic_machine=m68k-bull
521 basic_os=sysv2
522 ;;
523 st2000)
524 basic_machine=m68k-tandem
525 basic_os=
526 ;;
527 stratus)
528 basic_machine=i860-stratus
529 basic_os=sysv4
530 ;;
531 sun2)
532 basic_machine=m68000-sun
533 basic_os=
534 ;;
535 sun2os3)
536 basic_machine=m68000-sun
537 basic_os=sunos3
538 ;;
539 sun2os4)
540 basic_machine=m68000-sun
541 basic_os=sunos4
542 ;;
543 sun3)
544 basic_machine=m68k-sun
545 basic_os=
546 ;;
547 sun3os3)
548 basic_machine=m68k-sun
549 basic_os=sunos3
550 ;;
551 sun3os4)
552 basic_machine=m68k-sun
553 basic_os=sunos4
554 ;;
555 sun4)
556 basic_machine=sparc-sun
557 basic_os=
558 ;;
559 sun4os3)
560 basic_machine=sparc-sun
561 basic_os=sunos3
562 ;;
563 sun4os4)
564 basic_machine=sparc-sun
565 basic_os=sunos4
566 ;;
567 sun4sol2)
568 basic_machine=sparc-sun
569 basic_os=solaris2
570 ;;
571 sun386 | sun386i | roadrunner)
572 basic_machine=i386-sun
573 basic_os=
574 ;;
575 sv1)
576 basic_machine=sv1-cray
577 basic_os=unicos
578 ;;
579 symmetry)
580 basic_machine=i386-sequent
581 basic_os=dynix
582 ;;
583 t3e)
584 basic_machine=alphaev5-cray
585 basic_os=unicos
586 ;;
587 t90)
588 basic_machine=t90-cray
589 basic_os=unicos
590 ;;
591 toad1)
592 basic_machine=pdp10-xkl
593 basic_os=tops20
594 ;;
595 tpf)
596 basic_machine=s390x-ibm
597 basic_os=tpf
598 ;;
599 udi29k)
600 basic_machine=a29k-amd
601 basic_os=udi
602 ;;
603 ultra3)
604 basic_machine=a29k-nyu
605 basic_os=sym1
606 ;;
607 v810 | necv810)
608 basic_machine=v810-nec
609 basic_os=none
610 ;;
611 vaxv)
612 basic_machine=vax-dec
613 basic_os=sysv
614 ;;
615 vms)
616 basic_machine=vax-dec
617 basic_os=vms
618 ;;
619 vsta)
620 basic_machine=i386-pc
621 basic_os=vsta
622 ;;
623 vxworks960)
624 basic_machine=i960-wrs
625 basic_os=vxworks
626 ;;
627 vxworks68)
628 basic_machine=m68k-wrs
629 basic_os=vxworks
630 ;;
631 vxworks29k)
632 basic_machine=a29k-wrs
633 basic_os=vxworks
634 ;;
635 xbox)
636 basic_machine=i686-pc
637 basic_os=mingw32
638 ;;
639 ymp)
640 basic_machine=ymp-cray
641 basic_os=unicos
642 ;;
643 *)
644 basic_machine=$1
645 basic_os=
646 ;;
647 esac
648 ;;
134649 esac
135650
136 ### Let's recognize common machines as not being operating systems so
137 ### that things like config.sub decstation-3100 work. We also
138 ### recognize some manufacturers as not being operating systems, so we
139 ### can provide default operating systems below.
140 case $os in
141 -sun*os*)
142 # Prevent following clause from handling this invalid input.
143 ;;
144 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
145 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
146 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
150 -apple | -axis | -knuth | -cray | -microblaze*)
151 os=
152 basic_machine=$1
153 ;;
154 -bluegene*)
155 os=-cnk
156 ;;
157 -sim | -cisco | -oki | -wec | -winbond)
158 os=
159 basic_machine=$1
160 ;;
161 -scout)
162 ;;
163 -wrs)
164 os=-vxworks
165 basic_machine=$1
166 ;;
167 -chorusos*)
168 os=-chorusos
169 basic_machine=$1
170 ;;
171 -chorusrdb)
172 os=-chorusrdb
173 basic_machine=$1
174 ;;
175 -hiux*)
176 os=-hiuxwe2
177 ;;
178 -sco6)
179 os=-sco5v6
180 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
181 ;;
182 -sco5)
183 os=-sco3.2v5
184 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
185 ;;
186 -sco4)
187 os=-sco3.2v4
188 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
189 ;;
190 -sco3.2.[4-9]*)
191 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
192 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
193 ;;
194 -sco3.2v[4-9]*)
195 # Don't forget version if it is 3.2v4 or newer.
196 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
197 ;;
198 -sco5v6*)
199 # Don't forget version if it is 3.2v4 or newer.
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
201 ;;
202 -sco*)
203 os=-sco3.2v2
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -udk*)
207 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
208 ;;
209 -isc)
210 os=-isc2.2
211 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
212 ;;
213 -clix*)
214 basic_machine=clipper-intergraph
215 ;;
216 -isc*)
217 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
218 ;;
219 -lynx*178)
220 os=-lynxos178
221 ;;
222 -lynx*5)
223 os=-lynxos5
224 ;;
225 -lynx*)
226 os=-lynxos
227 ;;
228 -ptx*)
229 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
230 ;;
231 -psos*)
232 os=-psos
233 ;;
234 -mint | -mint[0-9]*)
235 basic_machine=m68k-atari
236 os=-mint
237 ;;
238 esac
239
240 # Decode aliases for certain CPU-COMPANY combinations.
651 # Decode 1-component or ad-hoc basic machines
241652 case $basic_machine in
242 # Recognize the basic CPU types without company name.
243 # Some are omitted here because they have special meanings below.
244 1750a | 580 \
245 | a29k \
246 | aarch64 | aarch64_be \
247 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
248 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
249 | am33_2.0 \
250 | arc | arceb \
251 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
252 | avr | avr32 \
253 | ba \
254 | be32 | be64 \
255 | bfin \
256 | c4x | c8051 | clipper \
257 | d10v | d30v | dlx | dsp16xx \
258 | e2k | epiphany \
259 | fido | fr30 | frv | ft32 \
260 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
261 | hexagon \
262 | i370 | i860 | i960 | ia16 | ia64 \
263 | ip2k | iq2000 \
264 | k1om \
265 | le32 | le64 \
266 | lm32 \
267 | m32c | m32r | m32rle | m68000 | m68k | m88k \
268 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
269 | mips | mipsbe | mipseb | mipsel | mipsle \
270 | mips16 \
271 | mips64 | mips64el \
272 | mips64octeon | mips64octeonel \
273 | mips64orion | mips64orionel \
274 | mips64r5900 | mips64r5900el \
275 | mips64vr | mips64vrel \
276 | mips64vr4100 | mips64vr4100el \
277 | mips64vr4300 | mips64vr4300el \
278 | mips64vr5000 | mips64vr5000el \
279 | mips64vr5900 | mips64vr5900el \
280 | mipsisa32 | mipsisa32el \
281 | mipsisa32r2 | mipsisa32r2el \
282 | mipsisa32r6 | mipsisa32r6el \
283 | mipsisa64 | mipsisa64el \
284 | mipsisa64r2 | mipsisa64r2el \
285 | mipsisa64r6 | mipsisa64r6el \
286 | mipsisa64sb1 | mipsisa64sb1el \
287 | mipsisa64sr71k | mipsisa64sr71kel \
288 | mipsr5900 | mipsr5900el \
289 | mipstx39 | mipstx39el \
290 | mn10200 | mn10300 \
291 | moxie \
292 | mt \
293 | msp430 \
294 | nds32 | nds32le | nds32be \
295 | nios | nios2 | nios2eb | nios2el \
296 | ns16k | ns32k \
297 | open8 | or1k | or1knd | or32 \
298 | pdp10 | pj | pjl \
299 | powerpc | powerpc64 | powerpc64le | powerpcle \
300 | pru \
301 | pyramid \
302 | riscv32 | riscv64 \
303 | rl78 | rx \
304 | score \
305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
306 | sh64 | sh64le \
307 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
308 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
309 | spu \
310 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
311 | ubicom32 \
312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
313 | visium \
314 | wasm32 \
315 | x86 | xc16x | xstormy16 | xtensa \
316 | z8k | z80)
317 basic_machine=$basic_machine-unknown
318 ;;
319 c54x)
320 basic_machine=tic54x-unknown
321 ;;
322 c55x)
323 basic_machine=tic55x-unknown
324 ;;
325 c6x)
326 basic_machine=tic6x-unknown
653 # Here we handle the default manufacturer of certain CPU types. It is in
654 # some cases the only manufacturer, in others, it is the most popular.
655 w89k)
656 cpu=hppa1.1
657 vendor=winbond
658 ;;
659 op50n)
660 cpu=hppa1.1
661 vendor=oki
662 ;;
663 op60c)
664 cpu=hppa1.1
665 vendor=oki
666 ;;
667 ibm*)
668 cpu=i370
669 vendor=ibm
670 ;;
671 orion105)
672 cpu=clipper
673 vendor=highlevel
674 ;;
675 mac | mpw | mac-mpw)
676 cpu=m68k
677 vendor=apple
678 ;;
679 pmac | pmac-mpw)
680 cpu=powerpc
681 vendor=apple
682 ;;
683
684 # Recognize the various machine names and aliases which stand
685 # for a CPU type and a company and sometimes even an OS.
686 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
687 cpu=m68000
688 vendor=att
689 ;;
690 3b*)
691 cpu=we32k
692 vendor=att
693 ;;
694 bluegene*)
695 cpu=powerpc
696 vendor=ibm
697 basic_os=cnk
698 ;;
699 decsystem10* | dec10*)
700 cpu=pdp10
701 vendor=dec
702 basic_os=tops10
703 ;;
704 decsystem20* | dec20*)
705 cpu=pdp10
706 vendor=dec
707 basic_os=tops20
708 ;;
709 delta | 3300 | motorola-3300 | motorola-delta \
710 | 3300-motorola | delta-motorola)
711 cpu=m68k
712 vendor=motorola
713 ;;
714 dpx2*)
715 cpu=m68k
716 vendor=bull
717 basic_os=sysv3
718 ;;
719 encore | umax | mmax)
720 cpu=ns32k
721 vendor=encore
722 ;;
723 elxsi)
724 cpu=elxsi
725 vendor=elxsi
726 basic_os=${basic_os:-bsd}
727 ;;
728 fx2800)
729 cpu=i860
730 vendor=alliant
731 ;;
732 genix)
733 cpu=ns32k
734 vendor=ns
735 ;;
736 h3050r* | hiux*)
737 cpu=hppa1.1
738 vendor=hitachi
739 basic_os=hiuxwe2
740 ;;
741 hp3k9[0-9][0-9] | hp9[0-9][0-9])
742 cpu=hppa1.0
743 vendor=hp
744 ;;
745 hp9k2[0-9][0-9] | hp9k31[0-9])
746 cpu=m68000
747 vendor=hp
748 ;;
749 hp9k3[2-9][0-9])
750 cpu=m68k
751 vendor=hp
752 ;;
753 hp9k6[0-9][0-9] | hp6[0-9][0-9])
754 cpu=hppa1.0
755 vendor=hp
756 ;;
757 hp9k7[0-79][0-9] | hp7[0-79][0-9])
758 cpu=hppa1.1
759 vendor=hp
760 ;;
761 hp9k78[0-9] | hp78[0-9])
762 # FIXME: really hppa2.0-hp
763 cpu=hppa1.1
764 vendor=hp
765 ;;
766 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
767 # FIXME: really hppa2.0-hp
768 cpu=hppa1.1
769 vendor=hp
770 ;;
771 hp9k8[0-9][13679] | hp8[0-9][13679])
772 cpu=hppa1.1
773 vendor=hp
774 ;;
775 hp9k8[0-9][0-9] | hp8[0-9][0-9])
776 cpu=hppa1.0
777 vendor=hp
778 ;;
779 i*86v32)
780 cpu=`echo "$1" | sed -e 's/86.*/86/'`
781 vendor=pc
782 basic_os=sysv32
783 ;;
784 i*86v4*)
785 cpu=`echo "$1" | sed -e 's/86.*/86/'`
786 vendor=pc
787 basic_os=sysv4
788 ;;
789 i*86v)
790 cpu=`echo "$1" | sed -e 's/86.*/86/'`
791 vendor=pc
792 basic_os=sysv
793 ;;
794 i*86sol2)
795 cpu=`echo "$1" | sed -e 's/86.*/86/'`
796 vendor=pc
797 basic_os=solaris2
798 ;;
799 j90 | j90-cray)
800 cpu=j90
801 vendor=cray
802 basic_os=${basic_os:-unicos}
803 ;;
804 iris | iris4d)
805 cpu=mips
806 vendor=sgi
807 case $basic_os in
808 irix*)
809 ;;
810 *)
811 basic_os=irix4
812 ;;
813 esac
814 ;;
815 miniframe)
816 cpu=m68000
817 vendor=convergent
818 ;;
819 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
820 cpu=m68k
821 vendor=atari
822 basic_os=mint
823 ;;
824 news-3600 | risc-news)
825 cpu=mips
826 vendor=sony
827 basic_os=newsos
828 ;;
829 next | m*-next)
830 cpu=m68k
831 vendor=next
832 case $basic_os in
833 openstep*)
834 ;;
835 nextstep*)
836 ;;
837 ns2*)
838 basic_os=nextstep2
839 ;;
840 *)
841 basic_os=nextstep3
842 ;;
843 esac
844 ;;
845 np1)
846 cpu=np1
847 vendor=gould
848 ;;
849 op50n-* | op60c-*)
850 cpu=hppa1.1
851 vendor=oki
852 basic_os=proelf
853 ;;
854 pa-hitachi)
855 cpu=hppa1.1
856 vendor=hitachi
857 basic_os=hiuxwe2
858 ;;
859 pbd)
860 cpu=sparc
861 vendor=tti
862 ;;
863 pbb)
864 cpu=m68k
865 vendor=tti
866 ;;
867 pc532)
868 cpu=ns32k
869 vendor=pc532
870 ;;
871 pn)
872 cpu=pn
873 vendor=gould
874 ;;
875 power)
876 cpu=power
877 vendor=ibm
878 ;;
879 ps2)
880 cpu=i386
881 vendor=ibm
882 ;;
883 rm[46]00)
884 cpu=mips
885 vendor=siemens
886 ;;
887 rtpc | rtpc-*)
888 cpu=romp
889 vendor=ibm
890 ;;
891 sde)
892 cpu=mipsisa32
893 vendor=sde
894 basic_os=${basic_os:-elf}
895 ;;
896 simso-wrs)
897 cpu=sparclite
898 vendor=wrs
899 basic_os=vxworks
900 ;;
901 tower | tower-32)
902 cpu=m68k
903 vendor=ncr
904 ;;
905 vpp*|vx|vx-*)
906 cpu=f301
907 vendor=fujitsu
908 ;;
909 w65)
910 cpu=w65
911 vendor=wdc
912 ;;
913 w89k-*)
914 cpu=hppa1.1
915 vendor=winbond
916 basic_os=proelf
917 ;;
918 none)
919 cpu=none
920 vendor=none
327921 ;;
328922 leon|leon[3-9])
329 basic_machine=sparc-$basic_machine
330 ;;
331 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
332 basic_machine=$basic_machine-unknown
333 os=-none
334 ;;
335 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
336 ;;
337 ms1)
338 basic_machine=mt-unknown
339 ;;
340
341 strongarm | thumb | xscale)
342 basic_machine=arm-unknown
343 ;;
344 xgate)
345 basic_machine=$basic_machine-unknown
346 os=-none
347 ;;
348 xscaleeb)
349 basic_machine=armeb-unknown
350 ;;
351
352 xscaleel)
353 basic_machine=armel-unknown
354 ;;
355
923 cpu=sparc
924 vendor=$basic_machine
925 ;;
926 leon-*|leon[3-9]-*)
927 cpu=sparc
928 vendor=`echo "$basic_machine" | sed 's/-.*//'`
929 ;;
930
931 *-*)
932 # shellcheck disable=SC2162
933 IFS="-" read cpu vendor <<EOF
934 $basic_machine
935 EOF
936 ;;
356937 # We use `pc' rather than `unknown'
357938 # because (1) that's what they normally are, and
358939 # (2) the word "unknown" tends to confuse beginning users.
359940 i*86 | x86_64)
360 basic_machine=$basic_machine-pc
361 ;;
362 # Object if more than one company name word.
363 *-*-*)
364 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
365 exit 1
366 ;;
367 # Recognize the basic CPU types with company name.
368 580-* \
369 | a29k-* \
370 | aarch64-* | aarch64_be-* \
371 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
372 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
373 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
374 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
375 | avr-* | avr32-* \
376 | ba-* \
377 | be32-* | be64-* \
378 | bfin-* | bs2000-* \
379 | c[123]* | c30-* | [cjt]90-* | c4x-* \
380 | c8051-* | clipper-* | craynv-* | cydra-* \
381 | d10v-* | d30v-* | dlx-* \
382 | e2k-* | elxsi-* \
383 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
384 | h8300-* | h8500-* \
385 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
386 | hexagon-* \
387 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
388 | ip2k-* | iq2000-* \
389 | k1om-* \
390 | le32-* | le64-* \
391 | lm32-* \
392 | m32c-* | m32r-* | m32rle-* \
393 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
394 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
395 | microblaze-* | microblazeel-* \
396 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
397 | mips16-* \
398 | mips64-* | mips64el-* \
399 | mips64octeon-* | mips64octeonel-* \
400 | mips64orion-* | mips64orionel-* \
401 | mips64r5900-* | mips64r5900el-* \
402 | mips64vr-* | mips64vrel-* \
403 | mips64vr4100-* | mips64vr4100el-* \
404 | mips64vr4300-* | mips64vr4300el-* \
405 | mips64vr5000-* | mips64vr5000el-* \
406 | mips64vr5900-* | mips64vr5900el-* \
407 | mipsisa32-* | mipsisa32el-* \
408 | mipsisa32r2-* | mipsisa32r2el-* \
409 | mipsisa32r6-* | mipsisa32r6el-* \
410 | mipsisa64-* | mipsisa64el-* \
411 | mipsisa64r2-* | mipsisa64r2el-* \
412 | mipsisa64r6-* | mipsisa64r6el-* \
413 | mipsisa64sb1-* | mipsisa64sb1el-* \
414 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
415 | mipsr5900-* | mipsr5900el-* \
416 | mipstx39-* | mipstx39el-* \
417 | mmix-* \
418 | mt-* \
419 | msp430-* \
420 | nds32-* | nds32le-* | nds32be-* \
421 | nios-* | nios2-* | nios2eb-* | nios2el-* \
422 | none-* | np1-* | ns16k-* | ns32k-* \
423 | open8-* \
424 | or1k*-* \
425 | orion-* \
426 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
427 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
428 | pru-* \
429 | pyramid-* \
430 | riscv32-* | riscv64-* \
431 | rl78-* | romp-* | rs6000-* | rx-* \
432 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
433 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
434 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
435 | sparclite-* \
436 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
437 | tahoe-* \
438 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
439 | tile*-* \
440 | tron-* \
441 | ubicom32-* \
442 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
443 | vax-* \
444 | visium-* \
445 | wasm32-* \
446 | we32k-* \
447 | x86-* | x86_64-* | xc16x-* | xps100-* \
448 | xstormy16-* | xtensa*-* \
449 | ymp-* \
450 | z8k-* | z80-*)
451 ;;
452 # Recognize the basic CPU types without company name, with glob match.
453 xtensa*)
454 basic_machine=$basic_machine-unknown
455 ;;
456 # Recognize the various machine names and aliases which stand
457 # for a CPU type and a company and sometimes even an OS.
458 386bsd)
459 basic_machine=i386-pc
460 os=-bsd
461 ;;
462 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
463 basic_machine=m68000-att
464 ;;
465 3b*)
466 basic_machine=we32k-att
467 ;;
468 a29khif)
469 basic_machine=a29k-amd
470 os=-udi
471 ;;
472 abacus)
473 basic_machine=abacus-unknown
474 ;;
475 adobe68k)
476 basic_machine=m68010-adobe
477 os=-scout
478 ;;
479 alliant | fx80)
480 basic_machine=fx80-alliant
481 ;;
482 altos | altos3068)
483 basic_machine=m68k-altos
484 ;;
485 am29k)
486 basic_machine=a29k-none
487 os=-bsd
488 ;;
489 amd64)
490 basic_machine=x86_64-pc
491 ;;
941 cpu=$basic_machine
942 vendor=pc
943 ;;
944 # These rules are duplicated from below for sake of the special case above;
945 # i.e. things that normalized to x86 arches should also default to "pc"
946 pc98)
947 cpu=i386
948 vendor=pc
949 ;;
950 x64 | amd64)
951 cpu=x86_64
952 vendor=pc
953 ;;
954 # Recognize the basic CPU types without company name.
955 *)
956 cpu=$basic_machine
957 vendor=unknown
958 ;;
959 esac
960
961 unset -v basic_machine
962
963 # Decode basic machines in the full and proper CPU-Company form.
964 case $cpu-$vendor in
965 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
966 # some cases the only manufacturer, in others, it is the most popular.
967 craynv-unknown)
968 vendor=cray
969 basic_os=${basic_os:-unicosmp}
970 ;;
971 c90-unknown | c90-cray)
972 vendor=cray
973 basic_os=${Basic_os:-unicos}
974 ;;
975 fx80-unknown)
976 vendor=alliant
977 ;;
978 romp-unknown)
979 vendor=ibm
980 ;;
981 mmix-unknown)
982 vendor=knuth
983 ;;
984 microblaze-unknown | microblazeel-unknown)
985 vendor=xilinx
986 ;;
987 rs6000-unknown)
988 vendor=ibm
989 ;;
990 vax-unknown)
991 vendor=dec
992 ;;
993 pdp11-unknown)
994 vendor=dec
995 ;;
996 we32k-unknown)
997 vendor=att
998 ;;
999 cydra-unknown)
1000 vendor=cydrome
1001 ;;
1002 i370-ibm*)
1003 vendor=ibm
1004 ;;
1005 orion-unknown)
1006 vendor=highlevel
1007 ;;
1008 xps-unknown | xps100-unknown)
1009 cpu=xps100
1010 vendor=honeywell
1011 ;;
1012
1013 # Here we normalize CPU types with a missing or matching vendor
1014 dpx20-unknown | dpx20-bull)
1015 cpu=rs6000
1016 vendor=bull
1017 basic_os=${basic_os:-bosx}
1018 ;;
1019
1020 # Here we normalize CPU types irrespective of the vendor
4921021 amd64-*)
493 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
494 ;;
495 amdahl)
496 basic_machine=580-amdahl
497 os=-sysv
498 ;;
499 amiga | amiga-*)
500 basic_machine=m68k-unknown
501 ;;
502 amigaos | amigados)
503 basic_machine=m68k-unknown
504 os=-amigaos
505 ;;
506 amigaunix | amix)
507 basic_machine=m68k-unknown
508 os=-sysv4
509 ;;
510 apollo68)
511 basic_machine=m68k-apollo
512 os=-sysv
513 ;;
514 apollo68bsd)
515 basic_machine=m68k-apollo
516 os=-bsd
517 ;;
518 aros)
519 basic_machine=i386-pc
520 os=-aros
521 ;;
522 asmjs)
523 basic_machine=asmjs-unknown
524 ;;
525 aux)
526 basic_machine=m68k-apple
527 os=-aux
528 ;;
529 balance)
530 basic_machine=ns32k-sequent
531 os=-dynix
532 ;;
533 blackfin)
534 basic_machine=bfin-unknown
535 os=-linux
1022 cpu=x86_64
5361023 ;;
5371024 blackfin-*)
538 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
539 os=-linux
540 ;;
541 bluegene*)
542 basic_machine=powerpc-ibm
543 os=-cnk
1025 cpu=bfin
1026 basic_os=linux
5441027 ;;
5451028 c54x-*)
546 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1029 cpu=tic54x
5471030 ;;
5481031 c55x-*)
549 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1032 cpu=tic55x
5501033 ;;
5511034 c6x-*)
552 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
553 ;;
554 c90)
555 basic_machine=c90-cray
556 os=-unicos
557 ;;
558 cegcc)
559 basic_machine=arm-unknown
560 os=-cegcc
561 ;;
562 convex-c1)
563 basic_machine=c1-convex
564 os=-bsd
565 ;;
566 convex-c2)
567 basic_machine=c2-convex
568 os=-bsd
569 ;;
570 convex-c32)
571 basic_machine=c32-convex
572 os=-bsd
573 ;;
574 convex-c34)
575 basic_machine=c34-convex
576 os=-bsd
577 ;;
578 convex-c38)
579 basic_machine=c38-convex
580 os=-bsd
581 ;;
582 cray | j90)
583 basic_machine=j90-cray
584 os=-unicos
585 ;;
586 craynv)
587 basic_machine=craynv-cray
588 os=-unicosmp
589 ;;
590 cr16 | cr16-*)
591 basic_machine=cr16-unknown
592 os=-elf
593 ;;
594 crds | unos)
595 basic_machine=m68k-crds
596 ;;
597 crisv32 | crisv32-* | etraxfs*)
598 basic_machine=crisv32-axis
599 ;;
600 cris | cris-* | etrax*)
601 basic_machine=cris-axis
602 ;;
603 crx)
604 basic_machine=crx-unknown
605 os=-elf
606 ;;
607 da30 | da30-*)
608 basic_machine=m68k-da30
609 ;;
610 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
611 basic_machine=mips-dec
612 ;;
613 decsystem10* | dec10*)
614 basic_machine=pdp10-dec
615 os=-tops10
616 ;;
617 decsystem20* | dec20*)
618 basic_machine=pdp10-dec
619 os=-tops20
620 ;;
621 delta | 3300 | motorola-3300 | motorola-delta \
622 | 3300-motorola | delta-motorola)
623 basic_machine=m68k-motorola
624 ;;
625 delta88)
626 basic_machine=m88k-motorola
627 os=-sysv3
628 ;;
629 dicos)
630 basic_machine=i686-pc
631 os=-dicos
632 ;;
633 djgpp)
634 basic_machine=i586-pc
635 os=-msdosdjgpp
636 ;;
637 dpx20 | dpx20-*)
638 basic_machine=rs6000-bull
639 os=-bosx
640 ;;
641 dpx2*)
642 basic_machine=m68k-bull
643 os=-sysv3
644 ;;
645 e500v[12])
646 basic_machine=powerpc-unknown
647 os=$os"spe"
1035 cpu=tic6x
6481036 ;;
6491037 e500v[12]-*)
650 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
651 os=$os"spe"
652 ;;
653 ebmon29k)
654 basic_machine=a29k-amd
655 os=-ebmon
656 ;;
657 elxsi)
658 basic_machine=elxsi-elxsi
659 os=-bsd
660 ;;
661 encore | umax | mmax)
662 basic_machine=ns32k-encore
663 ;;
664 es1800 | OSE68k | ose68k | ose | OSE)
665 basic_machine=m68k-ericsson
666 os=-ose
667 ;;
668 fx2800)
669 basic_machine=i860-alliant
670 ;;
671 genix)
672 basic_machine=ns32k-ns
673 ;;
674 gmicro)
675 basic_machine=tron-gmicro
676 os=-sysv
677 ;;
678 go32)
679 basic_machine=i386-pc
680 os=-go32
681 ;;
682 h3050r* | hiux*)
683 basic_machine=hppa1.1-hitachi
684 os=-hiuxwe2
685 ;;
686 h8300hms)
687 basic_machine=h8300-hitachi
688 os=-hms
689 ;;
690 h8300xray)
691 basic_machine=h8300-hitachi
692 os=-xray
693 ;;
694 h8500hms)
695 basic_machine=h8500-hitachi
696 os=-hms
697 ;;
698 harris)
699 basic_machine=m88k-harris
700 os=-sysv3
701 ;;
702 hp300-*)
703 basic_machine=m68k-hp
704 ;;
705 hp300bsd)
706 basic_machine=m68k-hp
707 os=-bsd
708 ;;
709 hp300hpux)
710 basic_machine=m68k-hp
711 os=-hpux
712 ;;
713 hp3k9[0-9][0-9] | hp9[0-9][0-9])
714 basic_machine=hppa1.0-hp
715 ;;
716 hp9k2[0-9][0-9] | hp9k31[0-9])
717 basic_machine=m68000-hp
718 ;;
719 hp9k3[2-9][0-9])
720 basic_machine=m68k-hp
721 ;;
722 hp9k6[0-9][0-9] | hp6[0-9][0-9])
723 basic_machine=hppa1.0-hp
724 ;;
725 hp9k7[0-79][0-9] | hp7[0-79][0-9])
726 basic_machine=hppa1.1-hp
727 ;;
728 hp9k78[0-9] | hp78[0-9])
729 # FIXME: really hppa2.0-hp
730 basic_machine=hppa1.1-hp
731 ;;
732 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
733 # FIXME: really hppa2.0-hp
734 basic_machine=hppa1.1-hp
735 ;;
736 hp9k8[0-9][13679] | hp8[0-9][13679])
737 basic_machine=hppa1.1-hp
738 ;;
739 hp9k8[0-9][0-9] | hp8[0-9][0-9])
740 basic_machine=hppa1.0-hp
741 ;;
742 hppaosf)
743 basic_machine=hppa1.1-hp
744 os=-osf
745 ;;
746 hppro)
747 basic_machine=hppa1.1-hp
748 os=-proelf
749 ;;
750 i370-ibm* | ibm*)
751 basic_machine=i370-ibm
752 ;;
753 i*86v32)
754 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
755 os=-sysv32
756 ;;
757 i*86v4*)
758 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
759 os=-sysv4
760 ;;
761 i*86v)
762 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
763 os=-sysv
764 ;;
765 i*86sol2)
766 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
767 os=-solaris2
768 ;;
769 i386mach)
770 basic_machine=i386-mach
771 os=-mach
772 ;;
773 vsta)
774 basic_machine=i386-unknown
775 os=-vsta
776 ;;
777 iris | iris4d)
778 basic_machine=mips-sgi
779 case $os in
780 -irix*)
781 ;;
782 *)
783 os=-irix4
784 ;;
1038 cpu=powerpc
1039 basic_os=${basic_os}"spe"
1040 ;;
1041 mips3*-*)
1042 cpu=mips64
1043 ;;
1044 ms1-*)
1045 cpu=mt
1046 ;;
1047 m68knommu-*)
1048 cpu=m68k
1049 basic_os=linux
1050 ;;
1051 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1052 cpu=s12z
1053 ;;
1054 openrisc-*)
1055 cpu=or32
1056 ;;
1057 parisc-*)
1058 cpu=hppa
1059 basic_os=linux
1060 ;;
1061 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1062 cpu=i586
1063 ;;
1064 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1065 cpu=i686
1066 ;;
1067 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1068 cpu=i686
1069 ;;
1070 pentium4-*)
1071 cpu=i786
1072 ;;
1073 pc98-*)
1074 cpu=i386
1075 ;;
1076 ppc-* | ppcbe-*)
1077 cpu=powerpc
1078 ;;
1079 ppcle-* | powerpclittle-*)
1080 cpu=powerpcle
1081 ;;
1082 ppc64-*)
1083 cpu=powerpc64
1084 ;;
1085 ppc64le-* | powerpc64little-*)
1086 cpu=powerpc64le
1087 ;;
1088 sb1-*)
1089 cpu=mipsisa64sb1
1090 ;;
1091 sb1el-*)
1092 cpu=mipsisa64sb1el
1093 ;;
1094 sh5e[lb]-*)
1095 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1096 ;;
1097 spur-*)
1098 cpu=spur
1099 ;;
1100 strongarm-* | thumb-*)
1101 cpu=arm
1102 ;;
1103 tx39-*)
1104 cpu=mipstx39
1105 ;;
1106 tx39el-*)
1107 cpu=mipstx39el
1108 ;;
1109 x64-*)
1110 cpu=x86_64
1111 ;;
1112 xscale-* | xscalee[bl]-*)
1113 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1114 ;;
1115 arm64-*)
1116 cpu=aarch64
1117 ;;
1118
1119 # Recognize the canonical CPU Types that limit and/or modify the
1120 # company names they are paired with.
1121 cr16-*)
1122 basic_os=${basic_os:-elf}
1123 ;;
1124 crisv32-* | etraxfs*-*)
1125 cpu=crisv32
1126 vendor=axis
1127 ;;
1128 cris-* | etrax*-*)
1129 cpu=cris
1130 vendor=axis
1131 ;;
1132 crx-*)
1133 basic_os=${basic_os:-elf}
1134 ;;
1135 neo-tandem)
1136 cpu=neo
1137 vendor=tandem
1138 ;;
1139 nse-tandem)
1140 cpu=nse
1141 vendor=tandem
1142 ;;
1143 nsr-tandem)
1144 cpu=nsr
1145 vendor=tandem
1146 ;;
1147 nsv-tandem)
1148 cpu=nsv
1149 vendor=tandem
1150 ;;
1151 nsx-tandem)
1152 cpu=nsx
1153 vendor=tandem
1154 ;;
1155 mipsallegrexel-sony)
1156 cpu=mipsallegrexel
1157 vendor=sony
1158 ;;
1159 tile*-*)
1160 basic_os=${basic_os:-linux-gnu}
1161 ;;
1162
1163 *)
1164 # Recognize the canonical CPU types that are allowed with any
1165 # company name.
1166 case $cpu in
1167 1750a | 580 \
1168 | a29k \
1169 | aarch64 | aarch64_be \
1170 | abacus \
1171 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1172 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1173 | alphapca5[67] | alpha64pca5[67] \
1174 | am33_2.0 \
1175 | amdgcn \
1176 | arc | arceb | arc32 | arc64 \
1177 | arm | arm[lb]e | arme[lb] | armv* \
1178 | avr | avr32 \
1179 | asmjs \
1180 | ba \
1181 | be32 | be64 \
1182 | bfin | bpf | bs2000 \
1183 | c[123]* | c30 | [cjt]90 | c4x \
1184 | c8051 | clipper | craynv | csky | cydra \
1185 | d10v | d30v | dlx | dsp16xx \
1186 | e2k | elxsi | epiphany \
1187 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1188 | h8300 | h8500 \
1189 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1190 | hexagon \
1191 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1192 | ip2k | iq2000 \
1193 | k1om \
1194 | le32 | le64 \
1195 | lm32 \
1196 | loongarch32 | loongarch64 | loongarchx32 \
1197 | m32c | m32r | m32rle \
1198 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
1199 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
1200 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1201 | microblaze | microblazeel \
1202 | mips | mipsbe | mipseb | mipsel | mipsle \
1203 | mips16 \
1204 | mips64 | mips64eb | mips64el \
1205 | mips64octeon | mips64octeonel \
1206 | mips64orion | mips64orionel \
1207 | mips64r5900 | mips64r5900el \
1208 | mips64vr | mips64vrel \
1209 | mips64vr4100 | mips64vr4100el \
1210 | mips64vr4300 | mips64vr4300el \
1211 | mips64vr5000 | mips64vr5000el \
1212 | mips64vr5900 | mips64vr5900el \
1213 | mipsisa32 | mipsisa32el \
1214 | mipsisa32r2 | mipsisa32r2el \
1215 | mipsisa32r3 | mipsisa32r3el \
1216 | mipsisa32r5 | mipsisa32r5el \
1217 | mipsisa32r6 | mipsisa32r6el \
1218 | mipsisa64 | mipsisa64el \
1219 | mipsisa64r2 | mipsisa64r2el \
1220 | mipsisa64r3 | mipsisa64r3el \
1221 | mipsisa64r5 | mipsisa64r5el \
1222 | mipsisa64r6 | mipsisa64r6el \
1223 | mipsisa64sb1 | mipsisa64sb1el \
1224 | mipsisa64sr71k | mipsisa64sr71kel \
1225 | mipsr5900 | mipsr5900el \
1226 | mipstx39 | mipstx39el \
1227 | mmix \
1228 | mn10200 | mn10300 \
1229 | moxie \
1230 | mt \
1231 | msp430 \
1232 | nds32 | nds32le | nds32be \
1233 | nfp \
1234 | nios | nios2 | nios2eb | nios2el \
1235 | none | np1 | ns16k | ns32k | nvptx \
1236 | open8 \
1237 | or1k* \
1238 | or32 \
1239 | orion \
1240 | picochip \
1241 | pdp10 | pdp11 | pj | pjl | pn | power \
1242 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1243 | pru \
1244 | pyramid \
1245 | riscv | riscv32 | riscv32be | riscv64 | riscv64be \
1246 | rl78 | romp | rs6000 | rx \
1247 | s390 | s390x \
1248 | score \
1249 | sh | shl \
1250 | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1251 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1252 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1253 | sparclite \
1254 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1255 | spu \
1256 | tahoe \
1257 | thumbv7* \
1258 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1259 | tron \
1260 | ubicom32 \
1261 | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1262 | vax \
1263 | visium \
1264 | w65 \
1265 | wasm32 | wasm64 \
1266 | we32k \
1267 | x86 | x86_64 | xc16x | xgate | xps100 \
1268 | xstormy16 | xtensa* \
1269 | ymp \
1270 | z8k | z80)
1271 ;;
1272
1273 *)
1274 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1275 exit 1
1276 ;;
7851277 esac
7861278 ;;
787 isi68 | isi)
788 basic_machine=m68k-isi
789 os=-sysv
790 ;;
791 leon-*|leon[3-9]-*)
792 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
793 ;;
794 m68knommu)
795 basic_machine=m68k-unknown
796 os=-linux
797 ;;
798 m68knommu-*)
799 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
800 os=-linux
801 ;;
802 magnum | m3230)
803 basic_machine=mips-mips
804 os=-sysv
805 ;;
806 merlin)
807 basic_machine=ns32k-utek
808 os=-sysv
809 ;;
810 microblaze*)
811 basic_machine=microblaze-xilinx
812 ;;
813 mingw64)
814 basic_machine=x86_64-pc
815 os=-mingw64
816 ;;
817 mingw32)
818 basic_machine=i686-pc
819 os=-mingw32
820 ;;
821 mingw32ce)
822 basic_machine=arm-unknown
823 os=-mingw32ce
824 ;;
825 miniframe)
826 basic_machine=m68000-convergent
827 ;;
828 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
829 basic_machine=m68k-atari
830 os=-mint
831 ;;
832 mips3*-*)
833 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
834 ;;
835 mips3*)
836 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
837 ;;
838 monitor)
839 basic_machine=m68k-rom68k
840 os=-coff
841 ;;
842 morphos)
843 basic_machine=powerpc-unknown
844 os=-morphos
845 ;;
846 moxiebox)
847 basic_machine=moxie-unknown
848 os=-moxiebox
849 ;;
850 msdos)
851 basic_machine=i386-pc
852 os=-msdos
853 ;;
854 ms1-*)
855 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
856 ;;
857 msys)
858 basic_machine=i686-pc
859 os=-msys
860 ;;
861 mvs)
862 basic_machine=i370-ibm
863 os=-mvs
864 ;;
865 nacl)
866 basic_machine=le32-unknown
867 os=-nacl
868 ;;
869 ncr3000)
870 basic_machine=i486-ncr
871 os=-sysv4
872 ;;
873 netbsd386)
874 basic_machine=i386-unknown
875 os=-netbsd
876 ;;
877 netwinder)
878 basic_machine=armv4l-rebel
879 os=-linux
880 ;;
881 news | news700 | news800 | news900)
882 basic_machine=m68k-sony
883 os=-newsos
884 ;;
885 news1000)
886 basic_machine=m68030-sony
887 os=-newsos
888 ;;
889 news-3600 | risc-news)
890 basic_machine=mips-sony
891 os=-newsos
892 ;;
893 necv70)
894 basic_machine=v70-nec
895 os=-sysv
896 ;;
897 next | m*-next)
898 basic_machine=m68k-next
899 case $os in
900 -nextstep* )
901 ;;
902 -ns2*)
903 os=-nextstep2
904 ;;
905 *)
906 os=-nextstep3
907 ;;
908 esac
909 ;;
910 nh3000)
911 basic_machine=m68k-harris
912 os=-cxux
913 ;;
914 nh[45]000)
915 basic_machine=m88k-harris
916 os=-cxux
917 ;;
918 nindy960)
919 basic_machine=i960-intel
920 os=-nindy
921 ;;
922 mon960)
923 basic_machine=i960-intel
924 os=-mon960
925 ;;
926 nonstopux)
927 basic_machine=mips-compaq
928 os=-nonstopux
929 ;;
930 np1)
931 basic_machine=np1-gould
932 ;;
933 neo-tandem)
934 basic_machine=neo-tandem
935 ;;
936 nse-tandem)
937 basic_machine=nse-tandem
938 ;;
939 nsr-tandem)
940 basic_machine=nsr-tandem
941 ;;
942 nsv-tandem)
943 basic_machine=nsv-tandem
944 ;;
945 nsx-tandem)
946 basic_machine=nsx-tandem
947 ;;
948 op50n-* | op60c-*)
949 basic_machine=hppa1.1-oki
950 os=-proelf
951 ;;
952 openrisc | openrisc-*)
953 basic_machine=or32-unknown
954 ;;
955 os400)
956 basic_machine=powerpc-ibm
957 os=-os400
958 ;;
959 OSE68000 | ose68000)
960 basic_machine=m68000-ericsson
961 os=-ose
962 ;;
963 os68k)
964 basic_machine=m68k-none
965 os=-os68k
966 ;;
967 pa-hitachi)
968 basic_machine=hppa1.1-hitachi
969 os=-hiuxwe2
970 ;;
971 paragon)
972 basic_machine=i860-intel
973 os=-osf
974 ;;
975 parisc)
976 basic_machine=hppa-unknown
977 os=-linux
978 ;;
979 parisc-*)
980 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
981 os=-linux
982 ;;
983 pbd)
984 basic_machine=sparc-tti
985 ;;
986 pbb)
987 basic_machine=m68k-tti
988 ;;
989 pc532 | pc532-*)
990 basic_machine=ns32k-pc532
991 ;;
992 pc98)
993 basic_machine=i386-pc
994 ;;
995 pc98-*)
996 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
997 ;;
998 pentium | p5 | k5 | k6 | nexgen | viac3)
999 basic_machine=i586-pc
1000 ;;
1001 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1002 basic_machine=i686-pc
1003 ;;
1004 pentiumii | pentium2 | pentiumiii | pentium3)
1005 basic_machine=i686-pc
1006 ;;
1007 pentium4)
1008 basic_machine=i786-pc
1009 ;;
1010 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1011 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1012 ;;
1013 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1014 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1015 ;;
1016 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1017 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1018 ;;
1019 pentium4-*)
1020 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1021 ;;
1022 pn)
1023 basic_machine=pn-gould
1024 ;;
1025 power) basic_machine=power-ibm
1026 ;;
1027 ppc | ppcbe) basic_machine=powerpc-unknown
1028 ;;
1029 ppc-* | ppcbe-*)
1030 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1031 ;;
1032 ppcle | powerpclittle)
1033 basic_machine=powerpcle-unknown
1034 ;;
1035 ppcle-* | powerpclittle-*)
1036 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1037 ;;
1038 ppc64) basic_machine=powerpc64-unknown
1039 ;;
1040 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 ppc64le | powerpc64little)
1043 basic_machine=powerpc64le-unknown
1044 ;;
1045 ppc64le-* | powerpc64little-*)
1046 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1047 ;;
1048 ps2)
1049 basic_machine=i386-ibm
1050 ;;
1051 pw32)
1052 basic_machine=i586-unknown
1053 os=-pw32
1054 ;;
1055 rdos | rdos64)
1056 basic_machine=x86_64-pc
1057 os=-rdos
1058 ;;
1059 rdos32)
1060 basic_machine=i386-pc
1061 os=-rdos
1062 ;;
1063 rom68k)
1064 basic_machine=m68k-rom68k
1065 os=-coff
1066 ;;
1067 rm[46]00)
1068 basic_machine=mips-siemens
1069 ;;
1070 rtpc | rtpc-*)
1071 basic_machine=romp-ibm
1072 ;;
1073 s390 | s390-*)
1074 basic_machine=s390-ibm
1075 ;;
1076 s390x | s390x-*)
1077 basic_machine=s390x-ibm
1078 ;;
1079 sa29200)
1080 basic_machine=a29k-amd
1081 os=-udi
1082 ;;
1083 sb1)
1084 basic_machine=mipsisa64sb1-unknown
1085 ;;
1086 sb1el)
1087 basic_machine=mipsisa64sb1el-unknown
1088 ;;
1089 sde)
1090 basic_machine=mipsisa32-sde
1091 os=-elf
1092 ;;
1093 sei)
1094 basic_machine=mips-sei
1095 os=-seiux
1096 ;;
1097 sequent)
1098 basic_machine=i386-sequent
1099 ;;
1100 sh5el)
1101 basic_machine=sh5le-unknown
1102 ;;
1103 simso-wrs)
1104 basic_machine=sparclite-wrs
1105 os=-vxworks
1106 ;;
1107 sps7)
1108 basic_machine=m68k-bull
1109 os=-sysv2
1110 ;;
1111 spur)
1112 basic_machine=spur-unknown
1113 ;;
1114 st2000)
1115 basic_machine=m68k-tandem
1116 ;;
1117 stratus)
1118 basic_machine=i860-stratus
1119 os=-sysv4
1120 ;;
1121 strongarm-* | thumb-*)
1122 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1123 ;;
1124 sun2)
1125 basic_machine=m68000-sun
1126 ;;
1127 sun2os3)
1128 basic_machine=m68000-sun
1129 os=-sunos3
1130 ;;
1131 sun2os4)
1132 basic_machine=m68000-sun
1133 os=-sunos4
1134 ;;
1135 sun3os3)
1136 basic_machine=m68k-sun
1137 os=-sunos3
1138 ;;
1139 sun3os4)
1140 basic_machine=m68k-sun
1141 os=-sunos4
1142 ;;
1143 sun4os3)
1144 basic_machine=sparc-sun
1145 os=-sunos3
1146 ;;
1147 sun4os4)
1148 basic_machine=sparc-sun
1149 os=-sunos4
1150 ;;
1151 sun4sol2)
1152 basic_machine=sparc-sun
1153 os=-solaris2
1154 ;;
1155 sun3 | sun3-*)
1156 basic_machine=m68k-sun
1157 ;;
1158 sun4)
1159 basic_machine=sparc-sun
1160 ;;
1161 sun386 | sun386i | roadrunner)
1162 basic_machine=i386-sun
1163 ;;
1164 sv1)
1165 basic_machine=sv1-cray
1166 os=-unicos
1167 ;;
1168 symmetry)
1169 basic_machine=i386-sequent
1170 os=-dynix
1171 ;;
1172 t3e)
1173 basic_machine=alphaev5-cray
1174 os=-unicos
1175 ;;
1176 t90)
1177 basic_machine=t90-cray
1178 os=-unicos
1179 ;;
1180 tile*)
1181 basic_machine=$basic_machine-unknown
1182 os=-linux-gnu
1183 ;;
1184 tx39)
1185 basic_machine=mipstx39-unknown
1186 ;;
1187 tx39el)
1188 basic_machine=mipstx39el-unknown
1189 ;;
1190 toad1)
1191 basic_machine=pdp10-xkl
1192 os=-tops20
1193 ;;
1194 tower | tower-32)
1195 basic_machine=m68k-ncr
1196 ;;
1197 tpf)
1198 basic_machine=s390x-ibm
1199 os=-tpf
1200 ;;
1201 udi29k)
1202 basic_machine=a29k-amd
1203 os=-udi
1204 ;;
1205 ultra3)
1206 basic_machine=a29k-nyu
1207 os=-sym1
1208 ;;
1209 v810 | necv810)
1210 basic_machine=v810-nec
1211 os=-none
1212 ;;
1213 vaxv)
1214 basic_machine=vax-dec
1215 os=-sysv
1216 ;;
1217 vms)
1218 basic_machine=vax-dec
1219 os=-vms
1220 ;;
1221 vpp*|vx|vx-*)
1222 basic_machine=f301-fujitsu
1223 ;;
1224 vxworks960)
1225 basic_machine=i960-wrs
1226 os=-vxworks
1227 ;;
1228 vxworks68)
1229 basic_machine=m68k-wrs
1230 os=-vxworks
1231 ;;
1232 vxworks29k)
1233 basic_machine=a29k-wrs
1234 os=-vxworks
1235 ;;
1236 w65*)
1237 basic_machine=w65-wdc
1238 os=-none
1239 ;;
1240 w89k-*)
1241 basic_machine=hppa1.1-winbond
1242 os=-proelf
1243 ;;
1244 x64)
1245 basic_machine=x86_64-pc
1246 ;;
1247 xbox)
1248 basic_machine=i686-pc
1249 os=-mingw32
1250 ;;
1251 xps | xps100)
1252 basic_machine=xps100-honeywell
1253 ;;
1254 xscale-* | xscalee[bl]-*)
1255 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1256 ;;
1257 ymp)
1258 basic_machine=ymp-cray
1259 os=-unicos
1260 ;;
1261 none)
1262 basic_machine=none-none
1263 os=-none
1264 ;;
1265
1266 # Here we handle the default manufacturer of certain CPU types. It is in
1267 # some cases the only manufacturer, in others, it is the most popular.
1268 w89k)
1269 basic_machine=hppa1.1-winbond
1270 ;;
1271 op50n)
1272 basic_machine=hppa1.1-oki
1273 ;;
1274 op60c)
1275 basic_machine=hppa1.1-oki
1276 ;;
1277 romp)
1278 basic_machine=romp-ibm
1279 ;;
1280 mmix)
1281 basic_machine=mmix-knuth
1282 ;;
1283 rs6000)
1284 basic_machine=rs6000-ibm
1285 ;;
1286 vax)
1287 basic_machine=vax-dec
1288 ;;
1289 pdp11)
1290 basic_machine=pdp11-dec
1291 ;;
1292 we32k)
1293 basic_machine=we32k-att
1294 ;;
1295 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1296 basic_machine=sh-unknown
1297 ;;
1298 cydra)
1299 basic_machine=cydra-cydrome
1300 ;;
1301 orion)
1302 basic_machine=orion-highlevel
1303 ;;
1304 orion105)
1305 basic_machine=clipper-highlevel
1306 ;;
1307 mac | mpw | mac-mpw)
1308 basic_machine=m68k-apple
1309 ;;
1310 pmac | pmac-mpw)
1311 basic_machine=powerpc-apple
1312 ;;
1313 *-unknown)
1314 # Make sure to match an already-canonicalized machine name.
1279 esac
1280
1281 # Here we canonicalize certain aliases for manufacturers.
1282 case $vendor in
1283 digital*)
1284 vendor=dec
1285 ;;
1286 commodore*)
1287 vendor=cbm
13151288 ;;
13161289 *)
1317 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1318 exit 1
13191290 ;;
13201291 esac
13211292
1322 # Here we canonicalize certain aliases for manufacturers.
1323 case $basic_machine in
1324 *-digital*)
1325 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1326 ;;
1327 *-commodore*)
1328 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1293 # Decode manufacturer-specific aliases for certain operating systems.
1294
1295 if test x$basic_os != x
1296 then
1297
1298 # First recognize some ad-hoc caes, or perhaps split kernel-os, or else just
1299 # set os.
1300 case $basic_os in
1301 gnu/linux*)
1302 kernel=linux
1303 os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'`
1304 ;;
1305 os2-emx)
1306 kernel=os2
1307 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'`
1308 ;;
1309 nto-qnx*)
1310 kernel=nto
1311 os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'`
1312 ;;
1313 *-*)
1314 # shellcheck disable=SC2162
1315 IFS="-" read kernel os <<EOF
1316 $basic_os
1317 EOF
1318 ;;
1319 # Default OS when just kernel was specified
1320 nto*)
1321 kernel=nto
1322 os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
1323 ;;
1324 linux*)
1325 kernel=linux
1326 os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
13291327 ;;
13301328 *)
1329 kernel=
1330 os=$basic_os
13311331 ;;
13321332 esac
13331333
1334 # Decode manufacturer-specific aliases for certain operating systems.
1335
1336 if [ x"$os" != x"" ]
1337 then
1334 # Now, normalize the OS (knowing we just have one component, it's not a kernel,
1335 # etc.)
13381336 case $os in
13391337 # First match some system type aliases that might get confused
13401338 # with valid system types.
1341 # -solaris* is a basic system type, with this one exception.
1342 -auroraux)
1343 os=-auroraux
1344 ;;
1345 -solaris1 | -solaris1.*)
1346 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1347 ;;
1348 -solaris)
1349 os=-solaris2
1350 ;;
1351 -unixware*)
1352 os=-sysv4.2uw
1353 ;;
1354 -gnu/linux*)
1355 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1339 # solaris* is a basic system type, with this one exception.
1340 auroraux)
1341 os=auroraux
1342 ;;
1343 bluegene*)
1344 os=cnk
1345 ;;
1346 solaris1 | solaris1.*)
1347 os=`echo "$os" | sed -e 's|solaris1|sunos4|'`
1348 ;;
1349 solaris)
1350 os=solaris2
1351 ;;
1352 unixware*)
1353 os=sysv4.2uw
13561354 ;;
13571355 # es1800 is here to avoid being matched by es* (a different OS)
1358 -es1800*)
1359 os=-ose
1360 ;;
1361 # Now accept the basic system types.
1362 # The portable systems comes first.
1363 # Each alternative MUST end in a * to match a version number.
1364 # -sysv* is not here because it comes later, after sysvr4.
1365 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1366 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1367 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1368 | -sym* | -kopensolaris* | -plan9* \
1369 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1370 | -aos* | -aros* | -cloudabi* | -sortix* \
1371 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1372 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1373 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1374 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1375 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1376 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1377 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1378 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \
1379 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
1380 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1381 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1382 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1383 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1384 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
1385 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1386 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1387 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1388 | -morphos* | -superux* | -rtmk* | -windiss* \
1389 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1390 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1391 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1392 | -midnightbsd*)
1393 # Remember, each alternative MUST END IN *, to match a version number.
1394 ;;
1395 -qnx*)
1396 case $basic_machine in
1397 x86-* | i*86-*)
1398 ;;
1399 *)
1400 os=-nto$os
1401 ;;
1402 esac
1403 ;;
1404 -nto-qnx*)
1405 ;;
1406 -nto*)
1407 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1408 ;;
1409 -sim | -xray | -os68k* | -v88r* \
1410 | -windows* | -osx | -abug | -netware* | -os9* \
1411 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1412 ;;
1413 -mac*)
1356 es1800*)
1357 os=ose
1358 ;;
1359 # Some version numbers need modification
1360 chorusos*)
1361 os=chorusos
1362 ;;
1363 isc)
1364 os=isc2.2
1365 ;;
1366 sco6)
1367 os=sco5v6
1368 ;;
1369 sco5)
1370 os=sco3.2v5
1371 ;;
1372 sco4)
1373 os=sco3.2v4
1374 ;;
1375 sco3.2.[4-9]*)
1376 os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'`
1377 ;;
1378 sco*v* | scout)
1379 # Don't match below
1380 ;;
1381 sco*)
1382 os=sco3.2v2
1383 ;;
1384 psos*)
1385 os=psos
1386 ;;
1387 qnx*)
1388 os=qnx
1389 ;;
1390 hiux*)
1391 os=hiuxwe2
1392 ;;
1393 lynx*178)
1394 os=lynxos178
1395 ;;
1396 lynx*5)
1397 os=lynxos5
1398 ;;
1399 lynxos*)
1400 # don't get caught up in next wildcard
1401 ;;
1402 lynx*)
1403 os=lynxos
1404 ;;
1405 mac[0-9]*)
14141406 os=`echo "$os" | sed -e 's|mac|macos|'`
14151407 ;;
1416 -linux-dietlibc)
1417 os=-linux-dietlibc
1418 ;;
1419 -linux*)
1420 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1421 ;;
1422 -sunos5*)
1408 opened*)
1409 os=openedition
1410 ;;
1411 os400*)
1412 os=os400
1413 ;;
1414 sunos5*)
14231415 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
14241416 ;;
1425 -sunos6*)
1417 sunos6*)
14261418 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
14271419 ;;
1428 -opened*)
1429 os=-openedition
1430 ;;
1431 -os400*)
1432 os=-os400
1433 ;;
1434 -wince*)
1435 os=-wince
1436 ;;
1437 -utek*)
1438 os=-bsd
1439 ;;
1440 -dynix*)
1441 os=-bsd
1442 ;;
1443 -acis*)
1444 os=-aos
1445 ;;
1446 -atheos*)
1447 os=-atheos
1448 ;;
1449 -syllable*)
1450 os=-syllable
1451 ;;
1452 -386bsd)
1453 os=-bsd
1454 ;;
1455 -ctix* | -uts*)
1456 os=-sysv
1457 ;;
1458 -nova*)
1459 os=-rtmk-nova
1460 ;;
1461 -ns2)
1462 os=-nextstep2
1463 ;;
1464 -nsk*)
1465 os=-nsk
1420 wince*)
1421 os=wince
1422 ;;
1423 utek*)
1424 os=bsd
1425 ;;
1426 dynix*)
1427 os=bsd
1428 ;;
1429 acis*)
1430 os=aos
1431 ;;
1432 atheos*)
1433 os=atheos
1434 ;;
1435 syllable*)
1436 os=syllable
1437 ;;
1438 386bsd)
1439 os=bsd
1440 ;;
1441 ctix* | uts*)
1442 os=sysv
1443 ;;
1444 nova*)
1445 os=rtmk-nova
1446 ;;
1447 ns2)
1448 os=nextstep2
14661449 ;;
14671450 # Preserve the version number of sinix5.
1468 -sinix5.*)
1469 os=`echo $os | sed -e 's|sinix|sysv|'`
1470 ;;
1471 -sinix*)
1472 os=-sysv4
1473 ;;
1474 -tpf*)
1475 os=-tpf
1476 ;;
1477 -triton*)
1478 os=-sysv3
1479 ;;
1480 -oss*)
1481 os=-sysv3
1482 ;;
1483 -svr4*)
1484 os=-sysv4
1485 ;;
1486 -svr3)
1487 os=-sysv3
1488 ;;
1489 -sysvr4)
1490 os=-sysv4
1491 ;;
1492 # This must come after -sysvr4.
1493 -sysv*)
1494 ;;
1495 -ose*)
1496 os=-ose
1497 ;;
1498 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1499 os=-mint
1500 ;;
1501 -zvmoe)
1502 os=-zvmoe
1503 ;;
1504 -dicos*)
1505 os=-dicos
1506 ;;
1507 -pikeos*)
1451 sinix5.*)
1452 os=`echo "$os" | sed -e 's|sinix|sysv|'`
1453 ;;
1454 sinix*)
1455 os=sysv4
1456 ;;
1457 tpf*)
1458 os=tpf
1459 ;;
1460 triton*)
1461 os=sysv3
1462 ;;
1463 oss*)
1464 os=sysv3
1465 ;;
1466 svr4*)
1467 os=sysv4
1468 ;;
1469 svr3)
1470 os=sysv3
1471 ;;
1472 sysvr4)
1473 os=sysv4
1474 ;;
1475 ose*)
1476 os=ose
1477 ;;
1478 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1479 os=mint
1480 ;;
1481 dicos*)
1482 os=dicos
1483 ;;
1484 pikeos*)
15081485 # Until real need of OS specific support for
15091486 # particular features comes up, bare metal
15101487 # configurations are quite functional.
1511 case $basic_machine in
1488 case $cpu in
15121489 arm*)
1513 os=-eabi
1490 os=eabi
15141491 ;;
15151492 *)
1516 os=-elf
1493 os=elf
15171494 ;;
15181495 esac
15191496 ;;
1520 -nacl*)
1521 ;;
1522 -ios)
1523 ;;
1524 -none)
1525 ;;
15261497 *)
1527 # Get rid of the `-' at the beginning of $os.
1528 os=`echo $os | sed 's/[^-]*-//'`
1529 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
1530 exit 1
1498 # No normalization, but not necessarily accepted, that comes below.
15311499 ;;
15321500 esac
1501
15331502 else
15341503
15351504 # Here we handle the default operating systems that come with various machines.
15421511 # will signal an error saying that MANUFACTURER isn't an operating
15431512 # system, and we'll never get to this point.
15441513
1545 case $basic_machine in
1514 kernel=
1515 case $cpu-$vendor in
15461516 score-*)
1547 os=-elf
1517 os=elf
15481518 ;;
15491519 spu-*)
1550 os=-elf
1520 os=elf
15511521 ;;
15521522 *-acorn)
1553 os=-riscix1.2
1523 os=riscix1.2
15541524 ;;
15551525 arm*-rebel)
1556 os=-linux
1526 kernel=linux
1527 os=gnu
15571528 ;;
15581529 arm*-semi)
1559 os=-aout
1530 os=aout
15601531 ;;
15611532 c4x-* | tic4x-*)
1562 os=-coff
1533 os=coff
15631534 ;;
15641535 c8051-*)
1565 os=-elf
1536 os=elf
1537 ;;
1538 clipper-intergraph)
1539 os=clix
15661540 ;;
15671541 hexagon-*)
1568 os=-elf
1542 os=elf
15691543 ;;
15701544 tic54x-*)
1571 os=-coff
1545 os=coff
15721546 ;;
15731547 tic55x-*)
1574 os=-coff
1548 os=coff
15751549 ;;
15761550 tic6x-*)
1577 os=-coff
1551 os=coff
15781552 ;;
15791553 # This must come before the *-dec entry.
15801554 pdp10-*)
1581 os=-tops20
1555 os=tops20
15821556 ;;
15831557 pdp11-*)
1584 os=-none
1558 os=none
15851559 ;;
15861560 *-dec | vax-*)
1587 os=-ultrix4.2
1561 os=ultrix4.2
15881562 ;;
15891563 m68*-apollo)
1590 os=-domain
1564 os=domain
15911565 ;;
15921566 i386-sun)
1593 os=-sunos4.0.2
1567 os=sunos4.0.2
15941568 ;;
15951569 m68000-sun)
1596 os=-sunos3
1570 os=sunos3
15971571 ;;
15981572 m68*-cisco)
1599 os=-aout
1573 os=aout
16001574 ;;
16011575 mep-*)
1602 os=-elf
1576 os=elf
16031577 ;;
16041578 mips*-cisco)
1605 os=-elf
1579 os=elf
16061580 ;;
16071581 mips*-*)
1608 os=-elf
1582 os=elf
16091583 ;;
16101584 or32-*)
1611 os=-coff
1585 os=coff
16121586 ;;
16131587 *-tti) # must be before sparc entry or we get the wrong os.
1614 os=-sysv3
1588 os=sysv3
16151589 ;;
16161590 sparc-* | *-sun)
1617 os=-sunos4.1.1
1591 os=sunos4.1.1
16181592 ;;
16191593 pru-*)
1620 os=-elf
1594 os=elf
16211595 ;;
16221596 *-be)
1623 os=-beos
1597 os=beos
16241598 ;;
16251599 *-ibm)
1626 os=-aix
1600 os=aix
16271601 ;;
16281602 *-knuth)
1629 os=-mmixware
1603 os=mmixware
16301604 ;;
16311605 *-wec)
1632 os=-proelf
1606 os=proelf
16331607 ;;
16341608 *-winbond)
1635 os=-proelf
1609 os=proelf
16361610 ;;
16371611 *-oki)
1638 os=-proelf
1612 os=proelf
16391613 ;;
16401614 *-hp)
1641 os=-hpux
1615 os=hpux
16421616 ;;
16431617 *-hitachi)
1644 os=-hiux
1618 os=hiux
16451619 ;;
16461620 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1647 os=-sysv
1621 os=sysv
16481622 ;;
16491623 *-cbm)
1650 os=-amigaos
1624 os=amigaos
16511625 ;;
16521626 *-dg)
1653 os=-dgux
1627 os=dgux
16541628 ;;
16551629 *-dolphin)
1656 os=-sysv3
1630 os=sysv3
16571631 ;;
16581632 m68k-ccur)
1659 os=-rtu
1633 os=rtu
16601634 ;;
16611635 m88k-omron*)
1662 os=-luna
1636 os=luna
16631637 ;;
16641638 *-next)
1665 os=-nextstep
1639 os=nextstep
16661640 ;;
16671641 *-sequent)
1668 os=-ptx
1642 os=ptx
16691643 ;;
16701644 *-crds)
1671 os=-unos
1645 os=unos
16721646 ;;
16731647 *-ns)
1674 os=-genix
1648 os=genix
16751649 ;;
16761650 i370-*)
1677 os=-mvs
1651 os=mvs
16781652 ;;
16791653 *-gould)
1680 os=-sysv
1654 os=sysv
16811655 ;;
16821656 *-highlevel)
1683 os=-bsd
1657 os=bsd
16841658 ;;
16851659 *-encore)
1686 os=-bsd
1660 os=bsd
16871661 ;;
16881662 *-sgi)
1689 os=-irix
1663 os=irix
16901664 ;;
16911665 *-siemens)
1692 os=-sysv4
1666 os=sysv4
16931667 ;;
16941668 *-masscomp)
1695 os=-rtu
1669 os=rtu
16961670 ;;
16971671 f30[01]-fujitsu | f700-fujitsu)
1698 os=-uxpv
1672 os=uxpv
16991673 ;;
17001674 *-rom68k)
1701 os=-coff
1675 os=coff
17021676 ;;
17031677 *-*bug)
1704 os=-coff
1678 os=coff
17051679 ;;
17061680 *-apple)
1707 os=-macos
1681 os=macos
17081682 ;;
17091683 *-atari*)
1710 os=-mint
1684 os=mint
1685 ;;
1686 *-wrs)
1687 os=vxworks
17111688 ;;
17121689 *)
1713 os=-none
1690 os=none
17141691 ;;
17151692 esac
1693
17161694 fi
1695
1696 # Now, validate our (potentially fixed-up) OS.
1697 case $os in
1698 # Sometimes we do "kernel-libc", so those need to count as OSes.
1699 musl* | newlib* | uclibc*)
1700 ;;
1701 # Likewise for "kernel-abi"
1702 eabi* | gnueabi*)
1703 ;;
1704 # VxWorks passes extra cpu info in the 4th filed.
1705 simlinux | simwindows | spe)
1706 ;;
1707 # Now accept the basic system types.
1708 # The portable systems comes first.
1709 # Each alternative MUST end in a * to match a version number.
1710 gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1711 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
1712 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1713 | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \
1714 | hiux* | abug | nacl* | netware* | windows* \
1715 | os9* | macos* | osx* | ios* \
1716 | mpw* | magic* | mmixware* | mon960* | lnews* \
1717 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1718 | aos* | aros* | cloudabi* | sortix* | twizzler* \
1719 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1720 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1721 | mirbsd* | netbsd* | dicos* | openedition* | ose* \
1722 | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \
1723 | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
1724 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1725 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1726 | udi* | lites* | ieee* | go32* | aux* | hcos* \
1727 | chorusrdb* | cegcc* | glidix* | serenity* \
1728 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1729 | midipix* | mingw32* | mingw64* | mint* \
1730 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1731 | interix* | uwin* | mks* | rhapsody* | darwin* \
1732 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1733 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1734 | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \
1735 | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \
1736 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1737 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1738 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1739 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
1740 | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx*)
1741 ;;
1742 # This one is extra strict with allowed versions
1743 sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
1744 # Don't forget version if it is 3.2v4 or newer.
1745 ;;
1746 none)
1747 ;;
1748 *)
1749 echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
1750 exit 1
1751 ;;
1752 esac
1753
1754 # As a final step for OS-related things, validate the OS-kernel combination
1755 # (given a valid OS), if there is a kernel.
1756 case $kernel-$os in
1757 linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* | linux-musl* | linux-uclibc* )
1758 ;;
1759 uclinux-uclibc* )
1760 ;;
1761 -dietlibc* | -newlib* | -musl* | -uclibc* )
1762 # These are just libc implementations, not actual OSes, and thus
1763 # require a kernel.
1764 echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
1765 exit 1
1766 ;;
1767 kfreebsd*-gnu* | kopensolaris*-gnu*)
1768 ;;
1769 vxworks-simlinux | vxworks-simwindows | vxworks-spe)
1770 ;;
1771 nto-qnx*)
1772 ;;
1773 os2-emx)
1774 ;;
1775 *-eabi* | *-gnueabi*)
1776 ;;
1777 -*)
1778 # Blank kernel with real OS is always fine.
1779 ;;
1780 *-*)
1781 echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
1782 exit 1
1783 ;;
1784 esac
17171785
17181786 # Here we handle the case where we know the os, and the CPU type, but not the
17191787 # manufacturer. We pick the logical manufacturer.
1720 vendor=unknown
1721 case $basic_machine in
1722 *-unknown)
1723 case $os in
1724 -riscix*)
1788 case $vendor in
1789 unknown)
1790 case $cpu-$os in
1791 *-riscix*)
17251792 vendor=acorn
17261793 ;;
1727 -sunos*)
1794 *-sunos*)
17281795 vendor=sun
17291796 ;;
1730 -cnk*|-aix*)
1797 *-cnk* | *-aix*)
17311798 vendor=ibm
17321799 ;;
1733 -beos*)
1800 *-beos*)
17341801 vendor=be
17351802 ;;
1736 -hpux*)
1803 *-hpux*)
17371804 vendor=hp
17381805 ;;
1739 -mpeix*)
1806 *-mpeix*)
17401807 vendor=hp
17411808 ;;
1742 -hiux*)
1809 *-hiux*)
17431810 vendor=hitachi
17441811 ;;
1745 -unos*)
1812 *-unos*)
17461813 vendor=crds
17471814 ;;
1748 -dgux*)
1815 *-dgux*)
17491816 vendor=dg
17501817 ;;
1751 -luna*)
1818 *-luna*)
17521819 vendor=omron
17531820 ;;
1754 -genix*)
1821 *-genix*)
17551822 vendor=ns
17561823 ;;
1757 -mvs* | -opened*)
1824 *-clix*)
1825 vendor=intergraph
1826 ;;
1827 *-mvs* | *-opened*)
17581828 vendor=ibm
17591829 ;;
1760 -os400*)
1830 *-os400*)
17611831 vendor=ibm
17621832 ;;
1763 -ptx*)
1833 s390-* | s390x-*)
1834 vendor=ibm
1835 ;;
1836 *-ptx*)
17641837 vendor=sequent
17651838 ;;
1766 -tpf*)
1839 *-tpf*)
17671840 vendor=ibm
17681841 ;;
1769 -vxsim* | -vxworks* | -windiss*)
1842 *-vxsim* | *-vxworks* | *-windiss*)
17701843 vendor=wrs
17711844 ;;
1772 -aux*)
1845 *-aux*)
17731846 vendor=apple
17741847 ;;
1775 -hms*)
1848 *-hms*)
17761849 vendor=hitachi
17771850 ;;
1778 -mpw* | -macos*)
1851 *-mpw* | *-macos*)
17791852 vendor=apple
17801853 ;;
1781 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1854 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
17821855 vendor=atari
17831856 ;;
1784 -vos*)
1857 *-vos*)
17851858 vendor=stratus
17861859 ;;
17871860 esac
1788 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
17891861 ;;
17901862 esac
17911863
1792 echo "$basic_machine$os"
1864 echo "$cpu-$vendor-${kernel:+$kernel-}$os"
17931865 exit
17941866
17951867 # Local variables:
+3536
-2695
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for libass 0.15.1.
2 # Generated by GNU Autoconf 2.71 for libass 0.15.2.
33 #
44 #
5 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
6 # Inc.
67 #
78 #
89 # This configure script is free software; the Free Software Foundation
1314
1415 # Be more Bourne compatible
1516 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17 as_nop=:
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
1720 emulate sh
1821 NULLCMD=:
1922 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2023 # is contrary to our usage. Disable this feature.
2124 alias -g '${1+"$@"}'='"$@"'
2225 setopt NO_GLOB_SUBST
23 else
26 else $as_nop
2427 case `(set -o) 2>/dev/null` in #(
2528 *posix*) :
2629 set -o posix ;; #(
3033 fi
3134
3235
36
37 # Reset variables that may have inherited troublesome values from
38 # the environment.
39
40 # IFS needs to be set, to space, tab, and newline, in precisely that order.
41 # (If _AS_PATH_WALK were called with IFS unset, it would have the
42 # side effect of setting IFS to empty, thus disabling word splitting.)
43 # Quoting is to prevent editors from complaining about space-tab.
3344 as_nl='
3445 '
3546 export as_nl
36 # Printing a long string crashes Solaris 7 /usr/bin/printf.
37 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40 # Prefer a ksh shell builtin over an external printf program on Solaris,
41 # but without wasting forks for bash or zsh.
42 if test -z "$BASH_VERSION$ZSH_VERSION" \
43 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
44 as_echo='print -r --'
45 as_echo_n='print -rn --'
46 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='printf %s\n'
48 as_echo_n='printf %s'
49 else
50 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
52 as_echo_n='/usr/ucb/echo -n'
53 else
54 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
55 as_echo_n_body='eval
56 arg=$1;
57 case $arg in #(
58 *"$as_nl"*)
59 expr "X$arg" : "X\\(.*\\)$as_nl";
60 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61 esac;
62 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 '
64 export as_echo_n_body
65 as_echo_n='sh -c $as_echo_n_body as_echo'
66 fi
67 export as_echo_body
68 as_echo='sh -c $as_echo_body as_echo'
69 fi
47 IFS=" "" $as_nl"
48
49 PS1='$ '
50 PS2='> '
51 PS4='+ '
52
53 # Ensure predictable behavior from utilities with locale-dependent output.
54 LC_ALL=C
55 export LC_ALL
56 LANGUAGE=C
57 export LANGUAGE
58
59 # We cannot yet rely on "unset" to work, but we need these variables
60 # to be unset--not just set to an empty or harmless value--now, to
61 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
62 # also avoids known problems related to "unset" and subshell syntax
63 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
64 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
65 do eval test \${$as_var+y} \
66 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
67 done
68
69 # Ensure that fds 0, 1, and 2 are open.
70 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
71 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
72 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7073
7174 # The user is always right.
72 if test "${PATH_SEPARATOR+set}" != set; then
75 if ${PATH_SEPARATOR+false} :; then
7376 PATH_SEPARATOR=:
7477 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7578 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7780 }
7881 fi
7982
80
81 # IFS
82 # We need space, tab and new line, in precisely that order. Quoting is
83 # there to prevent editors from complaining about space-tab.
84 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
85 # splitting by setting IFS to empty value.)
86 IFS=" "" $as_nl"
8783
8884 # Find who we are. Look in the path if we contain no directory separator.
8985 as_myself=
9389 for as_dir in $PATH
9490 do
9591 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
92 case $as_dir in #(((
93 '') as_dir=./ ;;
94 */) ;;
95 *) as_dir=$as_dir/ ;;
96 esac
97 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9898 done
9999 IFS=$as_save_IFS
100100
106106 as_myself=$0
107107 fi
108108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
109 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110110 exit 1
111111 fi
112112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133113
134114 # Use a proper internal environment variable to ensure we don't fall
135115 # into an infinite loop, continuously re-executing ourselves.
151131 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
152132 # Admittedly, this is quite paranoid, since all the known shells bail
153133 # out after a failed `exec'.
154 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
155 as_fn_exit 255
134 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
135 exit 255
156136 fi
157137 # We don't want this to propagate to other subprocesses.
158138 { _as_can_reexec=; unset _as_can_reexec;}
159139 if test "x$CONFIG_SHELL" = x; then
160 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 as_bourne_compatible="as_nop=:
141 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
161143 emulate sh
162144 NULLCMD=:
163145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
164146 # is contrary to our usage. Disable this feature.
165147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
166148 setopt NO_GLOB_SUBST
167 else
149 else \$as_nop
168150 case \`(set -o) 2>/dev/null\` in #(
169151 *posix*) :
170152 set -o posix ;; #(
184166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
185167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
186168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
187 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
188
189 else
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
170 then :
171
172 else \$as_nop
190173 exitcode=1; echo positional parameters were not saved.
191174 fi
192175 test x\$exitcode = x0 || exit 1
176 blah=\$(echo \$(echo blah))
177 test x\"\$blah\" = xblah || exit 1
193178 test -x / || exit 1"
194179 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
195180 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
204189 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
205190 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
206191 test \$(( 1 + 1 )) = 2 || exit 1"
207 if (eval "$as_required") 2>/dev/null; then :
192 if (eval "$as_required") 2>/dev/null
193 then :
208194 as_have_required=yes
209 else
195 else $as_nop
210196 as_have_required=no
211197 fi
212 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
213
214 else
198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
199 then :
200
201 else $as_nop
215202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
216203 as_found=false
217204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
218205 do
219206 IFS=$as_save_IFS
220 test -z "$as_dir" && as_dir=.
207 case $as_dir in #(((
208 '') as_dir=./ ;;
209 */) ;;
210 *) as_dir=$as_dir/ ;;
211 esac
221212 as_found=:
222213 case $as_dir in #(
223214 /*)
224215 for as_base in sh bash ksh sh5; do
225216 # Try only shells that exist, to save several forks.
226 as_shell=$as_dir/$as_base
217 as_shell=$as_dir$as_base
227218 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
228 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
220 then :
229221 CONFIG_SHELL=$as_shell as_have_required=yes
230 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
223 then :
231224 break 2
232225 fi
233226 fi
235228 esac
236229 as_found=false
237230 done
238 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
239 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
231 IFS=$as_save_IFS
232 if $as_found
233 then :
234
235 else $as_nop
236 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
238 then :
240239 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi; }
242 IFS=$as_save_IFS
243
244
245 if test "x$CONFIG_SHELL" != x; then :
240 fi
241 fi
242
243
244 if test "x$CONFIG_SHELL" != x
245 then :
246246 export CONFIG_SHELL
247247 # We cannot yet assume a decent shell, so we have to provide a
248248 # neutralization value for shells without unset; and this also
260260 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
261261 # Admittedly, this is quite paranoid, since all the known shells bail
262262 # out after a failed `exec'.
263 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
263 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
264264 exit 255
265265 fi
266266
267 if test x$as_have_required = xno; then :
268 $as_echo "$0: This script requires a shell more modern than all"
269 $as_echo "$0: the shells that I found on your system."
270 if test x${ZSH_VERSION+set} = xset ; then
271 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
272 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 if test x$as_have_required = xno
268 then :
269 printf "%s\n" "$0: This script requires a shell more modern than all"
270 printf "%s\n" "$0: the shells that I found on your system."
271 if test ${ZSH_VERSION+y} ; then
272 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
273274 else
274 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
275 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
275276 $0: including any error possibly output before this
276277 $0: message. Then install a modern shell, or manually run
277278 $0: the script under such a shell if you do have one."
298299 }
299300 as_unset=as_fn_unset
300301
302
301303 # as_fn_set_status STATUS
302304 # -----------------------
303305 # Set $? to STATUS, without forking.
315317 as_fn_set_status $1
316318 exit $1
317319 } # as_fn_exit
320 # as_fn_nop
321 # ---------
322 # Do nothing but, unlike ":", preserve the value of $?.
323 as_fn_nop ()
324 {
325 return $?
326 }
327 as_nop=as_fn_nop
318328
319329 # as_fn_mkdir_p
320330 # -------------
329339 as_dirs=
330340 while :; do
331341 case $as_dir in #(
332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333343 *) as_qdir=$as_dir;;
334344 esac
335345 as_dirs="'$as_qdir' $as_dirs"
338348 X"$as_dir" : 'X\(//\)[^/]' \| \
339349 X"$as_dir" : 'X\(//\)$' \| \
340350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
341 $as_echo X"$as_dir" |
351 printf "%s\n" X"$as_dir" |
342352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
343353 s//\1/
344354 q
377387 # advantage of any shell optimizations that allow amortized linear growth over
378388 # repeated appends, instead of the typical quadratic growth present in naive
379389 # implementations.
380 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
381392 eval 'as_fn_append ()
382393 {
383394 eval $1+=\$2
384395 }'
385 else
396 else $as_nop
386397 as_fn_append ()
387398 {
388399 eval $1=\$$1\$2
394405 # Perform arithmetic evaluation on the ARGs, and store the result in the
395406 # global $as_val. Take advantage of shells that can avoid forks. The arguments
396407 # must be portable across $(()) and expr.
397 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409 then :
398410 eval 'as_fn_arith ()
399411 {
400412 as_val=$(( $* ))
401413 }'
402 else
414 else $as_nop
403415 as_fn_arith ()
404416 {
405417 as_val=`expr "$@" || test $? -eq 1`
406418 }
407419 fi # as_fn_arith
408420
421 # as_fn_nop
422 # ---------
423 # Do nothing but, unlike ":", preserve the value of $?.
424 as_fn_nop ()
425 {
426 return $?
427 }
428 as_nop=as_fn_nop
409429
410430 # as_fn_error STATUS ERROR [LINENO LOG_FD]
411431 # ----------------------------------------
417437 as_status=$1; test $as_status -eq 0 && as_status=1
418438 if test "$4"; then
419439 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
421441 fi
422 $as_echo "$as_me: error: $2" >&2
442 printf "%s\n" "$as_me: error: $2" >&2
423443 as_fn_exit $as_status
424444 } # as_fn_error
425445
446466 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
447467 X"$0" : 'X\(//\)$' \| \
448468 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
449 $as_echo X/"$0" |
469 printf "%s\n" X/"$0" |
450470 sed '/^.*\/\([^/][^/]*\)\/*$/{
451471 s//\1/
452472 q
490510 s/-\n.*//
491511 ' >$as_me.lineno &&
492512 chmod +x "$as_me.lineno" ||
493 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
513 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
494514
495515 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
496516 # already done that, so ensure we don't try to do so again and fall
504524 exit
505525 }
506526
527
528 # Determine whether it's possible to make 'echo' print without a newline.
529 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
530 # for compatibility with existing Makefiles.
507531 ECHO_C= ECHO_N= ECHO_T=
508532 case `echo -n x` in #(((((
509533 -n*)
516540 *)
517541 ECHO_N='-n';;
518542 esac
543
544 # For backward compatibility with old third-party macros, we provide
545 # the shell variables $as_echo and $as_echo_n. New code should use
546 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
547 as_echo='printf %s\n'
548 as_echo_n='printf %s'
549
519550
520551 rm -f conf$$ conf$$.exe conf$$.file
521552 if test -d conf$$.dir; then
586617 # Identity of this package.
587618 PACKAGE_NAME='libass'
588619 PACKAGE_TARNAME='libass'
589 PACKAGE_VERSION='0.15.1'
590 PACKAGE_STRING='libass 0.15.1'
620 PACKAGE_VERSION='0.15.2'
621 PACKAGE_STRING='libass 0.15.2'
591622 PACKAGE_BUGREPORT=''
592623 PACKAGE_URL=''
593624
594625 # Factoring default headers for most tests.
595626 ac_includes_default="\
596 #include <stdio.h>
597 #ifdef HAVE_SYS_TYPES_H
598 # include <sys/types.h>
627 #include <stddef.h>
628 #ifdef HAVE_STDIO_H
629 # include <stdio.h>
599630 #endif
600 #ifdef HAVE_SYS_STAT_H
601 # include <sys/stat.h>
602 #endif
603 #ifdef STDC_HEADERS
631 #ifdef HAVE_STDLIB_H
604632 # include <stdlib.h>
605 # include <stddef.h>
606 #else
607 # ifdef HAVE_STDLIB_H
608 # include <stdlib.h>
609 # endif
610633 #endif
611634 #ifdef HAVE_STRING_H
612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 # include <memory.h>
614 # endif
615635 # include <string.h>
616 #endif
617 #ifdef HAVE_STRINGS_H
618 # include <strings.h>
619636 #endif
620637 #ifdef HAVE_INTTYPES_H
621638 # include <inttypes.h>
623640 #ifdef HAVE_STDINT_H
624641 # include <stdint.h>
625642 #endif
643 #ifdef HAVE_STRINGS_H
644 # include <strings.h>
645 #endif
646 #ifdef HAVE_SYS_TYPES_H
647 # include <sys/types.h>
648 #endif
649 #ifdef HAVE_SYS_STAT_H
650 # include <sys/stat.h>
651 #endif
626652 #ifdef HAVE_UNISTD_H
627653 # include <unistd.h>
628654 #endif"
629655
656 ac_header_c_list=
630657 ac_unique_file="libass/ass.c"
631 ac_header_list=
632658 ac_subst_vars='am__EXEEXT_FALSE
633659 am__EXEEXT_TRUE
634660 LTLIBOBJS
674700 PKG_CONFIG_LIBDIR
675701 PKG_CONFIG_PATH
676702 PKG_CONFIG
677 CPP
678703 LT_SYS_LIBRARY_PATH
679704 OTOOL64
680705 OTOOL
725750 AM_DEFAULT_VERBOSITY
726751 AM_DEFAULT_V
727752 AM_V
753 CSCOPE
754 ETAGS
755 CTAGS
728756 am__untar
729757 am__tar
730758 AMTAR
767795 docdir
768796 oldincludedir
769797 includedir
798 runstatedir
770799 localstatedir
771800 sharedstatedir
772801 sysconfdir
819848 LIBS
820849 CPPFLAGS
821850 LT_SYS_LIBRARY_PATH
822 CPP
823851 PKG_CONFIG
824852 PKG_CONFIG_PATH
825853 PKG_CONFIG_LIBDIR
871899 sysconfdir='${prefix}/etc'
872900 sharedstatedir='${prefix}/com'
873901 localstatedir='${prefix}/var'
902 runstatedir='${localstatedir}/run'
874903 includedir='${prefix}/include'
875904 oldincludedir='/usr/include'
876905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900929 *) ac_optarg=yes ;;
901930 esac
902931
903 # Accept the important Cygnus configure options, so we can diagnose typos.
904
905932 case $ac_dashdash$ac_option in
906933 --)
907934 ac_dashdash=yes ;;
942969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943970 # Reject names that are not valid shell variable names.
944971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
972 as_fn_error $? "invalid feature name: \`$ac_useropt'"
946973 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
948975 case $ac_user_opts in
949976 *"
950977 "enable_$ac_useropt"
968995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969996 # Reject names that are not valid shell variable names.
970997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
998 as_fn_error $? "invalid feature name: \`$ac_useropt'"
972999 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
9741001 case $ac_user_opts in
9751002 *"
9761003 "enable_$ac_useropt"
11231150 | -silent | --silent | --silen | --sile | --sil)
11241151 silent=yes ;;
11251152
1153 -runstatedir | --runstatedir | --runstatedi | --runstated \
1154 | --runstate | --runstat | --runsta | --runst | --runs \
1155 | --run | --ru | --r)
1156 ac_prev=runstatedir ;;
1157 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1158 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1159 | --run=* | --ru=* | --r=*)
1160 runstatedir=$ac_optarg ;;
1161
11261162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11271163 ac_prev=sbindir ;;
11281164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
11721208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11731209 # Reject names that are not valid shell variable names.
11741210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1211 as_fn_error $? "invalid package name: \`$ac_useropt'"
11761212 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11781214 case $ac_user_opts in
11791215 *"
11801216 "with_$ac_useropt"
11881224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11891225 # Reject names that are not valid shell variable names.
11901226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1227 as_fn_error $? "invalid package name: \`$ac_useropt'"
11921228 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11941230 case $ac_user_opts in
11951231 *"
11961232 "with_$ac_useropt"
12341270
12351271 *)
12361272 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
12381274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
12401276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12411277 ;;
12421278
12521288 case $enable_option_checking in
12531289 no) ;;
12541290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12561292 esac
12571293 fi
12581294
12601296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12611297 datadir sysconfdir sharedstatedir localstatedir includedir \
12621298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1299 libdir localedir mandir runstatedir
12641300 do
12651301 eval ac_val=\$$ac_var
12661302 # Remove trailing slashes.
13161352 X"$as_myself" : 'X\(//\)[^/]' \| \
13171353 X"$as_myself" : 'X\(//\)$' \| \
13181354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1355 printf "%s\n" X"$as_myself" |
13201356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13211357 s//\1/
13221358 q
13731409 # Omit some internal or obsolete options to make the list less imposing.
13741410 # This message is too long to be a string in the A/UX 3.1 sh.
13751411 cat <<_ACEOF
1376 \`configure' configures libass 0.15.1 to adapt to many kinds of systems.
1412 \`configure' configures libass 0.15.2 to adapt to many kinds of systems.
13771413
13781414 Usage: $0 [OPTION]... [VAR=VALUE]...
13791415
14131449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
14141450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
14151451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
14161453 --libdir=DIR object code libraries [EPREFIX/lib]
14171454 --includedir=DIR C header files [PREFIX/include]
14181455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
14431480
14441481 if test -n "$ac_init_help"; then
14451482 case $ac_init_help in
1446 short | recursive ) echo "Configuration of libass 0.15.1:";;
1483 short | recursive ) echo "Configuration of libass 0.15.2:";;
14471484 esac
14481485 cat <<\_ACEOF
14491486
14671504 [default=no]
14681505 --enable-profile enable profiling program [default=no]
14691506 --disable-fontconfig disable fontconfig support [default=enabled]
1470 --disable-directwrite disable DirectWrite support (win32 only)
1507 --disable-directwrite disable DirectWrite support (Windows only)
14711508 [default=check]
14721509 --disable-coretext disable CoreText support (OSX only) [default=check]
14731510 --disable-require-system-font-provider
15001537 you have headers in a nonstandard directory <include dir>
15011538 LT_SYS_LIBRARY_PATH
15021539 User-defined run-time library search path.
1503 CPP C preprocessor
15041540 PKG_CONFIG path to pkg-config utility
15051541 PKG_CONFIG_PATH
15061542 directories to add to pkg-config's search path
15451581 case "$ac_dir" in
15461582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15471583 *)
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15491585 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15511587 case $ac_top_builddir_sub in
15521588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15531589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15751611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15761612
15771613 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1614 # Check for configure.gnu first; this name is used for a wrapper for
1615 # Metaconfig's "Configure" on case-insensitive file systems.
15791616 if test -f "$ac_srcdir/configure.gnu"; then
15801617 echo &&
15811618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15831620 echo &&
15841621 $SHELL "$ac_srcdir/configure" --help=recursive
15851622 else
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15871624 fi || ac_status=$?
15881625 cd "$ac_pwd" || { ac_status=$?; break; }
15891626 done
15921629 test -n "$ac_init_help" && exit $ac_status
15931630 if $ac_init_version; then
15941631 cat <<\_ACEOF
1595 libass configure 0.15.1
1596 generated by GNU Autoconf 2.69
1597
1598 Copyright (C) 2012 Free Software Foundation, Inc.
1632 libass configure 0.15.2
1633 generated by GNU Autoconf 2.71
1634
1635 Copyright (C) 2021 Free Software Foundation, Inc.
15991636 This configure script is free software; the Free Software Foundation
16001637 gives unlimited permission to copy, distribute and modify it.
16011638 _ACEOF
16121649 ac_fn_c_try_compile ()
16131650 {
16141651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext
1652 rm -f conftest.$ac_objext conftest.beam
16161653 if { { ac_try="$ac_compile"
16171654 case "(($ac_try" in
16181655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191656 *) ac_try_echo=$ac_try;;
16201657 esac
16211658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1659 printf "%s\n" "$ac_try_echo"; } >&5
16231660 (eval "$ac_compile") 2>conftest.err
16241661 ac_status=$?
16251662 if test -s conftest.err; then
16271664 cat conftest.er1 >&5
16281665 mv -f conftest.er1 conftest.err
16291666 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16311668 test $ac_status = 0; } && {
16321669 test -z "$ac_c_werror_flag" ||
16331670 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext; then :
1671 } && test -s conftest.$ac_objext
1672 then :
16351673 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1674 else $as_nop
1675 printf "%s\n" "$as_me: failed program was:" >&5
16381676 sed 's/^/| /' conftest.$ac_ext >&5
16391677
16401678 ac_retval=1
16501688 ac_fn_c_try_link ()
16511689 {
16521690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext conftest$ac_exeext
1691 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
16541692 if { { ac_try="$ac_link"
16551693 case "(($ac_try" in
16561694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571695 *) ac_try_echo=$ac_try;;
16581696 esac
16591697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1698 printf "%s\n" "$ac_try_echo"; } >&5
16611699 (eval "$ac_link") 2>conftest.err
16621700 ac_status=$?
16631701 if test -s conftest.err; then
16651703 cat conftest.er1 >&5
16661704 mv -f conftest.er1 conftest.err
16671705 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16691707 test $ac_status = 0; } && {
16701708 test -z "$ac_c_werror_flag" ||
16711709 test ! -s conftest.err
16721710 } && test -s conftest$ac_exeext && {
16731711 test "$cross_compiling" = yes ||
16741712 test -x conftest$ac_exeext
1675 }; then :
1713 }
1714 then :
16761715 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1716 else $as_nop
1717 printf "%s\n" "$as_me: failed program was:" >&5
16791718 sed 's/^/| /' conftest.$ac_ext >&5
16801719
16811720 ac_retval=1
16971736 ac_fn_c_check_header_compile ()
16981737 {
16991738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1704 else
1739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 printf %s "checking for $2... " >&6; }
1741 if eval test \${$3+y}
1742 then :
1743 printf %s "(cached) " >&6
1744 else $as_nop
17051745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061746 /* end confdefs.h. */
17071747 $4
17081748 #include <$2>
17091749 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1750 if ac_fn_c_try_compile "$LINENO"
1751 then :
17111752 eval "$3=yes"
1712 else
1753 else $as_nop
17131754 eval "$3=no"
17141755 fi
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17161757 fi
17171758 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 printf "%s\n" "$ac_res" >&6; }
17201761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17211762
17221763 } # ac_fn_c_check_header_compile
1723
1724 # ac_fn_c_try_cpp LINENO
1725 # ----------------------
1726 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_cpp ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_cpp conftest.$ac_ext"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1743 fi
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } > conftest.i && {
1746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755 fi
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_cpp
1760
1761 # ac_fn_c_try_run LINENO
1762 # ----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1764 # that executables *can* be run.
1765 ac_fn_c_try_run ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_link"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>&5
1776 ac_status=$?
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1779 { { case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_try") 2>&5
1786 ac_status=$?
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; }; }; then :
1789 ac_retval=0
1790 else
1791 $as_echo "$as_me: program exited with status $ac_status" >&5
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 ac_retval=$ac_status
1796 fi
1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_run
18021764
18031765 # ac_fn_c_check_func LINENO FUNC VAR
18041766 # ----------------------------------
18061768 ac_fn_c_check_func ()
18071769 {
18081770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1813 else
1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 printf %s "checking for $2... " >&6; }
1773 if eval test \${$3+y}
1774 then :
1775 printf %s "(cached) " >&6
1776 else $as_nop
18141777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151778 /* end confdefs.h. */
18161779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18181781 #define $2 innocuous_$2
18191782
18201783 /* System header to define __stub macros and hopefully few prototypes,
1821 which can conflict with char $2 (); below.
1822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1823 <limits.h> exists even on freestanding compilers. */
1824
1825 #ifdef __STDC__
1826 # include <limits.h>
1827 #else
1828 # include <assert.h>
1829 #endif
1830
1784 which can conflict with char $2 (); below. */
1785
1786 #include <limits.h>
18311787 #undef $2
18321788
18331789 /* Override any GCC internal prototype to avoid an error.
18451801 #endif
18461802
18471803 int
1848 main ()
1804 main (void)
18491805 {
18501806 return $2 ();
18511807 ;
18521808 return 0;
18531809 }
18541810 _ACEOF
1855 if ac_fn_c_try_link "$LINENO"; then :
1811 if ac_fn_c_try_link "$LINENO"
1812 then :
18561813 eval "$3=yes"
1857 else
1814 else $as_nop
18581815 eval "$3=no"
18591816 fi
1860 rm -f core conftest.err conftest.$ac_objext \
1817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18611818 conftest$ac_exeext conftest.$ac_ext
18621819 fi
18631820 eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 printf "%s\n" "$ac_res" >&6; }
18661823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18671824
18681825 } # ac_fn_c_check_func
1826 ac_configure_args_raw=
1827 for ac_arg
1828 do
1829 case $ac_arg in
1830 *\'*)
1831 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1832 esac
1833 as_fn_append ac_configure_args_raw " '$ac_arg'"
1834 done
1835
1836 case $ac_configure_args_raw in
1837 *$as_nl*)
1838 ac_safe_unquote= ;;
1839 *)
1840 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1841 ac_unsafe_a="$ac_unsafe_z#~"
1842 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1843 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1844 esac
1845
18691846 cat >config.log <<_ACEOF
18701847 This file contains any messages produced by compilers while
18711848 running configure, to aid debugging if configure makes a mistake.
18721849
1873 It was created by libass $as_me 0.15.1, which was
1874 generated by GNU Autoconf 2.69. Invocation command line was
1875
1876 $ $0 $@
1850 It was created by libass $as_me 0.15.2, which was
1851 generated by GNU Autoconf 2.71. Invocation command line was
1852
1853 $ $0$ac_configure_args_raw
18771854
18781855 _ACEOF
18791856 exec 5>>config.log
19061883 for as_dir in $PATH
19071884 do
19081885 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 $as_echo "PATH: $as_dir"
1886 case $as_dir in #(((
1887 '') as_dir=./ ;;
1888 */) ;;
1889 *) as_dir=$as_dir/ ;;
1890 esac
1891 printf "%s\n" "PATH: $as_dir"
19111892 done
19121893 IFS=$as_save_IFS
19131894
19421923 | -silent | --silent | --silen | --sile | --sil)
19431924 continue ;;
19441925 *\'*)
1945 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1926 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19461927 esac
19471928 case $ac_pass in
19481929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
19771958 # WARNING: Use '\'' to represent an apostrophe within the trap.
19781959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
19791960 trap 'exit_status=$?
1961 # Sanitize IFS.
1962 IFS=" "" $as_nl"
19801963 # Save into config.log some information that might help in debugging.
19811964 {
19821965 echo
19831966
1984 $as_echo "## ---------------- ##
1967 printf "%s\n" "## ---------------- ##
19851968 ## Cache variables. ##
19861969 ## ---------------- ##"
19871970 echo
19921975 case $ac_val in #(
19931976 *${as_nl}*)
19941977 case $ac_var in #(
1995 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1996 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1978 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1979 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19971980 esac
19981981 case $ac_var in #(
19991982 _ | IFS | as_nl) ;; #(
20172000 )
20182001 echo
20192002
2020 $as_echo "## ----------------- ##
2003 printf "%s\n" "## ----------------- ##
20212004 ## Output variables. ##
20222005 ## ----------------- ##"
20232006 echo
20252008 do
20262009 eval ac_val=\$$ac_var
20272010 case $ac_val in
2028 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
20292012 esac
2030 $as_echo "$ac_var='\''$ac_val'\''"
2013 printf "%s\n" "$ac_var='\''$ac_val'\''"
20312014 done | sort
20322015 echo
20332016
20342017 if test -n "$ac_subst_files"; then
2035 $as_echo "## ------------------- ##
2018 printf "%s\n" "## ------------------- ##
20362019 ## File substitutions. ##
20372020 ## ------------------- ##"
20382021 echo
20402023 do
20412024 eval ac_val=\$$ac_var
20422025 case $ac_val in
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
20442027 esac
2045 $as_echo "$ac_var='\''$ac_val'\''"
2028 printf "%s\n" "$ac_var='\''$ac_val'\''"
20462029 done | sort
20472030 echo
20482031 fi
20492032
20502033 if test -s confdefs.h; then
2051 $as_echo "## ----------- ##
2034 printf "%s\n" "## ----------- ##
20522035 ## confdefs.h. ##
20532036 ## ----------- ##"
20542037 echo
20562039 echo
20572040 fi
20582041 test "$ac_signal" != 0 &&
2059 $as_echo "$as_me: caught signal $ac_signal"
2060 $as_echo "$as_me: exit $exit_status"
2042 printf "%s\n" "$as_me: caught signal $ac_signal"
2043 printf "%s\n" "$as_me: exit $exit_status"
20612044 } >&5
20622045 rm -f core *.core core.conftest.* &&
20632046 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
20712054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
20722055 rm -f -r conftest* confdefs.h
20732056
2074 $as_echo "/* confdefs.h */" > confdefs.h
2057 printf "%s\n" "/* confdefs.h */" > confdefs.h
20752058
20762059 # Predefined preprocessor variables.
20772060
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_NAME "$PACKAGE_NAME"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084 _ACEOF
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2088 _ACEOF
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_STRING "$PACKAGE_STRING"
2092 _ACEOF
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096 _ACEOF
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_URL "$PACKAGE_URL"
2100 _ACEOF
2061 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2062
2063 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2064
2065 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2066
2067 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2068
2069 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2070
2071 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
21012072
21022073
21032074 # Let the site file select an alternate cache file if it wants to.
21042075 # Prefer an explicitly selected file to automatically selected ones.
2105 ac_site_file1=NONE
2106 ac_site_file2=NONE
21072076 if test -n "$CONFIG_SITE"; then
2108 # We do not want a PATH search for config.site.
2109 case $CONFIG_SITE in #((
2110 -*) ac_site_file1=./$CONFIG_SITE;;
2111 */*) ac_site_file1=$CONFIG_SITE;;
2112 *) ac_site_file1=./$CONFIG_SITE;;
2113 esac
2077 ac_site_files="$CONFIG_SITE"
21142078 elif test "x$prefix" != xNONE; then
2115 ac_site_file1=$prefix/share/config.site
2116 ac_site_file2=$prefix/etc/config.site
2117 else
2118 ac_site_file1=$ac_default_prefix/share/config.site
2119 ac_site_file2=$ac_default_prefix/etc/config.site
2120 fi
2121 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2079 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2080 else
2081 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2082 fi
2083
2084 for ac_site_file in $ac_site_files
21222085 do
2123 test "x$ac_site_file" = xNONE && continue
2124 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2126 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2086 case $ac_site_file in #(
2087 */*) :
2088 ;; #(
2089 *) :
2090 ac_site_file=./$ac_site_file ;;
2091 esac
2092 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2094 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
21272095 sed 's/^/| /' "$ac_site_file" >&5
21282096 . "$ac_site_file" \
2129 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2098 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21312099 as_fn_error $? "failed to load site script $ac_site_file
21322100 See \`config.log' for more details" "$LINENO" 5; }
21332101 fi
21372105 # Some versions of bash will fail to source /dev/null (special files
21382106 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
21392107 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2141 $as_echo "$as_me: loading cache $cache_file" >&6;}
2108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
21422110 case $cache_file in
21432111 [\\/]* | ?:[\\/]* ) . "$cache_file";;
21442112 *) . "./$cache_file";;
21452113 esac
21462114 fi
21472115 else
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2149 $as_echo "$as_me: creating cache $cache_file" >&6;}
2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
21502118 >$cache_file
21512119 fi
21522120
2153 as_fn_append ac_header_list " iconv.h"
2121 # Test code for whether the C compiler supports C89 (global declarations)
2122 ac_c_conftest_c89_globals='
2123 /* Does the compiler advertise C89 conformance?
2124 Do not test the value of __STDC__, because some compilers set it to 0
2125 while being otherwise adequately conformant. */
2126 #if !defined __STDC__
2127 # error "Compiler does not advertise C89 conformance"
2128 #endif
2129
2130 #include <stddef.h>
2131 #include <stdarg.h>
2132 struct stat;
2133 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2134 struct buf { int x; };
2135 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2136 static char *e (p, i)
2137 char **p;
2138 int i;
2139 {
2140 return p[i];
2141 }
2142 static char *f (char * (*g) (char **, int), char **p, ...)
2143 {
2144 char *s;
2145 va_list v;
2146 va_start (v,p);
2147 s = g (p, va_arg (v,int));
2148 va_end (v);
2149 return s;
2150 }
2151
2152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2153 function prototypes and stuff, but not \xHH hex character constants.
2154 These do not provoke an error unfortunately, instead are silently treated
2155 as an "x". The following induces an error, until -std is added to get
2156 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2157 array size at least. It is necessary to write \x00 == 0 to get something
2158 that is true only with -std. */
2159 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2160
2161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2162 inside strings and character constants. */
2163 #define FOO(x) '\''x'\''
2164 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2165
2166 int test (int i, double x);
2167 struct s1 {int (*f) (int a);};
2168 struct s2 {int (*f) (double a);};
2169 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2170 int, int);'
2171
2172 # Test code for whether the C compiler supports C89 (body of main).
2173 ac_c_conftest_c89_main='
2174 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2175 '
2176
2177 # Test code for whether the C compiler supports C99 (global declarations)
2178 ac_c_conftest_c99_globals='
2179 // Does the compiler advertise C99 conformance?
2180 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2181 # error "Compiler does not advertise C99 conformance"
2182 #endif
2183
2184 #include <stdbool.h>
2185 extern int puts (const char *);
2186 extern int printf (const char *, ...);
2187 extern int dprintf (int, const char *, ...);
2188 extern void *malloc (size_t);
2189
2190 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2191 // dprintf is used instead of fprintf to avoid needing to declare
2192 // FILE and stderr.
2193 #define debug(...) dprintf (2, __VA_ARGS__)
2194 #define showlist(...) puts (#__VA_ARGS__)
2195 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2196 static void
2197 test_varargs_macros (void)
2198 {
2199 int x = 1234;
2200 int y = 5678;
2201 debug ("Flag");
2202 debug ("X = %d\n", x);
2203 showlist (The first, second, and third items.);
2204 report (x>y, "x is %d but y is %d", x, y);
2205 }
2206
2207 // Check long long types.
2208 #define BIG64 18446744073709551615ull
2209 #define BIG32 4294967295ul
2210 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2211 #if !BIG_OK
2212 #error "your preprocessor is broken"
2213 #endif
2214 #if BIG_OK
2215 #else
2216 #error "your preprocessor is broken"
2217 #endif
2218 static long long int bignum = -9223372036854775807LL;
2219 static unsigned long long int ubignum = BIG64;
2220
2221 struct incomplete_array
2222 {
2223 int datasize;
2224 double data[];
2225 };
2226
2227 struct named_init {
2228 int number;
2229 const wchar_t *name;
2230 double average;
2231 };
2232
2233 typedef const char *ccp;
2234
2235 static inline int
2236 test_restrict (ccp restrict text)
2237 {
2238 // See if C++-style comments work.
2239 // Iterate through items via the restricted pointer.
2240 // Also check for declarations in for loops.
2241 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2242 continue;
2243 return 0;
2244 }
2245
2246 // Check varargs and va_copy.
2247 static bool
2248 test_varargs (const char *format, ...)
2249 {
2250 va_list args;
2251 va_start (args, format);
2252 va_list args_copy;
2253 va_copy (args_copy, args);
2254
2255 const char *str = "";
2256 int number = 0;
2257 float fnumber = 0;
2258
2259 while (*format)
2260 {
2261 switch (*format++)
2262 {
2263 case '\''s'\'': // string
2264 str = va_arg (args_copy, const char *);
2265 break;
2266 case '\''d'\'': // int
2267 number = va_arg (args_copy, int);
2268 break;
2269 case '\''f'\'': // float
2270 fnumber = va_arg (args_copy, double);
2271 break;
2272 default:
2273 break;
2274 }
2275 }
2276 va_end (args_copy);
2277 va_end (args);
2278
2279 return *str && number && fnumber;
2280 }
2281 '
2282
2283 # Test code for whether the C compiler supports C99 (body of main).
2284 ac_c_conftest_c99_main='
2285 // Check bool.
2286 _Bool success = false;
2287 success |= (argc != 0);
2288
2289 // Check restrict.
2290 if (test_restrict ("String literal") == 0)
2291 success = true;
2292 char *restrict newvar = "Another string";
2293
2294 // Check varargs.
2295 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2296 test_varargs_macros ();
2297
2298 // Check flexible array members.
2299 struct incomplete_array *ia =
2300 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2301 ia->datasize = 10;
2302 for (int i = 0; i < ia->datasize; ++i)
2303 ia->data[i] = i * 1.234;
2304
2305 // Check named initializers.
2306 struct named_init ni = {
2307 .number = 34,
2308 .name = L"Test wide string",
2309 .average = 543.34343,
2310 };
2311
2312 ni.number = 58;
2313
2314 int dynamic_array[ni.number];
2315 dynamic_array[0] = argv[0][0];
2316 dynamic_array[ni.number - 1] = 543;
2317
2318 // work around unused variable warnings
2319 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2320 || dynamic_array[ni.number - 1] != 543);
2321 '
2322
2323 # Test code for whether the C compiler supports C11 (global declarations)
2324 ac_c_conftest_c11_globals='
2325 // Does the compiler advertise C11 conformance?
2326 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2327 # error "Compiler does not advertise C11 conformance"
2328 #endif
2329
2330 // Check _Alignas.
2331 char _Alignas (double) aligned_as_double;
2332 char _Alignas (0) no_special_alignment;
2333 extern char aligned_as_int;
2334 char _Alignas (0) _Alignas (int) aligned_as_int;
2335
2336 // Check _Alignof.
2337 enum
2338 {
2339 int_alignment = _Alignof (int),
2340 int_array_alignment = _Alignof (int[100]),
2341 char_alignment = _Alignof (char)
2342 };
2343 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2344
2345 // Check _Noreturn.
2346 int _Noreturn does_not_return (void) { for (;;) continue; }
2347
2348 // Check _Static_assert.
2349 struct test_static_assert
2350 {
2351 int x;
2352 _Static_assert (sizeof (int) <= sizeof (long int),
2353 "_Static_assert does not work in struct");
2354 long int y;
2355 };
2356
2357 // Check UTF-8 literals.
2358 #define u8 syntax error!
2359 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2360
2361 // Check duplicate typedefs.
2362 typedef long *long_ptr;
2363 typedef long int *long_ptr;
2364 typedef long_ptr long_ptr;
2365
2366 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2367 struct anonymous
2368 {
2369 union {
2370 struct { int i; int j; };
2371 struct { int k; long int l; } w;
2372 };
2373 int m;
2374 } v1;
2375 '
2376
2377 # Test code for whether the C compiler supports C11 (body of main).
2378 ac_c_conftest_c11_main='
2379 _Static_assert ((offsetof (struct anonymous, i)
2380 == offsetof (struct anonymous, w.k)),
2381 "Anonymous union alignment botch");
2382 v1.i = 2;
2383 v1.w.k = 5;
2384 ok |= v1.i != 5;
2385 '
2386
2387 # Test code for whether the C compiler supports C11 (complete).
2388 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2389 ${ac_c_conftest_c99_globals}
2390 ${ac_c_conftest_c11_globals}
2391
2392 int
2393 main (int argc, char **argv)
2394 {
2395 int ok = 0;
2396 ${ac_c_conftest_c89_main}
2397 ${ac_c_conftest_c99_main}
2398 ${ac_c_conftest_c11_main}
2399 return ok;
2400 }
2401 "
2402
2403 # Test code for whether the C compiler supports C99 (complete).
2404 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2405 ${ac_c_conftest_c99_globals}
2406
2407 int
2408 main (int argc, char **argv)
2409 {
2410 int ok = 0;
2411 ${ac_c_conftest_c89_main}
2412 ${ac_c_conftest_c99_main}
2413 return ok;
2414 }
2415 "
2416
2417 # Test code for whether the C compiler supports C89 (complete).
2418 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2419
2420 int
2421 main (int argc, char **argv)
2422 {
2423 int ok = 0;
2424 ${ac_c_conftest_c89_main}
2425 return ok;
2426 }
2427 "
2428
2429 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2430 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2431 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2432 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2433 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2434 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2435 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2436 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2437 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2438 as_fn_append ac_header_c_list " iconv.h iconv_h HAVE_ICONV_H"
2439
2440 # Auxiliary files required by this configure script.
2441 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2442
2443 # Locations in which to look for auxiliary files.
2444 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2445
2446 # Search for a directory containing all of the required auxiliary files,
2447 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2448 # If we don't find one directory that contains all the files we need,
2449 # we report the set of missing files from the *first* directory in
2450 # $ac_aux_dir_candidates and give up.
2451 ac_missing_aux_files=""
2452 ac_first_candidate=:
2453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 as_found=false
2456 for as_dir in $ac_aux_dir_candidates
2457 do
2458 IFS=$as_save_IFS
2459 case $as_dir in #(((
2460 '') as_dir=./ ;;
2461 */) ;;
2462 *) as_dir=$as_dir/ ;;
2463 esac
2464 as_found=:
2465
2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2467 ac_aux_dir_found=yes
2468 ac_install_sh=
2469 for ac_aux in $ac_aux_files
2470 do
2471 # As a special case, if "install-sh" is required, that requirement
2472 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2473 # and $ac_install_sh is set appropriately for whichever one is found.
2474 if test x"$ac_aux" = x"install-sh"
2475 then
2476 if test -f "${as_dir}install-sh"; then
2477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2478 ac_install_sh="${as_dir}install-sh -c"
2479 elif test -f "${as_dir}install.sh"; then
2480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2481 ac_install_sh="${as_dir}install.sh -c"
2482 elif test -f "${as_dir}shtool"; then
2483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2484 ac_install_sh="${as_dir}shtool install -c"
2485 else
2486 ac_aux_dir_found=no
2487 if $ac_first_candidate; then
2488 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2489 else
2490 break
2491 fi
2492 fi
2493 else
2494 if test -f "${as_dir}${ac_aux}"; then
2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2496 else
2497 ac_aux_dir_found=no
2498 if $ac_first_candidate; then
2499 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2500 else
2501 break
2502 fi
2503 fi
2504 fi
2505 done
2506 if test "$ac_aux_dir_found" = yes; then
2507 ac_aux_dir="$as_dir"
2508 break
2509 fi
2510 ac_first_candidate=false
2511
2512 as_found=false
2513 done
2514 IFS=$as_save_IFS
2515 if $as_found
2516 then :
2517
2518 else $as_nop
2519 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2520 fi
2521
2522
2523 # These three variables are undocumented and unsupported,
2524 # and are intended to be withdrawn in a future Autoconf release.
2525 # They can cause serious problems if a builder's source tree is in a directory
2526 # whose full name contains unusual characters.
2527 if test -f "${ac_aux_dir}config.guess"; then
2528 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2529 fi
2530 if test -f "${ac_aux_dir}config.sub"; then
2531 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2532 fi
2533 if test -f "$ac_aux_dir/configure"; then
2534 ac_configure="$SHELL ${ac_aux_dir}configure"
2535 fi
2536
21542537 # Check that the precious variables saved in the cache have kept the same
21552538 # value.
21562539 ac_cache_corrupted=false
21612544 eval ac_new_val=\$ac_env_${ac_var}_value
21622545 case $ac_old_set,$ac_new_set in
21632546 set,)
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
21662549 ac_cache_corrupted=: ;;
21672550 ,set)
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
21702553 ac_cache_corrupted=: ;;
21712554 ,);;
21722555 *)
21752558 ac_old_val_w=`echo x $ac_old_val`
21762559 ac_new_val_w=`echo x $ac_new_val`
21772560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
21802563 ac_cache_corrupted=:
21812564 else
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
21842567 eval $ac_var=\$ac_old_val
21852568 fi
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2187 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2189 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
21902573 fi;;
21912574 esac
21922575 # Pass precious variables to config.status.
21932576 if test "$ac_new_set" = set; then
21942577 case $ac_new_val in
2195 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2578 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
21962579 *) ac_arg=$ac_var=$ac_new_val ;;
21972580 esac
21982581 case " $ac_configure_args " in
22022585 fi
22032586 done
22042587 if $ac_cache_corrupted; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2593 and start over" "$LINENO" 5
22102594 fi
22112595 ## -------------------- ##
22122596 ## Main body of script. ##
22212605
22222606 am__api_version='1.16'
22232607
2224 ac_aux_dir=
2225 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2226 if test -f "$ac_dir/install-sh"; then
2227 ac_aux_dir=$ac_dir
2228 ac_install_sh="$ac_aux_dir/install-sh -c"
2229 break
2230 elif test -f "$ac_dir/install.sh"; then
2231 ac_aux_dir=$ac_dir
2232 ac_install_sh="$ac_aux_dir/install.sh -c"
2233 break
2234 elif test -f "$ac_dir/shtool"; then
2235 ac_aux_dir=$ac_dir
2236 ac_install_sh="$ac_aux_dir/shtool install -c"
2237 break
2238 fi
2239 done
2240 if test -z "$ac_aux_dir"; then
2241 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2242 fi
2243
2244 # These three variables are undocumented and unsupported,
2245 # and are intended to be withdrawn in a future Autoconf release.
2246 # They can cause serious problems if a builder's source tree is in a directory
2247 # whose full name contains unusual characters.
2248 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2249 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2250 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2251
2252
2253 # Find a good install program. We prefer a C program (faster),
2608
2609
2610 # Find a good install program. We prefer a C program (faster),
22542611 # so one script is as good as another. But avoid the broken or
22552612 # incompatible versions:
22562613 # SysV /etc/install, /usr/sbin/install
22642621 # OS/2's system install, which has a completely different semantic
22652622 # ./install, which can be erroneously created by make from ./install.sh.
22662623 # Reject install programs that cannot install multiple files.
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2268 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2625 printf %s "checking for a BSD-compatible install... " >&6; }
22692626 if test -z "$INSTALL"; then
2270 if ${ac_cv_path_install+:} false; then :
2271 $as_echo_n "(cached) " >&6
2272 else
2627 if test ${ac_cv_path_install+y}
2628 then :
2629 printf %s "(cached) " >&6
2630 else $as_nop
22732631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22742632 for as_dir in $PATH
22752633 do
22762634 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
2278 # Account for people who put trailing slashes in PATH elements.
2279 case $as_dir/ in #((
2280 ./ | .// | /[cC]/* | \
2635 case $as_dir in #(((
2636 '') as_dir=./ ;;
2637 */) ;;
2638 *) as_dir=$as_dir/ ;;
2639 esac
2640 # Account for fact that we put trailing slashes in our PATH walk.
2641 case $as_dir in #((
2642 ./ | /[cC]/* | \
22812643 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
22822644 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
22832645 /usr/ucb/* ) ;;
22872649 # by default.
22882650 for ac_prog in ginstall scoinst install; do
22892651 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2652 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
22912653 if test $ac_prog = install &&
2292 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2654 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22932655 # AIX install. It has an incompatible calling convention.
22942656 :
22952657 elif test $ac_prog = install &&
2296 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2658 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22972659 # program-specific install script used by HP pwplus--don't use.
22982660 :
22992661 else
23012663 echo one > conftest.one
23022664 echo two > conftest.two
23032665 mkdir conftest.dir
2304 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2666 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
23052667 test -s conftest.one && test -s conftest.two &&
23062668 test -s conftest.dir/conftest.one &&
23072669 test -s conftest.dir/conftest.two
23082670 then
2309 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2671 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
23102672 break 3
23112673 fi
23122674 fi
23222684 rm -rf conftest.one conftest.two conftest.dir
23232685
23242686 fi
2325 if test "${ac_cv_path_install+set}" = set; then
2687 if test ${ac_cv_path_install+y}; then
23262688 INSTALL=$ac_cv_path_install
23272689 else
23282690 # As a last resort, use the slow shell script. Don't cache a
23322694 INSTALL=$ac_install_sh
23332695 fi
23342696 fi
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2336 $as_echo "$INSTALL" >&6; }
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2698 printf "%s\n" "$INSTALL" >&6; }
23372699
23382700 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
23392701 # It thinks the first close brace ends the variable substitution.
23432705
23442706 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
23452707
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2347 $as_echo_n "checking whether build environment is sane... " >&6; }
2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2709 printf %s "checking whether build environment is sane... " >&6; }
23482710 # Reject unsafe characters in $srcdir or the absolute working directory
23492711 # name. Accept space and tab only in the latter.
23502712 am_lf='
23982760 as_fn_error $? "newly created file is older than distributed files!
23992761 Check your system clock" "$LINENO" 5
24002762 fi
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2402 $as_echo "yes" >&6; }
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764 printf "%s\n" "yes" >&6; }
24032765 # If we didn't sleep, we still need to ensure time stamps of config.status and
24042766 # generated files are strictly newer.
24052767 am_sleep_pid=
24182780 # Double any \ or $.
24192781 # By default was `s,x,x', remove it if useless.
24202782 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2421 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2783 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2784
24222785
24232786 # Expand $ac_aux_dir to an absolute path.
24242787 am_aux_dir=`cd "$ac_aux_dir" && pwd`
24252788
2426 if test x"${MISSING+set}" != xset; then
2427 case $am_aux_dir in
2428 *\ * | *\ *)
2429 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2430 *)
2431 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2432 esac
2789
2790 if test x"${MISSING+set}" != xset; then
2791 MISSING="\${SHELL} '$am_aux_dir/missing'"
24332792 fi
24342793 # Use eval to expand $SHELL
24352794 if eval "$MISSING --is-lightweight"; then
24362795 am_missing_run="$MISSING "
24372796 else
24382797 am_missing_run=
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2440 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2799 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
24412800 fi
24422801
24432802 if test x"${install_sh+set}" != xset; then
24572816 if test -n "$ac_tool_prefix"; then
24582817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24592818 set dummy ${ac_tool_prefix}strip; ac_word=$2
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if ${ac_cv_prog_STRIP+:} false; then :
2463 $as_echo_n "(cached) " >&6
2464 else
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 printf %s "checking for $ac_word... " >&6; }
2821 if test ${ac_cv_prog_STRIP+y}
2822 then :
2823 printf %s "(cached) " >&6
2824 else $as_nop
24652825 if test -n "$STRIP"; then
24662826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
24672827 else
24692829 for as_dir in $PATH
24702830 do
24712831 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2832 case $as_dir in #(((
2833 '') as_dir=./ ;;
2834 */) ;;
2835 *) as_dir=$as_dir/ ;;
2836 esac
24732837 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24752839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24772841 break 2
24782842 fi
24792843 done
24842848 fi
24852849 STRIP=$ac_cv_prog_STRIP
24862850 if test -n "$STRIP"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2488 $as_echo "$STRIP" >&6; }
2489 else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491 $as_echo "no" >&6; }
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2852 printf "%s\n" "$STRIP" >&6; }
2853 else
2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 printf "%s\n" "no" >&6; }
24922856 fi
24932857
24942858
24972861 ac_ct_STRIP=$STRIP
24982862 # Extract the first word of "strip", so it can be a program name with args.
24992863 set dummy strip; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 printf %s "checking for $ac_word... " >&6; }
2866 if test ${ac_cv_prog_ac_ct_STRIP+y}
2867 then :
2868 printf %s "(cached) " >&6
2869 else $as_nop
25052870 if test -n "$ac_ct_STRIP"; then
25062871 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
25072872 else
25092874 for as_dir in $PATH
25102875 do
25112876 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2877 case $as_dir in #(((
2878 '') as_dir=./ ;;
2879 */) ;;
2880 *) as_dir=$as_dir/ ;;
2881 esac
25132882 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25152884 ac_cv_prog_ac_ct_STRIP="strip"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25172886 break 2
25182887 fi
25192888 done
25242893 fi
25252894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
25262895 if test -n "$ac_ct_STRIP"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2528 $as_echo "$ac_ct_STRIP" >&6; }
2529 else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2897 printf "%s\n" "$ac_ct_STRIP" >&6; }
2898 else
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 printf "%s\n" "no" >&6; }
25322901 fi
25332902
25342903 if test "x$ac_ct_STRIP" = x; then
25362905 else
25372906 case $cross_compiling:$ac_tool_warned in
25382907 yes:)
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25412910 ac_tool_warned=yes ;;
25422911 esac
25432912 STRIP=$ac_ct_STRIP
25492918 fi
25502919 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
25512920
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2553 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2921
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2923 printf %s "checking for a race-free mkdir -p... " >&6; }
25542924 if test -z "$MKDIR_P"; then
2555 if ${ac_cv_path_mkdir+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2925 if test ${ac_cv_path_mkdir+y}
2926 then :
2927 printf %s "(cached) " >&6
2928 else $as_nop
25582929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25592930 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
25602931 do
25612932 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2933 case $as_dir in #(((
2934 '') as_dir=./ ;;
2935 */) ;;
2936 *) as_dir=$as_dir/ ;;
2937 esac
25632938 for ac_prog in mkdir gmkdir; do
25642939 for ac_exec_ext in '' $ac_executable_extensions; do
2565 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2566 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2567 'mkdir (GNU coreutils) '* | \
2568 'mkdir (coreutils) '* | \
2940 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2941 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2942 'mkdir ('*'coreutils) '* | \
2943 'BusyBox '* | \
25692944 'mkdir (fileutils) '4.1*)
2570 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2945 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
25712946 break 3;;
25722947 esac
25732948 done
25782953 fi
25792954
25802955 test -d ./--version && rmdir ./--version
2581 if test "${ac_cv_path_mkdir+set}" = set; then
2956 if test ${ac_cv_path_mkdir+y}; then
25822957 MKDIR_P="$ac_cv_path_mkdir -p"
25832958 else
25842959 # As a last resort, use the slow shell script. Don't cache a
25882963 MKDIR_P="$ac_install_sh -d"
25892964 fi
25902965 fi
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2592 $as_echo "$MKDIR_P" >&6; }
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2967 printf "%s\n" "$MKDIR_P" >&6; }
25932968
25942969 for ac_prog in gawk mawk nawk awk
25952970 do
25962971 # Extract the first word of "$ac_prog", so it can be a program name with args.
25972972 set dummy $ac_prog; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if ${ac_cv_prog_AWK+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 printf %s "checking for $ac_word... " >&6; }
2975 if test ${ac_cv_prog_AWK+y}
2976 then :
2977 printf %s "(cached) " >&6
2978 else $as_nop
26032979 if test -n "$AWK"; then
26042980 ac_cv_prog_AWK="$AWK" # Let the user override the test.
26052981 else
26072983 for as_dir in $PATH
26082984 do
26092985 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2986 case $as_dir in #(((
2987 '') as_dir=./ ;;
2988 */) ;;
2989 *) as_dir=$as_dir/ ;;
2990 esac
26112991 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26132993 ac_cv_prog_AWK="$ac_prog"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26152995 break 2
26162996 fi
26172997 done
26223002 fi
26233003 AWK=$ac_cv_prog_AWK
26243004 if test -n "$AWK"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2626 $as_echo "$AWK" >&6; }
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3006 printf "%s\n" "$AWK" >&6; }
3007 else
3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 printf "%s\n" "no" >&6; }
26303010 fi
26313011
26323012
26333013 test -n "$AWK" && break
26343014 done
26353015
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2637 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3017 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
26383018 set x ${MAKE-make}
2639 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2640 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642 else
3019 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3020 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3021 then :
3022 printf %s "(cached) " >&6
3023 else $as_nop
26433024 cat >conftest.make <<\_ACEOF
26443025 SHELL = /bin/sh
26453026 all:
26553036 rm -f conftest.make
26563037 fi
26573038 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659 $as_echo "yes" >&6; }
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3040 printf "%s\n" "yes" >&6; }
26603041 SET_MAKE=
26613042 else
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 printf "%s\n" "no" >&6; }
26643045 SET_MAKE="MAKE=${MAKE-make}"
26653046 fi
26663047
26743055 rmdir .tst 2>/dev/null
26753056
26763057 # Check whether --enable-silent-rules was given.
2677 if test "${enable_silent_rules+set}" = set; then :
3058 if test ${enable_silent_rules+y}
3059 then :
26783060 enableval=$enable_silent_rules;
26793061 fi
26803062
26843066 *) AM_DEFAULT_VERBOSITY=1;;
26853067 esac
26863068 am_make=${MAKE-make}
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2688 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2689 if ${am_cv_make_support_nested_variables+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if $as_echo 'TRUE=$(BAR$(V))
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3070 printf %s "checking whether $am_make supports nested variables... " >&6; }
3071 if test ${am_cv_make_support_nested_variables+y}
3072 then :
3073 printf %s "(cached) " >&6
3074 else $as_nop
3075 if printf "%s\n" 'TRUE=$(BAR$(V))
26933076 BAR0=false
26943077 BAR1=true
26953078 V=1
27013084 am_cv_make_support_nested_variables=no
27023085 fi
27033086 fi
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2705 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3088 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
27063089 if test $am_cv_make_support_nested_variables = yes; then
27073090 AM_V='$(V)'
27083091 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
27343117
27353118 # Define the identity of the package.
27363119 PACKAGE='libass'
2737 VERSION='0.15.1'
2738
2739
2740 cat >>confdefs.h <<_ACEOF
2741 #define PACKAGE "$PACKAGE"
2742 _ACEOF
2743
2744
2745 cat >>confdefs.h <<_ACEOF
2746 #define VERSION "$VERSION"
2747 _ACEOF
3120 VERSION='0.15.2'
3121
3122
3123 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3124
3125
3126 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
27483127
27493128 # Some tools Automake needs.
27503129
27823161
27833162
27843163
3164
3165
3166 # Variables for tags utilities; see am/tags.am
3167 if test -z "$CTAGS"; then
3168 CTAGS=ctags
3169 fi
3170
3171 if test -z "$ETAGS"; then
3172 ETAGS=etags
3173 fi
3174
3175 if test -z "$CSCOPE"; then
3176 CSCOPE=cscope
3177 fi
27853178
27863179
27873180
28323225
28333226 case `pwd` in
28343227 *\ * | *\ *)
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2836 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3229 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
28373230 esac
28383231
28393232
28533246
28543247
28553248
3249
28563250 ltmain=$ac_aux_dir/ltmain.sh
28573251
2858 # Make sure we can run config.sub.
2859 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2860 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2861
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2863 $as_echo_n "checking build system type... " >&6; }
2864 if ${ac_cv_build+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
3252
3253
3254 # Make sure we can run config.sub.
3255 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3256 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3257
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3259 printf %s "checking build system type... " >&6; }
3260 if test ${ac_cv_build+y}
3261 then :
3262 printf %s "(cached) " >&6
3263 else $as_nop
28673264 ac_build_alias=$build_alias
28683265 test "x$ac_build_alias" = x &&
2869 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3266 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
28703267 test "x$ac_build_alias" = x &&
28713268 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2872 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2873 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2874
2875 fi
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2877 $as_echo "$ac_cv_build" >&6; }
3269 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3270 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3271
3272 fi
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3274 printf "%s\n" "$ac_cv_build" >&6; }
28783275 case $ac_cv_build in
28793276 *-*-*) ;;
28803277 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
28933290 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
28943291
28953292
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2897 $as_echo_n "checking host system type... " >&6; }
2898 if ${ac_cv_host+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3294 printf %s "checking host system type... " >&6; }
3295 if test ${ac_cv_host+y}
3296 then :
3297 printf %s "(cached) " >&6
3298 else $as_nop
29013299 if test "x$host_alias" = x; then
29023300 ac_cv_host=$ac_cv_build
29033301 else
2904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2905 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2906 fi
2907
2908 fi
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2910 $as_echo "$ac_cv_host" >&6; }
3302 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3303 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3304 fi
3305
3306 fi
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3308 printf "%s\n" "$ac_cv_host" >&6; }
29113309 case $ac_cv_host in
29123310 *-*-*) ;;
29133311 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
29473345 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
29483346 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
29493347
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2951 $as_echo_n "checking how to print strings... " >&6; }
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3349 printf %s "checking how to print strings... " >&6; }
29523350 # Test print first, because it will be a builtin if present.
29533351 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
29543352 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
29743372 }
29753373
29763374 case $ECHO in
2977 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2978 $as_echo "printf" >&6; } ;;
2979 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2980 $as_echo "print -r" >&6; } ;;
2981 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2982 $as_echo "cat" >&6; } ;;
3375 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3376 printf "%s\n" "printf" >&6; } ;;
3377 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3378 printf "%s\n" "print -r" >&6; } ;;
3379 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3380 printf "%s\n" "cat" >&6; } ;;
29833381 esac
29843382
29853383
29953393
29963394
29973395
3396
3397
3398
3399
3400
3401
3402
3403
3404
29983405 DEPDIR="${am__leading_dot}deps"
29993406
30003407 ac_config_commands="$ac_config_commands depfiles"
30013408
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3003 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3410 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
30043411 cat > confinc.mk << 'END'
30053412 am__doit:
30063413 @echo this is the am__doit target >confinc.out
30363443 fi
30373444 done
30383445 rm -f confinc.* confmf.*
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3040 $as_echo "${_am_result}" >&6; }
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3447 printf "%s\n" "${_am_result}" >&6; }
30413448
30423449 # Check whether --enable-dependency-tracking was given.
3043 if test "${enable_dependency_tracking+set}" = set; then :
3450 if test ${enable_dependency_tracking+y}
3451 then :
30443452 enableval=$enable_dependency_tracking;
30453453 fi
30463454
30663474 if test -n "$ac_tool_prefix"; then
30673475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
30683476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_CC+:} false; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 printf %s "checking for $ac_word... " >&6; }
3479 if test ${ac_cv_prog_CC+y}
3480 then :
3481 printf %s "(cached) " >&6
3482 else $as_nop
30743483 if test -n "$CC"; then
30753484 ac_cv_prog_CC="$CC" # Let the user override the test.
30763485 else
30783487 for as_dir in $PATH
30793488 do
30803489 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3490 case $as_dir in #(((
3491 '') as_dir=./ ;;
3492 */) ;;
3493 *) as_dir=$as_dir/ ;;
3494 esac
30823495 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30843497 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30863499 break 2
30873500 fi
30883501 done
30933506 fi
30943507 CC=$ac_cv_prog_CC
30953508 if test -n "$CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097 $as_echo "$CC" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3510 printf "%s\n" "$CC" >&6; }
3511 else
3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 printf "%s\n" "no" >&6; }
31013514 fi
31023515
31033516
31063519 ac_ct_CC=$CC
31073520 # Extract the first word of "gcc", so it can be a program name with args.
31083521 set dummy gcc; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 printf %s "checking for $ac_word... " >&6; }
3524 if test ${ac_cv_prog_ac_ct_CC+y}
3525 then :
3526 printf %s "(cached) " >&6
3527 else $as_nop
31143528 if test -n "$ac_ct_CC"; then
31153529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31163530 else
31183532 for as_dir in $PATH
31193533 do
31203534 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3535 case $as_dir in #(((
3536 '') as_dir=./ ;;
3537 */) ;;
3538 *) as_dir=$as_dir/ ;;
3539 esac
31223540 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31243542 ac_cv_prog_ac_ct_CC="gcc"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31263544 break 2
31273545 fi
31283546 done
31333551 fi
31343552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
31353553 if test -n "$ac_ct_CC"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3137 $as_echo "$ac_ct_CC" >&6; }
3138 else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3555 printf "%s\n" "$ac_ct_CC" >&6; }
3556 else
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 printf "%s\n" "no" >&6; }
31413559 fi
31423560
31433561 if test "x$ac_ct_CC" = x; then
31453563 else
31463564 case $cross_compiling:$ac_tool_warned in
31473565 yes:)
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3567 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31503568 ac_tool_warned=yes ;;
31513569 esac
31523570 CC=$ac_ct_CC
31593577 if test -n "$ac_tool_prefix"; then
31603578 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
31613579 set dummy ${ac_tool_prefix}cc; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 printf %s "checking for $ac_word... " >&6; }
3582 if test ${ac_cv_prog_CC+y}
3583 then :
3584 printf %s "(cached) " >&6
3585 else $as_nop
31673586 if test -n "$CC"; then
31683587 ac_cv_prog_CC="$CC" # Let the user override the test.
31693588 else
31713590 for as_dir in $PATH
31723591 do
31733592 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3593 case $as_dir in #(((
3594 '') as_dir=./ ;;
3595 */) ;;
3596 *) as_dir=$as_dir/ ;;
3597 esac
31753598 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31773600 ac_cv_prog_CC="${ac_tool_prefix}cc"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31793602 break 2
31803603 fi
31813604 done
31863609 fi
31873610 CC=$ac_cv_prog_CC
31883611 if test -n "$CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 printf "%s\n" "$CC" >&6; }
3614 else
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 printf "%s\n" "no" >&6; }
31943617 fi
31953618
31963619
31993622 if test -z "$CC"; then
32003623 # Extract the first word of "cc", so it can be a program name with args.
32013624 set dummy cc; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_CC+:} false; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 printf %s "checking for $ac_word... " >&6; }
3627 if test ${ac_cv_prog_CC+y}
3628 then :
3629 printf %s "(cached) " >&6
3630 else $as_nop
32073631 if test -n "$CC"; then
32083632 ac_cv_prog_CC="$CC" # Let the user override the test.
32093633 else
32123636 for as_dir in $PATH
32133637 do
32143638 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3639 case $as_dir in #(((
3640 '') as_dir=./ ;;
3641 */) ;;
3642 *) as_dir=$as_dir/ ;;
3643 esac
32163644 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3646 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
32193647 ac_prog_rejected=yes
32203648 continue
32213649 fi
32223650 ac_cv_prog_CC="cc"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32243652 break 2
32253653 fi
32263654 done
32363664 # However, it has the same basename, so the bogon will be chosen
32373665 # first if we set CC to just the basename; use the full file name.
32383666 shift
3239 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3667 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
32403668 fi
32413669 fi
32423670 fi
32433671 fi
32443672 CC=$ac_cv_prog_CC
32453673 if test -n "$CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 printf "%s\n" "$CC" >&6; }
3676 else
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 printf "%s\n" "no" >&6; }
32513679 fi
32523680
32533681
32583686 do
32593687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32603688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_CC+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 printf %s "checking for $ac_word... " >&6; }
3691 if test ${ac_cv_prog_CC+y}
3692 then :
3693 printf %s "(cached) " >&6
3694 else $as_nop
32663695 if test -n "$CC"; then
32673696 ac_cv_prog_CC="$CC" # Let the user override the test.
32683697 else
32703699 for as_dir in $PATH
32713700 do
32723701 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3702 case $as_dir in #(((
3703 '') as_dir=./ ;;
3704 */) ;;
3705 *) as_dir=$as_dir/ ;;
3706 esac
32743707 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32763709 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32783711 break 2
32793712 fi
32803713 done
32853718 fi
32863719 CC=$ac_cv_prog_CC
32873720 if test -n "$CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3722 printf "%s\n" "$CC" >&6; }
3723 else
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 printf "%s\n" "no" >&6; }
32933726 fi
32943727
32953728
33023735 do
33033736 # Extract the first word of "$ac_prog", so it can be a program name with args.
33043737 set dummy $ac_prog; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 printf %s "checking for $ac_word... " >&6; }
3740 if test ${ac_cv_prog_ac_ct_CC+y}
3741 then :
3742 printf %s "(cached) " >&6
3743 else $as_nop
33103744 if test -n "$ac_ct_CC"; then
33113745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
33123746 else
33143748 for as_dir in $PATH
33153749 do
33163750 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3751 case $as_dir in #(((
3752 '') as_dir=./ ;;
3753 */) ;;
3754 *) as_dir=$as_dir/ ;;
3755 esac
33183756 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33203758 ac_cv_prog_ac_ct_CC="$ac_prog"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33223760 break 2
33233761 fi
33243762 done
33293767 fi
33303768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
33313769 if test -n "$ac_ct_CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3333 $as_echo "$ac_ct_CC" >&6; }
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3771 printf "%s\n" "$ac_ct_CC" >&6; }
3772 else
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 printf "%s\n" "no" >&6; }
33373775 fi
33383776
33393777
33453783 else
33463784 case $cross_compiling:$ac_tool_warned in
33473785 yes:)
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3787 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33503788 ac_tool_warned=yes ;;
33513789 esac
33523790 CC=$ac_ct_CC
33543792 fi
33553793
33563794 fi
3357
3358
3359 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 if test -z "$CC"; then
3796 if test -n "$ac_tool_prefix"; then
3797 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3798 set dummy ${ac_tool_prefix}clang; ac_word=$2
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 printf %s "checking for $ac_word... " >&6; }
3801 if test ${ac_cv_prog_CC+y}
3802 then :
3803 printf %s "(cached) " >&6
3804 else $as_nop
3805 if test -n "$CC"; then
3806 ac_cv_prog_CC="$CC" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811 IFS=$as_save_IFS
3812 case $as_dir in #(((
3813 '') as_dir=./ ;;
3814 */) ;;
3815 *) as_dir=$as_dir/ ;;
3816 esac
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3819 ac_cv_prog_CC="${ac_tool_prefix}clang"
3820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3821 break 2
3822 fi
3823 done
3824 done
3825 IFS=$as_save_IFS
3826
3827 fi
3828 fi
3829 CC=$ac_cv_prog_CC
3830 if test -n "$CC"; then
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3832 printf "%s\n" "$CC" >&6; }
3833 else
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 printf "%s\n" "no" >&6; }
3836 fi
3837
3838
3839 fi
3840 if test -z "$ac_cv_prog_CC"; then
3841 ac_ct_CC=$CC
3842 # Extract the first word of "clang", so it can be a program name with args.
3843 set dummy clang; ac_word=$2
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 printf %s "checking for $ac_word... " >&6; }
3846 if test ${ac_cv_prog_ac_ct_CC+y}
3847 then :
3848 printf %s "(cached) " >&6
3849 else $as_nop
3850 if test -n "$ac_ct_CC"; then
3851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856 IFS=$as_save_IFS
3857 case $as_dir in #(((
3858 '') as_dir=./ ;;
3859 */) ;;
3860 *) as_dir=$as_dir/ ;;
3861 esac
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_CC="clang"
3865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3866 break 2
3867 fi
3868 done
3869 done
3870 IFS=$as_save_IFS
3871
3872 fi
3873 fi
3874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3875 if test -n "$ac_ct_CC"; then
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3877 printf "%s\n" "$ac_ct_CC" >&6; }
3878 else
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 printf "%s\n" "no" >&6; }
3881 fi
3882
3883 if test "x$ac_ct_CC" = x; then
3884 CC=""
3885 else
3886 case $cross_compiling:$ac_tool_warned in
3887 yes:)
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3889 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3890 ac_tool_warned=yes ;;
3891 esac
3892 CC=$ac_ct_CC
3893 fi
3894 else
3895 CC="$ac_cv_prog_CC"
3896 fi
3897
3898 fi
3899
3900
3901 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
33613903 as_fn_error $? "no acceptable C compiler found in \$PATH
33623904 See \`config.log' for more details" "$LINENO" 5; }
33633905
33643906 # Provide some information about the compiler.
3365 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
33663908 set X $ac_compile
33673909 ac_compiler=$2
3368 for ac_option in --version -v -V -qversion; do
3910 for ac_option in --version -v -V -qversion -version; do
33693911 { { ac_try="$ac_compiler $ac_option >&5"
33703912 case "(($ac_try" in
33713913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33723914 *) ac_try_echo=$ac_try;;
33733915 esac
33743916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3917 printf "%s\n" "$ac_try_echo"; } >&5
33763918 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
33773919 ac_status=$?
33783920 if test -s conftest.err; then
33823924 cat conftest.er1 >&5
33833925 fi
33843926 rm -f conftest.er1 conftest.err
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33863928 test $ac_status = 0; }
33873929 done
33883930
33903932 /* end confdefs.h. */
33913933
33923934 int
3393 main ()
3935 main (void)
33943936 {
33953937
33963938 ;
34023944 # Try to create an executable without -o first, disregard a.out.
34033945 # It will help us diagnose broken compilers, and finding out an intuition
34043946 # of exeext.
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3406 $as_echo_n "checking whether the C compiler works... " >&6; }
3407 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3948 printf %s "checking whether the C compiler works... " >&6; }
3949 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
34083950
34093951 # The possible output files:
34103952 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
34253967 *) ac_try_echo=$ac_try;;
34263968 esac
34273969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3970 printf "%s\n" "$ac_try_echo"; } >&5
34293971 (eval "$ac_link_default") 2>&5
34303972 ac_status=$?
3431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432 test $ac_status = 0; }; then :
3973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974 test $ac_status = 0; }
3975 then :
34333976 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
34343977 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
34353978 # in a Makefile. We should not override ac_cv_exeext if it was cached,
34463989 # certainly right.
34473990 break;;
34483991 *.* )
3449 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3992 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
34503993 then :; else
34513994 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
34523995 fi
34624005 done
34634006 test "$ac_cv_exeext" = no && ac_cv_exeext=
34644007
3465 else
4008 else $as_nop
34664009 ac_file=''
34674010 fi
3468 if test -z "$ac_file"; then :
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 $as_echo "$as_me: failed program was:" >&5
4011 if test -z "$ac_file"
4012 then :
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 printf "%s\n" "no" >&6; }
4015 printf "%s\n" "$as_me: failed program was:" >&5
34724016 sed 's/^/| /' conftest.$ac_ext >&5
34734017
3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34764020 as_fn_error 77 "C compiler cannot create executables
34774021 See \`config.log' for more details" "$LINENO" 5; }
3478 else
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3480 $as_echo "yes" >&6; }
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3483 $as_echo_n "checking for C compiler default output file name... " >&6; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3485 $as_echo "$ac_file" >&6; }
4022 else $as_nop
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4024 printf "%s\n" "yes" >&6; }
4025 fi
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4027 printf %s "checking for C compiler default output file name... " >&6; }
4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4029 printf "%s\n" "$ac_file" >&6; }
34864030 ac_exeext=$ac_cv_exeext
34874031
34884032 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
34894033 ac_clean_files=$ac_clean_files_save
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3491 $as_echo_n "checking for suffix of executables... " >&6; }
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4035 printf %s "checking for suffix of executables... " >&6; }
34924036 if { { ac_try="$ac_link"
34934037 case "(($ac_try" in
34944038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34954039 *) ac_try_echo=$ac_try;;
34964040 esac
34974041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
4042 printf "%s\n" "$ac_try_echo"; } >&5
34994043 (eval "$ac_link") 2>&5
35004044 ac_status=$?
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; then :
4045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046 test $ac_status = 0; }
4047 then :
35034048 # If both `conftest.exe' and `conftest' are `present' (well, observable)
35044049 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
35054050 # work properly (i.e., refer to `conftest.exe'), while it won't with
35134058 * ) break;;
35144059 esac
35154060 done
3516 else
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061 else $as_nop
4062 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
35194064 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
35204065 See \`config.log' for more details" "$LINENO" 5; }
35214066 fi
35224067 rm -f conftest conftest$ac_cv_exeext
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3524 $as_echo "$ac_cv_exeext" >&6; }
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4069 printf "%s\n" "$ac_cv_exeext" >&6; }
35254070
35264071 rm -f conftest.$ac_ext
35274072 EXEEXT=$ac_cv_exeext
35304075 /* end confdefs.h. */
35314076 #include <stdio.h>
35324077 int
3533 main ()
4078 main (void)
35344079 {
35354080 FILE *f = fopen ("conftest.out", "w");
35364081 return ferror (f) || fclose (f) != 0;
35424087 ac_clean_files="$ac_clean_files conftest.out"
35434088 # Check that the compiler produces executables we can run. If not, either
35444089 # the compiler is broken, or we cross compile.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3546 $as_echo_n "checking whether we are cross compiling... " >&6; }
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4091 printf %s "checking whether we are cross compiling... " >&6; }
35474092 if test "$cross_compiling" != yes; then
35484093 { { ac_try="$ac_link"
35494094 case "(($ac_try" in
35514096 *) ac_try_echo=$ac_try;;
35524097 esac
35534098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
4099 printf "%s\n" "$ac_try_echo"; } >&5
35554100 (eval "$ac_link") 2>&5
35564101 ac_status=$?
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35584103 test $ac_status = 0; }
35594104 if { ac_try='./conftest$ac_cv_exeext'
35604105 { { case "(($ac_try" in
35624107 *) ac_try_echo=$ac_try;;
35634108 esac
35644109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
4110 printf "%s\n" "$ac_try_echo"; } >&5
35664111 (eval "$ac_try") 2>&5
35674112 ac_status=$?
3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35694114 test $ac_status = 0; }; }; then
35704115 cross_compiling=no
35714116 else
35724117 if test "$cross_compiling" = maybe; then
35734118 cross_compiling=yes
35744119 else
3575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 as_fn_error $? "cannot run C compiled programs.
4120 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4122 as_fn_error 77 "cannot run C compiled programs.
35784123 If you meant to cross compile, use \`--host'.
35794124 See \`config.log' for more details" "$LINENO" 5; }
35804125 fi
35814126 fi
35824127 fi
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3584 $as_echo "$cross_compiling" >&6; }
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4129 printf "%s\n" "$cross_compiling" >&6; }
35854130
35864131 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
35874132 ac_clean_files=$ac_clean_files_save
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3589 $as_echo_n "checking for suffix of object files... " >&6; }
3590 if ${ac_cv_objext+:} false; then :
3591 $as_echo_n "(cached) " >&6
3592 else
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4134 printf %s "checking for suffix of object files... " >&6; }
4135 if test ${ac_cv_objext+y}
4136 then :
4137 printf %s "(cached) " >&6
4138 else $as_nop
35934139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35944140 /* end confdefs.h. */
35954141
35964142 int
3597 main ()
4143 main (void)
35984144 {
35994145
36004146 ;
36084154 *) ac_try_echo=$ac_try;;
36094155 esac
36104156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
4157 printf "%s\n" "$ac_try_echo"; } >&5
36124158 (eval "$ac_compile") 2>&5
36134159 ac_status=$?
3614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615 test $ac_status = 0; }; then :
4160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }
4162 then :
36164163 for ac_file in conftest.o conftest.obj conftest.*; do
36174164 test -f "$ac_file" || continue;
36184165 case $ac_file in
36214168 break;;
36224169 esac
36234170 done
3624 else
3625 $as_echo "$as_me: failed program was:" >&5
4171 else $as_nop
4172 printf "%s\n" "$as_me: failed program was:" >&5
36264173 sed 's/^/| /' conftest.$ac_ext >&5
36274174
3628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4176 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36304177 as_fn_error $? "cannot compute suffix of object files: cannot compile
36314178 See \`config.log' for more details" "$LINENO" 5; }
36324179 fi
36334180 rm -f conftest.$ac_cv_objext conftest.$ac_ext
36344181 fi
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3636 $as_echo "$ac_cv_objext" >&6; }
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4183 printf "%s\n" "$ac_cv_objext" >&6; }
36374184 OBJEXT=$ac_cv_objext
36384185 ac_objext=$OBJEXT
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3640 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3641 if ${ac_cv_c_compiler_gnu+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643 else
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4187 printf %s "checking whether the compiler supports GNU C... " >&6; }
4188 if test ${ac_cv_c_compiler_gnu+y}
4189 then :
4190 printf %s "(cached) " >&6
4191 else $as_nop
36444192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36454193 /* end confdefs.h. */
36464194
36474195 int
3648 main ()
4196 main (void)
36494197 {
36504198 #ifndef __GNUC__
36514199 choke me
36554203 return 0;
36564204 }
36574205 _ACEOF
3658 if ac_fn_c_try_compile "$LINENO"; then :
4206 if ac_fn_c_try_compile "$LINENO"
4207 then :
36594208 ac_compiler_gnu=yes
3660 else
4209 else $as_nop
36614210 ac_compiler_gnu=no
36624211 fi
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36644213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
36654214
36664215 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3668 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4217 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219
36694220 if test $ac_compiler_gnu = yes; then
36704221 GCC=yes
36714222 else
36724223 GCC=
36734224 fi
3674 ac_test_CFLAGS=${CFLAGS+set}
4225 ac_test_CFLAGS=${CFLAGS+y}
36754226 ac_save_CFLAGS=$CFLAGS
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3677 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3678 if ${ac_cv_prog_cc_g+:} false; then :
3679 $as_echo_n "(cached) " >&6
3680 else
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4228 printf %s "checking whether $CC accepts -g... " >&6; }
4229 if test ${ac_cv_prog_cc_g+y}
4230 then :
4231 printf %s "(cached) " >&6
4232 else $as_nop
36814233 ac_save_c_werror_flag=$ac_c_werror_flag
36824234 ac_c_werror_flag=yes
36834235 ac_cv_prog_cc_g=no
36864238 /* end confdefs.h. */
36874239
36884240 int
3689 main ()
4241 main (void)
36904242 {
36914243
36924244 ;
36934245 return 0;
36944246 }
36954247 _ACEOF
3696 if ac_fn_c_try_compile "$LINENO"; then :
4248 if ac_fn_c_try_compile "$LINENO"
4249 then :
36974250 ac_cv_prog_cc_g=yes
3698 else
4251 else $as_nop
36994252 CFLAGS=""
37004253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37014254 /* end confdefs.h. */
37024255
37034256 int
3704 main ()
4257 main (void)
37054258 {
37064259
37074260 ;
37084261 return 0;
37094262 }
37104263 _ACEOF
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712
3713 else
4264 if ac_fn_c_try_compile "$LINENO"
4265 then :
4266
4267 else $as_nop
37144268 ac_c_werror_flag=$ac_save_c_werror_flag
37154269 CFLAGS="-g"
37164270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37174271 /* end confdefs.h. */
37184272
37194273 int
3720 main ()
4274 main (void)
37214275 {
37224276
37234277 ;
37244278 return 0;
37254279 }
37264280 _ACEOF
3727 if ac_fn_c_try_compile "$LINENO"; then :
4281 if ac_fn_c_try_compile "$LINENO"
4282 then :
37284283 ac_cv_prog_cc_g=yes
37294284 fi
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 fi
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4286 fi
4287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37354290 ac_c_werror_flag=$ac_save_c_werror_flag
37364291 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3738 $as_echo "$ac_cv_prog_cc_g" >&6; }
3739 if test "$ac_test_CFLAGS" = set; then
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4293 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4294 if test $ac_test_CFLAGS; then
37404295 CFLAGS=$ac_save_CFLAGS
37414296 elif test $ac_cv_prog_cc_g = yes; then
37424297 if test "$GCC" = yes; then
37514306 CFLAGS=
37524307 fi
37534308 fi
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3755 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3756 if ${ac_cv_prog_cc_c89+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
4309 ac_prog_cc_stdc=no
4310 if test x$ac_prog_cc_stdc = xno
4311 then :
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4313 printf %s "checking for $CC option to enable C11 features... " >&6; }
4314 if test ${ac_cv_prog_cc_c11+y}
4315 then :
4316 printf %s "(cached) " >&6
4317 else $as_nop
4318 ac_cv_prog_cc_c11=no
4319 ac_save_CC=$CC
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322 $ac_c_conftest_c11_program
4323 _ACEOF
4324 for ac_arg in '' -std=gnu11
4325 do
4326 CC="$ac_save_CC $ac_arg"
4327 if ac_fn_c_try_compile "$LINENO"
4328 then :
4329 ac_cv_prog_cc_c11=$ac_arg
4330 fi
4331 rm -f core conftest.err conftest.$ac_objext conftest.beam
4332 test "x$ac_cv_prog_cc_c11" != "xno" && break
4333 done
4334 rm -f conftest.$ac_ext
4335 CC=$ac_save_CC
4336 fi
4337
4338 if test "x$ac_cv_prog_cc_c11" = xno
4339 then :
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4341 printf "%s\n" "unsupported" >&6; }
4342 else $as_nop
4343 if test "x$ac_cv_prog_cc_c11" = x
4344 then :
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4346 printf "%s\n" "none needed" >&6; }
4347 else $as_nop
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4349 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4350 CC="$CC $ac_cv_prog_cc_c11"
4351 fi
4352 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4353 ac_prog_cc_stdc=c11
4354 fi
4355 fi
4356 if test x$ac_prog_cc_stdc = xno
4357 then :
4358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4359 printf %s "checking for $CC option to enable C99 features... " >&6; }
4360 if test ${ac_cv_prog_cc_c99+y}
4361 then :
4362 printf %s "(cached) " >&6
4363 else $as_nop
4364 ac_cv_prog_cc_c99=no
4365 ac_save_CC=$CC
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4368 $ac_c_conftest_c99_program
4369 _ACEOF
4370 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4371 do
4372 CC="$ac_save_CC $ac_arg"
4373 if ac_fn_c_try_compile "$LINENO"
4374 then :
4375 ac_cv_prog_cc_c99=$ac_arg
4376 fi
4377 rm -f core conftest.err conftest.$ac_objext conftest.beam
4378 test "x$ac_cv_prog_cc_c99" != "xno" && break
4379 done
4380 rm -f conftest.$ac_ext
4381 CC=$ac_save_CC
4382 fi
4383
4384 if test "x$ac_cv_prog_cc_c99" = xno
4385 then :
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4387 printf "%s\n" "unsupported" >&6; }
4388 else $as_nop
4389 if test "x$ac_cv_prog_cc_c99" = x
4390 then :
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4392 printf "%s\n" "none needed" >&6; }
4393 else $as_nop
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4395 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4396 CC="$CC $ac_cv_prog_cc_c99"
4397 fi
4398 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4399 ac_prog_cc_stdc=c99
4400 fi
4401 fi
4402 if test x$ac_prog_cc_stdc = xno
4403 then :
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4405 printf %s "checking for $CC option to enable C89 features... " >&6; }
4406 if test ${ac_cv_prog_cc_c89+y}
4407 then :
4408 printf %s "(cached) " >&6
4409 else $as_nop
37594410 ac_cv_prog_cc_c89=no
37604411 ac_save_CC=$CC
37614412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37624413 /* end confdefs.h. */
3763 #include <stdarg.h>
3764 #include <stdio.h>
3765 struct stat;
3766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3767 struct buf { int x; };
3768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3769 static char *e (p, i)
3770 char **p;
3771 int i;
3772 {
3773 return p[i];
3774 }
3775 static char *f (char * (*g) (char **, int), char **p, ...)
3776 {
3777 char *s;
3778 va_list v;
3779 va_start (v,p);
3780 s = g (p, va_arg (v,int));
3781 va_end (v);
3782 return s;
3783 }
3784
3785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3786 function prototypes and stuff, but not '\xHH' hex character constants.
3787 These don't provoke an error unfortunately, instead are silently treated
3788 as 'x'. The following induces an error, until -std is added to get
3789 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3790 array size at least. It's necessary to write '\x00'==0 to get something
3791 that's true only with -std. */
3792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3793
3794 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3795 inside strings and character constants. */
3796 #define FOO(x) 'x'
3797 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3798
3799 int test (int i, double x);
3800 struct s1 {int (*f) (int a);};
3801 struct s2 {int (*f) (double a);};
3802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3803 int argc;
3804 char **argv;
3805 int
3806 main ()
3807 {
3808 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3809 ;
3810 return 0;
3811 }
4414 $ac_c_conftest_c89_program
38124415 _ACEOF
3813 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3814 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4416 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38154417 do
38164418 CC="$ac_save_CC $ac_arg"
3817 if ac_fn_c_try_compile "$LINENO"; then :
4419 if ac_fn_c_try_compile "$LINENO"
4420 then :
38184421 ac_cv_prog_cc_c89=$ac_arg
38194422 fi
3820 rm -f core conftest.err conftest.$ac_objext
4423 rm -f core conftest.err conftest.$ac_objext conftest.beam
38214424 test "x$ac_cv_prog_cc_c89" != "xno" && break
38224425 done
38234426 rm -f conftest.$ac_ext
38244427 CC=$ac_save_CC
3825
3826 fi
3827 # AC_CACHE_VAL
3828 case "x$ac_cv_prog_cc_c89" in
3829 x)
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3831 $as_echo "none needed" >&6; } ;;
3832 xno)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3834 $as_echo "unsupported" >&6; } ;;
3835 *)
3836 CC="$CC $ac_cv_prog_cc_c89"
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3838 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3839 esac
3840 if test "x$ac_cv_prog_cc_c89" != xno; then :
3841
4428 fi
4429
4430 if test "x$ac_cv_prog_cc_c89" = xno
4431 then :
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4433 printf "%s\n" "unsupported" >&6; }
4434 else $as_nop
4435 if test "x$ac_cv_prog_cc_c89" = x
4436 then :
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4438 printf "%s\n" "none needed" >&6; }
4439 else $as_nop
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4441 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4442 CC="$CC $ac_cv_prog_cc_c89"
4443 fi
4444 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4445 ac_prog_cc_stdc=c89
4446 fi
38424447 fi
38434448
38444449 ac_ext=c
38474452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38484453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38494454
3850 ac_ext=c
4455
4456 ac_ext=c
38514457 ac_cpp='$CPP $CPPFLAGS'
38524458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38534459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38544460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3856 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3857 if ${am_cv_prog_cc_c_o+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4462 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4463 if test ${am_cv_prog_cc_c_o+y}
4464 then :
4465 printf %s "(cached) " >&6
4466 else $as_nop
38604467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38614468 /* end confdefs.h. */
38624469
38634470 int
3864 main ()
4471 main (void)
38654472 {
38664473
38674474 ;
38894496 rm -f core conftest*
38904497 unset am_i
38914498 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3893 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4500 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
38944501 if test "$am_cv_prog_cc_c_o" != yes; then
38954502 # Losing compiler, so override with the script.
38964503 # FIXME: It is wrong to rewrite CC.
39084515
39094516 depcc="$CC" am_compiler_list=
39104517
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3912 $as_echo_n "checking dependency style of $depcc... " >&6; }
3913 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4519 printf %s "checking dependency style of $depcc... " >&6; }
4520 if test ${am_cv_CC_dependencies_compiler_type+y}
4521 then :
4522 printf %s "(cached) " >&6
4523 else $as_nop
39164524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
39174525 # We make a subdir and do the tests there. Otherwise we can end up
39184526 # making bogus files that we don't know about and never remove. For
40194627 fi
40204628
40214629 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4023 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4631 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
40244632 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
40254633
40264634 if
40344642 fi
40354643
40364644
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4038 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4039 if ${ac_cv_path_SED+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4646 printf %s "checking for a sed that does not truncate output... " >&6; }
4647 if test ${ac_cv_path_SED+y}
4648 then :
4649 printf %s "(cached) " >&6
4650 else $as_nop
40424651 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
40434652 for ac_i in 1 2 3 4 5 6 7; do
40444653 ac_script="$ac_script$as_nl$ac_script"
40524661 for as_dir in $PATH
40534662 do
40544663 IFS=$as_save_IFS
4055 test -z "$as_dir" && as_dir=.
4056 for ac_prog in sed gsed; do
4664 case $as_dir in #(((
4665 '') as_dir=./ ;;
4666 */) ;;
4667 *) as_dir=$as_dir/ ;;
4668 esac
4669 for ac_prog in sed gsed
4670 do
40574671 for ac_exec_ext in '' $ac_executable_extensions; do
4058 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4672 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
40594673 as_fn_executable_p "$ac_path_SED" || continue
40604674 # Check for GNU ac_path_SED and select it if it is found.
40614675 # Check for GNU $ac_path_SED
40644678 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
40654679 *)
40664680 ac_count=0
4067 $as_echo_n 0123456789 >"conftest.in"
4681 printf %s 0123456789 >"conftest.in"
40684682 while :
40694683 do
40704684 cat "conftest.in" "conftest.in" >"conftest.tmp"
40714685 mv "conftest.tmp" "conftest.in"
40724686 cp "conftest.in" "conftest.nl"
4073 $as_echo '' >> "conftest.nl"
4687 printf "%s\n" '' >> "conftest.nl"
40744688 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
40754689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40764690 as_fn_arith $ac_count + 1 && ac_count=$as_val
40984712 fi
40994713
41004714 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4102 $as_echo "$ac_cv_path_SED" >&6; }
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4716 printf "%s\n" "$ac_cv_path_SED" >&6; }
41034717 SED="$ac_cv_path_SED"
41044718 rm -f conftest.sed
41054719
41164730
41174731
41184732
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4120 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4121 if ${ac_cv_path_GREP+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4734 printf %s "checking for grep that handles long lines and -e... " >&6; }
4735 if test ${ac_cv_path_GREP+y}
4736 then :
4737 printf %s "(cached) " >&6
4738 else $as_nop
41244739 if test -z "$GREP"; then
41254740 ac_path_GREP_found=false
41264741 # Loop through the user's path and test for each of PROGNAME-LIST
41284743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
41294744 do
41304745 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_prog in grep ggrep; do
4746 case $as_dir in #(((
4747 '') as_dir=./ ;;
4748 */) ;;
4749 *) as_dir=$as_dir/ ;;
4750 esac
4751 for ac_prog in grep ggrep
4752 do
41334753 for ac_exec_ext in '' $ac_executable_extensions; do
4134 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4754 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
41354755 as_fn_executable_p "$ac_path_GREP" || continue
41364756 # Check for GNU ac_path_GREP and select it if it is found.
41374757 # Check for GNU $ac_path_GREP
41404760 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
41414761 *)
41424762 ac_count=0
4143 $as_echo_n 0123456789 >"conftest.in"
4763 printf %s 0123456789 >"conftest.in"
41444764 while :
41454765 do
41464766 cat "conftest.in" "conftest.in" >"conftest.tmp"
41474767 mv "conftest.tmp" "conftest.in"
41484768 cp "conftest.in" "conftest.nl"
4149 $as_echo 'GREP' >> "conftest.nl"
4769 printf "%s\n" 'GREP' >> "conftest.nl"
41504770 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
41514771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
41524772 as_fn_arith $ac_count + 1 && ac_count=$as_val
41744794 fi
41754795
41764796 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4178 $as_echo "$ac_cv_path_GREP" >&6; }
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4798 printf "%s\n" "$ac_cv_path_GREP" >&6; }
41794799 GREP="$ac_cv_path_GREP"
41804800
41814801
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4183 $as_echo_n "checking for egrep... " >&6; }
4184 if ${ac_cv_path_EGREP+:} false; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4803 printf %s "checking for egrep... " >&6; }
4804 if test ${ac_cv_path_EGREP+y}
4805 then :
4806 printf %s "(cached) " >&6
4807 else $as_nop
41874808 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
41884809 then ac_cv_path_EGREP="$GREP -E"
41894810 else
41944815 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
41954816 do
41964817 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_prog in egrep; do
4818 case $as_dir in #(((
4819 '') as_dir=./ ;;
4820 */) ;;
4821 *) as_dir=$as_dir/ ;;
4822 esac
4823 for ac_prog in egrep
4824 do
41994825 for ac_exec_ext in '' $ac_executable_extensions; do
4200 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4826 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
42014827 as_fn_executable_p "$ac_path_EGREP" || continue
42024828 # Check for GNU ac_path_EGREP and select it if it is found.
42034829 # Check for GNU $ac_path_EGREP
42064832 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
42074833 *)
42084834 ac_count=0
4209 $as_echo_n 0123456789 >"conftest.in"
4835 printf %s 0123456789 >"conftest.in"
42104836 while :
42114837 do
42124838 cat "conftest.in" "conftest.in" >"conftest.tmp"
42134839 mv "conftest.tmp" "conftest.in"
42144840 cp "conftest.in" "conftest.nl"
4215 $as_echo 'EGREP' >> "conftest.nl"
4841 printf "%s\n" 'EGREP' >> "conftest.nl"
42164842 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
42174843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
42184844 as_fn_arith $ac_count + 1 && ac_count=$as_val
42414867
42424868 fi
42434869 fi
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4245 $as_echo "$ac_cv_path_EGREP" >&6; }
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4871 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
42464872 EGREP="$ac_cv_path_EGREP"
42474873
42484874
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4250 $as_echo_n "checking for fgrep... " >&6; }
4251 if ${ac_cv_path_FGREP+:} false; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4876 printf %s "checking for fgrep... " >&6; }
4877 if test ${ac_cv_path_FGREP+y}
4878 then :
4879 printf %s "(cached) " >&6
4880 else $as_nop
42544881 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
42554882 then ac_cv_path_FGREP="$GREP -F"
42564883 else
42614888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
42624889 do
42634890 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_prog in fgrep; do
4891 case $as_dir in #(((
4892 '') as_dir=./ ;;
4893 */) ;;
4894 *) as_dir=$as_dir/ ;;
4895 esac
4896 for ac_prog in fgrep
4897 do
42664898 for ac_exec_ext in '' $ac_executable_extensions; do
4267 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4899 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
42684900 as_fn_executable_p "$ac_path_FGREP" || continue
42694901 # Check for GNU ac_path_FGREP and select it if it is found.
42704902 # Check for GNU $ac_path_FGREP
42734905 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
42744906 *)
42754907 ac_count=0
4276 $as_echo_n 0123456789 >"conftest.in"
4908 printf %s 0123456789 >"conftest.in"
42774909 while :
42784910 do
42794911 cat "conftest.in" "conftest.in" >"conftest.tmp"
42804912 mv "conftest.tmp" "conftest.in"
42814913 cp "conftest.in" "conftest.nl"
4282 $as_echo 'FGREP' >> "conftest.nl"
4914 printf "%s\n" 'FGREP' >> "conftest.nl"
42834915 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
42844916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
42854917 as_fn_arith $ac_count + 1 && ac_count=$as_val
43084940
43094941 fi
43104942 fi
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4312 $as_echo "$ac_cv_path_FGREP" >&6; }
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4944 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
43134945 FGREP="$ac_cv_path_FGREP"
43144946
43154947
43344966
43354967
43364968 # Check whether --with-gnu-ld was given.
4337 if test "${with_gnu_ld+set}" = set; then :
4969 if test ${with_gnu_ld+y}
4970 then :
43384971 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4339 else
4972 else $as_nop
43404973 with_gnu_ld=no
43414974 fi
43424975
43434976 ac_prog=ld
43444977 if test yes = "$GCC"; then
43454978 # Check if gcc -print-prog-name=ld gives a path.
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4347 $as_echo_n "checking for ld used by $CC... " >&6; }
4979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4980 printf %s "checking for ld used by $CC... " >&6; }
43484981 case $host in
43494982 *-*-mingw*)
43504983 # gcc leaves a trailing carriage return, which upsets mingw
43735006 ;;
43745007 esac
43755008 elif test yes = "$with_gnu_ld"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4377 $as_echo_n "checking for GNU ld... " >&6; }
4378 else
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4380 $as_echo_n "checking for non-GNU ld... " >&6; }
4381 fi
4382 if ${lt_cv_path_LD+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5010 printf %s "checking for GNU ld... " >&6; }
5011 else
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5013 printf %s "checking for non-GNU ld... " >&6; }
5014 fi
5015 if test ${lt_cv_path_LD+y}
5016 then :
5017 printf %s "(cached) " >&6
5018 else $as_nop
43855019 if test -z "$LD"; then
43865020 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
43875021 for ac_dir in $PATH; do
44105044
44115045 LD=$lt_cv_path_LD
44125046 if test -n "$LD"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4414 $as_echo "$LD" >&6; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5048 printf "%s\n" "$LD" >&6; }
5049 else
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 printf "%s\n" "no" >&6; }
44185052 fi
44195053 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4421 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4422 if ${lt_cv_prog_gnu_ld+:} false; then :
4423 $as_echo_n "(cached) " >&6
4424 else
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5055 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5056 if test ${lt_cv_prog_gnu_ld+y}
5057 then :
5058 printf %s "(cached) " >&6
5059 else $as_nop
44255060 # I'd rather use --version here, but apparently some GNU lds only accept -v.
44265061 case `$LD -v 2>&1 </dev/null` in
44275062 *GNU* | *'with BFD'*)
44325067 ;;
44335068 esac
44345069 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4436 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5071 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
44375072 with_gnu_ld=$lt_cv_prog_gnu_ld
44385073
44395074
44445079
44455080
44465081
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4448 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4449 if ${lt_cv_path_NM+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5083 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5084 if test ${lt_cv_path_NM+y}
5085 then :
5086 printf %s "(cached) " >&6
5087 else $as_nop
44525088 if test -n "$NM"; then
44535089 # Let the user override the test.
44545090 lt_cv_path_NM=$NM
44985134 : ${lt_cv_path_NM=no}
44995135 fi
45005136 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4502 $as_echo "$lt_cv_path_NM" >&6; }
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5138 printf "%s\n" "$lt_cv_path_NM" >&6; }
45035139 if test no != "$lt_cv_path_NM"; then
45045140 NM=$lt_cv_path_NM
45055141 else
45125148 do
45135149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
45145150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if ${ac_cv_prog_DUMPBIN+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 printf %s "checking for $ac_word... " >&6; }
5153 if test ${ac_cv_prog_DUMPBIN+y}
5154 then :
5155 printf %s "(cached) " >&6
5156 else $as_nop
45205157 if test -n "$DUMPBIN"; then
45215158 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
45225159 else
45245161 for as_dir in $PATH
45255162 do
45265163 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
5164 case $as_dir in #(((
5165 '') as_dir=./ ;;
5166 */) ;;
5167 *) as_dir=$as_dir/ ;;
5168 esac
45285169 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45305171 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45325173 break 2
45335174 fi
45345175 done
45395180 fi
45405181 DUMPBIN=$ac_cv_prog_DUMPBIN
45415182 if test -n "$DUMPBIN"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4543 $as_echo "$DUMPBIN" >&6; }
4544 else
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5184 printf "%s\n" "$DUMPBIN" >&6; }
5185 else
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 printf "%s\n" "no" >&6; }
45475188 fi
45485189
45495190
45565197 do
45575198 # Extract the first word of "$ac_prog", so it can be a program name with args.
45585199 set dummy $ac_prog; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 printf %s "checking for $ac_word... " >&6; }
5202 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5203 then :
5204 printf %s "(cached) " >&6
5205 else $as_nop
45645206 if test -n "$ac_ct_DUMPBIN"; then
45655207 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
45665208 else
45685210 for as_dir in $PATH
45695211 do
45705212 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
5213 case $as_dir in #(((
5214 '') as_dir=./ ;;
5215 */) ;;
5216 *) as_dir=$as_dir/ ;;
5217 esac
45725218 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45745220 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45765222 break 2
45775223 fi
45785224 done
45835229 fi
45845230 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
45855231 if test -n "$ac_ct_DUMPBIN"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4587 $as_echo "$ac_ct_DUMPBIN" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5233 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5234 else
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 printf "%s\n" "no" >&6; }
45915237 fi
45925238
45935239
45995245 else
46005246 case $cross_compiling:$ac_tool_warned in
46015247 yes:)
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5249 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46045250 ac_tool_warned=yes ;;
46055251 esac
46065252 DUMPBIN=$ac_ct_DUMPBIN
46285274
46295275
46305276
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4632 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4633 if ${lt_cv_nm_interface+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5278 printf %s "checking the name lister ($NM) interface... " >&6; }
5279 if test ${lt_cv_nm_interface+y}
5280 then :
5281 printf %s "(cached) " >&6
5282 else $as_nop
46365283 lt_cv_nm_interface="BSD nm"
46375284 echo "int some_variable = 0;" > conftest.$ac_ext
46385285 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
46485295 fi
46495296 rm -f conftest*
46505297 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4652 $as_echo "$lt_cv_nm_interface" >&6; }
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4655 $as_echo_n "checking whether ln -s works... " >&6; }
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5299 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5300
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5302 printf %s "checking whether ln -s works... " >&6; }
46565303 LN_S=$as_ln_s
46575304 if test "$LN_S" = "ln -s"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4659 $as_echo "yes" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4662 $as_echo "no, using $LN_S" >&6; }
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 printf "%s\n" "yes" >&6; }
5307 else
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5309 printf "%s\n" "no, using $LN_S" >&6; }
46635310 fi
46645311
46655312 # find the maximum length of command line arguments
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4667 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4668 if ${lt_cv_sys_max_cmd_len+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670 else
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5314 printf %s "checking the maximum length of command line arguments... " >&6; }
5315 if test ${lt_cv_sys_max_cmd_len+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else $as_nop
46715319 i=0
46725320 teststring=ABCD
46735321
47945442 fi
47955443
47965444 if test -n "$lt_cv_sys_max_cmd_len"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4798 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4801 $as_echo "none" >&6; }
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5446 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5447 else
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5449 printf "%s\n" "none" >&6; }
48025450 fi
48035451 max_cmd_len=$lt_cv_sys_max_cmd_len
48045452
48425490
48435491
48445492
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4846 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4847 if ${lt_cv_to_host_file_cmd+:} false; then :
4848 $as_echo_n "(cached) " >&6
4849 else
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5494 printf %s "checking how to convert $build file names to $host format... " >&6; }
5495 if test ${lt_cv_to_host_file_cmd+y}
5496 then :
5497 printf %s "(cached) " >&6
5498 else $as_nop
48505499 case $host in
48515500 *-*-mingw* )
48525501 case $build in
48825531 fi
48835532
48845533 to_host_file_cmd=$lt_cv_to_host_file_cmd
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4886 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4887
4888
4889
4890
4891
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4893 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4894 if ${lt_cv_to_tool_file_cmd+:} false; then :
4895 $as_echo_n "(cached) " >&6
4896 else
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5535 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5536
5537
5538
5539
5540
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5542 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5543 if test ${lt_cv_to_tool_file_cmd+y}
5544 then :
5545 printf %s "(cached) " >&6
5546 else $as_nop
48975547 #assume ordinary cross tools, or native build.
48985548 lt_cv_to_tool_file_cmd=func_convert_file_noop
48995549 case $host in
49095559 fi
49105560
49115561 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4913 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4914
4915
4916
4917
4918
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4920 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4921 if ${lt_cv_ld_reload_flag+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5563 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5564
5565
5566
5567
5568
5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5570 printf %s "checking for $LD option to reload object files... " >&6; }
5571 if test ${lt_cv_ld_reload_flag+y}
5572 then :
5573 printf %s "(cached) " >&6
5574 else $as_nop
49245575 lt_cv_ld_reload_flag='-r'
49255576 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4927 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5578 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
49285579 reload_flag=$lt_cv_ld_reload_flag
49295580 case $reload_flag in
49305581 "" | " "*) ;;
49575608 if test -n "$ac_tool_prefix"; then
49585609 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
49595610 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if ${ac_cv_prog_OBJDUMP+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 printf %s "checking for $ac_word... " >&6; }
5613 if test ${ac_cv_prog_OBJDUMP+y}
5614 then :
5615 printf %s "(cached) " >&6
5616 else $as_nop
49655617 if test -n "$OBJDUMP"; then
49665618 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
49675619 else
49695621 for as_dir in $PATH
49705622 do
49715623 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
5624 case $as_dir in #(((
5625 '') as_dir=./ ;;
5626 */) ;;
5627 *) as_dir=$as_dir/ ;;
5628 esac
49735629 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
49755631 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
49775633 break 2
49785634 fi
49795635 done
49845640 fi
49855641 OBJDUMP=$ac_cv_prog_OBJDUMP
49865642 if test -n "$OBJDUMP"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4988 $as_echo "$OBJDUMP" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5644 printf "%s\n" "$OBJDUMP" >&6; }
5645 else
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 printf "%s\n" "no" >&6; }
49925648 fi
49935649
49945650
49975653 ac_ct_OBJDUMP=$OBJDUMP
49985654 # Extract the first word of "objdump", so it can be a program name with args.
49995655 set dummy objdump; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 printf %s "checking for $ac_word... " >&6; }
5658 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5659 then :
5660 printf %s "(cached) " >&6
5661 else $as_nop
50055662 if test -n "$ac_ct_OBJDUMP"; then
50065663 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
50075664 else
50095666 for as_dir in $PATH
50105667 do
50115668 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5669 case $as_dir in #(((
5670 '') as_dir=./ ;;
5671 */) ;;
5672 *) as_dir=$as_dir/ ;;
5673 esac
50135674 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
50155676 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
50175678 break 2
50185679 fi
50195680 done
50245685 fi
50255686 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
50265687 if test -n "$ac_ct_OBJDUMP"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5028 $as_echo "$ac_ct_OBJDUMP" >&6; }
5029 else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5689 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5690 else
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 printf "%s\n" "no" >&6; }
50325693 fi
50335694
50345695 if test "x$ac_ct_OBJDUMP" = x; then
50365697 else
50375698 case $cross_compiling:$ac_tool_warned in
50385699 yes:)
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5701 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
50415702 ac_tool_warned=yes ;;
50425703 esac
50435704 OBJDUMP=$ac_ct_OBJDUMP
50565717
50575718
50585719
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5060 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5061 if ${lt_cv_deplibs_check_method+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5721 printf %s "checking how to recognize dependent libraries... " >&6; }
5722 if test ${lt_cv_deplibs_check_method+y}
5723 then :
5724 printf %s "(cached) " >&6
5725 else $as_nop
50645726 lt_cv_file_magic_cmd='$MAGIC_CMD'
50655727 lt_cv_file_magic_test_file=
50665728 lt_cv_deplibs_check_method='unknown'
52565918 esac
52575919
52585920 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5260 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5922 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
52615923
52625924 file_magic_glob=
52635925 want_nocaseglob=no
53015963 if test -n "$ac_tool_prefix"; then
53025964 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
53035965 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if ${ac_cv_prog_DLLTOOL+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 printf %s "checking for $ac_word... " >&6; }
5968 if test ${ac_cv_prog_DLLTOOL+y}
5969 then :
5970 printf %s "(cached) " >&6
5971 else $as_nop
53095972 if test -n "$DLLTOOL"; then
53105973 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
53115974 else
53135976 for as_dir in $PATH
53145977 do
53155978 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5979 case $as_dir in #(((
5980 '') as_dir=./ ;;
5981 */) ;;
5982 *) as_dir=$as_dir/ ;;
5983 esac
53175984 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
53195986 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
53215988 break 2
53225989 fi
53235990 done
53285995 fi
53295996 DLLTOOL=$ac_cv_prog_DLLTOOL
53305997 if test -n "$DLLTOOL"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5332 $as_echo "$DLLTOOL" >&6; }
5333 else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5999 printf "%s\n" "$DLLTOOL" >&6; }
6000 else
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 printf "%s\n" "no" >&6; }
53366003 fi
53376004
53386005
53416008 ac_ct_DLLTOOL=$DLLTOOL
53426009 # Extract the first word of "dlltool", so it can be a program name with args.
53436010 set dummy dlltool; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 printf %s "checking for $ac_word... " >&6; }
6013 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6014 then :
6015 printf %s "(cached) " >&6
6016 else $as_nop
53496017 if test -n "$ac_ct_DLLTOOL"; then
53506018 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
53516019 else
53536021 for as_dir in $PATH
53546022 do
53556023 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
6024 case $as_dir in #(((
6025 '') as_dir=./ ;;
6026 */) ;;
6027 *) as_dir=$as_dir/ ;;
6028 esac
53576029 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
53596031 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
53616033 break 2
53626034 fi
53636035 done
53686040 fi
53696041 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
53706042 if test -n "$ac_ct_DLLTOOL"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5372 $as_echo "$ac_ct_DLLTOOL" >&6; }
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6044 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6045 else
6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 printf "%s\n" "no" >&6; }
53766048 fi
53776049
53786050 if test "x$ac_ct_DLLTOOL" = x; then
53806052 else
53816053 case $cross_compiling:$ac_tool_warned in
53826054 yes:)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6056 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
53856057 ac_tool_warned=yes ;;
53866058 esac
53876059 DLLTOOL=$ac_ct_DLLTOOL
54016073
54026074
54036075
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5405 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5406 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6077 printf %s "checking how to associate runtime and link libraries... " >&6; }
6078 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6079 then :
6080 printf %s "(cached) " >&6
6081 else $as_nop
54096082 lt_cv_sharedlib_from_linklib_cmd='unknown'
54106083
54116084 case $host_os in
54286101 esac
54296102
54306103 fi
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5432 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6105 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
54336106 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
54346107 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
54356108
54456118 do
54466119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
54476120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_AR+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 printf %s "checking for $ac_word... " >&6; }
6123 if test ${ac_cv_prog_AR+y}
6124 then :
6125 printf %s "(cached) " >&6
6126 else $as_nop
54536127 if test -n "$AR"; then
54546128 ac_cv_prog_AR="$AR" # Let the user override the test.
54556129 else
54576131 for as_dir in $PATH
54586132 do
54596133 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
6134 case $as_dir in #(((
6135 '') as_dir=./ ;;
6136 */) ;;
6137 *) as_dir=$as_dir/ ;;
6138 esac
54616139 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
54636141 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
54656143 break 2
54666144 fi
54676145 done
54726150 fi
54736151 AR=$ac_cv_prog_AR
54746152 if test -n "$AR"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5476 $as_echo "$AR" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6154 printf "%s\n" "$AR" >&6; }
6155 else
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 printf "%s\n" "no" >&6; }
54806158 fi
54816159
54826160
54896167 do
54906168 # Extract the first word of "$ac_prog", so it can be a program name with args.
54916169 set dummy $ac_prog; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 printf %s "checking for $ac_word... " >&6; }
6172 if test ${ac_cv_prog_ac_ct_AR+y}
6173 then :
6174 printf %s "(cached) " >&6
6175 else $as_nop
54976176 if test -n "$ac_ct_AR"; then
54986177 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
54996178 else
55016180 for as_dir in $PATH
55026181 do
55036182 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
6183 case $as_dir in #(((
6184 '') as_dir=./ ;;
6185 */) ;;
6186 *) as_dir=$as_dir/ ;;
6187 esac
55056188 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
55076190 ac_cv_prog_ac_ct_AR="$ac_prog"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
55096192 break 2
55106193 fi
55116194 done
55166199 fi
55176200 ac_ct_AR=$ac_cv_prog_ac_ct_AR
55186201 if test -n "$ac_ct_AR"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5520 $as_echo "$ac_ct_AR" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6203 printf "%s\n" "$ac_ct_AR" >&6; }
6204 else
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 printf "%s\n" "no" >&6; }
55246207 fi
55256208
55266209
55326215 else
55336216 case $cross_compiling:$ac_tool_warned in
55346217 yes:)
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6219 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
55376220 ac_tool_warned=yes ;;
55386221 esac
55396222 AR=$ac_ct_AR
55536236
55546237
55556238
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5557 $as_echo_n "checking for archiver @FILE support... " >&6; }
5558 if ${lt_cv_ar_at_file+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6240 printf %s "checking for archiver @FILE support... " >&6; }
6241 if test ${lt_cv_ar_at_file+y}
6242 then :
6243 printf %s "(cached) " >&6
6244 else $as_nop
55616245 lt_cv_ar_at_file=no
55626246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55636247 /* end confdefs.h. */
55646248
55656249 int
5566 main ()
6250 main (void)
55676251 {
55686252
55696253 ;
55706254 return 0;
55716255 }
55726256 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
6257 if ac_fn_c_try_compile "$LINENO"
6258 then :
55746259 echo conftest.$ac_objext > conftest.lst
55756260 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
55766261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
55776262 (eval $lt_ar_try) 2>&5
55786263 ac_status=$?
5579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55806265 test $ac_status = 0; }
55816266 if test 0 -eq "$ac_status"; then
55826267 # Ensure the archiver fails upon bogus file names.
55846269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
55856270 (eval $lt_ar_try) 2>&5
55866271 ac_status=$?
5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55886273 test $ac_status = 0; }
55896274 if test 0 -ne "$ac_status"; then
55906275 lt_cv_ar_at_file=@
55936278 rm -f conftest.* libconftest.a
55946279
55956280 fi
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597
5598 fi
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5600 $as_echo "$lt_cv_ar_at_file" >&6; }
6281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6282
6283 fi
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6285 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
56016286
56026287 if test no = "$lt_cv_ar_at_file"; then
56036288 archiver_list_spec=
56146299 if test -n "$ac_tool_prefix"; then
56156300 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
56166301 set dummy ${ac_tool_prefix}strip; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_STRIP+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621 else
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 printf %s "checking for $ac_word... " >&6; }
6304 if test ${ac_cv_prog_STRIP+y}
6305 then :
6306 printf %s "(cached) " >&6
6307 else $as_nop
56226308 if test -n "$STRIP"; then
56236309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
56246310 else
56266312 for as_dir in $PATH
56276313 do
56286314 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
6315 case $as_dir in #(((
6316 '') as_dir=./ ;;
6317 */) ;;
6318 *) as_dir=$as_dir/ ;;
6319 esac
56306320 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
56326322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
56346324 break 2
56356325 fi
56366326 done
56416331 fi
56426332 STRIP=$ac_cv_prog_STRIP
56436333 if test -n "$STRIP"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5645 $as_echo "$STRIP" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6335 printf "%s\n" "$STRIP" >&6; }
6336 else
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 printf "%s\n" "no" >&6; }
56496339 fi
56506340
56516341
56546344 ac_ct_STRIP=$STRIP
56556345 # Extract the first word of "strip", so it can be a program name with args.
56566346 set dummy strip; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 printf %s "checking for $ac_word... " >&6; }
6349 if test ${ac_cv_prog_ac_ct_STRIP+y}
6350 then :
6351 printf %s "(cached) " >&6
6352 else $as_nop
56626353 if test -n "$ac_ct_STRIP"; then
56636354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
56646355 else
56666357 for as_dir in $PATH
56676358 do
56686359 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
6360 case $as_dir in #(((
6361 '') as_dir=./ ;;
6362 */) ;;
6363 *) as_dir=$as_dir/ ;;
6364 esac
56706365 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
56726367 ac_cv_prog_ac_ct_STRIP="strip"
5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
56746369 break 2
56756370 fi
56766371 done
56816376 fi
56826377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
56836378 if test -n "$ac_ct_STRIP"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5685 $as_echo "$ac_ct_STRIP" >&6; }
5686 else
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6380 printf "%s\n" "$ac_ct_STRIP" >&6; }
6381 else
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 printf "%s\n" "no" >&6; }
56896384 fi
56906385
56916386 if test "x$ac_ct_STRIP" = x; then
56936388 else
56946389 case $cross_compiling:$ac_tool_warned in
56956390 yes:)
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56986393 ac_tool_warned=yes ;;
56996394 esac
57006395 STRIP=$ac_ct_STRIP
57136408 if test -n "$ac_tool_prefix"; then
57146409 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
57156410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_RANLIB+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 printf %s "checking for $ac_word... " >&6; }
6413 if test ${ac_cv_prog_RANLIB+y}
6414 then :
6415 printf %s "(cached) " >&6
6416 else $as_nop
57216417 if test -n "$RANLIB"; then
57226418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
57236419 else
57256421 for as_dir in $PATH
57266422 do
57276423 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
6424 case $as_dir in #(((
6425 '') as_dir=./ ;;
6426 */) ;;
6427 *) as_dir=$as_dir/ ;;
6428 esac
57296429 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57316431 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57336433 break 2
57346434 fi
57356435 done
57406440 fi
57416441 RANLIB=$ac_cv_prog_RANLIB
57426442 if test -n "$RANLIB"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5744 $as_echo "$RANLIB" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6444 printf "%s\n" "$RANLIB" >&6; }
6445 else
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 printf "%s\n" "no" >&6; }
57486448 fi
57496449
57506450
57536453 ac_ct_RANLIB=$RANLIB
57546454 # Extract the first word of "ranlib", so it can be a program name with args.
57556455 set dummy ranlib; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 printf %s "checking for $ac_word... " >&6; }
6458 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6459 then :
6460 printf %s "(cached) " >&6
6461 else $as_nop
57616462 if test -n "$ac_ct_RANLIB"; then
57626463 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
57636464 else
57656466 for as_dir in $PATH
57666467 do
57676468 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
6469 case $as_dir in #(((
6470 '') as_dir=./ ;;
6471 */) ;;
6472 *) as_dir=$as_dir/ ;;
6473 esac
57696474 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57716476 ac_cv_prog_ac_ct_RANLIB="ranlib"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57736478 break 2
57746479 fi
57756480 done
57806485 fi
57816486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
57826487 if test -n "$ac_ct_RANLIB"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5784 $as_echo "$ac_ct_RANLIB" >&6; }
5785 else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6489 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6490 else
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 printf "%s\n" "no" >&6; }
57886493 fi
57896494
57906495 if test "x$ac_ct_RANLIB" = x; then
57926497 else
57936498 case $cross_compiling:$ac_tool_warned in
57946499 yes:)
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57976502 ac_tool_warned=yes ;;
57986503 esac
57996504 RANLIB=$ac_ct_RANLIB
58826587
58836588
58846589 # Check for command to grab the raw symbol name followed by C symbol from nm.
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5886 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5887 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6591 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6592 if test ${lt_cv_sys_global_symbol_pipe+y}
6593 then :
6594 printf %s "(cached) " >&6
6595 else $as_nop
58906596
58916597 # These are sane defaults that work on at least a few old systems.
58926598 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
60386744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
60396745 (eval $ac_compile) 2>&5
60406746 ac_status=$?
6041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60426748 test $ac_status = 0; }; then
60436749 # Now try to grab the symbols.
60446750 nlist=conftest.nm
60456751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
60466752 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
60476753 ac_status=$?
6048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60496755 test $ac_status = 0; } && test -s "$nlist"; then
60506756 # Try sorting and uniquifying the output.
60516757 if sort "$nlist" | uniq > "$nlist"T; then
61146820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
61156821 (eval $ac_link) 2>&5
61166822 ac_status=$?
6117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61186824 test $ac_status = 0; } && test -s conftest$ac_exeext; then
61196825 pipe_works=yes
61206826 fi
61496855 lt_cv_sys_global_symbol_to_cdecl=
61506856 fi
61516857 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6153 $as_echo "failed" >&6; }
6154 else
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6156 $as_echo "ok" >&6; }
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6859 printf "%s\n" "failed" >&6; }
6860 else
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6862 printf "%s\n" "ok" >&6; }
61576863 fi
61586864
61596865 # Response file support.
61996905
62006906
62016907
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6203 $as_echo_n "checking for sysroot... " >&6; }
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6909 printf %s "checking for sysroot... " >&6; }
62046910
62056911 # Check whether --with-sysroot was given.
6206 if test "${with_sysroot+set}" = set; then :
6912 if test ${with_sysroot+y}
6913 then :
62076914 withval=$with_sysroot;
6208 else
6915 else $as_nop
62096916 with_sysroot=no
62106917 fi
62116918
62236930 no|'')
62246931 ;; #(
62256932 *)
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6227 $as_echo "$with_sysroot" >&6; }
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6934 printf "%s\n" "$with_sysroot" >&6; }
62286935 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
62296936 ;;
62306937 esac
62316938
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6233 $as_echo "${lt_sysroot:-no}" >&6; }
6234
6235
6236
6237
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6240 $as_echo_n "checking for a working dd... " >&6; }
6241 if ${ac_cv_path_lt_DD+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6940 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6941
6942
6943
6944
6945
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6947 printf %s "checking for a working dd... " >&6; }
6948 if test ${ac_cv_path_lt_DD+y}
6949 then :
6950 printf %s "(cached) " >&6
6951 else $as_nop
62446952 printf 0123456789abcdef0123456789abcdef >conftest.i
62456953 cat conftest.i conftest.i >conftest2.i
62466954 : ${lt_DD:=$DD}
62516959 for as_dir in $PATH
62526960 do
62536961 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_prog in dd; do
6962 case $as_dir in #(((
6963 '') as_dir=./ ;;
6964 */) ;;
6965 *) as_dir=$as_dir/ ;;
6966 esac
6967 for ac_prog in dd
6968 do
62566969 for ac_exec_ext in '' $ac_executable_extensions; do
6257 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6970 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
62586971 as_fn_executable_p "$ac_path_lt_DD" || continue
62596972 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
62606973 cmp -s conftest.i conftest.out \
62746987
62756988 rm -f conftest.i conftest2.i conftest.out
62766989 fi
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6278 $as_echo "$ac_cv_path_lt_DD" >&6; }
6279
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6282 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6283 if ${lt_cv_truncate_bin+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6991 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6992
6993
6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6995 printf %s "checking how to truncate binary pipes... " >&6; }
6996 if test ${lt_cv_truncate_bin+y}
6997 then :
6998 printf %s "(cached) " >&6
6999 else $as_nop
62867000 printf 0123456789abcdef0123456789abcdef >conftest.i
62877001 cat conftest.i conftest.i >conftest2.i
62887002 lt_cv_truncate_bin=
62937007 rm -f conftest.i conftest2.i conftest.out
62947008 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
62957009 fi
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6297 $as_echo "$lt_cv_truncate_bin" >&6; }
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7011 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
62987012
62997013
63007014
63177031 }
63187032
63197033 # Check whether --enable-libtool-lock was given.
6320 if test "${enable_libtool_lock+set}" = set; then :
7034 if test ${enable_libtool_lock+y}
7035 then :
63217036 enableval=$enable_libtool_lock;
63227037 fi
63237038
63337048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
63347049 (eval $ac_compile) 2>&5
63357050 ac_status=$?
6336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63377052 test $ac_status = 0; }; then
63387053 case `/usr/bin/file conftest.$ac_objext` in
63397054 *ELF-32*)
63537068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
63547069 (eval $ac_compile) 2>&5
63557070 ac_status=$?
6356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63577072 test $ac_status = 0; }; then
63587073 if test yes = "$lt_cv_prog_gnu_ld"; then
63597074 case `/usr/bin/file conftest.$ac_objext` in
63917106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
63927107 (eval $ac_compile) 2>&5
63937108 ac_status=$?
6394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63957110 test $ac_status = 0; }; then
63967111 emul=elf
63977112 case `/usr/bin/file conftest.$ac_objext` in
64327147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
64337148 (eval $ac_compile) 2>&5
64347149 ac_status=$?
6435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64367151 test $ac_status = 0; }; then
64377152 case `/usr/bin/file conftest.o` in
64387153 *32-bit*)
64957210 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
64967211 SAVE_CFLAGS=$CFLAGS
64977212 CFLAGS="$CFLAGS -belf"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6499 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6500 if ${lt_cv_cc_needs_belf+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7214 printf %s "checking whether the C compiler needs -belf... " >&6; }
7215 if test ${lt_cv_cc_needs_belf+y}
7216 then :
7217 printf %s "(cached) " >&6
7218 else $as_nop
65037219 ac_ext=c
65047220 ac_cpp='$CPP $CPPFLAGS'
65057221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65107226 /* end confdefs.h. */
65117227
65127228 int
6513 main ()
7229 main (void)
65147230 {
65157231
65167232 ;
65177233 return 0;
65187234 }
65197235 _ACEOF
6520 if ac_fn_c_try_link "$LINENO"; then :
7236 if ac_fn_c_try_link "$LINENO"
7237 then :
65217238 lt_cv_cc_needs_belf=yes
6522 else
7239 else $as_nop
65237240 lt_cv_cc_needs_belf=no
65247241 fi
6525 rm -f core conftest.err conftest.$ac_objext \
7242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
65267243 conftest$ac_exeext conftest.$ac_ext
65277244 ac_ext=c
65287245 ac_cpp='$CPP $CPPFLAGS'
65317248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
65327249
65337250 fi
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6535 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7252 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
65367253 if test yes != "$lt_cv_cc_needs_belf"; then
65377254 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
65387255 CFLAGS=$SAVE_CFLAGS
65457262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
65467263 (eval $ac_compile) 2>&5
65477264 ac_status=$?
6548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65497266 test $ac_status = 0; }; then
65507267 case `/usr/bin/file conftest.o` in
65517268 *64-bit*)
65827299 if test -n "$ac_tool_prefix"; then
65837300 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
65847301 set dummy ${ac_tool_prefix}mt; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 printf %s "checking for $ac_word... " >&6; }
7304 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7305 then :
7306 printf %s "(cached) " >&6
7307 else $as_nop
65907308 if test -n "$MANIFEST_TOOL"; then
65917309 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
65927310 else
65947312 for as_dir in $PATH
65957313 do
65967314 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
7315 case $as_dir in #(((
7316 '') as_dir=./ ;;
7317 */) ;;
7318 *) as_dir=$as_dir/ ;;
7319 esac
65987320 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
66007322 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
66027324 break 2
66037325 fi
66047326 done
66097331 fi
66107332 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
66117333 if test -n "$MANIFEST_TOOL"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6613 $as_echo "$MANIFEST_TOOL" >&6; }
6614 else
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7335 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7336 else
7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 printf "%s\n" "no" >&6; }
66177339 fi
66187340
66197341
66227344 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
66237345 # Extract the first word of "mt", so it can be a program name with args.
66247346 set dummy mt; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 printf %s "checking for $ac_word... " >&6; }
7349 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7350 then :
7351 printf %s "(cached) " >&6
7352 else $as_nop
66307353 if test -n "$ac_ct_MANIFEST_TOOL"; then
66317354 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
66327355 else
66347357 for as_dir in $PATH
66357358 do
66367359 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
7360 case $as_dir in #(((
7361 '') as_dir=./ ;;
7362 */) ;;
7363 *) as_dir=$as_dir/ ;;
7364 esac
66387365 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
66407367 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
66427369 break 2
66437370 fi
66447371 done
66497376 fi
66507377 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
66517378 if test -n "$ac_ct_MANIFEST_TOOL"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6653 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6654 else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7380 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7381 else
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 printf "%s\n" "no" >&6; }
66577384 fi
66587385
66597386 if test "x$ac_ct_MANIFEST_TOOL" = x; then
66617388 else
66627389 case $cross_compiling:$ac_tool_warned in
66637390 yes:)
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
66667393 ac_tool_warned=yes ;;
66677394 esac
66687395 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
66727399 fi
66737400
66747401 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6676 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6677 if ${lt_cv_path_mainfest_tool+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7403 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7404 if test ${lt_cv_path_mainfest_tool+y}
7405 then :
7406 printf %s "(cached) " >&6
7407 else $as_nop
66807408 lt_cv_path_mainfest_tool=no
66817409 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
66827410 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
66867414 fi
66877415 rm -f conftest*
66887416 fi
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6690 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7418 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
66917419 if test yes != "$lt_cv_path_mainfest_tool"; then
66927420 MANIFEST_TOOL=:
66937421 fi
67027430 if test -n "$ac_tool_prefix"; then
67037431 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
67047432 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 printf %s "checking for $ac_word... " >&6; }
7435 if test ${ac_cv_prog_DSYMUTIL+y}
7436 then :
7437 printf %s "(cached) " >&6
7438 else $as_nop
67107439 if test -n "$DSYMUTIL"; then
67117440 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
67127441 else
67147443 for as_dir in $PATH
67157444 do
67167445 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
7446 case $as_dir in #(((
7447 '') as_dir=./ ;;
7448 */) ;;
7449 *) as_dir=$as_dir/ ;;
7450 esac
67187451 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
67207453 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
67227455 break 2
67237456 fi
67247457 done
67297462 fi
67307463 DSYMUTIL=$ac_cv_prog_DSYMUTIL
67317464 if test -n "$DSYMUTIL"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6733 $as_echo "$DSYMUTIL" >&6; }
6734 else
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7466 printf "%s\n" "$DSYMUTIL" >&6; }
7467 else
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 printf "%s\n" "no" >&6; }
67377470 fi
67387471
67397472
67427475 ac_ct_DSYMUTIL=$DSYMUTIL
67437476 # Extract the first word of "dsymutil", so it can be a program name with args.
67447477 set dummy dsymutil; ac_word=$2
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746 $as_echo_n "checking for $ac_word... " >&6; }
6747 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6748 $as_echo_n "(cached) " >&6
6749 else
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 printf %s "checking for $ac_word... " >&6; }
7480 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7481 then :
7482 printf %s "(cached) " >&6
7483 else $as_nop
67507484 if test -n "$ac_ct_DSYMUTIL"; then
67517485 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
67527486 else
67547488 for as_dir in $PATH
67557489 do
67567490 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
7491 case $as_dir in #(((
7492 '') as_dir=./ ;;
7493 */) ;;
7494 *) as_dir=$as_dir/ ;;
7495 esac
67587496 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
67607498 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
67627500 break 2
67637501 fi
67647502 done
67697507 fi
67707508 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
67717509 if test -n "$ac_ct_DSYMUTIL"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6773 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6774 else
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776 $as_echo "no" >&6; }
7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7511 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7512 else
7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 printf "%s\n" "no" >&6; }
67777515 fi
67787516
67797517 if test "x$ac_ct_DSYMUTIL" = x; then
67817519 else
67827520 case $cross_compiling:$ac_tool_warned in
67837521 yes:)
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
67867524 ac_tool_warned=yes ;;
67877525 esac
67887526 DSYMUTIL=$ac_ct_DSYMUTIL
67947532 if test -n "$ac_tool_prefix"; then
67957533 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
67967534 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if ${ac_cv_prog_NMEDIT+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 printf %s "checking for $ac_word... " >&6; }
7537 if test ${ac_cv_prog_NMEDIT+y}
7538 then :
7539 printf %s "(cached) " >&6
7540 else $as_nop
68027541 if test -n "$NMEDIT"; then
68037542 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
68047543 else
68067545 for as_dir in $PATH
68077546 do
68087547 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
7548 case $as_dir in #(((
7549 '') as_dir=./ ;;
7550 */) ;;
7551 *) as_dir=$as_dir/ ;;
7552 esac
68107553 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
68127555 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
68147557 break 2
68157558 fi
68167559 done
68217564 fi
68227565 NMEDIT=$ac_cv_prog_NMEDIT
68237566 if test -n "$NMEDIT"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6825 $as_echo "$NMEDIT" >&6; }
6826 else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7568 printf "%s\n" "$NMEDIT" >&6; }
7569 else
7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 printf "%s\n" "no" >&6; }
68297572 fi
68307573
68317574
68347577 ac_ct_NMEDIT=$NMEDIT
68357578 # Extract the first word of "nmedit", so it can be a program name with args.
68367579 set dummy nmedit; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 printf %s "checking for $ac_word... " >&6; }
7582 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7583 then :
7584 printf %s "(cached) " >&6
7585 else $as_nop
68427586 if test -n "$ac_ct_NMEDIT"; then
68437587 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
68447588 else
68467590 for as_dir in $PATH
68477591 do
68487592 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
7593 case $as_dir in #(((
7594 '') as_dir=./ ;;
7595 */) ;;
7596 *) as_dir=$as_dir/ ;;
7597 esac
68507598 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
68527600 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
68547602 break 2
68557603 fi
68567604 done
68617609 fi
68627610 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
68637611 if test -n "$ac_ct_NMEDIT"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6865 $as_echo "$ac_ct_NMEDIT" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7613 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7614 else
7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 printf "%s\n" "no" >&6; }
68697617 fi
68707618
68717619 if test "x$ac_ct_NMEDIT" = x; then
68737621 else
68747622 case $cross_compiling:$ac_tool_warned in
68757623 yes:)
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7625 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
68787626 ac_tool_warned=yes ;;
68797627 esac
68807628 NMEDIT=$ac_ct_NMEDIT
68867634 if test -n "$ac_tool_prefix"; then
68877635 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
68887636 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if ${ac_cv_prog_LIPO+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 printf %s "checking for $ac_word... " >&6; }
7639 if test ${ac_cv_prog_LIPO+y}
7640 then :
7641 printf %s "(cached) " >&6
7642 else $as_nop
68947643 if test -n "$LIPO"; then
68957644 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
68967645 else
68987647 for as_dir in $PATH
68997648 do
69007649 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
7650 case $as_dir in #(((
7651 '') as_dir=./ ;;
7652 */) ;;
7653 *) as_dir=$as_dir/ ;;
7654 esac
69027655 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
69047657 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
69067659 break 2
69077660 fi
69087661 done
69137666 fi
69147667 LIPO=$ac_cv_prog_LIPO
69157668 if test -n "$LIPO"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6917 $as_echo "$LIPO" >&6; }
6918 else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7670 printf "%s\n" "$LIPO" >&6; }
7671 else
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 printf "%s\n" "no" >&6; }
69217674 fi
69227675
69237676
69267679 ac_ct_LIPO=$LIPO
69277680 # Extract the first word of "lipo", so it can be a program name with args.
69287681 set dummy lipo; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 printf %s "checking for $ac_word... " >&6; }
7684 if test ${ac_cv_prog_ac_ct_LIPO+y}
7685 then :
7686 printf %s "(cached) " >&6
7687 else $as_nop
69347688 if test -n "$ac_ct_LIPO"; then
69357689 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
69367690 else
69387692 for as_dir in $PATH
69397693 do
69407694 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
7695 case $as_dir in #(((
7696 '') as_dir=./ ;;
7697 */) ;;
7698 *) as_dir=$as_dir/ ;;
7699 esac
69427700 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
69447702 ac_cv_prog_ac_ct_LIPO="lipo"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
69467704 break 2
69477705 fi
69487706 done
69537711 fi
69547712 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
69557713 if test -n "$ac_ct_LIPO"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6957 $as_echo "$ac_ct_LIPO" >&6; }
6958 else
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7715 printf "%s\n" "$ac_ct_LIPO" >&6; }
7716 else
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 printf "%s\n" "no" >&6; }
69617719 fi
69627720
69637721 if test "x$ac_ct_LIPO" = x; then
69657723 else
69667724 case $cross_compiling:$ac_tool_warned in
69677725 yes:)
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7727 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
69707728 ac_tool_warned=yes ;;
69717729 esac
69727730 LIPO=$ac_ct_LIPO
69787736 if test -n "$ac_tool_prefix"; then
69797737 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
69807738 set dummy ${ac_tool_prefix}otool; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_prog_OTOOL+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 printf %s "checking for $ac_word... " >&6; }
7741 if test ${ac_cv_prog_OTOOL+y}
7742 then :
7743 printf %s "(cached) " >&6
7744 else $as_nop
69867745 if test -n "$OTOOL"; then
69877746 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
69887747 else
69907749 for as_dir in $PATH
69917750 do
69927751 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
7752 case $as_dir in #(((
7753 '') as_dir=./ ;;
7754 */) ;;
7755 *) as_dir=$as_dir/ ;;
7756 esac
69947757 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
69967759 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
69987761 break 2
69997762 fi
70007763 done
70057768 fi
70067769 OTOOL=$ac_cv_prog_OTOOL
70077770 if test -n "$OTOOL"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7009 $as_echo "$OTOOL" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7772 printf "%s\n" "$OTOOL" >&6; }
7773 else
7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 printf "%s\n" "no" >&6; }
70137776 fi
70147777
70157778
70187781 ac_ct_OTOOL=$OTOOL
70197782 # Extract the first word of "otool", so it can be a program name with args.
70207783 set dummy otool; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 printf %s "checking for $ac_word... " >&6; }
7786 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7787 then :
7788 printf %s "(cached) " >&6
7789 else $as_nop
70267790 if test -n "$ac_ct_OTOOL"; then
70277791 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
70287792 else
70307794 for as_dir in $PATH
70317795 do
70327796 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7797 case $as_dir in #(((
7798 '') as_dir=./ ;;
7799 */) ;;
7800 *) as_dir=$as_dir/ ;;
7801 esac
70347802 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
70367804 ac_cv_prog_ac_ct_OTOOL="otool"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
70387806 break 2
70397807 fi
70407808 done
70457813 fi
70467814 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
70477815 if test -n "$ac_ct_OTOOL"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7049 $as_echo "$ac_ct_OTOOL" >&6; }
7050 else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7817 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7818 else
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 printf "%s\n" "no" >&6; }
70537821 fi
70547822
70557823 if test "x$ac_ct_OTOOL" = x; then
70577825 else
70587826 case $cross_compiling:$ac_tool_warned in
70597827 yes:)
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7829 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
70627830 ac_tool_warned=yes ;;
70637831 esac
70647832 OTOOL=$ac_ct_OTOOL
70707838 if test -n "$ac_tool_prefix"; then
70717839 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
70727840 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_prog_OTOOL64+:} false; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 printf %s "checking for $ac_word... " >&6; }
7843 if test ${ac_cv_prog_OTOOL64+y}
7844 then :
7845 printf %s "(cached) " >&6
7846 else $as_nop
70787847 if test -n "$OTOOL64"; then
70797848 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
70807849 else
70827851 for as_dir in $PATH
70837852 do
70847853 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7854 case $as_dir in #(((
7855 '') as_dir=./ ;;
7856 */) ;;
7857 *) as_dir=$as_dir/ ;;
7858 esac
70867859 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
70887861 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
70907863 break 2
70917864 fi
70927865 done
70977870 fi
70987871 OTOOL64=$ac_cv_prog_OTOOL64
70997872 if test -n "$OTOOL64"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7101 $as_echo "$OTOOL64" >&6; }
7102 else
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7874 printf "%s\n" "$OTOOL64" >&6; }
7875 else
7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 printf "%s\n" "no" >&6; }
71057878 fi
71067879
71077880
71107883 ac_ct_OTOOL64=$OTOOL64
71117884 # Extract the first word of "otool64", so it can be a program name with args.
71127885 set dummy otool64; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 printf %s "checking for $ac_word... " >&6; }
7888 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7889 then :
7890 printf %s "(cached) " >&6
7891 else $as_nop
71187892 if test -n "$ac_ct_OTOOL64"; then
71197893 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
71207894 else
71227896 for as_dir in $PATH
71237897 do
71247898 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7899 case $as_dir in #(((
7900 '') as_dir=./ ;;
7901 */) ;;
7902 *) as_dir=$as_dir/ ;;
7903 esac
71267904 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
71287906 ac_cv_prog_ac_ct_OTOOL64="otool64"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
71307908 break 2
71317909 fi
71327910 done
71377915 fi
71387916 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
71397917 if test -n "$ac_ct_OTOOL64"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7141 $as_echo "$ac_ct_OTOOL64" >&6; }
7142 else
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7919 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7920 else
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 printf "%s\n" "no" >&6; }
71457923 fi
71467924
71477925 if test "x$ac_ct_OTOOL64" = x; then
71497927 else
71507928 case $cross_compiling:$ac_tool_warned in
71517929 yes:)
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
71547932 ac_tool_warned=yes ;;
71557933 esac
71567934 OTOOL64=$ac_ct_OTOOL64
71857963
71867964
71877965
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7189 $as_echo_n "checking for -single_module linker flag... " >&6; }
7190 if ${lt_cv_apple_cc_single_mod+:} false; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7967 printf %s "checking for -single_module linker flag... " >&6; }
7968 if test ${lt_cv_apple_cc_single_mod+y}
7969 then :
7970 printf %s "(cached) " >&6
7971 else $as_nop
71937972 lt_cv_apple_cc_single_mod=no
71947973 if test -z "$LT_MULTI_MODULE"; then
71957974 # By default we will add the -single_module flag. You can override
72187997 rm -f conftest.*
72197998 fi
72207999 fi
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7222 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7223
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7225 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7226 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8001 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8002
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8004 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8005 if test ${lt_cv_ld_exported_symbols_list+y}
8006 then :
8007 printf %s "(cached) " >&6
8008 else $as_nop
72298009 lt_cv_ld_exported_symbols_list=no
72308010 save_LDFLAGS=$LDFLAGS
72318011 echo "_main" > conftest.sym
72348014 /* end confdefs.h. */
72358015
72368016 int
7237 main ()
8017 main (void)
72388018 {
72398019
72408020 ;
72418021 return 0;
72428022 }
72438023 _ACEOF
7244 if ac_fn_c_try_link "$LINENO"; then :
8024 if ac_fn_c_try_link "$LINENO"
8025 then :
72458026 lt_cv_ld_exported_symbols_list=yes
7246 else
8027 else $as_nop
72478028 lt_cv_ld_exported_symbols_list=no
72488029 fi
7249 rm -f core conftest.err conftest.$ac_objext \
8030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
72508031 conftest$ac_exeext conftest.$ac_ext
72518032 LDFLAGS=$save_LDFLAGS
72528033
72538034 fi
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7255 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7256
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7258 $as_echo_n "checking for -force_load linker flag... " >&6; }
7259 if ${lt_cv_ld_force_load+:} false; then :
7260 $as_echo_n "(cached) " >&6
7261 else
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8036 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8037
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8039 printf %s "checking for -force_load linker flag... " >&6; }
8040 if test ${lt_cv_ld_force_load+y}
8041 then :
8042 printf %s "(cached) " >&6
8043 else $as_nop
72628044 lt_cv_ld_force_load=no
72638045 cat > conftest.c << _LT_EOF
72648046 int forced_loaded() { return 2;}
72868068 rm -rf conftest.dSYM
72878069
72888070 fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7290 $as_echo "$lt_cv_ld_force_load" >&6; }
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8072 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
72918073 case $host_os in
72928074 rhapsody* | darwin1.[012])
72938075 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
73538135 esac
73548136 }
73558137
7356 ac_ext=c
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7362 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7363 # On Suns, sometimes $CPP names a directory.
7364 if test -n "$CPP" && test -d "$CPP"; then
7365 CPP=
7366 fi
7367 if test -z "$CPP"; then
7368 if ${ac_cv_prog_CPP+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 # Double quotes because CPP needs to be expanded
7372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7373 do
7374 ac_preproc_ok=false
7375 for ac_c_preproc_warn_flag in '' yes
8138 ac_header= ac_cache=
8139 for ac_item in $ac_header_c_list
73768140 do
7377 # Use a header file that comes with gcc, so configuring glibc
7378 # with a fresh cross-compiler works.
7379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7380 # <limits.h> exists even on freestanding compilers.
7381 # On the NeXT, cc -E runs the code through the compiler's parser,
7382 # not just through cpp. "Syntax error" is here to catch this case.
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385 #ifdef __STDC__
7386 # include <limits.h>
7387 #else
7388 # include <assert.h>
7389 #endif
7390 Syntax error
7391 _ACEOF
7392 if ac_fn_c_try_cpp "$LINENO"; then :
7393
7394 else
7395 # Broken: fails on valid input.
7396 continue
7397 fi
7398 rm -f conftest.err conftest.i conftest.$ac_ext
7399
7400 # OK, works on sane cases. Now check whether nonexistent headers
7401 # can be detected and how.
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 #include <ac_nonexistent.h>
7405 _ACEOF
7406 if ac_fn_c_try_cpp "$LINENO"; then :
7407 # Broken: success on invalid input.
7408 continue
7409 else
7410 # Passes both tests.
7411 ac_preproc_ok=:
7412 break
7413 fi
7414 rm -f conftest.err conftest.i conftest.$ac_ext
7415
8141 if test $ac_cache; then
8142 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8143 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8144 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8145 fi
8146 ac_header= ac_cache=
8147 elif test $ac_header; then
8148 ac_cache=$ac_item
8149 else
8150 ac_header=$ac_item
8151 fi
74168152 done
7417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7418 rm -f conftest.i conftest.err conftest.$ac_ext
7419 if $ac_preproc_ok; then :
7420 break
7421 fi
7422
7423 done
7424 ac_cv_prog_CPP=$CPP
7425
7426 fi
7427 CPP=$ac_cv_prog_CPP
7428 else
7429 ac_cv_prog_CPP=$CPP
7430 fi
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7432 $as_echo "$CPP" >&6; }
7433 ac_preproc_ok=false
7434 for ac_c_preproc_warn_flag in '' yes
7435 do
7436 # Use a header file that comes with gcc, so configuring glibc
7437 # with a fresh cross-compiler works.
7438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7439 # <limits.h> exists even on freestanding compilers.
7440 # On the NeXT, cc -E runs the code through the compiler's parser,
7441 # not just through cpp. "Syntax error" is here to catch this case.
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7444 #ifdef __STDC__
7445 # include <limits.h>
7446 #else
7447 # include <assert.h>
7448 #endif
7449 Syntax error
7450 _ACEOF
7451 if ac_fn_c_try_cpp "$LINENO"; then :
7452
7453 else
7454 # Broken: fails on valid input.
7455 continue
7456 fi
7457 rm -f conftest.err conftest.i conftest.$ac_ext
7458
7459 # OK, works on sane cases. Now check whether nonexistent headers
7460 # can be detected and how.
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #include <ac_nonexistent.h>
7464 _ACEOF
7465 if ac_fn_c_try_cpp "$LINENO"; then :
7466 # Broken: success on invalid input.
7467 continue
7468 else
7469 # Passes both tests.
7470 ac_preproc_ok=:
7471 break
7472 fi
7473 rm -f conftest.err conftest.i conftest.$ac_ext
7474
7475 done
7476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7477 rm -f conftest.i conftest.err conftest.$ac_ext
7478 if $ac_preproc_ok; then :
7479
7480 else
7481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7483 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7484 See \`config.log' for more details" "$LINENO" 5; }
7485 fi
7486
7487 ac_ext=c
7488 ac_cpp='$CPP $CPPFLAGS'
7489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7492
7493
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7495 $as_echo_n "checking for ANSI C header files... " >&6; }
7496 if ${ac_cv_header_stdc+:} false; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7501 #include <stdlib.h>
7502 #include <stdarg.h>
7503 #include <string.h>
7504 #include <float.h>
7505
7506 int
7507 main ()
7508 {
7509
7510 ;
7511 return 0;
7512 }
7513 _ACEOF
7514 if ac_fn_c_try_compile "$LINENO"; then :
7515 ac_cv_header_stdc=yes
7516 else
7517 ac_cv_header_stdc=no
7518 fi
7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520
7521 if test $ac_cv_header_stdc = yes; then
7522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #include <string.h>
7526
7527 _ACEOF
7528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7529 $EGREP "memchr" >/dev/null 2>&1; then :
7530
7531 else
7532 ac_cv_header_stdc=no
7533 fi
7534 rm -f conftest*
7535
7536 fi
7537
7538 if test $ac_cv_header_stdc = yes; then
7539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542 #include <stdlib.h>
7543
7544 _ACEOF
7545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7546 $EGREP "free" >/dev/null 2>&1; then :
7547
7548 else
7549 ac_cv_header_stdc=no
7550 fi
7551 rm -f conftest*
7552
7553 fi
7554
7555 if test $ac_cv_header_stdc = yes; then
7556 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7557 if test "$cross_compiling" = yes; then :
7558 :
7559 else
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7562 #include <ctype.h>
7563 #include <stdlib.h>
7564 #if ((' ' & 0x0FF) == 0x020)
7565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7567 #else
7568 # define ISLOWER(c) \
7569 (('a' <= (c) && (c) <= 'i') \
7570 || ('j' <= (c) && (c) <= 'r') \
7571 || ('s' <= (c) && (c) <= 'z'))
7572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7573 #endif
7574
7575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7576 int
7577 main ()
7578 {
7579 int i;
7580 for (i = 0; i < 256; i++)
7581 if (XOR (islower (i), ISLOWER (i))
7582 || toupper (i) != TOUPPER (i))
7583 return 2;
7584 return 0;
7585 }
7586 _ACEOF
7587 if ac_fn_c_try_run "$LINENO"; then :
7588
7589 else
7590 ac_cv_header_stdc=no
7591 fi
7592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7593 conftest.$ac_objext conftest.beam conftest.$ac_ext
7594 fi
7595
7596 fi
7597 fi
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7599 $as_echo "$ac_cv_header_stdc" >&6; }
7600 if test $ac_cv_header_stdc = yes; then
7601
7602 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7603
7604 fi
7605
7606 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7607 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7608 inttypes.h stdint.h unistd.h
7609 do :
7610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7611 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8153
8154
8155
8156
8157
8158
8159
8160
8161 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8162 then :
8163
8164 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8165
8166 fi
8167 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
76128168 "
7613 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7614 cat >>confdefs.h <<_ACEOF
7615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7616 _ACEOF
7617
7618 fi
7619
7620 done
7621
7622
7623 for ac_header in dlfcn.h
7624 do :
7625 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7626 "
7627 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7628 cat >>confdefs.h <<_ACEOF
7629 #define HAVE_DLFCN_H 1
7630 _ACEOF
7631
7632 fi
7633
7634 done
8169 if test "x$ac_cv_header_dlfcn_h" = xyes
8170 then :
8171 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8172
8173 fi
76358174
76368175
76378176
76488187
76498188
76508189 # Check whether --enable-shared was given.
7651 if test "${enable_shared+set}" = set; then :
8190 if test ${enable_shared+y}
8191 then :
76528192 enableval=$enable_shared; p=${PACKAGE-default}
76538193 case $enableval in
76548194 yes) enable_shared=yes ;;
76668206 IFS=$lt_save_ifs
76678207 ;;
76688208 esac
7669 else
8209 else $as_nop
76708210 enable_shared=yes
76718211 fi
76728212
76798219
76808220
76818221 # Check whether --enable-static was given.
7682 if test "${enable_static+set}" = set; then :
8222 if test ${enable_static+y}
8223 then :
76838224 enableval=$enable_static; p=${PACKAGE-default}
76848225 case $enableval in
76858226 yes) enable_static=yes ;;
76978238 IFS=$lt_save_ifs
76988239 ;;
76998240 esac
7700 else
8241 else $as_nop
77018242 enable_static=yes
77028243 fi
77038244
77118252
77128253
77138254 # Check whether --with-pic was given.
7714 if test "${with_pic+set}" = set; then :
8255 if test ${with_pic+y}
8256 then :
77158257 withval=$with_pic; lt_p=${PACKAGE-default}
77168258 case $withval in
77178259 yes|no) pic_mode=$withval ;;
77288270 IFS=$lt_save_ifs
77298271 ;;
77308272 esac
7731 else
8273 else $as_nop
77328274 pic_mode=default
77338275 fi
77348276
77408282
77418283
77428284 # Check whether --enable-fast-install was given.
7743 if test "${enable_fast_install+set}" = set; then :
8285 if test ${enable_fast_install+y}
8286 then :
77448287 enableval=$enable_fast_install; p=${PACKAGE-default}
77458288 case $enableval in
77468289 yes) enable_fast_install=yes ;;
77588301 IFS=$lt_save_ifs
77598302 ;;
77608303 esac
7761 else
8304 else $as_nop
77628305 enable_fast_install=yes
77638306 fi
77648307
77728315 shared_archive_member_spec=
77738316 case $host,$enable_shared in
77748317 power*-*-aix[5-9]*,yes)
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7776 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8319 printf %s "checking which variant of shared library versioning to provide... " >&6; }
77778320
77788321 # Check whether --with-aix-soname was given.
7779 if test "${with_aix_soname+set}" = set; then :
8322 if test ${with_aix_soname+y}
8323 then :
77808324 withval=$with_aix_soname; case $withval in
77818325 aix|svr4|both)
77828326 ;;
77858329 ;;
77868330 esac
77878331 lt_cv_with_aix_soname=$with_aix_soname
7788 else
7789 if ${lt_cv_with_aix_soname+:} false; then :
7790 $as_echo_n "(cached) " >&6
7791 else
8332 else $as_nop
8333 if test ${lt_cv_with_aix_soname+y}
8334 then :
8335 printf %s "(cached) " >&6
8336 else $as_nop
77928337 lt_cv_with_aix_soname=aix
77938338 fi
77948339
77958340 with_aix_soname=$lt_cv_with_aix_soname
77968341 fi
77978342
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7799 $as_echo "$with_aix_soname" >&6; }
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8344 printf "%s\n" "$with_aix_soname" >&6; }
78008345 if test aix != "$with_aix_soname"; then
78018346 # For the AIX way of multilib, we name the shared archive member
78028347 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
78788423 setopt NO_GLOB_SUBST
78798424 fi
78808425
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7882 $as_echo_n "checking for objdir... " >&6; }
7883 if ${lt_cv_objdir+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8427 printf %s "checking for objdir... " >&6; }
8428 if test ${lt_cv_objdir+y}
8429 then :
8430 printf %s "(cached) " >&6
8431 else $as_nop
78868432 rm -f .libs 2>/dev/null
78878433 mkdir .libs 2>/dev/null
78888434 if test -d .libs; then
78938439 fi
78948440 rmdir .libs 2>/dev/null
78958441 fi
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7897 $as_echo "$lt_cv_objdir" >&6; }
8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8443 printf "%s\n" "$lt_cv_objdir" >&6; }
78988444 objdir=$lt_cv_objdir
78998445
79008446
79018447
79028448
79038449
7904 cat >>confdefs.h <<_ACEOF
7905 #define LT_OBJDIR "$lt_cv_objdir/"
7906 _ACEOF
8450 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
79078451
79088452
79098453
79498493 case $deplibs_check_method in
79508494 file_magic*)
79518495 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7953 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7954 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956 else
8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8497 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8498 if test ${lt_cv_path_MAGIC_CMD+y}
8499 then :
8500 printf %s "(cached) " >&6
8501 else $as_nop
79578502 case $MAGIC_CMD in
79588503 [\\/*] | ?:[\\/]*)
79598504 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
80028547
80038548 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
80048549 if test -n "$MAGIC_CMD"; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8006 $as_echo "$MAGIC_CMD" >&6; }
8007 else
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8551 printf "%s\n" "$MAGIC_CMD" >&6; }
8552 else
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 printf "%s\n" "no" >&6; }
80108555 fi
80118556
80128557
80158560
80168561 if test -z "$lt_cv_path_MAGIC_CMD"; then
80178562 if test -n "$ac_tool_prefix"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8019 $as_echo_n "checking for file... " >&6; }
8020 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8564 printf %s "checking for file... " >&6; }
8565 if test ${lt_cv_path_MAGIC_CMD+y}
8566 then :
8567 printf %s "(cached) " >&6
8568 else $as_nop
80238569 case $MAGIC_CMD in
80248570 [\\/*] | ?:[\\/]*)
80258571 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
80688614
80698615 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
80708616 if test -n "$MAGIC_CMD"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8072 $as_echo "$MAGIC_CMD" >&6; }
8073 else
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8618 printf "%s\n" "$MAGIC_CMD" >&6; }
8619 else
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 printf "%s\n" "no" >&6; }
80768622 fi
80778623
80788624
81578703 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
81588704 esac
81598705
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8161 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8162 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8707 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8708 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8709 then :
8710 printf %s "(cached) " >&6
8711 else $as_nop
81658712 lt_cv_prog_compiler_rtti_exceptions=no
81668713 ac_outfile=conftest.$ac_objext
81678714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
81928739 $RM conftest*
81938740
81948741 fi
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8196 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8743 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
81978744
81988745 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
81998746 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
85509097 ;;
85519098 esac
85529099
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8554 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8555 if ${lt_cv_prog_compiler_pic+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557 else
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9101 printf %s "checking for $compiler option to produce PIC... " >&6; }
9102 if test ${lt_cv_prog_compiler_pic+y}
9103 then :
9104 printf %s "(cached) " >&6
9105 else $as_nop
85589106 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
85599107 fi
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8561 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9109 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
85629110 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
85639111
85649112 #
85659113 # Check to make sure the PIC flag actually works.
85669114 #
85679115 if test -n "$lt_prog_compiler_pic"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8569 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8570 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8571 $as_echo_n "(cached) " >&6
8572 else
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9117 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9118 if test ${lt_cv_prog_compiler_pic_works+y}
9119 then :
9120 printf %s "(cached) " >&6
9121 else $as_nop
85739122 lt_cv_prog_compiler_pic_works=no
85749123 ac_outfile=conftest.$ac_objext
85759124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
86009149 $RM conftest*
86019150
86029151 fi
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8604 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9153 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
86059154
86069155 if test yes = "$lt_cv_prog_compiler_pic_works"; then
86079156 case $lt_prog_compiler_pic in
86299178 # Check to make sure the static flag actually works.
86309179 #
86319180 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8633 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8634 if ${lt_cv_prog_compiler_static_works+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9182 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9183 if test ${lt_cv_prog_compiler_static_works+y}
9184 then :
9185 printf %s "(cached) " >&6
9186 else $as_nop
86379187 lt_cv_prog_compiler_static_works=no
86389188 save_LDFLAGS=$LDFLAGS
86399189 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
86579207 LDFLAGS=$save_LDFLAGS
86589208
86599209 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8661 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9211 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
86629212
86639213 if test yes = "$lt_cv_prog_compiler_static_works"; then
86649214 :
86729222
86739223
86749224
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8676 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8677 if ${lt_cv_prog_compiler_c_o+:} false; then :
8678 $as_echo_n "(cached) " >&6
8679 else
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9226 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9227 if test ${lt_cv_prog_compiler_c_o+y}
9228 then :
9229 printf %s "(cached) " >&6
9230 else $as_nop
86809231 lt_cv_prog_compiler_c_o=no
86819232 $RM -r conftest 2>/dev/null
86829233 mkdir conftest
87199270 $RM conftest*
87209271
87219272 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8723 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8724
8725
8726
8727
8728
8729
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8731 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8732 if ${lt_cv_prog_compiler_c_o+:} false; then :
8733 $as_echo_n "(cached) " >&6
8734 else
9273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9274 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9275
9276
9277
9278
9279
9280
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9282 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9283 if test ${lt_cv_prog_compiler_c_o+y}
9284 then :
9285 printf %s "(cached) " >&6
9286 else $as_nop
87359287 lt_cv_prog_compiler_c_o=no
87369288 $RM -r conftest 2>/dev/null
87379289 mkdir conftest
87749326 $RM conftest*
87759327
87769328 fi
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8778 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9330 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
87799331
87809332
87819333
87839335 hard_links=nottested
87849336 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
87859337 # do not overwrite the value of need_locks provided by the user
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8787 $as_echo_n "checking if we can lock with hard links... " >&6; }
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9339 printf %s "checking if we can lock with hard links... " >&6; }
87889340 hard_links=yes
87899341 $RM conftest*
87909342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
87919343 touch conftest.a
87929344 ln conftest.a conftest.b 2>&5 || hard_links=no
87939345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8795 $as_echo "$hard_links" >&6; }
9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9347 printf "%s\n" "$hard_links" >&6; }
87969348 if test no = "$hard_links"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8798 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9350 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
87999351 need_locks=warn
88009352 fi
88019353 else
88079359
88089360
88099361
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8811 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9363 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
88129364
88139365 runpath_var=
88149366 allow_undefined_flag=
93639915 if test set = "${lt_cv_aix_libpath+set}"; then
93649916 aix_libpath=$lt_cv_aix_libpath
93659917 else
9366 if ${lt_cv_aix_libpath_+:} false; then :
9367 $as_echo_n "(cached) " >&6
9368 else
9918 if test ${lt_cv_aix_libpath_+y}
9919 then :
9920 printf %s "(cached) " >&6
9921 else $as_nop
93699922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93709923 /* end confdefs.h. */
93719924
93729925 int
9373 main ()
9926 main (void)
93749927 {
93759928
93769929 ;
93779930 return 0;
93789931 }
93799932 _ACEOF
9380 if ac_fn_c_try_link "$LINENO"; then :
9933 if ac_fn_c_try_link "$LINENO"
9934 then :
93819935
93829936 lt_aix_libpath_sed='
93839937 /Import File Strings/,/^$/ {
93929946 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
93939947 fi
93949948 fi
9395 rm -f core conftest.err conftest.$ac_objext \
9949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
93969950 conftest$ac_exeext conftest.$ac_ext
93979951 if test -z "$lt_cv_aix_libpath_"; then
93989952 lt_cv_aix_libpath_=/usr/lib:/lib
94169970 if test set = "${lt_cv_aix_libpath+set}"; then
94179971 aix_libpath=$lt_cv_aix_libpath
94189972 else
9419 if ${lt_cv_aix_libpath_+:} false; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9973 if test ${lt_cv_aix_libpath_+y}
9974 then :
9975 printf %s "(cached) " >&6
9976 else $as_nop
94229977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94239978 /* end confdefs.h. */
94249979
94259980 int
9426 main ()
9981 main (void)
94279982 {
94289983
94299984 ;
94309985 return 0;
94319986 }
94329987 _ACEOF
9433 if ac_fn_c_try_link "$LINENO"; then :
9988 if ac_fn_c_try_link "$LINENO"
9989 then :
94349990
94359991 lt_aix_libpath_sed='
94369992 /Import File Strings/,/^$/ {
944510001 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
944610002 fi
944710003 fi
9448 rm -f core conftest.err conftest.$ac_objext \
10004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
944910005 conftest$ac_exeext conftest.$ac_ext
945010006 if test -z "$lt_cv_aix_libpath_"; then
945110007 lt_cv_aix_libpath_=/usr/lib:/lib
969610252
969710253 # Older versions of the 11.00 compiler do not understand -b yet
969810254 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9700 $as_echo_n "checking if $CC understands -b... " >&6; }
9701 if ${lt_cv_prog_compiler__b+:} false; then :
9702 $as_echo_n "(cached) " >&6
9703 else
10255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10256 printf %s "checking if $CC understands -b... " >&6; }
10257 if test ${lt_cv_prog_compiler__b+y}
10258 then :
10259 printf %s "(cached) " >&6
10260 else $as_nop
970410261 lt_cv_prog_compiler__b=no
970510262 save_LDFLAGS=$LDFLAGS
970610263 LDFLAGS="$LDFLAGS -b"
972410281 LDFLAGS=$save_LDFLAGS
972510282
972610283 fi
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9728 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10285 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
972910286
973010287 if test yes = "$lt_cv_prog_compiler__b"; then
973110288 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
976510322 # work, assume that -exports_file does not work either and
976610323 # implicitly export all symbols.
976710324 # This should be the same for all languages, so no per-tag cache variable.
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9769 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9770 if ${lt_cv_irix_exported_symbol+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
10325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10326 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10327 if test ${lt_cv_irix_exported_symbol+y}
10328 then :
10329 printf %s "(cached) " >&6
10330 else $as_nop
977310331 save_LDFLAGS=$LDFLAGS
977410332 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
977510333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
977610334 /* end confdefs.h. */
977710335 int foo (void) { return 0; }
977810336 _ACEOF
9779 if ac_fn_c_try_link "$LINENO"; then :
10337 if ac_fn_c_try_link "$LINENO"
10338 then :
978010339 lt_cv_irix_exported_symbol=yes
9781 else
10340 else $as_nop
978210341 lt_cv_irix_exported_symbol=no
978310342 fi
9784 rm -f core conftest.err conftest.$ac_objext \
10343 rm -f core conftest.err conftest.$ac_objext conftest.beam \
978510344 conftest$ac_exeext conftest.$ac_ext
978610345 LDFLAGS=$save_LDFLAGS
978710346 fi
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9789 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10348 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
979010349 if test yes = "$lt_cv_irix_exported_symbol"; then
979110350 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
979210351 fi
1006610625 fi
1006710626 fi
1006810627
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10070 $as_echo "$ld_shlibs" >&6; }
10628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10629 printf "%s\n" "$ld_shlibs" >&6; }
1007110630 test no = "$ld_shlibs" && can_build_shared=no
1007210631
1007310632 with_gnu_ld=$with_gnu_ld
1010310662 # Test whether the compiler implicitly links with -lc since on some
1010410663 # systems, -lgcc has to come before -lc. If gcc already passes -lc
1010510664 # to ld, don't add -lc before -lgcc.
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10107 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10108 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10109 $as_echo_n "(cached) " >&6
10110 else
10665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10666 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10667 if test ${lt_cv_archive_cmds_need_lc+y}
10668 then :
10669 printf %s "(cached) " >&6
10670 else $as_nop
1011110671 $RM conftest*
1011210672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1011310673
1011410674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1011510675 (eval $ac_compile) 2>&5
1011610676 ac_status=$?
10117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1011810678 test $ac_status = 0; } 2>conftest.err; then
1011910679 soname=conftest
1012010680 lib=conftest
1013210692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1013310693 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1013410694 ac_status=$?
10135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1013610696 test $ac_status = 0; }
1013710697 then
1013810698 lt_cv_archive_cmds_need_lc=no
1014610706 $RM conftest*
1014710707
1014810708 fi
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10150 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10710 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
1015110711 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1015210712 ;;
1015310713 esac
1030610866
1030710867
1030810868
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10310 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10870 printf %s "checking dynamic linker characteristics... " >&6; }
1031110871
1031210872 if test yes = "$GCC"; then
1031310873 case $host_os in
1086811428 shlibpath_overrides_runpath=no
1086911429
1087011430 # Some binutils ld are patched to set DT_RUNPATH
10871 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10872 $as_echo_n "(cached) " >&6
10873 else
11431 if test ${lt_cv_shlibpath_overrides_runpath+y}
11432 then :
11433 printf %s "(cached) " >&6
11434 else $as_nop
1087411435 lt_cv_shlibpath_overrides_runpath=no
1087511436 save_LDFLAGS=$LDFLAGS
1087611437 save_libdir=$libdir
1088011441 /* end confdefs.h. */
1088111442
1088211443 int
10883 main ()
11444 main (void)
1088411445 {
1088511446
1088611447 ;
1088711448 return 0;
1088811449 }
1088911450 _ACEOF
10890 if ac_fn_c_try_link "$LINENO"; then :
10891 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11451 if ac_fn_c_try_link "$LINENO"
11452 then :
11453 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11454 then :
1089211455 lt_cv_shlibpath_overrides_runpath=yes
1089311456 fi
1089411457 fi
10895 rm -f core conftest.err conftest.$ac_objext \
11458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1089611459 conftest$ac_exeext conftest.$ac_ext
1089711460 LDFLAGS=$save_LDFLAGS
1089811461 libdir=$save_libdir
1112411687 dynamic_linker=no
1112511688 ;;
1112611689 esac
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11128 $as_echo "$dynamic_linker" >&6; }
11690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11691 printf "%s\n" "$dynamic_linker" >&6; }
1112911692 test no = "$dynamic_linker" && can_build_shared=no
1113011693
1113111694 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1124611809
1124711810
1124811811
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11250 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11813 printf %s "checking how to hardcode library paths into programs... " >&6; }
1125111814 hardcode_action=
1125211815 if test -n "$hardcode_libdir_flag_spec" ||
1125311816 test -n "$runpath_var" ||
1127111834 # directories.
1127211835 hardcode_action=unsupported
1127311836 fi
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11275 $as_echo "$hardcode_action" >&6; }
11837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11838 printf "%s\n" "$hardcode_action" >&6; }
1127611839
1127711840 if test relink = "$hardcode_action" ||
1127811841 test yes = "$inherit_rpath"; then
1131611879
1131711880 darwin*)
1131811881 # if libdl is installed we need to link against it
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11320 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11321 if ${ac_cv_lib_dl_dlopen+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11883 printf %s "checking for dlopen in -ldl... " >&6; }
11884 if test ${ac_cv_lib_dl_dlopen+y}
11885 then :
11886 printf %s "(cached) " >&6
11887 else $as_nop
1132411888 ac_check_lib_save_LIBS=$LIBS
1132511889 LIBS="-ldl $LIBS"
1132611890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1132911893 /* Override any GCC internal prototype to avoid an error.
1133011894 Use char because int might match the return type of a GCC
1133111895 builtin and then its argument prototype would still apply. */
11332 #ifdef __cplusplus
11333 extern "C"
11334 #endif
1133511896 char dlopen ();
1133611897 int
11337 main ()
11898 main (void)
1133811899 {
1133911900 return dlopen ();
1134011901 ;
1134111902 return 0;
1134211903 }
1134311904 _ACEOF
11344 if ac_fn_c_try_link "$LINENO"; then :
11905 if ac_fn_c_try_link "$LINENO"
11906 then :
1134511907 ac_cv_lib_dl_dlopen=yes
11346 else
11908 else $as_nop
1134711909 ac_cv_lib_dl_dlopen=no
1134811910 fi
11349 rm -f core conftest.err conftest.$ac_objext \
11911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1135011912 conftest$ac_exeext conftest.$ac_ext
1135111913 LIBS=$ac_check_lib_save_LIBS
1135211914 fi
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11354 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11355 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11916 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11917 if test "x$ac_cv_lib_dl_dlopen" = xyes
11918 then :
1135611919 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11357 else
11920 else $as_nop
1135811921
1135911922 lt_cv_dlopen=dyld
1136011923 lt_cv_dlopen_libs=
1137411937
1137511938 *)
1137611939 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11377 if test "x$ac_cv_func_shl_load" = xyes; then :
11940 if test "x$ac_cv_func_shl_load" = xyes
11941 then :
1137811942 lt_cv_dlopen=shl_load
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11381 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11382 if ${ac_cv_lib_dld_shl_load+:} false; then :
11383 $as_echo_n "(cached) " >&6
11384 else
11943 else $as_nop
11944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11945 printf %s "checking for shl_load in -ldld... " >&6; }
11946 if test ${ac_cv_lib_dld_shl_load+y}
11947 then :
11948 printf %s "(cached) " >&6
11949 else $as_nop
1138511950 ac_check_lib_save_LIBS=$LIBS
1138611951 LIBS="-ldld $LIBS"
1138711952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1139011955 /* Override any GCC internal prototype to avoid an error.
1139111956 Use char because int might match the return type of a GCC
1139211957 builtin and then its argument prototype would still apply. */
11393 #ifdef __cplusplus
11394 extern "C"
11395 #endif
1139611958 char shl_load ();
1139711959 int
11398 main ()
11960 main (void)
1139911961 {
1140011962 return shl_load ();
1140111963 ;
1140211964 return 0;
1140311965 }
1140411966 _ACEOF
11405 if ac_fn_c_try_link "$LINENO"; then :
11967 if ac_fn_c_try_link "$LINENO"
11968 then :
1140611969 ac_cv_lib_dld_shl_load=yes
11407 else
11970 else $as_nop
1140811971 ac_cv_lib_dld_shl_load=no
1140911972 fi
11410 rm -f core conftest.err conftest.$ac_objext \
11973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1141111974 conftest$ac_exeext conftest.$ac_ext
1141211975 LIBS=$ac_check_lib_save_LIBS
1141311976 fi
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11415 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11416 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11978 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
11979 if test "x$ac_cv_lib_dld_shl_load" = xyes
11980 then :
1141711981 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11418 else
11982 else $as_nop
1141911983 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11420 if test "x$ac_cv_func_dlopen" = xyes; then :
11984 if test "x$ac_cv_func_dlopen" = xyes
11985 then :
1142111986 lt_cv_dlopen=dlopen
11422 else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11424 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11425 if ${ac_cv_lib_dl_dlopen+:} false; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11987 else $as_nop
11988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11989 printf %s "checking for dlopen in -ldl... " >&6; }
11990 if test ${ac_cv_lib_dl_dlopen+y}
11991 then :
11992 printf %s "(cached) " >&6
11993 else $as_nop
1142811994 ac_check_lib_save_LIBS=$LIBS
1142911995 LIBS="-ldl $LIBS"
1143011996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1143311999 /* Override any GCC internal prototype to avoid an error.
1143412000 Use char because int might match the return type of a GCC
1143512001 builtin and then its argument prototype would still apply. */
11436 #ifdef __cplusplus
11437 extern "C"
11438 #endif
1143912002 char dlopen ();
1144012003 int
11441 main ()
12004 main (void)
1144212005 {
1144312006 return dlopen ();
1144412007 ;
1144512008 return 0;
1144612009 }
1144712010 _ACEOF
11448 if ac_fn_c_try_link "$LINENO"; then :
12011 if ac_fn_c_try_link "$LINENO"
12012 then :
1144912013 ac_cv_lib_dl_dlopen=yes
11450 else
12014 else $as_nop
1145112015 ac_cv_lib_dl_dlopen=no
1145212016 fi
11453 rm -f core conftest.err conftest.$ac_objext \
12017 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1145412018 conftest$ac_exeext conftest.$ac_ext
1145512019 LIBS=$ac_check_lib_save_LIBS
1145612020 fi
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11458 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11459 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12022 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12023 if test "x$ac_cv_lib_dl_dlopen" = xyes
12024 then :
1146012025 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11461 else
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11463 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11464 if ${ac_cv_lib_svld_dlopen+:} false; then :
11465 $as_echo_n "(cached) " >&6
11466 else
12026 else $as_nop
12027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12028 printf %s "checking for dlopen in -lsvld... " >&6; }
12029 if test ${ac_cv_lib_svld_dlopen+y}
12030 then :
12031 printf %s "(cached) " >&6
12032 else $as_nop
1146712033 ac_check_lib_save_LIBS=$LIBS
1146812034 LIBS="-lsvld $LIBS"
1146912035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1147212038 /* Override any GCC internal prototype to avoid an error.
1147312039 Use char because int might match the return type of a GCC
1147412040 builtin and then its argument prototype would still apply. */
11475 #ifdef __cplusplus
11476 extern "C"
11477 #endif
1147812041 char dlopen ();
1147912042 int
11480 main ()
12043 main (void)
1148112044 {
1148212045 return dlopen ();
1148312046 ;
1148412047 return 0;
1148512048 }
1148612049 _ACEOF
11487 if ac_fn_c_try_link "$LINENO"; then :
12050 if ac_fn_c_try_link "$LINENO"
12051 then :
1148812052 ac_cv_lib_svld_dlopen=yes
11489 else
12053 else $as_nop
1149012054 ac_cv_lib_svld_dlopen=no
1149112055 fi
11492 rm -f core conftest.err conftest.$ac_objext \
12056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1149312057 conftest$ac_exeext conftest.$ac_ext
1149412058 LIBS=$ac_check_lib_save_LIBS
1149512059 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11497 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11498 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12061 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12062 if test "x$ac_cv_lib_svld_dlopen" = xyes
12063 then :
1149912064 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11502 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11503 if ${ac_cv_lib_dld_dld_link+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
12065 else $as_nop
12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12067 printf %s "checking for dld_link in -ldld... " >&6; }
12068 if test ${ac_cv_lib_dld_dld_link+y}
12069 then :
12070 printf %s "(cached) " >&6
12071 else $as_nop
1150612072 ac_check_lib_save_LIBS=$LIBS
1150712073 LIBS="-ldld $LIBS"
1150812074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1151112077 /* Override any GCC internal prototype to avoid an error.
1151212078 Use char because int might match the return type of a GCC
1151312079 builtin and then its argument prototype would still apply. */
11514 #ifdef __cplusplus
11515 extern "C"
11516 #endif
1151712080 char dld_link ();
1151812081 int
11519 main ()
12082 main (void)
1152012083 {
1152112084 return dld_link ();
1152212085 ;
1152312086 return 0;
1152412087 }
1152512088 _ACEOF
11526 if ac_fn_c_try_link "$LINENO"; then :
12089 if ac_fn_c_try_link "$LINENO"
12090 then :
1152712091 ac_cv_lib_dld_dld_link=yes
11528 else
12092 else $as_nop
1152912093 ac_cv_lib_dld_dld_link=no
1153012094 fi
11531 rm -f core conftest.err conftest.$ac_objext \
12095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1153212096 conftest$ac_exeext conftest.$ac_ext
1153312097 LIBS=$ac_check_lib_save_LIBS
1153412098 fi
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11536 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11537 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12100 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12101 if test "x$ac_cv_lib_dld_dld_link" = xyes
12102 then :
1153812103 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1153912104 fi
1154012105
1157312138 save_LIBS=$LIBS
1157412139 LIBS="$lt_cv_dlopen_libs $LIBS"
1157512140
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11577 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11578 if ${lt_cv_dlopen_self+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580 else
12141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12142 printf %s "checking whether a program can dlopen itself... " >&6; }
12143 if test ${lt_cv_dlopen_self+y}
12144 then :
12145 printf %s "(cached) " >&6
12146 else $as_nop
1158112147 if test yes = "$cross_compiling"; then :
1158212148 lt_cv_dlopen_self=cross
1158312149 else
1165612222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1165712223 (eval $ac_link) 2>&5
1165812224 ac_status=$?
11659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1166012226 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1166112227 (./conftest; exit; ) >&5 2>/dev/null
1166212228 lt_status=$?
1167412240
1167512241
1167612242 fi
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11678 $as_echo "$lt_cv_dlopen_self" >&6; }
12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12244 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
1167912245
1168012246 if test yes = "$lt_cv_dlopen_self"; then
1168112247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11683 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11684 if ${lt_cv_dlopen_self_static+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
12248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12249 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12250 if test ${lt_cv_dlopen_self_static+y}
12251 then :
12252 printf %s "(cached) " >&6
12253 else $as_nop
1168712254 if test yes = "$cross_compiling"; then :
1168812255 lt_cv_dlopen_self_static=cross
1168912256 else
1176212329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1176312330 (eval $ac_link) 2>&5
1176412331 ac_status=$?
11765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1176612333 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1176712334 (./conftest; exit; ) >&5 2>/dev/null
1176812335 lt_status=$?
1178012347
1178112348
1178212349 fi
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11784 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12351 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
1178512352 fi
1178612353
1178712354 CPPFLAGS=$save_CPPFLAGS
1181912386
1182012387 striplib=
1182112388 old_striplib=
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11823 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12390 printf %s "checking whether stripping libraries is possible... " >&6; }
1182412391 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1182512392 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1182612393 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11828 $as_echo "yes" >&6; }
12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12395 printf "%s\n" "yes" >&6; }
1182912396 else
1183012397 # FIXME - insert some real tests, host_os isn't really good enough
1183112398 case $host_os in
1183312400 if test -n "$STRIP"; then
1183412401 striplib="$STRIP -x"
1183512402 old_striplib="$STRIP -S"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
12403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12404 printf "%s\n" "yes" >&6; }
1183812405 else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
12406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407 printf "%s\n" "no" >&6; }
1184112408 fi
1184212409 ;;
1184312410 *)
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
12411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 printf "%s\n" "no" >&6; }
1184612413 ;;
1184712414 esac
1184812415 fi
1185912426
1186012427
1186112428 # Report what library types will actually be built
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11863 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11865 $as_echo "$can_build_shared" >&6; }
11866
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11868 $as_echo_n "checking whether to build shared libraries... " >&6; }
12429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12430 printf %s "checking if libtool supports shared libraries... " >&6; }
12431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12432 printf "%s\n" "$can_build_shared" >&6; }
12433
12434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12435 printf %s "checking whether to build shared libraries... " >&6; }
1186912436 test no = "$can_build_shared" && enable_shared=no
1187012437
1187112438 # On AIX, shared libraries and static libraries use the same namespace, and
1188912456 fi
1189012457 ;;
1189112458 esac
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11893 $as_echo "$enable_shared" >&6; }
11894
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11896 $as_echo_n "checking whether to build static libraries... " >&6; }
12459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12460 printf "%s\n" "$enable_shared" >&6; }
12461
12462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12463 printf %s "checking whether to build static libraries... " >&6; }
1189712464 # Make sure either enable_shared or enable_static is yes.
1189812465 test yes = "$enable_shared" || enable_static=yes
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11900 $as_echo "$enable_static" >&6; }
12466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12467 printf "%s\n" "$enable_static" >&6; }
1190112468
1190212469
1190312470
1194612513 if test -n "$ac_tool_prefix"; then
1194712514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1194812515 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950 $as_echo_n "checking for $ac_word... " >&6; }
11951 if ${ac_cv_prog_CC+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
12516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12517 printf %s "checking for $ac_word... " >&6; }
12518 if test ${ac_cv_prog_CC+y}
12519 then :
12520 printf %s "(cached) " >&6
12521 else $as_nop
1195412522 if test -n "$CC"; then
1195512523 ac_cv_prog_CC="$CC" # Let the user override the test.
1195612524 else
1195812526 for as_dir in $PATH
1195912527 do
1196012528 IFS=$as_save_IFS
11961 test -z "$as_dir" && as_dir=.
12529 case $as_dir in #(((
12530 '') as_dir=./ ;;
12531 */) ;;
12532 *) as_dir=$as_dir/ ;;
12533 esac
1196212534 for ac_exec_ext in '' $ac_executable_extensions; do
11963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1196412536 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1196612538 break 2
1196712539 fi
1196812540 done
1197312545 fi
1197412546 CC=$ac_cv_prog_CC
1197512547 if test -n "$CC"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11977 $as_echo "$CC" >&6; }
11978 else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12549 printf "%s\n" "$CC" >&6; }
12550 else
12551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552 printf "%s\n" "no" >&6; }
1198112553 fi
1198212554
1198312555
1198612558 ac_ct_CC=$CC
1198712559 # Extract the first word of "gcc", so it can be a program name with args.
1198812560 set dummy gcc; ac_word=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11992 $as_echo_n "(cached) " >&6
11993 else
12561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12562 printf %s "checking for $ac_word... " >&6; }
12563 if test ${ac_cv_prog_ac_ct_CC+y}
12564 then :
12565 printf %s "(cached) " >&6
12566 else $as_nop
1199412567 if test -n "$ac_ct_CC"; then
1199512568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1199612569 else
1199812571 for as_dir in $PATH
1199912572 do
1200012573 IFS=$as_save_IFS
12001 test -z "$as_dir" && as_dir=.
12574 case $as_dir in #(((
12575 '') as_dir=./ ;;
12576 */) ;;
12577 *) as_dir=$as_dir/ ;;
12578 esac
1200212579 for ac_exec_ext in '' $ac_executable_extensions; do
12003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1200412581 ac_cv_prog_ac_ct_CC="gcc"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1200612583 break 2
1200712584 fi
1200812585 done
1201312590 fi
1201412591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1201512592 if test -n "$ac_ct_CC"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12017 $as_echo "$ac_ct_CC" >&6; }
12018 else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12594 printf "%s\n" "$ac_ct_CC" >&6; }
12595 else
12596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 printf "%s\n" "no" >&6; }
1202112598 fi
1202212599
1202312600 if test "x$ac_ct_CC" = x; then
1202512602 else
1202612603 case $cross_compiling:$ac_tool_warned in
1202712604 yes:)
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12606 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1203012607 ac_tool_warned=yes ;;
1203112608 esac
1203212609 CC=$ac_ct_CC
1203912616 if test -n "$ac_tool_prefix"; then
1204012617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1204112618 set dummy ${ac_tool_prefix}cc; ac_word=$2
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12043 $as_echo_n "checking for $ac_word... " >&6; }
12044 if ${ac_cv_prog_CC+:} false; then :
12045 $as_echo_n "(cached) " >&6
12046 else
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620 printf %s "checking for $ac_word... " >&6; }
12621 if test ${ac_cv_prog_CC+y}
12622 then :
12623 printf %s "(cached) " >&6
12624 else $as_nop
1204712625 if test -n "$CC"; then
1204812626 ac_cv_prog_CC="$CC" # Let the user override the test.
1204912627 else
1205112629 for as_dir in $PATH
1205212630 do
1205312631 IFS=$as_save_IFS
12054 test -z "$as_dir" && as_dir=.
12632 case $as_dir in #(((
12633 '') as_dir=./ ;;
12634 */) ;;
12635 *) as_dir=$as_dir/ ;;
12636 esac
1205512637 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1205712639 ac_cv_prog_CC="${ac_tool_prefix}cc"
12058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1205912641 break 2
1206012642 fi
1206112643 done
1206612648 fi
1206712649 CC=$ac_cv_prog_CC
1206812650 if test -n "$CC"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12070 $as_echo "$CC" >&6; }
12071 else
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12652 printf "%s\n" "$CC" >&6; }
12653 else
12654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 printf "%s\n" "no" >&6; }
1207412656 fi
1207512657
1207612658
1207912661 if test -z "$CC"; then
1208012662 # Extract the first word of "cc", so it can be a program name with args.
1208112663 set dummy cc; ac_word=$2
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12083 $as_echo_n "checking for $ac_word... " >&6; }
12084 if ${ac_cv_prog_CC+:} false; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12665 printf %s "checking for $ac_word... " >&6; }
12666 if test ${ac_cv_prog_CC+y}
12667 then :
12668 printf %s "(cached) " >&6
12669 else $as_nop
1208712670 if test -n "$CC"; then
1208812671 ac_cv_prog_CC="$CC" # Let the user override the test.
1208912672 else
1209212675 for as_dir in $PATH
1209312676 do
1209412677 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
12678 case $as_dir in #(((
12679 '') as_dir=./ ;;
12680 */) ;;
12681 *) as_dir=$as_dir/ ;;
12682 esac
1209612683 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12098 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12685 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1209912686 ac_prog_rejected=yes
1210012687 continue
1210112688 fi
1210212689 ac_cv_prog_CC="cc"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1210412691 break 2
1210512692 fi
1210612693 done
1211612703 # However, it has the same basename, so the bogon will be chosen
1211712704 # first if we set CC to just the basename; use the full file name.
1211812705 shift
12119 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12706 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1212012707 fi
1212112708 fi
1212212709 fi
1212312710 fi
1212412711 CC=$ac_cv_prog_CC
1212512712 if test -n "$CC"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12127 $as_echo "$CC" >&6; }
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12714 printf "%s\n" "$CC" >&6; }
12715 else
12716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 printf "%s\n" "no" >&6; }
1213112718 fi
1213212719
1213312720
1213812725 do
1213912726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1214012727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12142 $as_echo_n "checking for $ac_word... " >&6; }
12143 if ${ac_cv_prog_CC+:} false; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729 printf %s "checking for $ac_word... " >&6; }
12730 if test ${ac_cv_prog_CC+y}
12731 then :
12732 printf %s "(cached) " >&6
12733 else $as_nop
1214612734 if test -n "$CC"; then
1214712735 ac_cv_prog_CC="$CC" # Let the user override the test.
1214812736 else
1215012738 for as_dir in $PATH
1215112739 do
1215212740 IFS=$as_save_IFS
12153 test -z "$as_dir" && as_dir=.
12741 case $as_dir in #(((
12742 '') as_dir=./ ;;
12743 */) ;;
12744 *) as_dir=$as_dir/ ;;
12745 esac
1215412746 for ac_exec_ext in '' $ac_executable_extensions; do
12155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1215612748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1215812750 break 2
1215912751 fi
1216012752 done
1216512757 fi
1216612758 CC=$ac_cv_prog_CC
1216712759 if test -n "$CC"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12169 $as_echo "$CC" >&6; }
12170 else
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12761 printf "%s\n" "$CC" >&6; }
12762 else
12763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 printf "%s\n" "no" >&6; }
1217312765 fi
1217412766
1217512767
1218212774 do
1218312775 # Extract the first word of "$ac_prog", so it can be a program name with args.
1218412776 set dummy $ac_prog; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 printf %s "checking for $ac_word... " >&6; }
12779 if test ${ac_cv_prog_ac_ct_CC+y}
12780 then :
12781 printf %s "(cached) " >&6
12782 else $as_nop
1219012783 if test -n "$ac_ct_CC"; then
1219112784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1219212785 else
1219412787 for as_dir in $PATH
1219512788 do
1219612789 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
12790 case $as_dir in #(((
12791 '') as_dir=./ ;;
12792 */) ;;
12793 *) as_dir=$as_dir/ ;;
12794 esac
1219812795 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1220012797 ac_cv_prog_ac_ct_CC="$ac_prog"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1220212799 break 2
1220312800 fi
1220412801 done
1220912806 fi
1221012807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1221112808 if test -n "$ac_ct_CC"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12213 $as_echo "$ac_ct_CC" >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12810 printf "%s\n" "$ac_ct_CC" >&6; }
12811 else
12812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813 printf "%s\n" "no" >&6; }
1221712814 fi
1221812815
1221912816
1222512822 else
1222612823 case $cross_compiling:$ac_tool_warned in
1222712824 yes:)
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12826 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1223012827 ac_tool_warned=yes ;;
1223112828 esac
1223212829 CC=$ac_ct_CC
1223412831 fi
1223512832
1223612833 fi
12237
12238
12239 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12834 if test -z "$CC"; then
12835 if test -n "$ac_tool_prefix"; then
12836 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
12837 set dummy ${ac_tool_prefix}clang; ac_word=$2
12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 printf %s "checking for $ac_word... " >&6; }
12840 if test ${ac_cv_prog_CC+y}
12841 then :
12842 printf %s "(cached) " >&6
12843 else $as_nop
12844 if test -n "$CC"; then
12845 ac_cv_prog_CC="$CC" # Let the user override the test.
12846 else
12847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848 for as_dir in $PATH
12849 do
12850 IFS=$as_save_IFS
12851 case $as_dir in #(((
12852 '') as_dir=./ ;;
12853 */) ;;
12854 *) as_dir=$as_dir/ ;;
12855 esac
12856 for ac_exec_ext in '' $ac_executable_extensions; do
12857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12858 ac_cv_prog_CC="${ac_tool_prefix}clang"
12859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12860 break 2
12861 fi
12862 done
12863 done
12864 IFS=$as_save_IFS
12865
12866 fi
12867 fi
12868 CC=$ac_cv_prog_CC
12869 if test -n "$CC"; then
12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12871 printf "%s\n" "$CC" >&6; }
12872 else
12873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 printf "%s\n" "no" >&6; }
12875 fi
12876
12877
12878 fi
12879 if test -z "$ac_cv_prog_CC"; then
12880 ac_ct_CC=$CC
12881 # Extract the first word of "clang", so it can be a program name with args.
12882 set dummy clang; ac_word=$2
12883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884 printf %s "checking for $ac_word... " >&6; }
12885 if test ${ac_cv_prog_ac_ct_CC+y}
12886 then :
12887 printf %s "(cached) " >&6
12888 else $as_nop
12889 if test -n "$ac_ct_CC"; then
12890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12891 else
12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $PATH
12894 do
12895 IFS=$as_save_IFS
12896 case $as_dir in #(((
12897 '') as_dir=./ ;;
12898 */) ;;
12899 *) as_dir=$as_dir/ ;;
12900 esac
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12903 ac_cv_prog_ac_ct_CC="clang"
12904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12905 break 2
12906 fi
12907 done
12908 done
12909 IFS=$as_save_IFS
12910
12911 fi
12912 fi
12913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12914 if test -n "$ac_ct_CC"; then
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12916 printf "%s\n" "$ac_ct_CC" >&6; }
12917 else
12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 printf "%s\n" "no" >&6; }
12920 fi
12921
12922 if test "x$ac_ct_CC" = x; then
12923 CC=""
12924 else
12925 case $cross_compiling:$ac_tool_warned in
12926 yes:)
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12928 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12929 ac_tool_warned=yes ;;
12930 esac
12931 CC=$ac_ct_CC
12932 fi
12933 else
12934 CC="$ac_cv_prog_CC"
12935 fi
12936
12937 fi
12938
12939
12940 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12941 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1224112942 as_fn_error $? "no acceptable C compiler found in \$PATH
1224212943 See \`config.log' for more details" "$LINENO" 5; }
1224312944
1224412945 # Provide some information about the compiler.
12245 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1224612947 set X $ac_compile
1224712948 ac_compiler=$2
12248 for ac_option in --version -v -V -qversion; do
12949 for ac_option in --version -v -V -qversion -version; do
1224912950 { { ac_try="$ac_compiler $ac_option >&5"
1225012951 case "(($ac_try" in
1225112952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1225212953 *) ac_try_echo=$ac_try;;
1225312954 esac
1225412955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12255 $as_echo "$ac_try_echo"; } >&5
12956 printf "%s\n" "$ac_try_echo"; } >&5
1225612957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1225712958 ac_status=$?
1225812959 if test -s conftest.err; then
1226212963 cat conftest.er1 >&5
1226312964 fi
1226412965 rm -f conftest.er1 conftest.err
12265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1226612967 test $ac_status = 0; }
1226712968 done
1226812969
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12270 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12271 if ${ac_cv_c_compiler_gnu+:} false; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
12971 printf %s "checking whether the compiler supports GNU C... " >&6; }
12972 if test ${ac_cv_c_compiler_gnu+y}
12973 then :
12974 printf %s "(cached) " >&6
12975 else $as_nop
1227412976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1227512977 /* end confdefs.h. */
1227612978
1227712979 int
12278 main ()
12980 main (void)
1227912981 {
1228012982 #ifndef __GNUC__
1228112983 choke me
1228512987 return 0;
1228612988 }
1228712989 _ACEOF
12288 if ac_fn_c_try_compile "$LINENO"; then :
12990 if ac_fn_c_try_compile "$LINENO"
12991 then :
1228912992 ac_compiler_gnu=yes
12290 else
12993 else $as_nop
1229112994 ac_compiler_gnu=no
1229212995 fi
12293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1229412997 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1229512998
1229612999 fi
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12298 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13001 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13003
1229913004 if test $ac_compiler_gnu = yes; then
1230013005 GCC=yes
1230113006 else
1230213007 GCC=
1230313008 fi
12304 ac_test_CFLAGS=${CFLAGS+set}
13009 ac_test_CFLAGS=${CFLAGS+y}
1230513010 ac_save_CFLAGS=$CFLAGS
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12307 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12308 if ${ac_cv_prog_cc_g+:} false; then :
12309 $as_echo_n "(cached) " >&6
12310 else
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13012 printf %s "checking whether $CC accepts -g... " >&6; }
13013 if test ${ac_cv_prog_cc_g+y}
13014 then :
13015 printf %s "(cached) " >&6
13016 else $as_nop
1231113017 ac_save_c_werror_flag=$ac_c_werror_flag
1231213018 ac_c_werror_flag=yes
1231313019 ac_cv_prog_cc_g=no
1231613022 /* end confdefs.h. */
1231713023
1231813024 int
12319 main ()
13025 main (void)
1232013026 {
1232113027
1232213028 ;
1232313029 return 0;
1232413030 }
1232513031 _ACEOF
12326 if ac_fn_c_try_compile "$LINENO"; then :
13032 if ac_fn_c_try_compile "$LINENO"
13033 then :
1232713034 ac_cv_prog_cc_g=yes
12328 else
13035 else $as_nop
1232913036 CFLAGS=""
1233013037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1233113038 /* end confdefs.h. */
1233213039
1233313040 int
12334 main ()
13041 main (void)
1233513042 {
1233613043
1233713044 ;
1233813045 return 0;
1233913046 }
1234013047 _ACEOF
12341 if ac_fn_c_try_compile "$LINENO"; then :
12342
12343 else
13048 if ac_fn_c_try_compile "$LINENO"
13049 then :
13050
13051 else $as_nop
1234413052 ac_c_werror_flag=$ac_save_c_werror_flag
1234513053 CFLAGS="-g"
1234613054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1234713055 /* end confdefs.h. */
1234813056
1234913057 int
12350 main ()
13058 main (void)
1235113059 {
1235213060
1235313061 ;
1235413062 return 0;
1235513063 }
1235613064 _ACEOF
12357 if ac_fn_c_try_compile "$LINENO"; then :
13065 if ac_fn_c_try_compile "$LINENO"
13066 then :
1235813067 ac_cv_prog_cc_g=yes
1235913068 fi
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 fi
12362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 fi
12364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13070 fi
13071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13072 fi
13073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1236513074 ac_c_werror_flag=$ac_save_c_werror_flag
1236613075 fi
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12368 $as_echo "$ac_cv_prog_cc_g" >&6; }
12369 if test "$ac_test_CFLAGS" = set; then
13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13077 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13078 if test $ac_test_CFLAGS; then
1237013079 CFLAGS=$ac_save_CFLAGS
1237113080 elif test $ac_cv_prog_cc_g = yes; then
1237213081 if test "$GCC" = yes; then
1238113090 CFLAGS=
1238213091 fi
1238313092 fi
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12385 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12386 if ${ac_cv_prog_cc_c89+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388 else
13093 ac_prog_cc_stdc=no
13094 if test x$ac_prog_cc_stdc = xno
13095 then :
13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13097 printf %s "checking for $CC option to enable C11 features... " >&6; }
13098 if test ${ac_cv_prog_cc_c11+y}
13099 then :
13100 printf %s "(cached) " >&6
13101 else $as_nop
13102 ac_cv_prog_cc_c11=no
13103 ac_save_CC=$CC
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106 $ac_c_conftest_c11_program
13107 _ACEOF
13108 for ac_arg in '' -std=gnu11
13109 do
13110 CC="$ac_save_CC $ac_arg"
13111 if ac_fn_c_try_compile "$LINENO"
13112 then :
13113 ac_cv_prog_cc_c11=$ac_arg
13114 fi
13115 rm -f core conftest.err conftest.$ac_objext conftest.beam
13116 test "x$ac_cv_prog_cc_c11" != "xno" && break
13117 done
13118 rm -f conftest.$ac_ext
13119 CC=$ac_save_CC
13120 fi
13121
13122 if test "x$ac_cv_prog_cc_c11" = xno
13123 then :
13124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13125 printf "%s\n" "unsupported" >&6; }
13126 else $as_nop
13127 if test "x$ac_cv_prog_cc_c11" = x
13128 then :
13129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13130 printf "%s\n" "none needed" >&6; }
13131 else $as_nop
13132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13133 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13134 CC="$CC $ac_cv_prog_cc_c11"
13135 fi
13136 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13137 ac_prog_cc_stdc=c11
13138 fi
13139 fi
13140 if test x$ac_prog_cc_stdc = xno
13141 then :
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13143 printf %s "checking for $CC option to enable C99 features... " >&6; }
13144 if test ${ac_cv_prog_cc_c99+y}
13145 then :
13146 printf %s "(cached) " >&6
13147 else $as_nop
13148 ac_cv_prog_cc_c99=no
13149 ac_save_CC=$CC
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152 $ac_c_conftest_c99_program
13153 _ACEOF
13154 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13155 do
13156 CC="$ac_save_CC $ac_arg"
13157 if ac_fn_c_try_compile "$LINENO"
13158 then :
13159 ac_cv_prog_cc_c99=$ac_arg
13160 fi
13161 rm -f core conftest.err conftest.$ac_objext conftest.beam
13162 test "x$ac_cv_prog_cc_c99" != "xno" && break
13163 done
13164 rm -f conftest.$ac_ext
13165 CC=$ac_save_CC
13166 fi
13167
13168 if test "x$ac_cv_prog_cc_c99" = xno
13169 then :
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13171 printf "%s\n" "unsupported" >&6; }
13172 else $as_nop
13173 if test "x$ac_cv_prog_cc_c99" = x
13174 then :
13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13176 printf "%s\n" "none needed" >&6; }
13177 else $as_nop
13178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13179 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13180 CC="$CC $ac_cv_prog_cc_c99"
13181 fi
13182 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13183 ac_prog_cc_stdc=c99
13184 fi
13185 fi
13186 if test x$ac_prog_cc_stdc = xno
13187 then :
13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13189 printf %s "checking for $CC option to enable C89 features... " >&6; }
13190 if test ${ac_cv_prog_cc_c89+y}
13191 then :
13192 printf %s "(cached) " >&6
13193 else $as_nop
1238913194 ac_cv_prog_cc_c89=no
1239013195 ac_save_CC=$CC
1239113196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1239213197 /* end confdefs.h. */
12393 #include <stdarg.h>
12394 #include <stdio.h>
12395 struct stat;
12396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12397 struct buf { int x; };
12398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12399 static char *e (p, i)
12400 char **p;
12401 int i;
12402 {
12403 return p[i];
12404 }
12405 static char *f (char * (*g) (char **, int), char **p, ...)
12406 {
12407 char *s;
12408 va_list v;
12409 va_start (v,p);
12410 s = g (p, va_arg (v,int));
12411 va_end (v);
12412 return s;
12413 }
12414
12415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12416 function prototypes and stuff, but not '\xHH' hex character constants.
12417 These don't provoke an error unfortunately, instead are silently treated
12418 as 'x'. The following induces an error, until -std is added to get
12419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12420 array size at least. It's necessary to write '\x00'==0 to get something
12421 that's true only with -std. */
12422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12423
12424 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12425 inside strings and character constants. */
12426 #define FOO(x) 'x'
12427 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12428
12429 int test (int i, double x);
12430 struct s1 {int (*f) (int a);};
12431 struct s2 {int (*f) (double a);};
12432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12433 int argc;
12434 char **argv;
12435 int
12436 main ()
12437 {
12438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12439 ;
12440 return 0;
12441 }
13198 $ac_c_conftest_c89_program
1244213199 _ACEOF
12443 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12444 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13200 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1244513201 do
1244613202 CC="$ac_save_CC $ac_arg"
12447 if ac_fn_c_try_compile "$LINENO"; then :
13203 if ac_fn_c_try_compile "$LINENO"
13204 then :
1244813205 ac_cv_prog_cc_c89=$ac_arg
1244913206 fi
12450 rm -f core conftest.err conftest.$ac_objext
13207 rm -f core conftest.err conftest.$ac_objext conftest.beam
1245113208 test "x$ac_cv_prog_cc_c89" != "xno" && break
1245213209 done
1245313210 rm -f conftest.$ac_ext
1245413211 CC=$ac_save_CC
12455
12456 fi
12457 # AC_CACHE_VAL
12458 case "x$ac_cv_prog_cc_c89" in
12459 x)
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12461 $as_echo "none needed" >&6; } ;;
12462 xno)
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12464 $as_echo "unsupported" >&6; } ;;
12465 *)
12466 CC="$CC $ac_cv_prog_cc_c89"
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12469 esac
12470 if test "x$ac_cv_prog_cc_c89" != xno; then :
12471
13212 fi
13213
13214 if test "x$ac_cv_prog_cc_c89" = xno
13215 then :
13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13217 printf "%s\n" "unsupported" >&6; }
13218 else $as_nop
13219 if test "x$ac_cv_prog_cc_c89" = x
13220 then :
13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13222 printf "%s\n" "none needed" >&6; }
13223 else $as_nop
13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13225 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13226 CC="$CC $ac_cv_prog_cc_c89"
13227 fi
13228 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13229 ac_prog_cc_stdc=c89
13230 fi
1247213231 fi
1247313232
1247413233 ac_ext=c
1247713236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1247813237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1247913238
12480 ac_ext=c
13239
13240 ac_ext=c
1248113241 ac_cpp='$CPP $CPPFLAGS'
1248213242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1248313243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1248413244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12486 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12487 if ${am_cv_prog_cc_c_o+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489 else
13245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13246 printf %s "checking whether $CC understands -c and -o together... " >&6; }
13247 if test ${am_cv_prog_cc_c_o+y}
13248 then :
13249 printf %s "(cached) " >&6
13250 else $as_nop
1249013251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1249113252 /* end confdefs.h. */
1249213253
1249313254 int
12494 main ()
13255 main (void)
1249513256 {
1249613257
1249713258 ;
1251913280 rm -f core conftest*
1252013281 unset am_i
1252113282 fi
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12523 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13284 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
1252413285 if test "$am_cv_prog_cc_c_o" != yes; then
1252513286 # Losing compiler, so override with the script.
1252613287 # FIXME: It is wrong to rewrite CC.
1253813299
1253913300 depcc="$CC" am_compiler_list=
1254013301
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12542 $as_echo_n "checking dependency style of $depcc... " >&6; }
12543 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545 else
13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13303 printf %s "checking dependency style of $depcc... " >&6; }
13304 if test ${am_cv_CC_dependencies_compiler_type+y}
13305 then :
13306 printf %s "(cached) " >&6
13307 else $as_nop
1254613308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1254713309 # We make a subdir and do the tests there. Otherwise we can end up
1254813310 # making bogus files that we don't know about and never remove. For
1264913411 fi
1265013412
1265113413 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12653 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13415 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
1265413416 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1265513417
1265613418 if
1267013432
1267113433
1267213434
12673 for ac_header in $ac_header_list
12674 do :
12675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12676 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12677 "
12678 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12679 cat >>confdefs.h <<_ACEOF
12680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12681 _ACEOF
12682
12683 fi
12684
12685 done
12686
12687
12688
12689
12690
1269113435 # Checks for library functions.
12692 for ac_func in strdup strndup
12693 do :
12694 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12695 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12696 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12697 cat >>confdefs.h <<_ACEOF
12698 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12699 _ACEOF
12700
12701 fi
12702 done
13436 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13437 if test "x$ac_cv_func_strdup" = xyes
13438 then :
13439 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13440
13441 fi
13442 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
13443 if test "x$ac_cv_func_strndup" = xyes
13444 then :
13445 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
13446
13447 fi
1270313448
1270413449
1270513450 # Query configuration parameters and set their description
1270613451 # Check whether --enable-test was given.
12707 if test "${enable_test+set}" = set; then :
13452 if test ${enable_test+y}
13453 then :
1270813454 enableval=$enable_test;
1270913455 fi
1271013456
1271113457 # Check whether --enable-compare was given.
12712 if test "${enable_compare+set}" = set; then :
13458 if test ${enable_compare+y}
13459 then :
1271313460 enableval=$enable_compare;
1271413461 fi
1271513462
1271613463 # Check whether --enable-profile was given.
12717 if test "${enable_profile+set}" = set; then :
13464 if test ${enable_profile+y}
13465 then :
1271813466 enableval=$enable_profile;
1271913467 fi
1272013468
1272113469 # Check whether --enable-fontconfig was given.
12722 if test "${enable_fontconfig+set}" = set; then :
13470 if test ${enable_fontconfig+y}
13471 then :
1272313472 enableval=$enable_fontconfig;
1272413473 fi
1272513474
1272613475 # Check whether --enable-directwrite was given.
12727 if test "${enable_directwrite+set}" = set; then :
13476 if test ${enable_directwrite+y}
13477 then :
1272813478 enableval=$enable_directwrite;
1272913479 fi
1273013480
1273113481 # Check whether --enable-coretext was given.
12732 if test "${enable_coretext+set}" = set; then :
13482 if test ${enable_coretext+y}
13483 then :
1273313484 enableval=$enable_coretext;
1273413485 fi
1273513486
1273613487 # Check whether --enable-require-system-font-provider was given.
12737 if test "${enable_require_system_font_provider+set}" = set; then :
13488 if test ${enable_require_system_font_provider+y}
13489 then :
1273813490 enableval=$enable_require_system_font_provider;
1273913491 fi
1274013492
1274113493 # Check whether --enable-asm was given.
12742 if test "${enable_asm+set}" = set; then :
13494 if test ${enable_asm+y}
13495 then :
1274313496 enableval=$enable_asm;
1274413497 fi
1274513498
1274613499 # Check whether --enable-large-tiles was given.
12747 if test "${enable_large_tiles+set}" = set; then :
13500 if test ${enable_large_tiles+y}
13501 then :
1274813502 enableval=$enable_large_tiles;
1274913503 fi
1275013504
1275113505
1275213506 # Checks for available libraries and define corresponding C Macros
1275313507 # Start with system libs, then check everything else via pkg-config
12754 if test "x$ac_cv_header_iconv_h" = xyes; then :
13508 if test "x$ac_cv_header_iconv_h" = xyes
13509 then :
1275513510
1275613511 ## Some iconv libraries like GNU's libiconv define iconv_open as a macro to
1275713512 ## libiconv_open. As SEARCH_LIBS tests linking not compilation, check for
1275813513 ## libiconv_open first. SEARCH_LIBS is smart enough to not add -liconv a second
1275913514 ## time in case both versions are defined in the local libiconv.
1276013515 use_libiconv=false
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
12762 $as_echo_n "checking for library containing libiconv_open... " >&6; }
12763 if ${ac_cv_search_libiconv_open+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
13517 printf %s "checking for library containing libiconv_open... " >&6; }
13518 if test ${ac_cv_search_libiconv_open+y}
13519 then :
13520 printf %s "(cached) " >&6
13521 else $as_nop
1276613522 ac_func_search_save_LIBS=$LIBS
1276713523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1276813524 /* end confdefs.h. */
1277013526 /* Override any GCC internal prototype to avoid an error.
1277113527 Use char because int might match the return type of a GCC
1277213528 builtin and then its argument prototype would still apply. */
12773 #ifdef __cplusplus
12774 extern "C"
12775 #endif
1277613529 char libiconv_open ();
1277713530 int
12778 main ()
13531 main (void)
1277913532 {
1278013533 return libiconv_open ();
1278113534 ;
1278213535 return 0;
1278313536 }
1278413537 _ACEOF
12785 for ac_lib in '' iconv; do
13538 for ac_lib in '' iconv
13539 do
1278613540 if test -z "$ac_lib"; then
1278713541 ac_res="none required"
1278813542 else
1278913543 ac_res=-l$ac_lib
1279013544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1279113545 fi
12792 if ac_fn_c_try_link "$LINENO"; then :
13546 if ac_fn_c_try_link "$LINENO"
13547 then :
1279313548 ac_cv_search_libiconv_open=$ac_res
1279413549 fi
12795 rm -f core conftest.err conftest.$ac_objext \
13550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1279613551 conftest$ac_exeext
12797 if ${ac_cv_search_libiconv_open+:} false; then :
13552 if test ${ac_cv_search_libiconv_open+y}
13553 then :
1279813554 break
1279913555 fi
1280013556 done
12801 if ${ac_cv_search_libiconv_open+:} false; then :
12802
12803 else
13557 if test ${ac_cv_search_libiconv_open+y}
13558 then :
13559
13560 else $as_nop
1280413561 ac_cv_search_libiconv_open=no
1280513562 fi
1280613563 rm conftest.$ac_ext
1280713564 LIBS=$ac_func_search_save_LIBS
1280813565 fi
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
12810 $as_echo "$ac_cv_search_libiconv_open" >&6; }
13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
13567 printf "%s\n" "$ac_cv_search_libiconv_open" >&6; }
1281113568 ac_res=$ac_cv_search_libiconv_open
12812 if test "$ac_res" != no; then :
13569 if test "$ac_res" != no
13570 then :
1281313571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1281413572
1281513573 use_libiconv=true
1281613574
1281713575 fi
1281813576
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
12820 $as_echo_n "checking for library containing iconv_open... " >&6; }
12821 if ${ac_cv_search_iconv_open+:} false; then :
12822 $as_echo_n "(cached) " >&6
12823 else
13577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
13578 printf %s "checking for library containing iconv_open... " >&6; }
13579 if test ${ac_cv_search_iconv_open+y}
13580 then :
13581 printf %s "(cached) " >&6
13582 else $as_nop
1282413583 ac_func_search_save_LIBS=$LIBS
1282513584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1282613585 /* end confdefs.h. */
1282813587 /* Override any GCC internal prototype to avoid an error.
1282913588 Use char because int might match the return type of a GCC
1283013589 builtin and then its argument prototype would still apply. */
12831 #ifdef __cplusplus
12832 extern "C"
12833 #endif
1283413590 char iconv_open ();
1283513591 int
12836 main ()
13592 main (void)
1283713593 {
1283813594 return iconv_open ();
1283913595 ;
1284013596 return 0;
1284113597 }
1284213598 _ACEOF
12843 for ac_lib in '' iconv; do
13599 for ac_lib in '' iconv
13600 do
1284413601 if test -z "$ac_lib"; then
1284513602 ac_res="none required"
1284613603 else
1284713604 ac_res=-l$ac_lib
1284813605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1284913606 fi
12850 if ac_fn_c_try_link "$LINENO"; then :
13607 if ac_fn_c_try_link "$LINENO"
13608 then :
1285113609 ac_cv_search_iconv_open=$ac_res
1285213610 fi
12853 rm -f core conftest.err conftest.$ac_objext \
13611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1285413612 conftest$ac_exeext
12855 if ${ac_cv_search_iconv_open+:} false; then :
13613 if test ${ac_cv_search_iconv_open+y}
13614 then :
1285613615 break
1285713616 fi
1285813617 done
12859 if ${ac_cv_search_iconv_open+:} false; then :
12860
12861 else
13618 if test ${ac_cv_search_iconv_open+y}
13619 then :
13620
13621 else $as_nop
1286213622 ac_cv_search_iconv_open=no
1286313623 fi
1286413624 rm conftest.$ac_ext
1286513625 LIBS=$ac_func_search_save_LIBS
1286613626 fi
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
12868 $as_echo "$ac_cv_search_iconv_open" >&6; }
13627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
13628 printf "%s\n" "$ac_cv_search_iconv_open" >&6; }
1286913629 ac_res=$ac_cv_search_iconv_open
12870 if test "$ac_res" != no; then :
13630 if test "$ac_res" != no
13631 then :
1287113632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1287213633
1287313634 use_libiconv=true
1287413635
1287513636 fi
1287613637
12877 if test "x$use_libiconv" = xtrue; then :
12878
12879
12880 $as_echo "#define CONFIG_ICONV 1" >>confdefs.h
13638 if test "x$use_libiconv" = xtrue
13639 then :
13640
13641
13642 printf "%s\n" "#define CONFIG_ICONV 1" >>confdefs.h
1288113643
1288213644
1288313645 fi
1288513647 fi
1288613648 # Locate math functions. Most systems have it either in libc or libm, but a few
1288713649 # have some, eg C89, functions in libc and others in libm. Use C99 lrint to probe.
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5
12889 $as_echo_n "checking for library containing lrint... " >&6; }
12890 if ${ac_cv_search_lrint+:} false; then :
12891 $as_echo_n "(cached) " >&6
12892 else
13650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5
13651 printf %s "checking for library containing lrint... " >&6; }
13652 if test ${ac_cv_search_lrint+y}
13653 then :
13654 printf %s "(cached) " >&6
13655 else $as_nop
1289313656 ac_func_search_save_LIBS=$LIBS
1289413657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1289513658 /* end confdefs.h. */
1289713660 /* Override any GCC internal prototype to avoid an error.
1289813661 Use char because int might match the return type of a GCC
1289913662 builtin and then its argument prototype would still apply. */
12900 #ifdef __cplusplus
12901 extern "C"
12902 #endif
1290313663 char lrint ();
1290413664 int
12905 main ()
13665 main (void)
1290613666 {
1290713667 return lrint ();
1290813668 ;
1290913669 return 0;
1291013670 }
1291113671 _ACEOF
12912 for ac_lib in '' m; do
13672 for ac_lib in '' m
13673 do
1291313674 if test -z "$ac_lib"; then
1291413675 ac_res="none required"
1291513676 else
1291613677 ac_res=-l$ac_lib
1291713678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1291813679 fi
12919 if ac_fn_c_try_link "$LINENO"; then :
13680 if ac_fn_c_try_link "$LINENO"
13681 then :
1292013682 ac_cv_search_lrint=$ac_res
1292113683 fi
12922 rm -f core conftest.err conftest.$ac_objext \
13684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1292313685 conftest$ac_exeext
12924 if ${ac_cv_search_lrint+:} false; then :
13686 if test ${ac_cv_search_lrint+y}
13687 then :
1292513688 break
1292613689 fi
1292713690 done
12928 if ${ac_cv_search_lrint+:} false; then :
12929
12930 else
13691 if test ${ac_cv_search_lrint+y}
13692 then :
13693
13694 else $as_nop
1293113695 ac_cv_search_lrint=no
1293213696 fi
1293313697 rm conftest.$ac_ext
1293413698 LIBS=$ac_func_search_save_LIBS
1293513699 fi
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5
12937 $as_echo "$ac_cv_search_lrint" >&6; }
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5
13701 printf "%s\n" "$ac_cv_search_lrint" >&6; }
1293813702 ac_res=$ac_cv_search_lrint
12939 if test "$ac_res" != no; then :
13703 if test "$ac_res" != no
13704 then :
1294013705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1294113706
1294213707 # noop
1294313708
12944 else
13709 else $as_nop
1294513710
1294613711 as_fn_error $? "Unable to locate math functions!" "$LINENO" 5
1294713712
1296113726 if test -n "$ac_tool_prefix"; then
1296213727 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1296313728 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12965 $as_echo_n "checking for $ac_word... " >&6; }
12966 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12967 $as_echo_n "(cached) " >&6
12968 else
13729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13730 printf %s "checking for $ac_word... " >&6; }
13731 if test ${ac_cv_path_PKG_CONFIG+y}
13732 then :
13733 printf %s "(cached) " >&6
13734 else $as_nop
1296913735 case $PKG_CONFIG in
1297013736 [\\/]* | ?:[\\/]*)
1297113737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1297513741 for as_dir in $PATH
1297613742 do
1297713743 IFS=$as_save_IFS
12978 test -z "$as_dir" && as_dir=.
13744 case $as_dir in #(((
13745 '') as_dir=./ ;;
13746 */) ;;
13747 *) as_dir=$as_dir/ ;;
13748 esac
1297913749 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12981 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13751 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1298313753 break 2
1298413754 fi
1298513755 done
1299113761 fi
1299213762 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1299313763 if test -n "$PKG_CONFIG"; then
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12995 $as_echo "$PKG_CONFIG" >&6; }
12996 else
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 $as_echo "no" >&6; }
13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13765 printf "%s\n" "$PKG_CONFIG" >&6; }
13766 else
13767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768 printf "%s\n" "no" >&6; }
1299913769 fi
1300013770
1300113771
1300413774 ac_pt_PKG_CONFIG=$PKG_CONFIG
1300513775 # Extract the first word of "pkg-config", so it can be a program name with args.
1300613776 set dummy pkg-config; ac_word=$2
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008 $as_echo_n "checking for $ac_word... " >&6; }
13009 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13778 printf %s "checking for $ac_word... " >&6; }
13779 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13780 then :
13781 printf %s "(cached) " >&6
13782 else $as_nop
1301213783 case $ac_pt_PKG_CONFIG in
1301313784 [\\/]* | ?:[\\/]*)
1301413785 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
1301813789 for as_dir in $PATH
1301913790 do
1302013791 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
13792 case $as_dir in #(((
13793 '') as_dir=./ ;;
13794 */) ;;
13795 *) as_dir=$as_dir/ ;;
13796 esac
1302213797 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13024 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13799 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1302613801 break 2
1302713802 fi
1302813803 done
1303413809 fi
1303513810 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
1303613811 if test -n "$ac_pt_PKG_CONFIG"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13038 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13039 else
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13813 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13814 else
13815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 printf "%s\n" "no" >&6; }
1304213817 fi
1304313818
1304413819 if test "x$ac_pt_PKG_CONFIG" = x; then
1304613821 else
1304713822 case $cross_compiling:$ac_tool_warned in
1304813823 yes:)
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13825 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1305113826 ac_tool_warned=yes ;;
1305213827 esac
1305313828 PKG_CONFIG=$ac_pt_PKG_CONFIG
1305913834 fi
1306013835 if test -n "$PKG_CONFIG"; then
1306113836 _pkg_min_version=0.9.0
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13063 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13838 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
1306413839 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066 $as_echo "yes" >&6; }
13840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13841 printf "%s\n" "yes" >&6; }
1306713842 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844 printf "%s\n" "no" >&6; }
1307013845 PKG_CONFIG=""
1307113846 fi
1307213847 fi
1307313848
1307413849 pkg_failed=no
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2 >= 9.10.3" >&5
13076 $as_echo_n "checking for freetype2 >= 9.10.3... " >&6; }
13850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for freetype2 >= 9.10.3" >&5
13851 printf %s "checking for freetype2 >= 9.10.3... " >&6; }
1307713852
1307813853 if test -n "$FREETYPE_CFLAGS"; then
1307913854 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
1308013855 elif test -n "$PKG_CONFIG"; then
1308113856 if test -n "$PKG_CONFIG" && \
13082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.10.3\""; } >&5
13857 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.10.3\""; } >&5
1308313858 ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.10.3") 2>&5
1308413859 ac_status=$?
13085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1308613861 test $ac_status = 0; }; then
1308713862 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 9.10.3" 2>/dev/null`
1308813863 test "x$?" != "x0" && pkg_failed=yes
1309613871 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
1309713872 elif test -n "$PKG_CONFIG"; then
1309813873 if test -n "$PKG_CONFIG" && \
13099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.10.3\""; } >&5
13874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.10.3\""; } >&5
1310013875 ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.10.3") 2>&5
1310113876 ac_status=$?
13102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1310313878 test $ac_status = 0; }; then
1310413879 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 9.10.3" 2>/dev/null`
1310513880 test "x$?" != "x0" && pkg_failed=yes
1311313888
1311413889
1311513890 if test $pkg_failed = yes; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892 printf "%s\n" "no" >&6; }
1311813893
1311913894 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1312013895 _pkg_short_errors_supported=yes
1314013915 and FREETYPE_LIBS to avoid the need to call pkg-config.
1314113916 See the pkg-config man page for more details." "$LINENO" 5
1314213917 elif test $pkg_failed = untried; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 $as_echo "no" >&6; }
13145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 printf "%s\n" "no" >&6; }
13920 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13921 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1314713922 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1314813923 is in your PATH or set the PKG_CONFIG environment variable to the full
1314913924 path to pkg-config.
1315713932 else
1315813933 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
1315913934 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13161 $as_echo "yes" >&6; }
13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13936 printf "%s\n" "yes" >&6; }
1316213937
1316313938 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
1316413939 LIBS="$LIBS $FREETYPE_LIBS"
1316513940
13166 $as_echo "#define CONFIG_FREETYPE 1" >>confdefs.h
13941 printf "%s\n" "#define CONFIG_FREETYPE 1" >>confdefs.h
1316713942
1316813943
1316913944 fi
1317013945
1317113946
1317213947 pkg_failed=no
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fribidi >= 0.19.0" >&5
13174 $as_echo_n "checking for fribidi >= 0.19.0... " >&6; }
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fribidi >= 0.19.0" >&5
13949 printf %s "checking for fribidi >= 0.19.0... " >&6; }
1317513950
1317613951 if test -n "$FRIBIDI_CFLAGS"; then
1317713952 pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS"
1317813953 elif test -n "$PKG_CONFIG"; then
1317913954 if test -n "$PKG_CONFIG" && \
13180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.0\""; } >&5
13955 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.0\""; } >&5
1318113956 ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.0") 2>&5
1318213957 ac_status=$?
13183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1318413959 test $ac_status = 0; }; then
1318513960 pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi >= 0.19.0" 2>/dev/null`
1318613961 test "x$?" != "x0" && pkg_failed=yes
1319413969 pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS"
1319513970 elif test -n "$PKG_CONFIG"; then
1319613971 if test -n "$PKG_CONFIG" && \
13197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.0\""; } >&5
13972 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.0\""; } >&5
1319813973 ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.0") 2>&5
1319913974 ac_status=$?
13200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1320113976 test $ac_status = 0; }; then
1320213977 pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi >= 0.19.0" 2>/dev/null`
1320313978 test "x$?" != "x0" && pkg_failed=yes
1321113986
1321213987
1321313988 if test $pkg_failed = yes; then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 printf "%s\n" "no" >&6; }
1321613991
1321713992 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1321813993 _pkg_short_errors_supported=yes
1323814013 and FRIBIDI_LIBS to avoid the need to call pkg-config.
1323914014 See the pkg-config man page for more details." "$LINENO" 5
1324014015 elif test $pkg_failed = untried; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017 printf "%s\n" "no" >&6; }
14018 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14019 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1324514020 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1324614021 is in your PATH or set the PKG_CONFIG environment variable to the full
1324714022 path to pkg-config.
1325514030 else
1325614031 FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS
1325714032 FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259 $as_echo "yes" >&6; }
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14034 printf "%s\n" "yes" >&6; }
1326014035
1326114036 CFLAGS="$CFLAGS $FRIBIDI_CFLAGS"
1326214037 LIBS="$LIBS $FRIBIDI_LIBS"
1326314038
13264 $as_echo "#define CONFIG_FRIBIDI 1" >>confdefs.h
14039 printf "%s\n" "#define CONFIG_FRIBIDI 1" >>confdefs.h
1326514040
1326614041
1326714042 fi
1326814043
1326914044
1327014045 pkg_failed=no
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for harfbuzz >= 1.2.3" >&5
13272 $as_echo_n "checking for harfbuzz >= 1.2.3... " >&6; }
14046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for harfbuzz >= 1.2.3" >&5
14047 printf %s "checking for harfbuzz >= 1.2.3... " >&6; }
1327314048
1327414049 if test -n "$HARFBUZZ_CFLAGS"; then
1327514050 pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS"
1327614051 elif test -n "$PKG_CONFIG"; then
1327714052 if test -n "$PKG_CONFIG" && \
13278 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"harfbuzz >= 1.2.3\""; } >&5
14053 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"harfbuzz >= 1.2.3\""; } >&5
1327914054 ($PKG_CONFIG --exists --print-errors "harfbuzz >= 1.2.3") 2>&5
1328014055 ac_status=$?
13281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1328214057 test $ac_status = 0; }; then
1328314058 pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "harfbuzz >= 1.2.3" 2>/dev/null`
1328414059 test "x$?" != "x0" && pkg_failed=yes
1329214067 pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS"
1329314068 elif test -n "$PKG_CONFIG"; then
1329414069 if test -n "$PKG_CONFIG" && \
13295 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"harfbuzz >= 1.2.3\""; } >&5
14070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"harfbuzz >= 1.2.3\""; } >&5
1329614071 ($PKG_CONFIG --exists --print-errors "harfbuzz >= 1.2.3") 2>&5
1329714072 ac_status=$?
13298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1329914074 test $ac_status = 0; }; then
1330014075 pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "harfbuzz >= 1.2.3" 2>/dev/null`
1330114076 test "x$?" != "x0" && pkg_failed=yes
1330914084
1331014085
1331114086 if test $pkg_failed = yes; then
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13313 $as_echo "no" >&6; }
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 printf "%s\n" "no" >&6; }
1331414089
1331514090 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1331614091 _pkg_short_errors_supported=yes
1333614111 and HARFBUZZ_LIBS to avoid the need to call pkg-config.
1333714112 See the pkg-config man page for more details." "$LINENO" 5
1333814113 elif test $pkg_failed = untried; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340 $as_echo "no" >&6; }
13341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115 printf "%s\n" "no" >&6; }
14116 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14117 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1334314118 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1334414119 is in your PATH or set the PKG_CONFIG environment variable to the full
1334514120 path to pkg-config.
1335314128 else
1335414129 HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS
1335514130 HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13357 $as_echo "yes" >&6; }
14131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14132 printf "%s\n" "yes" >&6; }
1335814133
1335914134 CFLAGS="$CFLAGS $HARFBUZZ_CFLAGS"
1336014135 LIBS="$LIBS $HARFBUZZ_LIBS"
1336114136
13362 $as_echo "#define CONFIG_HARFBUZZ 1" >>confdefs.h
14137 printf "%s\n" "#define CONFIG_HARFBUZZ 1" >>confdefs.h
1336314138
1336414139
1336514140 fi
1336614141
1336714142 libpng=false
13368 if test "x$enable_test" = xyes || test "x$enable_compare" = xyes; then :
14143 if test "x$enable_test" = xyes || test "x$enable_compare" = xyes
14144 then :
1336914145
1337014146
1337114147 pkg_failed=no
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng >= 1.2.0" >&5
13373 $as_echo_n "checking for libpng >= 1.2.0... " >&6; }
14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpng >= 1.2.0" >&5
14149 printf %s "checking for libpng >= 1.2.0... " >&6; }
1337414150
1337514151 if test -n "$LIBPNG_CFLAGS"; then
1337614152 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
1337714153 elif test -n "$PKG_CONFIG"; then
1337814154 if test -n "$PKG_CONFIG" && \
13379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.0\""; } >&5
14155 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.0\""; } >&5
1338014156 ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.0") 2>&5
1338114157 ac_status=$?
13382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1338314159 test $ac_status = 0; }; then
1338414160 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2.0" 2>/dev/null`
1338514161 test "x$?" != "x0" && pkg_failed=yes
1339314169 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
1339414170 elif test -n "$PKG_CONFIG"; then
1339514171 if test -n "$PKG_CONFIG" && \
13396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.0\""; } >&5
14172 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.0\""; } >&5
1339714173 ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.0") 2>&5
1339814174 ac_status=$?
13399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1340014176 test $ac_status = 0; }; then
1340114177 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2.0" 2>/dev/null`
1340214178 test "x$?" != "x0" && pkg_failed=yes
1341014186
1341114187
1341214188 if test $pkg_failed = yes; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414 $as_echo "no" >&6; }
14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14190 printf "%s\n" "no" >&6; }
1341514191
1341614192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1341714193 _pkg_short_errors_supported=yes
1343714213 and LIBPNG_LIBS to avoid the need to call pkg-config.
1343814214 See the pkg-config man page for more details." "$LINENO" 5
1343914215 elif test $pkg_failed = untried; then
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 $as_echo "no" >&6; }
13442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14217 printf "%s\n" "no" >&6; }
14218 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14219 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1344414220 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1344514221 is in your PATH or set the PKG_CONFIG environment variable to the full
1344614222 path to pkg-config.
1345414230 else
1345514231 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
1345614232 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13458 $as_echo "yes" >&6; }
14233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14234 printf "%s\n" "yes" >&6; }
1345914235
1346014236 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
1346114237
13462 $as_echo "#define CONFIG_LIBPNG 1" >>confdefs.h
14238 printf "%s\n" "#define CONFIG_LIBPNG 1" >>confdefs.h
1346314239
1346414240 libpng=true
1346514241
1346914245
1347014246 ## Check for system font providers
1347114247 ### Fontconfig
13472 if test "x$enable_fontconfig" != xno; then :
14248 if test "x$enable_fontconfig" != xno
14249 then :
1347314250
1347414251
1347514252 pkg_failed=no
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.10.92" >&5
13477 $as_echo_n "checking for fontconfig >= 2.10.92... " >&6; }
14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.10.92" >&5
14254 printf %s "checking for fontconfig >= 2.10.92... " >&6; }
1347814255
1347914256 if test -n "$FONTCONFIG_CFLAGS"; then
1348014257 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
1348114258 elif test -n "$PKG_CONFIG"; then
1348214259 if test -n "$PKG_CONFIG" && \
13483 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.10.92\""; } >&5
14260 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.10.92\""; } >&5
1348414261 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.10.92") 2>&5
1348514262 ac_status=$?
13486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1348714264 test $ac_status = 0; }; then
1348814265 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.10.92" 2>/dev/null`
1348914266 test "x$?" != "x0" && pkg_failed=yes
1349714274 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
1349814275 elif test -n "$PKG_CONFIG"; then
1349914276 if test -n "$PKG_CONFIG" && \
13500 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.10.92\""; } >&5
14277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.10.92\""; } >&5
1350114278 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.10.92") 2>&5
1350214279 ac_status=$?
13503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1350414281 test $ac_status = 0; }; then
1350514282 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.10.92" 2>/dev/null`
1350614283 test "x$?" != "x0" && pkg_failed=yes
1351414291
1351514292
1351614293 if test $pkg_failed = yes; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
14294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14295 printf "%s\n" "no" >&6; }
1351914296
1352014297 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1352114298 _pkg_short_errors_supported=yes
1353414311 fontconfig=false
1353514312
1353614313 elif test $pkg_failed = untried; then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 $as_echo "no" >&6; }
14314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 printf "%s\n" "no" >&6; }
1353914316
1354014317 fontconfig=false
1354114318
1354214319 else
1354314320 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
1354414321 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13546 $as_echo "yes" >&6; }
14322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14323 printf "%s\n" "yes" >&6; }
1354714324
1354814325 CFLAGS="$CFLAGS $FONTCONFIG_CFLAGS"
1354914326 LIBS="$LIBS $FONTCONFIG_LIBS"
1355014327
13551 $as_echo "#define CONFIG_FONTCONFIG 1" >>confdefs.h
14328 printf "%s\n" "#define CONFIG_FONTCONFIG 1" >>confdefs.h
1355214329
1355314330 fontconfig=true
1355414331
1355714334 fi
1355814335
1355914336 ### Coretext
13560 if test "x$enable_coretext" != xno; then :
14337 if test "x$enable_coretext" != xno
14338 then :
1356114339
1356214340 # Linking to CoreText directly only works from Mountain Lion and iOS.
1356314341 # In earlier OS X releases CoreText was part of the ApplicationServices
1356414342 # umbrella framework.
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CORETEXT" >&5
13566 $as_echo_n "checking for CORETEXT... " >&6; }
14343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CORETEXT" >&5
14344 printf %s "checking for CORETEXT... " >&6; }
1356714345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1356814346 /* end confdefs.h. */
1356914347
1357014348 #include <ApplicationServices/ApplicationServices.h>
1357114349 int
13572 main ()
14350 main (void)
1357314351 {
1357414352 CTFontDescriptorCopyAttribute(NULL, kCTFontURLAttribute);
1357514353
1357814356 }
1357914357
1358014358 _ACEOF
13581 if ac_fn_c_try_compile "$LINENO"; then :
14359 if ac_fn_c_try_compile "$LINENO"
14360 then :
1358214361
1358314362 LIBS="$LIBS -framework ApplicationServices -framework CoreFoundation"
1358414363
13585 $as_echo "#define CONFIG_CORETEXT 1" >>confdefs.h
14364 printf "%s\n" "#define CONFIG_CORETEXT 1" >>confdefs.h
1358614365
1358714366 coretext=true
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13589 $as_echo "yes" >&6; }
13590
13591 else
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14368 printf "%s\n" "yes" >&6; }
14369
14370 else $as_nop
1359214371
1359314372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1359414373 /* end confdefs.h. */
1359514374
1359614375 #include <CoreText/CoreText.h>
1359714376 int
13598 main ()
14377 main (void)
1359914378 {
1360014379 CTFontDescriptorCopyAttribute(NULL, kCTFontURLAttribute);
1360114380
1360414383 }
1360514384
1360614385 _ACEOF
13607 if ac_fn_c_try_compile "$LINENO"; then :
14386 if ac_fn_c_try_compile "$LINENO"
14387 then :
1360814388
1360914389 LIBS="$LIBS -framework CoreText -framework CoreFoundation"
1361014390
13611 $as_echo "#define CONFIG_CORETEXT 1" >>confdefs.h
14391 printf "%s\n" "#define CONFIG_CORETEXT 1" >>confdefs.h
1361214392
1361314393 coretext=true
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13615 $as_echo "yes" >&6; }
13616
13617 else
14394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14395 printf "%s\n" "yes" >&6; }
14396
14397 else $as_nop
1361814398
1361914399 coretext=false
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13622
13623 fi
13624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13625
13626 fi
13627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401 printf "%s\n" "no" >&6; }
14402
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14405
14406 fi
14407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1362814408
1362914409 fi
1363014410
1363114411 ### DirectWrite
13632 if test "x$enable_directwrite" != xno; then :
14412 if test "x$enable_directwrite" != xno
14413 then :
1363314414
1363414415 # Linking to DirectWrite directly only works from Windows
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTWRITE" >&5
13636 $as_echo_n "checking for DIRECTWRITE... " >&6; }
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIRECTWRITE" >&5
14417 printf %s "checking for DIRECTWRITE... " >&6; }
1363714418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1363814419 /* end confdefs.h. */
1363914420
1364014421 #include <windows.h>
1364114422 int
13642 main ()
14423 main (void)
1364314424 {
1364414425 ;
1364514426 ;
1364714428 }
1364814429
1364914430 _ACEOF
13650 if ac_fn_c_try_link "$LINENO"; then :
13651
13652
13653 $as_echo "#define CONFIG_DIRECTWRITE 1" >>confdefs.h
14431 if ac_fn_c_try_compile "$LINENO"
14432 then :
1365414433
1365514434 directwrite=true
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13657 $as_echo "yes" >&6; }
13658
13659 else
14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14436 printf "%s\n" "yes" >&6; }
14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Win32 desktop APIs" >&5
14438 printf %s "checking for Win32 desktop APIs... " >&6; }
14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h. */
14441
14442
14443 #include <winapifamily.h>
14444 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
14445 #error Win32 desktop APIs are available
14446 #endif
14447
14448 int
14449 main (void)
14450 {
14451 ;
14452 ;
14453 return 0;
14454 }
14455
14456 _ACEOF
14457 if ac_fn_c_try_compile "$LINENO"
14458 then :
14459
14460 # WinRT/UWP/app build: GDI and LoadLibrary are
14461 # unavailable, but DirectWrite is always present
14462 LIBS="$LIBS -ldwrite"
14463
14464 printf "%s\n" "#define CONFIG_DIRECTWRITE 1" >>confdefs.h
14465
14466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14467 printf "%s\n" "no" >&6; }
14468
14469 else $as_nop
14470
14471 # Win32/desktop build: GDI is always present;
14472 # DirectWrite is optional but can be loaded via LoadLibrary
14473 LIBS="$LIBS -lgdi32"
14474
14475 printf "%s\n" "#define CONFIG_DIRECTWRITE 1" >>confdefs.h
14476
14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14478 printf "%s\n" "yes" >&6; }
14479
14480 fi
14481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14482
14483 else $as_nop
1366014484
1366114485 directwrite=false
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663 $as_echo "no" >&6; }
13664
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext \
13667 conftest$ac_exeext conftest.$ac_ext
14486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487 printf "%s\n" "no" >&6; }
14488
14489 fi
14490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1366814491
1366914492 fi
1367014493
1367114494 ## Require at least one system font provider by default
13672 if test "x$enable_require_system_font_provider" != xno && test "x$fontconfig" != xtrue && test "x$directwrite" != xtrue && test "x$coretext" != xtrue ; then :
14495 if test "x$enable_require_system_font_provider" != xno && test "x$fontconfig" != xtrue && test "x$directwrite" != xtrue && test "x$coretext" != xtrue
14496 then :
1367314497
1367414498 as_fn_error $? "No system font provider!
1367514499 Either DirectWrite (on Windows), CoreText (on OSX), or
1368314507 pkg_requires="freetype2 >= 9.10.3"
1368414508 pkg_requires="fribidi >= 0.19.0, ${pkg_requires}"
1368514509 pkg_requires="harfbuzz >= 1.2.3, ${pkg_requires}"
13686 if test "x$fontconfig" = xtrue; then :
14510 if test "x$fontconfig" = xtrue
14511 then :
1368714512
1368814513 pkg_requires="fontconfig >= 2.10.92, ${pkg_requires}"
1368914514
1369114516
1369214517
1369314518 # Locate and configure Assembler appropriately
13694 if test "x$enable_asm" != xno; then :
14519 if test "x$enable_asm" != xno
14520 then :
1369514521
1369614522 case $host in #(
1369714523 i?86-*) :
1372714553
1372814554 ;;
1372914555 esac
13730 if test "x$INTEL" = xtrue; then :
14556 if test "x$INTEL" = xtrue
14557 then :
1373114558
1373214559 # Extract the first word of "$AS", so it can be a program name with args.
1373314560 set dummy $AS; ac_word=$2
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735 $as_echo_n "checking for $ac_word... " >&6; }
13736 if ${ac_cv_prog_nasm_check+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738 else
14561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14562 printf %s "checking for $ac_word... " >&6; }
14563 if test ${ac_cv_prog_nasm_check+y}
14564 then :
14565 printf %s "(cached) " >&6
14566 else $as_nop
1373914567 if test -n "$nasm_check"; then
1374014568 ac_cv_prog_nasm_check="$nasm_check" # Let the user override the test.
1374114569 else
1374314571 for as_dir in $PATH
1374414572 do
1374514573 IFS=$as_save_IFS
13746 test -z "$as_dir" && as_dir=.
14574 case $as_dir in #(((
14575 '') as_dir=./ ;;
14576 */) ;;
14577 *) as_dir=$as_dir/ ;;
14578 esac
1374714579 for ac_exec_ext in '' $ac_executable_extensions; do
13748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1374914581 ac_cv_prog_nasm_check="yes"
13750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1375114583 break 2
1375214584 fi
1375314585 done
1375814590 fi
1375914591 nasm_check=$ac_cv_prog_nasm_check
1376014592 if test -n "$nasm_check"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nasm_check" >&5
13762 $as_echo "$nasm_check" >&6; }
13763 else
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13766 fi
13767
13768
13769 if test "x$nasm_check" != xyes; then :
13770
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nasm was not found; ASM functions are disabled." >&5
13772 $as_echo "$as_me: WARNING: nasm was not found; ASM functions are disabled." >&2;}
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Install nasm for a significantly faster libass build." >&5
13774 $as_echo "$as_me: WARNING: Install nasm for a significantly faster libass build." >&2;}
14593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nasm_check" >&5
14594 printf "%s\n" "$nasm_check" >&6; }
14595 else
14596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14597 printf "%s\n" "no" >&6; }
14598 fi
14599
14600
14601 if test "x$nasm_check" != xyes
14602 then :
14603
14604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nasm was not found; ASM functions are disabled." >&5
14605 printf "%s\n" "$as_me: WARNING: nasm was not found; ASM functions are disabled." >&2;}
14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Install nasm for a significantly faster libass build." >&5
14607 printf "%s\n" "$as_me: WARNING: Install nasm for a significantly faster libass build." >&2;}
1377514608 enable_asm=no
1377614609
13777 else
14610 else $as_nop
1377814611
1377914612 case $host in #(
1378014613 *darwin*) :
1379214625 *cygwin*|*mingw*) :
1379314626
1379414627 ASFLAGS="$ASFLAGS -f win$BITTYPE"
13795 if test "x$BITS" = x32; then :
14628 if test "x$BITS" = x32
14629 then :
1379614630
1379714631 ASFLAGS="$ASFLAGS -DPREFIX"
1379814632
1380814642 ;;
1380914643 esac
1381014644 ASFLAGS="$ASFLAGS -Dprivate_prefix=ass"
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AS supports vpmovzxwd" >&5
13812 $as_echo_n "checking if $AS supports vpmovzxwd... " >&6; }
14645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $AS supports vpmovzxwd" >&5
14646 printf %s "checking if $AS supports vpmovzxwd... " >&6; }
1381314647 echo "vpmovzxwd ymm0, xmm0" > conftest.asm
13814 if $AS conftest.asm $ASFLAGS -o conftest.o >conftest.log 2>&1; then :
13815
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13817 $as_echo "yes" >&6; }
13818
13819 else
13820
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13822 $as_echo "no" >&6; }
14648 if $AS conftest.asm $ASFLAGS -o conftest.o >conftest.log 2>&1
14649 then :
14650
14651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14652 printf "%s\n" "yes" >&6; }
14653
14654 else $as_nop
14655
14656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657 printf "%s\n" "no" >&6; }
1382314658 VER=`($AS --version || echo no assembler) 2>/dev/null | head -n 1`
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nasm is too old (found $VER); ASM functions are disabled." >&5
13825 $as_echo "$as_me: WARNING: nasm is too old (found $VER); ASM functions are disabled." >&2;}
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Install nasm-2.10 or later for a significantly faster libass build." >&5
13827 $as_echo "$as_me: WARNING: Install nasm-2.10 or later for a significantly faster libass build." >&2;}
14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nasm is too old (found $VER); ASM functions are disabled." >&5
14660 printf "%s\n" "$as_me: WARNING: nasm is too old (found $VER); ASM functions are disabled." >&2;}
14661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Install nasm-2.10 or later for a significantly faster libass build." >&5
14662 printf "%s\n" "$as_me: WARNING: Install nasm-2.10 or later for a significantly faster libass build." >&2;}
1382814663 enable_asm=no
1382914664
1383014665 fi
1394814783 if test -z "$ASM_TRUE"; then :
1394914784
1395014785
13951 $as_echo "#define CONFIG_ASM 1" >>confdefs.h
13952
13953
13954 else
13955
13956
13957 $as_echo "#define CONFIG_ASM 0" >>confdefs.h
14786 printf "%s\n" "#define CONFIG_ASM 1" >>confdefs.h
14787
14788
14789 else
14790
14791
14792 printf "%s\n" "#define CONFIG_ASM 0" >>confdefs.h
1395814793
1395914794
1396014795 fi
1396214797 if test -z "$ENABLE_LARGE_TILES_TRUE"; then :
1396314798
1396414799
13965 $as_echo "#define CONFIG_LARGE_TILES 1" >>confdefs.h
13966
13967
13968 else
13969
13970
13971 $as_echo "#define CONFIG_LARGE_TILES 0" >>confdefs.h
14800 printf "%s\n" "#define CONFIG_LARGE_TILES 1" >>confdefs.h
14801
14802
14803 else
14804
14805
14806 printf "%s\n" "#define CONFIG_LARGE_TILES 0" >>confdefs.h
1397214807
1397314808
1397414809 fi
1397514810
1397614811 ## Make a guess about the source code version
13977 if test -d "${srcdir}/.git"; then :
14812 if test -d "${srcdir}/.git"
14813 then :
1397814814
1397914815 # Extract the first word of "git", so it can be a program name with args.
1398014816 set dummy git; ac_word=$2
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13982 $as_echo_n "checking for $ac_word... " >&6; }
13983 if ${ac_cv_path_git_bin+:} false; then :
13984 $as_echo_n "(cached) " >&6
13985 else
14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14818 printf %s "checking for $ac_word... " >&6; }
14819 if test ${ac_cv_path_git_bin+y}
14820 then :
14821 printf %s "(cached) " >&6
14822 else $as_nop
1398614823 case $git_bin in
1398714824 [\\/]* | ?:[\\/]*)
1398814825 ac_cv_path_git_bin="$git_bin" # Let the user override the test with a path.
1399214829 for as_dir in $PATH
1399314830 do
1399414831 IFS=$as_save_IFS
13995 test -z "$as_dir" && as_dir=.
14832 case $as_dir in #(((
14833 '') as_dir=./ ;;
14834 */) ;;
14835 *) as_dir=$as_dir/ ;;
14836 esac
1399614837 for ac_exec_ext in '' $ac_executable_extensions; do
13997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13998 ac_cv_path_git_bin="$as_dir/$ac_word$ac_exec_ext"
13999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14839 ac_cv_path_git_bin="$as_dir$ac_word$ac_exec_ext"
14840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1400014841 break 2
1400114842 fi
1400214843 done
1400814849 fi
1400914850 git_bin=$ac_cv_path_git_bin
1401014851 if test -n "$git_bin"; then
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_bin" >&5
14012 $as_echo "$git_bin" >&6; }
14013 else
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14015 $as_echo "no" >&6; }
14016 fi
14017
14018
14019 if test -n "$git_bin"; then :
14852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $git_bin" >&5
14853 printf "%s\n" "$git_bin" >&6; }
14854 else
14855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14856 printf "%s\n" "no" >&6; }
14857 fi
14858
14859
14860 if test -n "$git_bin"
14861 then :
1402014862
1402114863 srcversion_string="commit: $("$git_bin" -C "$srcdir" describe --tags --long --always --dirty --broken --abbrev=40)"
1402214864
14023 else
14024
14025 srcversion_string="custom after: 0.15.1"
14026
14027 fi
14028
14029 else
14030
14031 srcversion_string="tarball: 0.15.1"
14032
14033 fi
14034
14035 cat >>confdefs.h <<_ACEOF
14036 #define CONFIG_SOURCEVERSION "$srcversion_string"
14037 _ACEOF
14865 else $as_nop
14866
14867 srcversion_string="custom after: 0.15.2"
14868
14869 fi
14870
14871 else $as_nop
14872
14873 srcversion_string="tarball: 0.15.2"
14874
14875 fi
14876
14877 printf "%s\n" "#define CONFIG_SOURCEVERSION \"$srcversion_string\"" >>confdefs.h
1403814878
1403914879
1404014880 ## Setup output beautifier.
1404114881 # Check whether --enable-silent-rules was given.
14042 if test "${enable_silent_rules+set}" = set; then :
14882 if test ${enable_silent_rules+y}
14883 then :
1404314884 enableval=$enable_silent_rules;
1404414885 fi
1404514886
1404914890 *) AM_DEFAULT_VERBOSITY=0;;
1405014891 esac
1405114892 am_make=${MAKE-make}
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14053 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14054 if ${am_cv_make_support_nested_variables+:} false; then :
14055 $as_echo_n "(cached) " >&6
14056 else
14057 if $as_echo 'TRUE=$(BAR$(V))
14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14894 printf %s "checking whether $am_make supports nested variables... " >&6; }
14895 if test ${am_cv_make_support_nested_variables+y}
14896 then :
14897 printf %s "(cached) " >&6
14898 else $as_nop
14899 if printf "%s\n" 'TRUE=$(BAR$(V))
1405814900 BAR0=false
1405914901 BAR1=true
1406014902 V=1
1406614908 am_cv_make_support_nested_variables=no
1406714909 fi
1406814910 fi
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14070 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14912 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
1407114913 if test $am_cv_make_support_nested_variables = yes; then
1407214914 AM_V='$(V)'
1407314915 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1410714949 case $ac_val in #(
1410814950 *${as_nl}*)
1410914951 case $ac_var in #(
14110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14952 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14953 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1411214954 esac
1411314955 case $ac_var in #(
1411414956 _ | IFS | as_nl) ;; #(
1413814980 /^ac_cv_env_/b end
1413914981 t clear
1414014982 :clear
14141 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14983 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1414214984 t end
1414314985 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1414414986 :end' >>confcache
1414514987 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1414614988 if test -w "$cache_file"; then
1414714989 if test "x$cache_file" != "x/dev/null"; then
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14149 $as_echo "$as_me: updating cache $cache_file" >&6;}
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14991 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1415014992 if test ! -f "$cache_file" || test -h "$cache_file"; then
1415114993 cat confcache >"$cache_file"
1415214994 else
1416015002 fi
1416115003 fi
1416215004 else
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14164 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15006 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1416515007 fi
1416615008 fi
1416715009 rm -f confcache
1417815020 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1417915021 # 1. Remove the extension, and $U if already installed.
1418015022 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14181 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15023 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1418215024 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
1418315025 # will be set to the directory where LIBOBJS objects are built.
1418415026 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1418915031 LTLIBOBJS=$ac_ltlibobjs
1419015032
1419115033
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14193 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15035 printf %s "checking that generated files are newer than configure... " >&6; }
1419415036 if test -n "$am_sleep_pid"; then
1419515037 # Hide warnings about reused PIDs.
1419615038 wait $am_sleep_pid 2>/dev/null
1419715039 fi
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14199 $as_echo "done" >&6; }
15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15041 printf "%s\n" "done" >&6; }
1420015042 if test -n "$EXEEXT"; then
1420115043 am__EXEEXT_TRUE=
1420215044 am__EXEEXT_FALSE='#'
1426615108 ac_write_fail=0
1426715109 ac_clean_files_save=$ac_clean_files
1426815110 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14270 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15112 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1427115113 as_write_fail=0
1427215114 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1427315115 #! $SHELL
1429015132
1429115133 # Be more Bourne compatible
1429215134 DUALCASE=1; export DUALCASE # for MKS sh
14293 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15135 as_nop=:
15136 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15137 then :
1429415138 emulate sh
1429515139 NULLCMD=:
1429615140 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1429715141 # is contrary to our usage. Disable this feature.
1429815142 alias -g '${1+"$@"}'='"$@"'
1429915143 setopt NO_GLOB_SUBST
14300 else
15144 else $as_nop
1430115145 case `(set -o) 2>/dev/null` in #(
1430215146 *posix*) :
1430315147 set -o posix ;; #(
1430715151 fi
1430815152
1430915153
15154
15155 # Reset variables that may have inherited troublesome values from
15156 # the environment.
15157
15158 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15159 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15160 # side effect of setting IFS to empty, thus disabling word splitting.)
15161 # Quoting is to prevent editors from complaining about space-tab.
1431015162 as_nl='
1431115163 '
1431215164 export as_nl
14313 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14314 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14315 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14317 # Prefer a ksh shell builtin over an external printf program on Solaris,
14318 # but without wasting forks for bash or zsh.
14319 if test -z "$BASH_VERSION$ZSH_VERSION" \
14320 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14321 as_echo='print -r --'
14322 as_echo_n='print -rn --'
14323 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14324 as_echo='printf %s\n'
14325 as_echo_n='printf %s'
14326 else
14327 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14328 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14329 as_echo_n='/usr/ucb/echo -n'
14330 else
14331 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14332 as_echo_n_body='eval
14333 arg=$1;
14334 case $arg in #(
14335 *"$as_nl"*)
14336 expr "X$arg" : "X\\(.*\\)$as_nl";
14337 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14338 esac;
14339 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14340 '
14341 export as_echo_n_body
14342 as_echo_n='sh -c $as_echo_n_body as_echo'
14343 fi
14344 export as_echo_body
14345 as_echo='sh -c $as_echo_body as_echo'
14346 fi
15165 IFS=" "" $as_nl"
15166
15167 PS1='$ '
15168 PS2='> '
15169 PS4='+ '
15170
15171 # Ensure predictable behavior from utilities with locale-dependent output.
15172 LC_ALL=C
15173 export LC_ALL
15174 LANGUAGE=C
15175 export LANGUAGE
15176
15177 # We cannot yet rely on "unset" to work, but we need these variables
15178 # to be unset--not just set to an empty or harmless value--now, to
15179 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15180 # also avoids known problems related to "unset" and subshell syntax
15181 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15182 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15183 do eval test \${$as_var+y} \
15184 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15185 done
15186
15187 # Ensure that fds 0, 1, and 2 are open.
15188 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15189 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15190 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1434715191
1434815192 # The user is always right.
14349 if test "${PATH_SEPARATOR+set}" != set; then
15193 if ${PATH_SEPARATOR+false} :; then
1435015194 PATH_SEPARATOR=:
1435115195 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1435215196 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1435415198 }
1435515199 fi
1435615200
14357
14358 # IFS
14359 # We need space, tab and new line, in precisely that order. Quoting is
14360 # there to prevent editors from complaining about space-tab.
14361 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14362 # splitting by setting IFS to empty value.)
14363 IFS=" "" $as_nl"
1436415201
1436515202 # Find who we are. Look in the path if we contain no directory separator.
1436615203 as_myself=
1437015207 for as_dir in $PATH
1437115208 do
1437215209 IFS=$as_save_IFS
14373 test -z "$as_dir" && as_dir=.
14374 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15210 case $as_dir in #(((
15211 '') as_dir=./ ;;
15212 */) ;;
15213 *) as_dir=$as_dir/ ;;
15214 esac
15215 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1437515216 done
1437615217 IFS=$as_save_IFS
1437715218
1438315224 as_myself=$0
1438415225 fi
1438515226 if test ! -f "$as_myself"; then
14386 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15227 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1438715228 exit 1
1438815229 fi
1438915230
14390 # Unset variables that we do not need and which cause bugs (e.g. in
14391 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14392 # suppresses any "Segmentation fault" message there. '((' could
14393 # trigger a bug in pdksh 5.2.14.
14394 for as_var in BASH_ENV ENV MAIL MAILPATH
14395 do eval test x\${$as_var+set} = xset \
14396 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14397 done
14398 PS1='$ '
14399 PS2='> '
14400 PS4='+ '
14401
14402 # NLS nuisances.
14403 LC_ALL=C
14404 export LC_ALL
14405 LANGUAGE=C
14406 export LANGUAGE
14407
14408 # CDPATH.
14409 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1441015231
1441115232
1441215233 # as_fn_error STATUS ERROR [LINENO LOG_FD]
1441915240 as_status=$1; test $as_status -eq 0 && as_status=1
1442015241 if test "$4"; then
1442115242 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1442315244 fi
14424 $as_echo "$as_me: error: $2" >&2
15245 printf "%s\n" "$as_me: error: $2" >&2
1442515246 as_fn_exit $as_status
1442615247 } # as_fn_error
15248
1442715249
1442815250
1442915251 # as_fn_set_status STATUS
1445215274 { eval $1=; unset $1;}
1445315275 }
1445415276 as_unset=as_fn_unset
15277
1445515278 # as_fn_append VAR VALUE
1445615279 # ----------------------
1445715280 # Append the text in VALUE to the end of the definition contained in VAR. Take
1445815281 # advantage of any shell optimizations that allow amortized linear growth over
1445915282 # repeated appends, instead of the typical quadratic growth present in naive
1446015283 # implementations.
14461 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15284 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15285 then :
1446215286 eval 'as_fn_append ()
1446315287 {
1446415288 eval $1+=\$2
1446515289 }'
14466 else
15290 else $as_nop
1446715291 as_fn_append ()
1446815292 {
1446915293 eval $1=\$$1\$2
1447515299 # Perform arithmetic evaluation on the ARGs, and store the result in the
1447615300 # global $as_val. Take advantage of shells that can avoid forks. The arguments
1447715301 # must be portable across $(()) and expr.
14478 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15302 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15303 then :
1447915304 eval 'as_fn_arith ()
1448015305 {
1448115306 as_val=$(( $* ))
1448215307 }'
14483 else
15308 else $as_nop
1448415309 as_fn_arith ()
1448515310 {
1448615311 as_val=`expr "$@" || test $? -eq 1`
1451115336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1451215337 X"$0" : 'X\(//\)$' \| \
1451315338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14514 $as_echo X/"$0" |
15339 printf "%s\n" X/"$0" |
1451515340 sed '/^.*\/\([^/][^/]*\)\/*$/{
1451615341 s//\1/
1451715342 q
1453315358 as_cr_digits='0123456789'
1453415359 as_cr_alnum=$as_cr_Letters$as_cr_digits
1453515360
15361
15362 # Determine whether it's possible to make 'echo' print without a newline.
15363 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15364 # for compatibility with existing Makefiles.
1453615365 ECHO_C= ECHO_N= ECHO_T=
1453715366 case `echo -n x` in #(((((
1453815367 -n*)
1454515374 *)
1454615375 ECHO_N='-n';;
1454715376 esac
15377
15378 # For backward compatibility with old third-party macros, we provide
15379 # the shell variables $as_echo and $as_echo_n. New code should use
15380 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15381 as_echo='printf %s\n'
15382 as_echo_n='printf %s'
1454815383
1454915384 rm -f conf$$ conf$$.exe conf$$.file
1455015385 if test -d conf$$.dir; then
1458715422 as_dirs=
1458815423 while :; do
1458915424 case $as_dir in #(
14590 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15425 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1459115426 *) as_qdir=$as_dir;;
1459215427 esac
1459315428 as_dirs="'$as_qdir' $as_dirs"
1459615431 X"$as_dir" : 'X\(//\)[^/]' \| \
1459715432 X"$as_dir" : 'X\(//\)$' \| \
1459815433 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14599 $as_echo X"$as_dir" |
15434 printf "%s\n" X"$as_dir" |
1460015435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1460115436 s//\1/
1460215437 q
1465815493 # report actual input values of CONFIG_FILES etc. instead of their
1465915494 # values after options handling.
1466015495 ac_log="
14661 This file was extended by libass $as_me 0.15.1, which was
14662 generated by GNU Autoconf 2.69. Invocation command line was
15496 This file was extended by libass $as_me 0.15.2, which was
15497 generated by GNU Autoconf 2.71. Invocation command line was
1466315498
1466415499 CONFIG_FILES = $CONFIG_FILES
1466515500 CONFIG_HEADERS = $CONFIG_HEADERS
1472115556 Report bugs to the package provider."
1472215557
1472315558 _ACEOF
15559 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15560 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1472415561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14725 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15562 ac_cs_config='$ac_cs_config_escaped'
1472615563 ac_cs_version="\\
14727 libass config.status 0.15.1
14728 configured by $0, generated by GNU Autoconf 2.69,
15564 libass config.status 0.15.2
15565 configured by $0, generated by GNU Autoconf 2.71,
1472915566 with options \\"\$ac_cs_config\\"
1473015567
14731 Copyright (C) 2012 Free Software Foundation, Inc.
15568 Copyright (C) 2021 Free Software Foundation, Inc.
1473215569 This config.status script is free software; the Free Software Foundation
1473315570 gives unlimited permission to copy, distribute and modify it."
1473415571
1476815605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1476915606 ac_cs_recheck=: ;;
1477015607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14771 $as_echo "$ac_cs_version"; exit ;;
15608 printf "%s\n" "$ac_cs_version"; exit ;;
1477215609 --config | --confi | --conf | --con | --co | --c )
14773 $as_echo "$ac_cs_config"; exit ;;
15610 printf "%s\n" "$ac_cs_config"; exit ;;
1477415611 --debug | --debu | --deb | --de | --d | -d )
1477515612 debug=: ;;
1477615613 --file | --fil | --fi | --f )
1477715614 $ac_shift
1477815615 case $ac_optarg in
14779 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15616 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1478015617 '') as_fn_error $? "missing file argument" ;;
1478115618 esac
1478215619 as_fn_append CONFIG_FILES " '$ac_optarg'"
1478415621 --header | --heade | --head | --hea )
1478515622 $ac_shift
1478615623 case $ac_optarg in
14787 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15624 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1478815625 esac
1478915626 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1479015627 ac_need_defaults=false;;
1479315630 as_fn_error $? "ambiguous option: \`$1'
1479415631 Try \`$0 --help' for more information.";;
1479515632 --help | --hel | -h )
14796 $as_echo "$ac_cs_usage"; exit ;;
15633 printf "%s\n" "$ac_cs_usage"; exit ;;
1479715634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1479815635 | -silent | --silent | --silen | --sile | --sil | --si | --s)
1479915636 ac_cs_silent=: ;;
1482115658 if \$ac_cs_recheck; then
1482215659 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1482315660 shift
14824 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15661 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1482515662 CONFIG_SHELL='$SHELL'
1482615663 export CONFIG_SHELL
1482715664 exec "\$@"
1483515672 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1483615673 ## Running $as_me. ##
1483715674 _ASBOX
14838 $as_echo "$ac_log"
15675 printf "%s\n" "$ac_log"
1483915676 } >&5
1484015677
1484115678 _ACEOF
1515615993 # We use the long form for the default assignment because of an extremely
1515715994 # bizarre bug on SunOS 4.1.3.
1515815995 if $ac_need_defaults; then
15159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15161 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15996 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15997 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15998 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1516215999 fi
1516316000
1516416001 # Have a temporary directory for convenience. Make it in the build tree
1549416331 esac ||
1549516332 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1549616333 esac
15497 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16334 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1549816335 as_fn_append ac_file_inputs " '$ac_f'"
1549916336 done
1550016337
1550216339 # use $as_me), people would be surprised to read:
1550316340 # /* config.h. Generated by config.status. */
1550416341 configure_input='Generated from '`
15505 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16342 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1550616343 `' by configure.'
1550716344 if test x"$ac_file" != x-; then
1550816345 configure_input="$ac_file. $configure_input"
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15510 $as_echo "$as_me: creating $ac_file" >&6;}
16346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16347 printf "%s\n" "$as_me: creating $ac_file" >&6;}
1551116348 fi
1551216349 # Neutralize special characters interpreted by sed in replacement strings.
1551316350 case $configure_input in #(
1551416351 *\&* | *\|* | *\\* )
15515 ac_sed_conf_input=`$as_echo "$configure_input" |
16352 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1551616353 sed 's/[\\\\&|]/\\\\&/g'`;; #(
1551716354 *) ac_sed_conf_input=$configure_input;;
1551816355 esac
1552916366 X"$ac_file" : 'X\(//\)[^/]' \| \
1553016367 X"$ac_file" : 'X\(//\)$' \| \
1553116368 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15532 $as_echo X"$ac_file" |
16369 printf "%s\n" X"$ac_file" |
1553316370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1553416371 s//\1/
1553516372 q
1555316390 case "$ac_dir" in
1555416391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555516392 *)
15556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16393 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1555716394 # A ".." for each directory in $ac_dir_suffix.
15558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16395 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555916396 case $ac_top_builddir_sub in
1556016397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556116398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561716454 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1561816455 *datarootdir*) ac_datarootdir_seen=yes;;
1561916456 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15621 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16458 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1562216459 _ACEOF
1562316460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1562416461 ac_datarootdir_hack='
1566216499 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1566316500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
1566416501 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1566616503 which seems to be undefined. Please make sure it is defined" >&5
15667 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16504 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1566816505 which seems to be undefined. Please make sure it is defined" >&2;}
1566916506
1567016507 rm -f "$ac_tmp/stdin"
1568016517 #
1568116518 if test x"$ac_file" != x-; then
1568216519 {
15683 $as_echo "/* $configure_input */" \
16520 printf "%s\n" "/* $configure_input */" >&1 \
1568416521 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1568516522 } >"$ac_tmp/config.h" \
1568616523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1568716524 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15689 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16526 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1569016527 else
1569116528 rm -f "$ac_file"
1569216529 mv "$ac_tmp/config.h" "$ac_file" \
1569316530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1569416531 fi
1569516532 else
15696 $as_echo "/* $configure_input */" \
16533 printf "%s\n" "/* $configure_input */" >&1 \
1569716534 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1569816535 || as_fn_error $? "could not create -" "$LINENO" 5
1569916536 fi
1571316550 X"$_am_arg" : 'X\(//\)[^/]' \| \
1571416551 X"$_am_arg" : 'X\(//\)$' \| \
1571516552 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15716 $as_echo X"$_am_arg" |
16553 printf "%s\n" X"$_am_arg" |
1571716554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1571816555 s//\1/
1571916556 q
1573316570 s/.*/./; q'`/stamp-h$_am_stamp_count
1573416571 ;;
1573516572
15736 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15737 $as_echo "$as_me: executing $ac_file commands" >&6;}
16573 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16574 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1573816575 ;;
1573916576 esac
1574016577
1576016597 for am_mf
1576116598 do
1576216599 # Strip MF so we end up with the name of the file.
15763 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16600 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
1576416601 # Check whether this is an Automake generated Makefile which includes
1576516602 # dependency-tracking related rules and includes.
1576616603 # Grep'ing the whole file directly is not great: AIX grep has a line
1577216609 X"$am_mf" : 'X\(//\)[^/]' \| \
1577316610 X"$am_mf" : 'X\(//\)$' \| \
1577416611 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15775 $as_echo X"$am_mf" |
16612 printf "%s\n" X"$am_mf" |
1577616613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1577716614 s//\1/
1577816615 q
1579416631 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
1579516632 X"$am_mf" : 'X\(//\)$' \| \
1579616633 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15797 $as_echo X/"$am_mf" |
16634 printf "%s\n" X/"$am_mf" |
1579816635 sed '/^.*\/\([^/][^/]*\)\/*$/{
1579916636 s//\1/
1580016637 q
1581916656 (exit $ac_status); } || am_rc=$?
1582016657 done
1582116658 if test $am_rc -ne 0; then
15822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16659 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16660 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1582416661 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15825 for automatic dependency tracking. Try re-running configure with the
16662 for automatic dependency tracking. If GNU make was not used, consider
16663 re-running the configure script with MAKE=\"gmake\" (or whatever is
16664 necessary). You can also try re-running configure with the
1582616665 '--disable-dependency-tracking' option to at least be able to build
1582716666 the package (albeit without support for automatic dependency tracking).
1582816667 See \`config.log' for more details" "$LINENO" 5; }
1636217201 esac
1636317202
1636417203
17204
1636517205 ltmain=$ac_aux_dir/ltmain.sh
1636617206
1636717207
1641117251 $ac_cs_success || as_fn_exit 1
1641217252 fi
1641317253 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16415 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16416 fi
16417
17254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17255 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17256 fi
17257
17258
0 m4_define([LIBASS_VERSION], [0.15.1])
0 m4_define([LIBASS_VERSION], [0.15.2])
11 AC_INIT(libass, LIBASS_VERSION)
22 AM_INIT_AUTOMAKE([foreign])
33 AC_CONFIG_MACRO_DIR([m4])
2727 AC_ARG_ENABLE([fontconfig], AS_HELP_STRING([--disable-fontconfig],
2828 [disable fontconfig support @<:@default=enabled@:>@]))
2929 AC_ARG_ENABLE([directwrite], AS_HELP_STRING([--disable-directwrite],
30 [disable DirectWrite support (win32 only) @<:@default=check@:>@]))
30 [disable DirectWrite support (Windows only) @<:@default=check@:>@]))
3131 AC_ARG_ENABLE([coretext], AS_HELP_STRING([--disable-coretext],
3232 [disable CoreText support (OSX only) @<:@default=check@:>@]))
3333 AC_ARG_ENABLE([require-system-font-provider], AS_HELP_STRING([--disable-require-system-font-provider],
143143 AS_IF([test "x$enable_directwrite" != xno], [
144144 # Linking to DirectWrite directly only works from Windows
145145 AC_MSG_CHECKING([for DIRECTWRITE])
146 AC_LINK_IFELSE([
146 AC_COMPILE_IFELSE([
147147 AC_LANG_PROGRAM([[#include <windows.h>]], [[;]])
148148 ], [
149 AC_DEFINE(CONFIG_DIRECTWRITE, 1, [found DirectWrite])
150149 directwrite=true
151150 AC_MSG_RESULT([yes])
151 AC_MSG_CHECKING([for Win32 desktop APIs])
152 AC_COMPILE_IFELSE([
153 AC_LANG_PROGRAM([[
154 #include <winapifamily.h>
155 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
156 #error Win32 desktop APIs are available
157 #endif
158 ]], [[;]])
159 ], [
160 # WinRT/UWP/app build: GDI and LoadLibrary are
161 # unavailable, but DirectWrite is always present
162 LIBS="$LIBS -ldwrite"
163 AC_DEFINE(CONFIG_DIRECTWRITE, 1, [found DirectWrite (WinRT/UWP)])
164 AC_MSG_RESULT([no])
165 ], [
166 # Win32/desktop build: GDI is always present;
167 # DirectWrite is optional but can be loaded via LoadLibrary
168 LIBS="$LIBS -lgdi32"
169 AC_DEFINE(CONFIG_DIRECTWRITE, 1, [found DirectWrite and GDI (Win32)])
170 AC_MSG_RESULT([yes])
171 ])
152172 ], [
153173 directwrite=false
154174 AC_MSG_RESULT([no])
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2018-03-11.20; # UTC
3 scriptversion=2020-11-14.01; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
6868 # Desired mode of installed file.
6969 mode=0755
7070
71 # Create dirs (including intermediate dirs) using mode 755.
72 # This is like GNU 'install' as of coreutils 8.32 (2020).
73 mkdir_umask=22
74
75 backupsuffix=
7176 chgrpcmd=
7277 chmodcmd=$chmodprog
7378 chowncmd=
98103 --version display version info and exit.
99104
100105 -c (ignored)
101 -C install only if different (preserve the last data modification time)
106 -C install only if different (preserve data modification time)
102107 -d create directories instead of installing files.
103108 -g GROUP $chgrpprog installed files to GROUP.
104109 -m MODE $chmodprog installed files to MODE.
105110 -o USER $chownprog installed files to USER.
111 -p pass -p to $cpprog.
106112 -s $stripprog installed files.
113 -S SUFFIX attempt to back up existing files, with suffix SUFFIX.
107114 -t DIRECTORY install into DIRECTORY.
108115 -T report an error if DSTFILE is a directory.
109116
110117 Environment variables override the default commands:
111118 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
112119 RMPROG STRIPPROG
120
121 By default, rm is invoked with -f; when overridden with RMPROG,
122 it's up to you to specify -f if you want it.
123
124 If -S is not specified, no backups are attempted.
125
126 Email bug reports to bug-automake@gnu.org.
127 Automake home page: https://www.gnu.org/software/automake/
113128 "
114129
115130 while test $# -ne 0; do
136151 -o) chowncmd="$chownprog $2"
137152 shift;;
138153
154 -p) cpprog="$cpprog -p";;
155
139156 -s) stripcmd=$stripprog;;
157
158 -S) backupsuffix="$2"
159 shift;;
140160
141161 -t)
142162 is_target_a_directory=always
254274 dstdir=$dst
255275 test -d "$dstdir"
256276 dstdir_status=$?
277 # Don't chown directories that already exist.
278 if test $dstdir_status = 0; then
279 chowncmd=""
280 fi
257281 else
258282
259283 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
300324 if test $dstdir_status != 0; then
301325 case $posix_mkdir in
302326 '')
303 # Create intermediate dirs using mode 755 as modified by the umask.
304 # This is like FreeBSD 'install' as of 1997-10-28.
305 umask=`umask`
306 case $stripcmd.$umask in
307 # Optimize common cases.
308 *[2367][2367]) mkdir_umask=$umask;;
309 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
310
311 *[0-7])
312 mkdir_umask=`expr $umask + 22 \
313 - $umask % 100 % 40 + $umask % 20 \
314 - $umask % 10 % 4 + $umask % 2
315 `;;
316 *) mkdir_umask=$umask,go-w;;
317 esac
318
319327 # With -d, create the new directory with the user-specified mode.
320328 # Otherwise, rely on $mkdir_umask.
321329 if test -n "$dir_arg"; then
325333 fi
326334
327335 posix_mkdir=false
328 case $umask in
329 *[123567][0-7][0-7])
330 # POSIX mkdir -p sets u+wx bits regardless of umask, which
331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
332 ;;
333 *)
334 # Note that $RANDOM variable is not portable (e.g. dash); Use it
335 # here however when possible just to lower collision chance.
336 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
337
338 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
339
340 # Because "mkdir -p" follows existing symlinks and we likely work
341 # directly in world-writeable /tmp, make sure that the '$tmpdir'
342 # directory is successfully created first before we actually test
343 # 'mkdir -p' feature.
344 if (umask $mkdir_umask &&
345 $mkdirprog $mkdir_mode "$tmpdir" &&
346 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
347 then
348 if test -z "$dir_arg" || {
349 # Check for POSIX incompatibilities with -m.
350 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
351 # other-writable bit of parent directory when it shouldn't.
352 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
353 test_tmpdir="$tmpdir/a"
354 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
355 case $ls_ld_tmpdir in
356 d????-?r-*) different_mode=700;;
357 d????-?--*) different_mode=755;;
358 *) false;;
359 esac &&
360 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
361 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
362 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
363 }
364 }
365 then posix_mkdir=:
366 fi
367 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
368 else
369 # Remove any dirs left behind by ancient mkdir implementations.
370 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
371 fi
372 trap '' 0;;
373 esac;;
336 # The $RANDOM variable is not portable (e.g., dash). Use it
337 # here however when possible just to lower collision chance.
338 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
339
340 trap '
341 ret=$?
342 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
343 exit $ret
344 ' 0
345
346 # Because "mkdir -p" follows existing symlinks and we likely work
347 # directly in world-writeable /tmp, make sure that the '$tmpdir'
348 # directory is successfully created first before we actually test
349 # 'mkdir -p'.
350 if (umask $mkdir_umask &&
351 $mkdirprog $mkdir_mode "$tmpdir" &&
352 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
353 then
354 if test -z "$dir_arg" || {
355 # Check for POSIX incompatibilities with -m.
356 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
357 # other-writable bit of parent directory when it shouldn't.
358 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
359 test_tmpdir="$tmpdir/a"
360 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
361 case $ls_ld_tmpdir in
362 d????-?r-*) different_mode=700;;
363 d????-?--*) different_mode=755;;
364 *) false;;
365 esac &&
366 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
367 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
368 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
369 }
370 }
371 then posix_mkdir=:
372 fi
373 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
374 else
375 # Remove any dirs left behind by ancient mkdir implementations.
376 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
377 fi
378 trap '' 0;;
374379 esac
375380
376381 if
381386 then :
382387 else
383388
384 # The umask is ridiculous, or mkdir does not conform to POSIX,
389 # mkdir does not conform to POSIX,
385390 # or it failed possibly due to a race condition. Create the
386391 # directory the slow way, step by step, checking for races as we go.
387392
410415 prefixes=
411416 else
412417 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
418 (umask $mkdir_umask &&
414419 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415420 # Don't fail if two instances are running concurrently.
416421 test -d "$prefix" || exit 1
450455 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
451456
452457 # Copy the file name to the temp name.
453 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
458 (umask $cp_umask &&
459 { test -z "$stripcmd" || {
460 # Create $dsttmp read-write so that cp doesn't create it read-only,
461 # which would cause strip to fail.
462 if test -z "$doit"; then
463 : >"$dsttmp" # No need to fork-exec 'touch'.
464 else
465 $doit touch "$dsttmp"
466 fi
467 }
468 } &&
469 $doit_exec $cpprog "$src" "$dsttmp") &&
454470
455471 # and set any options; do chmod last to preserve setuid bits.
456472 #
476492 then
477493 rm -f "$dsttmp"
478494 else
495 # If $backupsuffix is set, and the file being installed
496 # already exists, attempt a backup. Don't worry if it fails,
497 # e.g., if mv doesn't support -f.
498 if test -n "$backupsuffix" && test -f "$dst"; then
499 $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
500 fi
501
479502 # Rename the file to the real destination.
480503 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
481504
490513 # file should still install successfully.
491514 {
492515 test ! -f "$dst" ||
493 $doit $rmcmd -f "$dst" 2>/dev/null ||
516 $doit $rmcmd "$dst" 2>/dev/null ||
494517 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
495 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
518 { $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
496519 } ||
497520 { echo "$0: cannot unlink or rename $dst" >&2
498521 (exit 1); exit 1
33 -D_GNU_SOURCE
44
55 LIBASS_LT_CURRENT = 10
6 LIBASS_LT_REVISION = 2
6 LIBASS_LT_REVISION = 3
77 LIBASS_LT_AGE = 1
88
99 nasm_verbose = $(nasm_verbose_$(V))
1717 x86/cpuid.h
1818
1919 SRC_FONTCONFIG = ass_fontconfig.c ass_fontconfig.h
20 SRC_DIRECTWRITE = ass_directwrite.c ass_directwrite.h dwrite_c.h
20 SRC_DIRECTWRITE = ass_directwrite.c ass_directwrite.h ass_directwrite_info_template.h dwrite_c.h
2121 SRC_CORETEXT = ass_coretext.c ass_coretext.h
2222
2323 lib_LTLIBRARIES = libass.la
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
146146 ass_drawing.h ass_drawing.c ass_rasterizer.h ass_rasterizer.c \
147147 ass_rasterizer_c.c ass_bitmap.h ass_bitmap.c ass_blur.c \
148148 ass_func_template.h ass_fontconfig.c ass_fontconfig.h \
149 ass_directwrite.c ass_directwrite.h dwrite_c.h ass_coretext.c \
149 ass_directwrite.c ass_directwrite.h \
150 ass_directwrite_info_template.h dwrite_c.h ass_coretext.c \
150151 ass_coretext.h x86/rasterizer.asm x86/blend_bitmaps.asm \
151152 x86/be_blur.asm x86/blur.asm x86/cpuid.asm x86/cpuid.h
152153 am__objects_1 = ass_fontconfig.lo
243244 unique=`for i in $$list; do \
244245 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
245246 done | $(am__uniquify_input)`
246 ETAGS = etags
247 CTAGS = ctags
248247 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
249248 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
250249 ACLOCAL = @ACLOCAL@
260259 CC = @CC@
261260 CCDEPMODE = @CCDEPMODE@
262261 CFLAGS = @CFLAGS@
263 CPP = @CPP@
264262 CPPFLAGS = @CPPFLAGS@
263 CSCOPE = @CSCOPE@
264 CTAGS = @CTAGS@
265265 CYGPATH_W = @CYGPATH_W@
266266 DEFS = @DEFS@
267267 DEPDIR = @DEPDIR@
272272 ECHO_N = @ECHO_N@
273273 ECHO_T = @ECHO_T@
274274 EGREP = @EGREP@
275 ETAGS = @ETAGS@
275276 EXEEXT = @EXEEXT@
276277 FGREP = @FGREP@
277278 FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
373374 prefix = @prefix@
374375 program_transform_name = @program_transform_name@
375376 psdir = @psdir@
377 runstatedir = @runstatedir@
376378 sbindir = @sbindir@
377379 sharedstatedir = @sharedstatedir@
378380 srcdir = @srcdir@
387389 -D_GNU_SOURCE
388390
389391 LIBASS_LT_CURRENT = 10
390 LIBASS_LT_REVISION = 2
392 LIBASS_LT_REVISION = 3
391393 LIBASS_LT_AGE = 1
392394 nasm_verbose = $(nasm_verbose_$(V))
393395 nasm_verbose_ = $(nasm_verbose_$(AM_DEFAULT_VERBOSITY))
396398 x86/cpuid.h
397399
398400 SRC_FONTCONFIG = ass_fontconfig.c ass_fontconfig.h
399 SRC_DIRECTWRITE = ass_directwrite.c ass_directwrite.h dwrite_c.h
401 SRC_DIRECTWRITE = ass_directwrite.c ass_directwrite.h ass_directwrite_info_template.h dwrite_c.h
400402 SRC_CORETEXT = ass_coretext.c ass_coretext.h
401403 lib_LTLIBRARIES = libass.la
402404 libass_la_SOURCES = ass.h ass.c ass_types.h ass_utils.h ass_utils.c \
636638
637639 distclean-tags:
638640 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
639
640641 distdir: $(BUILT_SOURCES)
641642 $(MAKE) $(AM_MAKEFLAGS) distdir-am
642643
2323 #include <stdarg.h>
2424 #include "ass_types.h"
2525
26 #define LIBASS_VERSION 0x01501000
26 #define LIBASS_VERSION 0x01502000
2727
2828 #ifdef __cplusplus
2929 extern "C" {
125125 return ret;
126126 }
127127
128 static bool fill_family_name(CTFontDescriptorRef fontd,
129 ASS_FontProviderMetaData *info)
130 {
131 if (info->n_family)
132 return true;
133
134 char *family_name = get_name(fontd, kCTFontFamilyNameAttribute);
135 if (!family_name)
136 return false;
137
138 info->families = malloc(sizeof(char *));
139 if (!info->families) {
140 free(family_name);
141 return false;
142 }
143
144 info->families[0] = family_name;
145 info->n_family++;
146 return true;
147 }
148
149 static bool get_font_info_ct(ASS_Library *lib, FT_Library ftlib,
150 CTFontDescriptorRef fontd,
128 static bool get_font_info_ct(CTFontDescriptorRef fontd,
151129 char **path_out,
152130 ASS_FontProviderMetaData *info)
153131 {
159137 }
160138
161139 char *ps_name = get_name(fontd, kCTFontNameAttribute);
140 info->postscript_name = ps_name;
162141 if (!ps_name)
163142 return false;
164143
165 bool got_info = ass_get_font_info(lib, ftlib, path, ps_name, -1, false, info);
166 free(ps_name);
167
168 return got_info && fill_family_name(fontd, info);
169 }
170
171 static void process_descriptors(ASS_Library *lib, FT_Library ftlib,
172 ASS_FontProvider *provider, CFArrayRef fontsd)
144 char *family_name = get_name(fontd, kCTFontFamilyNameAttribute);
145 info->extended_family = family_name;
146 if (!family_name)
147 return false;
148
149 return true;
150 }
151
152 static void process_descriptors(ASS_FontProvider *provider, CFArrayRef fontsd)
173153 {
174154 if (!fontsd)
175155 return;
180160 int index = -1;
181161
182162 char *path = NULL;
183 if (get_font_info_ct(lib, ftlib, fontd, &path, &meta)) {
163 if (get_font_info_ct(fontd, &path, &meta)) {
184164 CFRetain(fontd);
185165 ass_font_provider_add_font(provider, &meta, path, index, (void*)fontd);
186166 }
187167
188 for (int j = 0; j < meta.n_family; j++)
189 free(meta.families[j]);
190
191 for (int j = 0; j < meta.n_fullname; j++)
192 free(meta.fullnames[j]);
193
194 free(meta.families);
195 free(meta.fullnames);
196
197168 free(meta.postscript_name);
169 free(meta.extended_family);
198170
199171 free(path);
200172 }
203175 static void match_fonts(void *priv, ASS_Library *lib, ASS_FontProvider *provider,
204176 char *name)
205177 {
206 FT_Library ftlib = priv;
207
208178 CFStringRef cfname =
209179 CFStringCreateWithCString(NULL, name, kCFStringEncodingUTF8);
210180 if (!cfname)
241211 if (!descriptors)
242212 goto cleanup;
243213
244 ctcoll = CTFontCollectionCreateWithFontDescriptors(descriptors, 0);
214 const int nonzero = 1;
215 CFNumberRef cfnonzero = CFNumberCreate(NULL, kCFNumberIntType, &nonzero);
216 if (!cfnonzero)
217 goto cleanup;
218 CFDictionaryRef options =
219 CFDictionaryCreate(NULL,
220 (const void **)&kCTFontCollectionRemoveDuplicatesOption,
221 (const void **)&cfnonzero,
222 1, NULL, NULL);
223 CFRelease(cfnonzero);
224 if (!options)
225 goto cleanup;
226
227 ctcoll = CTFontCollectionCreateWithFontDescriptors(descriptors, options);
228 CFRelease(options);
245229 if (!ctcoll)
246230 goto cleanup;
247231
249233 if (!fontsd)
250234 goto cleanup;
251235
252 process_descriptors(lib, ftlib, provider, fontsd);
236 process_descriptors(provider, fontsd);
253237
254238 cleanup:
255239 SAFE_CFRelease(fontsd);
265249 static char *get_fallback(void *priv, ASS_Library *lib,
266250 const char *family, uint32_t codepoint)
267251 {
268 FT_Library ftlib = priv;
269
270252 CFStringRef name = CFStringCreateWithBytes(
271253 0, (UInt8 *)family, strlen(family), kCFStringEncodingUTF8, false);
272254 if (!name)
293275 if (!fb)
294276 return NULL;
295277
296 CTFontDescriptorRef fontd = CTFontCopyFontDescriptor(fb);
278 CFStringRef cffamily = CTFontCopyFamilyName(fb);
297279 CFRelease(fb);
298 if (!fontd)
299 return NULL;
300
301 char *res_name = NULL;
302 char *path = NULL;
303 ASS_FontProviderMetaData meta = {0};
304 if (get_font_info_ct(lib, ftlib, fontd, &path, &meta))
305 res_name = meta.families[0];
306
307 CFRelease(fontd);
308
309 for (int i = 1 /* skip res_name */; i < meta.n_family; i++)
310 free(meta.families[i]);
311
312 for (int i = 0; i < meta.n_fullname; i++)
313 free(meta.fullnames[i]);
314
315 free(meta.families);
316 free(meta.fullnames);
317
318 free(meta.postscript_name);
319
320 free(path);
321
322 return res_name;
280 if (!cffamily)
281 return NULL;
282
283 char *res_family = cfstr2buf(cffamily);
284 CFRelease(cffamily);
285
286 return res_family;
323287 }
324288
325289 static void get_substitutions(void *priv, const char *name,
342306 ass_coretext_add_provider(ASS_Library *lib, ASS_FontSelector *selector,
343307 const char *config, FT_Library ftlib)
344308 {
345 return ass_font_provider_new(selector, &coretext_callbacks, ftlib);
346 }
309 return ass_font_provider_new(selector, &coretext_callbacks, NULL);
310 }
2020 #include "ass_compat.h"
2121
2222 #include <initguid.h>
23 #include <ole2.h>
24 #include <shobjidl.h>
23 #include <wchar.h>
2524
2625 #include "dwrite_c.h"
2726
2827 #include "ass_directwrite.h"
2928 #include "ass_utils.h"
3029
31 #define NAME_MAX_LENGTH 256
3230 #define FALLBACK_DEFAULT_FONT L"Arial"
3331
3432 static const ASS_FontMapping font_substitutions[] = {
3735 {"monospace", "Courier New"}
3836 };
3937
38 typedef struct ASS_SharedHDC ASS_SharedHDC;
39
40 #if ASS_WINAPI_DESKTOP
41
42 struct ASS_SharedHDC {
43 HDC hdc;
44 unsigned ref_count;
45 };
46
47 static ASS_SharedHDC *hdc_retain(ASS_SharedHDC *shared_hdc)
48 {
49 shared_hdc->ref_count++;
50 return shared_hdc;
51 }
52
53 static void hdc_release(ASS_SharedHDC *shared_hdc)
54 {
55 if (!--shared_hdc->ref_count) {
56 DeleteDC(shared_hdc->hdc);
57 free(shared_hdc);
58 }
59 }
60
61 #endif
62
4063 /*
4164 * The private data stored for every font, detected by this backend.
4265 */
4366 typedef struct {
67 #if ASS_WINAPI_DESKTOP
68 ASS_SharedHDC *shared_hdc;
69 #endif
4470 IDWriteFont *font;
4571 IDWriteFontFace *face;
4672 IDWriteFontFileStream *stream;
4773 } FontPrivate;
4874
4975 typedef struct {
76 #if ASS_WINAPI_DESKTOP
5077 HMODULE directwrite_lib;
78 #endif
5179 IDWriteFactory *factory;
5280 IDWriteGdiInterop *gdi_interop;
5381 } ProviderPrivate;
376404 if (code == 0)
377405 return true;
378406
379 hr = IDWriteFont_HasCharacter(priv->font, code, &exists);
380 if (FAILED(hr))
381 return false;
407 if (priv->font) {
408 hr = IDWriteFont_HasCharacter(priv->font, code, &exists);
409 if (FAILED(hr))
410 return false;
411 } else {
412 uint16_t glyph_index;
413 hr = IDWriteFontFace_GetGlyphIndices(priv->face, &code, 1, &glyph_index);
414 if (FAILED(hr))
415 return false;
416 exists = !!glyph_index;
417 }
382418
383419 return exists;
384420 }
391427 ProviderPrivate *provider_priv = (ProviderPrivate *)priv;
392428 provider_priv->gdi_interop->lpVtbl->Release(provider_priv->gdi_interop);
393429 provider_priv->factory->lpVtbl->Release(provider_priv->factory);
430 #if ASS_WINAPI_DESKTOP
394431 FreeLibrary(provider_priv->directwrite_lib);
432 #endif
395433 free(provider_priv);
396434 }
397435
404442 {
405443 FontPrivate *priv = (FontPrivate *) data;
406444
407 IDWriteFont_Release(priv->font);
445 if (priv->font != NULL)
446 IDWriteFont_Release(priv->font);
408447 if (priv->face != NULL)
409448 IDWriteFontFace_Release(priv->face);
410449 if (priv->stream != NULL)
411450 IDWriteFontFileStream_Release(priv->stream);
451
452 #if ASS_WINAPI_DESKTOP
453 hdc_release(priv->shared_hdc);
454 #endif
412455
413456 free(priv);
414457 }
423466 chars[1] = (codepoint & 0x3FF) + 0xDC00;
424467 return 2;
425468 }
469 }
470
471 static char *get_utf8_name(IDWriteLocalizedStrings *names, int k)
472 {
473 wchar_t *temp_name = NULL;
474 char *mbName = NULL;
475
476 UINT32 length;
477 HRESULT hr = IDWriteLocalizedStrings_GetStringLength(names, k, &length);
478 if (FAILED(hr))
479 goto cleanup;
480
481 if (length >= (UINT32) -1 || length + (size_t) 1 > SIZE_MAX / sizeof(wchar_t))
482 goto cleanup;
483
484 temp_name = (wchar_t *) malloc((length + 1) * sizeof(wchar_t));
485 if (!temp_name)
486 goto cleanup;
487
488 hr = IDWriteLocalizedStrings_GetString(names, k, temp_name, length + 1);
489 if (FAILED(hr))
490 goto cleanup;
491
492 int size_needed =
493 WideCharToMultiByte(CP_UTF8, 0, temp_name, -1, NULL, 0, NULL, NULL);
494 if (!size_needed)
495 goto cleanup;
496
497 mbName = (char *) malloc(size_needed);
498 if (!mbName)
499 goto cleanup;
500
501 WideCharToMultiByte(CP_UTF8, 0, temp_name, -1, mbName, size_needed, NULL, NULL);
502
503 cleanup:
504 free(temp_name);
505 return mbName;
426506 }
427507
428508 static char *get_fallback(void *priv, ASS_Library *lib,
471551 IDWriteTextLayout_Release(text_layout);
472552 IDWriteTextFormat_Release(text_format);
473553
554 // DirectWrite may not have found a valid fallback, so check that
555 // the selected font actually has the requested glyph.
556 BOOL exists = FALSE;
557 if (codepoint > 0) {
558 hr = IDWriteFont_HasCharacter(font, codepoint, &exists);
559 if (FAILED(hr) || !exists) {
560 IDWriteFont_Release(font);
561 return NULL;
562 }
563 }
564
474565 // Now, just extract the first family name
475 BOOL exists = FALSE;
476566 IDWriteLocalizedStrings *familyNames = NULL;
477567 hr = IDWriteFont_GetInformationalStrings(font,
478568 DWRITE_INFORMATIONAL_STRING_WIN32_FAMILY_NAMES,
482572 return NULL;
483573 }
484574
485 wchar_t temp_name[NAME_MAX_LENGTH];
486 hr = IDWriteLocalizedStrings_GetString(familyNames, 0, temp_name, NAME_MAX_LENGTH);
487 if (FAILED(hr)) {
488 IDWriteLocalizedStrings_Release(familyNames);
489 IDWriteFont_Release(font);
490 return NULL;
491 }
492 temp_name[NAME_MAX_LENGTH-1] = 0;
493
494 // DirectWrite may not have found a valid fallback, so check that
495 // the selected font actually has the requested glyph.
496 if (codepoint > 0) {
497 hr = IDWriteFont_HasCharacter(font, codepoint, &exists);
498 if (FAILED(hr) || !exists) {
499 IDWriteLocalizedStrings_Release(familyNames);
500 IDWriteFont_Release(font);
501 return NULL;
502 }
503 }
504
505 int size_needed = WideCharToMultiByte(CP_UTF8, 0, temp_name, -1, NULL, 0,NULL, NULL);
506 char *family = (char *) malloc(size_needed);
507 WideCharToMultiByte(CP_UTF8, 0, temp_name, -1, family, size_needed, NULL, NULL);
575 char *family = get_utf8_name(familyNames, 0);
508576
509577 IDWriteLocalizedStrings_Release(familyNames);
510578 IDWriteFont_Release(font);
528596 }
529597 }
530598
531 static void add_font(IDWriteFont *font, IDWriteFontFamily *fontFamily,
532 ASS_FontProvider *provider)
533 {
534 HRESULT hr;
535 BOOL exists;
536 wchar_t temp_name[NAME_MAX_LENGTH];
537 int size_needed;
599 #define FONT_TYPE IDWriteFontFace3
600 #include "ass_directwrite_info_template.h"
601 #undef FONT_TYPE
602
603 static void add_font_face(IDWriteFontFace *face, ASS_FontProvider *provider,
604 ASS_SharedHDC *shared_hdc)
605 {
538606 ASS_FontProviderMetaData meta = {0};
539607
540 meta.weight = IDWriteFont_GetWeight(font);
541 meta.width = map_width(IDWriteFont_GetStretch(font));
542
543 DWRITE_FONT_STYLE style = IDWriteFont_GetStyle(font);
544 meta.slant = (style == DWRITE_FONT_STYLE_NORMAL) ? FONT_SLANT_NONE :
545 (style == DWRITE_FONT_STYLE_OBLIQUE)? FONT_SLANT_OBLIQUE :
546 (style == DWRITE_FONT_STYLE_ITALIC) ? FONT_SLANT_ITALIC : FONT_SLANT_NONE;
547
548 IDWriteLocalizedStrings *psNames;
549 hr = IDWriteFont_GetInformationalStrings(font,
550 DWRITE_INFORMATIONAL_STRING_POSTSCRIPT_NAME, &psNames, &exists);
551 if (FAILED(hr))
552 goto cleanup;
553
554 if (exists) {
555 hr = IDWriteLocalizedStrings_GetString(psNames, 0, temp_name, NAME_MAX_LENGTH);
556 if (FAILED(hr)) {
557 IDWriteLocalizedStrings_Release(psNames);
608 IDWriteFontFace3 *face3;
609 HRESULT hr = IDWriteFontFace_QueryInterface(face, &IID_IDWriteFontFace3,
610 (void **) &face3);
611 if (SUCCEEDED(hr) && face3) {
612 bool success = get_font_info_IDWriteFontFace3(face3, &meta);
613 IDWriteFontFace3_Release(face3);
614 if (!success)
558615 goto cleanup;
559 }
560
561 temp_name[NAME_MAX_LENGTH-1] = 0;
562 size_needed = WideCharToMultiByte(CP_UTF8, 0, temp_name, -1, NULL, 0, NULL, NULL);
563 char *mbName = (char *) malloc(size_needed);
564 if (!mbName) {
565 IDWriteLocalizedStrings_Release(psNames);
566 goto cleanup;
567 }
568 WideCharToMultiByte(CP_UTF8, 0, temp_name, -1, mbName, size_needed, NULL, NULL);
569 meta.postscript_name = mbName;
570
571 IDWriteLocalizedStrings_Release(psNames);
572 }
573
574 IDWriteLocalizedStrings *fontNames;
575 hr = IDWriteFont_GetInformationalStrings(font,
576 DWRITE_INFORMATIONAL_STRING_FULL_NAME, &fontNames, &exists);
577 if (FAILED(hr))
578 goto cleanup;
579
580 if (exists) {
581 meta.n_fullname = IDWriteLocalizedStrings_GetCount(fontNames);
582 meta.fullnames = (char **) calloc(meta.n_fullname, sizeof(char *));
583 if (!meta.fullnames) {
584 IDWriteLocalizedStrings_Release(fontNames);
585 goto cleanup;
586 }
587 for (int k = 0; k < meta.n_fullname; k++) {
588 hr = IDWriteLocalizedStrings_GetString(fontNames, k,
589 temp_name,
590 NAME_MAX_LENGTH);
591 if (FAILED(hr)) {
592 IDWriteLocalizedStrings_Release(fontNames);
593 goto cleanup;
594 }
595
596 temp_name[NAME_MAX_LENGTH-1] = 0;
597 size_needed = WideCharToMultiByte(CP_UTF8, 0, temp_name, -1, NULL, 0, NULL, NULL);
598 char *mbName = (char *) malloc(size_needed);
599 if (!mbName) {
600 IDWriteLocalizedStrings_Release(fontNames);
601 goto cleanup;
602 }
603 WideCharToMultiByte(CP_UTF8, 0, temp_name, -1, mbName, size_needed, NULL, NULL);
604 meta.fullnames[k] = mbName;
605 }
606 IDWriteLocalizedStrings_Release(fontNames);
607 }
608
609 IDWriteLocalizedStrings *familyNames;
610 hr = IDWriteFont_GetInformationalStrings(font,
611 DWRITE_INFORMATIONAL_STRING_WIN32_FAMILY_NAMES, &familyNames, &exists);
612 if (FAILED(hr) || !exists)
613 hr = IDWriteFontFamily_GetFamilyNames(fontFamily, &familyNames);
614 if (FAILED(hr))
615 goto cleanup;
616
617 meta.n_family = IDWriteLocalizedStrings_GetCount(familyNames);
618 meta.families = (char **) calloc(meta.n_family, sizeof(char *));
619 if (!meta.families) {
620 IDWriteLocalizedStrings_Release(familyNames);
621 goto cleanup;
622 }
623 for (int k = 0; k < meta.n_family; k++) {
624 hr = IDWriteLocalizedStrings_GetString(familyNames, k,
625 temp_name,
626 NAME_MAX_LENGTH);
627 if (FAILED(hr)) {
628 IDWriteLocalizedStrings_Release(familyNames);
629 goto cleanup;
630 }
631
632 temp_name[NAME_MAX_LENGTH-1] = 0;
633 size_needed = WideCharToMultiByte(CP_UTF8, 0, temp_name, -1, NULL, 0, NULL, NULL);
634 char *mbName = (char *) malloc(size_needed);
635 if (!mbName) {
636 IDWriteLocalizedStrings_Release(familyNames);
637 goto cleanup;
638 }
639 WideCharToMultiByte(CP_UTF8, 0, temp_name, -1, mbName, size_needed, NULL, NULL);
640 meta.families[k] = mbName;
641 }
642 IDWriteLocalizedStrings_Release(familyNames);
616 }
643617
644618 FontPrivate *font_priv = (FontPrivate *) calloc(1, sizeof(*font_priv));
645619 if (!font_priv)
646620 goto cleanup;
647 font_priv->font = font;
648 font = NULL;
621
622 font_priv->face = face;
623 face = NULL;
624
625 #if ASS_WINAPI_DESKTOP
626 font_priv->shared_hdc = hdc_retain(shared_hdc);
627 #endif
649628
650629 ass_font_provider_add_font(provider, &meta, NULL, 0, font_priv);
651630
664643
665644 free(meta.postscript_name);
666645
646 if (face)
647 IDWriteFontFace_Release(face);
648 }
649
650 #if ASS_WINAPI_DESKTOP
651
652 struct font_enum_priv {
653 ASS_FontProvider *provider;
654 IDWriteGdiInterop *gdi_interop;
655 ASS_SharedHDC *shared_hdc;
656 };
657
658 /*
659 * Windows has three similar functions: EnumFonts, EnumFontFamilies
660 * and EnumFontFamiliesEx, which were introduced at different times.
661 * Each takes a callback, and the declared callback type is the same
662 * for all three. However, the actual arguments passed to the callback
663 * have also changed over time. Some changes match the introduction
664 * of new EnumFont... variants, and some don't. Documentation has
665 * changed over the years, too, so it can be hard to figure out what
666 * types, and when, are safe for the callback to take.
667 *
668 * In the header files, FONTENUMPROC is declared to take:
669 * CONST LOGFONT *, CONST TEXTMETRIC *
670 * These are the baseline structs dating back to 16-bit Windows EnumFont.
671 *
672 * As of 2021, current versions of Microsoft's docs
673 * for the EnumFontFamiliesEx callback use the same:
674 * const LOGFONT *, const TEXTMETRIC *
675 * and for the EnumFontFamilies callback use:
676 * ENUMLOGFONT *, NEWTEXTMETRIC *
677 * and mention that the first "can be cast as" ENUMLOGFONTEX or ENUMLOGFONTEXDV
678 * while the second "can be an ENUMTEXTMETRIC structure" but for
679 * non-TrueType fonts "is a pointer to a TEXTMETRIC structure".
680 *
681 * Docs from the 2000s (which include Win95/98/Me/NT/2000/XP details) use
682 * ENUMLOGFONTEX *, NEWTEXTMETRICEX *
683 * in the EnumFontFamiliesEx callback's definition:
684 * https://web.archive.org/web/20050907052149
685 * /http://msdn.microsoft.com/library/en-us/gdi/fontext_9rmr.asp
686 * and highlight these two extended struct types as advantages over
687 * the EnumFontFamilies callback, suggesting that the actual arguments
688 * to the EnumFontFamiliesEx callback have always been these two extended
689 * structs. This is also reflected in the callback's parameter names
690 * (which have stayed unchanged in the current docs).
691 * EnumFontFamiliesEx itself was added in Windows NT 4.0 and 95.
692 *
693 * Similarly, the EnumFontFamilies callback's parameter names support
694 * the idea that they have always used ENUMLOGFONT and NEWTEXTMETRIC.
695 *
696 * It seems the extra fields in NEWTEXTMETRIC[EX] compared to TEXTMETRIC
697 * are merely zero-filled when they are irrelevant, rather than nonexistent
698 * or inaccessible. This is further supported by the fact the later-still
699 * struct ENUMTEXTMETRIC extends NEWTEXTMETRICEX even though the former
700 * is/was (upon introduction) relevant only to PostScript fonts
701 * while the latter is (supposedly) relevant only to TrueType fonts.
702 *
703 * Docs from the 2000s for ENUMLOGFONTEXDV and ENUMTEXTMETRIC:
704 * https://web.archive.org/web/20050306200105
705 * /http://msdn.microsoft.com/library/en-us/gdi/fontext_15gy.asp
706 * seem to assert that the callback receives these two further-extended
707 * structs *if and only if* running on Windows 2000 or newer.
708 * We don't need them, but if we did, we'd have to check (or assume)
709 * Windows version, because this extension does not seem to have
710 * an associated feature check. Moreover, these structs are given
711 * to the callbacks of all three EnumFont... function variants.
712 * So even EnumFonts actually uses the extended structs in 21st-century
713 * Windows, but the declared callback type can no longer be changed
714 * without breaking existing C++ code due to its strongly-typed pointers.
715 * When targeting modern Windows, though, it seems safe for consumer
716 * code to take the newest structs and cast the function pointer
717 * to the declared callback type.
718 */
719 static int CALLBACK font_enum_proc(const ENUMLOGFONTW *lpelf,
720 const NEWTEXTMETRICW *lpntm,
721 DWORD FontType, LPARAM lParam)
722 {
723 struct font_enum_priv *priv = (struct font_enum_priv *) lParam;
724 HFONT hFont = NULL;
725 HRESULT hr;
726
727 if (FontType & RASTER_FONTTYPE)
728 goto cleanup;
729
730 hFont = CreateFontIndirectW(&lpelf->elfLogFont);
731 if (!hFont)
732 goto cleanup;
733
734 HDC hdc = priv->shared_hdc->hdc;
735 if (!SelectObject(hdc, hFont))
736 goto cleanup;
737
738 wchar_t selected_name[LF_FACESIZE];
739 if (!GetTextFaceW(hdc, LF_FACESIZE, selected_name))
740 goto cleanup;
741 if (wcsncmp(selected_name, lpelf->elfLogFont.lfFaceName, LF_FACESIZE)) {
742 // A different font was selected. This can happen if the requested
743 // name is subject to charset-specific font substitution while
744 // EnumFont... enumerates additional charsets contained in the font.
745 // Alternatively, the font may have disappeared in the meantime.
746 // Either way, there's no use looking at this font any further.
747 goto cleanup;
748 }
749
750 // For single-font files, we could also use GetFontData, but for font
751 // collection files, GDI does not expose the current font index.
752 // CreateFontFaceFromHdc is able to find it out using a private API;
753 // and it may also be more efficient if it doesn't copy the data.
754 // The downside is that we must keep the HDC alive, at least on Windows 7,
755 // to prevent the font from being deleted and breaking the IDWriteFontFace.
756 IDWriteFontFace *face = NULL;
757 hr = IDWriteGdiInterop_CreateFontFaceFromHdc(priv->gdi_interop,
758 hdc, &face);
759 if (FAILED(hr) || !face)
760 goto cleanup;
761
762 add_font_face(face, priv->provider, priv->shared_hdc);
763
764 cleanup:
765 if (hFont)
766 DeleteObject(hFont);
767
768 return 1 /* continue enumerating */;
769 }
770
771 #else
772
773 static void add_font_set(IDWriteFontSet *fontSet, ASS_FontProvider *provider)
774 {
775 UINT32 n = IDWriteFontSet_GetFontCount(fontSet);
776 for (UINT32 i = 0; i < n; i++) {
777 HRESULT hr;
778
779 IDWriteFontFaceReference *faceRef;
780 hr = IDWriteFontSet_GetFontFaceReference(fontSet, i, &faceRef);
781 if (FAILED(hr) || !faceRef)
782 continue;
783
784 if (IDWriteFontFaceReference_GetLocality(faceRef) != DWRITE_LOCALITY_LOCAL)
785 goto cleanup;
786
787 // Simulations for bold or oblique are sometimes synthesized by
788 // DirectWrite. We are only interested in physical fonts.
789 if (IDWriteFontFaceReference_GetSimulations(faceRef) != 0)
790 goto cleanup;
791
792 IDWriteFontFace3 *face;
793 hr = IDWriteFontFaceReference_CreateFontFace(faceRef, &face);
794 if (FAILED(hr) || !face)
795 goto cleanup;
796
797 add_font_face((IDWriteFontFace *) face, provider, NULL);
798
799 cleanup:
800 IDWriteFontFaceReference_Release(faceRef);
801 }
802 }
803
804 #define FONT_TYPE IDWriteFont
805 #define FAMILY_AS_ARG
806 #include "ass_directwrite_info_template.h"
807 #undef FONT_TYPE
808 #undef FAMILY_AS_ARG
809
810 static void add_font(IDWriteFont *font, IDWriteFontFamily *fontFamily,
811 ASS_FontProvider *provider)
812 {
813 ASS_FontProviderMetaData meta = {0};
814 if (!get_font_info_IDWriteFont(font, fontFamily, &meta))
815 goto cleanup;
816
817 FontPrivate *font_priv = (FontPrivate *) calloc(1, sizeof(*font_priv));
818 if (!font_priv)
819 goto cleanup;
820 font_priv->font = font;
821 font = NULL;
822
823 ass_font_provider_add_font(provider, &meta, NULL, 0, font_priv);
824
825 cleanup:
826 if (meta.families) {
827 for (int k = 0; k < meta.n_family; k++)
828 free(meta.families[k]);
829 free(meta.families);
830 }
831
832 if (meta.fullnames) {
833 for (int k = 0; k < meta.n_fullname; k++)
834 free(meta.fullnames[k]);
835 free(meta.fullnames);
836 }
837
838 free(meta.postscript_name);
839
667840 if (font)
668841 IDWriteFont_Release(font);
669842 }
670843
844 #endif
845
671846 /*
672847 * When a new font name is requested, called to load that font from Windows
673848 */
675850 ASS_FontProvider *provider, char *name)
676851 {
677852 ProviderPrivate *provider_priv = (ProviderPrivate *)priv;
678 IDWriteFont *font = NULL;
679 IDWriteFontFamily *fontFamily = NULL;
680 LOGFONTW lf;
681 HRESULT hr = S_OK;
682
683 memset(&lf, 0, sizeof(LOGFONTW));
684 lf.lfWeight = FW_DONTCARE;
685 lf.lfCharSet = DEFAULT_CHARSET;
686 lf.lfOutPrecision = OUT_TT_PRECIS;
687 lf.lfClipPrecision = CLIP_DEFAULT_PRECIS;
688 lf.lfQuality = ANTIALIASED_QUALITY;
689 lf.lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE;
853 LOGFONTW lf = {0};
690854
691855 // lfFaceName can hold up to LF_FACESIZE wchars; truncate longer names
692856 MultiByteToWideChar(CP_UTF8, 0, name, -1, lf.lfFaceName, LF_FACESIZE-1);
693857
694 hr = IDWriteGdiInterop_CreateFontFromLOGFONT(provider_priv->gdi_interop, &lf, &font);
695 if (FAILED(hr) || !font)
858 #if ASS_WINAPI_DESKTOP
859 struct font_enum_priv enum_priv;
860
861 enum_priv.shared_hdc = calloc(1, sizeof(ASS_SharedHDC));
862 if (!enum_priv.shared_hdc)
696863 return;
697864
698 hr = IDWriteFont_GetFontFamily(font, &fontFamily);
699 if (FAILED(hr) || !fontFamily)
700 goto cleanup;
701
702 add_font(font, fontFamily, provider);
703
704 IDWriteFontFamily_Release(fontFamily);
705
706 return;
707
708 cleanup:
709 if (font)
865 // Keep this HDC alive to keep the fonts alive. This seems to be necessary
866 // on Windows 7, where the fonts can't be deleted as long as the DC lives
867 // and where the converted IDWriteFontFaces only work as long as the fonts
868 // aren't deleted, although not on Windows 10, where fonts can be deleted
869 // even if the DC still lives but IDWriteFontFaces keep working even if
870 // the fonts are deleted.
871 //
872 // But beware of threading: docs say CreateCompatibleDC(NULL) creates a DC
873 // that is bound to the current thread and is deleted when the thread dies.
874 // It's not forbidden to call libass functions from multiple threads
875 // over the lifetime of a font provider, so this doesn't work for us.
876 // Practical tests suggest that the docs are wrong and the DC actually
877 // persists after its creating thread dies, but let's not rely on that.
878 // The workaround is to do a longer dance that is effectively equivalent to
879 // CreateCompatibleDC(NULL) but isn't specifically CreateCompatibleDC(NULL).
880 HDC screen_dc = GetDC(NULL);
881 if (!screen_dc) {
882 free(enum_priv.shared_hdc);
883 return;
884 }
885 HDC hdc = CreateCompatibleDC(screen_dc);
886 ReleaseDC(NULL, screen_dc);
887 if (!hdc) {
888 free(enum_priv.shared_hdc);
889 return;
890 }
891
892 enum_priv.provider = provider;
893 enum_priv.gdi_interop = provider_priv->gdi_interop;
894 enum_priv.shared_hdc->hdc = hdc;
895 enum_priv.shared_hdc->ref_count = 1;
896
897 // EnumFontFamilies gives each font once, plus repeats for charset-specific
898 // aliases. EnumFontFamiliesEx gives each charset of each font separately,
899 // so it repeats each font as many times as it has charsets, regardless
900 // of whether they have aliases. Other than this, the two functions are
901 // equivalent. There's no reliable way to distinguish when two items
902 // enumerated by either function refer to the same font (but different
903 // aliases or charsets) or actually distinct fonts, so we add every item
904 // as a separate font to our database and simply prefer the enumeration
905 // function that tends to give fewer duplicates. Generally, many fonts
906 // cover multiple charsets while very few have aliases, so we prefer
907 // EnumFontFamilies.
908 //
909 // Furthermore, the requested name might be an empty string. In this case,
910 // EnumFontFamilies will give us only fonts with empty names, whereas
911 // EnumFontFamiliesEx would give us a list of all installed font families.
912 EnumFontFamiliesW(hdc, lf.lfFaceName,
913 (FONTENUMPROCW) font_enum_proc, (LPARAM) &enum_priv);
914
915 hdc_release(enum_priv.shared_hdc);
916 #else
917 HRESULT hr;
918 IDWriteFactory3 *factory3;
919 hr = IDWriteFactory_QueryInterface(provider_priv->factory,
920 &IID_IDWriteFactory3, (void **) &factory3);
921 if (SUCCEEDED(hr) && factory3) {
922 IDWriteFontSet *fontSet;
923 hr = IDWriteFactory3_GetSystemFontSet(factory3, &fontSet);
924 IDWriteFactory3_Release(factory3);
925 if (FAILED(hr) || !fontSet)
926 return;
927
928 DWRITE_FONT_PROPERTY_ID property_ids[] = {
929 DWRITE_FONT_PROPERTY_ID_WIN32_FAMILY_NAME,
930 DWRITE_FONT_PROPERTY_ID_FULL_NAME,
931 DWRITE_FONT_PROPERTY_ID_POSTSCRIPT_NAME,
932 };
933 for (int i = 0; i < sizeof property_ids / sizeof *property_ids; i++) {
934 DWRITE_FONT_PROPERTY property = {
935 property_ids[i],
936 lf.lfFaceName,
937 L"",
938 };
939
940 IDWriteFontSet *filteredSet;
941 hr = IDWriteFontSet_GetMatchingFonts(fontSet, &property,
942 1, &filteredSet);
943 if (FAILED(hr) || !filteredSet)
944 continue;
945
946 add_font_set(filteredSet, provider);
947
948 IDWriteFontSet_Release(filteredSet);
949 }
950
951 IDWriteFontSet_Release(fontSet);
952 } else {
953 // We must be in Windows 8 WinRT. IDWriteFontSet is not yet
954 // supported, but GDI calls are forbidden. Our only options are
955 // FindFamilyName, CreateFontFromLOGFONT, and eager preloading
956 // of all fonts. The two lazy options are similar, with the
957 // difference that FindFamilyName searches by WWS_FAMILY_NAME
958 // whereas CreateFontFromLOGFONT searches by WIN32_FAMILY_NAME.
959 // The latter is what GDI uses, so pick that. In at least some
960 // versions of Windows, it also searches by FULL_NAME, which is
961 // even better, but it's unclear whether this includes Windows 8.
962 // It never searches by POSTSCRIPT_NAME. This means we won't
963 // find CFF-outline fonts by their PostScript name and may not
964 // find TrueType fonts by their full name; but we can't fix this
965 // without loading the entire font list.
966 lf.lfWeight = FW_DONTCARE;
967 lf.lfCharSet = DEFAULT_CHARSET;
968 lf.lfOutPrecision = OUT_TT_PRECIS;
969 lf.lfClipPrecision = CLIP_DEFAULT_PRECIS;
970 lf.lfQuality = ANTIALIASED_QUALITY;
971 lf.lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE;
972 IDWriteFont *font = NULL;
973 hr = IDWriteGdiInterop_CreateFontFromLOGFONT(provider_priv->gdi_interop,
974 &lf, &font);
975 if (FAILED(hr) || !font)
976 return;
977
978 IDWriteFontFamily *fontFamily = NULL;
979 hr = IDWriteFont_GetFontFamily(font, &fontFamily);
710980 IDWriteFont_Release(font);
711 if (fontFamily)
981 if (FAILED(hr) || !fontFamily)
982 return;
983
984 UINT32 n = IDWriteFontFamily_GetFontCount(fontFamily);
985 for (UINT32 i = 0; i < n; i++) {
986 hr = IDWriteFontFamily_GetFont(fontFamily, i, &font);
987 if (FAILED(hr))
988 continue;
989
990 // Simulations for bold or oblique are sometimes synthesized by
991 // DirectWrite. We are only interested in physical fonts.
992 if (IDWriteFont_GetSimulations(font) != 0) {
993 IDWriteFont_Release(font);
994 continue;
995 }
996
997 add_font(font, fontFamily, provider);
998 }
999
7121000 IDWriteFontFamily_Release(fontFamily);
1001 }
1002 #endif
7131003 }
7141004
7151005 static void get_substitutions(void *priv, const char *name,
7351025 .get_font_index = get_font_index,
7361026 };
7371027
738 typedef HRESULT (WINAPI *DWriteCreateFactoryFn)(
1028 #if ASS_WINAPI_DESKTOP
1029 typedef HRESULT (WINAPI *DWriteCreateFactoryFn)
1030 #else
1031 // LoadLibrary is forbidden in WinRT/UWP apps, so use DirectWrite directly.
1032 // These apps cannot run on older Windows that lacks DirectWrite,
1033 // so we lose nothing.
1034 HRESULT WINAPI DWriteCreateFactory
1035 #endif
1036 (
7391037 DWRITE_FACTORY_TYPE factoryType,
7401038 REFIID iid,
7411039 IUnknown **factory
7561054 IDWriteFactory *dwFactory = NULL;
7571055 IDWriteGdiInterop *dwGdiInterop = NULL;
7581056 ASS_FontProvider *provider = NULL;
759 DWriteCreateFactoryFn DWriteCreateFactoryPtr = NULL;
7601057 ProviderPrivate *priv = NULL;
7611058
1059 #if ASS_WINAPI_DESKTOP
7621060 HMODULE directwrite_lib = LoadLibraryW(L"Dwrite.dll");
7631061 if (!directwrite_lib)
7641062 goto cleanup;
7651063
766 DWriteCreateFactoryPtr =
1064 DWriteCreateFactoryFn DWriteCreateFactory =
7671065 (DWriteCreateFactoryFn)(void *)GetProcAddress(directwrite_lib,
7681066 "DWriteCreateFactory");
769 if (!DWriteCreateFactoryPtr)
770 goto cleanup;
771
772 hr = DWriteCreateFactoryPtr(DWRITE_FACTORY_TYPE_SHARED,
773 &IID_IDWriteFactory,
774 (IUnknown **) (&dwFactory));
1067 if (!DWriteCreateFactory)
1068 goto cleanup;
1069 #endif
1070
1071 hr = DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED,
1072 &IID_IDWriteFactory,
1073 (IUnknown **) (&dwFactory));
7751074 if (FAILED(hr) || !dwFactory) {
7761075 ass_msg(lib, MSGL_WARN, "Failed to initialize directwrite.");
7771076 dwFactory = NULL;
7901089 if (!priv)
7911090 goto cleanup;
7921091
1092 #if ASS_WINAPI_DESKTOP
7931093 priv->directwrite_lib = directwrite_lib;
1094 #endif
7941095 priv->factory = dwFactory;
7951096 priv->gdi_interop = dwGdiInterop;
7961097
8071108 dwGdiInterop->lpVtbl->Release(dwGdiInterop);
8081109 if (dwFactory)
8091110 dwFactory->lpVtbl->Release(dwFactory);
1111 #if ASS_WINAPI_DESKTOP
8101112 if (directwrite_lib)
8111113 FreeLibrary(directwrite_lib);
1114 #endif
8121115
8131116 return NULL;
8141117 }
2121 #ifndef ASS_DIRECTWRITE_H
2222 #define ASS_DIRECTWRITE_H
2323
24 #ifdef WINAPI_FAMILY
25 #include <winapifamily.h>
26 #define ASS_WINAPI_DESKTOP WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
27 #else
28 #define ASS_WINAPI_DESKTOP 1
29 #endif
30
2431 ASS_FontProvider *
2532 ass_directwrite_add_provider(ASS_Library *lib, ASS_FontSelector *selector,
2633 const char *config, FT_Library ftlib);
0 #define CONCAT(a, b) a ## b
1 #define NAME(suffix) CONCAT(get_font_info_, suffix)
2 static bool NAME(FONT_TYPE)(FONT_TYPE *font,
3 #ifdef FAMILY_AS_ARG
4 IDWriteFontFamily *fontFamily,
5 #endif
6 ASS_FontProviderMetaData *meta)
7 #undef NAME
8 #undef CONCAT
9 {
10 HRESULT hr;
11 BOOL exists;
12
13 meta->weight = font->lpVtbl->GetWeight(font);
14 meta->width = map_width(font->lpVtbl->GetStretch(font));
15
16 DWRITE_FONT_STYLE style = font->lpVtbl->GetStyle(font);
17 meta->slant = (style == DWRITE_FONT_STYLE_NORMAL) ? FONT_SLANT_NONE :
18 (style == DWRITE_FONT_STYLE_OBLIQUE)? FONT_SLANT_OBLIQUE :
19 (style == DWRITE_FONT_STYLE_ITALIC) ? FONT_SLANT_ITALIC : FONT_SLANT_NONE;
20
21 IDWriteLocalizedStrings *psNames;
22 hr = font->lpVtbl->GetInformationalStrings(font,
23 DWRITE_INFORMATIONAL_STRING_POSTSCRIPT_NAME, &psNames, &exists);
24 if (FAILED(hr))
25 return false;
26
27 if (exists) {
28 meta->postscript_name = get_utf8_name(psNames, 0);
29 IDWriteLocalizedStrings_Release(psNames);
30 if (!meta->postscript_name)
31 return false;
32 }
33
34 IDWriteLocalizedStrings *fontNames;
35 hr = font->lpVtbl->GetInformationalStrings(font,
36 DWRITE_INFORMATIONAL_STRING_FULL_NAME, &fontNames, &exists);
37 if (FAILED(hr))
38 return false;
39
40 if (exists) {
41 meta->n_fullname = IDWriteLocalizedStrings_GetCount(fontNames);
42 meta->fullnames = (char **) calloc(meta->n_fullname, sizeof(char *));
43 if (!meta->fullnames) {
44 IDWriteLocalizedStrings_Release(fontNames);
45 return false;
46 }
47 for (int k = 0; k < meta->n_fullname; k++) {
48 meta->fullnames[k] = get_utf8_name(fontNames, k);
49 if (!meta->fullnames[k]) {
50 IDWriteLocalizedStrings_Release(fontNames);
51 return false;
52 }
53 }
54 IDWriteLocalizedStrings_Release(fontNames);
55 }
56
57 IDWriteLocalizedStrings *familyNames;
58 hr = font->lpVtbl->GetInformationalStrings(font,
59 DWRITE_INFORMATIONAL_STRING_WIN32_FAMILY_NAMES, &familyNames, &exists);
60 if (!FAILED(hr) && !exists) {
61 #ifdef FAMILY_AS_ARG
62 hr = IDWriteFontFamily_GetFamilyNames(fontFamily, &familyNames);
63 #else
64 hr = font->lpVtbl->GetFamilyNames(font, &familyNames);
65 #endif
66 }
67 if (FAILED(hr))
68 return false;
69
70 meta->n_family = IDWriteLocalizedStrings_GetCount(familyNames);
71 meta->families = (char **) calloc(meta->n_family, sizeof(char *));
72 if (!meta->families) {
73 IDWriteLocalizedStrings_Release(familyNames);
74 return false;
75 }
76 for (int k = 0; k < meta->n_family; k++) {
77 meta->families[k] = get_utf8_name(familyNames, k);
78 if (!meta->families[k]) {
79 IDWriteLocalizedStrings_Release(familyNames);
80 return false;
81 }
82 }
83 IDWriteLocalizedStrings_Release(familyNames);
84
85 return true;
86 }
256256
257257 if (lib)
258258 ass_msg(lib, MSGL_V,
259 "Parsed drawing with %d points and %d segments",
259 "Parsed drawing with %zu points and %zu segments",
260260 outline->n_points, outline->n_segments);
261261
262262 drawing_free_tokens(tokens);
129129 }
130130 }
131131
132 FT_Face ass_face_open(ASS_Library *lib, FT_Library ftlib, const char *path,
133 const char *postscript_name, int index)
134 {
135 FT_Face face;
136 int error = FT_New_Face(ftlib, path, index, &face);
137 if (error) {
138 ass_msg(lib, MSGL_WARN, "Error opening font: '%s', %d", path, index);
139 return NULL;
140 }
141
142 if (postscript_name && index < 0 && face->num_faces > 0) {
143 // The font provider gave us a postscript name and is not sure
144 // about the face index.. so use the postscript name to find the
145 // correct face_index in the collection!
146 for (int i = 0; i < face->num_faces; i++) {
147 FT_Done_Face(face);
148 error = FT_New_Face(ftlib, path, i, &face);
149 if (error) {
150 ass_msg(lib, MSGL_WARN, "Error opening font: '%s', %d", path, i);
151 return NULL;
152 }
153
154 const char *face_psname = FT_Get_Postscript_Name(face);
155 if (face_psname != NULL &&
156 strcmp(face_psname, postscript_name) == 0)
157 break;
158 }
159 }
160
161 return face;
162 }
163
132164 static unsigned long
133165 read_stream_font(FT_Stream stream, unsigned long offset, unsigned char *buffer,
134166 unsigned long count)
146178 free(stream);
147179 }
148180
181 FT_Face ass_face_stream(ASS_Library *lib, FT_Library ftlib, const char *name,
182 const ASS_FontStream *stream, int index)
183 {
184 ASS_FontStream *fs = calloc(1, sizeof(ASS_FontStream));
185 if (!fs)
186 return NULL;
187 *fs = *stream;
188
189 FT_Stream ftstream = calloc(1, sizeof(FT_StreamRec));
190 if (!ftstream) {
191 free(fs);
192 return NULL;
193 }
194 ftstream->size = stream->func(stream->priv, NULL, 0, 0);
195 ftstream->read = read_stream_font;
196 ftstream->close = close_stream_font;
197 ftstream->descriptor.pointer = (void *)fs;
198
199 FT_Open_Args args = {
200 .flags = FT_OPEN_STREAM,
201 .stream = ftstream,
202 };
203
204 FT_Face face;
205 int error = FT_Open_Face(ftlib, &args, index, &face);
206 if (error) {
207 if (name) {
208 ass_msg(lib, MSGL_WARN,
209 "Error opening memory font: '%s'", name);
210 } else {
211 ass_msg(lib, MSGL_WARN,
212 "Error opening memory font");
213 }
214 return NULL;
215 }
216
217 return face;
218 }
219
149220 /**
150221 * \brief Select a face with the given charcode and add it to ASS_Font
151222 * \return index of the new face in font->faces, -1 if failed
154225 {
155226 char *path;
156227 char *postscript_name = NULL;
157 int i, index, uid, error;
228 int i, index, uid;
158229 ASS_FontStream stream = { NULL, NULL };
159230 FT_Face face;
160231
161232 if (font->n_faces == ASS_FONT_MAX_FACES)
162233 return -1;
163234
164 path = ass_font_select(fontsel, font->library, font , &index,
235 path = ass_font_select(fontsel, font, &index,
165236 &postscript_name, &uid, &stream, ch);
166237
167238 if (!path)
176247 }
177248
178249 if (stream.func) {
179 FT_Open_Args args;
180 FT_Stream ftstream = calloc(1, sizeof(FT_StreamRec));
181 ASS_FontStream *fs = calloc(1, sizeof(ASS_FontStream));
182
183 *fs = stream;
184 ftstream->size = stream.func(stream.priv, NULL, 0, 0);
185 ftstream->read = read_stream_font;
186 ftstream->close = close_stream_font;
187 ftstream->descriptor.pointer = (void *)fs;
188
189 memset(&args, 0, sizeof(FT_Open_Args));
190 args.flags = FT_OPEN_STREAM;
191 args.stream = ftstream;
192
193 error = FT_Open_Face(font->ftlibrary, &args, index, &face);
194
195 if (error) {
196 ass_msg(font->library, MSGL_WARN,
197 "Error opening memory font: '%s'", path);
198 return -1;
199 }
200
250 face = ass_face_stream(font->library, font->ftlibrary, path,
251 &stream, index);
201252 } else {
202 error = FT_New_Face(font->ftlibrary, path, index, &face);
203 if (error) {
204 ass_msg(font->library, MSGL_WARN,
205 "Error opening font: '%s', %d", path, index);
206 return -1;
207 }
208
209 if (postscript_name && index < 0 && face->num_faces > 0) {
210 // The font provider gave us a post_script name and is not sure
211 // about the face index.. so use the postscript name to find the
212 // correct face_index in the collection!
213 for (int i = 0; i < face->num_faces; i++) {
214 FT_Done_Face(face);
215 error = FT_New_Face(font->ftlibrary, path, i, &face);
216 if (error) {
217 ass_msg(font->library, MSGL_WARN,
218 "Error opening font: '%s', %d", path, i);
219 return -1;
220 }
221
222 const char *face_psname = FT_Get_Postscript_Name(face);
223 if (face_psname != NULL &&
224 strcmp(face_psname, postscript_name) == 0)
225 break;
226 }
227 }
228 }
253 face = ass_face_open(font->library, font->ftlibrary, path,
254 postscript_name, index);
255 }
256
257 if (!face)
258 return -1;
229259
230260 charmap_magic(font->library, face);
231261 set_font_metrics(face);
455485 return 0;
456486 }
457487
458 // try with the requested face
459 if (*face_index < font->n_faces) {
460 face = font->faces[*face_index];
461 index = FT_Get_Char_Index(face, ass_font_index_magic(face, symbol));
462 }
463
464 // not found in requested face, try all others
465488 for (i = 0; i < font->n_faces && index == 0; ++i) {
466489 face = font->faces[i];
467490 index = FT_Get_Char_Index(face, ass_font_index_magic(face, symbol));
473496 int face_idx;
474497 ass_msg(font->library, MSGL_INFO,
475498 "Glyph 0x%X not found, selecting one more "
476 "font for (%s, %d, %d)", symbol, font->desc.family,
499 "font for (%.*s, %d, %d)", symbol, (int) font->desc.family.len, font->desc.family.str,
477500 font->desc.bold, font->desc.italic);
478501 face_idx = *face_index = add_face(fontsel, font, symbol);
479502 if (face_idx >= 0) {
490513 }
491514 if (index == 0) {
492515 ass_msg(font->library, MSGL_ERR,
493 "Glyph 0x%X not found in font for (%s, %d, %d)",
494 symbol, font->desc.family, font->desc.bold,
516 "Glyph 0x%X not found in font for (%.*s, %d, %d)",
517 symbol, (int) font->desc.family.len, font->desc.family.str, font->desc.bold,
495518 font->desc.italic);
496519 }
497520 }
6262 ASS_Hinting hinting, int deco);
6363 void ass_font_clear(ASS_Font *font);
6464
65 FT_Face ass_face_open(ASS_Library *lib, FT_Library ftlib, const char *path,
66 const char *postscript_name, int index);
67 FT_Face ass_face_stream(ASS_Library *lib, FT_Library ftlib, const char *name,
68 const ASS_FontStream *stream, int index);
69
6570 #endif /* LIBASS_FONT_H */
8686 {
8787 int i;
8888 FcFontSet *fonts;
89 ASS_FontProviderMetaData meta;
89 ASS_FontProviderMetaData meta = {0};
9090
9191 // get list of fonts
9292 fonts = FcConfigGetFonts(config, FcSetSystem);
165165
166166 // read family names
167167 meta.n_family = 0;
168 while (FcPatternGetString(pat, FC_FAMILY, meta.n_family,
169 (FcChar8 **)&families[meta.n_family]) == FcResultMatch
170 && meta.n_family < MAX_NAME)
168 while (meta.n_family < MAX_NAME &&
169 FcPatternGetString(pat, FC_FAMILY, meta.n_family,
170 (FcChar8 **)&families[meta.n_family]) == FcResultMatch)
171171 meta.n_family++;
172172 meta.families = families;
173173
174174 // read fullnames
175175 meta.n_fullname = 0;
176 while (FcPatternGetString(pat, FC_FULLNAME, meta.n_fullname,
177 (FcChar8 **)&fullnames[meta.n_fullname]) == FcResultMatch
178 && meta.n_fullname < MAX_NAME)
176 while (meta.n_fullname < MAX_NAME &&
177 FcPatternGetString(pat, FC_FULLNAME, meta.n_fullname,
178 (FcChar8 **)&fullnames[meta.n_fullname]) == FcResultMatch)
179179 meta.n_fullname++;
180180 meta.fullnames = fullnames;
181181
7070 char *postscript_name; // can be used as an alternative to index to
7171 // identify a font inside a collection
7272
73 char *extended_family;
74
7375 // font source
7476 ASS_FontProvider *provider;
7577
7880 };
7981
8082 struct font_selector {
83 ASS_Library *library;
84 FT_Library ftlibrary;
85
8186 // uid counter
8287 int uid;
8388
165170 DIR *d = opendir(dir);
166171 if (!d)
167172 return;
173 size_t dirlen = strlen(dir);
174 size_t namemax = 0;
175 char *namebuf = NULL;
168176 while (1) {
169177 struct dirent *entry = readdir(d);
170178 if (!entry)
171179 break;
172180 if (entry->d_name[0] == '.')
173181 continue;
174 char fullname[4096];
175 snprintf(fullname, sizeof(fullname), "%s/%s", dir, entry->d_name);
182 size_t namelen = dirlen + strlen(entry->d_name) + 2u;
183 if (namelen < 2 || namelen - 2 < dirlen)
184 continue;
185 if (namelen > namemax) {
186 size_t newlen = FFMAX(2048, namelen + FFMIN(256, SIZE_MAX - namelen));
187 if (ASS_REALLOC_ARRAY(namebuf, newlen))
188 namemax = newlen;
189 else
190 continue;
191 }
192 snprintf(namebuf, namemax, "%s/%s", dir, entry->d_name);
176193 size_t bufsize = 0;
177 ass_msg(library, MSGL_INFO, "Loading font file '%s'", fullname);
178 void *data = read_file(library, fullname, &bufsize);
194 ass_msg(library, MSGL_INFO, "Loading font file '%s'", namebuf);
195 void *data = read_file(library, namebuf, &bufsize);
179196 if (data) {
180197 ass_add_font(library, entry->d_name, data, bufsize);
181198 free(data);
182199 }
183200 }
201 free(namebuf);
184202 closedir(d);
185203 }
186204
234252 if (info->postscript_name)
235253 free(info->postscript_name);
236254
255 if (info->extended_family)
256 free(info->extended_family);
257 }
258
259 /**
260 * \brief Read basic metadata (names, weight, slant) from a FreeType face,
261 * as required for the FontSelector for matching and sorting.
262 * \param lib FreeType library
263 * \param face FreeType face
264 * \param fallback_family_name family name from outside source, used as last resort
265 * \param info metadata, returned here
266 * \return success
267 */
268 static bool
269 get_font_info(FT_Library lib, FT_Face face, const char *fallback_family_name,
270 ASS_FontProviderMetaData *info)
271 {
272 int i;
273 int num_fullname = 0;
274 int num_family = 0;
275 int num_names = FT_Get_Sfnt_Name_Count(face);
276 int slant, weight;
277 char *fullnames[MAX_FULLNAME];
278 char *families[MAX_FULLNAME];
279
280 // we're only interested in outlines
281 if (!(face->face_flags & FT_FACE_FLAG_SCALABLE))
282 return false;
283
284 for (i = 0; i < num_names; i++) {
285 FT_SfntName name;
286
287 if (FT_Get_Sfnt_Name(face, i, &name))
288 continue;
289
290 if (name.platform_id == TT_PLATFORM_MICROSOFT &&
291 (name.name_id == TT_NAME_ID_FULL_NAME ||
292 name.name_id == TT_NAME_ID_FONT_FAMILY)) {
293 char buf[1024];
294 ass_utf16be_to_utf8(buf, sizeof(buf), (uint8_t *)name.string,
295 name.string_len);
296
297 if (name.name_id == TT_NAME_ID_FULL_NAME && num_fullname < MAX_FULLNAME) {
298 fullnames[num_fullname] = strdup(buf);
299 if (fullnames[num_fullname] == NULL)
300 goto error;
301 num_fullname++;
302 }
303
304 if (name.name_id == TT_NAME_ID_FONT_FAMILY && num_family < MAX_FULLNAME) {
305 families[num_family] = strdup(buf);
306 if (families[num_family] == NULL)
307 goto error;
308 num_family++;
309 }
310 }
311
312 }
313
314 // check if we got a valid family - if not, use
315 // whatever the font provider or FreeType gives us
316 if (num_family == 0 && (fallback_family_name || face->family_name)) {
317 families[0] =
318 strdup(fallback_family_name ? fallback_family_name : face->family_name);
319 if (families[0] == NULL)
320 goto error;
321 num_family++;
322 }
323
324 // we absolutely need a name
325 if (num_family == 0)
326 goto error;
327
328 // calculate sensible slant and weight from style attributes
329 slant = 110 * !!(face->style_flags & FT_STYLE_FLAG_ITALIC);
330 weight = ass_face_get_weight(face);
331
332 // fill our struct
333 info->slant = slant;
334 info->weight = weight;
335 info->width = 100; // FIXME, should probably query the OS/2 table
336
337 info->postscript_name = (char *)FT_Get_Postscript_Name(face);
338
339 if (num_family) {
340 info->families = calloc(sizeof(char *), num_family);
341 if (info->families == NULL)
342 goto error;
343 memcpy(info->families, &families, sizeof(char *) * num_family);
344 info->n_family = num_family;
345 }
346
347 if (num_fullname) {
348 info->fullnames = calloc(sizeof(char *), num_fullname);
349 if (info->fullnames == NULL)
350 goto error;
351 memcpy(info->fullnames, &fullnames, sizeof(char *) * num_fullname);
352 info->n_fullname = num_fullname;
353 }
354
355 return true;
356
357 error:
358 for (i = 0; i < num_family; i++)
359 free(families[i]);
360
361 for (i = 0; i < num_fullname; i++)
362 free(fullnames[i]);
363
364 free(info->families);
365 free(info->fullnames);
366
367 info->families = info->fullnames = NULL;
368 info->n_family = info->n_fullname = 0;
369
370 return false;
371 }
372
373 /**
374 * \brief Free the dynamically allocated fields of metadata
375 * created by get_font_info.
376 * \param meta metadata created by get_font_info
377 */
378 static void free_font_info(ASS_FontProviderMetaData *meta)
379 {
380 if (meta->families) {
381 for (int i = 0; i < meta->n_family; i++)
382 free(meta->families[i]);
383 free(meta->families);
384 }
385
386 if (meta->fullnames) {
387 for (int i = 0; i < meta->n_fullname; i++)
388 free(meta->fullnames[i]);
389 free(meta->fullnames);
390 }
237391 }
238392
239393 /**
253407 int i;
254408 int weight, slant, width;
255409 ASS_FontSelector *selector = provider->parent;
256 ASS_FontInfo *info;
410 ASS_FontInfo *info = NULL;
411 ASS_FontProviderMetaData implicit_meta = {0};
412
413 if (!meta->n_family) {
414 FT_Face face;
415 if (provider->funcs.get_font_index)
416 index = provider->funcs.get_font_index(data);
417 if (!path) {
418 ASS_FontStream stream = {
419 .func = provider->funcs.get_data,
420 .priv = data,
421 };
422 // This name is only used in an error message, so use
423 // our best name but don't panic if we don't have any.
424 // Prefer PostScript name because it is unique.
425 const char *name = meta->postscript_name ?
426 meta->postscript_name : meta->extended_family;
427 face = ass_face_stream(selector->library, selector->ftlibrary,
428 name, &stream, index);
429 } else {
430 face = ass_face_open(selector->library, selector->ftlibrary,
431 path, meta->postscript_name, index);
432 }
433 if (!face)
434 goto error;
435 if (!get_font_info(selector->ftlibrary, face, meta->extended_family,
436 &implicit_meta)) {
437 FT_Done_Face(face);
438 goto error;
439 }
440 if (implicit_meta.postscript_name) {
441 implicit_meta.postscript_name =
442 strdup(implicit_meta.postscript_name);
443 if (!implicit_meta.postscript_name) {
444 FT_Done_Face(face);
445 goto error;
446 }
447 }
448 FT_Done_Face(face);
449 implicit_meta.extended_family = meta->extended_family;
450 meta = &implicit_meta;
451 }
257452
258453 #if 0
259454 int j;
333528 goto error;
334529 }
335530
531 if (meta->extended_family) {
532 info->extended_family = strdup(meta->extended_family);
533 if (info->extended_family == NULL)
534 goto error;
535 }
536
336537 if (path) {
337538 info->path = strdup(path);
338539 if (info->path == NULL)
347548 return true;
348549
349550 error:
350 ass_font_provider_free_fontinfo(info);
551 if (info)
552 ass_font_provider_free_fontinfo(info);
553
554 free_font_info(&implicit_meta);
555 free(implicit_meta.postscript_name);
351556
352557 if (provider->funcs.destroy_font)
353558 provider->funcs.destroy_font(data);
422627 /**
423628 * \brief Return whether the given font is in the given family.
424629 */
425 static bool matches_family_name(ASS_FontInfo *f, const char *family)
630 static bool matches_family_name(ASS_FontInfo *f, const char *family,
631 bool match_extended_family)
426632 {
427633 for (int i = 0; i < f->n_family; i++) {
428634 if (ass_strcasecmp(f->families[i], family) == 0)
635 return true;
636 }
637 if (match_extended_family && f->extended_family) {
638 if (ass_strcasecmp(f->extended_family, family) == 0)
429639 return true;
430640 }
431641 return false;
515725 }
516726
517727 static char *
518 find_font(ASS_FontSelector *priv, ASS_Library *library,
519 ASS_FontProviderMetaData meta, unsigned bold, unsigned italic,
728 find_font(ASS_FontSelector *priv,
729 ASS_FontProviderMetaData meta, bool match_extended_family,
730 unsigned bold, unsigned italic,
520731 int *index, char **postscript_name, int *uid, ASS_FontStream *stream,
521732 uint32_t code, bool *name_match)
522733 {
541752 ASS_FontInfo *font = &priv->font_infos[x];
542753 unsigned score = UINT_MAX;
543754
544 if (matches_family_name(font, fullname)) {
755 if (matches_family_name(font, fullname, match_extended_family)) {
545756 // If there's a family match, compare font attributes
546757 // to determine best match in that particular family
547758 score = font_attributes_similarity(font, &req);
618829 return result;
619830 }
620831
621 static char *select_font(ASS_FontSelector *priv, ASS_Library *library,
622 const char *family, unsigned bold, unsigned italic,
832 static char *select_font(ASS_FontSelector *priv,
833 const char *family, bool match_extended_family,
834 unsigned bold, unsigned italic,
623835 int *index, char **postscript_name, int *uid,
624836 ASS_FontStream *stream, uint32_t code)
625837 {
646858 meta = default_meta;
647859 }
648860
649 result = find_font(priv, library, meta, bold, italic, index,
650 postscript_name, uid, stream, code, &name_match);
861 result = find_font(priv, meta, match_extended_family,
862 bold, italic, index, postscript_name, uid,
863 stream, code, &name_match);
651864
652865 // If no matching font was found, it might not exist in the font list
653866 // yet. Call the match_fonts callback to fill in the missing fonts
658871 // implementations possible.
659872 for (int i = 0; i < meta.n_fullname; i++) {
660873 default_provider->funcs.match_fonts(default_provider->priv,
661 library, default_provider,
874 priv->library, default_provider,
662875 meta.fullnames[i]);
663876 }
664 result = find_font(priv, library, meta, bold, italic, index,
665 postscript_name, uid, stream, code, &name_match);
877 result = find_font(priv, meta, match_extended_family,
878 bold, italic, index, postscript_name, uid,
879 stream, code, &name_match);
666880 }
667881
668882 // cleanup
678892
679893 /**
680894 * \brief Find a font. Use default family or path if necessary.
681 * \param library ASS library handle
682895 * \param family font family
683896 * \param treat_family_as_pattern treat family as fontconfig pattern
684897 * \param bold font weight value
687900 * \param code: the character that should be present in the font, can be 0
688901 * \return font file path
689902 */
690 char *ass_font_select(ASS_FontSelector *priv, ASS_Library *library,
903 char *ass_font_select(ASS_FontSelector *priv,
691904 ASS_Font *font, int *index, char **postscript_name,
692905 int *uid, ASS_FontStream *data, uint32_t code)
693906 {
698911 ASS_FontProvider *default_provider = priv->default_provider;
699912
700913 if (family && *family)
701 res = select_font(priv, library, family, bold, italic, index,
914 res = select_font(priv, family, false, bold, italic, index,
702915 postscript_name, uid, data, code);
703916
704917 if (!res && priv->family_default) {
705 res = select_font(priv, library, priv->family_default, bold,
918 res = select_font(priv, priv->family_default, false, bold,
706919 italic, index, postscript_name, uid, data, code);
707920 if (res)
708 ass_msg(library, MSGL_WARN, "fontselect: Using default "
921 ass_msg(priv->library, MSGL_WARN, "fontselect: Using default "
709922 "font family: (%s, %d, %d) -> %s, %d, %s",
710923 family, bold, italic, res, *index,
711924 *postscript_name ? *postscript_name : "(none)");
716929 if (!search_family || !*search_family)
717930 search_family = "Arial";
718931 char *fallback_family = default_provider->funcs.get_fallback(
719 default_provider->priv, library, search_family, code);
932 default_provider->priv, priv->library, search_family, code);
720933
721934 if (fallback_family) {
722 res = select_font(priv, library, fallback_family, bold, italic,
935 res = select_font(priv, fallback_family, true, bold, italic,
723936 index, postscript_name, uid, data, code);
724937 free(fallback_family);
725938 }
728941 if (!res && priv->path_default) {
729942 res = priv->path_default;
730943 *index = priv->index_default;
731 ass_msg(library, MSGL_WARN, "fontselect: Using default font: "
944 ass_msg(priv->library, MSGL_WARN, "fontselect: Using default font: "
732945 "(%s, %d, %d) -> %s, %d, %s", family, bold, italic,
733946 priv->path_default, *index,
734947 *postscript_name ? *postscript_name : "(none)");
735948 }
736949
737950 if (res)
738 ass_msg(library, MSGL_INFO,
951 ass_msg(priv->library, MSGL_INFO,
739952 "fontselect: (%s, %d, %d) -> %s, %d, %s", family, bold,
740953 italic, res, *index, *postscript_name ? *postscript_name : "(none)");
741954 else
742 ass_msg(library, MSGL_WARN, "fontselect: failed to find any fallback for font: "
743 "(%s, %d, %d)", family, bold, italic);
955 ass_msg(priv->library, MSGL_WARN,
956 "fontselect: failed to find any fallback with glyph 0x%X for font: "
957 "(%s, %d, %d)", code, family, bold, italic);
744958
745959 return res;
746960 }
747961
748
749 /**
750 * \brief Read basic metadata (names, weight, slant) from a FreeType face,
751 * as required for the FontSelector for matching and sorting.
752 * \param lib FreeType library
753 * \param face FreeType face
754 * \param info metadata, returned here
755 * \return success
756 */
757 static bool
758 get_font_info(FT_Library lib, FT_Face face, bool require_family_name,
759 ASS_FontProviderMetaData *info)
760 {
761 int i;
762 int num_fullname = 0;
763 int num_family = 0;
764 int num_names = FT_Get_Sfnt_Name_Count(face);
765 int slant, weight;
766 char *fullnames[MAX_FULLNAME];
767 char *families[MAX_FULLNAME];
768
769 // we're only interested in outlines
770 if (!(face->face_flags & FT_FACE_FLAG_SCALABLE))
771 return false;
772
773 for (i = 0; i < num_names; i++) {
774 FT_SfntName name;
775
776 if (FT_Get_Sfnt_Name(face, i, &name))
777 continue;
778
779 if (name.platform_id == TT_PLATFORM_MICROSOFT &&
780 (name.name_id == TT_NAME_ID_FULL_NAME ||
781 name.name_id == TT_NAME_ID_FONT_FAMILY)) {
782 char buf[1024];
783 ass_utf16be_to_utf8(buf, sizeof(buf), (uint8_t *)name.string,
784 name.string_len);
785
786 if (name.name_id == TT_NAME_ID_FULL_NAME && num_fullname < MAX_FULLNAME) {
787 fullnames[num_fullname] = strdup(buf);
788 if (fullnames[num_fullname] == NULL)
789 goto error;
790 num_fullname++;
791 }
792
793 if (name.name_id == TT_NAME_ID_FONT_FAMILY && num_family < MAX_FULLNAME) {
794 families[num_family] = strdup(buf);
795 if (families[num_family] == NULL)
796 goto error;
797 num_family++;
798 }
799 }
800
801 }
802
803 if (require_family_name) {
804 // check if we got a valid family - if not use whatever FreeType gives us
805 if (num_family == 0 && face->family_name) {
806 families[0] = strdup(face->family_name);
807 if (families[0] == NULL)
808 goto error;
809 num_family++;
810 }
811
812 // we absolutely need a name
813 if (num_family == 0)
814 goto error;
815 }
816
817 // calculate sensible slant and weight from style attributes
818 slant = 110 * !!(face->style_flags & FT_STYLE_FLAG_ITALIC);
819 weight = ass_face_get_weight(face);
820
821 // fill our struct
822 info->slant = slant;
823 info->weight = weight;
824 info->width = 100; // FIXME, should probably query the OS/2 table
825
826 info->postscript_name = (char *)FT_Get_Postscript_Name(face);
827
828 if (num_family) {
829 info->families = calloc(sizeof(char *), num_family);
830 if (info->families == NULL)
831 goto error;
832 memcpy(info->families, &families, sizeof(char *) * num_family);
833 info->n_family = num_family;
834 }
835
836 if (num_fullname) {
837 info->fullnames = calloc(sizeof(char *), num_fullname);
838 if (info->fullnames == NULL)
839 goto error;
840 memcpy(info->fullnames, &fullnames, sizeof(char *) * num_fullname);
841 info->n_fullname = num_fullname;
842 }
843
844 return true;
845
846 error:
847 for (i = 0; i < num_family; i++)
848 free(families[i]);
849
850 for (i = 0; i < num_fullname; i++)
851 free(fullnames[i]);
852
853 free(info->families);
854 free(info->fullnames);
855
856 info->families = info->fullnames = NULL;
857 info->n_family = info->n_fullname = 0;
858
859 return false;
860 }
861
862 bool ass_get_font_info(ASS_Library *lib, FT_Library ftlib, const char *path,
863 const char *postscript_name, int index,
864 bool require_family_name,
865 ASS_FontProviderMetaData *info)
866 {
867 bool ret = false;
868 FT_Face face = NULL;
869 int error = FT_New_Face(ftlib, path, index, &face);
870 if (error) {
871 ass_msg(lib, MSGL_WARN, "Error opening font: '%s', %d", path, index);
872 return false;
873 }
874
875 if (postscript_name && index < 0 && face->num_faces > 0) {
876 // The font provider gave us a postscript name and is not sure
877 // about the face index.. so use the postscript name to find the
878 // correct face_index in the collection!
879 for (int i = 0; i < face->num_faces; i++) {
880 FT_Done_Face(face);
881 error = FT_New_Face(ftlib, path, i, &face);
882 if (error) {
883 ass_msg(lib, MSGL_WARN, "Error opening font: '%s', %d", path, i);
884 return false;
885 }
886
887 const char *face_psname = FT_Get_Postscript_Name(face);
888 if (face_psname != NULL &&
889 strcmp(face_psname, postscript_name) == 0)
890 break;
891 }
892 }
893
894 if (face) {
895 ret = get_font_info(ftlib, face, require_family_name, info);
896 if (ret)
897 info->postscript_name = strdup(info->postscript_name);
898 FT_Done_Face(face);
899 }
900
901 return ret;
902 }
903
904 /**
905 * \brief Free the dynamically allocated fields of metadata
906 * created by get_font_info.
907 * \param meta metadata created by get_font_info
908 */
909 static void free_font_info(ASS_FontProviderMetaData *meta)
910 {
911 int i;
912
913 for (i = 0; i < meta->n_family; i++)
914 free(meta->families[i]);
915
916 for (i = 0; i < meta->n_fullname; i++)
917 free(meta->fullnames[i]);
918
919 free(meta->families);
920 free(meta->fullnames);
921 }
922962
923963 /**
924964 * \brief Process memory font.
925965 * \param priv private data
926 * \param library library object
927 * \param ftlibrary freetype library object
928 * \param idx index of the processed font in library->fontdata
966 * \param idx index of the processed font in priv->library->fontdata
929967 *
930968 * Builds a FontInfo with FreeType and some table reading.
931969 */
932 static void process_fontdata(ASS_FontProvider *priv, ASS_Library *library,
933 FT_Library ftlibrary, int idx)
934 {
970 static void process_fontdata(ASS_FontProvider *priv, int idx)
971 {
972 ASS_FontSelector *selector = priv->parent;
973 ASS_Library *library = selector->library;
974
935975 int rc;
936976 const char *name = library->fontdata[idx].name;
937977 const char *data = library->fontdata[idx].data;
944984 ASS_FontProviderMetaData info;
945985 FontDataFT *ft;
946986
947 rc = FT_New_Memory_Face(ftlibrary, (unsigned char *) data,
987 rc = FT_New_Memory_Face(selector->ftlibrary, (unsigned char *) data,
948988 data_size, face_index, &face);
949989 if (rc) {
950990 ass_msg(library, MSGL_WARN, "Error opening memory font '%s'",
957997 charmap_magic(library, face);
958998
959999 memset(&info, 0, sizeof(ASS_FontProviderMetaData));
960 if (!get_font_info(ftlibrary, face, true, &info)) {
1000 if (!get_font_info(selector->ftlibrary, face, NULL, &info)) {
9611001 ass_msg(library, MSGL_WARN,
9621002 "Error getting metadata for embedded font '%s'", name);
9631003 FT_Done_Face(face);
9891029 /**
9901030 * \brief Create font provider for embedded fonts. This parses the fonts known
9911031 * to the current ASS_Library and adds them to the selector.
992 * \param lib library
9931032 * \param selector font selector
994 * \param ftlib FreeType library - used for querying fonts
9951033 * \return font provider
9961034 */
9971035 static ASS_FontProvider *
998 ass_embedded_fonts_add_provider(ASS_Library *lib, ASS_FontSelector *selector,
999 FT_Library ftlib, size_t *num_emfonts)
1036 ass_embedded_fonts_add_provider(ASS_FontSelector *selector, size_t *num_emfonts)
10001037 {
10011038 ASS_FontProvider *priv = ass_font_provider_new(selector, &ft_funcs, NULL);
10021039 if (priv == NULL)
10031040 return NULL;
10041041
1042 ASS_Library *lib = selector->library;
1043
10051044 if (lib->fonts_dir && lib->fonts_dir[0]) {
10061045 load_fonts_from_dir(lib, lib->fonts_dir);
10071046 }
10081047
10091048 for (size_t i = 0; i < lib->num_fontdata; i++)
1010 process_fontdata(priv, lib, ftlib, i);
1049 process_fontdata(priv, i);
10111050 *num_emfonts = lib->num_fontdata;
10121051
10131052 return priv;
10251064 { ASS_FONTPROVIDER_CORETEXT, &ass_coretext_add_provider, "coretext"},
10261065 #endif
10271066 #ifdef CONFIG_DIRECTWRITE
1028 { ASS_FONTPROVIDER_DIRECTWRITE, &ass_directwrite_add_provider, "directwrite"},
1067 { ASS_FONTPROVIDER_DIRECTWRITE, &ass_directwrite_add_provider, "directwrite"
1068 #if ASS_WINAPI_DESKTOP
1069 " (with GDI)"
1070 #else
1071 " (without GDI)"
1072 #endif
1073 },
10291074 #endif
10301075 #ifdef CONFIG_FONTCONFIG
10311076 { ASS_FONTPROVIDER_FONTCONFIG, &ass_fontconfig_add_provider, "fontconfig"},
10501095 if (priv == NULL)
10511096 return NULL;
10521097
1098 priv->library = library;
1099 priv->ftlibrary = ftlibrary;
10531100 priv->uid = 1;
10541101 priv->family_default = family ? strdup(family) : NULL;
10551102 priv->path_default = path ? strdup(path) : NULL;
10561103 priv->index_default = 0;
10571104
1058 priv->embedded_provider = ass_embedded_fonts_add_provider(library, priv,
1059 ftlibrary, num_emfonts);
1105 priv->embedded_provider = ass_embedded_fonts_add_provider(priv, num_emfonts);
10601106
10611107 if (priv->embedded_provider == NULL) {
10621108 ass_msg(library, MSGL_WARN, "failed to create embedded font provider");
11421188 }
11431189 }
11441190
1145 size_t ass_update_embedded_fonts(ASS_Library *lib, ASS_FontSelector *selector,
1146 FT_Library ftlib, size_t num_loaded)
1191 size_t ass_update_embedded_fonts(ASS_FontSelector *selector, size_t num_loaded)
11471192 {
11481193 if (!selector->embedded_provider)
11491194 return num_loaded;
11501195
1151 for (size_t i = num_loaded; i < lib->num_fontdata; i++)
1152 process_fontdata(selector->embedded_provider, lib, ftlib, i);
1153 return lib->num_fontdata;
1154 }
1196 size_t num_fontdata = selector->library->num_fontdata;
1197 for (size_t i = num_loaded; i < num_fontdata; i++)
1198 process_fontdata(selector->embedded_provider, i);
1199 return num_fontdata;
1200 }
2626 typedef struct ass_shaper_font_data ASS_ShaperFontData;
2727 typedef struct font_selector ASS_FontSelector;
2828 typedef struct font_info ASS_FontInfo;
29 typedef struct ass_font_stream ASS_FontStream;
2930
3031 #include "ass_types.h"
3132 #include "ass.h"
131132 ASS_FontProviderMetaData *meta);
132133
133134 /**
134 * Get an appropriate fallback font for a given codepoint.
135 * Get an appropriate fallback extended font family for a given codepoint.
135136 *
136137 * This is called by fontselect whenever a glyph is not found in the
137138 * physical font list of a logical font. fontselect will try to add the
146147 * \param lib ASS_Library instance
147148 * \param family original font family name (try matching a similar font) (never NULL)
148149 * \param codepoint Unicode codepoint (UTF-32)
149 * \return output font family, allocated with malloc(), must be freed
150 * \return output extended font family, allocated with malloc(), must be freed
150151 * by caller.
151152 */
152153 typedef char *(*GetFallbackFunc)(void *priv,
169170 /*
170171 * Basic font metadata. All strings must be encoded with UTF-8.
171172 * At minimum one family is required.
173 * If no family names are present, ass_font_provider_add_font
174 * will open the font file and read metadata from there,
175 * replacing everything but extended_family.
172176 */
173177 struct ass_font_provider_meta_data {
174178 /**
175 * List of localized font family names, e.g. "Arial".
179 * List of localized font family names,
180 * e.g. "Arial", "Arial Narrow" or "Arial Black".
176181 */
177182 char **families;
178183
179184 /**
180 * List of localized full names, e.g. "Arial Bold".
185 * List of localized full names, e.g. "Arial Bold",
186 * "Arial Narrow Bold", "Arial Black" or "Arial Black Normal".
181187 * The English name should be listed first to speed up typical matching.
182188 */
183189 char **fullnames;
184190
185191 /**
186 * The PostScript name, e.g. "Arial-BoldMT".
192 * The PostScript name, e.g. "Arial-BoldMT",
193 * "ArialNarrow-Bold" or "Arial-Black".
187194 */
188195 char *postscript_name;
196
197 /**
198 * Any name that identifies an extended font family, e.g. "Arial".
199 * This could be the full designer-named typographic family or (perhaps
200 * even better) a (sub)family limited to weight/width/slant variations.
201 * Names returned by get_fallback are matched against this field.
202 */
203 char *extended_family;
189204
190205 int n_family; // Number of localized family names
191206 int n_fullname; // Number of localized full names
197212 // See FONT_WIDTH_*
198213 };
199214
200 typedef struct ass_font_stream ASS_FontStream;
201
202215 struct ass_font_stream {
203216 // GetDataFunc
204217 size_t (*func)(void *font_priv, unsigned char *data,
231244 ass_fontselect_init(ASS_Library *library, FT_Library ftlibrary, size_t *num_emfonts,
232245 const char *family, const char *path, const char *config,
233246 ASS_DefaultFontProvider dfp);
234 char *ass_font_select(ASS_FontSelector *priv, ASS_Library *library,
247 char *ass_font_select(ASS_FontSelector *priv,
235248 ASS_Font *font, int *index, char **postscript_name,
236249 int *uid, ASS_FontStream *data, uint32_t code);
237250 void ass_fontselect_free(ASS_FontSelector *priv);
269282 int index, void *data);
270283
271284 /**
272 * \brief Read a font's parameters
273 * \param lib a FT_Library to use (need not be the global one)
274 * \param path the path to the font file to read
275 * \param postscript_name the PS name of the specific face to read (set either this or index)
276 * \param index the face index to read, or -1 if not applicable
277 * \param require_family_name whether to try a fallback family name and fail if none found
278 * \param info the struct to store results into
279 * \return success
280 *
281 */
282 bool ass_get_font_info(ASS_Library *lib, FT_Library ftlib, const char *path,
283 const char *postscript_name, int index,
284 bool require_family_name,
285 ASS_FontProviderMetaData *info);
286
287 /**
288285 * \brief Free font provider and associated fonts.
289286 * \param provider the font provider
290287 *
294291 /**
295292 * \brief Update embedded and memory fonts
296293 */
297 size_t ass_update_embedded_fonts(ASS_Library *lib, ASS_FontSelector *selector,
298 FT_Library ftlib, size_t num_loaded);
294 size_t ass_update_embedded_fonts(ASS_FontSelector *selector, size_t num_loaded);
299295
300296 #endif /* LIBASS_FONTSELECT_H */
28772877
28782878 if (render_priv->library->num_fontdata != render_priv->num_emfonts) {
28792879 assert(render_priv->library->num_fontdata > render_priv->num_emfonts);
2880 render_priv->num_emfonts = ass_update_embedded_fonts(render_priv->library,
2881 render_priv->fontselect, render_priv->ftlibrary, render_priv->num_emfonts);
2880 render_priv->num_emfonts = ass_update_embedded_fonts(
2881 render_priv->fontselect, render_priv->num_emfonts);
28822882 }
28832883
28842884 ass_shaper_set_kerning(render_priv->shaper, track->Kerning);
791791 }
792792
793793 /**
794 * \brief Determine whether HarfBuzz ignores any font-provided glyph
795 * for this Unicode codepoint and replaces it with a zero-width glyph.
796 * Matches hb_unicode_funcs_t::is_default_ignorable in hb-unicode.hh.
797 * The affected codepoints are a subset of Unicode's Default_Ignorable list.
798 */
799 static inline bool is_harfbuzz_ignorable(unsigned symbol) {
800 switch (symbol >> 8) {
801 case 0x00: return symbol == 0x00AD;
802 case 0x03: return symbol == 0x034F;
803 case 0x06: return symbol == 0x061C;
804 case 0x17: return symbol >= 0x17B4 && symbol <= 0x17B5;
805 case 0x18: return symbol >= 0x180B && symbol <= 0x180E;
806 case 0x20: return (symbol >= 0x200B && symbol <= 0x200F) ||
807 (symbol >= 0x202A && symbol <= 0x202E) ||
808 (symbol >= 0x2060 && symbol <= 0x206F);
809 case 0xFE: return (symbol >= 0xFE00 && symbol <= 0xFE0F) ||
810 symbol == 0xFEFF;
811 case 0xFF: return symbol >= 0xFFF0 && symbol <= 0xFFF8;
812 case 0x1D1: return symbol >= 0x1D173 && symbol <= 0x1D17A;
813 default: return symbol >= 0xE0000 && symbol <= 0xE0FFF;
814 }
815 }
816
817 /**
818 * \brief Remove all zero-width invisible characters from the text.
819 */
820 static void ass_shaper_skip_characters(GlyphInfo *glyphs, size_t len)
821 {
822 for (int i = 0; i < len; i++) {
823 if (is_harfbuzz_ignorable(glyphs[i].symbol)) {
824 glyphs[i].skip = true;
825 }
826 }
827 }
828
829 /**
794830 * \brief Find shape runs according to the event's selected fonts
795831 */
796832 void ass_shaper_find_runs(ASS_Shaper *shaper, ASS_Renderer *render_priv,
800836 int shape_run = 0;
801837
802838 ass_shaper_determine_script(shaper, glyphs, len);
839 ass_shaper_skip_characters(glyphs, len);
803840
804841 // find appropriate fonts for the shape runs
805842 for (i = 0; i < len; i++) {
806843 GlyphInfo *info = glyphs + i;
807 if (!info->drawing_text.str) {
808 // set size and get glyph index
844 if (!info->drawing_text.str && !info->skip) {
845 // get font face and glyph index
809846 ass_font_get_index(render_priv->fontselect, info->font,
810847 info->symbol, &info->face_index, &info->glyph_index);
811848 }
812849 if (i > 0) {
813850 GlyphInfo *last = glyphs + i - 1;
814851 if ((last->font != info->font ||
815 last->face_index != info->face_index ||
852 (!info->skip &&
853 last->face_index != info->face_index) ||
816854 last->script != info->script ||
817855 info->starts_new_run ||
818856 last->flags != info->flags))
819857 shape_run++;
858 else if (info->skip)
859 info->face_index = last->face_index;
820860 }
821861 info->shape_run_id = shape_run;
822862 }
862902 shaper->bidi_brackets = match_brackets;
863903 }
864904 #endif
865
866 /**
867 * \brief Remove all zero-width invisible characters from the text.
868 * \param text_info text
869 */
870 static void ass_shaper_skip_characters(TextInfo *text_info)
871 {
872 int i;
873 GlyphInfo *glyphs = text_info->glyphs;
874
875 for (i = 0; i < text_info->length; i++) {
876 // Skip direction override control characters
877 if ((glyphs[i].symbol <= 0x202e && glyphs[i].symbol >= 0x202a)
878 || (glyphs[i].symbol <= 0x200f && glyphs[i].symbol >= 0x200b)
879 || (glyphs[i].symbol <= 0x206f && glyphs[i].symbol >= 0x2060)
880 || (glyphs[i].symbol <= 0xfe0f && glyphs[i].symbol >= 0xfe00)
881 || (glyphs[i].symbol <= 0xe01ef && glyphs[i].symbol >= 0xe0100)
882 || (glyphs[i].symbol <= 0x180f && glyphs[i].symbol >= 0x180b)
883 || glyphs[i].symbol == 0x061c
884 || glyphs[i].symbol == 0xfeff
885 || glyphs[i].symbol == 0x00ad
886 || glyphs[i].symbol == 0x034f) {
887 glyphs[i].symbol = 0;
888 glyphs[i].skip = true;
889 }
890 }
891 }
892905
893906 /**
894907 * \brief Shape an event's text. Calculates directional runs and shapes them.
937950 switch (shaper->shaping_level) {
938951 case ASS_SHAPING_SIMPLE:
939952 shape_fribidi(shaper, glyphs, text_info->length);
940 ass_shaper_skip_characters(text_info);
941953 return true;
942954 case ASS_SHAPING_COMPLEX:
943955 default:
103103 unsigned ass_utf8_get_char(char **str);
104104 unsigned ass_utf8_put_char(char *dest, uint32_t ch);
105105 void ass_utf16be_to_utf8(char *dst, size_t dst_size, uint8_t *src, size_t src_size);
106 #if defined(__MINGW32__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
107 __attribute__ ((format (gnu_printf, 3, 4)))
108 #elif defined(__GNUC__)
109 __attribute__ ((format (printf, 3, 4)))
110 #endif
106111 void ass_msg(ASS_Library *priv, int lvl, const char *fmt, ...);
107112 int lookup_style(ASS_Track *track, char *name);
108113 ASS_Style *lookup_style_strict(ASS_Track *track, char *name, size_t len);
1414 #include <unknwn.h>
1515
1616 typedef struct IDWriteFactory IDWriteFactory;
17 typedef struct IDWriteFactory3 IDWriteFactory3;
1718 typedef struct IDWriteFont IDWriteFont;
1819 typedef struct IDWriteFontCollection IDWriteFontCollection;
1920 typedef struct IDWriteFontFace IDWriteFontFace;
21 typedef struct IDWriteFontFace3 IDWriteFontFace3;
22 typedef struct IDWriteFontFaceReference IDWriteFontFaceReference;
2023 typedef struct IDWriteFontFamily IDWriteFontFamily;
2124 typedef struct IDWriteFontList IDWriteFontList;
2225 typedef struct IDWriteFontFile IDWriteFontFile;
2326 typedef struct IDWriteFontFileLoader IDWriteFontFileLoader;
2427 typedef struct IDWriteFontFileStream IDWriteFontFileStream;
28 typedef struct IDWriteFontSet IDWriteFontSet;
2529 typedef struct IDWriteInlineObject IDWriteInlineObject;
2630 typedef struct IDWriteLocalizedStrings IDWriteLocalizedStrings;
2731 typedef struct IDWritePixelSnapping IDWritePixelSnapping;
7074 DWRITE_FONT_FACE_TYPE_RAW_CFF
7175 } DWRITE_FONT_FACE_TYPE;
7276
77 typedef enum DWRITE_FONT_PROPERTY_ID {
78 DWRITE_FONT_PROPERTY_ID_NONE = 0,
79 DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FAMILY_NAME,
80 DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FAMILY_NAME,
81 DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FACE_NAME,
82 DWRITE_FONT_PROPERTY_ID_FULL_NAME,
83 DWRITE_FONT_PROPERTY_ID_WIN32_FAMILY_NAME,
84 DWRITE_FONT_PROPERTY_ID_POSTSCRIPT_NAME,
85 DWRITE_FONT_PROPERTY_ID_DESIGN_SCRIPT_LANGUAGE_TAG,
86 DWRITE_FONT_PROPERTY_ID_SUPPORTED_SCRIPT_LANGUAGE_TAG,
87 DWRITE_FONT_PROPERTY_ID_SEMANTIC_TAG,
88 DWRITE_FONT_PROPERTY_ID_WEIGHT,
89 DWRITE_FONT_PROPERTY_ID_STRETCH,
90 DWRITE_FONT_PROPERTY_ID_STYLE,
91 DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FACE_NAME,
92 /* rest dropped */
93 } DWRITE_FONT_PROPERTY_ID;
94
7395 typedef enum DWRITE_FONT_SIMULATIONS {
7496 DWRITE_FONT_SIMULATIONS_NONE = 0x0000,
7597 DWRITE_FONT_SIMULATIONS_BOLD = 0x0001,
101123 /* rest dropped */
102124 } DWRITE_FONT_WEIGHT;
103125
126 typedef enum DWRITE_LOCALITY {
127 DWRITE_LOCALITY_REMOTE = 0,
128 DWRITE_LOCALITY_PARTIAL,
129 DWRITE_LOCALITY_LOCAL
130 } DWRITE_LOCALITY;
131
104132 typedef struct DWRITE_FONT_METRICS {
105133 UINT16 designUnitsPerEm;
106134 UINT16 ascent;
114142 UINT16 strikethroughThickness;
115143 } DWRITE_FONT_METRICS;
116144
145 typedef struct DWRITE_FONT_PROPERTY {
146 DWRITE_FONT_PROPERTY_ID propertyId;
147 const WCHAR *propertyValue;
148 const WCHAR *localeName;
149 } DWRITE_FONT_PROPERTY;
150
117151 typedef struct DWRITE_GLYPH_OFFSET DWRITE_GLYPH_OFFSET;
118152
119153 typedef struct DWRITE_GLYPH_RUN {
191225 IDWriteTextFormat **textFormat) PURE;
192226
193227 STDMETHOD(dummy12)(THIS);
228
194229 STDMETHOD(GetGdiInterop)(THIS_
195230 IDWriteGdiInterop **gdiInterop) PURE;
196231
213248 #define IDWriteFactory_CreateTextFormat(This,fontFamilyName,fontCollection,fontWeight,fontStyle,fontStretch,fontSize,localeName,textFormat) (This)->lpVtbl->CreateTextFormat(This,fontFamilyName,fontCollection,fontWeight,fontStyle,fontStretch,fontSize,localeName,textFormat)
214249 #define IDWriteFactory_CreateTextLayout(This,string,stringLength,textFormat,maxWidth,maxHeight,textLayout) (This)->lpVtbl->CreateTextLayout(This,string,stringLength,textFormat,maxWidth,maxHeight,textLayout)
215250 #define IDWriteFactory_GetGdiInterop(This,gdiInterop) (This)->lpVtbl->GetGdiInterop(This,gdiInterop)
251 #endif /*COBJMACROS*/
252
253 #undef INTERFACE
254 #define INTERFACE IDWriteFactory3
255 DECLARE_INTERFACE_(IDWriteFactory3,IDWriteFactory)
256 {
257 BEGIN_INTERFACE
258
259 #ifndef __cplusplus
260 /* IUnknown methods */
261 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
262 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
263 STDMETHOD_(ULONG, Release)(THIS) PURE;
264
265 /* IDWriteFactory methods */
266 STDMETHOD(GetSystemFontCollection)(THIS_
267 IDWriteFontCollection **fontCollection,
268 BOOL checkForUpdates __MINGW_DEF_ARG_VAL(FALSE)) PURE;
269
270 STDMETHOD(dummy1)(THIS);
271 STDMETHOD(dummy2)(THIS);
272 STDMETHOD(dummy3)(THIS);
273 STDMETHOD(dummy4)(THIS);
274 STDMETHOD(dummy5)(THIS);
275 STDMETHOD(dummy6)(THIS);
276 STDMETHOD(dummy7)(THIS);
277 STDMETHOD(dummy8)(THIS);
278 STDMETHOD(dummy9)(THIS);
279 STDMETHOD(dummy10)(THIS);
280 STDMETHOD(dummy11)(THIS);
281
282 STDMETHOD(CreateTextFormat)(THIS_
283 WCHAR const *fontFamilyName,
284 IDWriteFontCollection *fontCollection,
285 DWRITE_FONT_WEIGHT fontWeight,
286 DWRITE_FONT_STYLE fontStyle,
287 DWRITE_FONT_STRETCH fontStretch,
288 FLOAT fontSize,
289 WCHAR const *localeName,
290 IDWriteTextFormat **textFormat) PURE;
291
292 STDMETHOD(dummy12)(THIS);
293
294 STDMETHOD(GetGdiInterop)(THIS_
295 IDWriteGdiInterop **gdiInterop) PURE;
296
297 STDMETHOD(CreateTextLayout)(THIS_
298 WCHAR const *string,
299 UINT32 stringLength,
300 IDWriteTextFormat *textFormat,
301 FLOAT maxWidth,
302 FLOAT maxHeight,
303 IDWriteTextLayout **textLayout) PURE;
304 #endif
305
306 STDMETHOD(dummy13)(THIS);
307 STDMETHOD(dummy14)(THIS);
308 STDMETHOD(dummy15)(THIS);
309 STDMETHOD(dummy16)(THIS);
310 STDMETHOD(dummy17)(THIS);
311
312 /* IDWriteFactory1 methods */
313 STDMETHOD(dummy18)(THIS);
314 STDMETHOD(dummy19)(THIS);
315
316 /* IDWriteFactory2 methods */
317 STDMETHOD(dummy20)(THIS);
318 STDMETHOD(dummy21)(THIS);
319 STDMETHOD(dummy22)(THIS);
320 STDMETHOD(dummy23)(THIS);
321 STDMETHOD(dummy24)(THIS);
322
323 /* IDWriteFactory3 methods */
324 STDMETHOD(dummy25)(THIS);
325 STDMETHOD(dummy26)(THIS);
326 STDMETHOD(dummy27)(THIS);
327 STDMETHOD(dummy28)(THIS);
328
329 STDMETHOD(GetSystemFontSet)(THIS_
330 IDWriteFontSet **fontSet) PURE;
331
332 /* rest dropped */
333 END_INTERFACE
334 };
335 #ifdef COBJMACROS
336 #define IDWriteFactory3_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
337 #define IDWriteFactory3_AddRef(This) (This)->lpVtbl->AddRef(This)
338 #define IDWriteFactory3_Release(This) (This)->lpVtbl->Release(This)
339 #define IDWriteFactory3_GetSystemFontCollection(This,fontCollection,checkForUpdates) (This)->lpVtbl->GetSystemFontCollection(This,fontCollection,checkForUpdates)
340 #define IDWriteFactory3_CreateTextFormat(This,fontFamilyName,fontCollection,fontWeight,fontStyle,fontStretch,fontSize,localeName,textFormat) (This)->lpVtbl->CreateTextFormat(This,fontFamilyName,fontCollection,fontWeight,fontStyle,fontStretch,fontSize,localeName,textFormat)
341 #define IDWriteFactory3_CreateTextLayout(This,string,stringLength,textFormat,maxWidth,maxHeight,textLayout) (This)->lpVtbl->CreateTextLayout(This,string,stringLength,textFormat,maxWidth,maxHeight,textLayout)
342 #define IDWriteFactory3_GetGdiInterop(This,gdiInterop) (This)->lpVtbl->GetGdiInterop(This,gdiInterop)
343 #define IDWriteFactory3_GetSystemFontSet(This,fontSet) (This)->lpVtbl->GetSystemFontSet(This,fontSet)
216344 #endif /*COBJMACROS*/
217345
218346 #undef INTERFACE
339467
340468 STDMETHOD_(UINT32, GetIndex)(THIS) PURE;
341469
470 STDMETHOD(dummy1)(THIS);
471 STDMETHOD(dummy2)(THIS);
472 STDMETHOD(dummy3)(THIS);
473 STDMETHOD(dummy4)(THIS);
474 STDMETHOD(dummy5)(THIS);
475
476 STDMETHOD(GetGlyphIndices)(THIS_
477 UINT32 const *codePoints,
478 UINT32 codePointCount,
479 UINT16 *glyphIndices) PURE;
480
342481 /* rest dropped */
343482 END_INTERFACE
344483 };
345484 #ifdef COBJMACROS
485 #define IDWriteFontFace_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
486 #define IDWriteFontFace_AddRef(This) (This)->lpVtbl->AddRef(This)
346487 #define IDWriteFontFace_Release(This) (This)->lpVtbl->Release(This)
347488 #define IDWriteFontFace_GetType(This) (This)->lpVtbl->GetType(This)
348 #define IDWriteFontFace_GetFiles(This,fontFiles,b) (This)->lpVtbl->GetFiles(This,fontFiles,b)
489 #define IDWriteFontFace_GetFiles(This,numberOfFiles,fontFiles) (This)->lpVtbl->GetFiles(This,numberOfFiles,fontFiles)
349490 #define IDWriteFontFace_GetIndex(This) (This)->lpVtbl->GetIndex(This)
491 #define IDWriteFontFace_GetGlyphIndices(This,codePoints,codePointCount,glyphIndices) (This)->lpVtbl->GetGlyphIndices(This,codePoints,codePointCount,glyphIndices)
492 #endif /*COBJMACROS*/
493
494 #undef INTERFACE
495 #define INTERFACE IDWriteFontFace3
496 DECLARE_INTERFACE_(IDWriteFontFace3,IDWriteFontFace)
497 {
498 BEGIN_INTERFACE
499
500 #ifndef __cplusplus
501 /* IUnknown methods */
502 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
503 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
504 STDMETHOD_(ULONG, Release)(THIS) PURE;
505
506 /* IDWriteFontFace methods */
507 STDMETHOD_(DWRITE_FONT_FACE_TYPE, GetType)(THIS) PURE;
508
509 STDMETHOD(GetFiles)(THIS_
510 UINT32 *numberOfFiles,
511 IDWriteFontFile **fontFiles) PURE;
512
513 STDMETHOD_(UINT32, GetIndex)(THIS) PURE;
514
515 STDMETHOD(dummy1)(THIS);
516 STDMETHOD(dummy2)(THIS);
517 STDMETHOD(dummy3)(THIS);
518 STDMETHOD(dummy4)(THIS);
519 STDMETHOD(dummy5)(THIS);
520
521 STDMETHOD(GetGlyphIndices)(THIS_
522 UINT32 const *codePoints,
523 UINT32 codePointCount,
524 UINT16 *glyphIndices) PURE;
525
526 STDMETHOD(dummy6)(THIS);
527 STDMETHOD(dummy7)(THIS);
528 STDMETHOD(dummy8)(THIS);
529 STDMETHOD(dummy9)(THIS);
530 STDMETHOD(dummy10)(THIS);
531 STDMETHOD(dummy11)(THIS);
532 #endif
533
534 /* IDWriteFontFace1 methods */
535 STDMETHOD(dummy12)(THIS);
536 STDMETHOD(dummy13)(THIS);
537 STDMETHOD(dummy14)(THIS);
538 STDMETHOD(dummy15)(THIS);
539 STDMETHOD(dummy16)(THIS);
540 STDMETHOD(dummy17)(THIS);
541 STDMETHOD(dummy18)(THIS);
542 STDMETHOD(dummy19)(THIS);
543 STDMETHOD(dummy20)(THIS);
544 STDMETHOD(dummy21)(THIS);
545 STDMETHOD(dummy22)(THIS);
546 STDMETHOD(dummy23)(THIS);
547
548 /* IDWriteFontFace2 methods */
549 STDMETHOD(dummy24)(THIS);
550 STDMETHOD(dummy25)(THIS);
551 STDMETHOD(dummy26)(THIS);
552 STDMETHOD(dummy27)(THIS);
553 STDMETHOD(dummy28)(THIS);
554
555 /* IDWriteFontFace3 methods */
556 STDMETHOD(dummy29)(THIS);
557 STDMETHOD(dummy30)(THIS);
558
559 STDMETHOD_(DWRITE_FONT_WEIGHT, GetWeight)(THIS) PURE;
560 STDMETHOD_(DWRITE_FONT_STRETCH, GetStretch)(THIS) PURE;
561 STDMETHOD_(DWRITE_FONT_STYLE, GetStyle)(THIS) PURE;
562
563 STDMETHOD(GetFamilyNames)(THIS_
564 IDWriteLocalizedStrings **names) PURE;
565
566 STDMETHOD(dummy31)(THIS);
567
568 STDMETHOD(GetInformationalStrings)(THIS_
569 DWRITE_INFORMATIONAL_STRING_ID informationalStringID,
570 IDWriteLocalizedStrings **informationalStrings,
571 BOOL *exists) PURE;
572
573 /* rest dropped */
574 END_INTERFACE
575 };
576 #ifdef COBJMACROS
577 #define IDWriteFontFace3_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
578 #define IDWriteFontFace3_AddRef(This) (This)->lpVtbl->AddRef(This)
579 #define IDWriteFontFace3_Release(This) (This)->lpVtbl->Release(This)
580 #define IDWriteFontFace3_GetType(This) (This)->lpVtbl->GetType(This)
581 #define IDWriteFontFace3_GetFiles(This,numberOfFiles,fontFiles) (This)->lpVtbl->GetFiles(This,numberOfFiles,fontFiles)
582 #define IDWriteFontFace3_GetIndex(This) (This)->lpVtbl->GetIndex(This)
583 #define IDWriteFontFace3_GetGlyphIndices(This,codePoints,codePointCount,glyphIndices) (This)->lpVtbl->GetGlyphIndices(This,codePoints,codePointCount,glyphIndices)
584 #define IDWriteFontFace3_GetWeight(This) (This)->lpVtbl->GetWeight(This)
585 #define IDWriteFontFace3_GetStretch(This) (This)->lpVtbl->GetStretch(This)
586 #define IDWriteFontFace3_GetStyle(This) (This)->lpVtbl->GetStyle(This)
587 #define IDWriteFontFace3_GetFamilyNames(This,names) (This)->lpVtbl->GetFamilyNames(This,names)
588 #define IDWriteFontFace3_GetInformationalStrings(This,informationalStringID,informationalStrings,exists) (This)->lpVtbl->GetInformationalStrings(This,informationalStringID,informationalStrings,exists)
589 #endif /*COBJMACROS*/
590
591 #undef INTERFACE
592 #define INTERFACE IDWriteFontFaceReference
593 DECLARE_INTERFACE_(IDWriteFontFaceReference,IUnknown)
594 {
595 BEGIN_INTERFACE
596
597 #ifndef __cplusplus
598 /* IUnknown methods */
599 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
600 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
601 STDMETHOD_(ULONG, Release)(THIS) PURE;
602 #endif
603
604 STDMETHOD(CreateFontFace)(THIS_
605 IDWriteFontFace3 **fontFace) PURE;
606
607 STDMETHOD(dummy1)(THIS);
608 STDMETHOD(dummy2)(THIS);
609 STDMETHOD(dummy3)(THIS);
610
611 STDMETHOD_(DWRITE_FONT_SIMULATIONS, GetSimulations)(THIS) PURE;
612
613 STDMETHOD(dummy4)(THIS);
614 STDMETHOD(dummy5)(THIS);
615 STDMETHOD(dummy6)(THIS);
616 STDMETHOD(dummy7)(THIS);
617
618 STDMETHOD_(DWRITE_LOCALITY, GetLocality)(THIS) PURE;
619
620 /* rest dropped */
621 END_INTERFACE
622 };
623 #ifdef COBJMACROS
624 #define IDWriteFontFaceReference_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
625 #define IDWriteFontFaceReference_AddRef(This) (This)->lpVtbl->AddRef(This)
626 #define IDWriteFontFaceReference_Release(This) (This)->lpVtbl->Release(This)
627 #define IDWriteFontFaceReference_CreateFontFace(This,fontFace) (This)->lpVtbl->CreateFontFace(This,fontFace)
628 #define IDWriteFontFaceReference_GetSimulations(This) (This)->lpVtbl->GetSimulations(This)
629 #define IDWriteFontFaceReference_GetLocality(This) (This)->lpVtbl->GetLocality(This)
350630 #endif /*COBJMACROS*/
351631
352632 #undef INTERFACE
487767 #endif /*COBJMACROS*/
488768
489769 #undef INTERFACE
490 #define INTERFACE IDWriteLocalizedStrings
491 DECLARE_INTERFACE_(IDWriteLocalizedStrings,IUnknown)
492 {
493 BEGIN_INTERFACE
494
495 #ifndef __cplusplus
496 /* IUnknown methods */
497 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
498 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
499 STDMETHOD_(ULONG, Release)(THIS) PURE;
500 #endif
501
502 /* IDWriteLocalizedStrings methods */
503 STDMETHOD_(UINT32, GetCount)(THIS) PURE;
770 #define INTERFACE IDWriteFontSet
771 DECLARE_INTERFACE_(IDWriteFontSet,IUnknown)
772 {
773 BEGIN_INTERFACE
774
775 #ifndef __cplusplus
776 /* IUnknown methods */
777 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
778 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
779 STDMETHOD_(ULONG, Release)(THIS) PURE;
780 #endif
781
782 /* IDWriteFontSet methods */
783 STDMETHOD_(UINT32, GetFontCount)(THIS) PURE;
784
785 STDMETHOD(GetFontFaceReference)(THIS_
786 UINT32 listIndex,
787 IDWriteFontFaceReference **fontFaceReference) PURE;
504788
505789 STDMETHOD(dummy1)(THIS);
506790 STDMETHOD(dummy2)(THIS);
507791 STDMETHOD(dummy3)(THIS);
508792 STDMETHOD(dummy4)(THIS);
509
793 STDMETHOD(dummy5)(THIS);
794 STDMETHOD(dummy6)(THIS);
795 STDMETHOD(dummy7)(THIS);
796
797 STDMETHOD(GetMatchingFonts)(THIS_
798 DWRITE_FONT_PROPERTY const *properties,
799 UINT32 propertyCount,
800 IDWriteFontSet **filteredSet) PURE;
801
802 /* rest dropped */
803 END_INTERFACE
804 };
805 #ifdef COBJMACROS
806 #define IDWriteFontSet_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
807 #define IDWriteFontSet_AddRef(This) (This)->lpVtbl->AddRef(This)
808 #define IDWriteFontSet_Release(This) (This)->lpVtbl->Release(This)
809 #define IDWriteFontSet_GetFontCount(This) (This)->lpVtbl->GetFontCount(This)
810 #define IDWriteFontSet_GetFontFaceReference(This,listIndex,fontFaceReference) (This)->lpVtbl->GetFontFaceReference(This,listIndex,fontFaceReference)
811 #define IDWriteFontSet_GetMatchingFonts(This,properties,propertyCount,filteredSet) (This)->lpVtbl->GetMatchingFonts(This,properties,propertyCount,filteredSet)
812 #endif /*COBJMACROS*/
813
814 #undef INTERFACE
815 #define INTERFACE IDWriteLocalizedStrings
816 DECLARE_INTERFACE_(IDWriteLocalizedStrings,IUnknown)
817 {
818 BEGIN_INTERFACE
819
820 #ifndef __cplusplus
821 /* IUnknown methods */
822 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
823 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
824 STDMETHOD_(ULONG, Release)(THIS) PURE;
825 #endif
826
827 /* IDWriteLocalizedStrings methods */
828 STDMETHOD_(UINT32, GetCount)(THIS) PURE;
829
830 STDMETHOD(dummy1)(THIS);
831 STDMETHOD(dummy2)(THIS);
832 STDMETHOD(dummy3)(THIS);
833
834 STDMETHOD(GetStringLength)(THIS_
835 UINT32 index,
836 UINT32 *length) PURE;
510837 STDMETHOD(GetString)(THIS_
511838 UINT32 index,
512839 WCHAR *stringBuffer,
517844 #ifdef COBJMACROS
518845 #define IDWriteLocalizedStrings_Release(This) (This)->lpVtbl->Release(This)
519846 #define IDWriteLocalizedStrings_GetCount(This) (This)->lpVtbl->GetCount(This)
847 #define IDWriteLocalizedStrings_GetStringLength(This,index,length) (This)->lpVtbl->GetStringLength(This,index,length)
520848 #define IDWriteLocalizedStrings_GetString(This,index,stringBuffer,size) (This)->lpVtbl->GetString(This,index,stringBuffer,size)
521849 #endif /*COBJMACROS*/
522850
6981026 STDMETHOD(CreateFontFromLOGFONT)(THIS_
6991027 LOGFONTW const *logFont,
7001028 IDWriteFont **font) PURE;
1029
1030 STDMETHOD(dummy1)(THIS);
1031 STDMETHOD(dummy2)(THIS);
1032
1033 STDMETHOD(CreateFontFaceFromHdc)(THIS_
1034 HDC hdc,
1035 IDWriteFontFace **fontFace) PURE;
7011036 /* rest dropped */
7021037 END_INTERFACE
7031038 };
7061041 #define IDWriteGdiInterop_AddRef(This) (This)->lpVtbl->AddRef(This)
7071042 #define IDWriteGdiInterop_Release(This) (This)->lpVtbl->Release(This)
7081043 #define IDWriteGdiInterop_CreateFontFromLOGFONT(This,logFont,font) (This)->lpVtbl->CreateFontFromLOGFONT(This,logFont,font)
1044 #define IDWriteGdiInterop_CreateFontFaceFromHdc(This,hdc,fontFace) (This)->lpVtbl->CreateFontFaceFromHdc(This,hdc,fontFace)
7091045 #endif /*COBJMACROS*/
7101046
7111047 DEFINE_GUID(IID_IDWriteFactory, 0xb859ee5a,0xd838,0x4b5b,0xa2,0xe8,0x1a,0xdc,0x7d,0x93,0xdb,0x48);
1048 DEFINE_GUID(IID_IDWriteFactory3, 0x9a1b41c3,0xd3bb,0x466a,0x87,0xfc,0xfe,0x67,0x55,0x6a,0x3b,0x65);
1049 DEFINE_GUID(IID_IDWriteFontFace3, 0xd37d7598,0x09be,0x4222,0xa2,0x36,0x20,0x81,0x34,0x1c,0xc1,0xf2);
7121050 DEFINE_GUID(IID_IDWritePixelSnapping, 0xeaf3a2da,0xecf4,0x4d24,0xb6,0x44,0xb3,0x4f,0x68,0x42,0x02,0x4b);
7131051 DEFINE_GUID(IID_IDWriteTextRenderer, 0xef8a8135,0x5cc6,0x45fe,0x88,0x25,0xc5,0xa0,0x72,0x4e,0xb8,0x19);
714 DEFINE_GUID(IID_IDWriteGdiInterop, 0x1edd9491,0x9853,0x4299,0x89,0x8f,0x64,0x32,0x98,0x3b,0x6f,0x3a);
7151052
7161053 #endif /* __INC_DWRITE__ */
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
171171 unique=`for i in $$list; do \
172172 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
173173 done | $(am__uniquify_input)`
174 ETAGS = etags
175 CTAGS = ctags
176174 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
177175 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
178176 ACLOCAL = @ACLOCAL@
188186 CC = @CC@
189187 CCDEPMODE = @CCDEPMODE@
190188 CFLAGS = @CFLAGS@
191 CPP = @CPP@
192189 CPPFLAGS = @CPPFLAGS@
190 CSCOPE = @CSCOPE@
191 CTAGS = @CTAGS@
193192 CYGPATH_W = @CYGPATH_W@
194193 DEFS = @DEFS@
195194 DEPDIR = @DEPDIR@
200199 ECHO_N = @ECHO_N@
201200 ECHO_T = @ECHO_T@
202201 EGREP = @EGREP@
202 ETAGS = @ETAGS@
203203 EXEEXT = @EXEEXT@
204204 FGREP = @FGREP@
205205 FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
301301 prefix = @prefix@
302302 program_transform_name = @program_transform_name@
303303 psdir = @psdir@
304 runstatedir = @runstatedir@
304305 sbindir = @sbindir@
305306 sharedstatedir = @sharedstatedir@
306307 srcdir = @srcdir@
467468
468469 distclean-tags:
469470 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
470
471471 distdir: $(BUILT_SOURCES)
472472 $(MAKE) $(AM_MAKEFLAGS) distdir-am
473473
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
171171 unique=`for i in $$list; do \
172172 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
173173 done | $(am__uniquify_input)`
174 ETAGS = etags
175 CTAGS = ctags
176174 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
177175 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
178176 ACLOCAL = @ACLOCAL@
188186 CC = @CC@
189187 CCDEPMODE = @CCDEPMODE@
190188 CFLAGS = @CFLAGS@
191 CPP = @CPP@
192189 CPPFLAGS = @CPPFLAGS@
190 CSCOPE = @CSCOPE@
191 CTAGS = @CTAGS@
193192 CYGPATH_W = @CYGPATH_W@
194193 DEFS = @DEFS@
195194 DEPDIR = @DEPDIR@
200199 ECHO_N = @ECHO_N@
201200 ECHO_T = @ECHO_T@
202201 EGREP = @EGREP@
202 ETAGS = @ETAGS@
203203 EXEEXT = @EXEEXT@
204204 FGREP = @FGREP@
205205 FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
301301 prefix = @prefix@
302302 program_transform_name = @program_transform_name@
303303 psdir = @psdir@
304 runstatedir = @runstatedir@
304305 sbindir = @sbindir@
305306 sharedstatedir = @sharedstatedir@
306307 srcdir = @srcdir@
467468
468469 distclean-tags:
469470 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
470
471471 distdir: $(BUILT_SOURCES)
472472 $(MAKE) $(AM_MAKEFLAGS) distdir-am
473473