Codebase list libpam-mount / 5f55122
Update upstream source from tag 'upstream/2.19' Update to upstream version '2.19' with Debian dir 19e82a1e1749802b267b2b8d70f6096908633fa9 Jochen Sprickerhof 1 year, 10 months ago
38 changed file(s) with 7655 addition(s) and 6700 deletion(s). Raw diff Collapse all Expand all
1010 /build-aux/
1111 /config.*
1212 /configure
13 /configure~
1314 /libtool
1415 /stamp-h1
1516
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2017 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,
168168 $(RECURSIVE_CLEAN_TARGETS) \
169169 $(am__extra_recursive_targets)
170170 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
171 cscope distdir dist dist-all distcheck
172 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
173 $(LISP)config.h.in
171 cscope distdir distdir-am dist dist-all distcheck
172 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
173 config.h.in
174174 # Read a list of newline-separated strings from the standard input,
175175 # and print each of them once, without duplicates. Input order is
176176 # *not* preserved.
187187 unique=`for i in $$list; do \
188188 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
189189 done | $(am__uniquify_input)`
190 ETAGS = etags
191 CTAGS = ctags
192 CSCOPE = cscope
193190 DIST_SUBDIRS = $(SUBDIRS)
194191 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
195192 $(srcdir)/libcryptmount.pc.in $(top_srcdir)/build-aux/ar-lib \
239236 GZIP_ENV = --best
240237 DIST_ARCHIVES = $(distdir).tar.xz
241238 DIST_TARGETS = dist-xz
239 # Exists only to be overridden by the user if desired.
240 AM_DISTCHECK_DVI_TARGET = dvi
242241 distuninstallcheck_listfiles = find . -type f -print
243242 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
244243 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
254253 CC = @CC@
255254 CCDEPMODE = @CCDEPMODE@
256255 CFLAGS = @CFLAGS@
257 CPP = @CPP@
258256 CPPFLAGS = @CPPFLAGS@
257 CSCOPE = @CSCOPE@
258 CTAGS = @CTAGS@
259259 CYGPATH_W = @CYGPATH_W@
260260 DEFS = @DEFS@
261261 DEPDIR = @DEPDIR@
266266 ECHO_N = @ECHO_N@
267267 ECHO_T = @ECHO_T@
268268 EGREP = @EGREP@
269 ETAGS = @ETAGS@
269270 EXEEXT = @EXEEXT@
270271 FGREP = @FGREP@
272 FILECMD = @FILECMD@
271273 GCC_FVISIBILITY_HIDDEN = @GCC_FVISIBILITY_HIDDEN@
272274 GREP = @GREP@
273275 INSTALL = @INSTALL@
371373 regular_CFLAGS = @regular_CFLAGS@
372374 regular_CPPFLAGS = @regular_CPPFLAGS@
373375 rundir = @rundir@
376 runstatedir = @runstatedir@
374377 sbindir = @sbindir@
375378 sharedstatedir = @sharedstatedir@
376379 slibdir = @slibdir@
422425 echo ' $(SHELL) ./config.status'; \
423426 $(SHELL) ./config.status;; \
424427 *) \
425 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
426 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
428 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
429 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
427430 esac;
428431
429432 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
587590 distclean-tags:
588591 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
589592 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
590
591 distdir: $(DISTFILES)
593 distdir: $(BUILT_SOURCES)
594 $(MAKE) $(AM_MAKEFLAGS) distdir-am
595
596 distdir-am: $(DISTFILES)
592597 $(am__remove_distdir)
593598 test -d "$(distdir)" || mkdir "$(distdir)"
594599 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
667672 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
668673 $(am__post_remove_distdir)
669674
675 dist-zstd: distdir
676 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
677 $(am__post_remove_distdir)
678
670679 dist-tarZ: distdir
671680 @echo WARNING: "Support for distribution archives compressed with" \
672681 "legacy program 'compress' is deprecated." >&2
709718 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
710719 *.zip*) \
711720 unzip $(distdir).zip ;;\
721 *.tar.zst*) \
722 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
712723 esac
713724 chmod -R a-w $(distdir)
714725 chmod u+w $(distdir)
724735 $(DISTCHECK_CONFIGURE_FLAGS) \
725736 --srcdir=../.. --prefix="$$dc_install_base" \
726737 && $(MAKE) $(AM_MAKEFLAGS) \
727 && $(MAKE) $(AM_MAKEFLAGS) dvi \
738 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
728739 && $(MAKE) $(AM_MAKEFLAGS) check \
729740 && $(MAKE) $(AM_MAKEFLAGS) install \
730741 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
892903 am--refresh check check-am clean clean-cscope clean-generic \
893904 clean-libtool cscope cscopelist-am ctags ctags-am dist \
894905 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
895 dist-xz dist-zip distcheck distclean distclean-generic \
896 distclean-hdr distclean-libtool distclean-tags distcleancheck \
897 distdir distuninstallcheck dvi dvi-am html html-am info \
898 info-am install install-am install-data install-data-am \
899 install-data-hook install-dvi install-dvi-am install-exec \
900 install-exec-am install-html install-html-am install-info \
901 install-info-am install-man install-pdf install-pdf-am \
902 install-pkgconfigDATA install-ps install-ps-am install-strip \
903 installcheck installcheck-am installdirs installdirs-am \
904 maintainer-clean maintainer-clean-generic mostlyclean \
905 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
906 tags tags-am uninstall uninstall-am uninstall-pkgconfigDATA
906 dist-xz dist-zip dist-zstd distcheck distclean \
907 distclean-generic distclean-hdr distclean-libtool \
908 distclean-tags distcleancheck distdir distuninstallcheck dvi \
909 dvi-am html html-am info info-am install install-am \
910 install-data install-data-am install-data-hook install-dvi \
911 install-dvi-am install-exec install-exec-am install-html \
912 install-html-am install-info install-info-am install-man \
913 install-pdf install-pdf-am install-pkgconfigDATA install-ps \
914 install-ps-am install-strip installcheck installcheck-am \
915 installdirs installdirs-am maintainer-clean \
916 maintainer-clean-generic mostlyclean mostlyclean-generic \
917 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
918 uninstall-am uninstall-pkgconfigDATA
907919
908920 .PRECIOUS: Makefile
909921
0 # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.5 -*- 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'.])])
2121
2222 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 # serial 12 (pkg-config-0.29.2)
23 # serial 11 (pkg-config-0.29.1)
2424
2525 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
2626 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
6262 dnl See the "Since" comment for each macro you use to see what version
6363 dnl of the macros you require.
6464 m4_defun([PKG_PREREQ],
65 [m4_define([PKG_MACROS_VERSION], [0.29.2])
65 [m4_define([PKG_MACROS_VERSION], [0.29.1])
6666 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
6767 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
6868 ])dnl PKG_PREREQ
163163 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
164164
165165 pkg_failed=no
166 AC_MSG_CHECKING([for $2])
166 AC_MSG_CHECKING([for $1])
167167
168168 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
169169 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
173173 See the pkg-config man page for more details.])
174174
175175 if test $pkg_failed = yes; then
176 AC_MSG_RESULT([no])
176 AC_MSG_RESULT([no])
177177 _PKG_SHORT_ERRORS_SUPPORTED
178178 if test $_pkg_short_errors_supported = yes; then
179179 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
180 else
180 else
181181 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
182182 fi
183183 # Put the nasty error message in config.log where it belongs
194194 _PKG_TEXT])[]dnl
195195 ])
196196 elif test $pkg_failed = untried; then
197 AC_MSG_RESULT([no])
197 AC_MSG_RESULT([no])
198198 m4_default([$4], [AC_MSG_FAILURE(
199199 [The pkg-config script could not be found or is too old. Make sure it
200200 is in your PATH or set the PKG_CONFIG environment variable to the full
295295 AS_VAR_IF([$1], [""], [$5], [$4])dnl
296296 ])dnl PKG_CHECK_VAR
297297
298 # Copyright (C) 2002-2017 Free Software Foundation, Inc.
298 dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
299 dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
300 dnl [DESCRIPTION], [DEFAULT])
301 dnl ------------------------------------------
302 dnl
303 dnl Prepare a "--with-" configure option using the lowercase
304 dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
305 dnl PKG_CHECK_MODULES in a single macro.
306 AC_DEFUN([PKG_WITH_MODULES],
307 [
308 m4_pushdef([with_arg], m4_tolower([$1]))
309
310 m4_pushdef([description],
311 [m4_default([$5], [build with ]with_arg[ support])])
312
313 m4_pushdef([def_arg], [m4_default([$6], [auto])])
314 m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
315 m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
316
317 m4_case(def_arg,
318 [yes],[m4_pushdef([with_without], [--without-]with_arg)],
319 [m4_pushdef([with_without],[--with-]with_arg)])
320
321 AC_ARG_WITH(with_arg,
322 AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
323 [AS_TR_SH([with_]with_arg)=def_arg])
324
325 AS_CASE([$AS_TR_SH([with_]with_arg)],
326 [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
327 [auto],[PKG_CHECK_MODULES([$1],[$2],
328 [m4_n([def_action_if_found]) $3],
329 [m4_n([def_action_if_not_found]) $4])])
330
331 m4_popdef([with_arg])
332 m4_popdef([description])
333 m4_popdef([def_arg])
334
335 ])dnl PKG_WITH_MODULES
336
337 dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
338 dnl [DESCRIPTION], [DEFAULT])
339 dnl -----------------------------------------------
340 dnl
341 dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
342 dnl check._[VARIABLE-PREFIX] is exported as make variable.
343 AC_DEFUN([PKG_HAVE_WITH_MODULES],
344 [
345 PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
346
347 AM_CONDITIONAL([HAVE_][$1],
348 [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
349 ])dnl PKG_HAVE_WITH_MODULES
350
351 dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
352 dnl [DESCRIPTION], [DEFAULT])
353 dnl ------------------------------------------------------
354 dnl
355 dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
356 dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
357 dnl and preprocessor variable.
358 AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
359 [
360 PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
361
362 AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
363 [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
364 ])dnl PKG_HAVE_DEFINE_WITH_MODULES
365
366 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
299367 #
300368 # This file is free software; the Free Software Foundation
301369 # gives unlimited permission to copy and/or distribute it,
307375 # generated from the m4 files accompanying Automake X.Y.
308376 # (This private macro should not be called outside this file.)
309377 AC_DEFUN([AM_AUTOMAKE_VERSION],
310 [am__api_version='1.15'
378 [am__api_version='1.16'
311379 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
312380 dnl require some minimum version. Point them to the right macro.
313 m4_if([$1], [1.15.1], [],
381 m4_if([$1], [1.16.5], [],
314382 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
315383 ])
316384
326394 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
327395 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
328396 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
329 [AM_AUTOMAKE_VERSION([1.15.1])dnl
397 [AM_AUTOMAKE_VERSION([1.16.5])dnl
330398 m4_ifndef([AC_AUTOCONF_VERSION],
331399 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
332400 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
333401
334 # Copyright (C) 2011-2017 Free Software Foundation, Inc.
402 # Copyright (C) 2011-2021 Free Software Foundation, Inc.
335403 #
336404 # This file is free software; the Free Software Foundation
337405 # gives unlimited permission to copy and/or distribute it,
393461
394462 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
395463
396 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
464 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
397465 #
398466 # This file is free software; the Free Software Foundation
399467 # gives unlimited permission to copy and/or distribute it,
445513
446514 # AM_CONDITIONAL -*- Autoconf -*-
447515
448 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
516 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
449517 #
450518 # This file is free software; the Free Software Foundation
451519 # gives unlimited permission to copy and/or distribute it,
476544 Usually this means the macro was only invoked conditionally.]])
477545 fi])])
478546
479 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
547 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
480548 #
481549 # This file is free software; the Free Software Foundation
482550 # gives unlimited permission to copy and/or distribute it,
667735
668736 # Generate code to set up dependency tracking. -*- Autoconf -*-
669737
670 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
671 #
672 # This file is free software; the Free Software Foundation
673 # gives unlimited permission to copy and/or distribute it,
674 # with or without modifications, as long as this notice is preserved.
675
738 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
739 #
740 # This file is free software; the Free Software Foundation
741 # gives unlimited permission to copy and/or distribute it,
742 # with or without modifications, as long as this notice is preserved.
676743
677744 # _AM_OUTPUT_DEPENDENCY_COMMANDS
678745 # ------------------------------
681748 # Older Autoconf quotes --file arguments for eval, but not when files
682749 # are listed without --file. Let's play safe and only enable the eval
683750 # if we detect the quoting.
684 case $CONFIG_FILES in
685 *\'*) eval set x "$CONFIG_FILES" ;;
686 *) set x $CONFIG_FILES ;;
687 esac
751 # TODO: see whether this extra hack can be removed once we start
752 # requiring Autoconf 2.70 or later.
753 AS_CASE([$CONFIG_FILES],
754 [*\'*], [eval set x "$CONFIG_FILES"],
755 [*], [set x $CONFIG_FILES])
688756 shift
689 for mf
757 # Used to flag and report bootstrapping failures.
758 am_rc=0
759 for am_mf
690760 do
691761 # Strip MF so we end up with the name of the file.
692 mf=`echo "$mf" | sed -e 's/:.*$//'`
693 # Check whether this is an Automake generated Makefile or not.
694 # We used to match only the files named 'Makefile.in', but
695 # some people rename them; so instead we look at the file content.
696 # Grep'ing the first line is not enough: some people post-process
697 # each Makefile.in and add a new line on top of each file to say so.
698 # Grep'ing the whole file is not good either: AIX grep has a line
762 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
763 # Check whether this is an Automake generated Makefile which includes
764 # dependency-tracking related rules and includes.
765 # Grep'ing the whole file directly is not great: AIX grep has a line
699766 # limit of 2048, but all sed's we know have understand at least 4000.
700 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
701 dirpart=`AS_DIRNAME("$mf")`
702 else
703 continue
704 fi
705 # Extract the definition of DEPDIR, am__include, and am__quote
706 # from the Makefile without running 'make'.
707 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
708 test -z "$DEPDIR" && continue
709 am__include=`sed -n 's/^am__include = //p' < "$mf"`
710 test -z "$am__include" && continue
711 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
712 # Find all dependency output files, they are included files with
713 # $(DEPDIR) in their names. We invoke sed twice because it is the
714 # simplest approach to changing $(DEPDIR) to its actual value in the
715 # expansion.
716 for file in `sed -n "
717 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
718 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
719 # Make sure the directory exists.
720 test -f "$dirpart/$file" && continue
721 fdir=`AS_DIRNAME(["$file"])`
722 AS_MKDIR_P([$dirpart/$fdir])
723 # echo "creating $dirpart/$file"
724 echo '# dummy' > "$dirpart/$file"
725 done
767 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
768 || continue
769 am_dirpart=`AS_DIRNAME(["$am_mf"])`
770 am_filepart=`AS_BASENAME(["$am_mf"])`
771 AM_RUN_LOG([cd "$am_dirpart" \
772 && sed -e '/# am--include-marker/d' "$am_filepart" \
773 | $MAKE -f - am--depfiles]) || am_rc=$?
726774 done
775 if test $am_rc -ne 0; then
776 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
777 for automatic dependency tracking. If GNU make was not used, consider
778 re-running the configure script with MAKE="gmake" (or whatever is
779 necessary). You can also try re-running configure with the
780 '--disable-dependency-tracking' option to at least be able to build
781 the package (albeit without support for automatic dependency tracking).])
782 fi
783 AS_UNSET([am_dirpart])
784 AS_UNSET([am_filepart])
785 AS_UNSET([am_mf])
786 AS_UNSET([am_rc])
787 rm -f conftest-deps.mk
727788 }
728789 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
729790
732793 # -----------------------------
733794 # This macro should only be invoked once -- use via AC_REQUIRE.
734795 #
735 # This code is only required when automatic dependency tracking
736 # is enabled. FIXME. This creates each '.P' file that we will
737 # need in order to bootstrap the dependency handling code.
796 # This code is only required when automatic dependency tracking is enabled.
797 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
798 # order to bootstrap the dependency handling code.
738799 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
739800 [AC_CONFIG_COMMANDS([depfiles],
740801 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
741 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
742 ])
802 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
743803
744804 # Do all the work for Automake. -*- Autoconf -*-
745805
746 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
806 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
747807 #
748808 # This file is free software; the Free Software Foundation
749809 # gives unlimited permission to copy and/or distribute it,
771831 # release and drop the old call support.
772832 AC_DEFUN([AM_INIT_AUTOMAKE],
773833 [AC_PREREQ([2.65])dnl
834 m4_ifdef([_$0_ALREADY_INIT],
835 [m4_fatal([$0 expanded multiple times
836 ]m4_defn([_$0_ALREADY_INIT]))],
837 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
774838 dnl Autoconf wants to disallow AM_ names. We explicitly allow
775839 dnl the ones we care about.
776840 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
807871 [_AM_SET_OPTIONS([$1])dnl
808872 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
809873 m4_if(
810 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
874 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
811875 [ok:ok],,
812876 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
813877 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
830894 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
831895 # For better backward compatibility. To be removed once Automake 1.9.x
832896 # dies out for good. For more background, see:
833 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
834 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
897 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
898 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
835899 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
836900 # We need awk for the "check" target (and possibly the TAP driver). The
837901 # system "awk" is bad on some platforms.
859923 [m4_define([AC_PROG_OBJCXX],
860924 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
861925 ])
926 # Variables for tags utilities; see am/tags.am
927 if test -z "$CTAGS"; then
928 CTAGS=ctags
929 fi
930 AC_SUBST([CTAGS])
931 if test -z "$ETAGS"; then
932 ETAGS=etags
933 fi
934 AC_SUBST([ETAGS])
935 if test -z "$CSCOPE"; then
936 CSCOPE=cscope
937 fi
938 AC_SUBST([CSCOPE])
939
862940 AC_REQUIRE([AM_SILENT_RULES])dnl
863941 dnl The testsuite driver may need to know about EXEEXT, so add the
864942 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
898976 Aborting the configuration process, to ensure you take notice of the issue.
899977
900978 You can download and install GNU coreutils to get an 'rm' implementation
901 that behaves properly: <http://www.gnu.org/software/coreutils/>.
979 that behaves properly: <https://www.gnu.org/software/coreutils/>.
902980
903981 If you want to complete the configuration process using your problematic
904982 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9411019 done
9421020 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9431021
944 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1022 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
9451023 #
9461024 # This file is free software; the Free Software Foundation
9471025 # gives unlimited permission to copy and/or distribute it,
9621040 fi
9631041 AC_SUBST([install_sh])])
9641042
965 # Copyright (C) 2003-2017 Free Software Foundation, Inc.
1043 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
9661044 #
9671045 # This file is free software; the Free Software Foundation
9681046 # gives unlimited permission to copy and/or distribute it,
9831061
9841062 # Check to see how 'make' treats includes. -*- Autoconf -*-
9851063
986 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1064 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
9871065 #
9881066 # This file is free software; the Free Software Foundation
9891067 # gives unlimited permission to copy and/or distribute it,
9911069
9921070 # AM_MAKE_INCLUDE()
9931071 # -----------------
994 # Check to see how make treats includes.
1072 # Check whether make has an 'include' directive that can support all
1073 # the idioms we need for our automatic dependency tracking code.
9951074 AC_DEFUN([AM_MAKE_INCLUDE],
996 [am_make=${MAKE-make}
997 cat > confinc << 'END'
1075 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
1076 cat > confinc.mk << 'END'
9981077 am__doit:
999 @echo this is the am__doit target
1078 @echo this is the am__doit target >confinc.out
10001079 .PHONY: am__doit
10011080 END
1002 # If we don't find an include directive, just comment out the code.
1003 AC_MSG_CHECKING([for style of include used by $am_make])
10041081 am__include="#"
10051082 am__quote=
1006 _am_result=none
1007 # First try GNU make style include.
1008 echo "include confinc" > confmf
1009 # Ignore all kinds of additional output from 'make'.
1010 case `$am_make -s -f confmf 2> /dev/null` in #(
1011 *the\ am__doit\ target*)
1012 am__include=include
1013 am__quote=
1014 _am_result=GNU
1015 ;;
1016 esac
1017 # Now try BSD make style include.
1018 if test "$am__include" = "#"; then
1019 echo '.include "confinc"' > confmf
1020 case `$am_make -s -f confmf 2> /dev/null` in #(
1021 *the\ am__doit\ target*)
1022 am__include=.include
1023 am__quote="\""
1024 _am_result=BSD
1025 ;;
1026 esac
1027 fi
1028 AC_SUBST([am__include])
1029 AC_SUBST([am__quote])
1030 AC_MSG_RESULT([$_am_result])
1031 rm -f confinc confmf
1032 ])
1083 # BSD make does it like this.
1084 echo '.include "confinc.mk" # ignored' > confmf.BSD
1085 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
1086 echo 'include confinc.mk # ignored' > confmf.GNU
1087 _am_result=no
1088 for s in GNU BSD; do
1089 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
1090 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
1091 ['0:this is the am__doit target'],
1092 [AS_CASE([$s],
1093 [BSD], [am__include='.include' am__quote='"'],
1094 [am__include='include' am__quote=''])])
1095 if test "$am__include" != "#"; then
1096 _am_result="yes ($s style)"
1097 break
1098 fi
1099 done
1100 rm -f confinc.* confmf.*
1101 AC_MSG_RESULT([${_am_result}])
1102 AC_SUBST([am__include])])
1103 AC_SUBST([am__quote])])
10331104
10341105 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
10351106
1036 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
1107 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
10371108 #
10381109 # This file is free software; the Free Software Foundation
10391110 # gives unlimited permission to copy and/or distribute it,
10541125 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10551126 AC_REQUIRE_AUX_FILE([missing])dnl
10561127 if test x"${MISSING+set}" != xset; then
1057 case $am_aux_dir in
1058 *\ * | *\ *)
1059 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1060 *)
1061 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1062 esac
1128 MISSING="\${SHELL} '$am_aux_dir/missing'"
10631129 fi
10641130 # Use eval to expand $SHELL
10651131 if eval "$MISSING --is-lightweight"; then
10721138
10731139 # Helper functions for option handling. -*- Autoconf -*-
10741140
1075 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1141 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
10761142 #
10771143 # This file is free software; the Free Software Foundation
10781144 # gives unlimited permission to copy and/or distribute it,
11011167 AC_DEFUN([_AM_IF_OPTION],
11021168 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
11031169
1104 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
1170 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
11051171 #
11061172 # This file is free software; the Free Software Foundation
11071173 # gives unlimited permission to copy and/or distribute it,
11481214 # For backward compatibility.
11491215 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
11501216
1151 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1217 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
11521218 #
11531219 # This file is free software; the Free Software Foundation
11541220 # gives unlimited permission to copy and/or distribute it,
11671233
11681234 # Check to make sure that the build environment is sane. -*- Autoconf -*-
11691235
1170 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
1236 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
11711237 #
11721238 # This file is free software; the Free Software Foundation
11731239 # gives unlimited permission to copy and/or distribute it,
12481314 rm -f conftest.file
12491315 ])
12501316
1251 # Copyright (C) 2009-2017 Free Software Foundation, Inc.
1317 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
12521318 #
12531319 # This file is free software; the Free Software Foundation
12541320 # gives unlimited permission to copy and/or distribute it,
13081374 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
13091375 ])
13101376
1311 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1377 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
13121378 #
13131379 # This file is free software; the Free Software Foundation
13141380 # gives unlimited permission to copy and/or distribute it,
13361402 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13371403 AC_SUBST([INSTALL_STRIP_PROGRAM])])
13381404
1339 # Copyright (C) 2006-2017 Free Software Foundation, Inc.
1405 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
13401406 #
13411407 # This file is free software; the Free Software Foundation
13421408 # gives unlimited permission to copy and/or distribute it,
13551421
13561422 # Check how to create a tarball. -*- Autoconf -*-
13571423
1358 # Copyright (C) 2004-2017 Free Software Foundation, Inc.
1424 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
13591425 #
13601426 # This file is free software; the Free Software Foundation
13611427 # gives unlimited permission to copy and/or distribute it,
11 # Wrapper for Microsoft lib.exe
22
33 me=ar-lib
4 scriptversion=2012-03-01.08; # UTC
5
6 # Copyright (C) 2010-2017 Free Software Foundation, Inc.
4 scriptversion=2019-07-04.01; # UTC
5
6 # Copyright (C) 2010-2021 Free Software Foundation, Inc.
77 # Written by Peter Rosin <peda@lysator.liu.se>.
88 #
99 # This program is free software; you can redistribute it and/or modify
1717 # GNU General Public License for more details.
1818 #
1919 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2121
2222 # As a special exception to the GNU General Public License, if you
2323 # distribute this file as part of a program that contains a
5252 MINGW*)
5353 file_conv=mingw
5454 ;;
55 CYGWIN*)
55 CYGWIN* | MSYS*)
5656 file_conv=cygwin
5757 ;;
5858 *)
6464 mingw)
6565 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6666 ;;
67 cygwin)
67 cygwin | msys)
6868 file=`cygpath -m "$file" || echo "$file"`
6969 ;;
7070 wine)
223223 esac
224224 done
225225 else
226 $AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member
227 do
228 $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $?
229 done
226 $AR -NOLOGO -LIST "$archive" | tr -d '\r' | sed -e 's/\\/\\\\/g' \
227 | while read member
228 do
229 $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $?
230 done
230231 fi
231232
232233 elif test -n "$quick$replace"; then
00 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2016-01-11.22; # UTC
4
5 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
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
1616 # GNU General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
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/*)
339339 # Local Variables:
340340 # mode: shell-script
341341 # sh-indentation: 2
342 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # eval: (add-hook 'before-save-hook 'time-stamp)
343343 # time-stamp-start: "scriptversion="
344344 # time-stamp-format: "%:y-%02m-%02d.%02H"
345345 # time-stamp-time-zone: "UTC0"
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2017 Free Software Foundation, Inc.
3
4 timestamp='2017-05-27'
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
1416 # General Public License for more details.
1517 #
1618 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
19 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1820 #
1921 # As a special exception to the GNU General Public License, if you
2022 # distribute this file as part of a program that contains a
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 # http://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>.
3234
3335
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.
42
43
3444 me=`echo "$0" | sed -e 's,.*/,,'`
3545
3646 usage="\
3848
3949 Output the configuration name of the system \`$me' is run on.
4050
41 Operation modes:
51 Options:
4252 -h, --help print this help, then exit
4353 -t, --time-stamp print date of last modification, then exit
4454 -v, --version print version number, then exit
4959 GNU config.guess ($timestamp)
5060
5161 Originally written by Per Bothner.
52 Copyright 1992-2017 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
141 cat <<-EOF > $dummy.c
153 LIBC=unknown
154
155 set_cc_for_build
156 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'`
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
186 fi
152187 ;;
153188 esac
154189
161196 ;;
162197 esac
163198 test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
199 test -f /etc/os-release && grep -q suse /etc/os-release && VENDOR=suse
164200
165201 # Note: order is significant - the case branches are not exclusive.
166202
167 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
203 case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
168204 *:NetBSD:*:*)
169205 # NetBSD (nbsd) targets should (where applicable) match one or
170206 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
176212 #
177213 # Note: NetBSD doesn't particularly care about the vendor
178214 # portion of the name. We always set it to "unknown".
179 sysctl="sysctl -n hw.machine_arch"
180215 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
181 /sbin/$sysctl 2>/dev/null || \
182 /usr/sbin/$sysctl 2>/dev/null || \
216 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
217 /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
183218 echo unknown)`
184 case "${UNAME_MACHINE_ARCH}" in
219 case $UNAME_MACHINE_ARCH in
220 aarch64eb) machine=aarch64_be-unknown ;;
185221 armeb) machine=armeb-unknown ;;
186222 arm*) machine=arm-unknown ;;
187223 sh3el) machine=shl-unknown ;;
188224 sh3eb) machine=sh-unknown ;;
189225 sh5el) machine=sh5le-unknown ;;
190226 earmv*)
191 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
192 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
193 machine=${arch}${endian}-${VENDOR}-unknown
227 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
228 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
229 machine=${arch}${endian}-unknown
194230 ;;
195 *) machine=${UNAME_MACHINE_ARCH}-${VENDOR}-unknown ;;
231 *) machine=$UNAME_MACHINE_ARCH-unknown ;;
196232 esac
197233 # The Operating System including object format, if it has switched
198234 # to ELF recently (or will in the future) and ABI.
199 case "${UNAME_MACHINE_ARCH}" in
235 case $UNAME_MACHINE_ARCH in
200236 earm*)
201237 os=netbsdelf
202238 ;;
203239 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
204 eval $set_cc_for_build
240 set_cc_for_build
205241 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
206242 | grep -q __ELF__
207243 then
217253 ;;
218254 esac
219255 # Determine ABI tags.
220 case "${UNAME_MACHINE_ARCH}" in
256 case $UNAME_MACHINE_ARCH in
221257 earm*)
222258 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
223 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
259 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
224260 ;;
225261 esac
226262 # The OS release
228264 # thus, need a distinct triplet. However, they do not need
229265 # kernel version information, so it can be replaced with a
230266 # suitable tag, in the style of linux-gnu.
231 case "${UNAME_VERSION}" in
267 case $UNAME_VERSION in
232268 Debian*)
233269 release='-gnu'
234270 ;;
235271 *)
236 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
272 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
237273 ;;
238274 esac
239275 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
240276 # contains redundant information, the shorter form:
241277 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
242 echo "${machine}-${os}${release}${abi}"
243 exit ;;
278 GUESS=$machine-${os}${release}${abi-}
279 ;;
244280 *:Bitrig:*:*)
245281 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
246 echo ${UNAME_MACHINE_ARCH}-${VENDOR}-bitrig${UNAME_RELEASE}
247 exit ;;
282 GUESS=$UNAME_MACHINE_ARCH-${VENDOR}-bitrig$UNAME_RELEASE
283 ;;
248284 *:OpenBSD:*:*)
249285 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
250 echo ${UNAME_MACHINE_ARCH}-${VENDOR}-openbsd${UNAME_RELEASE}
251 exit ;;
286 GUESS=$UNAME_MACHINE_ARCH-${VENDOR}-openbsd$UNAME_RELEASE
287 ;;
288 *:SecBSD:*:*)
289 UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'`
290 GUESS=$UNAME_MACHINE_ARCH-${VENDOR}-secbsd$UNAME_RELEASE
291 ;;
252292 *:LibertyBSD:*:*)
253293 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
254 echo ${UNAME_MACHINE_ARCH}-${VENDOR}-libertybsd${UNAME_RELEASE}
255 exit ;;
294 GUESS=$UNAME_MACHINE_ARCH-${VENDOR}-libertybsd$UNAME_RELEASE
295 ;;
296 *:MidnightBSD:*:*)
297 GUESS=$UNAME_MACHINE-${VENDOR}-midnightbsd$UNAME_RELEASE
298 ;;
256299 *:ekkoBSD:*:*)
257 echo ${UNAME_MACHINE}-${VENDOR}-ekkobsd${UNAME_RELEASE}
258 exit ;;
300 GUESS=$UNAME_MACHINE-${VENDOR}-ekkobsd$UNAME_RELEASE
301 ;;
259302 *:SolidBSD:*:*)
260 echo ${UNAME_MACHINE}-${VENDOR}-solidbsd${UNAME_RELEASE}
261 exit ;;
303 GUESS=$UNAME_MACHINE-${VENDOR}-solidbsd$UNAME_RELEASE
304 ;;
305 *:OS108:*:*)
306 GUESS=$UNAME_MACHINE-${VENDOR}-os108_$UNAME_RELEASE
307 ;;
262308 macppc:MirBSD:*:*)
263 echo powerpc-${VENDOR}-mirbsd${UNAME_RELEASE}
264 exit ;;
309 GUESS=powerpc-${VENDOR}-mirbsd$UNAME_RELEASE
310 ;;
265311 *:MirBSD:*:*)
266 echo ${UNAME_MACHINE}-${VENDOR}-mirbsd${UNAME_RELEASE}
267 exit ;;
312 GUESS=$UNAME_MACHINE-${VENDOR}-mirbsd$UNAME_RELEASE
313 ;;
268314 *:Sortix:*:*)
269 echo ${UNAME_MACHINE}-${VENDOR}-sortix
270 exit ;;
315 GUESS=$UNAME_MACHINE-${VENDOR}-sortix
316 ;;
317 *:Twizzler:*:*)
318 GUESS=$UNAME_MACHINE-${VENDOR}-twizzler
319 ;;
320 *:Redox:*:*)
321 GUESS=$UNAME_MACHINE-${VENDOR}-redox
322 ;;
323 mips:OSF1:*.*)
324 GUESS=mips-dec-osf1
325 ;;
271326 alpha:OSF1:*:*)
327 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
328 trap '' 0
272329 case $UNAME_RELEASE in
273330 *4.0)
274331 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
282339 # covers most systems running today. This code pipes the CPU
283340 # types through head -n 1, so we only detect the type of CPU 0.
284341 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
285 case "$ALPHA_CPU_TYPE" in
342 case $ALPHA_CPU_TYPE in
286343 "EV4 (21064)")
287344 UNAME_MACHINE=alpha ;;
288345 "EV4.5 (21064)")
319376 # A Tn.n version is a released field test version.
320377 # A Xn.n version is an unreleased experimental baselevel.
321378 # 1.2 uses "1.2" for uname -r.
322 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
323 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
324 exitcode=$?
325 trap '' 0
326 exit $exitcode ;;
327 Alpha\ *:Windows_NT*:*)
328 # How do we know it's Interix rather than the generic POSIX subsystem?
329 # Should we change UNAME_MACHINE based on the output of uname instead
330 # of the specific Alpha model?
331 echo alpha-pc-interix
332 exit ;;
333 21064:Windows_NT:50:3)
334 echo alpha-dec-winnt3.5
335 exit ;;
379 OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
380 GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
381 ;;
336382 Amiga*:UNIX_System_V:4.0:*)
337 echo m68k-${VENDOR}-sysv4
338 exit ;;
383 GUESS=m68k-${VENDOR}-sysv4
384 ;;
339385 *:[Aa]miga[Oo][Ss]:*:*)
340 echo ${UNAME_MACHINE}-${VENDOR}-amigaos
341 exit ;;
386 GUESS=$UNAME_MACHINE-${VENDOR}-amigaos
387 ;;
342388 *:[Mm]orph[Oo][Ss]:*:*)
343 echo ${UNAME_MACHINE}-${VENDOR}-morphos
344 exit ;;
389 GUESS=$UNAME_MACHINE-${VENDOR}-morphos
390 ;;
345391 *:OS/390:*:*)
346 echo i370-ibm-openedition
347 exit ;;
392 GUESS=i370-ibm-openedition
393 ;;
348394 *:z/VM:*:*)
349 echo s390-ibm-zvmoe
350 exit ;;
395 GUESS=s390-ibm-zvmoe
396 ;;
351397 *:OS400:*:*)
352 echo powerpc-ibm-os400
353 exit ;;
398 GUESS=powerpc-ibm-os400
399 ;;
354400 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
355 echo arm-acorn-riscix${UNAME_RELEASE}
356 exit ;;
401 GUESS=arm-acorn-riscix$UNAME_RELEASE
402 ;;
357403 arm*:riscos:*:*|arm*:RISCOS:*:*)
358 echo arm-${VENDOR}-riscos
359 exit ;;
404 GUESS=arm-${VENDOR}-riscos
405 ;;
360406 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
361 echo hppa1.1-hitachi-hiuxmpp
362 exit ;;
407 GUESS=hppa1.1-hitachi-hiuxmpp
408 ;;
363409 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
364410 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
365 if test "`(/bin/universe) 2>/dev/null`" = att ; then
366 echo pyramid-pyramid-sysv3
367 else
368 echo pyramid-pyramid-bsd
369 fi
370 exit ;;
411 case `(/bin/universe) 2>/dev/null` in
412 att) GUESS=pyramid-pyramid-sysv3 ;;
413 *) GUESS=pyramid-pyramid-bsd ;;
414 esac
415 ;;
371416 NILE*:*:*:dcosx)
372 echo pyramid-pyramid-svr4
373 exit ;;
417 GUESS=pyramid-pyramid-svr4
418 ;;
374419 DRS?6000:unix:4.0:6*)
375 echo sparc-icl-nx6
376 exit ;;
420 GUESS=sparc-icl-nx6
421 ;;
377422 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
378423 case `/usr/bin/uname -p` in
379 sparc) echo sparc-icl-nx7; exit ;;
380 esac ;;
424 sparc) GUESS=sparc-icl-nx7 ;;
425 esac
426 ;;
381427 s390x:SunOS:*:*)
382 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
383 exit ;;
428 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
429 GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
430 ;;
384431 sun4H:SunOS:5.*:*)
385 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
386 exit ;;
432 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
433 GUESS=sparc-hal-solaris2$SUN_REL
434 ;;
387435 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
388 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
389 exit ;;
436 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
437 GUESS=sparc-sun-solaris2$SUN_REL
438 ;;
390439 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
391 echo i386-pc-auroraux${UNAME_RELEASE}
392 exit ;;
440 GUESS=i386-pc-auroraux$UNAME_RELEASE
441 ;;
393442 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
394 eval $set_cc_for_build
443 set_cc_for_build
395444 SUN_ARCH=i386
396445 # If there is a compiler, see if it is configured for 64-bit objects.
397446 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
398447 # This test works for both compilers.
399 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
448 if test "$CC_FOR_BUILD" != no_compiler_found; then
400449 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
401450 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
402451 grep IS_64BIT_ARCH >/dev/null
404453 SUN_ARCH=x86_64
405454 fi
406455 fi
407 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
408 exit ;;
456 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
457 GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
458 ;;
409459 sun4*:SunOS:6*:*)
410460 # According to config.sub, this is the proper way to canonicalize
411461 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
412462 # it's likely to be more like Solaris than SunOS4.
413 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
414 exit ;;
463 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
464 GUESS=sparc-sun-solaris3$SUN_REL
465 ;;
415466 sun4*:SunOS:*:*)
416 case "`/usr/bin/arch -k`" in
467 case `/usr/bin/arch -k` in
417468 Series*|S4*)
418469 UNAME_RELEASE=`uname -v`
419470 ;;
420471 esac
421472 # Japanese Language versions have a version number like `4.1.3-JL'.
422 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
423 exit ;;
473 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
474 GUESS=sparc-sun-sunos$SUN_REL
475 ;;
424476 sun3*:SunOS:*:*)
425 echo m68k-sun-sunos${UNAME_RELEASE}
426 exit ;;
477 GUESS=m68k-sun-sunos$UNAME_RELEASE
478 ;;
427479 sun*:*:4.2BSD:*)
428480 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
429 test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
430 case "`/bin/arch`" in
481 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
482 case `/bin/arch` in
431483 sun3)
432 echo m68k-sun-sunos${UNAME_RELEASE}
484 GUESS=m68k-sun-sunos$UNAME_RELEASE
433485 ;;
434486 sun4)
435 echo sparc-sun-sunos${UNAME_RELEASE}
487 GUESS=sparc-sun-sunos$UNAME_RELEASE
436488 ;;
437489 esac
438 exit ;;
490 ;;
439491 aushp:SunOS:*:*)
440 echo sparc-auspex-sunos${UNAME_RELEASE}
441 exit ;;
492 GUESS=sparc-auspex-sunos$UNAME_RELEASE
493 ;;
442494 # The situation for MiNT is a little confusing. The machine name
443495 # can be virtually everything (everything which is not
444496 # "atarist" or "atariste" at least should have a processor
448500 # MiNT. But MiNT is downward compatible to TOS, so this should
449501 # be no problem.
450502 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
451 echo m68k-atari-mint${UNAME_RELEASE}
452 exit ;;
503 GUESS=m68k-atari-mint$UNAME_RELEASE
504 ;;
453505 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
454 echo m68k-atari-mint${UNAME_RELEASE}
455 exit ;;
506 GUESS=m68k-atari-mint$UNAME_RELEASE
507 ;;
456508 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
457 echo m68k-atari-mint${UNAME_RELEASE}
458 exit ;;
509 GUESS=m68k-atari-mint$UNAME_RELEASE
510 ;;
459511 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
460 echo m68k-milan-mint${UNAME_RELEASE}
461 exit ;;
512 GUESS=m68k-milan-mint$UNAME_RELEASE
513 ;;
462514 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
463 echo m68k-hades-mint${UNAME_RELEASE}
464 exit ;;
515 GUESS=m68k-hades-mint$UNAME_RELEASE
516 ;;
465517 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
466 echo m68k-${VENDOR}-mint${UNAME_RELEASE}
467 exit ;;
518 GUESS=m68k-${VENDOR}-mint$UNAME_RELEASE
519 ;;
468520 m68k:machten:*:*)
469 echo m68k-apple-machten${UNAME_RELEASE}
470 exit ;;
521 GUESS=m68k-apple-machten$UNAME_RELEASE
522 ;;
471523 powerpc:machten:*:*)
472 echo powerpc-apple-machten${UNAME_RELEASE}
473 exit ;;
524 GUESS=powerpc-apple-machten$UNAME_RELEASE
525 ;;
474526 RISC*:Mach:*:*)
475 echo mips-dec-mach_bsd4.3
476 exit ;;
527 GUESS=mips-dec-mach_bsd4.3
528 ;;
477529 RISC*:ULTRIX:*:*)
478 echo mips-dec-ultrix${UNAME_RELEASE}
479 exit ;;
530 GUESS=mips-dec-ultrix$UNAME_RELEASE
531 ;;
480532 VAX*:ULTRIX*:*:*)
481 echo vax-dec-ultrix${UNAME_RELEASE}
482 exit ;;
533 GUESS=vax-dec-ultrix$UNAME_RELEASE
534 ;;
483535 2020:CLIX:*:* | 2430:CLIX:*:*)
484 echo clipper-intergraph-clix${UNAME_RELEASE}
485 exit ;;
536 GUESS=clipper-intergraph-clix$UNAME_RELEASE
537 ;;
486538 mips:*:*:UMIPS | mips:*:*:RISCos)
487 eval $set_cc_for_build
488 sed 's/^ //' << EOF >$dummy.c
539 set_cc_for_build
540 sed 's/^ //' << EOF > "$dummy.c"
489541 #ifdef __cplusplus
490542 #include <stdio.h> /* for printf() prototype */
491543 int main (int argc, char *argv[]) {
494546 #endif
495547 #if defined (host_mips) && defined (MIPSEB)
496548 #if defined (SYSTYPE_SYSV)
497 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
549 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
498550 #endif
499551 #if defined (SYSTYPE_SVR4)
500 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
552 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
501553 #endif
502554 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
503 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
555 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
504556 #endif
505557 #endif
506558 exit (-1);
507559 }
508560 EOF
509 $CC_FOR_BUILD -o $dummy $dummy.c &&
510 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
511 SYSTEM_NAME=`$dummy $dummyarg` &&
561 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
562 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
563 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
512564 { echo "$SYSTEM_NAME"; exit; }
513 echo mips-mips-riscos${UNAME_RELEASE}
514 exit ;;
565 GUESS=mips-mips-riscos$UNAME_RELEASE
566 ;;
515567 Motorola:PowerMAX_OS:*:*)
516 echo powerpc-motorola-powermax
517 exit ;;
568 GUESS=powerpc-motorola-powermax
569 ;;
518570 Motorola:*:4.3:PL8-*)
519 echo powerpc-harris-powermax
520 exit ;;
571 GUESS=powerpc-harris-powermax
572 ;;
521573 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
522 echo powerpc-harris-powermax
523 exit ;;
574 GUESS=powerpc-harris-powermax
575 ;;
524576 Night_Hawk:Power_UNIX:*:*)
525 echo powerpc-harris-powerunix
526 exit ;;
577 GUESS=powerpc-harris-powerunix
578 ;;
527579 m88k:CX/UX:7*:*)
528 echo m88k-harris-cxux7
529 exit ;;
580 GUESS=m88k-harris-cxux7
581 ;;
530582 m88k:*:4*:R4*)
531 echo m88k-motorola-sysv4
532 exit ;;
583 GUESS=m88k-motorola-sysv4
584 ;;
533585 m88k:*:3*:R3*)
534 echo m88k-motorola-sysv3
535 exit ;;
586 GUESS=m88k-motorola-sysv3
587 ;;
536588 AViiON:dgux:*:*)
537589 # DG/UX returns AViiON for all architectures
538590 UNAME_PROCESSOR=`/usr/bin/uname -p`
539 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
591 if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
540592 then
541 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
542 [ ${TARGET_BINARY_INTERFACE}x = x ]
593 if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
594 test "$TARGET_BINARY_INTERFACE"x = x
543595 then
544 echo m88k-dg-dgux${UNAME_RELEASE}
596 GUESS=m88k-dg-dgux$UNAME_RELEASE
545597 else
546 echo m88k-dg-dguxbcs${UNAME_RELEASE}
598 GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
547599 fi
548600 else
549 echo i586-dg-dgux${UNAME_RELEASE}
550 fi
551 exit ;;
601 GUESS=i586-dg-dgux$UNAME_RELEASE
602 fi
603 ;;
552604 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
553 echo m88k-dolphin-sysv3
554 exit ;;
605 GUESS=m88k-dolphin-sysv3
606 ;;
555607 M88*:*:R3*:*)
556608 # Delta 88k system running SVR3
557 echo m88k-motorola-sysv3
558 exit ;;
609 GUESS=m88k-motorola-sysv3
610 ;;
559611 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
560 echo m88k-tektronix-sysv3
561 exit ;;
612 GUESS=m88k-tektronix-sysv3
613 ;;
562614 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
563 echo m68k-tektronix-bsd
564 exit ;;
615 GUESS=m68k-tektronix-bsd
616 ;;
565617 *:IRIX*:*:*)
566 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
567 exit ;;
618 IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
619 GUESS=mips-sgi-irix$IRIX_REL
620 ;;
568621 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
569 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
570 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
622 GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id
623 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
571624 i*86:AIX:*:*)
572 echo i386-ibm-aix
573 exit ;;
625 GUESS=i386-ibm-aix
626 ;;
574627 ia64:AIX:*:*)
575 if [ -x /usr/bin/oslevel ] ; then
628 if test -x /usr/bin/oslevel ; then
576629 IBM_REV=`/usr/bin/oslevel`
577630 else
578 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
579 fi
580 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
581 exit ;;
631 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
632 fi
633 GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
634 ;;
582635 *:AIX:2:3)
583636 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
584 eval $set_cc_for_build
585 sed 's/^ //' << EOF >$dummy.c
637 set_cc_for_build
638 sed 's/^ //' << EOF > "$dummy.c"
586639 #include <sys/systemcfg.h>
587640
588641 main()
593646 exit(0);
594647 }
595648 EOF
596 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
649 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
597650 then
598 echo "$SYSTEM_NAME"
651 GUESS=$SYSTEM_NAME
599652 else
600 echo rs6000-ibm-aix3.2.5
653 GUESS=rs6000-ibm-aix3.2.5
601654 fi
602655 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
603 echo rs6000-ibm-aix3.2.4
656 GUESS=rs6000-ibm-aix3.2.4
604657 else
605 echo rs6000-ibm-aix3.2
606 fi
607 exit ;;
658 GUESS=rs6000-ibm-aix3.2
659 fi
660 ;;
608661 *:AIX:*:[4567])
609662 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
610 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
663 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
611664 IBM_ARCH=rs6000
612665 else
613666 IBM_ARCH=powerpc
614667 fi
615 if [ -x /usr/bin/lslpp ] ; then
616 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
668 if test -x /usr/bin/lslpp ; then
669 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \
617670 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
618671 else
619 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
620 fi
621 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
622 exit ;;
672 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
673 fi
674 GUESS=$IBM_ARCH-ibm-aix$IBM_REV
675 ;;
623676 *:AIX:*:*)
624 echo rs6000-ibm-aix
625 exit ;;
626 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
627 echo romp-ibm-bsd4.4
628 exit ;;
677 GUESS=rs6000-ibm-aix
678 ;;
679 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
680 GUESS=romp-ibm-bsd4.4
681 ;;
629682 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
630 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
631 exit ;; # report: romp-ibm BSD 4.3
683 GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to
684 ;; # report: romp-ibm BSD 4.3
632685 *:BOSX:*:*)
633 echo rs6000-bull-bosx
634 exit ;;
686 GUESS=rs6000-bull-bosx
687 ;;
635688 DPX/2?00:B.O.S.:*:*)
636 echo m68k-bull-sysv3
637 exit ;;
689 GUESS=m68k-bull-sysv3
690 ;;
638691 9000/[34]??:4.3bsd:1.*:*)
639 echo m68k-hp-bsd
640 exit ;;
692 GUESS=m68k-hp-bsd
693 ;;
641694 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
642 echo m68k-hp-bsd4.4
643 exit ;;
695 GUESS=m68k-hp-bsd4.4
696 ;;
644697 9000/[34678]??:HP-UX:*:*)
645 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
646 case "${UNAME_MACHINE}" in
647 9000/31? ) HP_ARCH=m68000 ;;
648 9000/[34]?? ) HP_ARCH=m68k ;;
698 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
699 case $UNAME_MACHINE in
700 9000/31?) HP_ARCH=m68000 ;;
701 9000/[34]??) HP_ARCH=m68k ;;
649702 9000/[678][0-9][0-9])
650 if [ -x /usr/bin/getconf ]; then
703 if test -x /usr/bin/getconf; then
651704 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
652705 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
653 case "${sc_cpu_version}" in
706 case $sc_cpu_version in
654707 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
655708 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
656709 532) # CPU_PA_RISC2_0
657 case "${sc_kernel_bits}" in
710 case $sc_kernel_bits in
658711 32) HP_ARCH=hppa2.0n ;;
659712 64) HP_ARCH=hppa2.0w ;;
660713 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
661714 esac ;;
662715 esac
663716 fi
664 if [ "${HP_ARCH}" = "" ]; then
665 eval $set_cc_for_build
666 sed 's/^ //' << EOF >$dummy.c
717 if test "$HP_ARCH" = ""; then
718 set_cc_for_build
719 sed 's/^ //' << EOF > "$dummy.c"
667720
668721 #define _HPUX_SOURCE
669722 #include <stdlib.h>
696749 exit (0);
697750 }
698751 EOF
699 (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
752 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
700753 test -z "$HP_ARCH" && HP_ARCH=hppa
701754 fi ;;
702755 esac
703 if [ ${HP_ARCH} = hppa2.0w ]
756 if test "$HP_ARCH" = hppa2.0w
704757 then
705 eval $set_cc_for_build
758 set_cc_for_build
706759
707760 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
708761 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
721774 HP_ARCH=hppa64
722775 fi
723776 fi
724 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
725 exit ;;
777 GUESS=$HP_ARCH-hp-hpux$HPUX_REV
778 ;;
726779 ia64:HP-UX:*:*)
727 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
728 echo ia64-hp-hpux${HPUX_REV}
729 exit ;;
780 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
781 GUESS=ia64-hp-hpux$HPUX_REV
782 ;;
730783 3050*:HI-UX:*:*)
731 eval $set_cc_for_build
732 sed 's/^ //' << EOF >$dummy.c
784 set_cc_for_build
785 sed 's/^ //' << EOF > "$dummy.c"
733786 #include <unistd.h>
734787 int
735788 main ()
754807 exit (0);
755808 }
756809 EOF
757 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
810 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
758811 { echo "$SYSTEM_NAME"; exit; }
759 echo unknown-hitachi-hiuxwe2
760 exit ;;
761 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
762 echo hppa1.1-hp-bsd
763 exit ;;
812 GUESS=unknown-hitachi-hiuxwe2
813 ;;
814 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
815 GUESS=hppa1.1-hp-bsd
816 ;;
764817 9000/8??:4.3bsd:*:*)
765 echo hppa1.0-hp-bsd
766 exit ;;
818 GUESS=hppa1.0-hp-bsd
819 ;;
767820 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
768 echo hppa1.0-hp-mpeix
769 exit ;;
770 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
771 echo hppa1.1-hp-osf
772 exit ;;
821 GUESS=hppa1.0-hp-mpeix
822 ;;
823 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
824 GUESS=hppa1.1-hp-osf
825 ;;
773826 hp8??:OSF1:*:*)
774 echo hppa1.0-hp-osf
775 exit ;;
827 GUESS=hppa1.0-hp-osf
828 ;;
776829 i*86:OSF1:*:*)
777 if [ -x /usr/sbin/sysversion ] ; then
778 echo ${UNAME_MACHINE}-${VENDOR}-osf1mk
830 if test -x /usr/sbin/sysversion ; then
831 GUESS=$UNAME_MACHINE-${VENDOR}-osf1mk
779832 else
780 echo ${UNAME_MACHINE}-${VENDOR}-osf1
781 fi
782 exit ;;
833 GUESS=$UNAME_MACHINE-${VENDOR}-osf1
834 fi
835 ;;
783836 parisc*:Lites*:*:*)
784 echo hppa1.1-hp-lites
785 exit ;;
837 GUESS=hppa1.1-hp-lites
838 ;;
786839 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
787 echo c1-convex-bsd
788 exit ;;
840 GUESS=c1-convex-bsd
841 ;;
789842 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
790843 if getsysinfo -f scalar_acc
791844 then echo c32-convex-bsd
793846 fi
794847 exit ;;
795848 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
796 echo c34-convex-bsd
797 exit ;;
849 GUESS=c34-convex-bsd
850 ;;
798851 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
799 echo c38-convex-bsd
800 exit ;;
852 GUESS=c38-convex-bsd
853 ;;
801854 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
802 echo c4-convex-bsd
803 exit ;;
855 GUESS=c4-convex-bsd
856 ;;
804857 CRAY*Y-MP:*:*:*)
805 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
806 exit ;;
858 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
859 GUESS=ymp-cray-unicos$CRAY_REL
860 ;;
807861 CRAY*[A-Z]90:*:*:*)
808 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
862 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
809863 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
810864 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
811865 -e 's/\.[^.]*$/.X/'
812866 exit ;;
813867 CRAY*TS:*:*:*)
814 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
815 exit ;;
868 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
869 GUESS=t90-cray-unicos$CRAY_REL
870 ;;
816871 CRAY*T3E:*:*:*)
817 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
818 exit ;;
872 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
873 GUESS=alphaev5-cray-unicosmk$CRAY_REL
874 ;;
819875 CRAY*SV1:*:*:*)
820 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
821 exit ;;
876 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
877 GUESS=sv1-cray-unicos$CRAY_REL
878 ;;
822879 *:UNICOS/mp:*:*)
823 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
824 exit ;;
880 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
881 GUESS=craynv-cray-unicosmp$CRAY_REL
882 ;;
825883 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
826884 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
827885 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
828 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
829 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
830 exit ;;
886 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
887 GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
888 ;;
831889 5000:UNIX_System_V:4.*:*)
832890 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
833 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
834 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
835 exit ;;
891 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
892 GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
893 ;;
836894 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
837 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
838 exit ;;
895 GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
896 ;;
839897 sparc*:BSD/OS:*:*)
840 echo sparc-${VENDOR}-bsdi${UNAME_RELEASE}
841 exit ;;
898 GUESS=sparc-${VENDOR}-bsdi$UNAME_RELEASE
899 ;;
842900 *:BSD/OS:*:*)
843 echo ${UNAME_MACHINE}-${VENDOR}-bsdi${UNAME_RELEASE}
844 exit ;;
901 GUESS=$UNAME_MACHINE-${VENDOR}-bsdi$UNAME_RELEASE
902 ;;
903 arm:FreeBSD:*:*)
904 UNAME_PROCESSOR=`uname -p`
905 set_cc_for_build
906 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
907 | grep -q __ARM_PCS_VFP
908 then
909 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
910 GUESS=$UNAME_PROCESSOR-${VENDOR}-freebsd$FREEBSD_REL-gnueabi
911 else
912 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
913 GUESS=$UNAME_PROCESSOR-${VENDOR}-freebsd$FREEBSD_REL-gnueabihf
914 fi
915 ;;
845916 *:FreeBSD:*:*)
846917 UNAME_PROCESSOR=`/usr/bin/uname -p`
847 case ${UNAME_PROCESSOR} in
918 case $UNAME_PROCESSOR in
848919 amd64)
849920 UNAME_PROCESSOR=x86_64 ;;
850921 i386)
851922 UNAME_PROCESSOR=i586 ;;
852923 esac
853 echo ${UNAME_PROCESSOR}-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
854 exit ;;
924 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
925 GUESS=$UNAME_PROCESSOR-${VENDOR}-freebsd$FREEBSD_REL
926 ;;
855927 i*:CYGWIN*:*)
856 echo ${UNAME_MACHINE}-pc-cygwin
857 exit ;;
928 GUESS=$UNAME_MACHINE-pc-cygwin
929 ;;
858930 *:MINGW64*:*)
859 echo ${UNAME_MACHINE}-pc-mingw64
860 exit ;;
931 GUESS=$UNAME_MACHINE-pc-mingw64
932 ;;
861933 *:MINGW*:*)
862 echo ${UNAME_MACHINE}-pc-mingw32
863 exit ;;
934 GUESS=$UNAME_MACHINE-pc-mingw32
935 ;;
864936 *:MSYS*:*)
865 echo ${UNAME_MACHINE}-pc-msys
866 exit ;;
867 i*:windows32*:*)
868 # uname -m includes "-pc" on this system.
869 echo ${UNAME_MACHINE}-mingw32
870 exit ;;
937 GUESS=$UNAME_MACHINE-pc-msys
938 ;;
871939 i*:PW*:*)
872 echo ${UNAME_MACHINE}-pc-pw32
873 exit ;;
940 GUESS=$UNAME_MACHINE-pc-pw32
941 ;;
874942 *:Interix*:*)
875 case ${UNAME_MACHINE} in
943 case $UNAME_MACHINE in
876944 x86)
877 echo i586-pc-interix${UNAME_RELEASE}
878 exit ;;
945 GUESS=i586-pc-interix$UNAME_RELEASE
946 ;;
879947 authenticamd | genuineintel | EM64T)
880 echo x86_64-${VENDOR}-interix${UNAME_RELEASE}
881 exit ;;
948 GUESS=x86_64-${VENDOR}-interix$UNAME_RELEASE
949 ;;
882950 IA64)
883 echo ia64-${VENDOR}-interix${UNAME_RELEASE}
884 exit ;;
951 GUESS=ia64-${VENDOR}-interix$UNAME_RELEASE
952 ;;
885953 esac ;;
886 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
887 echo i${UNAME_MACHINE}-pc-mks
888 exit ;;
889 8664:Windows_NT:*)
890 echo x86_64-pc-mks
891 exit ;;
892 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
893 # How do we know it's Interix rather than the generic POSIX subsystem?
894 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
895 # UNAME_MACHINE based on the output of uname instead of i386?
896 echo i586-pc-interix
897 exit ;;
898954 i*:UWIN*:*)
899 echo ${UNAME_MACHINE}-pc-uwin
900 exit ;;
955 GUESS=$UNAME_MACHINE-pc-uwin
956 ;;
901957 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
902 echo x86_64-${VENDOR}-cygwin
903 exit ;;
904 p*:CYGWIN*:*)
905 echo powerpcle-${VENDOR}-cygwin
906 exit ;;
958 GUESS=x86_64-pc-cygwin
959 ;;
907960 prep*:SunOS:5.*:*)
908 echo powerpcle-${VENDOR}-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
909 exit ;;
961 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
962 GUESS=powerpcle-${VENDOR}-solaris2$SUN_REL
963 ;;
910964 *:GNU:*:*)
911965 # the GNU system
912 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
913 exit ;;
966 GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'`
967 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'`
968 GUESS=$GNU_ARCH-${VENDOR}-$LIBC$GNU_REL
969 ;;
914970 *:GNU/*:*:*)
915971 # other systems with GNU libc and userland
916 echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
917 exit ;;
918 i*86:Minix:*:*)
919 echo ${UNAME_MACHINE}-pc-minix
920 exit ;;
972 GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"`
973 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
974 GUESS=$UNAME_MACHINE-${VENDOR}-$GNU_SYS$GNU_REL-$LIBC
975 ;;
976 *:Minix:*:*)
977 GUESS=$UNAME_MACHINE-${VENDOR}-minix
978 ;;
921979 aarch64:Linux:*:*)
922 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
923 exit ;;
980 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
981 ;;
924982 aarch64_be:Linux:*:*)
925983 UNAME_MACHINE=aarch64_be
926 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
927 exit ;;
984 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
985 ;;
928986 alpha:Linux:*:*)
929 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
987 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
930988 EV5) UNAME_MACHINE=alphaev5 ;;
931989 EV56) UNAME_MACHINE=alphaev56 ;;
932990 PCA56) UNAME_MACHINE=alphapca56 ;;
937995 esac
938996 objdump --private-headers /bin/sh | grep -q ld.so.1
939997 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
940 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
941 exit ;;
942 arc:Linux:*:* | arceb:Linux:*:*)
943 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
944 exit ;;
998 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
999 ;;
1000 arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
1001 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1002 ;;
9451003 arm*:Linux:*:*)
946 eval $set_cc_for_build
1004 set_cc_for_build
9471005 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
9481006 | grep -q __ARM_EABI__
9491007 then
950 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1008 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
9511009 else
9521010 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
9531011 | grep -q __ARM_PCS_VFP
9541012 then
955 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabi
1013 GUESS=$UNAME_MACHINE-${VENDOR}-linux-${LIBC}eabi
9561014 else
957 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabihf
1015 GUESS=$UNAME_MACHINE-${VENDOR}-linux-${LIBC}eabihf
9581016 fi
9591017 fi
960 exit ;;
1018 ;;
9611019 avr32*:Linux:*:*)
962 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
963 exit ;;
1020 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1021 ;;
9641022 cris:Linux:*:*)
965 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
966 exit ;;
1023 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1024 ;;
9671025 crisv32:Linux:*:*)
968 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
969 exit ;;
1026 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1027 ;;
9701028 e2k:Linux:*:*)
971 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
972 exit ;;
1029 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1030 ;;
9731031 frv:Linux:*:*)
974 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
975 exit ;;
1032 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1033 ;;
9761034 hexagon:Linux:*:*)
977 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
978 exit ;;
1035 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1036 ;;
9791037 i*86:Linux:*:*)
980 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
981 exit ;;
1038 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1039 ;;
9821040 ia64:Linux:*:*)
983 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
984 exit ;;
1041 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1042 ;;
9851043 k1om:Linux:*:*)
986 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
987 exit ;;
1044 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1045 ;;
1046 loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
1047 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1048 ;;
9881049 m32r*:Linux:*:*)
989 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
990 exit ;;
1050 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1051 ;;
9911052 m68*:Linux:*:*)
992 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
993 exit ;;
1053 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1054 ;;
9941055 mips:Linux:*:* | mips64:Linux:*:*)
995 eval $set_cc_for_build
996 sed 's/^ //' << EOF >$dummy.c
1056 set_cc_for_build
1057 IS_GLIBC=0
1058 test x"${LIBC}" = xgnu && IS_GLIBC=1
1059 sed 's/^ //' << EOF > "$dummy.c"
9971060 #undef CPU
998 #undef ${UNAME_MACHINE}
999 #undef ${UNAME_MACHINE}el
1061 #undef mips
1062 #undef mipsel
1063 #undef mips64
1064 #undef mips64el
1065 #if ${IS_GLIBC} && defined(_ABI64)
1066 LIBCABI=gnuabi64
1067 #else
1068 #if ${IS_GLIBC} && defined(_ABIN32)
1069 LIBCABI=gnuabin32
1070 #else
1071 LIBCABI=${LIBC}
1072 #endif
1073 #endif
1074
1075 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1076 CPU=mipsisa64r6
1077 #else
1078 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1079 CPU=mipsisa32r6
1080 #else
1081 #if defined(__mips64)
1082 CPU=mips64
1083 #else
1084 CPU=mips
1085 #endif
1086 #endif
1087 #endif
1088
10001089 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
1001 CPU=${UNAME_MACHINE}el
1090 MIPS_ENDIAN=el
10021091 #else
10031092 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
1004 CPU=${UNAME_MACHINE}
1093 MIPS_ENDIAN=
10051094 #else
1006 CPU=
1095 MIPS_ENDIAN=
10071096 #endif
10081097 #endif
10091098 EOF
1010 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
1011 test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-${LIBC}"; exit; }
1099 cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`
1100 eval "$cc_set_vars"
1101 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-${VENDOR}-linux-$LIBCABI"; exit; }
10121102 ;;
10131103 mips64el:Linux:*:*)
1014 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1015 exit ;;
1104 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1105 ;;
10161106 openrisc*:Linux:*:*)
1017 echo or1k-${VENDOR}-linux-${LIBC}
1018 exit ;;
1107 GUESS=or1k-${VENDOR}-linux-$LIBC
1108 ;;
10191109 or32:Linux:*:* | or1k*:Linux:*:*)
1020 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1021 exit ;;
1110 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1111 ;;
10221112 padre:Linux:*:*)
1023 echo sparc-${VENDOR}-linux-${LIBC}
1024 exit ;;
1113 GUESS=sparc-${VENDOR}-linux-$LIBC
1114 ;;
10251115 parisc64:Linux:*:* | hppa64:Linux:*:*)
1026 echo hppa64-${VENDOR}-linux-${LIBC}
1027 exit ;;
1116 GUESS=hppa64-${VENDOR}-linux-$LIBC
1117 ;;
10281118 parisc:Linux:*:* | hppa:Linux:*:*)
10291119 # Look for CPU level
10301120 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1031 PA7*) echo hppa1.1-${VENDOR}-linux-${LIBC} ;;
1032 PA8*) echo hppa2.0-${VENDOR}-linux-${LIBC} ;;
1033 *) echo hppa-${VENDOR}-linux-${LIBC} ;;
1121 PA7*) GUESS=hppa1.1-${VENDOR}-linux-$LIBC ;;
1122 PA8*) GUESS=hppa2.0-${VENDOR}-linux-$LIBC ;;
1123 *) GUESS=hppa-${VENDOR}-linux-$LIBC ;;
10341124 esac
1035 exit ;;
1125 ;;
10361126 ppc64:Linux:*:*)
1037 echo powerpc64-${VENDOR}-linux-${LIBC}
1038 exit ;;
1127 GUESS=powerpc64-${VENDOR}-linux-$LIBC
1128 ;;
10391129 ppc:Linux:*:*)
1040 echo powerpc-${VENDOR}-linux-${LIBC}
1041 exit ;;
1130 GUESS=powerpc-${VENDOR}-linux-$LIBC
1131 ;;
10421132 ppc64le:Linux:*:*)
1043 echo powerpc64le-${VENDOR}-linux-${LIBC}
1044 exit ;;
1133 GUESS=powerpc64le-${VENDOR}-linux-$LIBC
1134 ;;
10451135 ppcle:Linux:*:*)
1046 echo powerpcle-${VENDOR}-linux-${LIBC}
1047 exit ;;
1048 riscv32:Linux:*:* | riscv64:Linux:*:*)
1049 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1050 exit ;;
1136 GUESS=powerpcle-${VENDOR}-linux-$LIBC
1137 ;;
1138 riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
1139 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1140 ;;
10511141 s390:Linux:*:* | s390x:Linux:*:*)
1052 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1053 exit ;;
1142 GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
1143 ;;
10541144 sh64*:Linux:*:*)
1055 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1056 exit ;;
1145 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1146 ;;
10571147 sh*:Linux:*:*)
1058 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1059 exit ;;
1148 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1149 ;;
10601150 sparc:Linux:*:* | sparc64:Linux:*:*)
1061 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1062 exit ;;
1151 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1152 ;;
10631153 tile*:Linux:*:*)
1064 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1065 exit ;;
1154 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1155 ;;
10661156 vax:Linux:*:*)
1067 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1068 exit ;;
1157 GUESS=$UNAME_MACHINE-dec-linux-$LIBC
1158 ;;
10691159 x86_64:Linux:*:*)
1070 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
1071 exit ;;
1160 set_cc_for_build
1161 LIBCABI=$LIBC
1162 if test "$CC_FOR_BUILD" != no_compiler_found; then
1163 if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
1164 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1165 grep IS_X32 >/dev/null
1166 then
1167 LIBCABI=${LIBC}x32
1168 fi
1169 fi
1170 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBCABI
1171 ;;
10721172 xtensa*:Linux:*:*)
1073 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
1074 exit ;;
1173 GUESS=$UNAME_MACHINE-${VENDOR}-linux-$LIBC
1174 ;;
10751175 i*86:DYNIX/ptx:4*:*)
10761176 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10771177 # earlier versions are messed up and put the nodename in both
10781178 # sysname and nodename.
1079 echo i386-sequent-sysv4
1080 exit ;;
1179 GUESS=i386-sequent-sysv4
1180 ;;
10811181 i*86:UNIX_SV:4.2MP:2.*)
10821182 # Unixware is an offshoot of SVR4, but it has its own version
10831183 # number series starting with 2...
10841184 # I am not positive that other SVR4 systems won't match this,
10851185 # I just have to hope. -- rms.
10861186 # Use sysv4.2uw... so that sysv4* matches it.
1087 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1088 exit ;;
1187 GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
1188 ;;
10891189 i*86:OS/2:*:*)
10901190 # If we were able to find `uname', then EMX Unix compatibility
10911191 # is probably installed.
1092 echo ${UNAME_MACHINE}-pc-os2-emx
1093 exit ;;
1192 GUESS=$UNAME_MACHINE-pc-os2-emx
1193 ;;
10941194 i*86:XTS-300:*:STOP)
1095 echo ${UNAME_MACHINE}-${VENDOR}-stop
1096 exit ;;
1195 GUESS=$UNAME_MACHINE-${VENDOR}-stop
1196 ;;
10971197 i*86:atheos:*:*)
1098 echo ${UNAME_MACHINE}-${VENDOR}-atheos
1099 exit ;;
1198 GUESS=$UNAME_MACHINE-${VENDOR}-atheos
1199 ;;
11001200 i*86:syllable:*:*)
1101 echo ${UNAME_MACHINE}-pc-syllable
1102 exit ;;
1201 GUESS=$UNAME_MACHINE-pc-syllable
1202 ;;
11031203 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1104 echo i386-${VENODR}-lynxos${UNAME_RELEASE}
1105 exit ;;
1204 GUESS=i386-${VENDOR}-lynxos$UNAME_RELEASE
1205 ;;
11061206 i*86:*DOS:*:*)
1107 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1108 exit ;;
1109 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1110 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1207 GUESS=$UNAME_MACHINE-pc-msdosdjgpp
1208 ;;
1209 i*86:*:4.*:*)
1210 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
11111211 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1112 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1212 GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
11131213 else
1114 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1115 fi
1116 exit ;;
1214 GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
1215 fi
1216 ;;
11171217 i*86:*:5:[678]*)
11181218 # UnixWare 7.x, OpenUNIX and OpenServer 6.
11191219 case `/bin/uname -X | grep "^Machine"` in
11211221 *Pentium) UNAME_MACHINE=i586 ;;
11221222 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
11231223 esac
1124 echo ${UNAME_MACHINE}-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1125 exit ;;
1224 GUESS=$UNAME_MACHINE-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1225 ;;
11261226 i*86:*:3.2:*)
11271227 if test -f /usr/options/cb.name; then
11281228 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1129 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1229 GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
11301230 elif /bin/uname -X 2>/dev/null >/dev/null ; then
11311231 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
11321232 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
11361236 && UNAME_MACHINE=i686
11371237 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
11381238 && UNAME_MACHINE=i686
1139 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1239 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
11401240 else
1141 echo ${UNAME_MACHINE}-pc-sysv32
1142 fi
1143 exit ;;
1241 GUESS=$UNAME_MACHINE-pc-sysv32
1242 fi
1243 ;;
11441244 pc:*:*:*)
11451245 # Left here for compatibility:
11461246 # uname -m prints for DJGPP always 'pc', but it prints nothing about
11481248 # Note: whatever this is, it MUST be the same as what config.sub
11491249 # prints for the "djgpp" host, or else GDB configure will decide that
11501250 # this is a cross-build.
1151 echo i586-pc-msdosdjgpp
1152 exit ;;
1251 GUESS=i586-pc-msdosdjgpp
1252 ;;
11531253 Intel:Mach:3*:*)
1154 echo i386-pc-mach3
1155 exit ;;
1254 GUESS=i386-pc-mach3
1255 ;;
11561256 paragon:*:*:*)
1157 echo i860-intel-osf1
1158 exit ;;
1257 GUESS=i860-intel-osf1
1258 ;;
11591259 i860:*:4.*:*) # i860-SVR4
11601260 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1161 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1261 GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4
11621262 else # Add other i860-SVR4 vendors below as they are discovered.
1163 echo i860-${VENODR}-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1164 fi
1165 exit ;;
1263 GUESS=i860-${VENDOR}-sysv$UNAME_RELEASE # Unknown i860-SVR4
1264 fi
1265 ;;
11661266 mini*:CTIX:SYS*5:*)
11671267 # "miniframe"
1168 echo m68010-convergent-sysv
1169 exit ;;
1268 GUESS=m68010-convergent-sysv
1269 ;;
11701270 mc68k:UNIX:SYSTEM5:3.51m)
1171 echo m68k-convergent-sysv
1172 exit ;;
1271 GUESS=m68k-convergent-sysv
1272 ;;
11731273 M680?0:D-NIX:5.3:*)
1174 echo m68k-diab-dnix
1175 exit ;;
1274 GUESS=m68k-diab-dnix
1275 ;;
11761276 M68*:*:R3V[5678]*:*)
11771277 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
11781278 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)
11801280 test -r /etc/.relid \
11811281 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11821282 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1183 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1283 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11841284 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1185 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1285 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11861286 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11871287 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11881288 && { echo i486-ncr-sysv4; exit; } ;;
11911291 test -r /etc/.relid \
11921292 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11931293 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1194 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1294 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11951295 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1196 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1296 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
11971297 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1198 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1298 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11991299 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1200 echo m68k-${VENDOR}-lynxos${UNAME_RELEASE}
1201 exit ;;
1300 GUESS=m68k-${VENDOR}-lynxos$UNAME_RELEASE
1301 ;;
12021302 mc68030:UNIX_System_V:4.*:*)
1203 echo m68k-atari-sysv4
1204 exit ;;
1303 GUESS=m68k-atari-sysv4
1304 ;;
12051305 TSUNAMI:LynxOS:2.*:*)
1206 echo sparc-${VENDOR}-lynxos${UNAME_RELEASE}
1207 exit ;;
1306 GUESS=sparc-${VENDOR}-lynxos$UNAME_RELEASE
1307 ;;
12081308 rs6000:LynxOS:2.*:*)
1209 echo rs6000-${VENDOR}-lynxos${UNAME_RELEASE}
1210 exit ;;
1309 GUESS=rs6000-${VENDOR}-lynxos$UNAME_RELEASE
1310 ;;
12111311 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1212 echo powerpc-${VENDOR}-lynxos${UNAME_RELEASE}
1213 exit ;;
1312 GUESS=powerpc-${VENDOR}-lynxos$UNAME_RELEASE
1313 ;;
12141314 SM[BE]S:UNIX_SV:*:*)
1215 echo mips-dde-sysv${UNAME_RELEASE}
1216 exit ;;
1315 GUESS=mips-dde-sysv$UNAME_RELEASE
1316 ;;
12171317 RM*:ReliantUNIX-*:*:*)
1218 echo mips-sni-sysv4
1219 exit ;;
1318 GUESS=mips-sni-sysv4
1319 ;;
12201320 RM*:SINIX-*:*:*)
1221 echo mips-sni-sysv4
1222 exit ;;
1321 GUESS=mips-sni-sysv4
1322 ;;
12231323 *:SINIX-*:*:*)
12241324 if uname -p 2>/dev/null >/dev/null ; then
12251325 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1226 echo ${UNAME_MACHINE}-sni-sysv4
1326 GUESS=$UNAME_MACHINE-sni-sysv4
12271327 else
1228 echo ns32k-sni-sysv
1229 fi
1230 exit ;;
1328 GUESS=ns32k-sni-sysv
1329 fi
1330 ;;
12311331 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
12321332 # says <Richard.M.Bartel@ccMail.Census.GOV>
1233 echo i586-unisys-sysv4
1234 exit ;;
1333 GUESS=i586-unisys-sysv4
1334 ;;
12351335 *:UNIX_System_V:4*:FTX*)
12361336 # From Gerald Hewes <hewes@openmarket.com>.
12371337 # How about differentiating between stratus architectures? -djm
1238 echo hppa1.1-stratus-sysv4
1239 exit ;;
1338 GUESS=hppa1.1-stratus-sysv4
1339 ;;
12401340 *:*:*:FTX*)
12411341 # From seanf@swdc.stratus.com.
1242 echo i860-stratus-sysv4
1243 exit ;;
1342 GUESS=i860-stratus-sysv4
1343 ;;
12441344 i*86:VOS:*:*)
12451345 # From Paul.Green@stratus.com.
1246 echo ${UNAME_MACHINE}-stratus-vos
1247 exit ;;
1346 GUESS=$UNAME_MACHINE-stratus-vos
1347 ;;
12481348 *:VOS:*:*)
12491349 # From Paul.Green@stratus.com.
1250 echo hppa1.1-stratus-vos
1251 exit ;;
1350 GUESS=hppa1.1-stratus-vos
1351 ;;
12521352 mc68*:A/UX:*:*)
1253 echo m68k-apple-aux${UNAME_RELEASE}
1254 exit ;;
1353 GUESS=m68k-apple-aux$UNAME_RELEASE
1354 ;;
12551355 news*:NEWS-OS:6*:*)
1256 echo mips-sony-newsos6
1257 exit ;;
1356 GUESS=mips-sony-newsos6
1357 ;;
12581358 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1259 if [ -d /usr/nec ]; then
1260 echo mips-nec-sysv${UNAME_RELEASE}
1359 if test -d /usr/nec; then
1360 GUESS=mips-nec-sysv$UNAME_RELEASE
12611361 else
1262 echo mips-${VENDOR}-sysv${UNAME_RELEASE}
1263 fi
1264 exit ;;
1362 GUESS=mips-${VENDOR}-sysv$UNAME_RELEASE
1363 fi
1364 ;;
12651365 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1266 echo powerpc-be-beos
1267 exit ;;
1366 GUESS=powerpc-be-beos
1367 ;;
12681368 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1269 echo powerpc-apple-beos
1270 exit ;;
1369 GUESS=powerpc-apple-beos
1370 ;;
12711371 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1272 echo i586-pc-beos
1273 exit ;;
1372 GUESS=i586-pc-beos
1373 ;;
12741374 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1275 echo i586-pc-haiku
1276 exit ;;
1375 GUESS=i586-pc-haiku
1376 ;;
12771377 x86_64:Haiku:*:*)
1278 echo x86_64-${VENDOR}-haiku
1279 exit ;;
1378 GUESS=x86_64-${VENDOR}-haiku
1379 ;;
12801380 SX-4:SUPER-UX:*:*)
1281 echo sx4-nec-superux${UNAME_RELEASE}
1282 exit ;;
1381 GUESS=sx4-nec-superux$UNAME_RELEASE
1382 ;;
12831383 SX-5:SUPER-UX:*:*)
1284 echo sx5-nec-superux${UNAME_RELEASE}
1285 exit ;;
1384 GUESS=sx5-nec-superux$UNAME_RELEASE
1385 ;;
12861386 SX-6:SUPER-UX:*:*)
1287 echo sx6-nec-superux${UNAME_RELEASE}
1288 exit ;;
1387 GUESS=sx6-nec-superux$UNAME_RELEASE
1388 ;;
12891389 SX-7:SUPER-UX:*:*)
1290 echo sx7-nec-superux${UNAME_RELEASE}
1291 exit ;;
1390 GUESS=sx7-nec-superux$UNAME_RELEASE
1391 ;;
12921392 SX-8:SUPER-UX:*:*)
1293 echo sx8-nec-superux${UNAME_RELEASE}
1294 exit ;;
1393 GUESS=sx8-nec-superux$UNAME_RELEASE
1394 ;;
12951395 SX-8R:SUPER-UX:*:*)
1296 echo sx8r-nec-superux${UNAME_RELEASE}
1297 exit ;;
1396 GUESS=sx8r-nec-superux$UNAME_RELEASE
1397 ;;
12981398 SX-ACE:SUPER-UX:*:*)
1299 echo sxace-nec-superux${UNAME_RELEASE}
1300 exit ;;
1399 GUESS=sxace-nec-superux$UNAME_RELEASE
1400 ;;
13011401 Power*:Rhapsody:*:*)
1302 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1303 exit ;;
1402 GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
1403 ;;
13041404 *:Rhapsody:*:*)
1305 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1306 exit ;;
1405 GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
1406 ;;
1407 arm64:Darwin:*:*)
1408 GUESS=aarch64-apple-darwin$UNAME_RELEASE
1409 ;;
13071410 *:Darwin:*:*)
1308 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1309 eval $set_cc_for_build
1310 if test "$UNAME_PROCESSOR" = unknown ; then
1311 UNAME_PROCESSOR=powerpc
1312 fi
1313 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1314 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
1315 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1316 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1317 grep IS_64BIT_ARCH >/dev/null
1318 then
1319 case $UNAME_PROCESSOR in
1320 i386) UNAME_PROCESSOR=x86_64 ;;
1321 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1322 esac
1323 fi
1324 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1325 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1326 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1327 grep IS_PPC >/dev/null
1328 then
1329 UNAME_PROCESSOR=powerpc
1330 fi
1411 UNAME_PROCESSOR=`uname -p`
1412 case $UNAME_PROCESSOR in
1413 unknown) UNAME_PROCESSOR=powerpc ;;
1414 esac
1415 if command -v xcode-select > /dev/null 2> /dev/null && \
1416 ! xcode-select --print-path > /dev/null 2> /dev/null ; then
1417 # Avoid executing cc if there is no toolchain installed as
1418 # cc will be a stub that puts up a graphical alert
1419 # prompting the user to install developer tools.
1420 CC_FOR_BUILD=no_compiler_found
1421 else
1422 set_cc_for_build
1423 fi
1424 if test "$CC_FOR_BUILD" != no_compiler_found; then
1425 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1426 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1427 grep IS_64BIT_ARCH >/dev/null
1428 then
1429 case $UNAME_PROCESSOR in
1430 i386) UNAME_PROCESSOR=x86_64 ;;
1431 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1432 esac
1433 fi
1434 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1435 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1436 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1437 grep IS_PPC >/dev/null
1438 then
1439 UNAME_PROCESSOR=powerpc
13311440 fi
13321441 elif test "$UNAME_PROCESSOR" = i386 ; then
1333 # Avoid executing cc on OS X 10.9, as it ships with a stub
1334 # that puts up a graphical alert prompting to install
1335 # developer tools. Any system running Mac OS X 10.7 or
1336 # later (Darwin 11 and later) is required to have a 64-bit
1337 # processor. This is not true of the ARM version of Darwin
1338 # that Apple uses in portable devices.
1339 UNAME_PROCESSOR=x86_64
1340 fi
1341 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1342 exit ;;
1442 # uname -m returns i386 or x86_64
1443 UNAME_PROCESSOR=$UNAME_MACHINE
1444 fi
1445 GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE
1446 ;;
13431447 *:procnto*:*:* | *:QNX:[0123456789]*:*)
13441448 UNAME_PROCESSOR=`uname -p`
13451449 if test "$UNAME_PROCESSOR" = x86; then
13461450 UNAME_PROCESSOR=i386
13471451 UNAME_MACHINE=pc
13481452 fi
1349 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1350 exit ;;
1453 GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
1454 ;;
13511455 *:QNX:*:4*)
1352 echo i386-pc-qnx
1353 exit ;;
1456 GUESS=i386-pc-qnx
1457 ;;
13541458 NEO-*:NONSTOP_KERNEL:*:*)
1355 echo neo-tandem-nsk${UNAME_RELEASE}
1356 exit ;;
1459 GUESS=neo-tandem-nsk$UNAME_RELEASE
1460 ;;
13571461 NSE-*:NONSTOP_KERNEL:*:*)
1358 echo nse-tandem-nsk${UNAME_RELEASE}
1359 exit ;;
1462 GUESS=nse-tandem-nsk$UNAME_RELEASE
1463 ;;
13601464 NSR-*:NONSTOP_KERNEL:*:*)
1361 echo nsr-tandem-nsk${UNAME_RELEASE}
1362 exit ;;
1465 GUESS=nsr-tandem-nsk$UNAME_RELEASE
1466 ;;
1467 NSV-*:NONSTOP_KERNEL:*:*)
1468 GUESS=nsv-tandem-nsk$UNAME_RELEASE
1469 ;;
13631470 NSX-*:NONSTOP_KERNEL:*:*)
1364 echo nsx-tandem-nsk${UNAME_RELEASE}
1365 exit ;;
1471 GUESS=nsx-tandem-nsk$UNAME_RELEASE
1472 ;;
13661473 *:NonStop-UX:*:*)
1367 echo mips-compaq-nonstopux
1368 exit ;;
1474 GUESS=mips-compaq-nonstopux
1475 ;;
13691476 BS2000:POSIX*:*:*)
1370 echo bs2000-siemens-sysv
1371 exit ;;
1477 GUESS=bs2000-siemens-sysv
1478 ;;
13721479 DS/*:UNIX_System_V:*:*)
1373 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1374 exit ;;
1480 GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
1481 ;;
13751482 *:Plan9:*:*)
13761483 # "uname -m" is not consistent, so use $cputype instead. 386
13771484 # is converted to i386 for consistency with other x86
13781485 # operating systems.
1379 if test "$cputype" = 386; then
1486 if test "${cputype-}" = 386; then
13801487 UNAME_MACHINE=i386
1381 else
1382 UNAME_MACHINE="$cputype"
1383 fi
1384 echo ${UNAME_MACHINE}-${VENDOR}-plan9
1385 exit ;;
1488 elif test "x${cputype-}" != x; then
1489 UNAME_MACHINE=$cputype
1490 fi
1491 GUESS=$UNAME_MACHINE-${VENDOR}-plan9
1492 ;;
13861493 *:TOPS-10:*:*)
1387 echo pdp10-${VENDOR}-tops10
1388 exit ;;
1494 GUESS=pdp10-${VENDOR}-tops10
1495 ;;
13891496 *:TENEX:*:*)
1390 echo pdp10-${VENDOR}-tenex
1391 exit ;;
1497 GUESS=pdp10-${VENDOR}-tenex
1498 ;;
13921499 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1393 echo pdp10-dec-tops20
1394 exit ;;
1500 GUESS=pdp10-dec-tops20
1501 ;;
13951502 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1396 echo pdp10-xkl-tops20
1397 exit ;;
1503 GUESS=pdp10-xkl-tops20
1504 ;;
13981505 *:TOPS-20:*:*)
1399 echo pdp10-${VENDOR}-tops20
1400 exit ;;
1506 GUESS=pdp10-${VENDOR}-tops20
1507 ;;
14011508 *:ITS:*:*)
1402 echo pdp10-${VENDOR}-its
1403 exit ;;
1509 GUESS=pdp10-${VENDOR}-its
1510 ;;
14041511 SEI:*:*:SEIUX)
1405 echo mips-sei-seiux${UNAME_RELEASE}
1406 exit ;;
1512 GUESS=mips-sei-seiux$UNAME_RELEASE
1513 ;;
14071514 *:DragonFly:*:*)
1408 echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1409 exit ;;
1515 DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
1516 GUESS=$UNAME_MACHINE-${VENDOR}-dragonfly$DRAGONFLY_REL
1517 ;;
14101518 *:*VMS:*:*)
14111519 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1412 case "${UNAME_MACHINE}" in
1413 A*) echo alpha-dec-vms ; exit ;;
1414 I*) echo ia64-dec-vms ; exit ;;
1415 V*) echo vax-dec-vms ; exit ;;
1520 case $UNAME_MACHINE in
1521 A*) GUESS=alpha-dec-vms ;;
1522 I*) GUESS=ia64-dec-vms ;;
1523 V*) GUESS=vax-dec-vms ;;
14161524 esac ;;
14171525 *:XENIX:*:SysV)
1418 echo i386-pc-xenix
1419 exit ;;
1526 GUESS=i386-pc-xenix
1527 ;;
14201528 i*86:skyos:*:*)
1421 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
1422 exit ;;
1529 SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
1530 GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
1531 ;;
14231532 i*86:rdos:*:*)
1424 echo ${UNAME_MACHINE}-pc-rdos
1425 exit ;;
1426 i*86:AROS:*:*)
1427 echo ${UNAME_MACHINE}-pc-aros
1428 exit ;;
1533 GUESS=$UNAME_MACHINE-pc-rdos
1534 ;;
1535 *:AROS:*:*)
1536 GUESS=$UNAME_MACHINE-${VENDOR}-aros
1537 ;;
14291538 x86_64:VMkernel:*:*)
1430 echo ${UNAME_MACHINE}-${VENDOR}-esx
1431 exit ;;
1539 GUESS=$UNAME_MACHINE-${VENDOR}-esx
1540 ;;
14321541 amd64:Isilon\ OneFS:*:*)
1433 echo x86_64-${VENDOR}-onefs
1434 exit ;;
1542 GUESS=x86_64-${VENDOR}-onefs
1543 ;;
1544 *:Unleashed:*:*)
1545 GUESS=$UNAME_MACHINE-${VENDOR}-unleashed$UNAME_RELEASE
1546 ;;
14351547 esac
14361548
1549 # Do we have a guess based on uname results?
1550 if test "x$GUESS" != x; then
1551 echo "$GUESS"
1552 exit
1553 fi
1554
1555 # No uname command or uname output not recognized.
1556 set_cc_for_build
1557 cat > "$dummy.c" <<EOF
1558 #ifdef _SEQUENT_
1559 #include <sys/types.h>
1560 #include <sys/utsname.h>
1561 #endif
1562 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1563 #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1564 #include <signal.h>
1565 #if defined(_SIZE_T_) || defined(SIGLOST)
1566 #include <sys/utsname.h>
1567 #endif
1568 #endif
1569 #endif
1570 main ()
1571 {
1572 #if defined (sony)
1573 #if defined (MIPSEB)
1574 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1575 I don't know.... */
1576 printf ("mips-sony-bsd\n"); exit (0);
1577 #else
1578 #include <sys/param.h>
1579 printf ("m68k-sony-newsos%s\n",
1580 #ifdef NEWSOS4
1581 "4"
1582 #else
1583 ""
1584 #endif
1585 ); exit (0);
1586 #endif
1587 #endif
1588
1589 #if defined (NeXT)
1590 #if !defined (__ARCHITECTURE__)
1591 #define __ARCHITECTURE__ "m68k"
1592 #endif
1593 int version;
1594 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1595 if (version < 4)
1596 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1597 else
1598 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1599 exit (0);
1600 #endif
1601
1602 #if defined (MULTIMAX) || defined (n16)
1603 #if defined (UMAXV)
1604 printf ("ns32k-encore-sysv\n"); exit (0);
1605 #else
1606 #if defined (CMU)
1607 printf ("ns32k-encore-mach\n"); exit (0);
1608 #else
1609 printf ("ns32k-encore-bsd\n"); exit (0);
1610 #endif
1611 #endif
1612 #endif
1613
1614 #if defined (__386BSD__)
1615 printf ("i386-pc-bsd\n"); exit (0);
1616 #endif
1617
1618 #if defined (sequent)
1619 #if defined (i386)
1620 printf ("i386-sequent-dynix\n"); exit (0);
1621 #endif
1622 #if defined (ns32000)
1623 printf ("ns32k-sequent-dynix\n"); exit (0);
1624 #endif
1625 #endif
1626
1627 #if defined (_SEQUENT_)
1628 struct utsname un;
1629
1630 uname(&un);
1631 if (strncmp(un.version, "V2", 2) == 0) {
1632 printf ("i386-sequent-ptx2\n"); exit (0);
1633 }
1634 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1635 printf ("i386-sequent-ptx1\n"); exit (0);
1636 }
1637 printf ("i386-sequent-ptx\n"); exit (0);
1638 #endif
1639
1640 #if defined (vax)
1641 #if !defined (ultrix)
1642 #include <sys/param.h>
1643 #if defined (BSD)
1644 #if BSD == 43
1645 printf ("vax-dec-bsd4.3\n"); exit (0);
1646 #else
1647 #if BSD == 199006
1648 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1649 #else
1650 printf ("vax-dec-bsd\n"); exit (0);
1651 #endif
1652 #endif
1653 #else
1654 printf ("vax-dec-bsd\n"); exit (0);
1655 #endif
1656 #else
1657 #if defined(_SIZE_T_) || defined(SIGLOST)
1658 struct utsname un;
1659 uname (&un);
1660 printf ("vax-dec-ultrix%s\n", un.release); exit (0);
1661 #else
1662 printf ("vax-dec-ultrix\n"); exit (0);
1663 #endif
1664 #endif
1665 #endif
1666 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1667 #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1668 #if defined(_SIZE_T_) || defined(SIGLOST)
1669 struct utsname *un;
1670 uname (&un);
1671 printf ("mips-dec-ultrix%s\n", un.release); exit (0);
1672 #else
1673 printf ("mips-dec-ultrix\n"); exit (0);
1674 #endif
1675 #endif
1676 #endif
1677
1678 #if defined (alliant) && defined (i860)
1679 printf ("i860-alliant-bsd\n"); exit (0);
1680 #endif
1681
1682 exit (1);
1683 }
1684 EOF
1685
1686 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` &&
1687 { echo "$SYSTEM_NAME"; exit; }
1688
1689 # Apollos put the system type in the environment.
1690 test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }
1691
1692 echo "$0: unable to guess system type" >&2
1693
1694 case $UNAME_MACHINE:$UNAME_SYSTEM in
1695 mips:Linux | mips64:Linux)
1696 # If we got here on MIPS GNU/Linux, output extra information.
1697 cat >&2 <<EOF
1698
1699 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1700 the system type. Please install a C compiler and try again.
1701 EOF
1702 ;;
1703 esac
1704
14371705 cat >&2 <<EOF
1438 $0: unable to guess system type
14391706
14401707 This script (version $timestamp), has failed to recognize the
1441 operating system you are using. If your script is old, overwrite
1442 config.guess and config.sub with the latest versions from:
1443
1444 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1708 operating system you are using. If your script is old, overwrite *all*
1709 copies of config.guess and config.sub with the latest versions from:
1710
1711 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
14451712 and
1446 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1713 https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
1714 EOF
1715
1716 our_year=`echo $timestamp | sed 's,-.*,,'`
1717 thisyear=`date +%Y`
1718 # shellcheck disable=SC2003
1719 script_age=`expr "$thisyear" - "$our_year"`
1720 if test "$script_age" -lt 3 ; then
1721 cat >&2 <<EOF
14471722
14481723 If $0 has already been updated, send the following data and any
14491724 information you think might be pertinent to config-patches@gnu.org to
14661741 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
14671742 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
14681743
1469 UNAME_MACHINE = ${UNAME_MACHINE}
1470 UNAME_RELEASE = ${UNAME_RELEASE}
1471 UNAME_SYSTEM = ${UNAME_SYSTEM}
1472 UNAME_VERSION = ${UNAME_VERSION}
1744 UNAME_MACHINE = "$UNAME_MACHINE"
1745 UNAME_RELEASE = "$UNAME_RELEASE"
1746 UNAME_SYSTEM = "$UNAME_SYSTEM"
1747 UNAME_VERSION = "$UNAME_VERSION"
14731748 EOF
1749 fi
14741750
14751751 exit 1
14761752
14771753 # Local variables:
1478 # eval: (add-hook 'write-file-hooks 'time-stamp)
1754 # eval: (add-hook 'before-save-hook 'time-stamp)
14791755 # time-stamp-start: "timestamp='"
14801756 # time-stamp-format: "%:y-%02m-%02d"
14811757 # time-stamp-end: "'"
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2017 Free Software Foundation, Inc.
3
4 timestamp='2017-04-02'
2 # Copyright 1992-2021 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2021-08-14'
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
1416 # General Public License for more details.
1517 #
1618 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
19 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1820 #
1921 # As a special exception to the GNU General Public License, if you
2022 # distribute this file as part of a program that contains a
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 # http://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="\
5665
5766 Canonicalize a configuration name.
5867
59 Operation modes:
68 Options:
6069 -h, --help print this help, then exit
6170 -t, --time-stamp print date of last modification, then exit
6271 -v, --version print version number, then exit
6675 version="\
6776 GNU config.sub ($timestamp)
6877
69 Copyright 1992-2017 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*)
95104 # First pass through any local machine types.
96 echo $1
105 echo "$1"
97106 exit ;;
98107
99108 * )
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 saved_IFS=$IFS
124 IFS="-" read field1 field2 field3 field4 <<EOF
125 $1
126 EOF
127 IFS=$saved_IFS
128
129 # Separate into logical components for further validation
130 case $1 in
131 *-*-*-*-*)
132 echo Invalid configuration \`"$1"\': more than four components >&2
133 exit 1
134 ;;
135 *-*-*-*)
136 basic_machine=$field1-$field2
137 basic_os=$field3-$field4
138 ;;
139 *-*-*)
140 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
141 # parts
142 maybe_os=$field2-$field3
143 case $maybe_os in
144 nto-qnx* | linux-* | uclinux-uclibc* \
145 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
146 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
147 | storm-chaos* | os2-emx* | rtmk-nova*)
148 basic_machine=$field1
149 basic_os=$maybe_os
150 ;;
151 android-linux)
152 basic_machine=$field1-unknown
153 basic_os=linux-android
154 ;;
155 *)
156 basic_machine=$field1-$field2
157 basic_os=$field3
158 ;;
159 esac
160 ;;
161 *-*)
162 # A lone config we happen to match not fitting any pattern
163 case $field1-$field2 in
164 decstation-3100)
165 basic_machine=mips-dec
166 basic_os=
167 ;;
168 *-*)
169 # Second component is usually, but not always the OS
170 case $field2 in
171 # Prevent following clause from handling this valid os
172 sun*os*)
173 basic_machine=$field1
174 basic_os=$field2
175 ;;
176 zephyr*)
177 basic_machine=$field1-unknown
178 basic_os=$field2
179 ;;
180 # Manufacturers
181 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
182 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
183 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
184 | convergent* | ncr* | news | 32* | 3600* | 3100* \
185 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
186 | ultra | tti* | harris | dolphin | highlevel | gould \
187 | cbm | ns | masscomp | apple | axis | knuth | cray \
188 | microblaze* | sim | cisco \
189 | oki | wec | wrs | winbond)
190 basic_machine=$field1-$field2
191 basic_os=
192 ;;
193 *)
194 basic_machine=$field1
195 basic_os=$field2
196 ;;
197 esac
198 ;;
199 esac
200 ;;
201 *)
202 # Convert single-component short-hands not valid as part of
203 # multi-component configurations.
204 case $field1 in
205 386bsd)
206 basic_machine=i386-pc
207 basic_os=bsd
208 ;;
209 a29khif)
210 basic_machine=a29k-amd
211 basic_os=udi
212 ;;
213 adobe68k)
214 basic_machine=m68010-adobe
215 basic_os=scout
216 ;;
217 alliant)
218 basic_machine=fx80-alliant
219 basic_os=
220 ;;
221 altos | altos3068)
222 basic_machine=m68k-altos
223 basic_os=
224 ;;
225 am29k)
226 basic_machine=a29k-none
227 basic_os=bsd
228 ;;
229 amdahl)
230 basic_machine=580-amdahl
231 basic_os=sysv
232 ;;
233 amiga)
234 basic_machine=m68k-unknown
235 basic_os=
236 ;;
237 amigaos | amigados)
238 basic_machine=m68k-unknown
239 basic_os=amigaos
240 ;;
241 amigaunix | amix)
242 basic_machine=m68k-unknown
243 basic_os=sysv4
244 ;;
245 apollo68)
246 basic_machine=m68k-apollo
247 basic_os=sysv
248 ;;
249 apollo68bsd)
250 basic_machine=m68k-apollo
251 basic_os=bsd
252 ;;
253 aros)
254 basic_machine=i386-pc
255 basic_os=aros
256 ;;
257 aux)
258 basic_machine=m68k-apple
259 basic_os=aux
260 ;;
261 balance)
262 basic_machine=ns32k-sequent
263 basic_os=dynix
264 ;;
265 blackfin)
266 basic_machine=bfin-unknown
267 basic_os=linux
268 ;;
269 cegcc)
270 basic_machine=arm-unknown
271 basic_os=cegcc
272 ;;
273 convex-c1)
274 basic_machine=c1-convex
275 basic_os=bsd
276 ;;
277 convex-c2)
278 basic_machine=c2-convex
279 basic_os=bsd
280 ;;
281 convex-c32)
282 basic_machine=c32-convex
283 basic_os=bsd
284 ;;
285 convex-c34)
286 basic_machine=c34-convex
287 basic_os=bsd
288 ;;
289 convex-c38)
290 basic_machine=c38-convex
291 basic_os=bsd
292 ;;
293 cray)
294 basic_machine=j90-cray
295 basic_os=unicos
296 ;;
297 crds | unos)
298 basic_machine=m68k-crds
299 basic_os=
300 ;;
301 da30)
302 basic_machine=m68k-da30
303 basic_os=
304 ;;
305 decstation | pmax | pmin | dec3100 | decstatn)
306 basic_machine=mips-dec
307 basic_os=
308 ;;
309 delta88)
310 basic_machine=m88k-motorola
311 basic_os=sysv3
312 ;;
313 dicos)
314 basic_machine=i686-pc
315 basic_os=dicos
316 ;;
317 djgpp)
318 basic_machine=i586-pc
319 basic_os=msdosdjgpp
320 ;;
321 ebmon29k)
322 basic_machine=a29k-amd
323 basic_os=ebmon
324 ;;
325 es1800 | OSE68k | ose68k | ose | OSE)
326 basic_machine=m68k-ericsson
327 basic_os=ose
328 ;;
329 gmicro)
330 basic_machine=tron-gmicro
331 basic_os=sysv
332 ;;
333 go32)
334 basic_machine=i386-pc
335 basic_os=go32
336 ;;
337 h8300hms)
338 basic_machine=h8300-hitachi
339 basic_os=hms
340 ;;
341 h8300xray)
342 basic_machine=h8300-hitachi
343 basic_os=xray
344 ;;
345 h8500hms)
346 basic_machine=h8500-hitachi
347 basic_os=hms
348 ;;
349 harris)
350 basic_machine=m88k-harris
351 basic_os=sysv3
352 ;;
353 hp300 | hp300hpux)
354 basic_machine=m68k-hp
355 basic_os=hpux
356 ;;
357 hp300bsd)
358 basic_machine=m68k-hp
359 basic_os=bsd
360 ;;
361 hppaosf)
362 basic_machine=hppa1.1-hp
363 basic_os=osf
364 ;;
365 hppro)
366 basic_machine=hppa1.1-hp
367 basic_os=proelf
368 ;;
369 i386mach)
370 basic_machine=i386-mach
371 basic_os=mach
372 ;;
373 isi68 | isi)
374 basic_machine=m68k-isi
375 basic_os=sysv
376 ;;
377 m68knommu)
378 basic_machine=m68k-unknown
379 basic_os=linux
380 ;;
381 magnum | m3230)
382 basic_machine=mips-mips
383 basic_os=sysv
384 ;;
385 merlin)
386 basic_machine=ns32k-utek
387 basic_os=sysv
388 ;;
389 mingw64)
390 basic_machine=x86_64-pc
391 basic_os=mingw64
392 ;;
393 mingw32)
394 basic_machine=i686-pc
395 basic_os=mingw32
396 ;;
397 mingw32ce)
398 basic_machine=arm-unknown
399 basic_os=mingw32ce
400 ;;
401 monitor)
402 basic_machine=m68k-rom68k
403 basic_os=coff
404 ;;
405 morphos)
406 basic_machine=powerpc-unknown
407 basic_os=morphos
408 ;;
409 moxiebox)
410 basic_machine=moxie-unknown
411 basic_os=moxiebox
412 ;;
413 msdos)
414 basic_machine=i386-pc
415 basic_os=msdos
416 ;;
417 msys)
418 basic_machine=i686-pc
419 basic_os=msys
420 ;;
421 mvs)
422 basic_machine=i370-ibm
423 basic_os=mvs
424 ;;
425 nacl)
426 basic_machine=le32-unknown
427 basic_os=nacl
428 ;;
429 ncr3000)
430 basic_machine=i486-ncr
431 basic_os=sysv4
432 ;;
433 netbsd386)
434 basic_machine=i386-pc
435 basic_os=netbsd
436 ;;
437 netwinder)
438 basic_machine=armv4l-rebel
439 basic_os=linux
440 ;;
441 news | news700 | news800 | news900)
442 basic_machine=m68k-sony
443 basic_os=newsos
444 ;;
445 news1000)
446 basic_machine=m68030-sony
447 basic_os=newsos
448 ;;
449 necv70)
450 basic_machine=v70-nec
451 basic_os=sysv
452 ;;
453 nh3000)
454 basic_machine=m68k-harris
455 basic_os=cxux
456 ;;
457 nh[45]000)
458 basic_machine=m88k-harris
459 basic_os=cxux
460 ;;
461 nindy960)
462 basic_machine=i960-intel
463 basic_os=nindy
464 ;;
465 mon960)
466 basic_machine=i960-intel
467 basic_os=mon960
468 ;;
469 nonstopux)
470 basic_machine=mips-compaq
471 basic_os=nonstopux
472 ;;
473 os400)
474 basic_machine=powerpc-ibm
475 basic_os=os400
476 ;;
477 OSE68000 | ose68000)
478 basic_machine=m68000-ericsson
479 basic_os=ose
480 ;;
481 os68k)
482 basic_machine=m68k-none
483 basic_os=os68k
484 ;;
485 paragon)
486 basic_machine=i860-intel
487 basic_os=osf
488 ;;
489 parisc)
490 basic_machine=hppa-unknown
491 basic_os=linux
492 ;;
493 psp)
494 basic_machine=mipsallegrexel-sony
495 basic_os=psp
496 ;;
497 pw32)
498 basic_machine=i586-unknown
499 basic_os=pw32
500 ;;
501 rdos | rdos64)
502 basic_machine=x86_64-pc
503 basic_os=rdos
504 ;;
505 rdos32)
506 basic_machine=i386-pc
507 basic_os=rdos
508 ;;
509 rom68k)
510 basic_machine=m68k-rom68k
511 basic_os=coff
512 ;;
513 sa29200)
514 basic_machine=a29k-amd
515 basic_os=udi
516 ;;
517 sei)
518 basic_machine=mips-sei
519 basic_os=seiux
520 ;;
521 sequent)
522 basic_machine=i386-sequent
523 basic_os=
524 ;;
525 sps7)
526 basic_machine=m68k-bull
527 basic_os=sysv2
528 ;;
529 st2000)
530 basic_machine=m68k-tandem
531 basic_os=
532 ;;
533 stratus)
534 basic_machine=i860-stratus
535 basic_os=sysv4
536 ;;
537 sun2)
538 basic_machine=m68000-sun
539 basic_os=
540 ;;
541 sun2os3)
542 basic_machine=m68000-sun
543 basic_os=sunos3
544 ;;
545 sun2os4)
546 basic_machine=m68000-sun
547 basic_os=sunos4
548 ;;
549 sun3)
550 basic_machine=m68k-sun
551 basic_os=
552 ;;
553 sun3os3)
554 basic_machine=m68k-sun
555 basic_os=sunos3
556 ;;
557 sun3os4)
558 basic_machine=m68k-sun
559 basic_os=sunos4
560 ;;
561 sun4)
562 basic_machine=sparc-sun
563 basic_os=
564 ;;
565 sun4os3)
566 basic_machine=sparc-sun
567 basic_os=sunos3
568 ;;
569 sun4os4)
570 basic_machine=sparc-sun
571 basic_os=sunos4
572 ;;
573 sun4sol2)
574 basic_machine=sparc-sun
575 basic_os=solaris2
576 ;;
577 sun386 | sun386i | roadrunner)
578 basic_machine=i386-sun
579 basic_os=
580 ;;
581 sv1)
582 basic_machine=sv1-cray
583 basic_os=unicos
584 ;;
585 symmetry)
586 basic_machine=i386-sequent
587 basic_os=dynix
588 ;;
589 t3e)
590 basic_machine=alphaev5-cray
591 basic_os=unicos
592 ;;
593 t90)
594 basic_machine=t90-cray
595 basic_os=unicos
596 ;;
597 toad1)
598 basic_machine=pdp10-xkl
599 basic_os=tops20
600 ;;
601 tpf)
602 basic_machine=s390x-ibm
603 basic_os=tpf
604 ;;
605 udi29k)
606 basic_machine=a29k-amd
607 basic_os=udi
608 ;;
609 ultra3)
610 basic_machine=a29k-nyu
611 basic_os=sym1
612 ;;
613 v810 | necv810)
614 basic_machine=v810-nec
615 basic_os=none
616 ;;
617 vaxv)
618 basic_machine=vax-dec
619 basic_os=sysv
620 ;;
621 vms)
622 basic_machine=vax-dec
623 basic_os=vms
624 ;;
625 vsta)
626 basic_machine=i386-pc
627 basic_os=vsta
628 ;;
629 vxworks960)
630 basic_machine=i960-wrs
631 basic_os=vxworks
632 ;;
633 vxworks68)
634 basic_machine=m68k-wrs
635 basic_os=vxworks
636 ;;
637 vxworks29k)
638 basic_machine=a29k-wrs
639 basic_os=vxworks
640 ;;
641 xbox)
642 basic_machine=i686-pc
643 basic_os=mingw32
644 ;;
645 ymp)
646 basic_machine=ymp-cray
647 basic_os=unicos
648 ;;
649 *)
650 basic_machine=$1
651 basic_os=
652 ;;
653 esac
654 ;;
134655 esac
135656
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 -windowsnt*)
232 os=`echo $os | sed -e 's/windowsnt/winnt/'`
233 ;;
234 -psos*)
235 os=-psos
236 ;;
237 -mint | -mint[0-9]*)
238 basic_machine=m68k-atari
239 os=-mint
240 ;;
241 esac
242
243 # Decode aliases for certain CPU-COMPANY combinations.
657 # Decode 1-component or ad-hoc basic machines
244658 case $basic_machine in
245 # Recognize the basic CPU types without company name.
246 # Some are omitted here because they have special meanings below.
247 1750a | 580 \
248 | a29k \
249 | aarch64 | aarch64_be \
250 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
251 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
252 | am33_2.0 \
253 | arc | arceb \
254 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
255 | avr | avr32 \
256 | ba \
257 | be32 | be64 \
258 | bfin \
259 | c4x | c8051 | clipper \
260 | d10v | d30v | dlx | dsp16xx \
261 | e2k | epiphany \
262 | fido | fr30 | frv | ft32 \
263 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264 | hexagon \
265 | i370 | i860 | i960 | ia16 | ia64 \
266 | ip2k | iq2000 \
267 | k1om \
268 | le32 | le64 \
269 | lm32 \
270 | m32c | m32r | m32rle | m68000 | m68k | m88k \
271 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
272 | mips | mipsbe | mipseb | mipsel | mipsle \
273 | mips16 \
274 | mips64 | mips64el \
275 | mips64octeon | mips64octeonel \
276 | mips64orion | mips64orionel \
277 | mips64r5900 | mips64r5900el \
278 | mips64vr | mips64vrel \
279 | mips64vr4100 | mips64vr4100el \
280 | mips64vr4300 | mips64vr4300el \
281 | mips64vr5000 | mips64vr5000el \
282 | mips64vr5900 | mips64vr5900el \
283 | mipsisa32 | mipsisa32el \
284 | mipsisa32r2 | mipsisa32r2el \
285 | mipsisa32r6 | mipsisa32r6el \
286 | mipsisa64 | mipsisa64el \
287 | mipsisa64r2 | mipsisa64r2el \
288 | mipsisa64r6 | mipsisa64r6el \
289 | mipsisa64sb1 | mipsisa64sb1el \
290 | mipsisa64sr71k | mipsisa64sr71kel \
291 | mipsr5900 | mipsr5900el \
292 | mipstx39 | mipstx39el \
293 | mn10200 | mn10300 \
294 | moxie \
295 | mt \
296 | msp430 \
297 | nds32 | nds32le | nds32be \
298 | nios | nios2 | nios2eb | nios2el \
299 | ns16k | ns32k \
300 | open8 | or1k | or1knd | or32 \
301 | pdp10 | pdp11 | pj | pjl \
302 | powerpc | powerpc64 | powerpc64le | powerpcle \
303 | pru \
304 | pyramid \
305 | riscv32 | riscv64 \
306 | rl78 | rx \
307 | score \
308 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
309 | sh64 | sh64le \
310 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
311 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
312 | spu \
313 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
314 | ubicom32 \
315 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
316 | visium \
317 | wasm32 \
318 | we32k \
319 | x86 | xc16x | xstormy16 | xtensa \
320 | z8k | z80)
321 basic_machine=$basic_machine-unknown
322 ;;
323 c54x)
324 basic_machine=tic54x-unknown
325 ;;
326 c55x)
327 basic_machine=tic55x-unknown
328 ;;
329 c6x)
330 basic_machine=tic6x-unknown
659 # Here we handle the default manufacturer of certain CPU types. It is in
660 # some cases the only manufacturer, in others, it is the most popular.
661 w89k)
662 cpu=hppa1.1
663 vendor=winbond
664 ;;
665 op50n)
666 cpu=hppa1.1
667 vendor=oki
668 ;;
669 op60c)
670 cpu=hppa1.1
671 vendor=oki
672 ;;
673 ibm*)
674 cpu=i370
675 vendor=ibm
676 ;;
677 orion105)
678 cpu=clipper
679 vendor=highlevel
680 ;;
681 mac | mpw | mac-mpw)
682 cpu=m68k
683 vendor=apple
684 ;;
685 pmac | pmac-mpw)
686 cpu=powerpc
687 vendor=apple
688 ;;
689
690 # Recognize the various machine names and aliases which stand
691 # for a CPU type and a company and sometimes even an OS.
692 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
693 cpu=m68000
694 vendor=att
695 ;;
696 3b*)
697 cpu=we32k
698 vendor=att
699 ;;
700 bluegene*)
701 cpu=powerpc
702 vendor=ibm
703 basic_os=cnk
704 ;;
705 decsystem10* | dec10*)
706 cpu=pdp10
707 vendor=dec
708 basic_os=tops10
709 ;;
710 decsystem20* | dec20*)
711 cpu=pdp10
712 vendor=dec
713 basic_os=tops20
714 ;;
715 delta | 3300 | motorola-3300 | motorola-delta \
716 | 3300-motorola | delta-motorola)
717 cpu=m68k
718 vendor=motorola
719 ;;
720 dpx2*)
721 cpu=m68k
722 vendor=bull
723 basic_os=sysv3
724 ;;
725 encore | umax | mmax)
726 cpu=ns32k
727 vendor=encore
728 ;;
729 elxsi)
730 cpu=elxsi
731 vendor=elxsi
732 basic_os=${basic_os:-bsd}
733 ;;
734 fx2800)
735 cpu=i860
736 vendor=alliant
737 ;;
738 genix)
739 cpu=ns32k
740 vendor=ns
741 ;;
742 h3050r* | hiux*)
743 cpu=hppa1.1
744 vendor=hitachi
745 basic_os=hiuxwe2
746 ;;
747 hp3k9[0-9][0-9] | hp9[0-9][0-9])
748 cpu=hppa1.0
749 vendor=hp
750 ;;
751 hp9k2[0-9][0-9] | hp9k31[0-9])
752 cpu=m68000
753 vendor=hp
754 ;;
755 hp9k3[2-9][0-9])
756 cpu=m68k
757 vendor=hp
758 ;;
759 hp9k6[0-9][0-9] | hp6[0-9][0-9])
760 cpu=hppa1.0
761 vendor=hp
762 ;;
763 hp9k7[0-79][0-9] | hp7[0-79][0-9])
764 cpu=hppa1.1
765 vendor=hp
766 ;;
767 hp9k78[0-9] | hp78[0-9])
768 # FIXME: really hppa2.0-hp
769 cpu=hppa1.1
770 vendor=hp
771 ;;
772 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
773 # FIXME: really hppa2.0-hp
774 cpu=hppa1.1
775 vendor=hp
776 ;;
777 hp9k8[0-9][13679] | hp8[0-9][13679])
778 cpu=hppa1.1
779 vendor=hp
780 ;;
781 hp9k8[0-9][0-9] | hp8[0-9][0-9])
782 cpu=hppa1.0
783 vendor=hp
784 ;;
785 i*86v32)
786 cpu=`echo "$1" | sed -e 's/86.*/86/'`
787 vendor=pc
788 basic_os=sysv32
789 ;;
790 i*86v4*)
791 cpu=`echo "$1" | sed -e 's/86.*/86/'`
792 vendor=pc
793 basic_os=sysv4
794 ;;
795 i*86v)
796 cpu=`echo "$1" | sed -e 's/86.*/86/'`
797 vendor=pc
798 basic_os=sysv
799 ;;
800 i*86sol2)
801 cpu=`echo "$1" | sed -e 's/86.*/86/'`
802 vendor=pc
803 basic_os=solaris2
804 ;;
805 j90 | j90-cray)
806 cpu=j90
807 vendor=cray
808 basic_os=${basic_os:-unicos}
809 ;;
810 iris | iris4d)
811 cpu=mips
812 vendor=sgi
813 case $basic_os in
814 irix*)
815 ;;
816 *)
817 basic_os=irix4
818 ;;
819 esac
820 ;;
821 miniframe)
822 cpu=m68000
823 vendor=convergent
824 ;;
825 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
826 cpu=m68k
827 vendor=atari
828 basic_os=mint
829 ;;
830 news-3600 | risc-news)
831 cpu=mips
832 vendor=sony
833 basic_os=newsos
834 ;;
835 next | m*-next)
836 cpu=m68k
837 vendor=next
838 case $basic_os in
839 openstep*)
840 ;;
841 nextstep*)
842 ;;
843 ns2*)
844 basic_os=nextstep2
845 ;;
846 *)
847 basic_os=nextstep3
848 ;;
849 esac
850 ;;
851 np1)
852 cpu=np1
853 vendor=gould
854 ;;
855 op50n-* | op60c-*)
856 cpu=hppa1.1
857 vendor=oki
858 basic_os=proelf
859 ;;
860 pa-hitachi)
861 cpu=hppa1.1
862 vendor=hitachi
863 basic_os=hiuxwe2
864 ;;
865 pbd)
866 cpu=sparc
867 vendor=tti
868 ;;
869 pbb)
870 cpu=m68k
871 vendor=tti
872 ;;
873 pc532)
874 cpu=ns32k
875 vendor=pc532
876 ;;
877 pn)
878 cpu=pn
879 vendor=gould
880 ;;
881 power)
882 cpu=power
883 vendor=ibm
884 ;;
885 ps2)
886 cpu=i386
887 vendor=ibm
888 ;;
889 rm[46]00)
890 cpu=mips
891 vendor=siemens
892 ;;
893 rtpc | rtpc-*)
894 cpu=romp
895 vendor=ibm
896 ;;
897 sde)
898 cpu=mipsisa32
899 vendor=sde
900 basic_os=${basic_os:-elf}
901 ;;
902 simso-wrs)
903 cpu=sparclite
904 vendor=wrs
905 basic_os=vxworks
906 ;;
907 tower | tower-32)
908 cpu=m68k
909 vendor=ncr
910 ;;
911 vpp*|vx|vx-*)
912 cpu=f301
913 vendor=fujitsu
914 ;;
915 w65)
916 cpu=w65
917 vendor=wdc
918 ;;
919 w89k-*)
920 cpu=hppa1.1
921 vendor=winbond
922 basic_os=proelf
923 ;;
924 none)
925 cpu=none
926 vendor=none
331927 ;;
332928 leon|leon[3-9])
333 basic_machine=sparc-$basic_machine
334 ;;
335 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
336 basic_machine=$basic_machine-unknown
337 os=-none
338 ;;
339 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
340 ;;
341 ms1)
342 basic_machine=mt-unknown
343 ;;
344
345 strongarm | thumb | xscale)
346 basic_machine=arm-unknown
347 ;;
348 xgate)
349 basic_machine=$basic_machine-unknown
350 os=-none
351 ;;
352 xscaleeb)
353 basic_machine=armeb-unknown
354 ;;
355
356 xscaleel)
357 basic_machine=armel-unknown
358 ;;
359
929 cpu=sparc
930 vendor=$basic_machine
931 ;;
932 leon-*|leon[3-9]-*)
933 cpu=sparc
934 vendor=`echo "$basic_machine" | sed 's/-.*//'`
935 ;;
936
937 *-*)
938 # shellcheck disable=SC2162
939 saved_IFS=$IFS
940 IFS="-" read cpu vendor <<EOF
941 $basic_machine
942 EOF
943 IFS=$saved_IFS
944 ;;
360945 # We use `pc' rather than `unknown'
361946 # because (1) that's what they normally are, and
362947 # (2) the word "unknown" tends to confuse beginning users.
363948 i*86 | x86_64)
364 basic_machine=$basic_machine-pc
365 ;;
366 # Object if more than one company name word.
367 *-*-*)
368 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
369 exit 1
370 ;;
371 # Recognize the basic CPU types with company name.
372 580-* \
373 | a29k-* \
374 | aarch64-* | aarch64_be-* \
375 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
376 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
377 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
378 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
379 | avr-* | avr32-* \
380 | ba-* \
381 | be32-* | be64-* \
382 | bfin-* | bs2000-* \
383 | c[123]* | c30-* | [cjt]90-* | c4x-* \
384 | c8051-* | clipper-* | craynv-* | cydra-* \
385 | d10v-* | d30v-* | dlx-* \
386 | e2k-* | elxsi-* \
387 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
388 | h8300-* | h8500-* \
389 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
390 | hexagon-* \
391 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
392 | ip2k-* | iq2000-* \
393 | k1om-* \
394 | le32-* | le64-* \
395 | lm32-* \
396 | m32c-* | m32r-* | m32rle-* \
397 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
398 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
399 | microblaze-* | microblazeel-* \
400 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
401 | mips16-* \
402 | mips64-* | mips64el-* \
403 | mips64octeon-* | mips64octeonel-* \
404 | mips64orion-* | mips64orionel-* \
405 | mips64r5900-* | mips64r5900el-* \
406 | mips64vr-* | mips64vrel-* \
407 | mips64vr4100-* | mips64vr4100el-* \
408 | mips64vr4300-* | mips64vr4300el-* \
409 | mips64vr5000-* | mips64vr5000el-* \
410 | mips64vr5900-* | mips64vr5900el-* \
411 | mipsisa32-* | mipsisa32el-* \
412 | mipsisa32r2-* | mipsisa32r2el-* \
413 | mipsisa32r6-* | mipsisa32r6el-* \
414 | mipsisa64-* | mipsisa64el-* \
415 | mipsisa64r2-* | mipsisa64r2el-* \
416 | mipsisa64r6-* | mipsisa64r6el-* \
417 | mipsisa64sb1-* | mipsisa64sb1el-* \
418 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
419 | mipsr5900-* | mipsr5900el-* \
420 | mipstx39-* | mipstx39el-* \
421 | mmix-* \
422 | mt-* \
423 | msp430-* \
424 | nds32-* | nds32le-* | nds32be-* \
425 | nios-* | nios2-* | nios2eb-* | nios2el-* \
426 | none-* | np1-* | ns16k-* | ns32k-* \
427 | open8-* \
428 | or1k*-* \
429 | orion-* \
430 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
431 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
432 | pru-* \
433 | pyramid-* \
434 | riscv32-* | riscv64-* \
435 | rl78-* | romp-* | rs6000-* | rx-* \
436 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
437 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
438 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
439 | sparclite-* \
440 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
441 | tahoe-* \
442 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
443 | tile*-* \
444 | tron-* \
445 | ubicom32-* \
446 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
447 | vax-* \
448 | visium-* \
449 | wasm32-* \
450 | we32k-* \
451 | x86-* | x86_64-* | xc16x-* | xps100-* \
452 | xstormy16-* | xtensa*-* \
453 | ymp-* \
454 | z8k-* | z80-*)
455 ;;
456 # Recognize the basic CPU types without company name, with glob match.
457 xtensa*)
458 basic_machine=$basic_machine-unknown
459 ;;
460 # Recognize the various machine names and aliases which stand
461 # for a CPU type and a company and sometimes even an OS.
949 cpu=$basic_machine
950 vendor=pc
951 ;;
952 # These rules are duplicated from below for sake of the special case above;
953 # i.e. things that normalized to x86 arches should also default to "pc"
954 pc98)
955 cpu=i386
956 vendor=pc
957 ;;
958 x64 | amd64)
959 cpu=x86_64
960 vendor=pc
961 ;;
962 # Recognize the basic CPU types without company name.
963 *)
964 cpu=$basic_machine
965 vendor=unknown
966 ;;
967 esac
968
969 unset -v basic_machine
970
971 # Decode basic machines in the full and proper CPU-Company form.
972 case $cpu-$vendor in
973 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
974 # some cases the only manufacturer, in others, it is the most popular.
975 craynv-unknown)
976 vendor=cray
977 basic_os=${basic_os:-unicosmp}
978 ;;
979 c90-unknown | c90-cray)
980 vendor=cray
981 basic_os=${Basic_os:-unicos}
982 ;;
983 fx80-unknown)
984 vendor=alliant
985 ;;
986 romp-unknown)
987 vendor=ibm
988 ;;
989 mmix-unknown)
990 vendor=knuth
991 ;;
992 microblaze-unknown | microblazeel-unknown)
993 vendor=xilinx
994 ;;
995 rs6000-unknown)
996 vendor=ibm
997 ;;
998 vax-unknown)
999 vendor=dec
1000 ;;
1001 pdp11-unknown)
1002 vendor=dec
1003 ;;
1004 we32k-unknown)
1005 vendor=att
1006 ;;
1007 cydra-unknown)
1008 vendor=cydrome
1009 ;;
1010 i370-ibm*)
1011 vendor=ibm
1012 ;;
1013 orion-unknown)
1014 vendor=highlevel
1015 ;;
1016 xps-unknown | xps100-unknown)
1017 cpu=xps100
1018 vendor=honeywell
1019 ;;
1020
1021 # Here we normalize CPU types with a missing or matching vendor
1022 dpx20-unknown | dpx20-bull)
1023 cpu=rs6000
1024 vendor=bull
1025 basic_os=${basic_os:-bosx}
1026 ;;
1027
1028 # Here we normalize CPU types irrespective of the vendor
1029 amd64-*)
1030 cpu=x86_64
1031 ;;
1032 blackfin-*)
1033 cpu=bfin
1034 basic_os=linux
1035 ;;
1036 c54x-*)
1037 cpu=tic54x
1038 ;;
1039 c55x-*)
1040 cpu=tic55x
1041 ;;
1042 c6x-*)
1043 cpu=tic6x
1044 ;;
1045 e500v[12]-*)
1046 cpu=powerpc
1047 basic_os=${basic_os}"spe"
1048 ;;
1049 mips3*-*)
1050 cpu=mips64
1051 ;;
1052 ms1-*)
1053 cpu=mt
1054 ;;
1055 m68knommu-*)
1056 cpu=m68k
1057 basic_os=linux
1058 ;;
1059 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1060 cpu=s12z
1061 ;;
1062 openrisc-*)
1063 cpu=or32
1064 ;;
1065 parisc-*)
1066 cpu=hppa
1067 basic_os=linux
1068 ;;
1069 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1070 cpu=i586
1071 ;;
1072 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1073 cpu=i686
1074 ;;
1075 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1076 cpu=i686
1077 ;;
1078 pentium4-*)
1079 cpu=i786
1080 ;;
1081 pc98-*)
1082 cpu=i386
1083 ;;
1084 ppc-* | ppcbe-*)
1085 cpu=powerpc
1086 ;;
1087 ppcle-* | powerpclittle-*)
1088 cpu=powerpcle
1089 ;;
1090 ppc64-*)
1091 cpu=powerpc64
1092 ;;
1093 ppc64le-* | powerpc64little-*)
1094 cpu=powerpc64le
1095 ;;
1096 sb1-*)
1097 cpu=mipsisa64sb1
1098 ;;
1099 sb1el-*)
1100 cpu=mipsisa64sb1el
1101 ;;
1102 sh5e[lb]-*)
1103 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1104 ;;
1105 spur-*)
1106 cpu=spur
1107 ;;
1108 strongarm-* | thumb-*)
1109 cpu=arm
1110 ;;
1111 tx39-*)
1112 cpu=mipstx39
1113 ;;
1114 tx39el-*)
1115 cpu=mipstx39el
1116 ;;
1117 x64-*)
1118 cpu=x86_64
1119 ;;
1120 xscale-* | xscalee[bl]-*)
1121 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1122 ;;
1123 arm64-*)
1124 cpu=aarch64
1125 ;;
1126
1127 # Recognize the canonical CPU Types that limit and/or modify the
1128 # company names they are paired with.
1129 cr16-*)
1130 basic_os=${basic_os:-elf}
1131 ;;
1132 crisv32-* | etraxfs*-*)
1133 cpu=crisv32
1134 vendor=axis
1135 ;;
1136 cris-* | etrax*-*)
1137 cpu=cris
1138 vendor=axis
1139 ;;
1140 crx-*)
1141 basic_os=${basic_os:-elf}
1142 ;;
1143 neo-tandem)
1144 cpu=neo
1145 vendor=tandem
1146 ;;
1147 nse-tandem)
1148 cpu=nse
1149 vendor=tandem
1150 ;;
1151 nsr-tandem)
1152 cpu=nsr
1153 vendor=tandem
1154 ;;
1155 nsv-tandem)
1156 cpu=nsv
1157 vendor=tandem
1158 ;;
1159 nsx-tandem)
1160 cpu=nsx
1161 vendor=tandem
1162 ;;
1163 mipsallegrexel-sony)
1164 cpu=mipsallegrexel
1165 vendor=sony
1166 ;;
1167 tile*-*)
1168 basic_os=${basic_os:-linux-gnu}
1169 ;;
1170
1171 *)
1172 # Recognize the canonical CPU types that are allowed with any
1173 # company name.
1174 case $cpu in
1175 1750a | 580 \
1176 | a29k \
1177 | aarch64 | aarch64_be \
1178 | abacus \
1179 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1180 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1181 | alphapca5[67] | alpha64pca5[67] \
1182 | am33_2.0 \
1183 | amdgcn \
1184 | arc | arceb | arc32 | arc64 \
1185 | arm | arm[lb]e | arme[lb] | armv* \
1186 | avr | avr32 \
1187 | asmjs \
1188 | ba \
1189 | be32 | be64 \
1190 | bfin | bpf | bs2000 \
1191 | c[123]* | c30 | [cjt]90 | c4x \
1192 | c8051 | clipper | craynv | csky | cydra \
1193 | d10v | d30v | dlx | dsp16xx \
1194 | e2k | elxsi | epiphany \
1195 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1196 | h8300 | h8500 \
1197 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1198 | hexagon \
1199 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1200 | ip2k | iq2000 \
1201 | k1om \
1202 | le32 | le64 \
1203 | lm32 \
1204 | loongarch32 | loongarch64 | loongarchx32 \
1205 | m32c | m32r | m32rle \
1206 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
1207 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
1208 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1209 | microblaze | microblazeel \
1210 | mips | mipsbe | mipseb | mipsel | mipsle \
1211 | mips16 \
1212 | mips64 | mips64eb | mips64el \
1213 | mips64octeon | mips64octeonel \
1214 | mips64orion | mips64orionel \
1215 | mips64r5900 | mips64r5900el \
1216 | mips64vr | mips64vrel \
1217 | mips64vr4100 | mips64vr4100el \
1218 | mips64vr4300 | mips64vr4300el \
1219 | mips64vr5000 | mips64vr5000el \
1220 | mips64vr5900 | mips64vr5900el \
1221 | mipsisa32 | mipsisa32el \
1222 | mipsisa32r2 | mipsisa32r2el \
1223 | mipsisa32r3 | mipsisa32r3el \
1224 | mipsisa32r5 | mipsisa32r5el \
1225 | mipsisa32r6 | mipsisa32r6el \
1226 | mipsisa64 | mipsisa64el \
1227 | mipsisa64r2 | mipsisa64r2el \
1228 | mipsisa64r3 | mipsisa64r3el \
1229 | mipsisa64r5 | mipsisa64r5el \
1230 | mipsisa64r6 | mipsisa64r6el \
1231 | mipsisa64sb1 | mipsisa64sb1el \
1232 | mipsisa64sr71k | mipsisa64sr71kel \
1233 | mipsr5900 | mipsr5900el \
1234 | mipstx39 | mipstx39el \
1235 | mmix \
1236 | mn10200 | mn10300 \
1237 | moxie \
1238 | mt \
1239 | msp430 \
1240 | nds32 | nds32le | nds32be \
1241 | nfp \
1242 | nios | nios2 | nios2eb | nios2el \
1243 | none | np1 | ns16k | ns32k | nvptx \
1244 | open8 \
1245 | or1k* \
1246 | or32 \
1247 | orion \
1248 | picochip \
1249 | pdp10 | pdp11 | pj | pjl | pn | power \
1250 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1251 | pru \
1252 | pyramid \
1253 | riscv | riscv32 | riscv32be | riscv64 | riscv64be \
1254 | rl78 | romp | rs6000 | rx \
1255 | s390 | s390x \
1256 | score \
1257 | sh | shl \
1258 | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1259 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1260 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1261 | sparclite \
1262 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1263 | spu \
1264 | tahoe \
1265 | thumbv7* \
1266 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1267 | tron \
1268 | ubicom32 \
1269 | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1270 | vax \
1271 | visium \
1272 | w65 \
1273 | wasm32 | wasm64 \
1274 | we32k \
1275 | x86 | x86_64 | xc16x | xgate | xps100 \
1276 | xstormy16 | xtensa* \
1277 | ymp \
1278 | z8k | z80)
1279 ;;
1280
1281 *)
1282 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1283 exit 1
1284 ;;
1285 esac
1286 ;;
1287 esac
1288
1289 # Here we canonicalize certain aliases for manufacturers.
1290 case $vendor in
1291 digital*)
1292 vendor=dec
1293 ;;
1294 commodore*)
1295 vendor=cbm
1296 ;;
1297 *)
1298 ;;
1299 esac
1300
1301 # Decode manufacturer-specific aliases for certain operating systems.
1302
1303 if test x$basic_os != x
1304 then
1305
1306 # First recognize some ad-hoc caes, or perhaps split kernel-os, or else just
1307 # set os.
1308 case $basic_os in
1309 gnu/linux*)
1310 kernel=linux
1311 os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'`
1312 ;;
1313 os2-emx)
1314 kernel=os2
1315 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'`
1316 ;;
1317 nto-qnx*)
1318 kernel=nto
1319 os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'`
1320 ;;
1321 *-*)
1322 # shellcheck disable=SC2162
1323 saved_IFS=$IFS
1324 IFS="-" read kernel os <<EOF
1325 $basic_os
1326 EOF
1327 IFS=$saved_IFS
1328 ;;
1329 # Default OS when just kernel was specified
1330 nto*)
1331 kernel=nto
1332 os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
1333 ;;
1334 linux*)
1335 kernel=linux
1336 os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
1337 ;;
1338 *)
1339 kernel=
1340 os=$basic_os
1341 ;;
1342 esac
1343
1344 # Now, normalize the OS (knowing we just have one component, it's not a kernel,
1345 # etc.)
1346 case $os in
1347 # First match some system type aliases that might get confused
1348 # with valid system types.
1349 # solaris* is a basic system type, with this one exception.
1350 auroraux)
1351 os=auroraux
1352 ;;
1353 bluegene*)
1354 os=cnk
1355 ;;
1356 solaris1 | solaris1.*)
1357 os=`echo "$os" | sed -e 's|solaris1|sunos4|'`
1358 ;;
1359 solaris)
1360 os=solaris2
1361 ;;
1362 unixware*)
1363 os=sysv4.2uw
1364 ;;
1365 # es1800 is here to avoid being matched by es* (a different OS)
1366 es1800*)
1367 os=ose
1368 ;;
1369 # Some version numbers need modification
1370 chorusos*)
1371 os=chorusos
1372 ;;
1373 isc)
1374 os=isc2.2
1375 ;;
1376 sco6)
1377 os=sco5v6
1378 ;;
1379 sco5)
1380 os=sco3.2v5
1381 ;;
1382 sco4)
1383 os=sco3.2v4
1384 ;;
1385 sco3.2.[4-9]*)
1386 os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'`
1387 ;;
1388 sco*v* | scout)
1389 # Don't match below
1390 ;;
1391 sco*)
1392 os=sco3.2v2
1393 ;;
1394 psos*)
1395 os=psos
1396 ;;
1397 qnx*)
1398 os=qnx
1399 ;;
1400 hiux*)
1401 os=hiuxwe2
1402 ;;
1403 lynx*178)
1404 os=lynxos178
1405 ;;
1406 lynx*5)
1407 os=lynxos5
1408 ;;
1409 lynxos*)
1410 # don't get caught up in next wildcard
1411 ;;
1412 lynx*)
1413 os=lynxos
1414 ;;
1415 mac[0-9]*)
1416 os=`echo "$os" | sed -e 's|mac|macos|'`
1417 ;;
1418 opened*)
1419 os=openedition
1420 ;;
1421 os400*)
1422 os=os400
1423 ;;
1424 sunos5*)
1425 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1426 ;;
1427 sunos6*)
1428 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1429 ;;
1430 wince*)
1431 os=wince
1432 ;;
1433 utek*)
1434 os=bsd
1435 ;;
1436 dynix*)
1437 os=bsd
1438 ;;
1439 acis*)
1440 os=aos
1441 ;;
1442 atheos*)
1443 os=atheos
1444 ;;
1445 syllable*)
1446 os=syllable
1447 ;;
4621448 386bsd)
463 basic_machine=i386-unknown
464 os=-bsd
465 ;;
466 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
467 basic_machine=m68000-att
468 ;;
469 3b*)
470 basic_machine=we32k-att
471 ;;
472 a29khif)
473 basic_machine=a29k-amd
474 os=-udi
475 ;;
476 abacus)
477 basic_machine=abacus-unknown
478 ;;
479 adobe68k)
480 basic_machine=m68010-adobe
481 os=-scout
482 ;;
483 alliant | fx80)
484 basic_machine=fx80-alliant
485 ;;
486 altos | altos3068)
487 basic_machine=m68k-altos
488 ;;
489 am29k)
490 basic_machine=a29k-none
491 os=-bsd
492 ;;
493 amd64)
494 basic_machine=x86_64-pc
495 ;;
496 amd64-*)
497 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
498 ;;
499 amdahl)
500 basic_machine=580-amdahl
501 os=-sysv
502 ;;
503 amiga | amiga-*)
504 basic_machine=m68k-unknown
505 ;;
506 amigaos | amigados)
507 basic_machine=m68k-unknown
508 os=-amigaos
509 ;;
510 amigaunix | amix)
511 basic_machine=m68k-unknown
512 os=-sysv4
513 ;;
514 apollo68)
515 basic_machine=m68k-apollo
516 os=-sysv
517 ;;
518 apollo68bsd)
519 basic_machine=m68k-apollo
520 os=-bsd
521 ;;
522 aros)
523 basic_machine=i386-pc
524 os=-aros
525 ;;
526 asmjs)
527 basic_machine=asmjs-unknown
528 ;;
529 aux)
530 basic_machine=m68k-apple
531 os=-aux
532 ;;
533 balance)
534 basic_machine=ns32k-sequent
535 os=-dynix
536 ;;
537 blackfin)
538 basic_machine=bfin-unknown
539 os=-linux
540 ;;
541 blackfin-*)
542 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
543 os=-linux
544 ;;
545 bluegene*)
546 basic_machine=powerpc-ibm
547 os=-cnk
548 ;;
549 c54x-*)
550 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
551 ;;
552 c55x-*)
553 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
554 ;;
555 c6x-*)
556 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
557 ;;
558 c90)
559 basic_machine=c90-cray
560 os=-unicos
561 ;;
562 cegcc)
563 basic_machine=arm-unknown
564 os=-cegcc
565 ;;
566 convex-c1)
567 basic_machine=c1-convex
568 os=-bsd
569 ;;
570 convex-c2)
571 basic_machine=c2-convex
572 os=-bsd
573 ;;
574 convex-c32)
575 basic_machine=c32-convex
576 os=-bsd
577 ;;
578 convex-c34)
579 basic_machine=c34-convex
580 os=-bsd
581 ;;
582 convex-c38)
583 basic_machine=c38-convex
584 os=-bsd
585 ;;
586 cray | j90)
587 basic_machine=j90-cray
588 os=-unicos
589 ;;
590 craynv)
591 basic_machine=craynv-cray
592 os=-unicosmp
593 ;;
594 cr16 | cr16-*)
595 basic_machine=cr16-unknown
596 os=-elf
597 ;;
598 crds | unos)
599 basic_machine=m68k-crds
600 ;;
601 crisv32 | crisv32-* | etraxfs*)
602 basic_machine=crisv32-axis
603 ;;
604 cris | cris-* | etrax*)
605 basic_machine=cris-axis
606 ;;
607 crx)
608 basic_machine=crx-unknown
609 os=-elf
610 ;;
611 da30 | da30-*)
612 basic_machine=m68k-da30
613 ;;
614 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
615 basic_machine=mips-dec
616 ;;
617 decsystem10* | dec10*)
618 basic_machine=pdp10-dec
619 os=-tops10
620 ;;
621 decsystem20* | dec20*)
622 basic_machine=pdp10-dec
623 os=-tops20
624 ;;
625 delta | 3300 | motorola-3300 | motorola-delta \
626 | 3300-motorola | delta-motorola)
627 basic_machine=m68k-motorola
628 ;;
629 delta88)
630 basic_machine=m88k-motorola
631 os=-sysv3
632 ;;
633 dicos)
634 basic_machine=i686-pc
635 os=-dicos
636 ;;
637 djgpp)
638 basic_machine=i586-pc
639 os=-msdosdjgpp
640 ;;
641 dpx20 | dpx20-*)
642 basic_machine=rs6000-bull
643 os=-bosx
644 ;;
645 dpx2* | dpx2*-bull)
646 basic_machine=m68k-bull
647 os=-sysv3
648 ;;
649 e500v[12])
650 basic_machine=powerpc-unknown
651 os=$os"spe"
652 ;;
653 e500v[12]-*)
654 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
655 os=$os"spe"
656 ;;
657 ebmon29k)
658 basic_machine=a29k-amd
659 os=-ebmon
660 ;;
661 elxsi)
662 basic_machine=elxsi-elxsi
663 os=-bsd
664 ;;
665 encore | umax | mmax)
666 basic_machine=ns32k-encore
667 ;;
668 es1800 | OSE68k | ose68k | ose | OSE)
669 basic_machine=m68k-ericsson
670 os=-ose
671 ;;
672 fx2800)
673 basic_machine=i860-alliant
674 ;;
675 genix)
676 basic_machine=ns32k-ns
677 ;;
678 gmicro)
679 basic_machine=tron-gmicro
680 os=-sysv
681 ;;
682 go32)
683 basic_machine=i386-pc
684 os=-go32
685 ;;
686 h3050r* | hiux*)
687 basic_machine=hppa1.1-hitachi
688 os=-hiuxwe2
689 ;;
690 h8300hms)
691 basic_machine=h8300-hitachi
692 os=-hms
693 ;;
694 h8300xray)
695 basic_machine=h8300-hitachi
696 os=-xray
697 ;;
698 h8500hms)
699 basic_machine=h8500-hitachi
700 os=-hms
701 ;;
702 harris)
703 basic_machine=m88k-harris
704 os=-sysv3
705 ;;
706 hp300-*)
707 basic_machine=m68k-hp
708 ;;
709 hp300bsd)
710 basic_machine=m68k-hp
711 os=-bsd
712 ;;
713 hp300hpux)
714 basic_machine=m68k-hp
715 os=-hpux
716 ;;
717 hp3k9[0-9][0-9] | hp9[0-9][0-9])
718 basic_machine=hppa1.0-hp
719 ;;
720 hp9k2[0-9][0-9] | hp9k31[0-9])
721 basic_machine=m68000-hp
722 ;;
723 hp9k3[2-9][0-9])
724 basic_machine=m68k-hp
725 ;;
726 hp9k6[0-9][0-9] | hp6[0-9][0-9])
727 basic_machine=hppa1.0-hp
728 ;;
729 hp9k7[0-79][0-9] | hp7[0-79][0-9])
730 basic_machine=hppa1.1-hp
731 ;;
732 hp9k78[0-9] | hp78[0-9])
733 # FIXME: really hppa2.0-hp
734 basic_machine=hppa1.1-hp
735 ;;
736 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
737 # FIXME: really hppa2.0-hp
738 basic_machine=hppa1.1-hp
739 ;;
740 hp9k8[0-9][13679] | hp8[0-9][13679])
741 basic_machine=hppa1.1-hp
742 ;;
743 hp9k8[0-9][0-9] | hp8[0-9][0-9])
744 basic_machine=hppa1.0-hp
745 ;;
746 hppa-next)
747 os=-nextstep3
748 ;;
749 hppaosf)
750 basic_machine=hppa1.1-hp
751 os=-osf
752 ;;
753 hppro)
754 basic_machine=hppa1.1-hp
755 os=-proelf
756 ;;
757 i370-ibm* | ibm*)
758 basic_machine=i370-ibm
759 ;;
760 i*86v32)
761 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
762 os=-sysv32
763 ;;
764 i*86v4*)
765 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
766 os=-sysv4
767 ;;
768 i*86v)
769 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
770 os=-sysv
771 ;;
772 i*86sol2)
773 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
774 os=-solaris2
775 ;;
776 i386mach)
777 basic_machine=i386-mach
778 os=-mach
779 ;;
780 i386-vsta | vsta)
781 basic_machine=i386-unknown
782 os=-vsta
783 ;;
784 iris | iris4d)
785 basic_machine=mips-sgi
786 case $os in
787 -irix*)
1449 os=bsd
1450 ;;
1451 ctix* | uts*)
1452 os=sysv
1453 ;;
1454 nova*)
1455 os=rtmk-nova
1456 ;;
1457 ns2)
1458 os=nextstep2
1459 ;;
1460 # Preserve the version number of sinix5.
1461 sinix5.*)
1462 os=`echo "$os" | sed -e 's|sinix|sysv|'`
1463 ;;
1464 sinix*)
1465 os=sysv4
1466 ;;
1467 tpf*)
1468 os=tpf
1469 ;;
1470 triton*)
1471 os=sysv3
1472 ;;
1473 oss*)
1474 os=sysv3
1475 ;;
1476 svr4*)
1477 os=sysv4
1478 ;;
1479 svr3)
1480 os=sysv3
1481 ;;
1482 sysvr4)
1483 os=sysv4
1484 ;;
1485 ose*)
1486 os=ose
1487 ;;
1488 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1489 os=mint
1490 ;;
1491 dicos*)
1492 os=dicos
1493 ;;
1494 pikeos*)
1495 # Until real need of OS specific support for
1496 # particular features comes up, bare metal
1497 # configurations are quite functional.
1498 case $cpu in
1499 arm*)
1500 os=eabi
7881501 ;;
7891502 *)
790 os=-irix4
1503 os=elf
7911504 ;;
7921505 esac
7931506 ;;
794 isi68 | isi)
795 basic_machine=m68k-isi
796 os=-sysv
797 ;;
798 leon-*|leon[3-9]-*)
799 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
800 ;;
801 m68knommu)
802 basic_machine=m68k-unknown
803 os=-linux
804 ;;
805 m68knommu-*)
806 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
807 os=-linux
808 ;;
809 m88k-omron*)
810 basic_machine=m88k-omron
811 ;;
812 magnum | m3230)
813 basic_machine=mips-mips
814 os=-sysv
815 ;;
816 merlin)
817 basic_machine=ns32k-utek
818 os=-sysv
819 ;;
820 microblaze*)
821 basic_machine=microblaze-xilinx
822 ;;
823 mingw64)
824 basic_machine=x86_64-pc
825 os=-mingw64
826 ;;
827 mingw32)
828 basic_machine=i686-pc
829 os=-mingw32
830 ;;
831 mingw32ce)
832 basic_machine=arm-unknown
833 os=-mingw32ce
834 ;;
835 miniframe)
836 basic_machine=m68000-convergent
837 ;;
838 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
839 basic_machine=m68k-atari
840 os=-mint
841 ;;
842 mips3*-*)
843 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
844 ;;
845 mips3*)
846 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
847 ;;
848 monitor)
849 basic_machine=m68k-rom68k
850 os=-coff
851 ;;
852 morphos)
853 basic_machine=powerpc-unknown
854 os=-morphos
855 ;;
856 moxiebox)
857 basic_machine=moxie-unknown
858 os=-moxiebox
859 ;;
860 msdos)
861 basic_machine=i386-pc
862 os=-msdos
863 ;;
864 ms1-*)
865 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
866 ;;
867 msys)
868 basic_machine=i686-pc
869 os=-msys
870 ;;
871 mvs)
872 basic_machine=i370-ibm
873 os=-mvs
874 ;;
875 nacl)
876 basic_machine=le32-unknown
877 os=-nacl
878 ;;
879 ncr3000)
880 basic_machine=i486-ncr
881 os=-sysv4
882 ;;
883 netbsd386)
884 basic_machine=i386-unknown
885 os=-netbsd
886 ;;
887 netwinder)
888 basic_machine=armv4l-rebel
889 os=-linux
890 ;;
891 news | news700 | news800 | news900)
892 basic_machine=m68k-sony
893 os=-newsos
894 ;;
895 news1000)
896 basic_machine=m68030-sony
897 os=-newsos
898 ;;
899 news-3600 | risc-news)
900 basic_machine=mips-sony
901 os=-newsos
902 ;;
903 necv70)
904 basic_machine=v70-nec
905 os=-sysv
906 ;;
907 next | m*-next )
908 basic_machine=m68k-next
909 case $os in
910 -nextstep* )
911 ;;
912 -ns2*)
913 os=-nextstep2
914 ;;
915 *)
916 os=-nextstep3
917 ;;
918 esac
919 ;;
920 nh3000)
921 basic_machine=m68k-harris
922 os=-cxux
923 ;;
924 nh[45]000)
925 basic_machine=m88k-harris
926 os=-cxux
927 ;;
928 nindy960)
929 basic_machine=i960-intel
930 os=-nindy
931 ;;
932 mon960)
933 basic_machine=i960-intel
934 os=-mon960
935 ;;
936 nonstopux)
937 basic_machine=mips-compaq
938 os=-nonstopux
939 ;;
940 np1)
941 basic_machine=np1-gould
942 ;;
943 neo-tandem)
944 basic_machine=neo-tandem
945 ;;
946 nse-tandem)
947 basic_machine=nse-tandem
948 ;;
949 nsr-tandem)
950 basic_machine=nsr-tandem
951 ;;
952 nsx-tandem)
953 basic_machine=nsx-tandem
954 ;;
955 op50n-* | op60c-*)
956 basic_machine=hppa1.1-oki
957 os=-proelf
958 ;;
959 openrisc | openrisc-*)
960 basic_machine=or32-unknown
961 ;;
962 os400)
963 basic_machine=powerpc-ibm
964 os=-os400
965 ;;
966 OSE68000 | ose68000)
967 basic_machine=m68000-ericsson
968 os=-ose
969 ;;
970 os68k)
971 basic_machine=m68k-none
972 os=-os68k
973 ;;
974 pa-hitachi)
975 basic_machine=hppa1.1-hitachi
976 os=-hiuxwe2
977 ;;
978 paragon)
979 basic_machine=i860-intel
980 os=-osf
981 ;;
982 parisc)
983 basic_machine=hppa-unknown
984 os=-linux
985 ;;
986 parisc-*)
987 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
988 os=-linux
989 ;;
990 pbd)
991 basic_machine=sparc-tti
992 ;;
993 pbb)
994 basic_machine=m68k-tti
995 ;;
996 pc532 | pc532-*)
997 basic_machine=ns32k-pc532
998 ;;
999 pc98)
1000 basic_machine=i386-pc
1001 ;;
1002 pc98-*)
1003 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
1004 ;;
1005 pentium | p5 | k5 | k6 | nexgen | viac3)
1006 basic_machine=i586-pc
1007 ;;
1008 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1009 basic_machine=i686-pc
1010 ;;
1011 pentiumii | pentium2 | pentiumiii | pentium3)
1012 basic_machine=i686-pc
1013 ;;
1014 pentium4)
1015 basic_machine=i786-pc
1016 ;;
1017 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1018 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
1019 ;;
1020 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1021 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1022 ;;
1023 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1024 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1025 ;;
1026 pentium4-*)
1027 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
1028 ;;
1029 pn)
1030 basic_machine=pn-gould
1031 ;;
1032 power) basic_machine=power-ibm
1033 ;;
1034 ppc | ppcbe) basic_machine=powerpc-unknown
1035 ;;
1036 ppc-* | ppcbe-*)
1037 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1038 ;;
1039 ppcle | powerpclittle)
1040 basic_machine=powerpcle-unknown
1041 ;;
1042 ppcle-* | powerpclittle-*)
1043 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1044 ;;
1045 ppc64) basic_machine=powerpc64-unknown
1046 ;;
1047 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1048 ;;
1049 ppc64le | powerpc64little)
1050 basic_machine=powerpc64le-unknown
1051 ;;
1052 ppc64le-* | powerpc64little-*)
1053 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1054 ;;
1055 ps2)
1056 basic_machine=i386-ibm
1057 ;;
1058 pw32)
1059 basic_machine=i586-unknown
1060 os=-pw32
1061 ;;
1062 rdos | rdos64)
1063 basic_machine=x86_64-pc
1064 os=-rdos
1065 ;;
1066 rdos32)
1067 basic_machine=i386-pc
1068 os=-rdos
1069 ;;
1070 rom68k)
1071 basic_machine=m68k-rom68k
1072 os=-coff
1073 ;;
1074 rm[46]00)
1075 basic_machine=mips-siemens
1076 ;;
1077 rtpc | rtpc-*)
1078 basic_machine=romp-ibm
1079 ;;
1080 s390)
1081 basic_machine=s390-ibm
1082 ;;
1083 s390-*)
1084 basic_machine=s390-`echo $basic_machine | sed 's/^[^-]*-//'`
1085 ;;
1086 s390x)
1087 basic_machine=s390x-ibm
1088 ;;
1089 s390x-*)
1090 basic_machine=s390x-`echo $basic_machine | sed 's/^[^-]*-//'`
1091 ;;
1092 sa29200)
1093 basic_machine=a29k-amd
1094 os=-udi
1095 ;;
1096 sb1)
1097 basic_machine=mipsisa64sb1-unknown
1098 ;;
1099 sb1el)
1100 basic_machine=mipsisa64sb1el-unknown
1101 ;;
1102 sde)
1103 basic_machine=mipsisa32-sde
1104 os=-elf
1105 ;;
1106 sei)
1107 basic_machine=mips-sei
1108 os=-seiux
1109 ;;
1110 sequent)
1111 basic_machine=i386-sequent
1112 ;;
1113 sh)
1114 basic_machine=sh-hitachi
1115 os=-hms
1116 ;;
1117 sh5el)
1118 basic_machine=sh5le-unknown
1119 ;;
1120 sh64)
1121 basic_machine=sh64-unknown
1122 ;;
1123 sparclite-wrs | simso-wrs)
1124 basic_machine=sparclite-wrs
1125 os=-vxworks
1126 ;;
1127 sps7)
1128 basic_machine=m68k-bull
1129 os=-sysv2
1130 ;;
1131 spur)
1132 basic_machine=spur-unknown
1133 ;;
1134 st2000)
1135 basic_machine=m68k-tandem
1136 ;;
1137 stratus)
1138 basic_machine=i860-stratus
1139 os=-sysv4
1140 ;;
1141 strongarm-* | thumb-*)
1142 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1143 ;;
1144 sun2)
1145 basic_machine=m68000-sun
1146 ;;
1147 sun2os3)
1148 basic_machine=m68000-sun
1149 os=-sunos3
1150 ;;
1151 sun2os4)
1152 basic_machine=m68000-sun
1153 os=-sunos4
1154 ;;
1155 sun3os3)
1156 basic_machine=m68k-sun
1157 os=-sunos3
1158 ;;
1159 sun3os4)
1160 basic_machine=m68k-sun
1161 os=-sunos4
1162 ;;
1163 sun4os3)
1164 basic_machine=sparc-sun
1165 os=-sunos3
1166 ;;
1167 sun4os4)
1168 basic_machine=sparc-sun
1169 os=-sunos4
1170 ;;
1171 sun4sol2)
1172 basic_machine=sparc-sun
1173 os=-solaris2
1174 ;;
1175 sun3 | sun3-*)
1176 basic_machine=m68k-sun
1177 ;;
1178 sun4)
1179 basic_machine=sparc-sun
1180 ;;
1181 sun386 | sun386i | roadrunner)
1182 basic_machine=i386-sun
1183 ;;
1184 sv1)
1185 basic_machine=sv1-cray
1186 os=-unicos
1187 ;;
1188 symmetry)
1189 basic_machine=i386-sequent
1190 os=-dynix
1191 ;;
1192 t3e)
1193 basic_machine=alphaev5-cray
1194 os=-unicos
1195 ;;
1196 t90)
1197 basic_machine=t90-cray
1198 os=-unicos
1199 ;;
1200 tile*)
1201 basic_machine=$basic_machine-unknown
1202 os=-linux-gnu
1203 ;;
1204 tx39)
1205 basic_machine=mipstx39-unknown
1206 ;;
1207 tx39el)
1208 basic_machine=mipstx39el-unknown
1209 ;;
1210 toad1)
1211 basic_machine=pdp10-xkl
1212 os=-tops20
1213 ;;
1214 tower | tower-32)
1215 basic_machine=m68k-ncr
1216 ;;
1217 tpf)
1218 basic_machine=s390x-ibm
1219 os=-tpf
1220 ;;
1221 udi29k)
1222 basic_machine=a29k-amd
1223 os=-udi
1224 ;;
1225 ultra3)
1226 basic_machine=a29k-nyu
1227 os=-sym1
1228 ;;
1229 v810 | necv810)
1230 basic_machine=v810-nec
1231 os=-none
1232 ;;
1233 vaxv)
1234 basic_machine=vax-dec
1235 os=-sysv
1236 ;;
1237 vms)
1238 basic_machine=vax-dec
1239 os=-vms
1240 ;;
1241 vpp*|vx|vx-*)
1242 basic_machine=f301-fujitsu
1243 ;;
1244 vxworks960)
1245 basic_machine=i960-wrs
1246 os=-vxworks
1247 ;;
1248 vxworks68)
1249 basic_machine=m68k-wrs
1250 os=-vxworks
1251 ;;
1252 vxworks29k)
1253 basic_machine=a29k-wrs
1254 os=-vxworks
1255 ;;
1256 wasm32)
1257 basic_machine=wasm32-unknown
1258 ;;
1259 w65*)
1260 basic_machine=w65-wdc
1261 os=-none
1262 ;;
1263 w89k-*)
1264 basic_machine=hppa1.1-winbond
1265 os=-proelf
1266 ;;
1267 xbox)
1268 basic_machine=i686-pc
1269 os=-mingw32
1270 ;;
1271 xps | xps100)
1272 basic_machine=xps100-honeywell
1273 ;;
1274 xscale-* | xscalee[bl]-*)
1275 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1276 ;;
1277 ymp)
1278 basic_machine=ymp-cray
1279 os=-unicos
1280 ;;
1281 z8k-*-coff)
1282 basic_machine=z8k-unknown
1283 os=-sim
1284 ;;
1285 z80-*-coff)
1286 basic_machine=z80-unknown
1287 os=-sim
1288 ;;
1289 none)
1290 basic_machine=none-none
1291 os=-none
1292 ;;
1293
1294 # Here we handle the default manufacturer of certain CPU types. It is in
1295 # some cases the only manufacturer, in others, it is the most popular.
1296 w89k)
1297 basic_machine=hppa1.1-winbond
1298 ;;
1299 op50n)
1300 basic_machine=hppa1.1-oki
1301 ;;
1302 op60c)
1303 basic_machine=hppa1.1-oki
1304 ;;
1305 romp)
1306 basic_machine=romp-ibm
1307 ;;
1308 mmix)
1309 basic_machine=mmix-knuth
1310 ;;
1311 rs6000)
1312 basic_machine=rs6000-ibm
1313 ;;
1314 vax)
1315 basic_machine=vax-dec
1316 ;;
1317 pdp10)
1318 # there are many clones, so DEC is not a safe bet
1319 basic_machine=pdp10-unknown
1320 ;;
1321 pdp11)
1322 basic_machine=pdp11-dec
1323 ;;
1324 we32k)
1325 basic_machine=we32k-att
1326 ;;
1327 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1328 basic_machine=sh-unknown
1329 ;;
1330 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1331 basic_machine=sparc-sun
1332 ;;
1333 cydra)
1334 basic_machine=cydra-cydrome
1335 ;;
1336 orion)
1337 basic_machine=orion-highlevel
1338 ;;
1339 orion105)
1340 basic_machine=clipper-highlevel
1341 ;;
1342 mac | mpw | mac-mpw)
1343 basic_machine=m68k-apple
1344 ;;
1345 pmac | pmac-mpw)
1346 basic_machine=powerpc-apple
1347 ;;
1348 *-unknown)
1349 # Make sure to match an already-canonicalized machine name.
1350 ;;
13511507 *)
1352 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1353 exit 1
1508 # No normalization, but not necessarily accepted, that comes below.
13541509 ;;
13551510 esac
13561511
1357 # Here we canonicalize certain aliases for manufacturers.
1358 case $basic_machine in
1359 *-digital*)
1360 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1361 ;;
1362 *-commodore*)
1363 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1364 ;;
1365 *)
1366 ;;
1367 esac
1368
1369 # Decode manufacturer-specific aliases for certain operating systems.
1370
1371 if [ x"$os" != x"" ]
1372 then
1373 case $os in
1374 # First match some system type aliases
1375 # that might get confused with valid system types.
1376 # -solaris* is a basic system type, with this one exception.
1377 -auroraux)
1378 os=-auroraux
1379 ;;
1380 -solaris1 | -solaris1.*)
1381 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1382 ;;
1383 -solaris)
1384 os=-solaris2
1385 ;;
1386 -svr4*)
1387 os=-sysv4
1388 ;;
1389 -unixware*)
1390 os=-sysv4.2uw
1391 ;;
1392 -gnu/linux*)
1393 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1394 ;;
1395 # First accept the basic system types.
1396 # The portable systems comes first.
1397 # Each alternative MUST END IN A *, to match a version number.
1398 # -sysv* is not here because it comes later, after sysvr4.
1399 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1400 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1401 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1402 | -sym* | -kopensolaris* | -plan9* \
1403 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1404 | -aos* | -aros* | -cloudabi* | -sortix* \
1405 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1406 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1407 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1408 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1409 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1410 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1411 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1412 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1413 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
1414 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1415 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1416 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1417 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1418 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1419 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1420 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1421 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1422 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1423 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1424 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1425 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
1426 # Remember, each alternative MUST END IN *, to match a version number.
1427 ;;
1428 -qnx*)
1429 case $basic_machine in
1430 x86-* | i*86-*)
1431 ;;
1432 *)
1433 os=-nto$os
1434 ;;
1435 esac
1436 ;;
1437 -nto-qnx*)
1438 ;;
1439 -nto*)
1440 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1441 ;;
1442 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1443 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1444 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1445 ;;
1446 -mac*)
1447 os=`echo $os | sed -e 's|mac|macos|'`
1448 ;;
1449 -linux-dietlibc)
1450 os=-linux-dietlibc
1451 ;;
1452 -linux*)
1453 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1454 ;;
1455 -sunos5*)
1456 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1457 ;;
1458 -sunos6*)
1459 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1460 ;;
1461 -opened*)
1462 os=-openedition
1463 ;;
1464 -os400*)
1465 os=-os400
1466 ;;
1467 -wince*)
1468 os=-wince
1469 ;;
1470 -osfrose*)
1471 os=-osfrose
1472 ;;
1473 -osf*)
1474 os=-osf
1475 ;;
1476 -utek*)
1477 os=-bsd
1478 ;;
1479 -dynix*)
1480 os=-bsd
1481 ;;
1482 -acis*)
1483 os=-aos
1484 ;;
1485 -atheos*)
1486 os=-atheos
1487 ;;
1488 -syllable*)
1489 os=-syllable
1490 ;;
1491 -386bsd)
1492 os=-bsd
1493 ;;
1494 -ctix* | -uts*)
1495 os=-sysv
1496 ;;
1497 -nova*)
1498 os=-rtmk-nova
1499 ;;
1500 -ns2 )
1501 os=-nextstep2
1502 ;;
1503 -nsk*)
1504 os=-nsk
1505 ;;
1506 # Preserve the version number of sinix5.
1507 -sinix5.*)
1508 os=`echo $os | sed -e 's|sinix|sysv|'`
1509 ;;
1510 -sinix*)
1511 os=-sysv4
1512 ;;
1513 -tpf*)
1514 os=-tpf
1515 ;;
1516 -triton*)
1517 os=-sysv3
1518 ;;
1519 -oss*)
1520 os=-sysv3
1521 ;;
1522 -svr4)
1523 os=-sysv4
1524 ;;
1525 -svr3)
1526 os=-sysv3
1527 ;;
1528 -sysvr4)
1529 os=-sysv4
1530 ;;
1531 # This must come after -sysvr4.
1532 -sysv*)
1533 ;;
1534 -ose*)
1535 os=-ose
1536 ;;
1537 -es1800*)
1538 os=-ose
1539 ;;
1540 -xenix)
1541 os=-xenix
1542 ;;
1543 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1544 os=-mint
1545 ;;
1546 -aros*)
1547 os=-aros
1548 ;;
1549 -zvmoe)
1550 os=-zvmoe
1551 ;;
1552 -dicos*)
1553 os=-dicos
1554 ;;
1555 -nacl*)
1556 ;;
1557 -ios)
1558 ;;
1559 -none)
1560 ;;
1561 *)
1562 # Get rid of the `-' at the beginning of $os.
1563 os=`echo $os | sed 's/[^-]*-//'`
1564 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1565 exit 1
1566 ;;
1567 esac
15681512 else
15691513
15701514 # Here we handle the default operating systems that come with various machines.
15771521 # will signal an error saying that MANUFACTURER isn't an operating
15781522 # system, and we'll never get to this point.
15791523
1580 case $basic_machine in
1524 kernel=
1525 case $cpu-$vendor in
15811526 score-*)
1582 os=-elf
1527 os=elf
15831528 ;;
15841529 spu-*)
1585 os=-elf
1530 os=elf
15861531 ;;
15871532 *-acorn)
1588 os=-riscix1.2
1533 os=riscix1.2
15891534 ;;
15901535 arm*-rebel)
1591 os=-linux
1536 kernel=linux
1537 os=gnu
15921538 ;;
15931539 arm*-semi)
1594 os=-aout
1540 os=aout
15951541 ;;
15961542 c4x-* | tic4x-*)
1597 os=-coff
1543 os=coff
15981544 ;;
15991545 c8051-*)
1600 os=-elf
1546 os=elf
1547 ;;
1548 clipper-intergraph)
1549 os=clix
16011550 ;;
16021551 hexagon-*)
1603 os=-elf
1552 os=elf
16041553 ;;
16051554 tic54x-*)
1606 os=-coff
1555 os=coff
16071556 ;;
16081557 tic55x-*)
1609 os=-coff
1558 os=coff
16101559 ;;
16111560 tic6x-*)
1612 os=-coff
1561 os=coff
16131562 ;;
16141563 # This must come before the *-dec entry.
16151564 pdp10-*)
1616 os=-tops20
1565 os=tops20
16171566 ;;
16181567 pdp11-*)
1619 os=-none
1568 os=none
16201569 ;;
16211570 *-dec | vax-*)
1622 os=-ultrix4.2
1571 os=ultrix4.2
16231572 ;;
16241573 m68*-apollo)
1625 os=-domain
1574 os=domain
16261575 ;;
16271576 i386-sun)
1628 os=-sunos4.0.2
1577 os=sunos4.0.2
16291578 ;;
16301579 m68000-sun)
1631 os=-sunos3
1580 os=sunos3
16321581 ;;
16331582 m68*-cisco)
1634 os=-aout
1583 os=aout
16351584 ;;
16361585 mep-*)
1637 os=-elf
1586 os=elf
16381587 ;;
16391588 mips*-cisco)
1640 os=-elf
1589 os=elf
16411590 ;;
16421591 mips*-*)
1643 os=-elf
1592 os=elf
16441593 ;;
16451594 or32-*)
1646 os=-coff
1595 os=coff
16471596 ;;
16481597 *-tti) # must be before sparc entry or we get the wrong os.
1649 os=-sysv3
1598 os=sysv3
16501599 ;;
16511600 sparc-* | *-sun)
1652 os=-sunos4.1.1
1601 os=sunos4.1.1
16531602 ;;
16541603 pru-*)
1655 os=-elf
1604 os=elf
16561605 ;;
16571606 *-be)
1658 os=-beos
1659 ;;
1660 *-haiku)
1661 os=-haiku
1607 os=beos
16621608 ;;
16631609 *-ibm)
1664 os=-aix
1610 os=aix
16651611 ;;
16661612 *-knuth)
1667 os=-mmixware
1613 os=mmixware
16681614 ;;
16691615 *-wec)
1670 os=-proelf
1616 os=proelf
16711617 ;;
16721618 *-winbond)
1673 os=-proelf
1619 os=proelf
16741620 ;;
16751621 *-oki)
1676 os=-proelf
1622 os=proelf
16771623 ;;
16781624 *-hp)
1679 os=-hpux
1625 os=hpux
16801626 ;;
16811627 *-hitachi)
1682 os=-hiux
1628 os=hiux
16831629 ;;
16841630 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1685 os=-sysv
1631 os=sysv
16861632 ;;
16871633 *-cbm)
1688 os=-amigaos
1634 os=amigaos
16891635 ;;
16901636 *-dg)
1691 os=-dgux
1637 os=dgux
16921638 ;;
16931639 *-dolphin)
1694 os=-sysv3
1640 os=sysv3
16951641 ;;
16961642 m68k-ccur)
1697 os=-rtu
1643 os=rtu
16981644 ;;
16991645 m88k-omron*)
1700 os=-luna
1701 ;;
1702 *-next )
1703 os=-nextstep
1646 os=luna
1647 ;;
1648 *-next)
1649 os=nextstep
17041650 ;;
17051651 *-sequent)
1706 os=-ptx
1652 os=ptx
17071653 ;;
17081654 *-crds)
1709 os=-unos
1655 os=unos
17101656 ;;
17111657 *-ns)
1712 os=-genix
1658 os=genix
17131659 ;;
17141660 i370-*)
1715 os=-mvs
1716 ;;
1717 *-next)
1718 os=-nextstep3
1661 os=mvs
17191662 ;;
17201663 *-gould)
1721 os=-sysv
1664 os=sysv
17221665 ;;
17231666 *-highlevel)
1724 os=-bsd
1667 os=bsd
17251668 ;;
17261669 *-encore)
1727 os=-bsd
1670 os=bsd
17281671 ;;
17291672 *-sgi)
1730 os=-irix
1673 os=irix
17311674 ;;
17321675 *-siemens)
1733 os=-sysv4
1676 os=sysv4
17341677 ;;
17351678 *-masscomp)
1736 os=-rtu
1679 os=rtu
17371680 ;;
17381681 f30[01]-fujitsu | f700-fujitsu)
1739 os=-uxpv
1682 os=uxpv
17401683 ;;
17411684 *-rom68k)
1742 os=-coff
1685 os=coff
17431686 ;;
17441687 *-*bug)
1745 os=-coff
1688 os=coff
17461689 ;;
17471690 *-apple)
1748 os=-macos
1691 os=macos
17491692 ;;
17501693 *-atari*)
1751 os=-mint
1694 os=mint
1695 ;;
1696 *-wrs)
1697 os=vxworks
17521698 ;;
17531699 *)
1754 os=-none
1700 os=none
17551701 ;;
17561702 esac
1703
17571704 fi
1705
1706 # Now, validate our (potentially fixed-up) OS.
1707 case $os in
1708 # Sometimes we do "kernel-libc", so those need to count as OSes.
1709 musl* | newlib* | relibc* | uclibc*)
1710 ;;
1711 # Likewise for "kernel-abi"
1712 eabi* | gnueabi*)
1713 ;;
1714 # VxWorks passes extra cpu info in the 4th filed.
1715 simlinux | simwindows | spe)
1716 ;;
1717 # Now accept the basic system types.
1718 # The portable systems comes first.
1719 # Each alternative MUST end in a * to match a version number.
1720 gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1721 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
1722 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1723 | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \
1724 | hiux* | abug | nacl* | netware* | windows* \
1725 | os9* | macos* | osx* | ios* \
1726 | mpw* | magic* | mmixware* | mon960* | lnews* \
1727 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1728 | aos* | aros* | cloudabi* | sortix* | twizzler* \
1729 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1730 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1731 | mirbsd* | netbsd* | dicos* | openedition* | ose* \
1732 | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \
1733 | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
1734 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1735 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1736 | udi* | lites* | ieee* | go32* | aux* | hcos* \
1737 | chorusrdb* | cegcc* | glidix* | serenity* \
1738 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1739 | midipix* | mingw32* | mingw64* | mint* \
1740 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1741 | interix* | uwin* | mks* | rhapsody* | darwin* \
1742 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1743 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1744 | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \
1745 | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \
1746 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1747 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1748 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1749 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
1750 | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr*)
1751 ;;
1752 # This one is extra strict with allowed versions
1753 sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
1754 # Don't forget version if it is 3.2v4 or newer.
1755 ;;
1756 none)
1757 ;;
1758 *)
1759 echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
1760 exit 1
1761 ;;
1762 esac
1763
1764 # As a final step for OS-related things, validate the OS-kernel combination
1765 # (given a valid OS), if there is a kernel.
1766 case $kernel-$os in
1767 linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \
1768 | linux-musl* | linux-relibc* | linux-uclibc* )
1769 ;;
1770 uclinux-uclibc* )
1771 ;;
1772 -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
1773 # These are just libc implementations, not actual OSes, and thus
1774 # require a kernel.
1775 echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
1776 exit 1
1777 ;;
1778 kfreebsd*-gnu* | kopensolaris*-gnu*)
1779 ;;
1780 vxworks-simlinux | vxworks-simwindows | vxworks-spe)
1781 ;;
1782 nto-qnx*)
1783 ;;
1784 os2-emx)
1785 ;;
1786 *-eabi* | *-gnueabi*)
1787 ;;
1788 -*)
1789 # Blank kernel with real OS is always fine.
1790 ;;
1791 *-*)
1792 echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
1793 exit 1
1794 ;;
1795 esac
17581796
17591797 # Here we handle the case where we know the os, and the CPU type, but not the
17601798 # manufacturer. We pick the logical manufacturer.
1761 vendor=unknown
1762 case $basic_machine in
1763 *-unknown)
1764 case $os in
1765 -riscix*)
1799 case $vendor in
1800 unknown)
1801 case $cpu-$os in
1802 *-riscix*)
17661803 vendor=acorn
17671804 ;;
1768 -sunos*)
1805 *-sunos*)
17691806 vendor=sun
17701807 ;;
1771 -cnk*|-aix*)
1808 *-cnk* | *-aix*)
17721809 vendor=ibm
17731810 ;;
1774 -beos*)
1811 *-beos*)
17751812 vendor=be
17761813 ;;
1777 -hpux*)
1814 *-hpux*)
17781815 vendor=hp
17791816 ;;
1780 -mpeix*)
1817 *-mpeix*)
17811818 vendor=hp
17821819 ;;
1783 -hiux*)
1820 *-hiux*)
17841821 vendor=hitachi
17851822 ;;
1786 -unos*)
1823 *-unos*)
17871824 vendor=crds
17881825 ;;
1789 -dgux*)
1826 *-dgux*)
17901827 vendor=dg
17911828 ;;
1792 -luna*)
1829 *-luna*)
17931830 vendor=omron
17941831 ;;
1795 -genix*)
1832 *-genix*)
17961833 vendor=ns
17971834 ;;
1798 -mvs* | -opened*)
1835 *-clix*)
1836 vendor=intergraph
1837 ;;
1838 *-mvs* | *-opened*)
17991839 vendor=ibm
18001840 ;;
1801 -os400*)
1841 *-os400*)
18021842 vendor=ibm
18031843 ;;
1804 -ptx*)
1844 s390-* | s390x-*)
1845 vendor=ibm
1846 ;;
1847 *-ptx*)
18051848 vendor=sequent
18061849 ;;
1807 -tpf*)
1850 *-tpf*)
18081851 vendor=ibm
18091852 ;;
1810 -vxsim* | -vxworks* | -windiss*)
1853 *-vxsim* | *-vxworks* | *-windiss*)
18111854 vendor=wrs
18121855 ;;
1813 -aux*)
1856 *-aux*)
18141857 vendor=apple
18151858 ;;
1816 -hms*)
1859 *-hms*)
18171860 vendor=hitachi
18181861 ;;
1819 -mpw* | -macos*)
1862 *-mpw* | *-macos*)
18201863 vendor=apple
18211864 ;;
1822 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1865 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
18231866 vendor=atari
18241867 ;;
1825 -vos*)
1868 *-vos*)
18261869 vendor=stratus
18271870 ;;
18281871 esac
1829 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
18301872 ;;
18311873 esac
18321874
1833 echo $basic_machine$os
1875 echo "$cpu-$vendor-${kernel:+$kernel-}$os"
18341876 exit
18351877
18361878 # Local variables:
1837 # eval: (add-hook 'write-file-hooks 'time-stamp)
1879 # eval: (add-hook 'before-save-hook 'time-stamp)
18381880 # time-stamp-start: "timestamp='"
18391881 # time-stamp-format: "%:y-%02m-%02d"
18401882 # time-stamp-end: "'"
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2016-01-11.22; # UTC
4
5 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
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
1515 # GNU General Public License for more details.
1616
1717 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
2020 # As a special exception to the GNU General Public License, if you
2121 # distribute this file as part of a program that contains a
782782 # Local Variables:
783783 # mode: shell-script
784784 # sh-indentation: 2
785 # eval: (add-hook 'write-file-hooks 'time-stamp)
785 # eval: (add-hook 'before-save-hook 'time-stamp)
786786 # time-stamp-start: "scriptversion="
787787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788788 # time-stamp-time-zone: "UTC0"
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2016-01-11.22; # 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
270294 fi
271295 dst=$dst_arg
272296
273 # If destination is a directory, append the input filename; won't work
274 # if double slashes aren't ignored.
297 # If destination is a directory, append the input filename.
275298 if test -d "$dst"; then
276299 if test "$is_target_a_directory" = never; then
277300 echo "$0: $dst_arg: Is a directory" >&2
278301 exit 1
279302 fi
280303 dstdir=$dst
281 dst=$dstdir/`basename "$src"`
304 dstbase=`basename "$src"`
305 case $dst in
306 */) dst=$dst$dstbase;;
307 *) dst=$dst/$dstbase;;
308 esac
282309 dstdir_status=0
283310 else
284311 dstdir=`dirname "$dst"`
287314 fi
288315 fi
289316
317 case $dstdir in
318 */) dstdirslash=$dstdir;;
319 *) dstdirslash=$dstdir/;;
320 esac
321
290322 obsolete_mkdir_used=false
291323
292324 if test $dstdir_status != 0; then
293325 case $posix_mkdir in
294326 '')
295 # Create intermediate dirs using mode 755 as modified by the umask.
296 # This is like FreeBSD 'install' as of 1997-10-28.
297 umask=`umask`
298 case $stripcmd.$umask in
299 # Optimize common cases.
300 *[2367][2367]) mkdir_umask=$umask;;
301 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
302
303 *[0-7])
304 mkdir_umask=`expr $umask + 22 \
305 - $umask % 100 % 40 + $umask % 20 \
306 - $umask % 10 % 4 + $umask % 2
307 `;;
308 *) mkdir_umask=$umask,go-w;;
309 esac
310
311327 # With -d, create the new directory with the user-specified mode.
312328 # Otherwise, rely on $mkdir_umask.
313329 if test -n "$dir_arg"; then
317333 fi
318334
319335 posix_mkdir=false
320 case $umask in
321 *[123567][0-7][0-7])
322 # POSIX mkdir -p sets u+wx bits regardless of umask, which
323 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324 ;;
325 *)
326 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
327 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
328
329 if (umask $mkdir_umask &&
330 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
331 then
332 if test -z "$dir_arg" || {
333 # Check for POSIX incompatibilities with -m.
334 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
335 # other-writable bit of parent directory when it shouldn't.
336 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
337 ls_ld_tmpdir=`ls -ld "$tmpdir"`
338 case $ls_ld_tmpdir in
339 d????-?r-*) different_mode=700;;
340 d????-?--*) different_mode=755;;
341 *) false;;
342 esac &&
343 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
344 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
345 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
346 }
347 }
348 then posix_mkdir=:
349 fi
350 rmdir "$tmpdir/d" "$tmpdir"
351 else
352 # Remove any dirs left behind by ancient mkdir implementations.
353 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
354 fi
355 trap '' 0;;
356 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;;
357379 esac
358380
359381 if
364386 then :
365387 else
366388
367 # The umask is ridiculous, or mkdir does not conform to POSIX,
389 # mkdir does not conform to POSIX,
368390 # or it failed possibly due to a race condition. Create the
369391 # directory the slow way, step by step, checking for races as we go.
370392
393415 prefixes=
394416 else
395417 if $posix_mkdir; then
396 (umask=$mkdir_umask &&
418 (umask $mkdir_umask &&
397419 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
398420 # Don't fail if two instances are running concurrently.
399421 test -d "$prefix" || exit 1
426448 else
427449
428450 # Make a couple of temp file names in the proper directory.
429 dsttmp=$dstdir/_inst.$$_
430 rmtmp=$dstdir/_rm.$$_
451 dsttmp=${dstdirslash}_inst.$$_
452 rmtmp=${dstdirslash}_rm.$$_
431453
432454 # Trap to clean up those temp files at exit.
433455 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
434456
435457 # Copy the file name to the temp name.
436 (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") &&
437470
438471 # and set any options; do chmod last to preserve setuid bits.
439472 #
459492 then
460493 rm -f "$dsttmp"
461494 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
462502 # Rename the file to the real destination.
463503 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
464504
473513 # file should still install successfully.
474514 {
475515 test ! -f "$dst" ||
476 $doit $rmcmd -f "$dst" 2>/dev/null ||
516 $doit $rmcmd "$dst" 2>/dev/null ||
477517 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
478 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
518 { $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
479519 } ||
480520 { echo "$0: cannot unlink or rename $dst" >&2
481521 (exit 1); exit 1
492532 done
493533
494534 # Local variables:
495 # eval: (add-hook 'write-file-hooks 'time-stamp)
535 # eval: (add-hook 'before-save-hook 'time-stamp)
496536 # time-stamp-start: "scriptversion="
497537 # time-stamp-format: "%:y-%02m-%02d.%02H"
498538 # time-stamp-time-zone: "UTC0"
0 #! /bin/sh
0 #! /usr/bin/env sh
11 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
2 ## by inline-source v2019-02-19.15
3
4 # libtool (GNU libtool) 2.4.7
55 # Provide generalized library-building support services.
66 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
77
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
8 # Copyright (C) 1996-2019, 2021-2022 Free Software Foundation, Inc.
99 # This is free software; see the source for copying conditions. There is NO
1010 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1111
3030
3131 PROGRAM=libtool
3232 PACKAGE=libtool
33 VERSION=2.4.6
34 package_revision=2.4.6
33 VERSION=2.4.7
34 package_revision=2.4.7
3535
3636
3737 ## ------ ##
6363 # libraries, which are installed to $pkgauxdir.
6464
6565 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
66 scriptversion=2019-02-19.15; # UTC
6767
6868 # General shell script boiler plate, and helper functions.
6969 # Written by Gary V. Vaughan, 2004
7070
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
71 # This is free software. There is NO warranty; not even for
72 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
73 #
74 # Copyright (C) 2004-2019, 2021 Bootstrap Authors
75 #
76 # This file is dual licensed under the terms of the MIT license
77 # <https://opensource.org/license/MIT>, and GPL version 2 or later
78 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
79 # these licenses when using or redistributing this software or any of
80 # the files within it. See the URLs above, or the file `LICENSE`
81 # included in the Bootstrap distribution for the full license texts.
82
83 # Please report bugs or propose patches to:
84 # <https://github.com/gnulib-modules/bootstrap/issues>
9485
9586
9687 ## ------ ##
138129 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
139130 fi"
140131 done
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
132 # These NLS vars are set unconditionally (bootstrap issue #24). Unset those
133 # in case the environment reset is needed later and the $save_* variant is not
134 # defined (see the code above).
135 LC_ALL=C
136 LANGUAGE=C
137 export LANGUAGE LC_ALL
144138
145139 # Make sure IFS has a sensible default
146140 sp=' '
157151 }
158152 fi
159153
154
155 # func_unset VAR
156 # --------------
157 # Portably unset VAR.
158 # In some shells, an 'unset VAR' statement leaves a non-zero return
159 # status if VAR is already unset, which might be problematic if the
160 # statement is used at the end of a function (thus poisoning its return
161 # value) or when 'set -e' is active (causing even a spurious abort of
162 # the script in this case).
163 func_unset ()
164 {
165 { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; }
166 }
167
168
169 # Make sure CDPATH doesn't cause `cd` commands to output the target dir.
170 func_unset CDPATH
171
172 # Make sure ${,E,F}GREP behave sanely.
173 func_unset GREP_OPTIONS
160174
161175
162176 ## ------------------------- ##
258272 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259273 }
260274
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
275 func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin"
262276 rm -f conftest.sed
263277 SED=$func_path_progs_result
264278 }
294308 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295309 }
296310
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
311 func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin"
298312 GREP=$func_path_progs_result
299313 }
300314
358372 s/^$_G_bs2$_G_dollar/$_G_bs&/
359373 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360374 s/\n//g"
375
376 # require_check_ifs_backslash
377 # ---------------------------
378 # Check if we can use backslash as IFS='\' separator, and set
379 # $check_ifs_backshlash_broken to ':' or 'false'.
380 require_check_ifs_backslash=func_require_check_ifs_backslash
381 func_require_check_ifs_backslash ()
382 {
383 _G_save_IFS=$IFS
384 IFS='\'
385 _G_check_ifs_backshlash='a\\b'
386 for _G_i in $_G_check_ifs_backshlash
387 do
388 case $_G_i in
389 a)
390 check_ifs_backshlash_broken=false
391 ;;
392 '')
393 break
394 ;;
395 *)
396 check_ifs_backshlash_broken=:
397 break
398 ;;
399 esac
400 done
401 IFS=$_G_save_IFS
402 require_check_ifs_backslash=:
403 }
361404
362405
363406 ## ----------------- ##
579622 {
580623 $debug_cmd
581624
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
625 func_quote_arg pretty "$2"
626 eval "$1+=\\ \$func_quote_arg_result"
584627 }'
585628 else
586629 func_append_quoted ()
587630 {
588631 $debug_cmd
589632
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
633 func_quote_arg pretty "$2"
634 eval "$1=\$$1\\ \$func_quote_arg_result"
592635 }
593636 fi
594637
10901133 }
10911134
10921135
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1136 # func_quote_portable EVAL ARG
1137 # ----------------------------
1138 # Internal function to portably implement func_quote_arg. Note that we still
1139 # keep attention to performance here so we as much as possible try to avoid
1140 # calling sed binary (so far O(N) complexity as long as func_append is O(1)).
1141 func_quote_portable ()
11031142 {
11041143 $debug_cmd
11051144
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1145 $require_check_ifs_backslash
1146
1147 func_quote_portable_result=$2
1148
1149 # one-time-loop (easy break)
1150 while true
1151 do
1152 if $1; then
1153 func_quote_portable_result=`$ECHO "$2" | $SED \
1154 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1155 break
1156 fi
1157
1158 # Quote for eval.
1159 case $func_quote_portable_result in
1160 *[\\\`\"\$]*)
1161 # Fallback to sed for $func_check_bs_ifs_broken=:, or when the string
1162 # contains the shell wildcard characters.
1163 case $check_ifs_backshlash_broken$func_quote_portable_result in
1164 :*|*[\[\*\?]*)
1165 func_quote_portable_result=`$ECHO "$func_quote_portable_result" \
1166 | $SED "$sed_quote_subst"`
1167 break
1168 ;;
1169 esac
1170
1171 func_quote_portable_old_IFS=$IFS
1172 for _G_char in '\' '`' '"' '$'
1173 do
1174 # STATE($1) PREV($2) SEPARATOR($3)
1175 set start "" ""
1176 func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy
1177 IFS=$_G_char
1178 for _G_part in $func_quote_portable_result
1179 do
1180 case $1 in
1181 quote)
1182 func_append func_quote_portable_result "$3$2"
1183 set quote "$_G_part" "\\$_G_char"
1184 ;;
1185 start)
1186 set first "" ""
1187 func_quote_portable_result=
1188 ;;
1189 first)
1190 set quote "$_G_part" ""
1191 ;;
1192 esac
1193 done
1194 done
1195 IFS=$func_quote_portable_old_IFS
1196 ;;
1197 *) ;;
1198 esac
1199 break
1200 done
1201
1202 func_quote_portable_unquoted_result=$func_quote_portable_result
1203 case $func_quote_portable_result in
1204 # double-quote args containing shell metacharacters to delay
1205 # word splitting, command substitution and variable expansion
1206 # for a subsequent eval.
1207 # many bourne shells cannot handle close brackets correctly
1208 # in scan sets, so we specify it separately.
1209 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1210 func_quote_portable_result=\"$func_quote_portable_result\"
1211 ;;
1212 esac
1213 }
1214
1215
1216 # func_quotefast_eval ARG
1217 # -----------------------
1218 # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG',
1219 # but optimized for speed. Result is stored in $func_quotefast_eval.
1220 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
1221 printf -v _GL_test_printf_tilde %q '~'
1222 if test '\~' = "$_GL_test_printf_tilde"; then
1223 func_quotefast_eval ()
1224 {
1225 printf -v func_quotefast_eval_result %q "$1"
1226 }
1227 else
1228 # Broken older Bash implementations. Make those faster too if possible.
1229 func_quotefast_eval ()
1230 {
11091231 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
1114 esac
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
1119 fi
1120
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1232 '~'*)
1233 func_quote_portable false "$1"
1234 func_quotefast_eval_result=$func_quote_portable_result
11291235 ;;
11301236 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1237 printf -v func_quotefast_eval_result %q "$1"
1238 ;;
11331239 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1240 }
1241 fi
1242 else
1243 func_quotefast_eval ()
1244 {
1245 func_quote_portable false "$1"
1246 func_quotefast_eval_result=$func_quote_portable_result
1247 }
1248 fi
1249
1250
1251 # func_quote_arg MODEs ARG
1252 # ------------------------
1253 # Quote one ARG to be evaled later. MODEs argument may contain zero or more
1254 # specifiers listed below separated by ',' character. This function returns two
1255 # values:
1256 # i) func_quote_arg_result
1257 # double-quoted (when needed), suitable for a subsequent eval
1258 # ii) func_quote_arg_unquoted_result
1259 # has all characters that are still active within double
1260 # quotes backslashified. Available only if 'unquoted' is specified.
1261 #
1262 # Available modes:
1263 # ----------------
1264 # 'eval' (default)
1265 # - escape shell special characters
1266 # 'expand'
1267 # - the same as 'eval'; but do not quote variable references
1268 # 'pretty'
1269 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1270 # be used later in func_quote to get output like: 'echo "a b"' instead
1271 # of 'echo a\ b'. This is slower than default on some shells.
1272 # 'unquoted'
1273 # - produce also $func_quote_arg_unquoted_result which does not contain
1274 # wrapping double-quotes.
1275 #
1276 # Examples for 'func_quote_arg pretty,unquoted string':
1277 #
1278 # string | *_result | *_unquoted_result
1279 # ------------+-----------------------+-------------------
1280 # " | \" | \"
1281 # a b | "a b" | a b
1282 # "a b" | "\"a b\"" | \"a b\"
1283 # * | "*" | *
1284 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1285 #
1286 # Examples for 'func_quote_arg pretty,unquoted,expand string':
1287 #
1288 # string | *_result | *_unquoted_result
1289 # --------------+---------------------+--------------------
1290 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1291 func_quote_arg ()
1292 {
1293 _G_quote_expand=false
1294 case ,$1, in
1295 *,expand,*)
1296 _G_quote_expand=:
1297 ;;
1298 esac
1299
1300 case ,$1, in
1301 *,pretty,*|*,expand,*|*,unquoted,*)
1302 func_quote_portable $_G_quote_expand "$2"
1303 func_quote_arg_result=$func_quote_portable_result
1304 func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result
1305 ;;
1306 *)
1307 # Faster quote-for-eval for some shells.
1308 func_quotefast_eval "$2"
1309 func_quote_arg_result=$func_quotefast_eval_result
1310 ;;
1311 esac
1312 }
1313
1314
1315 # func_quote MODEs ARGs...
1316 # ------------------------
1317 # Quote all ARGs to be evaled later and join them into single command. See
1318 # func_quote_arg's description for more info.
1319 func_quote ()
1320 {
1321 $debug_cmd
1322 _G_func_quote_mode=$1 ; shift
1323 func_quote_result=
1324 while test 0 -lt $#; do
1325 func_quote_arg "$_G_func_quote_mode" "$1"
1326 if test -n "$func_quote_result"; then
1327 func_append func_quote_result " $func_quote_arg_result"
11371328 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1329 func_append func_quote_result "$func_quote_arg_result"
11391330 fi
11401331 shift
11411332 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
1147 # Aesthetically quote ARG to be evaled later; same as above,
1148 # but do not quote variable references.
1149 func_quote_for_expand ()
1150 {
1151 $debug_cmd
1152
1153 case $1 in
1154 *[\\\`\"]*)
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
1157 *)
1158 _G_arg=$1 ;;
1159 esac
1160
1161 case $_G_arg in
1162 # Double-quote args containing shell metacharacters to delay
1163 # word splitting and command substitution for a subsequent eval.
1164 # Many Bourne shells cannot handle close brackets correctly
1165 # in scan sets, so we specify it separately.
1166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1167 _G_arg=\"$_G_arg\"
1168 ;;
1169 esac
1170
1171 func_quote_for_expand_result=$_G_arg
11721333 }
11731334
11741335
12141375 _G_cmd=$1
12151376 _G_fail_exp=${2-':'}
12161377
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1378 func_quote_arg pretty,expand "$_G_cmd"
1379 eval "func_notquiet $func_quote_arg_result"
12191380
12201381 $opt_dry_run || {
12211382 eval "$_G_cmd"
12401401 _G_fail_exp=${2-':'}
12411402
12421403 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
1244 eval "func_echo $func_quote_for_expand_result"
1404 func_quote_arg expand,pretty "$_G_cmd"
1405 eval "func_echo $func_quote_arg_result"
12451406 }
12461407
12471408 $opt_dry_run || {
13681529 # End:
13691530 #! /bin/sh
13701531
1371 # Set a version string for this script.
1372 scriptversion=2014-01-07.03; # UTC
1373
13741532 # A portable, pluggable option parser for Bourne shell.
13751533 # Written by Gary V. Vaughan, 2010
13761534
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1535 # This is free software. There is NO warranty; not even for
1536 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1537 #
1538 # Copyright (C) 2010-2019, 2021 Bootstrap Authors
1539 #
1540 # This file is dual licensed under the terms of the MIT license
1541 # <https://opensource.org/license/MIT>, and GPL version 2 or later
1542 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1543 # these licenses when using or redistributing this software or any of
1544 # the files within it. See the URLs above, or the file `LICENSE`
1545 # included in the Bootstrap distribution for the full license texts.
1546
1547 # Please report bugs or propose patches to:
1548 # <https://github.com/gnulib-modules/bootstrap/issues>
1549
1550 # Set a version string for this script.
1551 scriptversion=2019-02-19.15; # UTC
13951552
13961553
13971554 ## ------ ##
14141571 #
14151572 # In order for the '--version' option to work, you will need to have a
14161573 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1574 # starting with '# Written by ' and ending with '# Copyright'.
14181575 #
14191576 # For '-h' and '--help' to work, you will also need a one line
14201577 # description of your script's purpose in a comment directly above the
14261583 # to display verbose messages only when your user has specified
14271584 # '--verbose'.
14281585 #
1429 # After sourcing this file, you can plug processing for additional
1586 # After sourcing this file, you can plug in processing for additional
14301587 # options by amending the variables from the 'Configuration' section
14311588 # below, and following the instructions in the 'Option parsing'
14321589 # section further down.
14751632 ## ------------------------- ##
14761633
14771634 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1635 # in the main code. A hook is just a list of function names that can be
1636 # run in order later on.
14801637
14811638 # func_hookable FUNC_NAME
14821639 # -----------------------
15091666
15101667 # func_remove_hook FUNC_NAME HOOK_FUNC
15111668 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1669 # Remove HOOK_FUNC from the list of hook functions to be called by
1670 # FUNC_NAME.
15131671 func_remove_hook ()
15141672 {
15151673 $debug_cmd
15161674
15171675 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1676 }
1677
1678
1679 # func_propagate_result FUNC_NAME_A FUNC_NAME_B
1680 # ---------------------------------------------
1681 # If the *_result variable of FUNC_NAME_A _is set_, assign its value to
1682 # *_result variable of FUNC_NAME_B.
1683 func_propagate_result ()
1684 {
1685 $debug_cmd
1686
1687 func_propagate_result_result=:
1688 if eval "test \"\${${1}_result+set}\" = set"
1689 then
1690 eval "${2}_result=\$${1}_result"
1691 else
1692 func_propagate_result_result=false
1693 fi
15181694 }
15191695
15201696
15211697 # func_run_hooks FUNC_NAME [ARG]...
15221698 # ---------------------------------
15231699 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1700 # It's assumed that the list of hook functions contains nothing more
15251701 # than a whitespace-delimited list of legal shell function names, and
15261702 # no effort is wasted trying to catch shell meta-characters or preserve
15271703 # whitespace.
15311707
15321708 case " $hookable_fns " in
15331709 *" $1 "*) ;;
1534 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1710 *) func_fatal_error "'$1' does not support hook functions." ;;
15351711 esac
15361712
15371713 eval _G_hook_fns=\$$1_hooks; shift
15381714
15391715 for _G_hook in $_G_hook_fns; do
1540 eval $_G_hook '"$@"'
1541
1542 # store returned options list back into positional
1543 # parameters for next 'cmd' execution.
1544 eval _G_hook_result=\$${_G_hook}_result
1545 eval set dummy "$_G_hook_result"; shift
1716 func_unset "${_G_hook}_result"
1717 eval $_G_hook '${1+"$@"}'
1718 func_propagate_result $_G_hook func_run_hooks
1719 if $func_propagate_result_result; then
1720 eval set dummy "$func_run_hooks_result"; shift
1721 fi
15461722 done
1547
1548 func_quote_for_eval ${1+"$@"}
1549 func_run_hooks_result=$func_quote_for_eval_result
15501723 }
15511724
15521725
15561729 ## --------------- ##
15571730
15581731 # In order to add your own option parsing hooks, you must accept the
1559 # full positional parameter list in your hook function, remove any
1560 # options that you action, and then pass back the remaining unprocessed
1561 # options in '<hooked_function_name>_result', escaped suitably for
1562 # 'eval'. Like this:
1732 # full positional parameter list from your hook function. You may remove
1733 # or edit any options that you action, and then pass back the remaining
1734 # unprocessed options in '<hooked_function_name>_result', escaped
1735 # suitably for 'eval'.
1736 #
1737 # The '<hooked_function_name>_result' variable is automatically unset
1738 # before your hook gets called; for best performance, only set the
1739 # *_result variable when necessary (i.e. don't call the 'func_quote'
1740 # function unnecessarily because it can be an expensive operation on some
1741 # machines).
1742 #
1743 # Like this:
15631744 #
15641745 # my_options_prep ()
15651746 # {
15691750 # usage_message=$usage_message'
15701751 # -s, --silent don'\''t print informational messages
15711752 # '
1572 #
1573 # func_quote_for_eval ${1+"$@"}
1574 # my_options_prep_result=$func_quote_for_eval_result
1753 # # No change in '$@' (ignored completely by this hook). Leave
1754 # # my_options_prep_result variable intact.
15751755 # }
15761756 # func_add_hook func_options_prep my_options_prep
15771757 #
15801760 # {
15811761 # $debug_cmd
15821762 #
1583 # # Note that for efficiency, we parse as many options as we can
1763 # args_changed=false
1764 #
1765 # # Note that, for efficiency, we parse as many options as we can
15841766 # # recognise in a loop before passing the remainder back to the
15851767 # # caller on the first unrecognised argument we encounter.
15861768 # while test $# -gt 0; do
15871769 # opt=$1; shift
15881770 # case $opt in
1589 # --silent|-s) opt_silent=: ;;
1771 # --silent|-s) opt_silent=:
1772 # args_changed=:
1773 # ;;
15901774 # # Separate non-argument short options:
15911775 # -s*) func_split_short_opt "$_G_opt"
15921776 # set dummy "$func_split_short_opt_name" \
15931777 # "-$func_split_short_opt_arg" ${1+"$@"}
15941778 # shift
1779 # args_changed=:
15951780 # ;;
1596 # *) set dummy "$_G_opt" "$*"; shift; break ;;
1781 # *) # Make sure the first unrecognised option "$_G_opt"
1782 # # is added back to "$@" in case we need it later,
1783 # # if $args_changed was set to 'true'.
1784 # set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
15971785 # esac
15981786 # done
15991787 #
1600 # func_quote_for_eval ${1+"$@"}
1601 # my_silent_option_result=$func_quote_for_eval_result
1788 # # Only call 'func_quote' here if we processed at least one argument.
1789 # if $args_changed; then
1790 # func_quote eval ${1+"$@"}
1791 # my_silent_option_result=$func_quote_result
1792 # fi
16021793 # }
16031794 # func_add_hook func_parse_options my_silent_option
16041795 #
16091800 #
16101801 # $opt_silent && $opt_verbose && func_fatal_help "\
16111802 # '--silent' and '--verbose' options are mutually exclusive."
1612 #
1613 # func_quote_for_eval ${1+"$@"}
1614 # my_option_validation_result=$func_quote_for_eval_result
16151803 # }
16161804 # func_add_hook func_validate_options my_option_validation
16171805 #
1618 # You'll alse need to manually amend $usage_message to reflect the extra
1806 # You'll also need to manually amend $usage_message to reflect the extra
16191807 # options you parse. It's preferable to append if you can, so that
16201808 # multiple option parsing hooks can be added safely.
1809
1810
1811 # func_options_finish [ARG]...
1812 # ----------------------------
1813 # Finishing the option parse loop (call 'func_options' hooks ATM).
1814 func_options_finish ()
1815 {
1816 $debug_cmd
1817
1818 func_run_hooks func_options ${1+"$@"}
1819 func_propagate_result func_run_hooks func_options_finish
1820 }
16211821
16221822
16231823 # func_options [ARG]...
16291829 {
16301830 $debug_cmd
16311831
1632 func_options_prep ${1+"$@"}
1633 eval func_parse_options \
1634 ${func_options_prep_result+"$func_options_prep_result"}
1635 eval func_validate_options \
1636 ${func_parse_options_result+"$func_parse_options_result"}
1637
1638 eval func_run_hooks func_options \
1639 ${func_validate_options_result+"$func_validate_options_result"}
1640
1641 # save modified positional parameters for caller
1642 func_options_result=$func_run_hooks_result
1832 _G_options_quoted=false
1833
1834 for my_func in options_prep parse_options validate_options options_finish
1835 do
1836 func_unset func_${my_func}_result
1837 func_unset func_run_hooks_result
1838 eval func_$my_func '${1+"$@"}'
1839 func_propagate_result func_$my_func func_options
1840 if $func_propagate_result_result; then
1841 eval set dummy "$func_options_result"; shift
1842 _G_options_quoted=:
1843 fi
1844 done
1845
1846 $_G_options_quoted || {
1847 # As we (func_options) are top-level options-parser function and
1848 # nobody quoted "$@" for us yet, we need to do it explicitly for
1849 # caller.
1850 func_quote eval ${1+"$@"}
1851 func_options_result=$func_quote_result
1852 }
16431853 }
16441854
16451855
16481858 # All initialisations required before starting the option parse loop.
16491859 # Note that when calling hook functions, we pass through the list of
16501860 # positional parameters. If a hook function modifies that list, and
1651 # needs to propogate that back to rest of this script, then the complete
1652 # modified list must be put in 'func_run_hooks_result' before
1653 # returning.
1861 # needs to propagate that back to rest of this script, then the complete
1862 # modified list must be put in 'func_run_hooks_result' before returning.
16541863 func_hookable func_options_prep
16551864 func_options_prep ()
16561865 {
16611870 opt_warning_types=
16621871
16631872 func_run_hooks func_options_prep ${1+"$@"}
1664
1665 # save modified positional parameters for caller
1666 func_options_prep_result=$func_run_hooks_result
1873 func_propagate_result func_run_hooks func_options_prep
16671874 }
16681875
16691876
16751882 {
16761883 $debug_cmd
16771884
1678 func_parse_options_result=
1679
1885 _G_parse_options_requote=false
16801886 # this just eases exit handling
16811887 while test $# -gt 0; do
16821888 # Defer to hook functions for initial option parsing, so they
16831889 # get priority in the event of reusing an option name.
16841890 func_run_hooks func_parse_options ${1+"$@"}
1685
1686 # Adjust func_parse_options positional parameters to match
1687 eval set dummy "$func_run_hooks_result"; shift
1891 func_propagate_result func_run_hooks func_parse_options
1892 if $func_propagate_result_result; then
1893 eval set dummy "$func_parse_options_result"; shift
1894 # Even though we may have changed "$@", we passed the "$@" array
1895 # down into the hook and it quoted it for us (because we are in
1896 # this if-branch). No need to quote it again.
1897 _G_parse_options_requote=false
1898 fi
16881899
16891900 # Break out of the loop if we already parsed every option.
16901901 test $# -gt 0 || break
16911902
1903 # We expect that one of the options parsed in this function matches
1904 # and thus we remove _G_opt from "$@" and need to re-quote.
1905 _G_match_parse_options=:
16921906 _G_opt=$1
16931907 shift
16941908 case $_G_opt in
16951909 --debug|-x) debug_cmd='set -x'
1696 func_echo "enabling shell trace mode"
1910 func_echo "enabling shell trace mode" >&2
16971911 $debug_cmd
16981912 ;;
16991913
17031917 ;;
17041918
17051919 --warnings|--warning|-W)
1706 test $# = 0 && func_missing_arg $_G_opt && break
1920 if test $# = 0 && func_missing_arg $_G_opt; then
1921 _G_parse_options_requote=:
1922 break
1923 fi
17071924 case " $warning_categories $1" in
17081925 *" $1 "*)
17091926 # trailing space prevents matching last $1 above
17561973 shift
17571974 ;;
17581975
1759 --) break ;;
1976 --) _G_parse_options_requote=: ; break ;;
17601977 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1761 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1978 *) set dummy "$_G_opt" ${1+"$@"}; shift
1979 _G_match_parse_options=false
1980 break
1981 ;;
17621982 esac
1983
1984 if $_G_match_parse_options; then
1985 _G_parse_options_requote=:
1986 fi
17631987 done
17641988
1765 # save modified positional parameters for caller
1766 func_quote_for_eval ${1+"$@"}
1767 func_parse_options_result=$func_quote_for_eval_result
1989 if $_G_parse_options_requote; then
1990 # save modified positional parameters for caller
1991 func_quote eval ${1+"$@"}
1992 func_parse_options_result=$func_quote_result
1993 fi
17681994 }
17691995
17701996
17812007 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
17822008
17832009 func_run_hooks func_validate_options ${1+"$@"}
2010 func_propagate_result func_run_hooks func_validate_options
17842011
17852012 # Bail if the options were screwed!
17862013 $exit_cmd $EXIT_FAILURE
1787
1788 # save modified positional parameters for caller
1789 func_validate_options_result=$func_run_hooks_result
17902014 }
17912015
17922016
18422066
18432067 # func_split_equals STRING
18442068 # ------------------------
1845 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1846 # splitting STRING at the '=' sign.
2069 # Set func_split_equals_lhs and func_split_equals_rhs shell variables
2070 # after splitting STRING at the '=' sign.
18472071 test -z "$_G_HAVE_XSI_OPS" \
18482072 && (eval 'x=a/b/c;
18492073 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
18582082
18592083 func_split_equals_lhs=${1%%=*}
18602084 func_split_equals_rhs=${1#*=}
1861 test "x$func_split_equals_lhs" = "x$1" \
1862 && func_split_equals_rhs=
2085 if test "x$func_split_equals_lhs" = "x$1"; then
2086 func_split_equals_rhs=
2087 fi
18632088 }'
18642089 else
18652090 # ...otherwise fall back to using expr, which is often a shell builtin.
18692094
18702095 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
18712096 func_split_equals_rhs=
1872 test "x$func_split_equals_lhs" = "x$1" \
2097 test "x$func_split_equals_lhs=" = "x$1" \
18732098 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
18742099 }
18752100 fi #func_split_equals
18952120 {
18962121 $debug_cmd
18972122
1898 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
2123 func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'`
18992124 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
19002125 }
19012126 fi #func_split_short_opt
19372162 # func_version
19382163 # ------------
19392164 # Echo version message to standard output and exit.
2165 # The version message is extracted from the calling file's header
2166 # comments, with leading '# ' stripped:
2167 # 1. First display the progname and version
2168 # 2. Followed by the header comment line matching /^# Written by /
2169 # 3. Then a blank line followed by the first following line matching
2170 # /^# Copyright /
2171 # 4. Immediately followed by any lines between the previous matches,
2172 # except lines preceding the intervening completely blank line.
2173 # For example, see the header comments of this file.
19402174 func_version ()
19412175 {
19422176 $debug_cmd
19432177
19442178 printf '%s\n' "$progname $scriptversion"
19452179 $SED -n '
1946 /(C)/!b go
1947 :more
1948 /\./!{
1949 N
1950 s|\n# | |
1951 b more
2180 /^# Written by /!b
2181 s|^# ||; p; n
2182
2183 :fwd2blnk
2184 /./ {
2185 n
2186 b fwd2blnk
19522187 }
1953 :go
1954 /^# Written by /,/# warranty; / {
1955 s|^# ||
1956 s|^# *$||
1957 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
1958 p
2188 p; n
2189
2190 :holdwrnt
2191 s|^# ||
2192 s|^# *$||
2193 /^Copyright /!{
2194 /./H
2195 n
2196 b holdwrnt
19592197 }
1960 /^# Written by / {
1961 s|^# ||
1962 p
1963 }
1964 /^warranty; /q' < "$progpath"
2198
2199 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2200 G
2201 s|\(\n\)\n*|\1|g
2202 p; q' < "$progpath"
19652203
19662204 exit $?
19672205 }
19712209 # mode: shell-script
19722210 # sh-indentation: 2
19732211 # eval: (add-hook 'before-save-hook 'time-stamp)
1974 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2212 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
19752213 # time-stamp-time-zone: "UTC"
19762214 # End:
19772215
19782216 # Set a version string.
1979 scriptversion='(GNU libtool) 2.4.6'
2217 scriptversion='(GNU libtool) 2.4.7'
19802218
19812219
19822220 # func_echo ARG...
20672305 compiler: $LTCC
20682306 compiler flags: $LTCFLAGS
20692307 linker: $LD (gnu? $with_gnu_ld)
2070 version: $progname (GNU libtool) 2.4.6
2308 version: $progname (GNU libtool) 2.4.7
20712309 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
20722310 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
20732311
21232361 # a configuration failure hint, and exit.
21242362 func_fatal_configuration ()
21252363 {
2126 func__fatal_error ${1+"$@"} \
2364 func_fatal_error ${1+"$@"} \
21272365 "See the $PACKAGE documentation for more information." \
21282366 "Fatal configuration error."
21292367 }
22692507 nonopt=
22702508 preserve_args=
22712509
2510 _G_rc_lt_options_prep=:
2511
22722512 # Shorthand for --mode=foo, only valid as the first argument
22732513 case $1 in
22742514 clean|clea|cle|cl)
22922532 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
22932533 shift; set dummy --mode uninstall ${1+"$@"}; shift
22942534 ;;
2535 *)
2536 _G_rc_lt_options_prep=false
2537 ;;
22952538 esac
22962539
2297 # Pass back the list of options.
2298 func_quote_for_eval ${1+"$@"}
2299 libtool_options_prep_result=$func_quote_for_eval_result
2540 if $_G_rc_lt_options_prep; then
2541 # Pass back the list of options.
2542 func_quote eval ${1+"$@"}
2543 libtool_options_prep_result=$func_quote_result
2544 fi
23002545 }
23012546 func_add_hook func_options_prep libtool_options_prep
23022547
23082553 {
23092554 $debug_cmd
23102555
2556 _G_rc_lt_parse_options=false
2557
23112558 # Perform our own loop to consume as many options as possible in
23122559 # each iteration.
23132560 while test $# -gt 0; do
2561 _G_match_lt_parse_options=:
23142562 _G_opt=$1
23152563 shift
23162564 case $_G_opt in
23852633 func_append preserve_args " $_G_opt"
23862634 ;;
23872635
2388 # An option not handled by this hook function:
2389 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
2636 # An option not handled by this hook function:
2637 *) set dummy "$_G_opt" ${1+"$@"} ; shift
2638 _G_match_lt_parse_options=false
2639 break
2640 ;;
23902641 esac
2642 $_G_match_lt_parse_options && _G_rc_lt_parse_options=:
23912643 done
23922644
2393
2394 # save modified positional parameters for caller
2395 func_quote_for_eval ${1+"$@"}
2396 libtool_parse_options_result=$func_quote_for_eval_result
2645 if $_G_rc_lt_parse_options; then
2646 # save modified positional parameters for caller
2647 func_quote eval ${1+"$@"}
2648 libtool_parse_options_result=$func_quote_result
2649 fi
23972650 }
23982651 func_add_hook func_parse_options libtool_parse_options
23992652
24502703 }
24512704
24522705 # Pass back the unparsed argument list
2453 func_quote_for_eval ${1+"$@"}
2454 libtool_validate_options_result=$func_quote_for_eval_result
2706 func_quote eval ${1+"$@"}
2707 libtool_validate_options_result=$func_quote_result
24552708 }
24562709 func_add_hook func_validate_options libtool_validate_options
24572710
34173670 esac
34183671 done
34193672
3420 func_quote_for_eval "$libobj"
3421 test "X$libobj" != "X$func_quote_for_eval_result" \
3673 func_quote_arg pretty "$libobj"
3674 test "X$libobj" != "X$func_quote_arg_result" \
34223675 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
34233676 && func_warning "libobj name '$libobj' may not contain shell special characters."
34243677 func_dirname_and_basename "$obj" "/" ""
34913744
34923745 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
34933746 srcfile=$func_to_tool_file_result
3494 func_quote_for_eval "$srcfile"
3495 qsrcfile=$func_quote_for_eval_result
3747 func_quote_arg pretty "$srcfile"
3748 qsrcfile=$func_quote_arg_result
34963749
34973750 # Only build a PIC object if we are building libtool libraries.
34983751 if test yes = "$build_libtool_libs"; then
36473900 -prefer-non-pic try to build non-PIC objects only
36483901 -shared do not build a '.o' file suitable for static linking
36493902 -static only build a '.o' file suitable for static linking
3650 -Wc,FLAG pass FLAG directly to the compiler
3903 -Wc,FLAG
3904 -Xcompiler FLAG pass FLAG directly to the compiler
36513905
36523906 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
36533907 from the given SOURCEFILE.
37534007 -weak LIBNAME declare that the target provides the LIBNAME interface
37544008 -Wc,FLAG
37554009 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
4010 -Wa,FLAG
4011 -Xassembler FLAG pass linker-specific FLAG directly to the assembler
37564012 -Wl,FLAG
37574013 -Xlinker FLAG pass linker-specific FLAG directly to the linker
37584014 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
40954351 case $nonopt in *shtool*) :;; *) false;; esac
40964352 then
40974353 # Aesthetically quote it.
4098 func_quote_for_eval "$nonopt"
4099 install_prog="$func_quote_for_eval_result "
4354 func_quote_arg pretty "$nonopt"
4355 install_prog="$func_quote_arg_result "
41004356 arg=$1
41014357 shift
41024358 else
41064362
41074363 # The real first argument should be the name of the installation program.
41084364 # Aesthetically quote it.
4109 func_quote_for_eval "$arg"
4110 func_append install_prog "$func_quote_for_eval_result"
4365 func_quote_arg pretty "$arg"
4366 func_append install_prog "$func_quote_arg_result"
41114367 install_shared_prog=$install_prog
41124368 case " $install_prog " in
41134369 *[\\\ /]cp\ *) install_cp=: ;;
41644420 esac
41654421
41664422 # Aesthetically quote the argument.
4167 func_quote_for_eval "$arg"
4168 func_append install_prog " $func_quote_for_eval_result"
4423 func_quote_arg pretty "$arg"
4424 func_append install_prog " $func_quote_arg_result"
41694425 if test -n "$arg2"; then
4170 func_quote_for_eval "$arg2"
4426 func_quote_arg pretty "$arg2"
41714427 fi
4172 func_append install_shared_prog " $func_quote_for_eval_result"
4428 func_append install_shared_prog " $func_quote_arg_result"
41734429 done
41744430
41754431 test -z "$install_prog" && \
41804436
41814437 if test -n "$install_override_mode" && $no_mode; then
41824438 if $install_cp; then :; else
4183 func_quote_for_eval "$install_override_mode"
4184 func_append install_shared_prog " -m $func_quote_for_eval_result"
4439 func_quote_arg pretty "$install_override_mode"
4440 func_append install_shared_prog " -m $func_quote_arg_result"
41854441 fi
41864442 fi
41874443
44774733 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
44784734
44794735 $opt_quiet || {
4480 func_quote_for_expand "$relink_command"
4481 eval "func_echo $func_quote_for_expand_result"
4736 func_quote_arg expand,pretty "$relink_command"
4737 eval "func_echo $func_quote_arg_result"
44824738 }
44834739 if eval "$relink_command"; then :
44844740 else
52575513 if test \"\$libtool_execute_magic\" != \"$magic\"; then
52585514 file=\"\$0\""
52595515
5260 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
5516 func_quote_arg pretty "$ECHO"
5517 qECHO=$func_quote_arg_result
52615518 $ECHO "\
52625519
52635520 # A function that is used when there is no print builtin or printf.
52675524 \$1
52685525 _LTECHO_EOF'
52695526 }
5270 ECHO=\"$qECHO\"
5527 ECHO=$qECHO
52715528 fi
52725529
52735530 # Very basic option parsing. These options are (a) specific to
66106867 while test "$#" -gt 0; do
66116868 arg=$1
66126869 shift
6613 func_quote_for_eval "$arg"
6614 qarg=$func_quote_for_eval_unquoted_result
6615 func_append libtool_args " $func_quote_for_eval_result"
6870 func_quote_arg pretty,unquoted "$arg"
6871 qarg=$func_quote_arg_unquoted_result
6872 func_append libtool_args " $func_quote_arg_result"
66166873
66176874 # If the previous option needs an argument, assign it.
66186875 if test -n "$prev"; then
68487105 prev=
68497106 continue
68507107 ;;
7108 xassembler)
7109 func_append compiler_flags " -Xassembler $qarg"
7110 prev=
7111 func_append compile_command " -Xassembler $qarg"
7112 func_append finalize_command " -Xassembler $qarg"
7113 continue
7114 ;;
68517115 xcclinker)
68527116 func_append linker_flags " $qarg"
68537117 func_append compiler_flags " $qarg"
70187282 # These systems don't actually have a C library (as such)
70197283 test X-lc = "X$arg" && continue
70207284 ;;
7021 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7285 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
70227286 # Do not include libc due to us having libc/libc_r.
70237287 test X-lc = "X$arg" && continue
70247288 ;;
70387302 esac
70397303 elif test X-lc_r = "X$arg"; then
70407304 case $host in
7041 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7305 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
70427306 # Do not include libc_r directly, use -pthread flag.
70437307 continue
70447308 ;;
70687332 prev=xcompiler
70697333 continue
70707334 ;;
7071
7072 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7335 # Solaris ld rejects as of 11.4. Refer to Oracle bug 22985199.
7336 -pthread)
7337 case $host in
7338 *solaris2*) ;;
7339 *)
7340 case "$new_inherited_linker_flags " in
7341 *" $arg "*) ;;
7342 * ) func_append new_inherited_linker_flags " $arg" ;;
7343 esac
7344 ;;
7345 esac
7346 continue
7347 ;;
7348 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
70737349 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
70747350 func_append compiler_flags " $arg"
70757351 func_append compile_command " $arg"
72107486 save_ifs=$IFS; IFS=,
72117487 for flag in $args; do
72127488 IFS=$save_ifs
7213 func_quote_for_eval "$flag"
7214 func_append arg " $func_quote_for_eval_result"
7215 func_append compiler_flags " $func_quote_for_eval_result"
7489 func_quote_arg pretty "$flag"
7490 func_append arg " $func_quote_arg_result"
7491 func_append compiler_flags " $func_quote_arg_result"
72167492 done
72177493 IFS=$save_ifs
72187494 func_stripname ' ' '' "$arg"
72267502 save_ifs=$IFS; IFS=,
72277503 for flag in $args; do
72287504 IFS=$save_ifs
7229 func_quote_for_eval "$flag"
7230 func_append arg " $wl$func_quote_for_eval_result"
7231 func_append compiler_flags " $wl$func_quote_for_eval_result"
7232 func_append linker_flags " $func_quote_for_eval_result"
7505 func_quote_arg pretty "$flag"
7506 func_append arg " $wl$func_quote_arg_result"
7507 func_append compiler_flags " $wl$func_quote_arg_result"
7508 func_append linker_flags " $func_quote_arg_result"
72337509 done
72347510 IFS=$save_ifs
72357511 func_stripname ' ' '' "$arg"
72367512 arg=$func_stripname_result
72377513 ;;
72387514
7515 -Xassembler)
7516 prev=xassembler
7517 continue
7518 ;;
7519
72397520 -Xcompiler)
72407521 prev=xcompiler
72417522 continue
72537534
72547535 # -msg_* for osf cc
72557536 -msg_*)
7256 func_quote_for_eval "$arg"
7257 arg=$func_quote_for_eval_result
7537 func_quote_arg pretty "$arg"
7538 arg=$func_quote_arg_result
72587539 ;;
72597540
72607541 # Flags to be passed through unchanged, with rationale:
72717552 # -tp=* Portland pgcc target processor selection
72727553 # --sysroot=* for sysroot support
72737554 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7555 # -specs=* GCC specs files
72747556 # -stdlib=* select c++ std lib with clang
7557 # -fsanitize=* Clang/GCC memory and address sanitizer
7558 # -fuse-ld=* Linker select flags for GCC
7559 # -Wa,* Pass flags directly to the assembler
72757560 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
72767561 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7277 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
7278 func_quote_for_eval "$arg"
7279 arg=$func_quote_for_eval_result
7562 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7563 -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*)
7564 func_quote_arg pretty "$arg"
7565 arg=$func_quote_arg_result
72807566 func_append compile_command " $arg"
72817567 func_append finalize_command " $arg"
72827568 func_append compiler_flags " $arg"
72977583 continue
72987584 else
72997585 # Otherwise treat like 'Some other compiler flag' below
7300 func_quote_for_eval "$arg"
7301 arg=$func_quote_for_eval_result
7586 func_quote_arg pretty "$arg"
7587 arg=$func_quote_arg_result
73027588 fi
73037589 ;;
73047590
73057591 # Some other compiler flag.
73067592 -* | +*)
7307 func_quote_for_eval "$arg"
7308 arg=$func_quote_for_eval_result
7593 func_quote_arg pretty "$arg"
7594 arg=$func_quote_arg_result
73097595 ;;
73107596
73117597 *.$objext)
74257711 *)
74267712 # Unknown arguments in both finalize_command and compile_command need
74277713 # to be aesthetically quoted because they are evaled later.
7428 func_quote_for_eval "$arg"
7429 arg=$func_quote_for_eval_result
7714 func_quote_arg pretty "$arg"
7715 arg=$func_quote_arg_result
74307716 ;;
74317717 esac # arg
74327718
86318917 test CXX = "$tagname" && {
86328918 case $host_os in
86338919 linux*)
8634 case `$CC -V 2>&1 | sed 5q` in
8920 case `$CC -V 2>&1 | $SED 5q` in
86358921 *Sun\ C*) # Sun C++ 5.9
86368922 func_suncc_cstd_abi
86378923
88049090 #
88059091 case $version_type in
88069092 # correct linux to gnu/linux during the next big refactor
8807 darwin|freebsd-elf|linux|osf|windows|none)
9093 darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none)
88089094 func_arith $number_major + $number_minor
88099095 current=$func_arith_result
88109096 age=$number_minor
88959181 versuffix=.$current.$revision
88969182 ;;
88979183
8898 freebsd-elf)
9184 freebsd-elf | midnightbsd-elf)
88999185 func_arith $current - $age
89009186 major=.$func_arith_result
89019187 versuffix=$major.$age.$revision
91219407 *-*-netbsd*)
91229408 # Don't link with libc until the a.out ld.so is fixed.
91239409 ;;
9124 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
9410 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
91259411 # Do not include libc due to us having libc/libc_r.
91269412 ;;
91279413 *-*-sco3.2v5* | *-*-sco5v6*)
993210218 for cmd in $concat_cmds; do
993310219 IFS=$save_ifs
993410220 $opt_quiet || {
9935 func_quote_for_expand "$cmd"
9936 eval "func_echo $func_quote_for_expand_result"
10221 func_quote_arg expand,pretty "$cmd"
10222 eval "func_echo $func_quote_arg_result"
993710223 }
993810224 $opt_dry_run || eval "$cmd" || {
993910225 lt_exit=$?
1002610312 eval cmd=\"$cmd\"
1002710313 IFS=$save_ifs
1002810314 $opt_quiet || {
10029 func_quote_for_expand "$cmd"
10030 eval "func_echo $func_quote_for_expand_result"
10315 func_quote_arg expand,pretty "$cmd"
10316 eval "func_echo $func_quote_arg_result"
1003110317 }
1003210318 $opt_dry_run || eval "$cmd" || {
1003310319 lt_exit=$?
1050110787 elif eval var_value=\$$var; test -z "$var_value"; then
1050210788 relink_command="$var=; export $var; $relink_command"
1050310789 else
10504 func_quote_for_eval "$var_value"
10505 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
10790 func_quote_arg pretty "$var_value"
10791 relink_command="$var=$func_quote_arg_result; export $var; $relink_command"
1050610792 fi
1050710793 done
10508 relink_command="(cd `pwd`; $relink_command)"
10509 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
10794 func_quote eval cd "`pwd`"
10795 func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)"
10796 relink_command=$func_quote_arg_unquoted_result
1051010797 fi
1051110798
1051210799 # Only actually do things if not in dry run mode.
1074611033 elif eval var_value=\$$var; test -z "$var_value"; then
1074711034 relink_command="$var=; export $var; $relink_command"
1074811035 else
10749 func_quote_for_eval "$var_value"
10750 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
11036 func_quote_arg pretty,unquoted "$var_value"
11037 relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command"
1075111038 fi
1075211039 done
1075311040 # Quote the link command for shipping.
10754 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10755 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
11041 func_quote eval cd "`pwd`"
11042 relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
11043 func_quote_arg pretty,unquoted "$relink_command"
11044 relink_command=$func_quote_arg_unquoted_result
1075611045 if test yes = "$hardcode_automatic"; then
1075711046 relink_command=
1075811047 fi
00 #! /bin/sh
11 # Common wrapper for a few potentially missing GNU programs.
22
3 scriptversion=2016-01-11.22; # UTC
4
5 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
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
1616 # GNU General Public License for more details.
1717
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
100100 exit $st
101101 fi
102102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
103 perl_URL=https://www.perl.org/
104 flex_URL=https://github.com/westes/flex
105 gnu_software_URL=https://www.gnu.org/software
106106
107107 program_details ()
108108 {
206206 exit $st
207207
208208 # Local variables:
209 # eval: (add-hook 'write-file-hooks 'time-stamp)
209 # eval: (add-hook 'before-save-hook 'time-stamp)
210210 # time-stamp-start: "scriptversion="
211211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212212 # time-stamp-time-zone: "UTC0"
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2017 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 CC = @CC@
172172 CCDEPMODE = @CCDEPMODE@
173173 CFLAGS = @CFLAGS@
174 CPP = @CPP@
175174 CPPFLAGS = @CPPFLAGS@
175 CSCOPE = @CSCOPE@
176 CTAGS = @CTAGS@
176177 CYGPATH_W = @CYGPATH_W@
177178 DEFS = @DEFS@
178179 DEPDIR = @DEPDIR@
183184 ECHO_N = @ECHO_N@
184185 ECHO_T = @ECHO_T@
185186 EGREP = @EGREP@
187 ETAGS = @ETAGS@
186188 EXEEXT = @EXEEXT@
187189 FGREP = @FGREP@
190 FILECMD = @FILECMD@
188191 GCC_FVISIBILITY_HIDDEN = @GCC_FVISIBILITY_HIDDEN@
189192 GREP = @GREP@
190193 INSTALL = @INSTALL@
288291 regular_CFLAGS = @regular_CFLAGS@
289292 regular_CPPFLAGS = @regular_CPPFLAGS@
290293 rundir = @rundir@
294 runstatedir = @runstatedir@
291295 sbindir = @sbindir@
292296 sharedstatedir = @sharedstatedir@
293297 slibdir = @slibdir@
326330 *config.status*) \
327331 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
328332 *) \
329 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
330 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
333 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
334 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
331335 esac;
332336
333337 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
434438
435439 cscope cscopelist:
436440
437
438 distdir: $(DISTFILES)
441 distdir: $(BUILT_SOURCES)
442 $(MAKE) $(AM_MAKEFLAGS) distdir-am
443
444 distdir-am: $(DISTFILES)
439445 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
440446 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
441447 list='$(DISTFILES)'; \
2929 /* Define to 1 if you have the <linux/major.h> header file. */
3030 #undef HAVE_LINUX_MAJOR_H
3131
32 /* Define to 1 if you have the <memory.h> header file. */
33 #undef HAVE_MEMORY_H
34
3532 /* Define to 1 if you have the <pam/pam_modules.h> header file. */
3633 #undef HAVE_PAM_PAM_MODULES_H
3734
4340
4441 /* Define to 1 if you have the <stdint.h> header file. */
4542 #undef HAVE_STDINT_H
43
44 /* Define to 1 if you have the <stdio.h> header file. */
45 #undef HAVE_STDIO_H
4646
4747 /* Define to 1 if you have the <stdlib.h> header file. */
4848 #undef HAVE_STDLIB_H
101101 /* Define to the version of this package. */
102102 #undef PACKAGE_VERSION
103103
104 /* Define to 1 if you have the ANSI C header files. */
104 /* Define to 1 if all of the C90 standard headers exist (not just the ones
105 required in a freestanding environment). This macro is provided for
106 backward compatibility; new code need not use it. */
105107 #undef STDC_HEADERS
106108
107109 /* Version number of package */
+3379
-2701
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for pam_mount 2.18.
2 # Generated by GNU Autoconf 2.71 for pam_mount 2.19.
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='pam_mount'
588619 PACKAGE_TARNAME='pam_mount'
589 PACKAGE_VERSION='2.18'
590 PACKAGE_STRING='pam_mount 2.18'
620 PACKAGE_VERSION='2.19'
621 PACKAGE_STRING='pam_mount 2.19'
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_subst_vars='am__EXEEXT_FALSE
631658 am__EXEEXT_TRUE
632659 LTLIBOBJS
670697 rundir
671698 ssbindir
672699 slibdir
673 CPP
674700 LT_SYS_LIBRARY_PATH
675701 OTOOL64
676702 OTOOL
681707 RANLIB
682708 DLLTOOL
683709 OBJDUMP
710 FILECMD
684711 LN_S
685712 NM
686713 ac_ct_DUMPBIN
708735 AMDEPBACKSLASH
709736 AMDEP_FALSE
710737 AMDEP_TRUE
711 am__quote
712738 am__include
713739 DEPDIR
714740 OBJEXT
722748 AM_DEFAULT_VERBOSITY
723749 AM_DEFAULT_V
724750 AM_V
751 CSCOPE
752 ETAGS
753 CTAGS
725754 am__untar
726755 am__tar
727756 AMTAR
764793 docdir
765794 oldincludedir
766795 includedir
796 runstatedir
767797 localstatedir
768798 sharedstatedir
769799 sysconfdir
782812 PACKAGE_TARNAME
783813 PACKAGE_NAME
784814 PATH_SEPARATOR
785 SHELL'
815 SHELL
816 am__quote'
786817 ac_subst_files=''
787818 ac_user_opts='
788819 enable_option_checking
814845 LIBS
815846 CPPFLAGS
816847 LT_SYS_LIBRARY_PATH
817 CPP
818848 PKG_CONFIG
819849 PKG_CONFIG_PATH
820850 PKG_CONFIG_LIBDIR
868898 sysconfdir='${prefix}/etc'
869899 sharedstatedir='${prefix}/com'
870900 localstatedir='${prefix}/var'
901 runstatedir='${localstatedir}/run'
871902 includedir='${prefix}/include'
872903 oldincludedir='/usr/include'
873904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897928 *) ac_optarg=yes ;;
898929 esac
899930
900 # Accept the important Cygnus configure options, so we can diagnose typos.
901
902931 case $ac_dashdash$ac_option in
903932 --)
904933 ac_dashdash=yes ;;
939968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940969 # Reject names that are not valid shell variable names.
941970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
971 as_fn_error $? "invalid feature name: \`$ac_useropt'"
943972 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
945974 case $ac_user_opts in
946975 *"
947976 "enable_$ac_useropt"
965994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966995 # Reject names that are not valid shell variable names.
967996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
997 as_fn_error $? "invalid feature name: \`$ac_useropt'"
969998 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
9711000 case $ac_user_opts in
9721001 *"
9731002 "enable_$ac_useropt"
11201149 | -silent | --silent | --silen | --sile | --sil)
11211150 silent=yes ;;
11221151
1152 -runstatedir | --runstatedir | --runstatedi | --runstated \
1153 | --runstate | --runstat | --runsta | --runst | --runs \
1154 | --run | --ru | --r)
1155 ac_prev=runstatedir ;;
1156 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1157 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1158 | --run=* | --ru=* | --r=*)
1159 runstatedir=$ac_optarg ;;
1160
11231161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11241162 ac_prev=sbindir ;;
11251163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
11691207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11701208 # Reject names that are not valid shell variable names.
11711209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1210 as_fn_error $? "invalid package name: \`$ac_useropt'"
11731211 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11751213 case $ac_user_opts in
11761214 *"
11771215 "with_$ac_useropt"
11851223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11861224 # Reject names that are not valid shell variable names.
11871225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1226 as_fn_error $? "invalid package name: \`$ac_useropt'"
11891227 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11911229 case $ac_user_opts in
11921230 *"
11931231 "with_$ac_useropt"
12311269
12321270 *)
12331271 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
12351273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
12371275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12381276 ;;
12391277
12491287 case $enable_option_checking in
12501288 no) ;;
12511289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12531291 esac
12541292 fi
12551293
12571295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12581296 datadir sysconfdir sharedstatedir localstatedir includedir \
12591297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1298 libdir localedir mandir runstatedir
12611299 do
12621300 eval ac_val=\$$ac_var
12631301 # Remove trailing slashes.
13131351 X"$as_myself" : 'X\(//\)[^/]' \| \
13141352 X"$as_myself" : 'X\(//\)$' \| \
13151353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1354 printf "%s\n" X"$as_myself" |
13171355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13181356 s//\1/
13191357 q
13701408 # Omit some internal or obsolete options to make the list less imposing.
13711409 # This message is too long to be a string in the A/UX 3.1 sh.
13721410 cat <<_ACEOF
1373 \`configure' configures pam_mount 2.18 to adapt to many kinds of systems.
1411 \`configure' configures pam_mount 2.19 to adapt to many kinds of systems.
13741412
13751413 Usage: $0 [OPTION]... [VAR=VALUE]...
13761414
14101448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
14111449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
14121450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
14131452 --libdir=DIR object code libraries [EPREFIX/lib]
14141453 --includedir=DIR C header files [PREFIX/include]
14151454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
14401479
14411480 if test -n "$ac_init_help"; then
14421481 case $ac_init_help in
1443 short | recursive ) echo "Configuration of pam_mount 2.18:";;
1482 short | recursive ) echo "Configuration of pam_mount 2.19:";;
14441483 esac
14451484 cat <<\_ACEOF
14461485
14901529 you have headers in a nonstandard directory <include dir>
14911530 LT_SYS_LIBRARY_PATH
14921531 User-defined run-time library search path.
1493 CPP C preprocessor
14941532 PKG_CONFIG path to pkg-config utility
14951533 PKG_CONFIG_PATH
14961534 directories to add to pkg-config's search path
15381576 case "$ac_dir" in
15391577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15401578 *)
1541 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15421580 # A ".." for each directory in $ac_dir_suffix.
1543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15441582 case $ac_top_builddir_sub in
15451583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15461584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15681606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15691607
15701608 cd "$ac_dir" || { ac_status=$?; continue; }
1571 # Check for guested configure.
1609 # Check for configure.gnu first; this name is used for a wrapper for
1610 # Metaconfig's "Configure" on case-insensitive file systems.
15721611 if test -f "$ac_srcdir/configure.gnu"; then
15731612 echo &&
15741613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15761615 echo &&
15771616 $SHELL "$ac_srcdir/configure" --help=recursive
15781617 else
1579 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15801619 fi || ac_status=$?
15811620 cd "$ac_pwd" || { ac_status=$?; break; }
15821621 done
15851624 test -n "$ac_init_help" && exit $ac_status
15861625 if $ac_init_version; then
15871626 cat <<\_ACEOF
1588 pam_mount configure 2.18
1589 generated by GNU Autoconf 2.69
1590
1591 Copyright (C) 2012 Free Software Foundation, Inc.
1627 pam_mount configure 2.19
1628 generated by GNU Autoconf 2.71
1629
1630 Copyright (C) 2021 Free Software Foundation, Inc.
15921631 This configure script is free software; the Free Software Foundation
15931632 gives unlimited permission to copy, distribute and modify it.
15941633 _ACEOF
16051644 ac_fn_c_try_compile ()
16061645 {
16071646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext
1647 rm -f conftest.$ac_objext conftest.beam
16091648 if { { ac_try="$ac_compile"
16101649 case "(($ac_try" in
16111650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121651 *) ac_try_echo=$ac_try;;
16131652 esac
16141653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1654 printf "%s\n" "$ac_try_echo"; } >&5
16161655 (eval "$ac_compile") 2>conftest.err
16171656 ac_status=$?
16181657 if test -s conftest.err; then
16201659 cat conftest.er1 >&5
16211660 mv -f conftest.er1 conftest.err
16221661 fi
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16241663 test $ac_status = 0; } && {
16251664 test -z "$ac_c_werror_flag" ||
16261665 test ! -s conftest.err
1627 } && test -s conftest.$ac_objext; then :
1666 } && test -s conftest.$ac_objext
1667 then :
16281668 ac_retval=0
1629 else
1630 $as_echo "$as_me: failed program was:" >&5
1669 else $as_nop
1670 printf "%s\n" "$as_me: failed program was:" >&5
16311671 sed 's/^/| /' conftest.$ac_ext >&5
16321672
16331673 ac_retval=1
16431683 ac_fn_c_try_link ()
16441684 {
16451685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext conftest$ac_exeext
1686 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
16471687 if { { ac_try="$ac_link"
16481688 case "(($ac_try" in
16491689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501690 *) ac_try_echo=$ac_try;;
16511691 esac
16521692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1693 printf "%s\n" "$ac_try_echo"; } >&5
16541694 (eval "$ac_link") 2>conftest.err
16551695 ac_status=$?
16561696 if test -s conftest.err; then
16581698 cat conftest.er1 >&5
16591699 mv -f conftest.er1 conftest.err
16601700 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16621702 test $ac_status = 0; } && {
16631703 test -z "$ac_c_werror_flag" ||
16641704 test ! -s conftest.err
16651705 } && test -s conftest$ac_exeext && {
16661706 test "$cross_compiling" = yes ||
16671707 test -x conftest$ac_exeext
1668 }; then :
1708 }
1709 then :
16691710 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1711 else $as_nop
1712 printf "%s\n" "$as_me: failed program was:" >&5
16721713 sed 's/^/| /' conftest.$ac_ext >&5
16731714
16741715 ac_retval=1
16901731 ac_fn_c_check_header_compile ()
16911732 {
16921733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if eval \${$3+:} false; then :
1696 $as_echo_n "(cached) " >&6
1697 else
1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 printf %s "checking for $2... " >&6; }
1736 if eval test \${$3+y}
1737 then :
1738 printf %s "(cached) " >&6
1739 else $as_nop
16981740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991741 /* end confdefs.h. */
17001742 $4
17011743 #include <$2>
17021744 _ACEOF
1703 if ac_fn_c_try_compile "$LINENO"; then :
1745 if ac_fn_c_try_compile "$LINENO"
1746 then :
17041747 eval "$3=yes"
1705 else
1748 else $as_nop
17061749 eval "$3=no"
17071750 fi
1708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17091752 fi
17101753 eval ac_res=\$$3
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 printf "%s\n" "$ac_res" >&6; }
17131756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17141757
17151758 } # ac_fn_c_check_header_compile
1716
1717 # ac_fn_c_try_cpp LINENO
1718 # ----------------------
1719 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_cpp ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_cpp conftest.$ac_ext"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } > conftest.i && {
1739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 }; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=1
1748 fi
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_cpp
1753
1754 # ac_fn_c_try_run LINENO
1755 # ----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1758 ac_fn_c_try_run ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772 { { case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_try") 2>&5
1779 ac_status=$?
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; }; }; then :
1782 ac_retval=0
1783 else
1784 $as_echo "$as_me: program exited with status $ac_status" >&5
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=$ac_status
1789 fi
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1793
1794 } # ac_fn_c_try_run
17951759
17961760 # ac_fn_c_check_func LINENO FUNC VAR
17971761 # ----------------------------------
17991763 ac_fn_c_check_func ()
18001764 {
18011765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805 $as_echo_n "(cached) " >&6
1806 else
1766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 printf %s "checking for $2... " >&6; }
1768 if eval test \${$3+y}
1769 then :
1770 printf %s "(cached) " >&6
1771 else $as_nop
18071772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18081773 /* end confdefs.h. */
18091774 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18111776 #define $2 innocuous_$2
18121777
18131778 /* System header to define __stub macros and hopefully few prototypes,
1814 which can conflict with char $2 (); below.
1815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1816 <limits.h> exists even on freestanding compilers. */
1817
1818 #ifdef __STDC__
1819 # include <limits.h>
1820 #else
1821 # include <assert.h>
1822 #endif
1823
1779 which can conflict with char $2 (); below. */
1780
1781 #include <limits.h>
18241782 #undef $2
18251783
18261784 /* Override any GCC internal prototype to avoid an error.
18381796 #endif
18391797
18401798 int
1841 main ()
1799 main (void)
18421800 {
18431801 return $2 ();
18441802 ;
18451803 return 0;
18461804 }
18471805 _ACEOF
1848 if ac_fn_c_try_link "$LINENO"; then :
1806 if ac_fn_c_try_link "$LINENO"
1807 then :
18491808 eval "$3=yes"
1850 else
1809 else $as_nop
18511810 eval "$3=no"
18521811 fi
1853 rm -f core conftest.err conftest.$ac_objext \
1812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18541813 conftest$ac_exeext conftest.$ac_ext
18551814 fi
18561815 eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 printf "%s\n" "$ac_res" >&6; }
18591818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18601819
18611820 } # ac_fn_c_check_func
1862
1863 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1866 # the include files in INCLUDES and setting the cache variable VAR
1867 # accordingly.
1868 ac_fn_c_check_header_mongrel ()
1869 {
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if eval \${$3+:} false; then :
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1876 fi
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 else
1881 # Is the header compilable?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1883 $as_echo_n "checking $2 usability... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 $4
1887 #include <$2>
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890 ac_header_compiler=yes
1891 else
1892 ac_header_compiler=no
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1896 $as_echo "$ac_header_compiler" >&6; }
1897
1898 # Is the header present?
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1900 $as_echo_n "checking $2 presence... " >&6; }
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_cpp "$LINENO"; then :
1906 ac_header_preproc=yes
1907 else
1908 ac_header_preproc=no
1909 fi
1910 rm -f conftest.err conftest.i conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1912 $as_echo "$ac_header_preproc" >&6; }
1913
1914 # So? What about this header?
1915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1916 yes:no: )
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1918 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1921 ;;
1922 no:yes:* )
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1924 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1926 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1928 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1930 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 ;;
1934 esac
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 eval "$3=\$ac_header_compiler"
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 fi
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_header_mongrel
19491821
19501822 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
19511823 # ----------------------------------------------------
19541826 ac_fn_c_check_member ()
19551827 {
19561828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1958 $as_echo_n "checking for $2.$3... " >&6; }
1959 if eval \${$4+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961 else
1829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1830 printf %s "checking for $2.$3... " >&6; }
1831 if eval test \${$4+y}
1832 then :
1833 printf %s "(cached) " >&6
1834 else $as_nop
19621835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19631836 /* end confdefs.h. */
19641837 $5
19651838 int
1966 main ()
1839 main (void)
19671840 {
19681841 static $2 ac_aggr;
19691842 if (ac_aggr.$3)
19721845 return 0;
19731846 }
19741847 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1848 if ac_fn_c_try_compile "$LINENO"
1849 then :
19761850 eval "$4=yes"
1977 else
1851 else $as_nop
19781852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19791853 /* end confdefs.h. */
19801854 $5
19811855 int
1982 main ()
1856 main (void)
19831857 {
19841858 static $2 ac_aggr;
19851859 if (sizeof ac_aggr.$3)
19881862 return 0;
19891863 }
19901864 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1865 if ac_fn_c_try_compile "$LINENO"
1866 then :
19921867 eval "$4=yes"
1993 else
1868 else $as_nop
19941869 eval "$4=no"
19951870 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19991874 fi
20001875 eval ac_res=\$$4
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
1876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 printf "%s\n" "$ac_res" >&6; }
20031878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
20041879
20051880 } # ac_fn_c_check_member
1881 ac_configure_args_raw=
1882 for ac_arg
1883 do
1884 case $ac_arg in
1885 *\'*)
1886 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1887 esac
1888 as_fn_append ac_configure_args_raw " '$ac_arg'"
1889 done
1890
1891 case $ac_configure_args_raw in
1892 *$as_nl*)
1893 ac_safe_unquote= ;;
1894 *)
1895 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1896 ac_unsafe_a="$ac_unsafe_z#~"
1897 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1898 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1899 esac
1900
20061901 cat >config.log <<_ACEOF
20071902 This file contains any messages produced by compilers while
20081903 running configure, to aid debugging if configure makes a mistake.
20091904
2010 It was created by pam_mount $as_me 2.18, which was
2011 generated by GNU Autoconf 2.69. Invocation command line was
2012
2013 $ $0 $@
1905 It was created by pam_mount $as_me 2.19, which was
1906 generated by GNU Autoconf 2.71. Invocation command line was
1907
1908 $ $0$ac_configure_args_raw
20141909
20151910 _ACEOF
20161911 exec 5>>config.log
20431938 for as_dir in $PATH
20441939 do
20451940 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 $as_echo "PATH: $as_dir"
1941 case $as_dir in #(((
1942 '') as_dir=./ ;;
1943 */) ;;
1944 *) as_dir=$as_dir/ ;;
1945 esac
1946 printf "%s\n" "PATH: $as_dir"
20481947 done
20491948 IFS=$as_save_IFS
20501949
20791978 | -silent | --silent | --silen | --sile | --sil)
20801979 continue ;;
20811980 *\'*)
2082 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1981 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20831982 esac
20841983 case $ac_pass in
20851984 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
21142013 # WARNING: Use '\'' to represent an apostrophe within the trap.
21152014 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
21162015 trap 'exit_status=$?
2016 # Sanitize IFS.
2017 IFS=" "" $as_nl"
21172018 # Save into config.log some information that might help in debugging.
21182019 {
21192020 echo
21202021
2121 $as_echo "## ---------------- ##
2022 printf "%s\n" "## ---------------- ##
21222023 ## Cache variables. ##
21232024 ## ---------------- ##"
21242025 echo
21292030 case $ac_val in #(
21302031 *${as_nl}*)
21312032 case $ac_var in #(
2132 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2133 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2033 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2034 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21342035 esac
21352036 case $ac_var in #(
21362037 _ | IFS | as_nl) ;; #(
21542055 )
21552056 echo
21562057
2157 $as_echo "## ----------------- ##
2058 printf "%s\n" "## ----------------- ##
21582059 ## Output variables. ##
21592060 ## ----------------- ##"
21602061 echo
21622063 do
21632064 eval ac_val=\$$ac_var
21642065 case $ac_val in
2165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2066 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
21662067 esac
2167 $as_echo "$ac_var='\''$ac_val'\''"
2068 printf "%s\n" "$ac_var='\''$ac_val'\''"
21682069 done | sort
21692070 echo
21702071
21712072 if test -n "$ac_subst_files"; then
2172 $as_echo "## ------------------- ##
2073 printf "%s\n" "## ------------------- ##
21732074 ## File substitutions. ##
21742075 ## ------------------- ##"
21752076 echo
21772078 do
21782079 eval ac_val=\$$ac_var
21792080 case $ac_val in
2180 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
21812082 esac
2182 $as_echo "$ac_var='\''$ac_val'\''"
2083 printf "%s\n" "$ac_var='\''$ac_val'\''"
21832084 done | sort
21842085 echo
21852086 fi
21862087
21872088 if test -s confdefs.h; then
2188 $as_echo "## ----------- ##
2089 printf "%s\n" "## ----------- ##
21892090 ## confdefs.h. ##
21902091 ## ----------- ##"
21912092 echo
21932094 echo
21942095 fi
21952096 test "$ac_signal" != 0 &&
2196 $as_echo "$as_me: caught signal $ac_signal"
2197 $as_echo "$as_me: exit $exit_status"
2097 printf "%s\n" "$as_me: caught signal $ac_signal"
2098 printf "%s\n" "$as_me: exit $exit_status"
21982099 } >&5
21992100 rm -f core *.core core.conftest.* &&
22002101 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
22082109 # confdefs.h avoids OS command line length limits that DEFS can exceed.
22092110 rm -f -r conftest* confdefs.h
22102111
2211 $as_echo "/* confdefs.h */" > confdefs.h
2112 printf "%s\n" "/* confdefs.h */" > confdefs.h
22122113
22132114 # Predefined preprocessor variables.
22142115
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_NAME "$PACKAGE_NAME"
2217 _ACEOF
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2221 _ACEOF
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2225 _ACEOF
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_STRING "$PACKAGE_STRING"
2229 _ACEOF
2230
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2233 _ACEOF
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_URL "$PACKAGE_URL"
2237 _ACEOF
2116 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2117
2118 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2119
2120 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2121
2122 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2123
2124 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2125
2126 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
22382127
22392128
22402129 # Let the site file select an alternate cache file if it wants to.
22412130 # Prefer an explicitly selected file to automatically selected ones.
2242 ac_site_file1=NONE
2243 ac_site_file2=NONE
22442131 if test -n "$CONFIG_SITE"; then
2245 # We do not want a PATH search for config.site.
2246 case $CONFIG_SITE in #((
2247 -*) ac_site_file1=./$CONFIG_SITE;;
2248 */*) ac_site_file1=$CONFIG_SITE;;
2249 *) ac_site_file1=./$CONFIG_SITE;;
2250 esac
2132 ac_site_files="$CONFIG_SITE"
22512133 elif test "x$prefix" != xNONE; then
2252 ac_site_file1=$prefix/share/config.site
2253 ac_site_file2=$prefix/etc/config.site
2254 else
2255 ac_site_file1=$ac_default_prefix/share/config.site
2256 ac_site_file2=$ac_default_prefix/etc/config.site
2257 fi
2258 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2135 else
2136 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2137 fi
2138
2139 for ac_site_file in $ac_site_files
22592140 do
2260 test "x$ac_site_file" = xNONE && continue
2261 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2263 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2141 case $ac_site_file in #(
2142 */*) :
2143 ;; #(
2144 *) :
2145 ac_site_file=./$ac_site_file ;;
2146 esac
2147 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
22642150 sed 's/^/| /' "$ac_site_file" >&5
22652151 . "$ac_site_file" \
2266 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22682154 as_fn_error $? "failed to load site script $ac_site_file
22692155 See \`config.log' for more details" "$LINENO" 5; }
22702156 fi
22742160 # Some versions of bash will fail to source /dev/null (special files
22752161 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
22762162 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2278 $as_echo "$as_me: loading cache $cache_file" >&6;}
2163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
22792165 case $cache_file in
22802166 [\\/]* | ?:[\\/]* ) . "$cache_file";;
22812167 *) . "./$cache_file";;
22822168 esac
22832169 fi
22842170 else
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2286 $as_echo "$as_me: creating cache $cache_file" >&6;}
2171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
22872173 >$cache_file
2174 fi
2175
2176 # Test code for whether the C compiler supports C89 (global declarations)
2177 ac_c_conftest_c89_globals='
2178 /* Does the compiler advertise C89 conformance?
2179 Do not test the value of __STDC__, because some compilers set it to 0
2180 while being otherwise adequately conformant. */
2181 #if !defined __STDC__
2182 # error "Compiler does not advertise C89 conformance"
2183 #endif
2184
2185 #include <stddef.h>
2186 #include <stdarg.h>
2187 struct stat;
2188 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2189 struct buf { int x; };
2190 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2191 static char *e (p, i)
2192 char **p;
2193 int i;
2194 {
2195 return p[i];
2196 }
2197 static char *f (char * (*g) (char **, int), char **p, ...)
2198 {
2199 char *s;
2200 va_list v;
2201 va_start (v,p);
2202 s = g (p, va_arg (v,int));
2203 va_end (v);
2204 return s;
2205 }
2206
2207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2208 function prototypes and stuff, but not \xHH hex character constants.
2209 These do not provoke an error unfortunately, instead are silently treated
2210 as an "x". The following induces an error, until -std is added to get
2211 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2212 array size at least. It is necessary to write \x00 == 0 to get something
2213 that is true only with -std. */
2214 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2215
2216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2217 inside strings and character constants. */
2218 #define FOO(x) '\''x'\''
2219 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2220
2221 int test (int i, double x);
2222 struct s1 {int (*f) (int a);};
2223 struct s2 {int (*f) (double a);};
2224 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2225 int, int);'
2226
2227 # Test code for whether the C compiler supports C89 (body of main).
2228 ac_c_conftest_c89_main='
2229 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2230 '
2231
2232 # Test code for whether the C compiler supports C99 (global declarations)
2233 ac_c_conftest_c99_globals='
2234 // Does the compiler advertise C99 conformance?
2235 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2236 # error "Compiler does not advertise C99 conformance"
2237 #endif
2238
2239 #include <stdbool.h>
2240 extern int puts (const char *);
2241 extern int printf (const char *, ...);
2242 extern int dprintf (int, const char *, ...);
2243 extern void *malloc (size_t);
2244
2245 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2246 // dprintf is used instead of fprintf to avoid needing to declare
2247 // FILE and stderr.
2248 #define debug(...) dprintf (2, __VA_ARGS__)
2249 #define showlist(...) puts (#__VA_ARGS__)
2250 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2251 static void
2252 test_varargs_macros (void)
2253 {
2254 int x = 1234;
2255 int y = 5678;
2256 debug ("Flag");
2257 debug ("X = %d\n", x);
2258 showlist (The first, second, and third items.);
2259 report (x>y, "x is %d but y is %d", x, y);
2260 }
2261
2262 // Check long long types.
2263 #define BIG64 18446744073709551615ull
2264 #define BIG32 4294967295ul
2265 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2266 #if !BIG_OK
2267 #error "your preprocessor is broken"
2268 #endif
2269 #if BIG_OK
2270 #else
2271 #error "your preprocessor is broken"
2272 #endif
2273 static long long int bignum = -9223372036854775807LL;
2274 static unsigned long long int ubignum = BIG64;
2275
2276 struct incomplete_array
2277 {
2278 int datasize;
2279 double data[];
2280 };
2281
2282 struct named_init {
2283 int number;
2284 const wchar_t *name;
2285 double average;
2286 };
2287
2288 typedef const char *ccp;
2289
2290 static inline int
2291 test_restrict (ccp restrict text)
2292 {
2293 // See if C++-style comments work.
2294 // Iterate through items via the restricted pointer.
2295 // Also check for declarations in for loops.
2296 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2297 continue;
2298 return 0;
2299 }
2300
2301 // Check varargs and va_copy.
2302 static bool
2303 test_varargs (const char *format, ...)
2304 {
2305 va_list args;
2306 va_start (args, format);
2307 va_list args_copy;
2308 va_copy (args_copy, args);
2309
2310 const char *str = "";
2311 int number = 0;
2312 float fnumber = 0;
2313
2314 while (*format)
2315 {
2316 switch (*format++)
2317 {
2318 case '\''s'\'': // string
2319 str = va_arg (args_copy, const char *);
2320 break;
2321 case '\''d'\'': // int
2322 number = va_arg (args_copy, int);
2323 break;
2324 case '\''f'\'': // float
2325 fnumber = va_arg (args_copy, double);
2326 break;
2327 default:
2328 break;
2329 }
2330 }
2331 va_end (args_copy);
2332 va_end (args);
2333
2334 return *str && number && fnumber;
2335 }
2336 '
2337
2338 # Test code for whether the C compiler supports C99 (body of main).
2339 ac_c_conftest_c99_main='
2340 // Check bool.
2341 _Bool success = false;
2342 success |= (argc != 0);
2343
2344 // Check restrict.
2345 if (test_restrict ("String literal") == 0)
2346 success = true;
2347 char *restrict newvar = "Another string";
2348
2349 // Check varargs.
2350 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2351 test_varargs_macros ();
2352
2353 // Check flexible array members.
2354 struct incomplete_array *ia =
2355 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2356 ia->datasize = 10;
2357 for (int i = 0; i < ia->datasize; ++i)
2358 ia->data[i] = i * 1.234;
2359
2360 // Check named initializers.
2361 struct named_init ni = {
2362 .number = 34,
2363 .name = L"Test wide string",
2364 .average = 543.34343,
2365 };
2366
2367 ni.number = 58;
2368
2369 int dynamic_array[ni.number];
2370 dynamic_array[0] = argv[0][0];
2371 dynamic_array[ni.number - 1] = 543;
2372
2373 // work around unused variable warnings
2374 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2375 || dynamic_array[ni.number - 1] != 543);
2376 '
2377
2378 # Test code for whether the C compiler supports C11 (global declarations)
2379 ac_c_conftest_c11_globals='
2380 // Does the compiler advertise C11 conformance?
2381 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2382 # error "Compiler does not advertise C11 conformance"
2383 #endif
2384
2385 // Check _Alignas.
2386 char _Alignas (double) aligned_as_double;
2387 char _Alignas (0) no_special_alignment;
2388 extern char aligned_as_int;
2389 char _Alignas (0) _Alignas (int) aligned_as_int;
2390
2391 // Check _Alignof.
2392 enum
2393 {
2394 int_alignment = _Alignof (int),
2395 int_array_alignment = _Alignof (int[100]),
2396 char_alignment = _Alignof (char)
2397 };
2398 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2399
2400 // Check _Noreturn.
2401 int _Noreturn does_not_return (void) { for (;;) continue; }
2402
2403 // Check _Static_assert.
2404 struct test_static_assert
2405 {
2406 int x;
2407 _Static_assert (sizeof (int) <= sizeof (long int),
2408 "_Static_assert does not work in struct");
2409 long int y;
2410 };
2411
2412 // Check UTF-8 literals.
2413 #define u8 syntax error!
2414 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2415
2416 // Check duplicate typedefs.
2417 typedef long *long_ptr;
2418 typedef long int *long_ptr;
2419 typedef long_ptr long_ptr;
2420
2421 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2422 struct anonymous
2423 {
2424 union {
2425 struct { int i; int j; };
2426 struct { int k; long int l; } w;
2427 };
2428 int m;
2429 } v1;
2430 '
2431
2432 # Test code for whether the C compiler supports C11 (body of main).
2433 ac_c_conftest_c11_main='
2434 _Static_assert ((offsetof (struct anonymous, i)
2435 == offsetof (struct anonymous, w.k)),
2436 "Anonymous union alignment botch");
2437 v1.i = 2;
2438 v1.w.k = 5;
2439 ok |= v1.i != 5;
2440 '
2441
2442 # Test code for whether the C compiler supports C11 (complete).
2443 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2444 ${ac_c_conftest_c99_globals}
2445 ${ac_c_conftest_c11_globals}
2446
2447 int
2448 main (int argc, char **argv)
2449 {
2450 int ok = 0;
2451 ${ac_c_conftest_c89_main}
2452 ${ac_c_conftest_c99_main}
2453 ${ac_c_conftest_c11_main}
2454 return ok;
2455 }
2456 "
2457
2458 # Test code for whether the C compiler supports C99 (complete).
2459 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2460 ${ac_c_conftest_c99_globals}
2461
2462 int
2463 main (int argc, char **argv)
2464 {
2465 int ok = 0;
2466 ${ac_c_conftest_c89_main}
2467 ${ac_c_conftest_c99_main}
2468 return ok;
2469 }
2470 "
2471
2472 # Test code for whether the C compiler supports C89 (complete).
2473 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2474
2475 int
2476 main (int argc, char **argv)
2477 {
2478 int ok = 0;
2479 ${ac_c_conftest_c89_main}
2480 return ok;
2481 }
2482 "
2483
2484 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2485 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2486 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2487 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2488 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2489 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2490 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2491 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2492 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2493
2494 # Auxiliary files required by this configure script.
2495 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2496
2497 # Locations in which to look for auxiliary files.
2498 ac_aux_dir_candidates="${srcdir}/build-aux"
2499
2500 # Search for a directory containing all of the required auxiliary files,
2501 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2502 # If we don't find one directory that contains all the files we need,
2503 # we report the set of missing files from the *first* directory in
2504 # $ac_aux_dir_candidates and give up.
2505 ac_missing_aux_files=""
2506 ac_first_candidate=:
2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 as_found=false
2510 for as_dir in $ac_aux_dir_candidates
2511 do
2512 IFS=$as_save_IFS
2513 case $as_dir in #(((
2514 '') as_dir=./ ;;
2515 */) ;;
2516 *) as_dir=$as_dir/ ;;
2517 esac
2518 as_found=:
2519
2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2521 ac_aux_dir_found=yes
2522 ac_install_sh=
2523 for ac_aux in $ac_aux_files
2524 do
2525 # As a special case, if "install-sh" is required, that requirement
2526 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2527 # and $ac_install_sh is set appropriately for whichever one is found.
2528 if test x"$ac_aux" = x"install-sh"
2529 then
2530 if test -f "${as_dir}install-sh"; then
2531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2532 ac_install_sh="${as_dir}install-sh -c"
2533 elif test -f "${as_dir}install.sh"; then
2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2535 ac_install_sh="${as_dir}install.sh -c"
2536 elif test -f "${as_dir}shtool"; then
2537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2538 ac_install_sh="${as_dir}shtool install -c"
2539 else
2540 ac_aux_dir_found=no
2541 if $ac_first_candidate; then
2542 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2543 else
2544 break
2545 fi
2546 fi
2547 else
2548 if test -f "${as_dir}${ac_aux}"; then
2549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2550 else
2551 ac_aux_dir_found=no
2552 if $ac_first_candidate; then
2553 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2554 else
2555 break
2556 fi
2557 fi
2558 fi
2559 done
2560 if test "$ac_aux_dir_found" = yes; then
2561 ac_aux_dir="$as_dir"
2562 break
2563 fi
2564 ac_first_candidate=false
2565
2566 as_found=false
2567 done
2568 IFS=$as_save_IFS
2569 if $as_found
2570 then :
2571
2572 else $as_nop
2573 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2574 fi
2575
2576
2577 # These three variables are undocumented and unsupported,
2578 # and are intended to be withdrawn in a future Autoconf release.
2579 # They can cause serious problems if a builder's source tree is in a directory
2580 # whose full name contains unusual characters.
2581 if test -f "${ac_aux_dir}config.guess"; then
2582 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2583 fi
2584 if test -f "${ac_aux_dir}config.sub"; then
2585 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2586 fi
2587 if test -f "$ac_aux_dir/configure"; then
2588 ac_configure="$SHELL ${ac_aux_dir}configure"
22882589 fi
22892590
22902591 # Check that the precious variables saved in the cache have kept the same
22972598 eval ac_new_val=\$ac_env_${ac_var}_value
22982599 case $ac_old_set,$ac_new_set in
22992600 set,)
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2301 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
23022603 ac_cache_corrupted=: ;;
23032604 ,set)
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2305 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
23062607 ac_cache_corrupted=: ;;
23072608 ,);;
23082609 *)
23112612 ac_old_val_w=`echo x $ac_old_val`
23122613 ac_new_val_w=`echo x $ac_new_val`
23132614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2315 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
23162617 ac_cache_corrupted=:
23172618 else
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2319 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
23202621 eval $ac_var=\$ac_old_val
23212622 fi
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2323 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2325 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
23262627 fi;;
23272628 esac
23282629 # Pass precious variables to config.status.
23292630 if test "$ac_new_set" = set; then
23302631 case $ac_new_val in
2331 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2632 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
23322633 *) ac_arg=$ac_var=$ac_new_val ;;
23332634 esac
23342635 case " $ac_configure_args " in
23382639 fi
23392640 done
23402641 if $ac_cache_corrupted; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2344 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2345 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2647 and start over" "$LINENO" 5
23462648 fi
23472649 ## -------------------- ##
23482650 ## Main body of script. ##
23552657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23562658
23572659
2358 PACKAGE_RELDATE="2021-01-04"
2359
2360 ac_aux_dir=
2361 for ac_dir in build-aux "$srcdir"/build-aux; do
2362 if test -f "$ac_dir/install-sh"; then
2363 ac_aux_dir=$ac_dir
2364 ac_install_sh="$ac_aux_dir/install-sh -c"
2365 break
2366 elif test -f "$ac_dir/install.sh"; then
2367 ac_aux_dir=$ac_dir
2368 ac_install_sh="$ac_aux_dir/install.sh -c"
2369 break
2370 elif test -f "$ac_dir/shtool"; then
2371 ac_aux_dir=$ac_dir
2372 ac_install_sh="$ac_aux_dir/shtool install -c"
2373 break
2374 fi
2375 done
2376 if test -z "$ac_aux_dir"; then
2377 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2378 fi
2379
2380 # These three variables are undocumented and unsupported,
2381 # and are intended to be withdrawn in a future Autoconf release.
2382 # They can cause serious problems if a builder's source tree is in a directory
2383 # whose full name contains unusual characters.
2384 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2385 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2386 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2660 PACKAGE_RELDATE="2022-07-06"
23872661
23882662
23892663 ac_config_headers="$ac_config_headers config.h"
23902664
23912665
2392 # Find a good install program. We prefer a C program (faster),
2666
2667
2668 # Find a good install program. We prefer a C program (faster),
23932669 # so one script is as good as another. But avoid the broken or
23942670 # incompatible versions:
23952671 # SysV /etc/install, /usr/sbin/install
24032679 # OS/2's system install, which has a completely different semantic
24042680 # ./install, which can be erroneously created by make from ./install.sh.
24052681 # Reject install programs that cannot install multiple files.
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2407 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2683 printf %s "checking for a BSD-compatible install... " >&6; }
24082684 if test -z "$INSTALL"; then
2409 if ${ac_cv_path_install+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2685 if test ${ac_cv_path_install+y}
2686 then :
2687 printf %s "(cached) " >&6
2688 else $as_nop
24122689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24132690 for as_dir in $PATH
24142691 do
24152692 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 # Account for people who put trailing slashes in PATH elements.
2418 case $as_dir/ in #((
2419 ./ | .// | /[cC]/* | \
2693 case $as_dir in #(((
2694 '') as_dir=./ ;;
2695 */) ;;
2696 *) as_dir=$as_dir/ ;;
2697 esac
2698 # Account for fact that we put trailing slashes in our PATH walk.
2699 case $as_dir in #((
2700 ./ | /[cC]/* | \
24202701 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
24212702 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
24222703 /usr/ucb/* ) ;;
24262707 # by default.
24272708 for ac_prog in ginstall scoinst install; do
24282709 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2710 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
24302711 if test $ac_prog = install &&
2431 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24322713 # AIX install. It has an incompatible calling convention.
24332714 :
24342715 elif test $ac_prog = install &&
2435 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24362717 # program-specific install script used by HP pwplus--don't use.
24372718 :
24382719 else
24402721 echo one > conftest.one
24412722 echo two > conftest.two
24422723 mkdir conftest.dir
2443 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
24442725 test -s conftest.one && test -s conftest.two &&
24452726 test -s conftest.dir/conftest.one &&
24462727 test -s conftest.dir/conftest.two
24472728 then
2448 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
24492730 break 3
24502731 fi
24512732 fi
24612742 rm -rf conftest.one conftest.two conftest.dir
24622743
24632744 fi
2464 if test "${ac_cv_path_install+set}" = set; then
2745 if test ${ac_cv_path_install+y}; then
24652746 INSTALL=$ac_cv_path_install
24662747 else
24672748 # As a last resort, use the slow shell script. Don't cache a
24712752 INSTALL=$ac_install_sh
24722753 fi
24732754 fi
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2475 $as_echo "$INSTALL" >&6; }
2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2756 printf "%s\n" "$INSTALL" >&6; }
24762757
24772758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
24782759 # It thinks the first close brace ends the variable substitution.
24822763
24832764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
24842765
2485 am__api_version='1.15'
2486
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2488 $as_echo_n "checking whether build environment is sane... " >&6; }
2766 am__api_version='1.16'
2767
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2769 printf %s "checking whether build environment is sane... " >&6; }
24892770 # Reject unsafe characters in $srcdir or the absolute working directory
24902771 # name. Accept space and tab only in the latter.
24912772 am_lf='
25392820 as_fn_error $? "newly created file is older than distributed files!
25402821 Check your system clock" "$LINENO" 5
25412822 fi
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2543 $as_echo "yes" >&6; }
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2824 printf "%s\n" "yes" >&6; }
25442825 # If we didn't sleep, we still need to ensure time stamps of config.status and
25452826 # generated files are strictly newer.
25462827 am_sleep_pid=
25592840 # Double any \ or $.
25602841 # By default was `s,x,x', remove it if useless.
25612842 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2562 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2843 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2844
25632845
25642846 # Expand $ac_aux_dir to an absolute path.
25652847 am_aux_dir=`cd "$ac_aux_dir" && pwd`
25662848
2567 if test x"${MISSING+set}" != xset; then
2568 case $am_aux_dir in
2569 *\ * | *\ *)
2570 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2571 *)
2572 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2573 esac
2849
2850 if test x"${MISSING+set}" != xset; then
2851 MISSING="\${SHELL} '$am_aux_dir/missing'"
25742852 fi
25752853 # Use eval to expand $SHELL
25762854 if eval "$MISSING --is-lightweight"; then
25772855 am_missing_run="$MISSING "
25782856 else
25792857 am_missing_run=
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2581 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2859 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
25822860 fi
25832861
25842862 if test x"${install_sh+set}" != xset; then
25982876 if test -n "$ac_tool_prefix"; then
25992877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26002878 set dummy ${ac_tool_prefix}strip; ac_word=$2
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602 $as_echo_n "checking for $ac_word... " >&6; }
2603 if ${ac_cv_prog_STRIP+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 printf %s "checking for $ac_word... " >&6; }
2881 if test ${ac_cv_prog_STRIP+y}
2882 then :
2883 printf %s "(cached) " >&6
2884 else $as_nop
26062885 if test -n "$STRIP"; then
26072886 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
26082887 else
26102889 for as_dir in $PATH
26112890 do
26122891 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2892 case $as_dir in #(((
2893 '') as_dir=./ ;;
2894 */) ;;
2895 *) as_dir=$as_dir/ ;;
2896 esac
26142897 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26162899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26182901 break 2
26192902 fi
26202903 done
26252908 fi
26262909 STRIP=$ac_cv_prog_STRIP
26272910 if test -n "$STRIP"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2629 $as_echo "$STRIP" >&6; }
2630 else
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632 $as_echo "no" >&6; }
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2912 printf "%s\n" "$STRIP" >&6; }
2913 else
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 printf "%s\n" "no" >&6; }
26332916 fi
26342917
26352918
26382921 ac_ct_STRIP=$STRIP
26392922 # Extract the first word of "strip", so it can be a program name with args.
26402923 set dummy strip; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 printf %s "checking for $ac_word... " >&6; }
2926 if test ${ac_cv_prog_ac_ct_STRIP+y}
2927 then :
2928 printf %s "(cached) " >&6
2929 else $as_nop
26462930 if test -n "$ac_ct_STRIP"; then
26472931 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
26482932 else
26502934 for as_dir in $PATH
26512935 do
26522936 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2937 case $as_dir in #(((
2938 '') as_dir=./ ;;
2939 */) ;;
2940 *) as_dir=$as_dir/ ;;
2941 esac
26542942 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26562944 ac_cv_prog_ac_ct_STRIP="strip"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26582946 break 2
26592947 fi
26602948 done
26652953 fi
26662954 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
26672955 if test -n "$ac_ct_STRIP"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2669 $as_echo "$ac_ct_STRIP" >&6; }
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2957 printf "%s\n" "$ac_ct_STRIP" >&6; }
2958 else
2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 printf "%s\n" "no" >&6; }
26732961 fi
26742962
26752963 if test "x$ac_ct_STRIP" = x; then
26772965 else
26782966 case $cross_compiling:$ac_tool_warned in
26792967 yes:)
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26822970 ac_tool_warned=yes ;;
26832971 esac
26842972 STRIP=$ac_ct_STRIP
26902978 fi
26912979 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
26922980
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2694 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2981
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2983 printf %s "checking for a race-free mkdir -p... " >&6; }
26952984 if test -z "$MKDIR_P"; then
2696 if ${ac_cv_path_mkdir+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2985 if test ${ac_cv_path_mkdir+y}
2986 then :
2987 printf %s "(cached) " >&6
2988 else $as_nop
26992989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27002990 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
27012991 do
27022992 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2993 case $as_dir in #(((
2994 '') as_dir=./ ;;
2995 */) ;;
2996 *) as_dir=$as_dir/ ;;
2997 esac
27042998 for ac_prog in mkdir gmkdir; do
27052999 for ac_exec_ext in '' $ac_executable_extensions; do
2706 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2707 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2708 'mkdir (GNU coreutils) '* | \
2709 'mkdir (coreutils) '* | \
3000 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3001 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3002 'mkdir ('*'coreutils) '* | \
3003 'BusyBox '* | \
27103004 'mkdir (fileutils) '4.1*)
2711 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3005 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
27123006 break 3;;
27133007 esac
27143008 done
27193013 fi
27203014
27213015 test -d ./--version && rmdir ./--version
2722 if test "${ac_cv_path_mkdir+set}" = set; then
3016 if test ${ac_cv_path_mkdir+y}; then
27233017 MKDIR_P="$ac_cv_path_mkdir -p"
27243018 else
27253019 # As a last resort, use the slow shell script. Don't cache a
27293023 MKDIR_P="$ac_install_sh -d"
27303024 fi
27313025 fi
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2733 $as_echo "$MKDIR_P" >&6; }
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3027 printf "%s\n" "$MKDIR_P" >&6; }
27343028
27353029 for ac_prog in gawk mawk nawk awk
27363030 do
27373031 # Extract the first word of "$ac_prog", so it can be a program name with args.
27383032 set dummy $ac_prog; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if ${ac_cv_prog_AWK+:} false; then :
2742 $as_echo_n "(cached) " >&6
2743 else
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 printf %s "checking for $ac_word... " >&6; }
3035 if test ${ac_cv_prog_AWK+y}
3036 then :
3037 printf %s "(cached) " >&6
3038 else $as_nop
27443039 if test -n "$AWK"; then
27453040 ac_cv_prog_AWK="$AWK" # Let the user override the test.
27463041 else
27483043 for as_dir in $PATH
27493044 do
27503045 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
3046 case $as_dir in #(((
3047 '') as_dir=./ ;;
3048 */) ;;
3049 *) as_dir=$as_dir/ ;;
3050 esac
27523051 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27543053 ac_cv_prog_AWK="$ac_prog"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27563055 break 2
27573056 fi
27583057 done
27633062 fi
27643063 AWK=$ac_cv_prog_AWK
27653064 if test -n "$AWK"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2767 $as_echo "$AWK" >&6; }
2768 else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3066 printf "%s\n" "$AWK" >&6; }
3067 else
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 printf "%s\n" "no" >&6; }
27713070 fi
27723071
27733072
27743073 test -n "$AWK" && break
27753074 done
27763075
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2778 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3077 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
27793078 set x ${MAKE-make}
2780 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2781 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
3079 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3080 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3081 then :
3082 printf %s "(cached) " >&6
3083 else $as_nop
27843084 cat >conftest.make <<\_ACEOF
27853085 SHELL = /bin/sh
27863086 all:
27963096 rm -f conftest.make
27973097 fi
27983098 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2800 $as_echo "yes" >&6; }
3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3100 printf "%s\n" "yes" >&6; }
28013101 SET_MAKE=
28023102 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
3103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 printf "%s\n" "no" >&6; }
28053105 SET_MAKE="MAKE=${MAKE-make}"
28063106 fi
28073107
28153115 rmdir .tst 2>/dev/null
28163116
28173117 # Check whether --enable-silent-rules was given.
2818 if test "${enable_silent_rules+set}" = set; then :
3118 if test ${enable_silent_rules+y}
3119 then :
28193120 enableval=$enable_silent_rules;
28203121 fi
28213122
28253126 *) AM_DEFAULT_VERBOSITY=1;;
28263127 esac
28273128 am_make=${MAKE-make}
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2829 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2830 if ${am_cv_make_support_nested_variables+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 if $as_echo 'TRUE=$(BAR$(V))
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3130 printf %s "checking whether $am_make supports nested variables... " >&6; }
3131 if test ${am_cv_make_support_nested_variables+y}
3132 then :
3133 printf %s "(cached) " >&6
3134 else $as_nop
3135 if printf "%s\n" 'TRUE=$(BAR$(V))
28343136 BAR0=false
28353137 BAR1=true
28363138 V=1
28423144 am_cv_make_support_nested_variables=no
28433145 fi
28443146 fi
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2846 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3148 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
28473149 if test $am_cv_make_support_nested_variables = yes; then
28483150 AM_V='$(V)'
28493151 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
28753177
28763178 # Define the identity of the package.
28773179 PACKAGE='pam_mount'
2878 VERSION='2.18'
2879
2880
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE "$PACKAGE"
2883 _ACEOF
2884
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define VERSION "$VERSION"
2888 _ACEOF
3180 VERSION='2.19'
3181
3182
3183 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3184
3185
3186 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
28893187
28903188 # Some tools Automake needs.
28913189
29053203
29063204 # For better backward compatibility. To be removed once Automake 1.9.x
29073205 # dies out for good. For more background, see:
2908 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2909 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3206 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3207 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
29103208 mkdir_p='$(MKDIR_P)'
29113209
29123210 # We need awk for the "check" target (and possibly the TAP driver). The
29213219
29223220
29233221
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2925 $as_echo_n "checking how to create a pax tar archive... " >&6; }
3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3223 printf %s "checking how to create a pax tar archive... " >&6; }
29263224
29273225 # Go ahead even if we have the value already cached. We do so because we
29283226 # need to set the values for the 'am__tar' and 'am__untar' variables.
29973295 done
29983296 rm -rf conftest.dir
29993297
3000 if ${am_cv_prog_tar_pax+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3298 if test ${am_cv_prog_tar_pax+y}
3299 then :
3300 printf %s "(cached) " >&6
3301 else $as_nop
30033302 am_cv_prog_tar_pax=$_am_tool
30043303 fi
30053304
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3007 $as_echo "$am_cv_prog_tar_pax" >&6; }
3008
3009
3010
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3306 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
3307
3308
3309
3310
3311
3312 # Variables for tags utilities; see am/tags.am
3313 if test -z "$CTAGS"; then
3314 CTAGS=ctags
3315 fi
3316
3317 if test -z "$ETAGS"; then
3318 ETAGS=etags
3319 fi
3320
3321 if test -z "$CSCOPE"; then
3322 CSCOPE=cscope
3323 fi
30113324
30123325
30133326
30423355 Aborting the configuration process, to ensure you take notice of the issue.
30433356
30443357 You can download and install GNU coreutils to get an 'rm' implementation
3045 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3358 that behaves properly: <https://www.gnu.org/software/coreutils/>.
30463359
30473360 If you want to complete the configuration process using your problematic
30483361 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
30533366 fi
30543367 fi
30553368 # Check whether --enable-silent-rules was given.
3056 if test "${enable_silent_rules+set}" = set; then :
3369 if test ${enable_silent_rules+y}
3370 then :
30573371 enableval=$enable_silent_rules;
30583372 fi
30593373
30633377 *) AM_DEFAULT_VERBOSITY=0;;
30643378 esac
30653379 am_make=${MAKE-make}
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3067 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3068 if ${am_cv_make_support_nested_variables+:} false; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if $as_echo 'TRUE=$(BAR$(V))
3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3381 printf %s "checking whether $am_make supports nested variables... " >&6; }
3382 if test ${am_cv_make_support_nested_variables+y}
3383 then :
3384 printf %s "(cached) " >&6
3385 else $as_nop
3386 if printf "%s\n" 'TRUE=$(BAR$(V))
30723387 BAR0=false
30733388 BAR1=true
30743389 V=1
30803395 am_cv_make_support_nested_variables=no
30813396 fi
30823397 fi
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3084 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3399 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
30853400 if test $am_cv_make_support_nested_variables = yes; then
30863401 AM_V='$(V)'
30873402 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
30903405 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
30913406 fi
30923407 AM_BACKSLASH='\'
3408
3409
3410
3411
3412
3413
3414
3415
3416
30933417
30943418
30953419 ac_ext=c
31003424 if test -n "$ac_tool_prefix"; then
31013425 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
31023426 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CC+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 printf %s "checking for $ac_word... " >&6; }
3429 if test ${ac_cv_prog_CC+y}
3430 then :
3431 printf %s "(cached) " >&6
3432 else $as_nop
31083433 if test -n "$CC"; then
31093434 ac_cv_prog_CC="$CC" # Let the user override the test.
31103435 else
31123437 for as_dir in $PATH
31133438 do
31143439 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3440 case $as_dir in #(((
3441 '') as_dir=./ ;;
3442 */) ;;
3443 *) as_dir=$as_dir/ ;;
3444 esac
31163445 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31183447 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31203449 break 2
31213450 fi
31223451 done
31273456 fi
31283457 CC=$ac_cv_prog_CC
31293458 if test -n "$CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131 $as_echo "$CC" >&6; }
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460 printf "%s\n" "$CC" >&6; }
3461 else
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 printf "%s\n" "no" >&6; }
31353464 fi
31363465
31373466
31403469 ac_ct_CC=$CC
31413470 # Extract the first word of "gcc", so it can be a program name with args.
31423471 set dummy gcc; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 printf %s "checking for $ac_word... " >&6; }
3474 if test ${ac_cv_prog_ac_ct_CC+y}
3475 then :
3476 printf %s "(cached) " >&6
3477 else $as_nop
31483478 if test -n "$ac_ct_CC"; then
31493479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31503480 else
31523482 for as_dir in $PATH
31533483 do
31543484 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3485 case $as_dir in #(((
3486 '') as_dir=./ ;;
3487 */) ;;
3488 *) as_dir=$as_dir/ ;;
3489 esac
31563490 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31583492 ac_cv_prog_ac_ct_CC="gcc"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31603494 break 2
31613495 fi
31623496 done
31673501 fi
31683502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
31693503 if test -n "$ac_ct_CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3171 $as_echo "$ac_ct_CC" >&6; }
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3505 printf "%s\n" "$ac_ct_CC" >&6; }
3506 else
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 printf "%s\n" "no" >&6; }
31753509 fi
31763510
31773511 if test "x$ac_ct_CC" = x; then
31793513 else
31803514 case $cross_compiling:$ac_tool_warned in
31813515 yes:)
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31843518 ac_tool_warned=yes ;;
31853519 esac
31863520 CC=$ac_ct_CC
31933527 if test -n "$ac_tool_prefix"; then
31943528 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
31953529 set dummy ${ac_tool_prefix}cc; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_CC+:} false; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 printf %s "checking for $ac_word... " >&6; }
3532 if test ${ac_cv_prog_CC+y}
3533 then :
3534 printf %s "(cached) " >&6
3535 else $as_nop
32013536 if test -n "$CC"; then
32023537 ac_cv_prog_CC="$CC" # Let the user override the test.
32033538 else
32053540 for as_dir in $PATH
32063541 do
32073542 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3543 case $as_dir in #(((
3544 '') as_dir=./ ;;
3545 */) ;;
3546 *) as_dir=$as_dir/ ;;
3547 esac
32093548 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32113550 ac_cv_prog_CC="${ac_tool_prefix}cc"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32133552 break 2
32143553 fi
32153554 done
32203559 fi
32213560 CC=$ac_cv_prog_CC
32223561 if test -n "$CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 printf "%s\n" "$CC" >&6; }
3564 else
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 printf "%s\n" "no" >&6; }
32283567 fi
32293568
32303569
32333572 if test -z "$CC"; then
32343573 # Extract the first word of "cc", so it can be a program name with args.
32353574 set dummy cc; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_CC+:} false; then :
3239 $as_echo_n "(cached) " >&6
3240 else
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 printf %s "checking for $ac_word... " >&6; }
3577 if test ${ac_cv_prog_CC+y}
3578 then :
3579 printf %s "(cached) " >&6
3580 else $as_nop
32413581 if test -n "$CC"; then
32423582 ac_cv_prog_CC="$CC" # Let the user override the test.
32433583 else
32463586 for as_dir in $PATH
32473587 do
32483588 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3589 case $as_dir in #(((
3590 '') as_dir=./ ;;
3591 */) ;;
3592 *) as_dir=$as_dir/ ;;
3593 esac
32503594 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3596 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
32533597 ac_prog_rejected=yes
32543598 continue
32553599 fi
32563600 ac_cv_prog_CC="cc"
3257 $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
32583602 break 2
32593603 fi
32603604 done
32703614 # However, it has the same basename, so the bogon will be chosen
32713615 # first if we set CC to just the basename; use the full file name.
32723616 shift
3273 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3617 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
32743618 fi
32753619 fi
32763620 fi
32773621 fi
32783622 CC=$ac_cv_prog_CC
32793623 if test -n "$CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625 printf "%s\n" "$CC" >&6; }
3626 else
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 printf "%s\n" "no" >&6; }
32853629 fi
32863630
32873631
32923636 do
32933637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32943638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_CC+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 printf %s "checking for $ac_word... " >&6; }
3641 if test ${ac_cv_prog_CC+y}
3642 then :
3643 printf %s "(cached) " >&6
3644 else $as_nop
33003645 if test -n "$CC"; then
33013646 ac_cv_prog_CC="$CC" # Let the user override the test.
33023647 else
33043649 for as_dir in $PATH
33053650 do
33063651 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3652 case $as_dir in #(((
3653 '') as_dir=./ ;;
3654 */) ;;
3655 *) as_dir=$as_dir/ ;;
3656 esac
33083657 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33103659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33123661 break 2
33133662 fi
33143663 done
33193668 fi
33203669 CC=$ac_cv_prog_CC
33213670 if test -n "$CC"; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323 $as_echo "$CC" >&6; }
3324 else
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 printf "%s\n" "$CC" >&6; }
3673 else
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 printf "%s\n" "no" >&6; }
33273676 fi
33283677
33293678
33363685 do
33373686 # Extract the first word of "$ac_prog", so it can be a program name with args.
33383687 set dummy $ac_prog; ac_word=$2
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 $as_echo_n "checking for $ac_word... " >&6; }
3341 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3342 $as_echo_n "(cached) " >&6
3343 else
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 printf %s "checking for $ac_word... " >&6; }
3690 if test ${ac_cv_prog_ac_ct_CC+y}
3691 then :
3692 printf %s "(cached) " >&6
3693 else $as_nop
33443694 if test -n "$ac_ct_CC"; then
33453695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
33463696 else
33483698 for as_dir in $PATH
33493699 do
33503700 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3701 case $as_dir in #(((
3702 '') as_dir=./ ;;
3703 */) ;;
3704 *) as_dir=$as_dir/ ;;
3705 esac
33523706 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33543708 ac_cv_prog_ac_ct_CC="$ac_prog"
3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33563710 break 2
33573711 fi
33583712 done
33633717 fi
33643718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
33653719 if test -n "$ac_ct_CC"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3367 $as_echo "$ac_ct_CC" >&6; }
3368 else
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3721 printf "%s\n" "$ac_ct_CC" >&6; }
3722 else
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 printf "%s\n" "no" >&6; }
33713725 fi
33723726
33733727
33793733 else
33803734 case $cross_compiling:$ac_tool_warned in
33813735 yes:)
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33843738 ac_tool_warned=yes ;;
33853739 esac
33863740 CC=$ac_ct_CC
33883742 fi
33893743
33903744 fi
3391
3392
3393 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 if test -z "$CC"; then
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}clang; ac_word=$2
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 printf %s "checking for $ac_word... " >&6; }
3751 if test ${ac_cv_prog_CC+y}
3752 then :
3753 printf %s "(cached) " >&6
3754 else $as_nop
3755 if test -n "$CC"; then
3756 ac_cv_prog_CC="$CC" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761 IFS=$as_save_IFS
3762 case $as_dir in #(((
3763 '') as_dir=./ ;;
3764 */) ;;
3765 *) as_dir=$as_dir/ ;;
3766 esac
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_CC="${ac_tool_prefix}clang"
3770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773 done
3774 done
3775 IFS=$as_save_IFS
3776
3777 fi
3778 fi
3779 CC=$ac_cv_prog_CC
3780 if test -n "$CC"; then
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3782 printf "%s\n" "$CC" >&6; }
3783 else
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 printf "%s\n" "no" >&6; }
3786 fi
3787
3788
3789 fi
3790 if test -z "$ac_cv_prog_CC"; then
3791 ac_ct_CC=$CC
3792 # Extract the first word of "clang", so it can be a program name with args.
3793 set dummy clang; ac_word=$2
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 printf %s "checking for $ac_word... " >&6; }
3796 if test ${ac_cv_prog_ac_ct_CC+y}
3797 then :
3798 printf %s "(cached) " >&6
3799 else $as_nop
3800 if test -n "$ac_ct_CC"; then
3801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806 IFS=$as_save_IFS
3807 case $as_dir in #(((
3808 '') as_dir=./ ;;
3809 */) ;;
3810 *) as_dir=$as_dir/ ;;
3811 esac
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_ac_ct_CC="clang"
3815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818 done
3819 done
3820 IFS=$as_save_IFS
3821
3822 fi
3823 fi
3824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825 if test -n "$ac_ct_CC"; then
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3827 printf "%s\n" "$ac_ct_CC" >&6; }
3828 else
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 printf "%s\n" "no" >&6; }
3831 fi
3832
3833 if test "x$ac_ct_CC" = x; then
3834 CC=""
3835 else
3836 case $cross_compiling:$ac_tool_warned in
3837 yes:)
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840 ac_tool_warned=yes ;;
3841 esac
3842 CC=$ac_ct_CC
3843 fi
3844 else
3845 CC="$ac_cv_prog_CC"
3846 fi
3847
3848 fi
3849
3850
3851 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
33953853 as_fn_error $? "no acceptable C compiler found in \$PATH
33963854 See \`config.log' for more details" "$LINENO" 5; }
33973855
33983856 # Provide some information about the compiler.
3399 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
34003858 set X $ac_compile
34013859 ac_compiler=$2
3402 for ac_option in --version -v -V -qversion; do
3860 for ac_option in --version -v -V -qversion -version; do
34033861 { { ac_try="$ac_compiler $ac_option >&5"
34043862 case "(($ac_try" in
34053863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34063864 *) ac_try_echo=$ac_try;;
34073865 esac
34083866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3867 printf "%s\n" "$ac_try_echo"; } >&5
34103868 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
34113869 ac_status=$?
34123870 if test -s conftest.err; then
34163874 cat conftest.er1 >&5
34173875 fi
34183876 rm -f conftest.er1 conftest.err
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34203878 test $ac_status = 0; }
34213879 done
34223880
34243882 /* end confdefs.h. */
34253883
34263884 int
3427 main ()
3885 main (void)
34283886 {
34293887
34303888 ;
34363894 # Try to create an executable without -o first, disregard a.out.
34373895 # It will help us diagnose broken compilers, and finding out an intuition
34383896 # of exeext.
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3440 $as_echo_n "checking whether the C compiler works... " >&6; }
3441 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3898 printf %s "checking whether the C compiler works... " >&6; }
3899 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
34423900
34433901 # The possible output files:
34443902 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
34593917 *) ac_try_echo=$ac_try;;
34603918 esac
34613919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3920 printf "%s\n" "$ac_try_echo"; } >&5
34633921 (eval "$ac_link_default") 2>&5
34643922 ac_status=$?
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }; then :
3923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }
3925 then :
34673926 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
34683927 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
34693928 # in a Makefile. We should not override ac_cv_exeext if it was cached,
34803939 # certainly right.
34813940 break;;
34823941 *.* )
3483 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3942 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
34843943 then :; else
34853944 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
34863945 fi
34963955 done
34973956 test "$ac_cv_exeext" = no && ac_cv_exeext=
34983957
3499 else
3958 else $as_nop
35003959 ac_file=''
35013960 fi
3502 if test -z "$ac_file"; then :
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 $as_echo "$as_me: failed program was:" >&5
3961 if test -z "$ac_file"
3962 then :
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 printf "%s\n" "no" >&6; }
3965 printf "%s\n" "$as_me: failed program was:" >&5
35063966 sed 's/^/| /' conftest.$ac_ext >&5
35073967
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
35103970 as_fn_error 77 "C compiler cannot create executables
35113971 See \`config.log' for more details" "$LINENO" 5; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3514 $as_echo "yes" >&6; }
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3517 $as_echo_n "checking for C compiler default output file name... " >&6; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3519 $as_echo "$ac_file" >&6; }
3972 else $as_nop
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3974 printf "%s\n" "yes" >&6; }
3975 fi
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3977 printf %s "checking for C compiler default output file name... " >&6; }
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3979 printf "%s\n" "$ac_file" >&6; }
35203980 ac_exeext=$ac_cv_exeext
35213981
35223982 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35233983 ac_clean_files=$ac_clean_files_save
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3525 $as_echo_n "checking for suffix of executables... " >&6; }
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3985 printf %s "checking for suffix of executables... " >&6; }
35263986 if { { ac_try="$ac_link"
35273987 case "(($ac_try" in
35283988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35293989 *) ac_try_echo=$ac_try;;
35303990 esac
35313991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3992 printf "%s\n" "$ac_try_echo"; } >&5
35333993 (eval "$ac_link") 2>&5
35343994 ac_status=$?
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }
3997 then :
35373998 # If both `conftest.exe' and `conftest' are `present' (well, observable)
35383999 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
35394000 # work properly (i.e., refer to `conftest.exe'), while it won't with
35474008 * ) break;;
35484009 esac
35494010 done
3550 else
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 else $as_nop
4012 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
35534014 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
35544015 See \`config.log' for more details" "$LINENO" 5; }
35554016 fi
35564017 rm -f conftest conftest$ac_cv_exeext
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3558 $as_echo "$ac_cv_exeext" >&6; }
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4019 printf "%s\n" "$ac_cv_exeext" >&6; }
35594020
35604021 rm -f conftest.$ac_ext
35614022 EXEEXT=$ac_cv_exeext
35644025 /* end confdefs.h. */
35654026 #include <stdio.h>
35664027 int
3567 main ()
4028 main (void)
35684029 {
35694030 FILE *f = fopen ("conftest.out", "w");
35704031 return ferror (f) || fclose (f) != 0;
35764037 ac_clean_files="$ac_clean_files conftest.out"
35774038 # Check that the compiler produces executables we can run. If not, either
35784039 # the compiler is broken, or we cross compile.
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3580 $as_echo_n "checking whether we are cross compiling... " >&6; }
4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4041 printf %s "checking whether we are cross compiling... " >&6; }
35814042 if test "$cross_compiling" != yes; then
35824043 { { ac_try="$ac_link"
35834044 case "(($ac_try" in
35854046 *) ac_try_echo=$ac_try;;
35864047 esac
35874048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
4049 printf "%s\n" "$ac_try_echo"; } >&5
35894050 (eval "$ac_link") 2>&5
35904051 ac_status=$?
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35924053 test $ac_status = 0; }
35934054 if { ac_try='./conftest$ac_cv_exeext'
35944055 { { case "(($ac_try" in
35964057 *) ac_try_echo=$ac_try;;
35974058 esac
35984059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
4060 printf "%s\n" "$ac_try_echo"; } >&5
36004061 (eval "$ac_try") 2>&5
36014062 ac_status=$?
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36034064 test $ac_status = 0; }; }; then
36044065 cross_compiling=no
36054066 else
36064067 if test "$cross_compiling" = maybe; then
36074068 cross_compiling=yes
36084069 else
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $? "cannot run C compiled programs.
4070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error 77 "cannot run C compiled programs.
36124073 If you meant to cross compile, use \`--host'.
36134074 See \`config.log' for more details" "$LINENO" 5; }
36144075 fi
36154076 fi
36164077 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3618 $as_echo "$cross_compiling" >&6; }
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4079 printf "%s\n" "$cross_compiling" >&6; }
36194080
36204081 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
36214082 ac_clean_files=$ac_clean_files_save
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3623 $as_echo_n "checking for suffix of object files... " >&6; }
3624 if ${ac_cv_objext+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626 else
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4084 printf %s "checking for suffix of object files... " >&6; }
4085 if test ${ac_cv_objext+y}
4086 then :
4087 printf %s "(cached) " >&6
4088 else $as_nop
36274089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36284090 /* end confdefs.h. */
36294091
36304092 int
3631 main ()
4093 main (void)
36324094 {
36334095
36344096 ;
36424104 *) ac_try_echo=$ac_try;;
36434105 esac
36444106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
4107 printf "%s\n" "$ac_try_echo"; } >&5
36464108 (eval "$ac_compile") 2>&5
36474109 ac_status=$?
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; then :
4110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }
4112 then :
36504113 for ac_file in conftest.o conftest.obj conftest.*; do
36514114 test -f "$ac_file" || continue;
36524115 case $ac_file in
36554118 break;;
36564119 esac
36574120 done
3658 else
3659 $as_echo "$as_me: failed program was:" >&5
4121 else $as_nop
4122 printf "%s\n" "$as_me: failed program was:" >&5
36604123 sed 's/^/| /' conftest.$ac_ext >&5
36614124
3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36644127 as_fn_error $? "cannot compute suffix of object files: cannot compile
36654128 See \`config.log' for more details" "$LINENO" 5; }
36664129 fi
36674130 rm -f conftest.$ac_cv_objext conftest.$ac_ext
36684131 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3670 $as_echo "$ac_cv_objext" >&6; }
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4133 printf "%s\n" "$ac_cv_objext" >&6; }
36714134 OBJEXT=$ac_cv_objext
36724135 ac_objext=$OBJEXT
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3674 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3675 if ${ac_cv_c_compiler_gnu+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4137 printf %s "checking whether the compiler supports GNU C... " >&6; }
4138 if test ${ac_cv_c_compiler_gnu+y}
4139 then :
4140 printf %s "(cached) " >&6
4141 else $as_nop
36784142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36794143 /* end confdefs.h. */
36804144
36814145 int
3682 main ()
4146 main (void)
36834147 {
36844148 #ifndef __GNUC__
36854149 choke me
36894153 return 0;
36904154 }
36914155 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
4156 if ac_fn_c_try_compile "$LINENO"
4157 then :
36934158 ac_compiler_gnu=yes
3694 else
4159 else $as_nop
36954160 ac_compiler_gnu=no
36964161 fi
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36984163 ac_cv_c_compiler_gnu=$ac_compiler_gnu
36994164
37004165 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3702 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4167 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169
37034170 if test $ac_compiler_gnu = yes; then
37044171 GCC=yes
37054172 else
37064173 GCC=
37074174 fi
3708 ac_test_CFLAGS=${CFLAGS+set}
4175 ac_test_CFLAGS=${CFLAGS+y}
37094176 ac_save_CFLAGS=$CFLAGS
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3711 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3712 if ${ac_cv_prog_cc_g+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4178 printf %s "checking whether $CC accepts -g... " >&6; }
4179 if test ${ac_cv_prog_cc_g+y}
4180 then :
4181 printf %s "(cached) " >&6
4182 else $as_nop
37154183 ac_save_c_werror_flag=$ac_c_werror_flag
37164184 ac_c_werror_flag=yes
37174185 ac_cv_prog_cc_g=no
37204188 /* end confdefs.h. */
37214189
37224190 int
3723 main ()
4191 main (void)
37244192 {
37254193
37264194 ;
37274195 return 0;
37284196 }
37294197 _ACEOF
3730 if ac_fn_c_try_compile "$LINENO"; then :
4198 if ac_fn_c_try_compile "$LINENO"
4199 then :
37314200 ac_cv_prog_cc_g=yes
3732 else
4201 else $as_nop
37334202 CFLAGS=""
37344203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37354204 /* end confdefs.h. */
37364205
37374206 int
3738 main ()
4207 main (void)
37394208 {
37404209
37414210 ;
37424211 return 0;
37434212 }
37444213 _ACEOF
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746
3747 else
4214 if ac_fn_c_try_compile "$LINENO"
4215 then :
4216
4217 else $as_nop
37484218 ac_c_werror_flag=$ac_save_c_werror_flag
37494219 CFLAGS="-g"
37504220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37514221 /* end confdefs.h. */
37524222
37534223 int
3754 main ()
4224 main (void)
37554225 {
37564226
37574227 ;
37584228 return 0;
37594229 }
37604230 _ACEOF
3761 if ac_fn_c_try_compile "$LINENO"; then :
4231 if ac_fn_c_try_compile "$LINENO"
4232 then :
37624233 ac_cv_prog_cc_g=yes
37634234 fi
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 fi
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4236 fi
4237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4238 fi
4239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37694240 ac_c_werror_flag=$ac_save_c_werror_flag
37704241 fi
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3772 $as_echo "$ac_cv_prog_cc_g" >&6; }
3773 if test "$ac_test_CFLAGS" = set; then
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4243 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4244 if test $ac_test_CFLAGS; then
37744245 CFLAGS=$ac_save_CFLAGS
37754246 elif test $ac_cv_prog_cc_g = yes; then
37764247 if test "$GCC" = yes; then
37854256 CFLAGS=
37864257 fi
37874258 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3789 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3790 if ${ac_cv_prog_cc_c89+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792 else
4259 ac_prog_cc_stdc=no
4260 if test x$ac_prog_cc_stdc = xno
4261 then :
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4263 printf %s "checking for $CC option to enable C11 features... " >&6; }
4264 if test ${ac_cv_prog_cc_c11+y}
4265 then :
4266 printf %s "(cached) " >&6
4267 else $as_nop
4268 ac_cv_prog_cc_c11=no
4269 ac_save_CC=$CC
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272 $ac_c_conftest_c11_program
4273 _ACEOF
4274 for ac_arg in '' -std=gnu11
4275 do
4276 CC="$ac_save_CC $ac_arg"
4277 if ac_fn_c_try_compile "$LINENO"
4278 then :
4279 ac_cv_prog_cc_c11=$ac_arg
4280 fi
4281 rm -f core conftest.err conftest.$ac_objext conftest.beam
4282 test "x$ac_cv_prog_cc_c11" != "xno" && break
4283 done
4284 rm -f conftest.$ac_ext
4285 CC=$ac_save_CC
4286 fi
4287
4288 if test "x$ac_cv_prog_cc_c11" = xno
4289 then :
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4291 printf "%s\n" "unsupported" >&6; }
4292 else $as_nop
4293 if test "x$ac_cv_prog_cc_c11" = x
4294 then :
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4296 printf "%s\n" "none needed" >&6; }
4297 else $as_nop
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4299 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4300 CC="$CC $ac_cv_prog_cc_c11"
4301 fi
4302 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4303 ac_prog_cc_stdc=c11
4304 fi
4305 fi
4306 if test x$ac_prog_cc_stdc = xno
4307 then :
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4309 printf %s "checking for $CC option to enable C99 features... " >&6; }
4310 if test ${ac_cv_prog_cc_c99+y}
4311 then :
4312 printf %s "(cached) " >&6
4313 else $as_nop
4314 ac_cv_prog_cc_c99=no
4315 ac_save_CC=$CC
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4318 $ac_c_conftest_c99_program
4319 _ACEOF
4320 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4321 do
4322 CC="$ac_save_CC $ac_arg"
4323 if ac_fn_c_try_compile "$LINENO"
4324 then :
4325 ac_cv_prog_cc_c99=$ac_arg
4326 fi
4327 rm -f core conftest.err conftest.$ac_objext conftest.beam
4328 test "x$ac_cv_prog_cc_c99" != "xno" && break
4329 done
4330 rm -f conftest.$ac_ext
4331 CC=$ac_save_CC
4332 fi
4333
4334 if test "x$ac_cv_prog_cc_c99" = xno
4335 then :
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4337 printf "%s\n" "unsupported" >&6; }
4338 else $as_nop
4339 if test "x$ac_cv_prog_cc_c99" = x
4340 then :
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4342 printf "%s\n" "none needed" >&6; }
4343 else $as_nop
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4345 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4346 CC="$CC $ac_cv_prog_cc_c99"
4347 fi
4348 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4349 ac_prog_cc_stdc=c99
4350 fi
4351 fi
4352 if test x$ac_prog_cc_stdc = xno
4353 then :
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4355 printf %s "checking for $CC option to enable C89 features... " >&6; }
4356 if test ${ac_cv_prog_cc_c89+y}
4357 then :
4358 printf %s "(cached) " >&6
4359 else $as_nop
37934360 ac_cv_prog_cc_c89=no
37944361 ac_save_CC=$CC
37954362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37964363 /* end confdefs.h. */
3797 #include <stdarg.h>
3798 #include <stdio.h>
3799 struct stat;
3800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3801 struct buf { int x; };
3802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3803 static char *e (p, i)
3804 char **p;
3805 int i;
3806 {
3807 return p[i];
3808 }
3809 static char *f (char * (*g) (char **, int), char **p, ...)
3810 {
3811 char *s;
3812 va_list v;
3813 va_start (v,p);
3814 s = g (p, va_arg (v,int));
3815 va_end (v);
3816 return s;
3817 }
3818
3819 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3820 function prototypes and stuff, but not '\xHH' hex character constants.
3821 These don't provoke an error unfortunately, instead are silently treated
3822 as 'x'. The following induces an error, until -std is added to get
3823 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3824 array size at least. It's necessary to write '\x00'==0 to get something
3825 that's true only with -std. */
3826 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3827
3828 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3829 inside strings and character constants. */
3830 #define FOO(x) 'x'
3831 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3832
3833 int test (int i, double x);
3834 struct s1 {int (*f) (int a);};
3835 struct s2 {int (*f) (double a);};
3836 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3837 int argc;
3838 char **argv;
3839 int
3840 main ()
3841 {
3842 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3843 ;
3844 return 0;
3845 }
4364 $ac_c_conftest_c89_program
38464365 _ACEOF
3847 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3848 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38494367 do
38504368 CC="$ac_save_CC $ac_arg"
3851 if ac_fn_c_try_compile "$LINENO"; then :
4369 if ac_fn_c_try_compile "$LINENO"
4370 then :
38524371 ac_cv_prog_cc_c89=$ac_arg
38534372 fi
3854 rm -f core conftest.err conftest.$ac_objext
4373 rm -f core conftest.err conftest.$ac_objext conftest.beam
38554374 test "x$ac_cv_prog_cc_c89" != "xno" && break
38564375 done
38574376 rm -f conftest.$ac_ext
38584377 CC=$ac_save_CC
3859
3860 fi
3861 # AC_CACHE_VAL
3862 case "x$ac_cv_prog_cc_c89" in
3863 x)
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3865 $as_echo "none needed" >&6; } ;;
3866 xno)
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3868 $as_echo "unsupported" >&6; } ;;
3869 *)
3870 CC="$CC $ac_cv_prog_cc_c89"
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3872 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3873 esac
3874 if test "x$ac_cv_prog_cc_c89" != xno; then :
3875
4378 fi
4379
4380 if test "x$ac_cv_prog_cc_c89" = xno
4381 then :
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4383 printf "%s\n" "unsupported" >&6; }
4384 else $as_nop
4385 if test "x$ac_cv_prog_cc_c89" = x
4386 then :
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4388 printf "%s\n" "none needed" >&6; }
4389 else $as_nop
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4391 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4392 CC="$CC $ac_cv_prog_cc_c89"
4393 fi
4394 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4395 ac_prog_cc_stdc=c89
4396 fi
38764397 fi
38774398
38784399 ac_ext=c
38814402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38824403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38834404
3884 ac_ext=c
4405
4406 ac_ext=c
38854407 ac_cpp='$CPP $CPPFLAGS'
38864408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38874409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38884410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3890 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3891 if ${am_cv_prog_cc_c_o+:} false; then :
3892 $as_echo_n "(cached) " >&6
3893 else
4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4412 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4413 if test ${am_cv_prog_cc_c_o+y}
4414 then :
4415 printf %s "(cached) " >&6
4416 else $as_nop
38944417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38954418 /* end confdefs.h. */
38964419
38974420 int
3898 main ()
4421 main (void)
38994422 {
39004423
39014424 ;
39234446 rm -f core conftest*
39244447 unset am_i
39254448 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3927 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4450 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
39284451 if test "$am_cv_prog_cc_c_o" != yes; then
39294452 # Losing compiler, so override with the script.
39304453 # FIXME: It is wrong to rewrite CC.
39434466
39444467 ac_config_commands="$ac_config_commands depfiles"
39454468
3946
3947 am_make=${MAKE-make}
3948 cat > confinc << 'END'
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4470 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4471 cat > confinc.mk << 'END'
39494472 am__doit:
3950 @echo this is the am__doit target
4473 @echo this is the am__doit target >confinc.out
39514474 .PHONY: am__doit
39524475 END
3953 # If we don't find an include directive, just comment out the code.
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3955 $as_echo_n "checking for style of include used by $am_make... " >&6; }
39564476 am__include="#"
39574477 am__quote=
3958 _am_result=none
3959 # First try GNU make style include.
3960 echo "include confinc" > confmf
3961 # Ignore all kinds of additional output from 'make'.
3962 case `$am_make -s -f confmf 2> /dev/null` in #(
3963 *the\ am__doit\ target*)
3964 am__include=include
3965 am__quote=
3966 _am_result=GNU
3967 ;;
4478 # BSD make does it like this.
4479 echo '.include "confinc.mk" # ignored' > confmf.BSD
4480 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4481 echo 'include confinc.mk # ignored' > confmf.GNU
4482 _am_result=no
4483 for s in GNU BSD; do
4484 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4485 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }
4489 case $?:`cat confinc.out 2>/dev/null` in #(
4490 '0:this is the am__doit target') :
4491 case $s in #(
4492 BSD) :
4493 am__include='.include' am__quote='"' ;; #(
4494 *) :
4495 am__include='include' am__quote='' ;;
4496 esac ;; #(
4497 *) :
4498 ;;
39684499 esac
3969 # Now try BSD make style include.
3970 if test "$am__include" = "#"; then
3971 echo '.include "confinc"' > confmf
3972 case `$am_make -s -f confmf 2> /dev/null` in #(
3973 *the\ am__doit\ target*)
3974 am__include=.include
3975 am__quote="\""
3976 _am_result=BSD
3977 ;;
3978 esac
3979 fi
3980
3981
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3983 $as_echo "$_am_result" >&6; }
3984 rm -f confinc confmf
4500 if test "$am__include" != "#"; then
4501 _am_result="yes ($s style)"
4502 break
4503 fi
4504 done
4505 rm -f confinc.* confmf.*
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4507 printf "%s\n" "${_am_result}" >&6; }
39854508
39864509 # Check whether --enable-dependency-tracking was given.
3987 if test "${enable_dependency_tracking+set}" = set; then :
4510 if test ${enable_dependency_tracking+y}
4511 then :
39884512 enableval=$enable_dependency_tracking;
39894513 fi
39904514
40054529
40064530 depcc="$CC" am_compiler_list=
40074531
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4009 $as_echo_n "checking dependency style of $depcc... " >&6; }
4010 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4533 printf %s "checking dependency style of $depcc... " >&6; }
4534 if test ${am_cv_CC_dependencies_compiler_type+y}
4535 then :
4536 printf %s "(cached) " >&6
4537 else $as_nop
40134538 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
40144539 # We make a subdir and do the tests there. Otherwise we can end up
40154540 # making bogus files that we don't know about and never remove. For
41164641 fi
41174642
41184643 fi
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4120 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4645 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
41214646 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
41224647
41234648 if
41334658
41344659
41354660
4136 if test -n "$ac_tool_prefix"; then
4661
4662 if test -n "$ac_tool_prefix"; then
41374663 for ac_prog in ar lib "link -lib"
41384664 do
41394665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
41404666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_AR+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 printf %s "checking for $ac_word... " >&6; }
4669 if test ${ac_cv_prog_AR+y}
4670 then :
4671 printf %s "(cached) " >&6
4672 else $as_nop
41464673 if test -n "$AR"; then
41474674 ac_cv_prog_AR="$AR" # Let the user override the test.
41484675 else
41504677 for as_dir in $PATH
41514678 do
41524679 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4680 case $as_dir in #(((
4681 '') as_dir=./ ;;
4682 */) ;;
4683 *) as_dir=$as_dir/ ;;
4684 esac
41544685 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
41564687 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
41584689 break 2
41594690 fi
41604691 done
41654696 fi
41664697 AR=$ac_cv_prog_AR
41674698 if test -n "$AR"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4169 $as_echo "$AR" >&6; }
4170 else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4700 printf "%s\n" "$AR" >&6; }
4701 else
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 printf "%s\n" "no" >&6; }
41734704 fi
41744705
41754706
41824713 do
41834714 # Extract the first word of "$ac_prog", so it can be a program name with args.
41844715 set dummy $ac_prog; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 printf %s "checking for $ac_word... " >&6; }
4718 if test ${ac_cv_prog_ac_ct_AR+y}
4719 then :
4720 printf %s "(cached) " >&6
4721 else $as_nop
41904722 if test -n "$ac_ct_AR"; then
41914723 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41924724 else
41944726 for as_dir in $PATH
41954727 do
41964728 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4729 case $as_dir in #(((
4730 '') as_dir=./ ;;
4731 */) ;;
4732 *) as_dir=$as_dir/ ;;
4733 esac
41984734 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
42004736 ac_cv_prog_ac_ct_AR="$ac_prog"
4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
42024738 break 2
42034739 fi
42044740 done
42094745 fi
42104746 ac_ct_AR=$ac_cv_prog_ac_ct_AR
42114747 if test -n "$ac_ct_AR"; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4213 $as_echo "$ac_ct_AR" >&6; }
4214 else
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4749 printf "%s\n" "$ac_ct_AR" >&6; }
4750 else
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 printf "%s\n" "no" >&6; }
42174753 fi
42184754
42194755
42254761 else
42264762 case $cross_compiling:$ac_tool_warned in
42274763 yes:)
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4765 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
42304766 ac_tool_warned=yes ;;
42314767 esac
42324768 AR=$ac_ct_AR
42354771
42364772 : ${AR=ar}
42374773
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4239 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4240 if ${am_cv_ar_interface+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4775 printf %s "checking the archiver ($AR) interface... " >&6; }
4776 if test ${am_cv_ar_interface+y}
4777 then :
4778 printf %s "(cached) " >&6
4779 else $as_nop
42434780 ac_ext=c
42444781 ac_cpp='$CPP $CPPFLAGS'
42454782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42514788 /* end confdefs.h. */
42524789 int some_variable = 0;
42534790 _ACEOF
4254 if ac_fn_c_try_compile "$LINENO"; then :
4791 if ac_fn_c_try_compile "$LINENO"
4792 then :
42554793 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
42564794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
42574795 (eval $am_ar_try) 2>&5
42584796 ac_status=$?
4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42604798 test $ac_status = 0; }
42614799 if test "$ac_status" -eq 0; then
42624800 am_cv_ar_interface=ar
42654803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
42664804 (eval $am_ar_try) 2>&5
42674805 ac_status=$?
4268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42694807 test $ac_status = 0; }
42704808 if test "$ac_status" -eq 0; then
42714809 am_cv_ar_interface=lib
42764814 rm -f conftest.lib libconftest.a
42774815
42784816 fi
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42804818 ac_ext=c
42814819 ac_cpp='$CPP $CPPFLAGS'
42824820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42844822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42854823
42864824 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4288 $as_echo "$am_cv_ar_interface" >&6; }
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4826 printf "%s\n" "$am_cv_ar_interface" >&6; }
42894827
42904828 case $am_cv_ar_interface in
42914829 ar)
43054843 esac
43064844
43074845 # Check whether --enable-static was given.
4308 if test "${enable_static+set}" = set; then :
4846 if test ${enable_static+y}
4847 then :
43094848 enableval=$enable_static; p=${PACKAGE-default}
43104849 case $enableval in
43114850 yes) enable_static=yes ;;
43234862 IFS=$lt_save_ifs
43244863 ;;
43254864 esac
4326 else
4865 else $as_nop
43274866 enable_static=no
43284867 fi
43294868
43374876
43384877 case `pwd` in
43394878 *\ * | *\ *)
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4341 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4880 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
43424881 esac
43434882
43444883
43454884
4346 macro_version='2.4.6'
4347 macro_revision='2.4.6'
4885 macro_version='2.4.7'
4886 macro_revision='2.4.7'
4887
43484888
43494889
43504890
43604900
43614901 ltmain=$ac_aux_dir/ltmain.sh
43624902
4363 # Make sure we can run config.sub.
4364 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4365 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4368 $as_echo_n "checking build system type... " >&6; }
4369 if ${ac_cv_build+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4903
4904
4905 # Make sure we can run config.sub.
4906 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4907 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4908
4909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4910 printf %s "checking build system type... " >&6; }
4911 if test ${ac_cv_build+y}
4912 then :
4913 printf %s "(cached) " >&6
4914 else $as_nop
43724915 ac_build_alias=$build_alias
43734916 test "x$ac_build_alias" = x &&
4374 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4917 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
43754918 test "x$ac_build_alias" = x &&
43764919 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4377 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4378 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4379
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4382 $as_echo "$ac_cv_build" >&6; }
4920 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4921 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4922
4923 fi
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4925 printf "%s\n" "$ac_cv_build" >&6; }
43834926 case $ac_cv_build in
43844927 *-*-*) ;;
43854928 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
43984941 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
43994942
44004943
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4402 $as_echo_n "checking host system type... " >&6; }
4403 if ${ac_cv_host+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4945 printf %s "checking host system type... " >&6; }
4946 if test ${ac_cv_host+y}
4947 then :
4948 printf %s "(cached) " >&6
4949 else $as_nop
44064950 if test "x$host_alias" = x; then
44074951 ac_cv_host=$ac_cv_build
44084952 else
4409 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4410 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4411 fi
4412
4413 fi
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4415 $as_echo "$ac_cv_host" >&6; }
4953 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4954 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4955 fi
4956
4957 fi
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4959 printf "%s\n" "$ac_cv_host" >&6; }
44164960 case $ac_cv_host in
44174961 *-*-*) ;;
44184962 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
44524996 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
44534997 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
44544998
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4456 $as_echo_n "checking how to print strings... " >&6; }
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5000 printf %s "checking how to print strings... " >&6; }
44575001 # Test print first, because it will be a builtin if present.
44585002 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
44595003 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
44795023 }
44805024
44815025 case $ECHO in
4482 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4483 $as_echo "printf" >&6; } ;;
4484 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4485 $as_echo "print -r" >&6; } ;;
4486 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4487 $as_echo "cat" >&6; } ;;
5026 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5027 printf "%s\n" "printf" >&6; } ;;
5028 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5029 printf "%s\n" "print -r" >&6; } ;;
5030 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5031 printf "%s\n" "cat" >&6; } ;;
44885032 esac
44895033
44905034
45005044
45015045
45025046
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4504 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4505 if ${ac_cv_path_SED+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5048 printf %s "checking for a sed that does not truncate output... " >&6; }
5049 if test ${ac_cv_path_SED+y}
5050 then :
5051 printf %s "(cached) " >&6
5052 else $as_nop
45085053 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
45095054 for ac_i in 1 2 3 4 5 6 7; do
45105055 ac_script="$ac_script$as_nl$ac_script"
45185063 for as_dir in $PATH
45195064 do
45205065 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_prog in sed gsed; do
5066 case $as_dir in #(((
5067 '') as_dir=./ ;;
5068 */) ;;
5069 *) as_dir=$as_dir/ ;;
5070 esac
5071 for ac_prog in sed gsed
5072 do
45235073 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5074 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
45255075 as_fn_executable_p "$ac_path_SED" || continue
45265076 # Check for GNU ac_path_SED and select it if it is found.
45275077 # Check for GNU $ac_path_SED
45305080 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
45315081 *)
45325082 ac_count=0
4533 $as_echo_n 0123456789 >"conftest.in"
5083 printf %s 0123456789 >"conftest.in"
45345084 while :
45355085 do
45365086 cat "conftest.in" "conftest.in" >"conftest.tmp"
45375087 mv "conftest.tmp" "conftest.in"
45385088 cp "conftest.in" "conftest.nl"
4539 $as_echo '' >> "conftest.nl"
5089 printf "%s\n" '' >> "conftest.nl"
45405090 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
45415091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
45425092 as_fn_arith $ac_count + 1 && ac_count=$as_val
45645114 fi
45655115
45665116 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4568 $as_echo "$ac_cv_path_SED" >&6; }
5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5118 printf "%s\n" "$ac_cv_path_SED" >&6; }
45695119 SED="$ac_cv_path_SED"
45705120 rm -f conftest.sed
45715121
45825132
45835133
45845134
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4586 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4587 if ${ac_cv_path_GREP+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5136 printf %s "checking for grep that handles long lines and -e... " >&6; }
5137 if test ${ac_cv_path_GREP+y}
5138 then :
5139 printf %s "(cached) " >&6
5140 else $as_nop
45905141 if test -z "$GREP"; then
45915142 ac_path_GREP_found=false
45925143 # Loop through the user's path and test for each of PROGNAME-LIST
45945145 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
45955146 do
45965147 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_prog in grep ggrep; do
5148 case $as_dir in #(((
5149 '') as_dir=./ ;;
5150 */) ;;
5151 *) as_dir=$as_dir/ ;;
5152 esac
5153 for ac_prog in grep ggrep
5154 do
45995155 for ac_exec_ext in '' $ac_executable_extensions; do
4600 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5156 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
46015157 as_fn_executable_p "$ac_path_GREP" || continue
46025158 # Check for GNU ac_path_GREP and select it if it is found.
46035159 # Check for GNU $ac_path_GREP
46065162 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
46075163 *)
46085164 ac_count=0
4609 $as_echo_n 0123456789 >"conftest.in"
5165 printf %s 0123456789 >"conftest.in"
46105166 while :
46115167 do
46125168 cat "conftest.in" "conftest.in" >"conftest.tmp"
46135169 mv "conftest.tmp" "conftest.in"
46145170 cp "conftest.in" "conftest.nl"
4615 $as_echo 'GREP' >> "conftest.nl"
5171 printf "%s\n" 'GREP' >> "conftest.nl"
46165172 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
46175173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
46185174 as_fn_arith $ac_count + 1 && ac_count=$as_val
46405196 fi
46415197
46425198 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4644 $as_echo "$ac_cv_path_GREP" >&6; }
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5200 printf "%s\n" "$ac_cv_path_GREP" >&6; }
46455201 GREP="$ac_cv_path_GREP"
46465202
46475203
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4649 $as_echo_n "checking for egrep... " >&6; }
4650 if ${ac_cv_path_EGREP+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5205 printf %s "checking for egrep... " >&6; }
5206 if test ${ac_cv_path_EGREP+y}
5207 then :
5208 printf %s "(cached) " >&6
5209 else $as_nop
46535210 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
46545211 then ac_cv_path_EGREP="$GREP -E"
46555212 else
46605217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
46615218 do
46625219 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_prog in egrep; do
5220 case $as_dir in #(((
5221 '') as_dir=./ ;;
5222 */) ;;
5223 *) as_dir=$as_dir/ ;;
5224 esac
5225 for ac_prog in egrep
5226 do
46655227 for ac_exec_ext in '' $ac_executable_extensions; do
4666 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5228 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
46675229 as_fn_executable_p "$ac_path_EGREP" || continue
46685230 # Check for GNU ac_path_EGREP and select it if it is found.
46695231 # Check for GNU $ac_path_EGREP
46725234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
46735235 *)
46745236 ac_count=0
4675 $as_echo_n 0123456789 >"conftest.in"
5237 printf %s 0123456789 >"conftest.in"
46765238 while :
46775239 do
46785240 cat "conftest.in" "conftest.in" >"conftest.tmp"
46795241 mv "conftest.tmp" "conftest.in"
46805242 cp "conftest.in" "conftest.nl"
4681 $as_echo 'EGREP' >> "conftest.nl"
5243 printf "%s\n" 'EGREP' >> "conftest.nl"
46825244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
46835245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
46845246 as_fn_arith $ac_count + 1 && ac_count=$as_val
47075269
47085270 fi
47095271 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4711 $as_echo "$ac_cv_path_EGREP" >&6; }
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5273 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
47125274 EGREP="$ac_cv_path_EGREP"
47135275
47145276
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4716 $as_echo_n "checking for fgrep... " >&6; }
4717 if ${ac_cv_path_FGREP+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5278 printf %s "checking for fgrep... " >&6; }
5279 if test ${ac_cv_path_FGREP+y}
5280 then :
5281 printf %s "(cached) " >&6
5282 else $as_nop
47205283 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
47215284 then ac_cv_path_FGREP="$GREP -F"
47225285 else
47275290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
47285291 do
47295292 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_prog in fgrep; do
5293 case $as_dir in #(((
5294 '') as_dir=./ ;;
5295 */) ;;
5296 *) as_dir=$as_dir/ ;;
5297 esac
5298 for ac_prog in fgrep
5299 do
47325300 for ac_exec_ext in '' $ac_executable_extensions; do
4733 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5301 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
47345302 as_fn_executable_p "$ac_path_FGREP" || continue
47355303 # Check for GNU ac_path_FGREP and select it if it is found.
47365304 # Check for GNU $ac_path_FGREP
47395307 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
47405308 *)
47415309 ac_count=0
4742 $as_echo_n 0123456789 >"conftest.in"
5310 printf %s 0123456789 >"conftest.in"
47435311 while :
47445312 do
47455313 cat "conftest.in" "conftest.in" >"conftest.tmp"
47465314 mv "conftest.tmp" "conftest.in"
47475315 cp "conftest.in" "conftest.nl"
4748 $as_echo 'FGREP' >> "conftest.nl"
5316 printf "%s\n" 'FGREP' >> "conftest.nl"
47495317 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
47505318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
47515319 as_fn_arith $ac_count + 1 && ac_count=$as_val
47745342
47755343 fi
47765344 fi
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4778 $as_echo "$ac_cv_path_FGREP" >&6; }
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5346 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
47795347 FGREP="$ac_cv_path_FGREP"
47805348
47815349
48005368
48015369
48025370 # Check whether --with-gnu-ld was given.
4803 if test "${with_gnu_ld+set}" = set; then :
5371 if test ${with_gnu_ld+y}
5372 then :
48045373 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4805 else
5374 else $as_nop
48065375 with_gnu_ld=no
48075376 fi
48085377
48095378 ac_prog=ld
48105379 if test yes = "$GCC"; then
48115380 # Check if gcc -print-prog-name=ld gives a path.
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4813 $as_echo_n "checking for ld used by $CC... " >&6; }
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5382 printf %s "checking for ld used by $CC... " >&6; }
48145383 case $host in
48155384 *-*-mingw*)
48165385 # gcc leaves a trailing carriage return, which upsets mingw
48395408 ;;
48405409 esac
48415410 elif test yes = "$with_gnu_ld"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4843 $as_echo_n "checking for GNU ld... " >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4846 $as_echo_n "checking for non-GNU ld... " >&6; }
4847 fi
4848 if ${lt_cv_path_LD+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5412 printf %s "checking for GNU ld... " >&6; }
5413 else
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5415 printf %s "checking for non-GNU ld... " >&6; }
5416 fi
5417 if test ${lt_cv_path_LD+y}
5418 then :
5419 printf %s "(cached) " >&6
5420 else $as_nop
48515421 if test -z "$LD"; then
48525422 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
48535423 for ac_dir in $PATH; do
48765446
48775447 LD=$lt_cv_path_LD
48785448 if test -n "$LD"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4880 $as_echo "$LD" >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5450 printf "%s\n" "$LD" >&6; }
5451 else
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 printf "%s\n" "no" >&6; }
48845454 fi
48855455 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4887 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4888 if ${lt_cv_prog_gnu_ld+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5457 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5458 if test ${lt_cv_prog_gnu_ld+y}
5459 then :
5460 printf %s "(cached) " >&6
5461 else $as_nop
48915462 # I'd rather use --version here, but apparently some GNU lds only accept -v.
48925463 case `$LD -v 2>&1 </dev/null` in
48935464 *GNU* | *'with BFD'*)
48985469 ;;
48995470 esac
49005471 fi
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4902 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5473 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
49035474 with_gnu_ld=$lt_cv_prog_gnu_ld
49045475
49055476
49105481
49115482
49125483
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4914 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4915 if ${lt_cv_path_NM+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5485 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5486 if test ${lt_cv_path_NM+y}
5487 then :
5488 printf %s "(cached) " >&6
5489 else $as_nop
49185490 if test -n "$NM"; then
49195491 # Let the user override the test.
49205492 lt_cv_path_NM=$NM
49395511 mingw*) lt_bad_file=conftest.nm/nofile ;;
49405512 *) lt_bad_file=/dev/null ;;
49415513 esac
4942 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5514 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
49435515 *$lt_bad_file* | *'Invalid file or object type'*)
49445516 lt_cv_path_NM="$tmp_nm -B"
49455517 break 2
49465518 ;;
49475519 *)
4948 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5520 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
49495521 */dev/null*)
49505522 lt_cv_path_NM="$tmp_nm -p"
49515523 break 2
49645536 : ${lt_cv_path_NM=no}
49655537 fi
49665538 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4968 $as_echo "$lt_cv_path_NM" >&6; }
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5540 printf "%s\n" "$lt_cv_path_NM" >&6; }
49695541 if test no != "$lt_cv_path_NM"; then
49705542 NM=$lt_cv_path_NM
49715543 else
49785550 do
49795551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
49805552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_DUMPBIN+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554 printf %s "checking for $ac_word... " >&6; }
5555 if test ${ac_cv_prog_DUMPBIN+y}
5556 then :
5557 printf %s "(cached) " >&6
5558 else $as_nop
49865559 if test -n "$DUMPBIN"; then
49875560 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
49885561 else
49905563 for as_dir in $PATH
49915564 do
49925565 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
5566 case $as_dir in #(((
5567 '') as_dir=./ ;;
5568 */) ;;
5569 *) as_dir=$as_dir/ ;;
5570 esac
49945571 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
49965573 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
49985575 break 2
49995576 fi
50005577 done
50055582 fi
50065583 DUMPBIN=$ac_cv_prog_DUMPBIN
50075584 if test -n "$DUMPBIN"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5009 $as_echo "$DUMPBIN" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5586 printf "%s\n" "$DUMPBIN" >&6; }
5587 else
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 printf "%s\n" "no" >&6; }
50135590 fi
50145591
50155592
50225599 do
50235600 # Extract the first word of "$ac_prog", so it can be a program name with args.
50245601 set dummy $ac_prog; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 printf %s "checking for $ac_word... " >&6; }
5604 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5605 then :
5606 printf %s "(cached) " >&6
5607 else $as_nop
50305608 if test -n "$ac_ct_DUMPBIN"; then
50315609 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
50325610 else
50345612 for as_dir in $PATH
50355613 do
50365614 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5615 case $as_dir in #(((
5616 '') as_dir=./ ;;
5617 */) ;;
5618 *) as_dir=$as_dir/ ;;
5619 esac
50385620 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
50405622 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
50425624 break 2
50435625 fi
50445626 done
50495631 fi
50505632 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
50515633 if test -n "$ac_ct_DUMPBIN"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5053 $as_echo "$ac_ct_DUMPBIN" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5635 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5636 else
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 printf "%s\n" "no" >&6; }
50575639 fi
50585640
50595641
50655647 else
50665648 case $cross_compiling:$ac_tool_warned in
50675649 yes:)
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
50705652 ac_tool_warned=yes ;;
50715653 esac
50725654 DUMPBIN=$ac_ct_DUMPBIN
50735655 fi
50745656 fi
50755657
5076 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5658 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
50775659 *COFF*)
50785660 DUMPBIN="$DUMPBIN -symbols -headers"
50795661 ;;
50945676
50955677
50965678
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5098 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5099 if ${lt_cv_nm_interface+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5680 printf %s "checking the name lister ($NM) interface... " >&6; }
5681 if test ${lt_cv_nm_interface+y}
5682 then :
5683 printf %s "(cached) " >&6
5684 else $as_nop
51025685 lt_cv_nm_interface="BSD nm"
51035686 echo "int some_variable = 0;" > conftest.$ac_ext
51045687 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
51145697 fi
51155698 rm -f conftest*
51165699 fi
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5118 $as_echo "$lt_cv_nm_interface" >&6; }
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5121 $as_echo_n "checking whether ln -s works... " >&6; }
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5701 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5702
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5704 printf %s "checking whether ln -s works... " >&6; }
51225705 LN_S=$as_ln_s
51235706 if test "$LN_S" = "ln -s"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5125 $as_echo "yes" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5128 $as_echo "no, using $LN_S" >&6; }
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5708 printf "%s\n" "yes" >&6; }
5709 else
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5711 printf "%s\n" "no, using $LN_S" >&6; }
51295712 fi
51305713
51315714 # find the maximum length of command line arguments
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5133 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5134 if ${lt_cv_sys_max_cmd_len+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5716 printf %s "checking the maximum length of command line arguments... " >&6; }
5717 if test ${lt_cv_sys_max_cmd_len+y}
5718 then :
5719 printf %s "(cached) " >&6
5720 else $as_nop
51375721 i=0
51385722 teststring=ABCD
51395723
51755759 lt_cv_sys_max_cmd_len=8192;
51765760 ;;
51775761
5178 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5762 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
51795763 # This has been around since 386BSD, at least. Likely further.
51805764 if test -x /sbin/sysctl; then
51815765 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
52185802 sysv5* | sco5v6* | sysv4.2uw2*)
52195803 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
52205804 if test -n "$kargmax"; then
5221 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5805 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
52225806 else
52235807 lt_cv_sys_max_cmd_len=32768
52245808 fi
52605844 fi
52615845
52625846 if test -n "$lt_cv_sys_max_cmd_len"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5264 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5267 $as_echo "none" >&6; }
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5848 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5849 else
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5851 printf "%s\n" "none" >&6; }
52685852 fi
52695853 max_cmd_len=$lt_cv_sys_max_cmd_len
52705854
53085892
53095893
53105894
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5312 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5313 if ${lt_cv_to_host_file_cmd+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5896 printf %s "checking how to convert $build file names to $host format... " >&6; }
5897 if test ${lt_cv_to_host_file_cmd+y}
5898 then :
5899 printf %s "(cached) " >&6
5900 else $as_nop
53165901 case $host in
53175902 *-*-mingw* )
53185903 case $build in
53485933 fi
53495934
53505935 to_host_file_cmd=$lt_cv_to_host_file_cmd
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5352 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5353
5354
5355
5356
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5359 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5360 if ${lt_cv_to_tool_file_cmd+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5937 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5938
5939
5940
5941
5942
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5944 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5945 if test ${lt_cv_to_tool_file_cmd+y}
5946 then :
5947 printf %s "(cached) " >&6
5948 else $as_nop
53635949 #assume ordinary cross tools, or native build.
53645950 lt_cv_to_tool_file_cmd=func_convert_file_noop
53655951 case $host in
53755961 fi
53765962
53775963 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5379 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5380
5381
5382
5383
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5386 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5387 if ${lt_cv_ld_reload_flag+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5965 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5966
5967
5968
5969
5970
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5972 printf %s "checking for $LD option to reload object files... " >&6; }
5973 if test ${lt_cv_ld_reload_flag+y}
5974 then :
5975 printf %s "(cached) " >&6
5976 else $as_nop
53905977 lt_cv_ld_reload_flag='-r'
53915978 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5393 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5980 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
53945981 reload_flag=$lt_cv_ld_reload_flag
53955982 case $reload_flag in
53965983 "" | " "*) ;;
54216008
54226009
54236010 if test -n "$ac_tool_prefix"; then
5424 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_prog_OBJDUMP+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test -n "$OBJDUMP"; then
5432 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6011 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6012 set dummy ${ac_tool_prefix}file; ac_word=$2
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 printf %s "checking for $ac_word... " >&6; }
6015 if test ${ac_cv_prog_FILECMD+y}
6016 then :
6017 printf %s "(cached) " >&6
6018 else $as_nop
6019 if test -n "$FILECMD"; then
6020 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
54336021 else
54346022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54356023 for as_dir in $PATH
54366024 do
54376025 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
6026 case $as_dir in #(((
6027 '') as_dir=./ ;;
6028 */) ;;
6029 *) as_dir=$as_dir/ ;;
6030 esac
54396031 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
54436035 break 2
54446036 fi
54456037 done
54486040
54496041 fi
54506042 fi
5451 OBJDUMP=$ac_cv_prog_OBJDUMP
5452 if test -n "$OBJDUMP"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5454 $as_echo "$OBJDUMP" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459
5460
5461 fi
5462 if test -z "$ac_cv_prog_OBJDUMP"; then
5463 ac_ct_OBJDUMP=$OBJDUMP
5464 # Extract the first word of "objdump", so it can be a program name with args.
5465 set dummy objdump; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 if test -n "$ac_ct_OBJDUMP"; then
5472 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6043 FILECMD=$ac_cv_prog_FILECMD
6044 if test -n "$FILECMD"; then
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6046 printf "%s\n" "$FILECMD" >&6; }
6047 else
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 printf "%s\n" "no" >&6; }
6050 fi
6051
6052
6053 fi
6054 if test -z "$ac_cv_prog_FILECMD"; then
6055 ac_ct_FILECMD=$FILECMD
6056 # Extract the first word of "file", so it can be a program name with args.
6057 set dummy file; ac_word=$2
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 printf %s "checking for $ac_word... " >&6; }
6060 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6061 then :
6062 printf %s "(cached) " >&6
6063 else $as_nop
6064 if test -n "$ac_ct_FILECMD"; then
6065 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
54736066 else
54746067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54756068 for as_dir in $PATH
54766069 do
54776070 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
6071 case $as_dir in #(((
6072 '') as_dir=./ ;;
6073 */) ;;
6074 *) as_dir=$as_dir/ ;;
6075 esac
54796076 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6078 ac_cv_prog_ac_ct_FILECMD="file"
6079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
54836080 break 2
54846081 fi
54856082 done
54886085
54896086 fi
54906087 fi
6088 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6089 if test -n "$ac_ct_FILECMD"; then
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6091 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6092 else
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 printf "%s\n" "no" >&6; }
6095 fi
6096
6097 if test "x$ac_ct_FILECMD" = x; then
6098 FILECMD=":"
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101 yes:)
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104 ac_tool_warned=yes ;;
6105 esac
6106 FILECMD=$ac_ct_FILECMD
6107 fi
6108 else
6109 FILECMD="$ac_cv_prog_FILECMD"
6110 fi
6111
6112
6113
6114
6115
6116
6117
6118 if test -n "$ac_tool_prefix"; then
6119 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6120 set dummy ${ac_tool_prefix}objdump; ac_word=$2
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_OBJDUMP+y}
6124 then :
6125 printf %s "(cached) " >&6
6126 else $as_nop
6127 if test -n "$OBJDUMP"; then
6128 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133 IFS=$as_save_IFS
6134 case $as_dir in #(((
6135 '') as_dir=./ ;;
6136 */) ;;
6137 *) as_dir=$as_dir/ ;;
6138 esac
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145 done
6146 done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 OBJDUMP=$ac_cv_prog_OBJDUMP
6152 if test -n "$OBJDUMP"; then
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6154 printf "%s\n" "$OBJDUMP" >&6; }
6155 else
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 printf "%s\n" "no" >&6; }
6158 fi
6159
6160
6161 fi
6162 if test -z "$ac_cv_prog_OBJDUMP"; then
6163 ac_ct_OBJDUMP=$OBJDUMP
6164 # Extract the first word of "objdump", so it can be a program name with args.
6165 set dummy objdump; ac_word=$2
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 printf %s "checking for $ac_word... " >&6; }
6168 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6169 then :
6170 printf %s "(cached) " >&6
6171 else $as_nop
6172 if test -n "$ac_ct_OBJDUMP"; then
6173 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178 IFS=$as_save_IFS
6179 case $as_dir in #(((
6180 '') as_dir=./ ;;
6181 */) ;;
6182 *) as_dir=$as_dir/ ;;
6183 esac
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6186 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190 done
6191 done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
54916196 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
54926197 if test -n "$ac_ct_OBJDUMP"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5494 $as_echo "$ac_ct_OBJDUMP" >&6; }
5495 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6199 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6200 else
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 printf "%s\n" "no" >&6; }
54986203 fi
54996204
55006205 if test "x$ac_ct_OBJDUMP" = x; then
55026207 else
55036208 case $cross_compiling:$ac_tool_warned in
55046209 yes:)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6211 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
55076212 ac_tool_warned=yes ;;
55086213 esac
55096214 OBJDUMP=$ac_ct_OBJDUMP
55226227
55236228
55246229
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5526 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5527 if ${lt_cv_deplibs_check_method+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6231 printf %s "checking how to recognize dependent libraries... " >&6; }
6232 if test ${lt_cv_deplibs_check_method+y}
6233 then :
6234 printf %s "(cached) " >&6
6235 else $as_nop
55306236 lt_cv_file_magic_cmd='$MAGIC_CMD'
55316237 lt_cv_file_magic_test_file=
55326238 lt_cv_deplibs_check_method='unknown'
55526258
55536259 bsdi[45]*)
55546260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5555 lt_cv_file_magic_cmd='/usr/bin/file -L'
6261 lt_cv_file_magic_cmd='$FILECMD -L'
55566262 lt_cv_file_magic_test_file=/shlib/libc.so
55576263 ;;
55586264
55866292 lt_cv_deplibs_check_method=pass_all
55876293 ;;
55886294
5589 freebsd* | dragonfly*)
6295 freebsd* | dragonfly* | midnightbsd*)
55906296 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
55916297 case $host_cpu in
55926298 i*86 )
55936299 # Not sure whether the presence of OpenBSD here was a mistake.
55946300 # Let's accept both of them until this is cleared up.
55956301 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5596 lt_cv_file_magic_cmd=/usr/bin/file
6302 lt_cv_file_magic_cmd=$FILECMD
55976303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
55986304 ;;
55996305 esac
56076313 ;;
56086314
56096315 hpux10.20* | hpux11*)
5610 lt_cv_file_magic_cmd=/usr/bin/file
6316 lt_cv_file_magic_cmd=$FILECMD
56116317 case $host_cpu in
56126318 ia64*)
56136319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
56546360
56556361 newos6*)
56566362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5657 lt_cv_file_magic_cmd=/usr/bin/file
6363 lt_cv_file_magic_cmd=$FILECMD
56586364 lt_cv_file_magic_test_file=/usr/lib/libnls.so
56596365 ;;
56606366
57226428 esac
57236429
57246430 fi
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5726 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6432 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
57276433
57286434 file_magic_glob=
57296435 want_nocaseglob=no
57676473 if test -n "$ac_tool_prefix"; then
57686474 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
57696475 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if ${ac_cv_prog_DLLTOOL+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 printf %s "checking for $ac_word... " >&6; }
6478 if test ${ac_cv_prog_DLLTOOL+y}
6479 then :
6480 printf %s "(cached) " >&6
6481 else $as_nop
57756482 if test -n "$DLLTOOL"; then
57766483 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
57776484 else
57796486 for as_dir in $PATH
57806487 do
57816488 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
6489 case $as_dir in #(((
6490 '') as_dir=./ ;;
6491 */) ;;
6492 *) as_dir=$as_dir/ ;;
6493 esac
57836494 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57856496 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57876498 break 2
57886499 fi
57896500 done
57946505 fi
57956506 DLLTOOL=$ac_cv_prog_DLLTOOL
57966507 if test -n "$DLLTOOL"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5798 $as_echo "$DLLTOOL" >&6; }
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6509 printf "%s\n" "$DLLTOOL" >&6; }
6510 else
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 printf "%s\n" "no" >&6; }
58026513 fi
58036514
58046515
58076518 ac_ct_DLLTOOL=$DLLTOOL
58086519 # Extract the first word of "dlltool", so it can be a program name with args.
58096520 set dummy dlltool; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 printf %s "checking for $ac_word... " >&6; }
6523 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6524 then :
6525 printf %s "(cached) " >&6
6526 else $as_nop
58156527 if test -n "$ac_ct_DLLTOOL"; then
58166528 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
58176529 else
58196531 for as_dir in $PATH
58206532 do
58216533 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
6534 case $as_dir in #(((
6535 '') as_dir=./ ;;
6536 */) ;;
6537 *) as_dir=$as_dir/ ;;
6538 esac
58236539 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
58256541 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
58276543 break 2
58286544 fi
58296545 done
58346550 fi
58356551 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
58366552 if test -n "$ac_ct_DLLTOOL"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5838 $as_echo "$ac_ct_DLLTOOL" >&6; }
5839 else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6554 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6555 else
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 printf "%s\n" "no" >&6; }
58426558 fi
58436559
58446560 if test "x$ac_ct_DLLTOOL" = x; then
58466562 else
58476563 case $cross_compiling:$ac_tool_warned in
58486564 yes:)
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
58516567 ac_tool_warned=yes ;;
58526568 esac
58536569 DLLTOOL=$ac_ct_DLLTOOL
58676583
58686584
58696585
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5871 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5872 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6587 printf %s "checking how to associate runtime and link libraries... " >&6; }
6588 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6589 then :
6590 printf %s "(cached) " >&6
6591 else $as_nop
58756592 lt_cv_sharedlib_from_linklib_cmd='unknown'
58766593
58776594 case $host_os in
58946611 esac
58956612
58966613 fi
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5898 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6615 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
58996616 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
59006617 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
59016618
59106627 do
59116628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
59126629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if ${ac_cv_prog_AR+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917 else
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 printf %s "checking for $ac_word... " >&6; }
6632 if test ${ac_cv_prog_AR+y}
6633 then :
6634 printf %s "(cached) " >&6
6635 else $as_nop
59186636 if test -n "$AR"; then
59196637 ac_cv_prog_AR="$AR" # Let the user override the test.
59206638 else
59226640 for as_dir in $PATH
59236641 do
59246642 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
6643 case $as_dir in #(((
6644 '') as_dir=./ ;;
6645 */) ;;
6646 *) as_dir=$as_dir/ ;;
6647 esac
59266648 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
59286650 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
59306652 break 2
59316653 fi
59326654 done
59376659 fi
59386660 AR=$ac_cv_prog_AR
59396661 if test -n "$AR"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5941 $as_echo "$AR" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6663 printf "%s\n" "$AR" >&6; }
6664 else
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 printf "%s\n" "no" >&6; }
59456667 fi
59466668
59476669
59546676 do
59556677 # Extract the first word of "$ac_prog", so it can be a program name with args.
59566678 set dummy $ac_prog; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 printf %s "checking for $ac_word... " >&6; }
6681 if test ${ac_cv_prog_ac_ct_AR+y}
6682 then :
6683 printf %s "(cached) " >&6
6684 else $as_nop
59626685 if test -n "$ac_ct_AR"; then
59636686 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
59646687 else
59666689 for as_dir in $PATH
59676690 do
59686691 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
6692 case $as_dir in #(((
6693 '') as_dir=./ ;;
6694 */) ;;
6695 *) as_dir=$as_dir/ ;;
6696 esac
59706697 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
59726699 ac_cv_prog_ac_ct_AR="$ac_prog"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
59746701 break 2
59756702 fi
59766703 done
59816708 fi
59826709 ac_ct_AR=$ac_cv_prog_ac_ct_AR
59836710 if test -n "$ac_ct_AR"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5985 $as_echo "$ac_ct_AR" >&6; }
5986 else
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6712 printf "%s\n" "$ac_ct_AR" >&6; }
6713 else
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 printf "%s\n" "no" >&6; }
59896716 fi
59906717
59916718
59976724 else
59986725 case $cross_compiling:$ac_tool_warned in
59996726 yes:)
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6728 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
60026729 ac_tool_warned=yes ;;
60036730 esac
60046731 AR=$ac_ct_AR
60066733 fi
60076734
60086735 : ${AR=ar}
6009 : ${AR_FLAGS=cru}
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6022 $as_echo_n "checking for archiver @FILE support... " >&6; }
6023 if ${lt_cv_ar_at_file+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6736
6737
6738
6739
6740
6741
6742 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6743 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6744 # higher priority because thats what people were doing historically (setting
6745 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6746 # variable obsoleted/removed.
6747
6748 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6749 lt_ar_flags=$AR_FLAGS
6750
6751
6752
6753
6754
6755
6756 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6757 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6758
6759
6760
6761
6762
6763
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6765 printf %s "checking for archiver @FILE support... " >&6; }
6766 if test ${lt_cv_ar_at_file+y}
6767 then :
6768 printf %s "(cached) " >&6
6769 else $as_nop
60266770 lt_cv_ar_at_file=no
60276771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60286772 /* end confdefs.h. */
60296773
60306774 int
6031 main ()
6775 main (void)
60326776 {
60336777
60346778 ;
60356779 return 0;
60366780 }
60376781 _ACEOF
6038 if ac_fn_c_try_compile "$LINENO"; then :
6782 if ac_fn_c_try_compile "$LINENO"
6783 then :
60396784 echo conftest.$ac_objext > conftest.lst
60406785 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
60416786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
60426787 (eval $lt_ar_try) 2>&5
60436788 ac_status=$?
6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60456790 test $ac_status = 0; }
60466791 if test 0 -eq "$ac_status"; then
60476792 # Ensure the archiver fails upon bogus file names.
60496794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
60506795 (eval $lt_ar_try) 2>&5
60516796 ac_status=$?
6052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60536798 test $ac_status = 0; }
60546799 if test 0 -ne "$ac_status"; then
60556800 lt_cv_ar_at_file=@
60586803 rm -f conftest.* libconftest.a
60596804
60606805 fi
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6065 $as_echo "$lt_cv_ar_at_file" >&6; }
6806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6807
6808 fi
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6810 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
60666811
60676812 if test no = "$lt_cv_ar_at_file"; then
60686813 archiver_list_spec=
60796824 if test -n "$ac_tool_prefix"; then
60806825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
60816826 set dummy ${ac_tool_prefix}strip; ac_word=$2
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083 $as_echo_n "checking for $ac_word... " >&6; }
6084 if ${ac_cv_prog_STRIP+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 printf %s "checking for $ac_word... " >&6; }
6829 if test ${ac_cv_prog_STRIP+y}
6830 then :
6831 printf %s "(cached) " >&6
6832 else $as_nop
60876833 if test -n "$STRIP"; then
60886834 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
60896835 else
60916837 for as_dir in $PATH
60926838 do
60936839 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6840 case $as_dir in #(((
6841 '') as_dir=./ ;;
6842 */) ;;
6843 *) as_dir=$as_dir/ ;;
6844 esac
60956845 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
60976847 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
60996849 break 2
61006850 fi
61016851 done
61066856 fi
61076857 STRIP=$ac_cv_prog_STRIP
61086858 if test -n "$STRIP"; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6110 $as_echo "$STRIP" >&6; }
6111 else
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 $as_echo "no" >&6; }
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6860 printf "%s\n" "$STRIP" >&6; }
6861 else
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 printf "%s\n" "no" >&6; }
61146864 fi
61156865
61166866
61196869 ac_ct_STRIP=$STRIP
61206870 # Extract the first word of "strip", so it can be a program name with args.
61216871 set dummy strip; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 printf %s "checking for $ac_word... " >&6; }
6874 if test ${ac_cv_prog_ac_ct_STRIP+y}
6875 then :
6876 printf %s "(cached) " >&6
6877 else $as_nop
61276878 if test -n "$ac_ct_STRIP"; then
61286879 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
61296880 else
61316882 for as_dir in $PATH
61326883 do
61336884 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6885 case $as_dir in #(((
6886 '') as_dir=./ ;;
6887 */) ;;
6888 *) as_dir=$as_dir/ ;;
6889 esac
61356890 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
61376892 ac_cv_prog_ac_ct_STRIP="strip"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
61396894 break 2
61406895 fi
61416896 done
61466901 fi
61476902 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
61486903 if test -n "$ac_ct_STRIP"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6150 $as_echo "$ac_ct_STRIP" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6905 printf "%s\n" "$ac_ct_STRIP" >&6; }
6906 else
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 printf "%s\n" "no" >&6; }
61546909 fi
61556910
61566911 if test "x$ac_ct_STRIP" = x; then
61586913 else
61596914 case $cross_compiling:$ac_tool_warned in
61606915 yes:)
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
61636918 ac_tool_warned=yes ;;
61646919 esac
61656920 STRIP=$ac_ct_STRIP
61786933 if test -n "$ac_tool_prefix"; then
61796934 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
61806935 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_RANLIB+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 printf %s "checking for $ac_word... " >&6; }
6938 if test ${ac_cv_prog_RANLIB+y}
6939 then :
6940 printf %s "(cached) " >&6
6941 else $as_nop
61866942 if test -n "$RANLIB"; then
61876943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
61886944 else
61906946 for as_dir in $PATH
61916947 do
61926948 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6949 case $as_dir in #(((
6950 '') as_dir=./ ;;
6951 */) ;;
6952 *) as_dir=$as_dir/ ;;
6953 esac
61946954 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
61966956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
61986958 break 2
61996959 fi
62006960 done
62056965 fi
62066966 RANLIB=$ac_cv_prog_RANLIB
62076967 if test -n "$RANLIB"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6209 $as_echo "$RANLIB" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6969 printf "%s\n" "$RANLIB" >&6; }
6970 else
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 printf "%s\n" "no" >&6; }
62136973 fi
62146974
62156975
62186978 ac_ct_RANLIB=$RANLIB
62196979 # Extract the first word of "ranlib", so it can be a program name with args.
62206980 set dummy ranlib; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 printf %s "checking for $ac_word... " >&6; }
6983 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6984 then :
6985 printf %s "(cached) " >&6
6986 else $as_nop
62266987 if test -n "$ac_ct_RANLIB"; then
62276988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
62286989 else
62306991 for as_dir in $PATH
62316992 do
62326993 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6994 case $as_dir in #(((
6995 '') as_dir=./ ;;
6996 */) ;;
6997 *) as_dir=$as_dir/ ;;
6998 esac
62346999 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
62367001 ac_cv_prog_ac_ct_RANLIB="ranlib"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
62387003 break 2
62397004 fi
62407005 done
62457010 fi
62467011 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
62477012 if test -n "$ac_ct_RANLIB"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6249 $as_echo "$ac_ct_RANLIB" >&6; }
6250 else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7014 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7015 else
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 printf "%s\n" "no" >&6; }
62537018 fi
62547019
62557020 if test "x$ac_ct_RANLIB" = x; then
62577022 else
62587023 case $cross_compiling:$ac_tool_warned in
62597024 yes:)
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7026 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
62627027 ac_tool_warned=yes ;;
62637028 esac
62647029 RANLIB=$ac_ct_RANLIB
63477112
63487113
63497114 # Check for command to grab the raw symbol name followed by C symbol from nm.
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6351 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6352 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7116 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7117 if test ${lt_cv_sys_global_symbol_pipe+y}
7118 then :
7119 printf %s "(cached) " >&6
7120 else $as_nop
63557121
63567122 # These are sane defaults that work on at least a few old systems.
63577123 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
64067172
64077173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
64087174 # Gets list of data symbols to import.
6409 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7175 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
64107176 # Adjust the below global symbol transforms to fixup imported variables.
64117177 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
64127178 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
64247190 # Transform an extracted symbol line into a proper C declaration.
64257191 # Some systems (esp. on ia64) link data and code symbols differently,
64267192 # so use this general approach.
6427 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7193 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
64287194 $lt_cdecl_hook\
64297195 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
64307196 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
64317197
64327198 # Transform an extracted symbol line into symbol name and symbol address
6433 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7199 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
64347200 $lt_c_name_hook\
64357201 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
64367202 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
64377203
64387204 # Transform an extracted symbol line into symbol name with lib prefix and
64397205 # symbol address.
6440 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7206 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
64417207 $lt_c_name_lib_hook\
64427208 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
64437209 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
64617227 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
64627228 # Fake it for dumpbin and say T for any non-static function,
64637229 # D for any global variable and I for any imported variable.
6464 # Also find C++ and __fastcall symbols from MSVC++,
7230 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
64657231 # which start with @ or ?.
64667232 lt_cv_sys_global_symbol_pipe="$AWK '"\
64677233 " {last_section=section; section=\$ 3};"\
64797245 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
64807246 " ' prfx=^$ac_symprfx"
64817247 else
6482 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7248 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
64837249 fi
6484 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7250 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
64857251
64867252 # Check to see that the pipe works correctly.
64877253 pipe_works=no
65037269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
65047270 (eval $ac_compile) 2>&5
65057271 ac_status=$?
6506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65077273 test $ac_status = 0; }; then
65087274 # Now try to grab the symbols.
65097275 nlist=conftest.nm
65107276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
65117277 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
65127278 ac_status=$?
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65147280 test $ac_status = 0; } && test -s "$nlist"; then
65157281 # Try sorting and uniquifying the output.
65167282 if sort "$nlist" | uniq > "$nlist"T; then
65797345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
65807346 (eval $ac_link) 2>&5
65817347 ac_status=$?
6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65837349 test $ac_status = 0; } && test -s conftest$ac_exeext; then
65847350 pipe_works=yes
65857351 fi
66147380 lt_cv_sys_global_symbol_to_cdecl=
66157381 fi
66167382 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6618 $as_echo "failed" >&6; }
6619 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6621 $as_echo "ok" >&6; }
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7384 printf "%s\n" "failed" >&6; }
7385 else
7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7387 printf "%s\n" "ok" >&6; }
66227388 fi
66237389
66247390 # Response file support.
66647430
66657431
66667432
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6668 $as_echo_n "checking for sysroot... " >&6; }
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7434 printf %s "checking for sysroot... " >&6; }
66697435
66707436 # Check whether --with-sysroot was given.
6671 if test "${with_sysroot+set}" = set; then :
7437 if test ${with_sysroot+y}
7438 then :
66727439 withval=$with_sysroot;
6673 else
7440 else $as_nop
66747441 with_sysroot=no
66757442 fi
66767443
66837450 fi
66847451 ;; #(
66857452 /*)
6686 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7453 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
66877454 ;; #(
66887455 no|'')
66897456 ;; #(
66907457 *)
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6692 $as_echo "$with_sysroot" >&6; }
7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7459 printf "%s\n" "$with_sysroot" >&6; }
66937460 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
66947461 ;;
66957462 esac
66967463
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6698 $as_echo "${lt_sysroot:-no}" >&6; }
6699
6700
6701
6702
6703
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6705 $as_echo_n "checking for a working dd... " >&6; }
6706 if ${ac_cv_path_lt_DD+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7465 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7466
7467
7468
7469
7470
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7472 printf %s "checking for a working dd... " >&6; }
7473 if test ${ac_cv_path_lt_DD+y}
7474 then :
7475 printf %s "(cached) " >&6
7476 else $as_nop
67097477 printf 0123456789abcdef0123456789abcdef >conftest.i
67107478 cat conftest.i conftest.i >conftest2.i
67117479 : ${lt_DD:=$DD}
67167484 for as_dir in $PATH
67177485 do
67187486 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_prog in dd; do
7487 case $as_dir in #(((
7488 '') as_dir=./ ;;
7489 */) ;;
7490 *) as_dir=$as_dir/ ;;
7491 esac
7492 for ac_prog in dd
7493 do
67217494 for ac_exec_ext in '' $ac_executable_extensions; do
6722 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7495 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
67237496 as_fn_executable_p "$ac_path_lt_DD" || continue
67247497 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
67257498 cmp -s conftest.i conftest.out \
67397512
67407513 rm -f conftest.i conftest2.i conftest.out
67417514 fi
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6743 $as_echo "$ac_cv_path_lt_DD" >&6; }
6744
6745
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6747 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6748 if ${lt_cv_truncate_bin+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7516 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7517
7518
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7520 printf %s "checking how to truncate binary pipes... " >&6; }
7521 if test ${lt_cv_truncate_bin+y}
7522 then :
7523 printf %s "(cached) " >&6
7524 else $as_nop
67517525 printf 0123456789abcdef0123456789abcdef >conftest.i
67527526 cat conftest.i conftest.i >conftest2.i
67537527 lt_cv_truncate_bin=
67587532 rm -f conftest.i conftest2.i conftest.out
67597533 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
67607534 fi
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6762 $as_echo "$lt_cv_truncate_bin" >&6; }
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7536 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
67637537
67647538
67657539
67827556 }
67837557
67847558 # Check whether --enable-libtool-lock was given.
6785 if test "${enable_libtool_lock+set}" = set; then :
7559 if test ${enable_libtool_lock+y}
7560 then :
67867561 enableval=$enable_libtool_lock;
67877562 fi
67887563
67987573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
67997574 (eval $ac_compile) 2>&5
68007575 ac_status=$?
6801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68027577 test $ac_status = 0; }; then
6803 case `/usr/bin/file conftest.$ac_objext` in
7578 case `$FILECMD conftest.$ac_objext` in
68047579 *ELF-32*)
68057580 HPUX_IA64_MODE=32
68067581 ;;
68187593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
68197594 (eval $ac_compile) 2>&5
68207595 ac_status=$?
6821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68227597 test $ac_status = 0; }; then
68237598 if test yes = "$lt_cv_prog_gnu_ld"; then
6824 case `/usr/bin/file conftest.$ac_objext` in
7599 case `$FILECMD conftest.$ac_objext` in
68257600 *32-bit*)
68267601 LD="${LD-ld} -melf32bsmip"
68277602 ;;
68337608 ;;
68347609 esac
68357610 else
6836 case `/usr/bin/file conftest.$ac_objext` in
7611 case `$FILECMD conftest.$ac_objext` in
68377612 *32-bit*)
68387613 LD="${LD-ld} -32"
68397614 ;;
68567631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
68577632 (eval $ac_compile) 2>&5
68587633 ac_status=$?
6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68607635 test $ac_status = 0; }; then
68617636 emul=elf
6862 case `/usr/bin/file conftest.$ac_objext` in
7637 case `$FILECMD conftest.$ac_objext` in
68637638 *32-bit*)
68647639 emul="${emul}32"
68657640 ;;
68677642 emul="${emul}64"
68687643 ;;
68697644 esac
6870 case `/usr/bin/file conftest.$ac_objext` in
7645 case `$FILECMD conftest.$ac_objext` in
68717646 *MSB*)
68727647 emul="${emul}btsmip"
68737648 ;;
68757650 emul="${emul}ltsmip"
68767651 ;;
68777652 esac
6878 case `/usr/bin/file conftest.$ac_objext` in
7653 case `$FILECMD conftest.$ac_objext` in
68797654 *N32*)
68807655 emul="${emul}n32"
68817656 ;;
68977672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
68987673 (eval $ac_compile) 2>&5
68997674 ac_status=$?
6900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69017676 test $ac_status = 0; }; then
6902 case `/usr/bin/file conftest.o` in
7677 case `$FILECMD conftest.o` in
69037678 *32-bit*)
69047679 case $host in
69057680 x86_64-*kfreebsd*-gnu)
69067681 LD="${LD-ld} -m elf_i386_fbsd"
69077682 ;;
69087683 x86_64-*linux*)
6909 case `/usr/bin/file conftest.o` in
7684 case `$FILECMD conftest.o` in
69107685 *x86-64*)
69117686 LD="${LD-ld} -m elf32_x86_64"
69127687 ;;
69607735 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
69617736 SAVE_CFLAGS=$CFLAGS
69627737 CFLAGS="$CFLAGS -belf"
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6964 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6965 if ${lt_cv_cc_needs_belf+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7739 printf %s "checking whether the C compiler needs -belf... " >&6; }
7740 if test ${lt_cv_cc_needs_belf+y}
7741 then :
7742 printf %s "(cached) " >&6
7743 else $as_nop
69687744 ac_ext=c
69697745 ac_cpp='$CPP $CPPFLAGS'
69707746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
69757751 /* end confdefs.h. */
69767752
69777753 int
6978 main ()
7754 main (void)
69797755 {
69807756
69817757 ;
69827758 return 0;
69837759 }
69847760 _ACEOF
6985 if ac_fn_c_try_link "$LINENO"; then :
7761 if ac_fn_c_try_link "$LINENO"
7762 then :
69867763 lt_cv_cc_needs_belf=yes
6987 else
7764 else $as_nop
69887765 lt_cv_cc_needs_belf=no
69897766 fi
6990 rm -f core conftest.err conftest.$ac_objext \
7767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
69917768 conftest$ac_exeext conftest.$ac_ext
69927769 ac_ext=c
69937770 ac_cpp='$CPP $CPPFLAGS'
69967773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
69977774
69987775 fi
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7000 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7777 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
70017778 if test yes != "$lt_cv_cc_needs_belf"; then
70027779 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
70037780 CFLAGS=$SAVE_CFLAGS
70107787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
70117788 (eval $ac_compile) 2>&5
70127789 ac_status=$?
7013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70147791 test $ac_status = 0; }; then
7015 case `/usr/bin/file conftest.o` in
7792 case `$FILECMD conftest.o` in
70167793 *64-bit*)
70177794 case $lt_cv_prog_gnu_ld in
70187795 yes*)
70477824 if test -n "$ac_tool_prefix"; then
70487825 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
70497826 set dummy ${ac_tool_prefix}mt; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 printf %s "checking for $ac_word... " >&6; }
7829 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7830 then :
7831 printf %s "(cached) " >&6
7832 else $as_nop
70557833 if test -n "$MANIFEST_TOOL"; then
70567834 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
70577835 else
70597837 for as_dir in $PATH
70607838 do
70617839 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7840 case $as_dir in #(((
7841 '') as_dir=./ ;;
7842 */) ;;
7843 *) as_dir=$as_dir/ ;;
7844 esac
70637845 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
70657847 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
70677849 break 2
70687850 fi
70697851 done
70747856 fi
70757857 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
70767858 if test -n "$MANIFEST_TOOL"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7078 $as_echo "$MANIFEST_TOOL" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7860 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7861 else
7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 printf "%s\n" "no" >&6; }
70827864 fi
70837865
70847866
70877869 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
70887870 # Extract the first word of "mt", so it can be a program name with args.
70897871 set dummy mt; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 printf %s "checking for $ac_word... " >&6; }
7874 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7875 then :
7876 printf %s "(cached) " >&6
7877 else $as_nop
70957878 if test -n "$ac_ct_MANIFEST_TOOL"; then
70967879 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
70977880 else
70997882 for as_dir in $PATH
71007883 do
71017884 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7885 case $as_dir in #(((
7886 '') as_dir=./ ;;
7887 */) ;;
7888 *) as_dir=$as_dir/ ;;
7889 esac
71037890 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
71057892 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
71077894 break 2
71087895 fi
71097896 done
71147901 fi
71157902 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
71167903 if test -n "$ac_ct_MANIFEST_TOOL"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7118 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7905 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7906 else
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 printf "%s\n" "no" >&6; }
71227909 fi
71237910
71247911 if test "x$ac_ct_MANIFEST_TOOL" = x; then
71267913 else
71277914 case $cross_compiling:$ac_tool_warned in
71287915 yes:)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
71317918 ac_tool_warned=yes ;;
71327919 esac
71337920 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
71377924 fi
71387925
71397926 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7141 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7142 if ${lt_cv_path_mainfest_tool+:} false; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7928 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7929 if test ${lt_cv_path_mainfest_tool+y}
7930 then :
7931 printf %s "(cached) " >&6
7932 else $as_nop
71457933 lt_cv_path_mainfest_tool=no
71467934 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
71477935 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
71517939 fi
71527940 rm -f conftest*
71537941 fi
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7155 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7943 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
71567944 if test yes != "$lt_cv_path_mainfest_tool"; then
71577945 MANIFEST_TOOL=:
71587946 fi
71677955 if test -n "$ac_tool_prefix"; then
71687956 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
71697957 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 printf %s "checking for $ac_word... " >&6; }
7960 if test ${ac_cv_prog_DSYMUTIL+y}
7961 then :
7962 printf %s "(cached) " >&6
7963 else $as_nop
71757964 if test -n "$DSYMUTIL"; then
71767965 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
71777966 else
71797968 for as_dir in $PATH
71807969 do
71817970 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7971 case $as_dir in #(((
7972 '') as_dir=./ ;;
7973 */) ;;
7974 *) as_dir=$as_dir/ ;;
7975 esac
71837976 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
71857978 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
71877980 break 2
71887981 fi
71897982 done
71947987 fi
71957988 DSYMUTIL=$ac_cv_prog_DSYMUTIL
71967989 if test -n "$DSYMUTIL"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7198 $as_echo "$DSYMUTIL" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7991 printf "%s\n" "$DSYMUTIL" >&6; }
7992 else
7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 printf "%s\n" "no" >&6; }
72027995 fi
72037996
72047997
72078000 ac_ct_DSYMUTIL=$DSYMUTIL
72088001 # Extract the first word of "dsymutil", so it can be a program name with args.
72098002 set dummy dsymutil; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 printf %s "checking for $ac_word... " >&6; }
8005 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8006 then :
8007 printf %s "(cached) " >&6
8008 else $as_nop
72158009 if test -n "$ac_ct_DSYMUTIL"; then
72168010 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
72178011 else
72198013 for as_dir in $PATH
72208014 do
72218015 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
8016 case $as_dir in #(((
8017 '') as_dir=./ ;;
8018 */) ;;
8019 *) as_dir=$as_dir/ ;;
8020 esac
72238021 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
72258023 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
72278025 break 2
72288026 fi
72298027 done
72348032 fi
72358033 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
72368034 if test -n "$ac_ct_DSYMUTIL"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7238 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7239 else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8036 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8037 else
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 printf "%s\n" "no" >&6; }
72428040 fi
72438041
72448042 if test "x$ac_ct_DSYMUTIL" = x; then
72468044 else
72478045 case $cross_compiling:$ac_tool_warned in
72488046 yes:)
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
72518049 ac_tool_warned=yes ;;
72528050 esac
72538051 DSYMUTIL=$ac_ct_DSYMUTIL
72598057 if test -n "$ac_tool_prefix"; then
72608058 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
72618059 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_NMEDIT+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061 printf %s "checking for $ac_word... " >&6; }
8062 if test ${ac_cv_prog_NMEDIT+y}
8063 then :
8064 printf %s "(cached) " >&6
8065 else $as_nop
72678066 if test -n "$NMEDIT"; then
72688067 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
72698068 else
72718070 for as_dir in $PATH
72728071 do
72738072 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
8073 case $as_dir in #(((
8074 '') as_dir=./ ;;
8075 */) ;;
8076 *) as_dir=$as_dir/ ;;
8077 esac
72758078 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
72778080 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
72798082 break 2
72808083 fi
72818084 done
72868089 fi
72878090 NMEDIT=$ac_cv_prog_NMEDIT
72888091 if test -n "$NMEDIT"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7290 $as_echo "$NMEDIT" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8093 printf "%s\n" "$NMEDIT" >&6; }
8094 else
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 printf "%s\n" "no" >&6; }
72948097 fi
72958098
72968099
72998102 ac_ct_NMEDIT=$NMEDIT
73008103 # Extract the first word of "nmedit", so it can be a program name with args.
73018104 set dummy nmedit; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 printf %s "checking for $ac_word... " >&6; }
8107 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8108 then :
8109 printf %s "(cached) " >&6
8110 else $as_nop
73078111 if test -n "$ac_ct_NMEDIT"; then
73088112 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
73098113 else
73118115 for as_dir in $PATH
73128116 do
73138117 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
8118 case $as_dir in #(((
8119 '') as_dir=./ ;;
8120 */) ;;
8121 *) as_dir=$as_dir/ ;;
8122 esac
73158123 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
73178125 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
73198127 break 2
73208128 fi
73218129 done
73268134 fi
73278135 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
73288136 if test -n "$ac_ct_NMEDIT"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7330 $as_echo "$ac_ct_NMEDIT" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8138 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8139 else
8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 printf "%s\n" "no" >&6; }
73348142 fi
73358143
73368144 if test "x$ac_ct_NMEDIT" = x; then
73388146 else
73398147 case $cross_compiling:$ac_tool_warned in
73408148 yes:)
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8150 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
73438151 ac_tool_warned=yes ;;
73448152 esac
73458153 NMEDIT=$ac_ct_NMEDIT
73518159 if test -n "$ac_tool_prefix"; then
73528160 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
73538161 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_LIPO+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 printf %s "checking for $ac_word... " >&6; }
8164 if test ${ac_cv_prog_LIPO+y}
8165 then :
8166 printf %s "(cached) " >&6
8167 else $as_nop
73598168 if test -n "$LIPO"; then
73608169 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
73618170 else
73638172 for as_dir in $PATH
73648173 do
73658174 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
8175 case $as_dir in #(((
8176 '') as_dir=./ ;;
8177 */) ;;
8178 *) as_dir=$as_dir/ ;;
8179 esac
73678180 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8181 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
73698182 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
73718184 break 2
73728185 fi
73738186 done
73788191 fi
73798192 LIPO=$ac_cv_prog_LIPO
73808193 if test -n "$LIPO"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7382 $as_echo "$LIPO" >&6; }
7383 else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8195 printf "%s\n" "$LIPO" >&6; }
8196 else
8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 printf "%s\n" "no" >&6; }
73868199 fi
73878200
73888201
73918204 ac_ct_LIPO=$LIPO
73928205 # Extract the first word of "lipo", so it can be a program name with args.
73938206 set dummy lipo; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398 else
8207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 printf %s "checking for $ac_word... " >&6; }
8209 if test ${ac_cv_prog_ac_ct_LIPO+y}
8210 then :
8211 printf %s "(cached) " >&6
8212 else $as_nop
73998213 if test -n "$ac_ct_LIPO"; then
74008214 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
74018215 else
74038217 for as_dir in $PATH
74048218 do
74058219 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
8220 case $as_dir in #(((
8221 '') as_dir=./ ;;
8222 */) ;;
8223 *) as_dir=$as_dir/ ;;
8224 esac
74078225 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
74098227 ac_cv_prog_ac_ct_LIPO="lipo"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
74118229 break 2
74128230 fi
74138231 done
74188236 fi
74198237 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
74208238 if test -n "$ac_ct_LIPO"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7422 $as_echo "$ac_ct_LIPO" >&6; }
7423 else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8240 printf "%s\n" "$ac_ct_LIPO" >&6; }
8241 else
8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 printf "%s\n" "no" >&6; }
74268244 fi
74278245
74288246 if test "x$ac_ct_LIPO" = x; then
74308248 else
74318249 case $cross_compiling:$ac_tool_warned in
74328250 yes:)
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8252 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
74358253 ac_tool_warned=yes ;;
74368254 esac
74378255 LIPO=$ac_ct_LIPO
74438261 if test -n "$ac_tool_prefix"; then
74448262 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
74458263 set dummy ${ac_tool_prefix}otool; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_OTOOL+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265 printf %s "checking for $ac_word... " >&6; }
8266 if test ${ac_cv_prog_OTOOL+y}
8267 then :
8268 printf %s "(cached) " >&6
8269 else $as_nop
74518270 if test -n "$OTOOL"; then
74528271 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
74538272 else
74558274 for as_dir in $PATH
74568275 do
74578276 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
8277 case $as_dir in #(((
8278 '') as_dir=./ ;;
8279 */) ;;
8280 *) as_dir=$as_dir/ ;;
8281 esac
74598282 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
74618284 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
74638286 break 2
74648287 fi
74658288 done
74708293 fi
74718294 OTOOL=$ac_cv_prog_OTOOL
74728295 if test -n "$OTOOL"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7474 $as_echo "$OTOOL" >&6; }
7475 else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8297 printf "%s\n" "$OTOOL" >&6; }
8298 else
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 printf "%s\n" "no" >&6; }
74788301 fi
74798302
74808303
74838306 ac_ct_OTOOL=$OTOOL
74848307 # Extract the first word of "otool", so it can be a program name with args.
74858308 set dummy otool; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 printf %s "checking for $ac_word... " >&6; }
8311 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8312 then :
8313 printf %s "(cached) " >&6
8314 else $as_nop
74918315 if test -n "$ac_ct_OTOOL"; then
74928316 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
74938317 else
74958319 for as_dir in $PATH
74968320 do
74978321 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
8322 case $as_dir in #(((
8323 '') as_dir=./ ;;
8324 */) ;;
8325 *) as_dir=$as_dir/ ;;
8326 esac
74998327 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
75018329 ac_cv_prog_ac_ct_OTOOL="otool"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
75038331 break 2
75048332 fi
75058333 done
75108338 fi
75118339 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
75128340 if test -n "$ac_ct_OTOOL"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7514 $as_echo "$ac_ct_OTOOL" >&6; }
7515 else
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8342 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8343 else
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 printf "%s\n" "no" >&6; }
75188346 fi
75198347
75208348 if test "x$ac_ct_OTOOL" = x; then
75228350 else
75238351 case $cross_compiling:$ac_tool_warned in
75248352 yes:)
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8354 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
75278355 ac_tool_warned=yes ;;
75288356 esac
75298357 OTOOL=$ac_ct_OTOOL
75358363 if test -n "$ac_tool_prefix"; then
75368364 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
75378365 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if ${ac_cv_prog_OTOOL64+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542 else
8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 printf %s "checking for $ac_word... " >&6; }
8368 if test ${ac_cv_prog_OTOOL64+y}
8369 then :
8370 printf %s "(cached) " >&6
8371 else $as_nop
75438372 if test -n "$OTOOL64"; then
75448373 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
75458374 else
75478376 for as_dir in $PATH
75488377 do
75498378 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
8379 case $as_dir in #(((
8380 '') as_dir=./ ;;
8381 */) ;;
8382 *) as_dir=$as_dir/ ;;
8383 esac
75518384 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
75538386 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
75558388 break 2
75568389 fi
75578390 done
75628395 fi
75638396 OTOOL64=$ac_cv_prog_OTOOL64
75648397 if test -n "$OTOOL64"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7566 $as_echo "$OTOOL64" >&6; }
7567 else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8399 printf "%s\n" "$OTOOL64" >&6; }
8400 else
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 printf "%s\n" "no" >&6; }
75708403 fi
75718404
75728405
75758408 ac_ct_OTOOL64=$OTOOL64
75768409 # Extract the first word of "otool64", so it can be a program name with args.
75778410 set dummy otool64; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 printf %s "checking for $ac_word... " >&6; }
8413 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8414 then :
8415 printf %s "(cached) " >&6
8416 else $as_nop
75838417 if test -n "$ac_ct_OTOOL64"; then
75848418 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
75858419 else
75878421 for as_dir in $PATH
75888422 do
75898423 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
8424 case $as_dir in #(((
8425 '') as_dir=./ ;;
8426 */) ;;
8427 *) as_dir=$as_dir/ ;;
8428 esac
75918429 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
75938431 ac_cv_prog_ac_ct_OTOOL64="otool64"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
75958433 break 2
75968434 fi
75978435 done
76028440 fi
76038441 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
76048442 if test -n "$ac_ct_OTOOL64"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7606 $as_echo "$ac_ct_OTOOL64" >&6; }
7607 else
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8444 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8445 else
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 printf "%s\n" "no" >&6; }
76108448 fi
76118449
76128450 if test "x$ac_ct_OTOOL64" = x; then
76148452 else
76158453 case $cross_compiling:$ac_tool_warned in
76168454 yes:)
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8456 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
76198457 ac_tool_warned=yes ;;
76208458 esac
76218459 OTOOL64=$ac_ct_OTOOL64
76508488
76518489
76528490
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7654 $as_echo_n "checking for -single_module linker flag... " >&6; }
7655 if ${lt_cv_apple_cc_single_mod+:} false; then :
7656 $as_echo_n "(cached) " >&6
7657 else
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8492 printf %s "checking for -single_module linker flag... " >&6; }
8493 if test ${lt_cv_apple_cc_single_mod+y}
8494 then :
8495 printf %s "(cached) " >&6
8496 else $as_nop
76588497 lt_cv_apple_cc_single_mod=no
76598498 if test -z "$LT_MULTI_MODULE"; then
76608499 # By default we will add the -single_module flag. You can override
76838522 rm -f conftest.*
76848523 fi
76858524 fi
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7687 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7688
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7690 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7691 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7692 $as_echo_n "(cached) " >&6
7693 else
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8526 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8527
8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8529 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8530 if test ${lt_cv_ld_exported_symbols_list+y}
8531 then :
8532 printf %s "(cached) " >&6
8533 else $as_nop
76948534 lt_cv_ld_exported_symbols_list=no
76958535 save_LDFLAGS=$LDFLAGS
76968536 echo "_main" > conftest.sym
76998539 /* end confdefs.h. */
77008540
77018541 int
7702 main ()
8542 main (void)
77038543 {
77048544
77058545 ;
77068546 return 0;
77078547 }
77088548 _ACEOF
7709 if ac_fn_c_try_link "$LINENO"; then :
8549 if ac_fn_c_try_link "$LINENO"
8550 then :
77108551 lt_cv_ld_exported_symbols_list=yes
7711 else
8552 else $as_nop
77128553 lt_cv_ld_exported_symbols_list=no
77138554 fi
7714 rm -f core conftest.err conftest.$ac_objext \
8555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
77158556 conftest$ac_exeext conftest.$ac_ext
77168557 LDFLAGS=$save_LDFLAGS
77178558
77188559 fi
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7720 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7721
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7723 $as_echo_n "checking for -force_load linker flag... " >&6; }
7724 if ${lt_cv_ld_force_load+:} false; then :
7725 $as_echo_n "(cached) " >&6
7726 else
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8561 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8562
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8564 printf %s "checking for -force_load linker flag... " >&6; }
8565 if test ${lt_cv_ld_force_load+y}
8566 then :
8567 printf %s "(cached) " >&6
8568 else $as_nop
77278569 lt_cv_ld_force_load=no
77288570 cat > conftest.c << _LT_EOF
77298571 int forced_loaded() { return 2;}
77308572 _LT_EOF
77318573 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
77328574 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7733 echo "$AR cru libconftest.a conftest.o" >&5
7734 $AR cru libconftest.a conftest.o 2>&5
8575 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8576 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
77358577 echo "$RANLIB libconftest.a" >&5
77368578 $RANLIB libconftest.a 2>&5
77378579 cat > conftest.c << _LT_EOF
77518593 rm -rf conftest.dSYM
77528594
77538595 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7755 $as_echo "$lt_cv_ld_force_load" >&6; }
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8597 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
77568598 case $host_os in
77578599 rhapsody* | darwin1.[012])
77588600 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
77598601 darwin1.*)
77608602 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7761 darwin*) # darwin 5.x on
7762 # if running on 10.5 or later, the deployment target defaults
7763 # to the OS version, if on x86, and 10.4, the deployment
7764 # target defaults to 10.4. Don't you love it?
7765 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7766 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7767 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7768 10.[012][,.]*)
7769 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7770 10.*)
7771 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8603 darwin*)
8604 case $MACOSX_DEPLOYMENT_TARGET,$host in
8605 10.[012],*|,*powerpc*-darwin[5-8]*)
8606 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8607 *)
8608 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
77728609 esac
77738610 ;;
77748611 esac
78238660 esac
78248661 }
78258662
7826 ac_ext=c
7827 ac_cpp='$CPP $CPPFLAGS'
7828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7832 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7833 # On Suns, sometimes $CPP names a directory.
7834 if test -n "$CPP" && test -d "$CPP"; then
7835 CPP=
7836 fi
7837 if test -z "$CPP"; then
7838 if ${ac_cv_prog_CPP+:} false; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 # Double quotes because CPP needs to be expanded
7842 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7843 do
7844 ac_preproc_ok=false
7845 for ac_c_preproc_warn_flag in '' yes
8663 ac_header= ac_cache=
8664 for ac_item in $ac_header_c_list
78468665 do
7847 # Use a header file that comes with gcc, so configuring glibc
7848 # with a fresh cross-compiler works.
7849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7850 # <limits.h> exists even on freestanding compilers.
7851 # On the NeXT, cc -E runs the code through the compiler's parser,
7852 # not just through cpp. "Syntax error" is here to catch this case.
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855 #ifdef __STDC__
7856 # include <limits.h>
7857 #else
7858 # include <assert.h>
7859 #endif
7860 Syntax error
7861 _ACEOF
7862 if ac_fn_c_try_cpp "$LINENO"; then :
7863
7864 else
7865 # Broken: fails on valid input.
7866 continue
7867 fi
7868 rm -f conftest.err conftest.i conftest.$ac_ext
7869
7870 # OK, works on sane cases. Now check whether nonexistent headers
7871 # can be detected and how.
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 #include <ac_nonexistent.h>
7875 _ACEOF
7876 if ac_fn_c_try_cpp "$LINENO"; then :
7877 # Broken: success on invalid input.
7878 continue
7879 else
7880 # Passes both tests.
7881 ac_preproc_ok=:
7882 break
7883 fi
7884 rm -f conftest.err conftest.i conftest.$ac_ext
7885
8666 if test $ac_cache; then
8667 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8668 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8669 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8670 fi
8671 ac_header= ac_cache=
8672 elif test $ac_header; then
8673 ac_cache=$ac_item
8674 else
8675 ac_header=$ac_item
8676 fi
78868677 done
7887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7888 rm -f conftest.i conftest.err conftest.$ac_ext
7889 if $ac_preproc_ok; then :
7890 break
7891 fi
7892
7893 done
7894 ac_cv_prog_CPP=$CPP
7895
7896 fi
7897 CPP=$ac_cv_prog_CPP
7898 else
7899 ac_cv_prog_CPP=$CPP
7900 fi
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7902 $as_echo "$CPP" >&6; }
7903 ac_preproc_ok=false
7904 for ac_c_preproc_warn_flag in '' yes
7905 do
7906 # Use a header file that comes with gcc, so configuring glibc
7907 # with a fresh cross-compiler works.
7908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7909 # <limits.h> exists even on freestanding compilers.
7910 # On the NeXT, cc -E runs the code through the compiler's parser,
7911 # not just through cpp. "Syntax error" is here to catch this case.
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #ifdef __STDC__
7915 # include <limits.h>
7916 #else
7917 # include <assert.h>
7918 #endif
7919 Syntax error
7920 _ACEOF
7921 if ac_fn_c_try_cpp "$LINENO"; then :
7922
7923 else
7924 # Broken: fails on valid input.
7925 continue
7926 fi
7927 rm -f conftest.err conftest.i conftest.$ac_ext
7928
7929 # OK, works on sane cases. Now check whether nonexistent headers
7930 # can be detected and how.
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7933 #include <ac_nonexistent.h>
7934 _ACEOF
7935 if ac_fn_c_try_cpp "$LINENO"; then :
7936 # Broken: success on invalid input.
7937 continue
7938 else
7939 # Passes both tests.
7940 ac_preproc_ok=:
7941 break
7942 fi
7943 rm -f conftest.err conftest.i conftest.$ac_ext
7944
7945 done
7946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7947 rm -f conftest.i conftest.err conftest.$ac_ext
7948 if $ac_preproc_ok; then :
7949
7950 else
7951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7953 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7954 See \`config.log' for more details" "$LINENO" 5; }
7955 fi
7956
7957 ac_ext=c
7958 ac_cpp='$CPP $CPPFLAGS'
7959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7962
7963
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7965 $as_echo_n "checking for ANSI C header files... " >&6; }
7966 if ${ac_cv_header_stdc+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 #include <stdlib.h>
7972 #include <stdarg.h>
7973 #include <string.h>
7974 #include <float.h>
7975
7976 int
7977 main ()
7978 {
7979
7980 ;
7981 return 0;
7982 }
7983 _ACEOF
7984 if ac_fn_c_try_compile "$LINENO"; then :
7985 ac_cv_header_stdc=yes
7986 else
7987 ac_cv_header_stdc=no
7988 fi
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990
7991 if test $ac_cv_header_stdc = yes; then
7992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 #include <string.h>
7996
7997 _ACEOF
7998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7999 $EGREP "memchr" >/dev/null 2>&1; then :
8000
8001 else
8002 ac_cv_header_stdc=no
8003 fi
8004 rm -f conftest*
8005
8006 fi
8007
8008 if test $ac_cv_header_stdc = yes; then
8009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012 #include <stdlib.h>
8013
8014 _ACEOF
8015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8016 $EGREP "free" >/dev/null 2>&1; then :
8017
8018 else
8019 ac_cv_header_stdc=no
8020 fi
8021 rm -f conftest*
8022
8023 fi
8024
8025 if test $ac_cv_header_stdc = yes; then
8026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8027 if test "$cross_compiling" = yes; then :
8028 :
8029 else
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8032 #include <ctype.h>
8033 #include <stdlib.h>
8034 #if ((' ' & 0x0FF) == 0x020)
8035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8037 #else
8038 # define ISLOWER(c) \
8039 (('a' <= (c) && (c) <= 'i') \
8040 || ('j' <= (c) && (c) <= 'r') \
8041 || ('s' <= (c) && (c) <= 'z'))
8042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8043 #endif
8044
8045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8046 int
8047 main ()
8048 {
8049 int i;
8050 for (i = 0; i < 256; i++)
8051 if (XOR (islower (i), ISLOWER (i))
8052 || toupper (i) != TOUPPER (i))
8053 return 2;
8054 return 0;
8055 }
8056 _ACEOF
8057 if ac_fn_c_try_run "$LINENO"; then :
8058
8059 else
8060 ac_cv_header_stdc=no
8061 fi
8062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8063 conftest.$ac_objext conftest.beam conftest.$ac_ext
8064 fi
8065
8066 fi
8067 fi
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8069 $as_echo "$ac_cv_header_stdc" >&6; }
8070 if test $ac_cv_header_stdc = yes; then
8071
8072 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8073
8074 fi
8075
8076 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8077 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8078 inttypes.h stdint.h unistd.h
8079 do :
8080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8081 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8678
8679
8680
8681
8682
8683
8684
8685
8686 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8687 then :
8688
8689 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8690
8691 fi
8692 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
80828693 "
8083 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8084 cat >>confdefs.h <<_ACEOF
8085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8086 _ACEOF
8087
8088 fi
8089
8090 done
8091
8092
8093 for ac_header in dlfcn.h
8094 do :
8095 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8096 "
8097 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8098 cat >>confdefs.h <<_ACEOF
8099 #define HAVE_DLFCN_H 1
8100 _ACEOF
8101
8102 fi
8103
8104 done
8694 if test "x$ac_cv_header_dlfcn_h" = xyes
8695 then :
8696 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8697
8698 fi
81058699
81068700
81078701
81188712
81198713
81208714 # Check whether --enable-shared was given.
8121 if test "${enable_shared+set}" = set; then :
8715 if test ${enable_shared+y}
8716 then :
81228717 enableval=$enable_shared; p=${PACKAGE-default}
81238718 case $enableval in
81248719 yes) enable_shared=yes ;;
81368731 IFS=$lt_save_ifs
81378732 ;;
81388733 esac
8139 else
8734 else $as_nop
81408735 enable_shared=yes
81418736 fi
81428737
81518746
81528747
81538748 # Check whether --with-pic was given.
8154 if test "${with_pic+set}" = set; then :
8749 if test ${with_pic+y}
8750 then :
81558751 withval=$with_pic; lt_p=${PACKAGE-default}
81568752 case $withval in
81578753 yes|no) pic_mode=$withval ;;
81688764 IFS=$lt_save_ifs
81698765 ;;
81708766 esac
8171 else
8767 else $as_nop
81728768 pic_mode=default
81738769 fi
81748770
81808776
81818777
81828778 # Check whether --enable-fast-install was given.
8183 if test "${enable_fast_install+set}" = set; then :
8779 if test ${enable_fast_install+y}
8780 then :
81848781 enableval=$enable_fast_install; p=${PACKAGE-default}
81858782 case $enableval in
81868783 yes) enable_fast_install=yes ;;
81988795 IFS=$lt_save_ifs
81998796 ;;
82008797 esac
8201 else
8798 else $as_nop
82028799 enable_fast_install=yes
82038800 fi
82048801
82128809 shared_archive_member_spec=
82138810 case $host,$enable_shared in
82148811 power*-*-aix[5-9]*,yes)
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8216 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8813 printf %s "checking which variant of shared library versioning to provide... " >&6; }
82178814
82188815 # Check whether --with-aix-soname was given.
8219 if test "${with_aix_soname+set}" = set; then :
8816 if test ${with_aix_soname+y}
8817 then :
82208818 withval=$with_aix_soname; case $withval in
82218819 aix|svr4|both)
82228820 ;;
82258823 ;;
82268824 esac
82278825 lt_cv_with_aix_soname=$with_aix_soname
8228 else
8229 if ${lt_cv_with_aix_soname+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8826 else $as_nop
8827 if test ${lt_cv_with_aix_soname+y}
8828 then :
8829 printf %s "(cached) " >&6
8830 else $as_nop
82328831 lt_cv_with_aix_soname=aix
82338832 fi
82348833
82358834 with_aix_soname=$lt_cv_with_aix_soname
82368835 fi
82378836
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8239 $as_echo "$with_aix_soname" >&6; }
8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8838 printf "%s\n" "$with_aix_soname" >&6; }
82408839 if test aix != "$with_aix_soname"; then
82418840 # For the AIX way of multilib, we name the shared archive member
82428841 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
83188917 setopt NO_GLOB_SUBST
83198918 fi
83208919
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8322 $as_echo_n "checking for objdir... " >&6; }
8323 if ${lt_cv_objdir+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8921 printf %s "checking for objdir... " >&6; }
8922 if test ${lt_cv_objdir+y}
8923 then :
8924 printf %s "(cached) " >&6
8925 else $as_nop
83268926 rm -f .libs 2>/dev/null
83278927 mkdir .libs 2>/dev/null
83288928 if test -d .libs; then
83338933 fi
83348934 rmdir .libs 2>/dev/null
83358935 fi
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8337 $as_echo "$lt_cv_objdir" >&6; }
8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8937 printf "%s\n" "$lt_cv_objdir" >&6; }
83388938 objdir=$lt_cv_objdir
83398939
83408940
83418941
83428942
83438943
8344 cat >>confdefs.h <<_ACEOF
8345 #define LT_OBJDIR "$lt_cv_objdir/"
8346 _ACEOF
8944 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
83478945
83488946
83498947
83648962 ofile=libtool
83658963 can_build_shared=yes
83668964
8367 # All known linkers require a '.a' archive for static linking (except MSVC,
8368 # which needs '.lib').
8965 # All known linkers require a '.a' archive for static linking (except MSVC and
8966 # ICC, which need '.lib').
83698967 libext=a
83708968
83718969 with_gnu_ld=$lt_cv_prog_gnu_ld
83898987 case $deplibs_check_method in
83908988 file_magic*)
83918989 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8393 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8394 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8991 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8992 if test ${lt_cv_path_MAGIC_CMD+y}
8993 then :
8994 printf %s "(cached) " >&6
8995 else $as_nop
83978996 case $MAGIC_CMD in
83988997 [\\/*] | ?:[\\/]*)
83998998 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
84429041
84439042 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
84449043 if test -n "$MAGIC_CMD"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8446 $as_echo "$MAGIC_CMD" >&6; }
8447 else
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9045 printf "%s\n" "$MAGIC_CMD" >&6; }
9046 else
9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 printf "%s\n" "no" >&6; }
84509049 fi
84519050
84529051
84559054
84569055 if test -z "$lt_cv_path_MAGIC_CMD"; then
84579056 if test -n "$ac_tool_prefix"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8459 $as_echo_n "checking for file... " >&6; }
8460 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8461 $as_echo_n "(cached) " >&6
8462 else
9057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9058 printf %s "checking for file... " >&6; }
9059 if test ${lt_cv_path_MAGIC_CMD+y}
9060 then :
9061 printf %s "(cached) " >&6
9062 else $as_nop
84639063 case $MAGIC_CMD in
84649064 [\\/*] | ?:[\\/]*)
84659065 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
85089108
85099109 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
85109110 if test -n "$MAGIC_CMD"; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8512 $as_echo "$MAGIC_CMD" >&6; }
8513 else
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 $as_echo "no" >&6; }
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9112 printf "%s\n" "$MAGIC_CMD" >&6; }
9113 else
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 printf "%s\n" "no" >&6; }
85169116 fi
85179117
85189118
85979197 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
85989198 esac
85999199
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8601 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8602 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8603 $as_echo_n "(cached) " >&6
8604 else
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9201 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9202 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9203 then :
9204 printf %s "(cached) " >&6
9205 else $as_nop
86059206 lt_cv_prog_compiler_rtti_exceptions=no
86069207 ac_outfile=conftest.$ac_objext
86079208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
86329233 $RM conftest*
86339234
86349235 fi
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8636 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9237 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
86379238
86389239 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
86399240 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
88749475 lt_prog_compiler_static='-qstaticlink'
88759476 ;;
88769477 *)
8877 case `$CC -V 2>&1 | sed 5q` in
9478 case `$CC -V 2>&1 | $SED 5q` in
88789479 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
88799480 # Sun Fortran 8.3 passes all unrecognized flags to the linker
88809481 lt_prog_compiler_pic='-KPIC'
89909591 ;;
89919592 esac
89929593
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8994 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8995 if ${lt_cv_prog_compiler_pic+:} false; then :
8996 $as_echo_n "(cached) " >&6
8997 else
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9595 printf %s "checking for $compiler option to produce PIC... " >&6; }
9596 if test ${lt_cv_prog_compiler_pic+y}
9597 then :
9598 printf %s "(cached) " >&6
9599 else $as_nop
89989600 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
89999601 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9001 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9603 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
90029604 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
90039605
90049606 #
90059607 # Check to make sure the PIC flag actually works.
90069608 #
90079609 if test -n "$lt_prog_compiler_pic"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9009 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9010 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9611 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9612 if test ${lt_cv_prog_compiler_pic_works+y}
9613 then :
9614 printf %s "(cached) " >&6
9615 else $as_nop
90139616 lt_cv_prog_compiler_pic_works=no
90149617 ac_outfile=conftest.$ac_objext
90159618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
90409643 $RM conftest*
90419644
90429645 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9044 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9647 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
90459648
90469649 if test yes = "$lt_cv_prog_compiler_pic_works"; then
90479650 case $lt_prog_compiler_pic in
90699672 # Check to make sure the static flag actually works.
90709673 #
90719674 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9073 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9074 if ${lt_cv_prog_compiler_static_works+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9676 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9677 if test ${lt_cv_prog_compiler_static_works+y}
9678 then :
9679 printf %s "(cached) " >&6
9680 else $as_nop
90779681 lt_cv_prog_compiler_static_works=no
90789682 save_LDFLAGS=$LDFLAGS
90799683 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
90979701 LDFLAGS=$save_LDFLAGS
90989702
90999703 fi
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9101 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9705 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
91029706
91039707 if test yes = "$lt_cv_prog_compiler_static_works"; then
91049708 :
91129716
91139717
91149718
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9116 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9117 if ${lt_cv_prog_compiler_c_o+:} false; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9720 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9721 if test ${lt_cv_prog_compiler_c_o+y}
9722 then :
9723 printf %s "(cached) " >&6
9724 else $as_nop
91209725 lt_cv_prog_compiler_c_o=no
91219726 $RM -r conftest 2>/dev/null
91229727 mkdir conftest
91599764 $RM conftest*
91609765
91619766 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9163 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9164
9165
9166
9167
9168
9169
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9171 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9172 if ${lt_cv_prog_compiler_c_o+:} false; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9768 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9769
9770
9771
9772
9773
9774
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9776 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9777 if test ${lt_cv_prog_compiler_c_o+y}
9778 then :
9779 printf %s "(cached) " >&6
9780 else $as_nop
91759781 lt_cv_prog_compiler_c_o=no
91769782 $RM -r conftest 2>/dev/null
91779783 mkdir conftest
92149820 $RM conftest*
92159821
92169822 fi
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9218 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9824 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
92199825
92209826
92219827
92239829 hard_links=nottested
92249830 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
92259831 # do not overwrite the value of need_locks provided by the user
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9227 $as_echo_n "checking if we can lock with hard links... " >&6; }
9832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9833 printf %s "checking if we can lock with hard links... " >&6; }
92289834 hard_links=yes
92299835 $RM conftest*
92309836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
92319837 touch conftest.a
92329838 ln conftest.a conftest.b 2>&5 || hard_links=no
92339839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9235 $as_echo "$hard_links" >&6; }
9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9841 printf "%s\n" "$hard_links" >&6; }
92369842 if test no = "$hard_links"; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9238 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9844 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
92399845 need_locks=warn
92409846 fi
92419847 else
92479853
92489854
92499855
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9251 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9857 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
92529858
92539859 runpath_var=
92549860 allow_undefined_flag=
92929898
92939899 case $host_os in
92949900 cygwin* | mingw* | pw32* | cegcc*)
9295 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9901 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
92969902 # When not using gcc, we currently assume that we are using
9297 # Microsoft Visual C++.
9903 # Microsoft Visual C++ or Intel C++ Compiler.
92989904 if test yes != "$GCC"; then
92999905 with_gnu_ld=no
93009906 fi
93019907 ;;
93029908 interix*)
9303 # we just hope/assume this is gcc and not c89 (= MSVC++)
9909 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
93049910 with_gnu_ld=yes
93059911 ;;
93069912 openbsd* | bitrig*)
93529958 whole_archive_flag_spec=
93539959 fi
93549960 supports_anon_versioning=no
9355 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9961 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
93569962 *GNU\ gold*) supports_anon_versioning=yes ;;
93579963 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
93589964 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
946410070 emximp -o $lib $output_objdir/$libname.def'
946510071 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
946610072 enable_shared_with_static_runtimes=yes
10073 file_list_spec='@'
946710074 ;;
946810075
946910076 interix[3-9]*)
947810085 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
947910086 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
948010087 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9481 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10088 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
948210089 ;;
948310090
948410091 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
952110128 compiler_needs_object=yes
952210129 ;;
952310130 esac
9524 case `$CC -V 2>&1 | sed 5q` in
10131 case `$CC -V 2>&1 | $SED 5q` in
952510132 *Sun\ C*) # Sun C 5.9
952610133 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
952710134 compiler_needs_object=yes
953310140
953410141 if test yes = "$supports_anon_versioning"; then
953510142 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9536 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10143 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
953710144 echo "local: *; };" >> $output_objdir/$libname.ver~
953810145 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
953910146 fi
954910156 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
955010157 if test yes = "$supports_anon_versioning"; then
955110158 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10159 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
955310160 echo "local: *; };" >> $output_objdir/$libname.ver~
955410161 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
955510162 fi
968110288 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
968210289 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
968310290 else
9684 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10291 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
968510292 fi
968610293 aix_use_runtimelinking=no
968710294
980310410 if test set = "${lt_cv_aix_libpath+set}"; then
980410411 aix_libpath=$lt_cv_aix_libpath
980510412 else
9806 if ${lt_cv_aix_libpath_+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808 else
10413 if test ${lt_cv_aix_libpath_+y}
10414 then :
10415 printf %s "(cached) " >&6
10416 else $as_nop
980910417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
981010418 /* end confdefs.h. */
981110419
981210420 int
9813 main ()
10421 main (void)
981410422 {
981510423
981610424 ;
981710425 return 0;
981810426 }
981910427 _ACEOF
9820 if ac_fn_c_try_link "$LINENO"; then :
10428 if ac_fn_c_try_link "$LINENO"
10429 then :
982110430
982210431 lt_aix_libpath_sed='
982310432 /Import File Strings/,/^$/ {
983210441 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
983310442 fi
983410443 fi
9835 rm -f core conftest.err conftest.$ac_objext \
10444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
983610445 conftest$ac_exeext conftest.$ac_ext
983710446 if test -z "$lt_cv_aix_libpath_"; then
983810447 lt_cv_aix_libpath_=/usr/lib:/lib
985610465 if test set = "${lt_cv_aix_libpath+set}"; then
985710466 aix_libpath=$lt_cv_aix_libpath
985810467 else
9859 if ${lt_cv_aix_libpath_+:} false; then :
9860 $as_echo_n "(cached) " >&6
9861 else
10468 if test ${lt_cv_aix_libpath_+y}
10469 then :
10470 printf %s "(cached) " >&6
10471 else $as_nop
986210472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
986310473 /* end confdefs.h. */
986410474
986510475 int
9866 main ()
10476 main (void)
986710477 {
986810478
986910479 ;
987010480 return 0;
987110481 }
987210482 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
10483 if ac_fn_c_try_link "$LINENO"
10484 then :
987410485
987510486 lt_aix_libpath_sed='
987610487 /Import File Strings/,/^$/ {
988510496 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
988610497 fi
988710498 fi
9888 rm -f core conftest.err conftest.$ac_objext \
10499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
988910500 conftest$ac_exeext conftest.$ac_ext
989010501 if test -z "$lt_cv_aix_libpath_"; then
989110502 lt_cv_aix_libpath_=/usr/lib:/lib
994810559
994910560 cygwin* | mingw* | pw32* | cegcc*)
995010561 # When not using gcc, we currently assume that we are using
9951 # Microsoft Visual C++.
10562 # Microsoft Visual C++ or Intel C++ Compiler.
995210563 # hardcode_libdir_flag_spec is actually meaningless, as there is
995310564 # no search path for DLLs.
995410565 case $cc_basename in
9955 cl*)
9956 # Native MSVC
10566 cl* | icl*)
10567 # Native MSVC or ICC
995710568 hardcode_libdir_flag_spec=' '
995810569 allow_undefined_flag=unsupported
995910570 always_export_symbols=yes
999410605 fi'
999510606 ;;
999610607 *)
9997 # Assume MSVC wrapper
10608 # Assume MSVC and ICC wrapper
999810609 hardcode_libdir_flag_spec=' '
999910610 allow_undefined_flag=unsupported
1000010611 # Tell ltmain to make .lib files, not .a files.
1003510646 output_verbose_link_cmd=func_echo_all
1003610647 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
1003710648 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10038 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10039 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10649 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10650 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1004010651
1004110652 else
1004210653 ld_shlibs=no
1007010681 ;;
1007110682
1007210683 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10073 freebsd* | dragonfly*)
10684 freebsd* | dragonfly* | midnightbsd*)
1007410685 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1007510686 hardcode_libdir_flag_spec='-R$libdir'
1007610687 hardcode_direct=yes
1013610747
1013710748 # Older versions of the 11.00 compiler do not understand -b yet
1013810749 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10140 $as_echo_n "checking if $CC understands -b... " >&6; }
10141 if ${lt_cv_prog_compiler__b+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10751 printf %s "checking if $CC understands -b... " >&6; }
10752 if test ${lt_cv_prog_compiler__b+y}
10753 then :
10754 printf %s "(cached) " >&6
10755 else $as_nop
1014410756 lt_cv_prog_compiler__b=no
1014510757 save_LDFLAGS=$LDFLAGS
1014610758 LDFLAGS="$LDFLAGS -b"
1016410776 LDFLAGS=$save_LDFLAGS
1016510777
1016610778 fi
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10168 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10780 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
1016910781
1017010782 if test yes = "$lt_cv_prog_compiler__b"; then
1017110783 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1020510817 # work, assume that -exports_file does not work either and
1020610818 # implicitly export all symbols.
1020710819 # This should be the same for all languages, so no per-tag cache variable.
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10209 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10210 if ${lt_cv_irix_exported_symbol+:} false; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10821 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10822 if test ${lt_cv_irix_exported_symbol+y}
10823 then :
10824 printf %s "(cached) " >&6
10825 else $as_nop
1021310826 save_LDFLAGS=$LDFLAGS
1021410827 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1021510828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1021610829 /* end confdefs.h. */
1021710830 int foo (void) { return 0; }
1021810831 _ACEOF
10219 if ac_fn_c_try_link "$LINENO"; then :
10832 if ac_fn_c_try_link "$LINENO"
10833 then :
1022010834 lt_cv_irix_exported_symbol=yes
10221 else
10835 else $as_nop
1022210836 lt_cv_irix_exported_symbol=no
1022310837 fi
10224 rm -f core conftest.err conftest.$ac_objext \
10838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1022510839 conftest$ac_exeext conftest.$ac_ext
1022610840 LDFLAGS=$save_LDFLAGS
1022710841 fi
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10229 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10843 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
1023010844 if test yes = "$lt_cv_irix_exported_symbol"; then
1023110845 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'
1023210846 fi
1031810932 emximp -o $lib $output_objdir/$libname.def'
1031910933 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
1032010934 enable_shared_with_static_runtimes=yes
10935 file_list_spec='@'
1032110936 ;;
1032210937
1032310938 osf3*)
1050611121 fi
1050711122 fi
1050811123
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10510 $as_echo "$ld_shlibs" >&6; }
11124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11125 printf "%s\n" "$ld_shlibs" >&6; }
1051111126 test no = "$ld_shlibs" && can_build_shared=no
1051211127
1051311128 with_gnu_ld=$with_gnu_ld
1054311158 # Test whether the compiler implicitly links with -lc since on some
1054411159 # systems, -lgcc has to come before -lc. If gcc already passes -lc
1054511160 # to ld, don't add -lc before -lgcc.
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10547 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10548 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10549 $as_echo_n "(cached) " >&6
10550 else
11161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11162 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11163 if test ${lt_cv_archive_cmds_need_lc+y}
11164 then :
11165 printf %s "(cached) " >&6
11166 else $as_nop
1055111167 $RM conftest*
1055211168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1055311169
1055411170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1055511171 (eval $ac_compile) 2>&5
1055611172 ac_status=$?
10557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1055811174 test $ac_status = 0; } 2>conftest.err; then
1055911175 soname=conftest
1056011176 lib=conftest
1057211188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1057311189 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1057411190 ac_status=$?
10575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1057611192 test $ac_status = 0; }
1057711193 then
1057811194 lt_cv_archive_cmds_need_lc=no
1058611202 $RM conftest*
1058711203
1058811204 fi
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10590 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11206 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
1059111207 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1059211208 ;;
1059311209 esac
1074611362
1074711363
1074811364
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10750 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11366 printf %s "checking dynamic linker characteristics... " >&6; }
1075111367
1075211368 if test yes = "$GCC"; then
1075311369 case $host_os in
1100911625 case $host_os in
1101011626 cygwin*)
1101111627 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11012 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11628 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1101311629
1101411630 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1101511631 ;;
1101911635 ;;
1102011636 pw32*)
1102111637 # pw32 DLLs use 'pw' prefix rather than 'lib'
11022 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11638 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1102311639 ;;
1102411640 esac
1102511641 dynamic_linker='Win32 ld.exe'
1102611642 ;;
1102711643
11028 *,cl*)
11029 # Native MSVC
11644 *,cl* | *,icl*)
11645 # Native MSVC or ICC
1103011646 libname_spec='$name'
1103111647 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1103211648 library_names_spec='$libname.dll.lib'
1104511661 done
1104611662 IFS=$lt_save_ifs
1104711663 # Convert to MSYS style.
11048 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11664 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1104911665 ;;
1105011666 cygwin*)
1105111667 # Convert to unix form, then to dos form, then back to unix form
1108211698 ;;
1108311699
1108411700 *)
11085 # Assume MSVC wrapper
11701 # Assume MSVC and ICC wrapper
1108611702 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1108711703 dynamic_linker='Win32 ld.exe'
1108811704 ;;
1111511731 shlibpath_var=LD_LIBRARY_PATH
1111611732 ;;
1111711733
11118 freebsd* | dragonfly*)
11734 freebsd* | dragonfly* | midnightbsd*)
1111911735 # DragonFly does not have aout. When/if they implement a new
1112011736 # versioning mechanism, adjust this.
1112111737 if test -x /usr/bin/objformat; then
1130811924 shlibpath_overrides_runpath=no
1130911925
1131011926 # Some binutils ld are patched to set DT_RUNPATH
11311 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11927 if test ${lt_cv_shlibpath_overrides_runpath+y}
11928 then :
11929 printf %s "(cached) " >&6
11930 else $as_nop
1131411931 lt_cv_shlibpath_overrides_runpath=no
1131511932 save_LDFLAGS=$LDFLAGS
1131611933 save_libdir=$libdir
1132011937 /* end confdefs.h. */
1132111938
1132211939 int
11323 main ()
11940 main (void)
1132411941 {
1132511942
1132611943 ;
1132711944 return 0;
1132811945 }
1132911946 _ACEOF
11330 if ac_fn_c_try_link "$LINENO"; then :
11331 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11947 if ac_fn_c_try_link "$LINENO"
11948 then :
11949 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11950 then :
1133211951 lt_cv_shlibpath_overrides_runpath=yes
1133311952 fi
1133411953 fi
11335 rm -f core conftest.err conftest.$ac_objext \
11954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1133611955 conftest$ac_exeext conftest.$ac_ext
1133711956 LDFLAGS=$save_LDFLAGS
1133811957 libdir=$save_libdir
1156412183 dynamic_linker=no
1156512184 ;;
1156612185 esac
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11568 $as_echo "$dynamic_linker" >&6; }
12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12187 printf "%s\n" "$dynamic_linker" >&6; }
1156912188 test no = "$dynamic_linker" && can_build_shared=no
1157012189
1157112190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1168612305
1168712306
1168812307
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11690 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12309 printf %s "checking how to hardcode library paths into programs... " >&6; }
1169112310 hardcode_action=
1169212311 if test -n "$hardcode_libdir_flag_spec" ||
1169312312 test -n "$runpath_var" ||
1171112330 # directories.
1171212331 hardcode_action=unsupported
1171312332 fi
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11715 $as_echo "$hardcode_action" >&6; }
12333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12334 printf "%s\n" "$hardcode_action" >&6; }
1171612335
1171712336 if test relink = "$hardcode_action" ||
1171812337 test yes = "$inherit_rpath"; then
1175612375
1175712376 darwin*)
1175812377 # if libdl is installed we need to link against it
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11760 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11761 if ${ac_cv_lib_dl_dlopen+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763 else
12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12379 printf %s "checking for dlopen in -ldl... " >&6; }
12380 if test ${ac_cv_lib_dl_dlopen+y}
12381 then :
12382 printf %s "(cached) " >&6
12383 else $as_nop
1176412384 ac_check_lib_save_LIBS=$LIBS
1176512385 LIBS="-ldl $LIBS"
1176612386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1176912389 /* Override any GCC internal prototype to avoid an error.
1177012390 Use char because int might match the return type of a GCC
1177112391 builtin and then its argument prototype would still apply. */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
1177512392 char dlopen ();
1177612393 int
11777 main ()
12394 main (void)
1177812395 {
1177912396 return dlopen ();
1178012397 ;
1178112398 return 0;
1178212399 }
1178312400 _ACEOF
11784 if ac_fn_c_try_link "$LINENO"; then :
12401 if ac_fn_c_try_link "$LINENO"
12402 then :
1178512403 ac_cv_lib_dl_dlopen=yes
11786 else
12404 else $as_nop
1178712405 ac_cv_lib_dl_dlopen=no
1178812406 fi
11789 rm -f core conftest.err conftest.$ac_objext \
12407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1179012408 conftest$ac_exeext conftest.$ac_ext
1179112409 LIBS=$ac_check_lib_save_LIBS
1179212410 fi
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11794 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11795 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12412 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12413 if test "x$ac_cv_lib_dl_dlopen" = xyes
12414 then :
1179612415 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11797 else
12416 else $as_nop
1179812417
1179912418 lt_cv_dlopen=dyld
1180012419 lt_cv_dlopen_libs=
1181412433
1181512434 *)
1181612435 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11817 if test "x$ac_cv_func_shl_load" = xyes; then :
12436 if test "x$ac_cv_func_shl_load" = xyes
12437 then :
1181812438 lt_cv_dlopen=shl_load
11819 else
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11821 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11822 if ${ac_cv_lib_dld_shl_load+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824 else
12439 else $as_nop
12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12441 printf %s "checking for shl_load in -ldld... " >&6; }
12442 if test ${ac_cv_lib_dld_shl_load+y}
12443 then :
12444 printf %s "(cached) " >&6
12445 else $as_nop
1182512446 ac_check_lib_save_LIBS=$LIBS
1182612447 LIBS="-ldld $LIBS"
1182712448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1183012451 /* Override any GCC internal prototype to avoid an error.
1183112452 Use char because int might match the return type of a GCC
1183212453 builtin and then its argument prototype would still apply. */
11833 #ifdef __cplusplus
11834 extern "C"
11835 #endif
1183612454 char shl_load ();
1183712455 int
11838 main ()
12456 main (void)
1183912457 {
1184012458 return shl_load ();
1184112459 ;
1184212460 return 0;
1184312461 }
1184412462 _ACEOF
11845 if ac_fn_c_try_link "$LINENO"; then :
12463 if ac_fn_c_try_link "$LINENO"
12464 then :
1184612465 ac_cv_lib_dld_shl_load=yes
11847 else
12466 else $as_nop
1184812467 ac_cv_lib_dld_shl_load=no
1184912468 fi
11850 rm -f core conftest.err conftest.$ac_objext \
12469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1185112470 conftest$ac_exeext conftest.$ac_ext
1185212471 LIBS=$ac_check_lib_save_LIBS
1185312472 fi
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11855 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11856 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12474 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12475 if test "x$ac_cv_lib_dld_shl_load" = xyes
12476 then :
1185712477 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11858 else
12478 else $as_nop
1185912479 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11860 if test "x$ac_cv_func_dlopen" = xyes; then :
12480 if test "x$ac_cv_func_dlopen" = xyes
12481 then :
1186112482 lt_cv_dlopen=dlopen
11862 else
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11864 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11865 if ${ac_cv_lib_dl_dlopen+:} false; then :
11866 $as_echo_n "(cached) " >&6
11867 else
12483 else $as_nop
12484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12485 printf %s "checking for dlopen in -ldl... " >&6; }
12486 if test ${ac_cv_lib_dl_dlopen+y}
12487 then :
12488 printf %s "(cached) " >&6
12489 else $as_nop
1186812490 ac_check_lib_save_LIBS=$LIBS
1186912491 LIBS="-ldl $LIBS"
1187012492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1187312495 /* Override any GCC internal prototype to avoid an error.
1187412496 Use char because int might match the return type of a GCC
1187512497 builtin and then its argument prototype would still apply. */
11876 #ifdef __cplusplus
11877 extern "C"
11878 #endif
1187912498 char dlopen ();
1188012499 int
11881 main ()
12500 main (void)
1188212501 {
1188312502 return dlopen ();
1188412503 ;
1188512504 return 0;
1188612505 }
1188712506 _ACEOF
11888 if ac_fn_c_try_link "$LINENO"; then :
12507 if ac_fn_c_try_link "$LINENO"
12508 then :
1188912509 ac_cv_lib_dl_dlopen=yes
11890 else
12510 else $as_nop
1189112511 ac_cv_lib_dl_dlopen=no
1189212512 fi
11893 rm -f core conftest.err conftest.$ac_objext \
12513 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1189412514 conftest$ac_exeext conftest.$ac_ext
1189512515 LIBS=$ac_check_lib_save_LIBS
1189612516 fi
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11898 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11899 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12518 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12519 if test "x$ac_cv_lib_dl_dlopen" = xyes
12520 then :
1190012521 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11903 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11904 if ${ac_cv_lib_svld_dlopen+:} false; then :
11905 $as_echo_n "(cached) " >&6
11906 else
12522 else $as_nop
12523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12524 printf %s "checking for dlopen in -lsvld... " >&6; }
12525 if test ${ac_cv_lib_svld_dlopen+y}
12526 then :
12527 printf %s "(cached) " >&6
12528 else $as_nop
1190712529 ac_check_lib_save_LIBS=$LIBS
1190812530 LIBS="-lsvld $LIBS"
1190912531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1191212534 /* Override any GCC internal prototype to avoid an error.
1191312535 Use char because int might match the return type of a GCC
1191412536 builtin and then its argument prototype would still apply. */
11915 #ifdef __cplusplus
11916 extern "C"
11917 #endif
1191812537 char dlopen ();
1191912538 int
11920 main ()
12539 main (void)
1192112540 {
1192212541 return dlopen ();
1192312542 ;
1192412543 return 0;
1192512544 }
1192612545 _ACEOF
11927 if ac_fn_c_try_link "$LINENO"; then :
12546 if ac_fn_c_try_link "$LINENO"
12547 then :
1192812548 ac_cv_lib_svld_dlopen=yes
11929 else
12549 else $as_nop
1193012550 ac_cv_lib_svld_dlopen=no
1193112551 fi
11932 rm -f core conftest.err conftest.$ac_objext \
12552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1193312553 conftest$ac_exeext conftest.$ac_ext
1193412554 LIBS=$ac_check_lib_save_LIBS
1193512555 fi
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11937 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11938 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12557 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12558 if test "x$ac_cv_lib_svld_dlopen" = xyes
12559 then :
1193912560 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11942 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11943 if ${ac_cv_lib_dld_dld_link+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
12561 else $as_nop
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12563 printf %s "checking for dld_link in -ldld... " >&6; }
12564 if test ${ac_cv_lib_dld_dld_link+y}
12565 then :
12566 printf %s "(cached) " >&6
12567 else $as_nop
1194612568 ac_check_lib_save_LIBS=$LIBS
1194712569 LIBS="-ldld $LIBS"
1194812570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1195112573 /* Override any GCC internal prototype to avoid an error.
1195212574 Use char because int might match the return type of a GCC
1195312575 builtin and then its argument prototype would still apply. */
11954 #ifdef __cplusplus
11955 extern "C"
11956 #endif
1195712576 char dld_link ();
1195812577 int
11959 main ()
12578 main (void)
1196012579 {
1196112580 return dld_link ();
1196212581 ;
1196312582 return 0;
1196412583 }
1196512584 _ACEOF
11966 if ac_fn_c_try_link "$LINENO"; then :
12585 if ac_fn_c_try_link "$LINENO"
12586 then :
1196712587 ac_cv_lib_dld_dld_link=yes
11968 else
12588 else $as_nop
1196912589 ac_cv_lib_dld_dld_link=no
1197012590 fi
11971 rm -f core conftest.err conftest.$ac_objext \
12591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1197212592 conftest$ac_exeext conftest.$ac_ext
1197312593 LIBS=$ac_check_lib_save_LIBS
1197412594 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11976 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11977 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12596 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12597 if test "x$ac_cv_lib_dld_dld_link" = xyes
12598 then :
1197812599 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1197912600 fi
1198012601
1201312634 save_LIBS=$LIBS
1201412635 LIBS="$lt_cv_dlopen_libs $LIBS"
1201512636
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12017 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12018 if ${lt_cv_dlopen_self+:} false; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12638 printf %s "checking whether a program can dlopen itself... " >&6; }
12639 if test ${lt_cv_dlopen_self+y}
12640 then :
12641 printf %s "(cached) " >&6
12642 else $as_nop
1202112643 if test yes = "$cross_compiling"; then :
1202212644 lt_cv_dlopen_self=cross
1202312645 else
1209612718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1209712719 (eval $ac_link) 2>&5
1209812720 ac_status=$?
12099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1210012722 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1210112723 (./conftest; exit; ) >&5 2>/dev/null
1210212724 lt_status=$?
1211412736
1211512737
1211612738 fi
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12118 $as_echo "$lt_cv_dlopen_self" >&6; }
12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12740 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
1211912741
1212012742 if test yes = "$lt_cv_dlopen_self"; then
1212112743 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12123 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12124 if ${lt_cv_dlopen_self_static+:} false; then :
12125 $as_echo_n "(cached) " >&6
12126 else
12744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12745 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12746 if test ${lt_cv_dlopen_self_static+y}
12747 then :
12748 printf %s "(cached) " >&6
12749 else $as_nop
1212712750 if test yes = "$cross_compiling"; then :
1212812751 lt_cv_dlopen_self_static=cross
1212912752 else
1220212825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1220312826 (eval $ac_link) 2>&5
1220412827 ac_status=$?
12205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1220612829 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1220712830 (./conftest; exit; ) >&5 2>/dev/null
1220812831 lt_status=$?
1222012843
1222112844
1222212845 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12224 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12847 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
1222512848 fi
1222612849
1222712850 CPPFLAGS=$save_CPPFLAGS
1225912882
1226012883 striplib=
1226112884 old_striplib=
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12263 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12264 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12265 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12266 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12268 $as_echo "yes" >&6; }
12269 else
12270 # FIXME - insert some real tests, host_os isn't really good enough
12271 case $host_os in
12272 darwin*)
12273 if test -n "$STRIP"; then
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12886 printf %s "checking whether stripping libraries is possible... " >&6; }
12887 if test -z "$STRIP"; then
12888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 printf "%s\n" "no" >&6; }
12890 else
12891 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12892 old_striplib="$STRIP --strip-debug"
12893 striplib="$STRIP --strip-unneeded"
12894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12895 printf "%s\n" "yes" >&6; }
12896 else
12897 case $host_os in
12898 darwin*)
12899 # FIXME - insert some real tests, host_os isn't really good enough
1227412900 striplib="$STRIP -x"
1227512901 old_striplib="$STRIP -S"
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12277 $as_echo "yes" >&6; }
12278 else
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12280 $as_echo "no" >&6; }
12281 fi
12282 ;;
12283 *)
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 ;;
12287 esac
12902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903 printf "%s\n" "yes" >&6; }
12904 ;;
12905 freebsd*)
12906 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12907 old_striplib="$STRIP --strip-debug"
12908 striplib="$STRIP --strip-unneeded"
12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910 printf "%s\n" "yes" >&6; }
12911 else
12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913 printf "%s\n" "no" >&6; }
12914 fi
12915 ;;
12916 *)
12917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 printf "%s\n" "no" >&6; }
12919 ;;
12920 esac
12921 fi
1228812922 fi
1228912923
1229012924
1229912933
1230012934
1230112935 # Report what library types will actually be built
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12303 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12305 $as_echo "$can_build_shared" >&6; }
12306
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12308 $as_echo_n "checking whether to build shared libraries... " >&6; }
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12937 printf %s "checking if libtool supports shared libraries... " >&6; }
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12939 printf "%s\n" "$can_build_shared" >&6; }
12940
12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12942 printf %s "checking whether to build shared libraries... " >&6; }
1230912943 test no = "$can_build_shared" && enable_shared=no
1231012944
1231112945 # On AIX, shared libraries and static libraries use the same namespace, and
1232912963 fi
1233012964 ;;
1233112965 esac
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12333 $as_echo "$enable_shared" >&6; }
12334
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12336 $as_echo_n "checking whether to build static libraries... " >&6; }
12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12967 printf "%s\n" "$enable_shared" >&6; }
12968
12969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12970 printf %s "checking whether to build static libraries... " >&6; }
1233712971 # Make sure either enable_shared or enable_static is yes.
1233812972 test yes = "$enable_shared" || enable_static=yes
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12340 $as_echo "$enable_static" >&6; }
12973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12974 printf "%s\n" "$enable_static" >&6; }
1234112975
1234212976
1234312977
1237313007 # Only expand once:
1237413008
1237513009
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12377 $as_echo_n "checking whether ln -s works... " >&6; }
13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13011 printf %s "checking whether ln -s works... " >&6; }
1237813012 LN_S=$as_ln_s
1237913013 if test "$LN_S" = "ln -s"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12381 $as_echo "yes" >&6; }
12382 else
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12384 $as_echo "no, using $LN_S" >&6; }
13014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13015 printf "%s\n" "yes" >&6; }
13016 else
13017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13018 printf "%s\n" "no, using $LN_S" >&6; }
1238513019 fi
1238613020
1238713021
1238813022
1238913023 # Check whether --with-slibdir was given.
12390 if test "${with_slibdir+set}" = set; then :
13024 if test ${with_slibdir+y}
13025 then :
1239113026 withval=$with_slibdir; slibdir="$withval"
12392 else
13027 else $as_nop
1239313028 slibdir="/lib"
1239413029 fi
1239513030
1239613031
1239713032
1239813033 # Check whether --with-ssbindir was given.
12399 if test "${with_ssbindir+set}" = set; then :
13034 if test ${with_ssbindir+y}
13035 then :
1240013036 withval=$with_ssbindir; ssbindir="$withval"
12401 else
13037 else $as_nop
1240213038 ssbindir="/sbin"
1240313039 fi
1240413040
1240513041
1240613042
1240713043 # Check whether --with-rundir was given.
12408 if test "${with_rundir+set}" = set; then :
13044 if test ${with_rundir+y}
13045 then :
1240913046 withval=$with_rundir; rundir="$withval"
12410 else
13047 else $as_nop
1241113048 rundir="/run"
1241213049 fi
1241313050
1241413051
1241513052
1241613053 # Check whether --with-dtd was given.
12417 if test "${with_dtd+set}" = set; then :
13054 if test ${with_dtd+y}
13055 then :
1241813056 withval=$with_dtd; with_dtd=true
12419 else
13057 else $as_nop
1242013058 with_dtd=false
1242113059 fi
1242213060
1242313061
1242413062 # Check whether --with-selinux was given.
12425 if test "${with_selinux+set}" = set; then :
13063 if test ${with_selinux+y}
13064 then :
1242613065 withval=$with_selinux; with_selinux=true
12427 else
13066 else $as_nop
1242813067 with_selinux=false
1242913068 fi
1243013069
1243113070 # Check whether --enable-la was given.
12432 if test "${enable_la+set}" = set; then :
13071 if test ${enable_la+y}
13072 then :
1243313073 enableval=$enable_la; keep_la=true
12434 else
13074 else $as_nop
1243513075 keep_la=false
1243613076 fi
1243713077
1246913109
1247013110 saved_CFLAGS="$CFLAGS"
1247113111 CFLAGS="$saved_CFLAGS -fvisibility=hidden"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts -fvisibility=hidden" >&5
12473 $as_echo_n "checking whether compiler accepts -fvisibility=hidden... " >&6; }
12474 if ${ac_cv_fvisibility_hidden+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
13112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts -fvisibility=hidden" >&5
13113 printf %s "checking whether compiler accepts -fvisibility=hidden... " >&6; }
13114 if test ${ac_cv_fvisibility_hidden+y}
13115 then :
13116 printf %s "(cached) " >&6
13117 else $as_nop
1247713118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1247813119 /* end confdefs.h. */
1247913120
1248013121 _ACEOF
12481 if ac_fn_c_try_compile "$LINENO"; then :
13122 if ac_fn_c_try_compile "$LINENO"
13123 then :
1248213124 ac_cv_fvisibility_hidden=yes
12483 else
13125 else $as_nop
1248413126 ac_cv_fvisibility_hidden=no
1248513127
1248613128 fi
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 fi
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fvisibility_hidden" >&5
12490 $as_echo "$ac_cv_fvisibility_hidden" >&6; }
13129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13130 fi
13131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fvisibility_hidden" >&5
13132 printf "%s\n" "$ac_cv_fvisibility_hidden" >&6; }
1249113133 if test "$ac_cv_fvisibility_hidden" = "yes"; then
1249213134
12493 $as_echo "#define HAVE_VISIBILITY_HIDDEN 1" >>confdefs.h
13135 printf "%s\n" "#define HAVE_VISIBILITY_HIDDEN 1" >>confdefs.h
1249413136
1249513137 GCC_FVISIBILITY_HIDDEN=-fvisibility=hidden
1249613138
1251113153
1251213154
1251313155
12514 for ac_header in linux/fs.h linux/major.h dev/cgdvar.h dev/vndvar.h
12515 do :
12516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12517 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12518 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12519 cat >>confdefs.h <<_ACEOF
12520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12521 _ACEOF
12522
12523 fi
12524
12525 done
12526
12527 for ac_header in sys/mdioctl.h sys/mount.h sys/statvfs.h
12528 do :
12529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12530 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12531 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12532 cat >>confdefs.h <<_ACEOF
12533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12534 _ACEOF
12535
12536 fi
12537
12538 done
13156 ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
13157 if test "x$ac_cv_header_linux_fs_h" = xyes
13158 then :
13159 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
13160
13161 fi
13162 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
13163 if test "x$ac_cv_header_linux_major_h" = xyes
13164 then :
13165 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
13166
13167 fi
13168 ac_fn_c_check_header_compile "$LINENO" "dev/cgdvar.h" "ac_cv_header_dev_cgdvar_h" "$ac_includes_default"
13169 if test "x$ac_cv_header_dev_cgdvar_h" = xyes
13170 then :
13171 printf "%s\n" "#define HAVE_DEV_CGDVAR_H 1" >>confdefs.h
13172
13173 fi
13174 ac_fn_c_check_header_compile "$LINENO" "dev/vndvar.h" "ac_cv_header_dev_vndvar_h" "$ac_includes_default"
13175 if test "x$ac_cv_header_dev_vndvar_h" = xyes
13176 then :
13177 printf "%s\n" "#define HAVE_DEV_VNDVAR_H 1" >>confdefs.h
13178
13179 fi
13180
13181 ac_fn_c_check_header_compile "$LINENO" "sys/mdioctl.h" "ac_cv_header_sys_mdioctl_h" "$ac_includes_default"
13182 if test "x$ac_cv_header_sys_mdioctl_h" = xyes
13183 then :
13184 printf "%s\n" "#define HAVE_SYS_MDIOCTL_H 1" >>confdefs.h
13185
13186 fi
13187 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
13188 if test "x$ac_cv_header_sys_mount_h" = xyes
13189 then :
13190 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
13191
13192 fi
13193 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
13194 if test "x$ac_cv_header_sys_statvfs_h" = xyes
13195 then :
13196 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
13197
13198 fi
1253913199
1254013200 ac_fn_c_check_member "$LINENO" "struct loop_info64" "lo_file_name" "ac_cv_member_struct_loop_info64_lo_file_name" "#include <linux/loop.h>
1254113201 "
12542 if test "x$ac_cv_member_struct_loop_info64_lo_file_name" = xyes; then :
12543
12544 cat >>confdefs.h <<_ACEOF
12545 #define HAVE_STRUCT_LOOP_INFO64_LO_FILE_NAME 1
12546 _ACEOF
12547
12548
12549 fi
12550
12551 for ac_func in getgrouplist getgroups setgroups
12552 do :
12553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12554 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12555 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12556 cat >>confdefs.h <<_ACEOF
12557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12558 _ACEOF
12559
12560 fi
12561 done
13202 if test "x$ac_cv_member_struct_loop_info64_lo_file_name" = xyes
13203 then :
13204
13205 printf "%s\n" "#define HAVE_STRUCT_LOOP_INFO64_LO_FILE_NAME 1" >>confdefs.h
13206
13207
13208 fi
13209
13210 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
13211 if test "x$ac_cv_func_getgrouplist" = xyes
13212 then :
13213 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
13214
13215 fi
13216 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
13217 if test "x$ac_cv_func_getgroups" = xyes
13218 then :
13219 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
13220
13221 fi
13222 ac_fn_c_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups"
13223 if test "x$ac_cv_func_setgroups" = xyes
13224 then :
13225 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
13226
13227 fi
1256213228
1256313229 if test "x$ac_cv_header_dev_cgdvar_h" = "xyes"; then
1256413230 HAVE_CGD_TRUE=
1259613262 if test -n "$ac_tool_prefix"; then
1259713263 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1259813264 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600 $as_echo_n "checking for $ac_word... " >&6; }
12601 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
13265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266 printf %s "checking for $ac_word... " >&6; }
13267 if test ${ac_cv_path_PKG_CONFIG+y}
13268 then :
13269 printf %s "(cached) " >&6
13270 else $as_nop
1260413271 case $PKG_CONFIG in
1260513272 [\\/]* | ?:[\\/]*)
1260613273 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1261013277 for as_dir in $PATH
1261113278 do
1261213279 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
13280 case $as_dir in #(((
13281 '') as_dir=./ ;;
13282 */) ;;
13283 *) as_dir=$as_dir/ ;;
13284 esac
1261413285 for ac_exec_ext in '' $ac_executable_extensions; do
12615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12616 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13287 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1261813289 break 2
1261913290 fi
1262013291 done
1262613297 fi
1262713298 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1262813299 if test -n "$PKG_CONFIG"; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12630 $as_echo "$PKG_CONFIG" >&6; }
12631 else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633 $as_echo "no" >&6; }
13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13301 printf "%s\n" "$PKG_CONFIG" >&6; }
13302 else
13303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 printf "%s\n" "no" >&6; }
1263413305 fi
1263513306
1263613307
1263913310 ac_pt_PKG_CONFIG=$PKG_CONFIG
1264013311 # Extract the first word of "pkg-config", so it can be a program name with args.
1264113312 set dummy pkg-config; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12645 $as_echo_n "(cached) " >&6
12646 else
13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13314 printf %s "checking for $ac_word... " >&6; }
13315 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13316 then :
13317 printf %s "(cached) " >&6
13318 else $as_nop
1264713319 case $ac_pt_PKG_CONFIG in
1264813320 [\\/]* | ?:[\\/]*)
1264913321 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
1265313325 for as_dir in $PATH
1265413326 do
1265513327 IFS=$as_save_IFS
12656 test -z "$as_dir" && as_dir=.
13328 case $as_dir in #(((
13329 '') as_dir=./ ;;
13330 */) ;;
13331 *) as_dir=$as_dir/ ;;
13332 esac
1265713333 for ac_exec_ext in '' $ac_executable_extensions; do
12658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12659 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13335 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1266113337 break 2
1266213338 fi
1266313339 done
1266913345 fi
1267013346 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
1267113347 if test -n "$ac_pt_PKG_CONFIG"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12673 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13349 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13350 else
13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352 printf "%s\n" "no" >&6; }
1267713353 fi
1267813354
1267913355 if test "x$ac_pt_PKG_CONFIG" = x; then
1268113357 else
1268213358 case $cross_compiling:$ac_tool_warned in
1268313359 yes:)
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13361 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1268613362 ac_tool_warned=yes ;;
1268713363 esac
1268813364 PKG_CONFIG=$ac_pt_PKG_CONFIG
1269413370 fi
1269513371 if test -n "$PKG_CONFIG"; then
1269613372 _pkg_min_version=0.9.0
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12698 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13374 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
1269913375 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12701 $as_echo "yes" >&6; }
13376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13377 printf "%s\n" "yes" >&6; }
1270213378 else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 printf "%s\n" "no" >&6; }
1270513381 PKG_CONFIG=""
1270613382 fi
1270713383 fi
1270813384
1270913385 pkg_failed=no
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libHX >= 3.12.1" >&5
12711 $as_echo_n "checking for libHX >= 3.12.1... " >&6; }
13386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libHX" >&5
13387 printf %s "checking for libHX... " >&6; }
1271213388
1271313389 if test -n "$libHX_CFLAGS"; then
1271413390 pkg_cv_libHX_CFLAGS="$libHX_CFLAGS"
1271513391 elif test -n "$PKG_CONFIG"; then
1271613392 if test -n "$PKG_CONFIG" && \
12717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libHX >= 3.12.1\""; } >&5
13393 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libHX >= 3.12.1\""; } >&5
1271813394 ($PKG_CONFIG --exists --print-errors "libHX >= 3.12.1") 2>&5
1271913395 ac_status=$?
12720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1272113397 test $ac_status = 0; }; then
1272213398 pkg_cv_libHX_CFLAGS=`$PKG_CONFIG --cflags "libHX >= 3.12.1" 2>/dev/null`
1272313399 test "x$?" != "x0" && pkg_failed=yes
1273113407 pkg_cv_libHX_LIBS="$libHX_LIBS"
1273213408 elif test -n "$PKG_CONFIG"; then
1273313409 if test -n "$PKG_CONFIG" && \
12734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libHX >= 3.12.1\""; } >&5
13410 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libHX >= 3.12.1\""; } >&5
1273513411 ($PKG_CONFIG --exists --print-errors "libHX >= 3.12.1") 2>&5
1273613412 ac_status=$?
12737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1273813414 test $ac_status = 0; }; then
1273913415 pkg_cv_libHX_LIBS=`$PKG_CONFIG --libs "libHX >= 3.12.1" 2>/dev/null`
1274013416 test "x$?" != "x0" && pkg_failed=yes
1274813424
1274913425
1275013426 if test $pkg_failed = yes; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
13427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428 printf "%s\n" "no" >&6; }
1275313429
1275413430 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1275513431 _pkg_short_errors_supported=yes
1277513451 and libHX_LIBS to avoid the need to call pkg-config.
1277613452 See the pkg-config man page for more details." "$LINENO" 5
1277713453 elif test $pkg_failed = untried; then
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 printf "%s\n" "no" >&6; }
13456 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13457 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1278213458 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1278313459 is in your PATH or set the PKG_CONFIG environment variable to the full
1278413460 path to pkg-config.
1279213468 else
1279313469 libHX_CFLAGS=$pkg_cv_libHX_CFLAGS
1279413470 libHX_LIBS=$pkg_cv_libHX_LIBS
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12796 $as_echo "yes" >&6; }
13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13472 printf "%s\n" "yes" >&6; }
1279713473
1279813474 fi
1279913475
1280013476 pkg_failed=no
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mount >= 2.20" >&5
12802 $as_echo_n "checking for mount >= 2.20... " >&6; }
13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmount" >&5
13478 printf %s "checking for libmount... " >&6; }
1280313479
1280413480 if test -n "$libmount_CFLAGS"; then
1280513481 pkg_cv_libmount_CFLAGS="$libmount_CFLAGS"
1280613482 elif test -n "$PKG_CONFIG"; then
1280713483 if test -n "$PKG_CONFIG" && \
12808 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mount >= 2.20\""; } >&5
13484 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mount >= 2.20\""; } >&5
1280913485 ($PKG_CONFIG --exists --print-errors "mount >= 2.20") 2>&5
1281013486 ac_status=$?
12811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1281213488 test $ac_status = 0; }; then
1281313489 pkg_cv_libmount_CFLAGS=`$PKG_CONFIG --cflags "mount >= 2.20" 2>/dev/null`
1281413490 test "x$?" != "x0" && pkg_failed=yes
1282213498 pkg_cv_libmount_LIBS="$libmount_LIBS"
1282313499 elif test -n "$PKG_CONFIG"; then
1282413500 if test -n "$PKG_CONFIG" && \
12825 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mount >= 2.20\""; } >&5
13501 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mount >= 2.20\""; } >&5
1282613502 ($PKG_CONFIG --exists --print-errors "mount >= 2.20") 2>&5
1282713503 ac_status=$?
12828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1282913505 test $ac_status = 0; }; then
1283013506 pkg_cv_libmount_LIBS=`$PKG_CONFIG --libs "mount >= 2.20" 2>/dev/null`
1283113507 test "x$?" != "x0" && pkg_failed=yes
1283913515
1284013516
1284113517 if test $pkg_failed = yes; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843 $as_echo "no" >&6; }
13518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519 printf "%s\n" "no" >&6; }
1284413520
1284513521 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1284613522 _pkg_short_errors_supported=yes
1286613542 and libmount_LIBS to avoid the need to call pkg-config.
1286713543 See the pkg-config man page for more details." "$LINENO" 5
1286813544 elif test $pkg_failed = untried; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870 $as_echo "no" >&6; }
12871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13546 printf "%s\n" "no" >&6; }
13547 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13548 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1287313549 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1287413550 is in your PATH or set the PKG_CONFIG environment variable to the full
1287513551 path to pkg-config.
1288313559 else
1288413560 libmount_CFLAGS=$pkg_cv_libmount_CFLAGS
1288513561 libmount_LIBS=$pkg_cv_libmount_LIBS
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12887 $as_echo "yes" >&6; }
13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13563 printf "%s\n" "yes" >&6; }
1288813564
1288913565 fi
1289013566
1289113567 pkg_failed=no
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6" >&5
12893 $as_echo_n "checking for libxml-2.0 >= 2.6... " >&6; }
13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml" >&5
13569 printf %s "checking for libxml... " >&6; }
1289413570
1289513571 if test -n "$libxml_CFLAGS"; then
1289613572 pkg_cv_libxml_CFLAGS="$libxml_CFLAGS"
1289713573 elif test -n "$PKG_CONFIG"; then
1289813574 if test -n "$PKG_CONFIG" && \
12899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
13575 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
1290013576 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
1290113577 ac_status=$?
12902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1290313579 test $ac_status = 0; }; then
1290413580 pkg_cv_libxml_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
1290513581 test "x$?" != "x0" && pkg_failed=yes
1291313589 pkg_cv_libxml_LIBS="$libxml_LIBS"
1291413590 elif test -n "$PKG_CONFIG"; then
1291513591 if test -n "$PKG_CONFIG" && \
12916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
13592 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
1291713593 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
1291813594 ac_status=$?
12919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1292013596 test $ac_status = 0; }; then
1292113597 pkg_cv_libxml_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
1292213598 test "x$?" != "x0" && pkg_failed=yes
1293013606
1293113607
1293213608 if test $pkg_failed = yes; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
13609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 printf "%s\n" "no" >&6; }
1293513611
1293613612 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1293713613 _pkg_short_errors_supported=yes
1295713633 and libxml_LIBS to avoid the need to call pkg-config.
1295813634 See the pkg-config man page for more details." "$LINENO" 5
1295913635 elif test $pkg_failed = untried; then
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 $as_echo "no" >&6; }
12962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 printf "%s\n" "no" >&6; }
13638 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13639 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1296413640 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1296513641 is in your PATH or set the PKG_CONFIG environment variable to the full
1296613642 path to pkg-config.
1297413650 else
1297513651 libxml_CFLAGS=$pkg_cv_libxml_CFLAGS
1297613652 libxml_LIBS=$pkg_cv_libxml_LIBS
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12978 $as_echo "yes" >&6; }
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13654 printf "%s\n" "yes" >&6; }
1297913655
1298013656 fi
1298113657
1298213658 pkg_failed=no
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre2-8" >&5
12984 $as_echo_n "checking for libpcre2-8... " >&6; }
13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpcre2" >&5
13660 printf %s "checking for libpcre2... " >&6; }
1298513661
1298613662 if test -n "$libpcre2_CFLAGS"; then
1298713663 pkg_cv_libpcre2_CFLAGS="$libpcre2_CFLAGS"
1298813664 elif test -n "$PKG_CONFIG"; then
1298913665 if test -n "$PKG_CONFIG" && \
12990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
13666 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
1299113667 ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5
1299213668 ac_status=$?
12993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1299413670 test $ac_status = 0; }; then
1299513671 pkg_cv_libpcre2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8" 2>/dev/null`
1299613672 test "x$?" != "x0" && pkg_failed=yes
1300413680 pkg_cv_libpcre2_LIBS="$libpcre2_LIBS"
1300513681 elif test -n "$PKG_CONFIG"; then
1300613682 if test -n "$PKG_CONFIG" && \
13007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
13683 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
1300813684 ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5
1300913685 ac_status=$?
13010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1301113687 test $ac_status = 0; }; then
1301213688 pkg_cv_libpcre2_LIBS=`$PKG_CONFIG --libs "libpcre2-8" 2>/dev/null`
1301313689 test "x$?" != "x0" && pkg_failed=yes
1302113697
1302213698
1302313699 if test $pkg_failed = yes; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 printf "%s\n" "no" >&6; }
1302613702
1302713703 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1302813704 _pkg_short_errors_supported=yes
1304813724 and libpcre2_LIBS to avoid the need to call pkg-config.
1304913725 See the pkg-config man page for more details." "$LINENO" 5
1305013726 elif test $pkg_failed = untried; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 printf "%s\n" "no" >&6; }
13729 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13730 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1305513731 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1305613732 is in your PATH or set the PKG_CONFIG environment variable to the full
1305713733 path to pkg-config.
1306513741 else
1306613742 libpcre2_CFLAGS=$pkg_cv_libpcre2_CFLAGS
1306713743 libpcre2_LIBS=$pkg_cv_libpcre2_LIBS
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13069 $as_echo "yes" >&6; }
13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13745 printf "%s\n" "yes" >&6; }
1307013746
1307113747 fi
1307213748
1307313749
1307413750 # Check whether --with-crypto was given.
13075 if test "${with_crypto+set}" = set; then :
13751 if test ${with_crypto+y}
13752 then :
1307613753 withval=$with_crypto; with_crypto="$withval"
13077 else
13754 else $as_nop
1307813755 with_crypto="auto"
1307913756
1308013757 fi
1308213759
1308313760
1308413761 # Check whether --with-cryptsetup was given.
13085 if test "${with_cryptsetup+set}" = set; then :
13762 if test ${with_cryptsetup+y}
13763 then :
1308613764 withval=$with_cryptsetup; with_cryptsetup="$withval"
13087 else
13765 else $as_nop
1308813766 with_cryptsetup="auto"
1308913767
1309013768 fi
1309313771 if test "$with_crypto" != no; then
1309413772
1309513773 pkg_failed=no
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcrypto >= 0.9.8" >&5
13097 $as_echo_n "checking for libcrypto >= 0.9.8... " >&6; }
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto" >&5
13775 printf %s "checking for libcrypto... " >&6; }
1309813776
1309913777 if test -n "$libcrypto_CFLAGS"; then
1310013778 pkg_cv_libcrypto_CFLAGS="$libcrypto_CFLAGS"
1310113779 elif test -n "$PKG_CONFIG"; then
1310213780 if test -n "$PKG_CONFIG" && \
13103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.8\""; } >&5
13781 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.8\""; } >&5
1310413782 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.8") 2>&5
1310513783 ac_status=$?
13106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1310713785 test $ac_status = 0; }; then
1310813786 pkg_cv_libcrypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.8" 2>/dev/null`
1310913787 test "x$?" != "x0" && pkg_failed=yes
1311713795 pkg_cv_libcrypto_LIBS="$libcrypto_LIBS"
1311813796 elif test -n "$PKG_CONFIG"; then
1311913797 if test -n "$PKG_CONFIG" && \
13120 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.8\""; } >&5
13798 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.8\""; } >&5
1312113799 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.8") 2>&5
1312213800 ac_status=$?
13123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1312413802 test $ac_status = 0; }; then
1312513803 pkg_cv_libcrypto_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.8" 2>/dev/null`
1312613804 test "x$?" != "x0" && pkg_failed=yes
1313413812
1313513813
1313613814 if test $pkg_failed = yes; then
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138 $as_echo "no" >&6; }
13815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 printf "%s\n" "no" >&6; }
1313913817
1314013818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1314113819 _pkg_short_errors_supported=yes
1315513833 fi;
1315613834
1315713835 elif test $pkg_failed = untried; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837 printf "%s\n" "no" >&6; }
1316013838 if test "x$with_crypto" = xyes; then
1316113839 as_fn_error $? "$libcrypto_PKG_ERRORS" "$LINENO" 5
1316213840 fi;
1316413842 else
1316513843 libcrypto_CFLAGS=$pkg_cv_libcrypto_CFLAGS
1316613844 libcrypto_LIBS=$pkg_cv_libcrypto_LIBS
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13168 $as_echo "yes" >&6; }
13169
13170 cat >>confdefs.h <<_ACEOF
13171 #define HAVE_LIBCRYPTO 1
13172 _ACEOF
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13846 printf "%s\n" "yes" >&6; }
13847
13848 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
1317313849
1317413850 with_crypto="yes";
1317513851
1318713863 if test "$with_cryptsetup" != no; then
1318813864
1318913865 pkg_failed=no
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcryptsetup >= 1.1.2" >&5
13191 $as_echo_n "checking for libcryptsetup >= 1.1.2... " >&6; }
13866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcryptsetup" >&5
13867 printf %s "checking for libcryptsetup... " >&6; }
1319213868
1319313869 if test -n "$libcryptsetup_CFLAGS"; then
1319413870 pkg_cv_libcryptsetup_CFLAGS="$libcryptsetup_CFLAGS"
1319513871 elif test -n "$PKG_CONFIG"; then
1319613872 if test -n "$PKG_CONFIG" && \
13197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcryptsetup >= 1.1.2\""; } >&5
13873 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcryptsetup >= 1.1.2\""; } >&5
1319813874 ($PKG_CONFIG --exists --print-errors "libcryptsetup >= 1.1.2") 2>&5
1319913875 ac_status=$?
13200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1320113877 test $ac_status = 0; }; then
1320213878 pkg_cv_libcryptsetup_CFLAGS=`$PKG_CONFIG --cflags "libcryptsetup >= 1.1.2" 2>/dev/null`
1320313879 test "x$?" != "x0" && pkg_failed=yes
1321113887 pkg_cv_libcryptsetup_LIBS="$libcryptsetup_LIBS"
1321213888 elif test -n "$PKG_CONFIG"; then
1321313889 if test -n "$PKG_CONFIG" && \
13214 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcryptsetup >= 1.1.2\""; } >&5
13890 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcryptsetup >= 1.1.2\""; } >&5
1321513891 ($PKG_CONFIG --exists --print-errors "libcryptsetup >= 1.1.2") 2>&5
1321613892 ac_status=$?
13217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1321813894 test $ac_status = 0; }; then
1321913895 pkg_cv_libcryptsetup_LIBS=`$PKG_CONFIG --libs "libcryptsetup >= 1.1.2" 2>/dev/null`
1322013896 test "x$?" != "x0" && pkg_failed=yes
1322813904
1322913905
1323013906 if test $pkg_failed = yes; then
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908 printf "%s\n" "no" >&6; }
1323313909
1323413910 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1323513911 _pkg_short_errors_supported=yes
1324913925 fi;
1325013926
1325113927 elif test $pkg_failed = untried; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929 printf "%s\n" "no" >&6; }
1325413930 if test "x$with_cryptsetup" = xyes; then
1325513931 as_fn_error $? "$libcryptsetup_PKG_ERRORS" "$LINENO" 5
1325613932 fi;
1325813934 else
1325913935 libcryptsetup_CFLAGS=$pkg_cv_libcryptsetup_CFLAGS
1326013936 libcryptsetup_LIBS=$pkg_cv_libcryptsetup_LIBS
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13262 $as_echo "yes" >&6; }
13263
13264 cat >>confdefs.h <<_ACEOF
13265 #define HAVE_LIBCRYPTSETUP 1
13266 _ACEOF
13937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13938 printf "%s\n" "yes" >&6; }
13939
13940 printf "%s\n" "#define HAVE_LIBCRYPTSETUP 1" >>confdefs.h
1326713941
1326813942 with_cryptsetup="yes";
1326913943
1327813952 fi
1327913953
1328013954
13281 for ac_header in security/pam_modules.h
13955 for ac_header in security/pam_modules.h
1328213956 do :
13283 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "$ac_includes_default"
13284 if test "x$ac_cv_header_security_pam_modules_h" = xyes; then :
13285 cat >>confdefs.h <<_ACEOF
13286 #define HAVE_SECURITY_PAM_MODULES_H 1
13287 _ACEOF
13957 ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" "$ac_includes_default"
13958 if test "x$ac_cv_header_security_pam_modules_h" = xyes
13959 then :
13960 printf "%s\n" "#define HAVE_SECURITY_PAM_MODULES_H 1" >>confdefs.h
1328813961 have_pamheader="yes"
1328913962 fi
1329013963
1329113964 done
13292
1329313965 # Mac OS X 10.3 puts PAM headers in /usr/include/pam.
13294 for ac_header in pam/pam_modules.h
13966 for ac_header in pam/pam_modules.h
1329513967 do :
13296 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_modules.h" "ac_cv_header_pam_pam_modules_h" "$ac_includes_default"
13297 if test "x$ac_cv_header_pam_pam_modules_h" = xyes; then :
13298 cat >>confdefs.h <<_ACEOF
13299 #define HAVE_PAM_PAM_MODULES_H 1
13300 _ACEOF
13968 ac_fn_c_check_header_compile "$LINENO" "pam/pam_modules.h" "ac_cv_header_pam_pam_modules_h" "$ac_includes_default"
13969 if test "x$ac_cv_header_pam_pam_modules_h" = xyes
13970 then :
13971 printf "%s\n" "#define HAVE_PAM_PAM_MODULES_H 1" >>confdefs.h
1330113972 have_pamheader="yes"
1330213973 fi
1330313974
1330413975 done
13305
1330613976 if test x"$have_pamheader" != x"yes"; then
1330713977 as_fn_error $? "You are missing PAM headers" "$LINENO" 5
1330813978 fi
1335314023 case $ac_val in #(
1335414024 *${as_nl}*)
1335514025 case $ac_var in #(
13356 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13357 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14026 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14027 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1335814028 esac
1335914029 case $ac_var in #(
1336014030 _ | IFS | as_nl) ;; #(
1338414054 /^ac_cv_env_/b end
1338514055 t clear
1338614056 :clear
13387 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14057 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1338814058 t end
1338914059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1339014060 :end' >>confcache
1339114061 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1339214062 if test -w "$cache_file"; then
1339314063 if test "x$cache_file" != "x/dev/null"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13395 $as_echo "$as_me: updating cache $cache_file" >&6;}
14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14065 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1339614066 if test ! -f "$cache_file" || test -h "$cache_file"; then
1339714067 cat confcache >"$cache_file"
1339814068 else
1340614076 fi
1340714077 fi
1340814078 else
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13410 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14080 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1341114081 fi
1341214082 fi
1341314083 rm -f confcache
1342414094 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1342514095 # 1. Remove the extension, and $U if already installed.
1342614096 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13427 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14097 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1342814098 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
1342914099 # will be set to the directory where LIBOBJS objects are built.
1343014100 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1343514105 LTLIBOBJS=$ac_ltlibobjs
1343614106
1343714107
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13439 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14109 printf %s "checking that generated files are newer than configure... " >&6; }
1344014110 if test -n "$am_sleep_pid"; then
1344114111 # Hide warnings about reused PIDs.
1344214112 wait $am_sleep_pid 2>/dev/null
1344314113 fi
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13445 $as_echo "done" >&6; }
14114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14115 printf "%s\n" "done" >&6; }
1344614116 if test -n "$EXEEXT"; then
1344714117 am__EXEEXT_TRUE=
1344814118 am__EXEEXT_FALSE='#'
1349614166 ac_write_fail=0
1349714167 ac_clean_files_save=$ac_clean_files
1349814168 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13500 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14170 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1350114171 as_write_fail=0
1350214172 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1350314173 #! $SHELL
1352014190
1352114191 # Be more Bourne compatible
1352214192 DUALCASE=1; export DUALCASE # for MKS sh
13523 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14193 as_nop=:
14194 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14195 then :
1352414196 emulate sh
1352514197 NULLCMD=:
1352614198 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1352714199 # is contrary to our usage. Disable this feature.
1352814200 alias -g '${1+"$@"}'='"$@"'
1352914201 setopt NO_GLOB_SUBST
13530 else
14202 else $as_nop
1353114203 case `(set -o) 2>/dev/null` in #(
1353214204 *posix*) :
1353314205 set -o posix ;; #(
1353714209 fi
1353814210
1353914211
14212
14213 # Reset variables that may have inherited troublesome values from
14214 # the environment.
14215
14216 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14217 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14218 # side effect of setting IFS to empty, thus disabling word splitting.)
14219 # Quoting is to prevent editors from complaining about space-tab.
1354014220 as_nl='
1354114221 '
1354214222 export as_nl
13543 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13544 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13545 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13546 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13547 # Prefer a ksh shell builtin over an external printf program on Solaris,
13548 # but without wasting forks for bash or zsh.
13549 if test -z "$BASH_VERSION$ZSH_VERSION" \
13550 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13551 as_echo='print -r --'
13552 as_echo_n='print -rn --'
13553 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13554 as_echo='printf %s\n'
13555 as_echo_n='printf %s'
13556 else
13557 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13558 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13559 as_echo_n='/usr/ucb/echo -n'
13560 else
13561 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13562 as_echo_n_body='eval
13563 arg=$1;
13564 case $arg in #(
13565 *"$as_nl"*)
13566 expr "X$arg" : "X\\(.*\\)$as_nl";
13567 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13568 esac;
13569 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13570 '
13571 export as_echo_n_body
13572 as_echo_n='sh -c $as_echo_n_body as_echo'
13573 fi
13574 export as_echo_body
13575 as_echo='sh -c $as_echo_body as_echo'
13576 fi
14223 IFS=" "" $as_nl"
14224
14225 PS1='$ '
14226 PS2='> '
14227 PS4='+ '
14228
14229 # Ensure predictable behavior from utilities with locale-dependent output.
14230 LC_ALL=C
14231 export LC_ALL
14232 LANGUAGE=C
14233 export LANGUAGE
14234
14235 # We cannot yet rely on "unset" to work, but we need these variables
14236 # to be unset--not just set to an empty or harmless value--now, to
14237 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14238 # also avoids known problems related to "unset" and subshell syntax
14239 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14240 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14241 do eval test \${$as_var+y} \
14242 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14243 done
14244
14245 # Ensure that fds 0, 1, and 2 are open.
14246 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14247 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14248 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1357714249
1357814250 # The user is always right.
13579 if test "${PATH_SEPARATOR+set}" != set; then
14251 if ${PATH_SEPARATOR+false} :; then
1358014252 PATH_SEPARATOR=:
1358114253 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1358214254 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1358414256 }
1358514257 fi
1358614258
13587
13588 # IFS
13589 # We need space, tab and new line, in precisely that order. Quoting is
13590 # there to prevent editors from complaining about space-tab.
13591 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13592 # splitting by setting IFS to empty value.)
13593 IFS=" "" $as_nl"
1359414259
1359514260 # Find who we are. Look in the path if we contain no directory separator.
1359614261 as_myself=
1360014265 for as_dir in $PATH
1360114266 do
1360214267 IFS=$as_save_IFS
13603 test -z "$as_dir" && as_dir=.
13604 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14268 case $as_dir in #(((
14269 '') as_dir=./ ;;
14270 */) ;;
14271 *) as_dir=$as_dir/ ;;
14272 esac
14273 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1360514274 done
1360614275 IFS=$as_save_IFS
1360714276
1361314282 as_myself=$0
1361414283 fi
1361514284 if test ! -f "$as_myself"; then
13616 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14285 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1361714286 exit 1
1361814287 fi
1361914288
13620 # Unset variables that we do not need and which cause bugs (e.g. in
13621 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13622 # suppresses any "Segmentation fault" message there. '((' could
13623 # trigger a bug in pdksh 5.2.14.
13624 for as_var in BASH_ENV ENV MAIL MAILPATH
13625 do eval test x\${$as_var+set} = xset \
13626 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13627 done
13628 PS1='$ '
13629 PS2='> '
13630 PS4='+ '
13631
13632 # NLS nuisances.
13633 LC_ALL=C
13634 export LC_ALL
13635 LANGUAGE=C
13636 export LANGUAGE
13637
13638 # CDPATH.
13639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1364014289
1364114290
1364214291 # as_fn_error STATUS ERROR [LINENO LOG_FD]
1364914298 as_status=$1; test $as_status -eq 0 && as_status=1
1365014299 if test "$4"; then
1365114300 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13652 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1365314302 fi
13654 $as_echo "$as_me: error: $2" >&2
14303 printf "%s\n" "$as_me: error: $2" >&2
1365514304 as_fn_exit $as_status
1365614305 } # as_fn_error
14306
1365714307
1365814308
1365914309 # as_fn_set_status STATUS
1368214332 { eval $1=; unset $1;}
1368314333 }
1368414334 as_unset=as_fn_unset
14335
1368514336 # as_fn_append VAR VALUE
1368614337 # ----------------------
1368714338 # Append the text in VALUE to the end of the definition contained in VAR. Take
1368814339 # advantage of any shell optimizations that allow amortized linear growth over
1368914340 # repeated appends, instead of the typical quadratic growth present in naive
1369014341 # implementations.
13691 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14342 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14343 then :
1369214344 eval 'as_fn_append ()
1369314345 {
1369414346 eval $1+=\$2
1369514347 }'
13696 else
14348 else $as_nop
1369714349 as_fn_append ()
1369814350 {
1369914351 eval $1=\$$1\$2
1370514357 # Perform arithmetic evaluation on the ARGs, and store the result in the
1370614358 # global $as_val. Take advantage of shells that can avoid forks. The arguments
1370714359 # must be portable across $(()) and expr.
13708 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14360 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14361 then :
1370914362 eval 'as_fn_arith ()
1371014363 {
1371114364 as_val=$(( $* ))
1371214365 }'
13713 else
14366 else $as_nop
1371414367 as_fn_arith ()
1371514368 {
1371614369 as_val=`expr "$@" || test $? -eq 1`
1374114394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1374214395 X"$0" : 'X\(//\)$' \| \
1374314396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13744 $as_echo X/"$0" |
14397 printf "%s\n" X/"$0" |
1374514398 sed '/^.*\/\([^/][^/]*\)\/*$/{
1374614399 s//\1/
1374714400 q
1376314416 as_cr_digits='0123456789'
1376414417 as_cr_alnum=$as_cr_Letters$as_cr_digits
1376514418
14419
14420 # Determine whether it's possible to make 'echo' print without a newline.
14421 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14422 # for compatibility with existing Makefiles.
1376614423 ECHO_C= ECHO_N= ECHO_T=
1376714424 case `echo -n x` in #(((((
1376814425 -n*)
1377514432 *)
1377614433 ECHO_N='-n';;
1377714434 esac
14435
14436 # For backward compatibility with old third-party macros, we provide
14437 # the shell variables $as_echo and $as_echo_n. New code should use
14438 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14439 as_echo='printf %s\n'
14440 as_echo_n='printf %s'
1377814441
1377914442 rm -f conf$$ conf$$.exe conf$$.file
1378014443 if test -d conf$$.dir; then
1381714480 as_dirs=
1381814481 while :; do
1381914482 case $as_dir in #(
13820 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14483 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1382114484 *) as_qdir=$as_dir;;
1382214485 esac
1382314486 as_dirs="'$as_qdir' $as_dirs"
1382614489 X"$as_dir" : 'X\(//\)[^/]' \| \
1382714490 X"$as_dir" : 'X\(//\)$' \| \
1382814491 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13829 $as_echo X"$as_dir" |
14492 printf "%s\n" X"$as_dir" |
1383014493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383114494 s//\1/
1383214495 q
1388814551 # report actual input values of CONFIG_FILES etc. instead of their
1388914552 # values after options handling.
1389014553 ac_log="
13891 This file was extended by pam_mount $as_me 2.18, which was
13892 generated by GNU Autoconf 2.69. Invocation command line was
14554 This file was extended by pam_mount $as_me 2.19, which was
14555 generated by GNU Autoconf 2.71. Invocation command line was
1389314556
1389414557 CONFIG_FILES = $CONFIG_FILES
1389514558 CONFIG_HEADERS = $CONFIG_HEADERS
1395114614 Report bugs to the package provider."
1395214615
1395314616 _ACEOF
14617 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14618 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1395414619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13955 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14620 ac_cs_config='$ac_cs_config_escaped'
1395614621 ac_cs_version="\\
13957 pam_mount config.status 2.18
13958 configured by $0, generated by GNU Autoconf 2.69,
14622 pam_mount config.status 2.19
14623 configured by $0, generated by GNU Autoconf 2.71,
1395914624 with options \\"\$ac_cs_config\\"
1396014625
13961 Copyright (C) 2012 Free Software Foundation, Inc.
14626 Copyright (C) 2021 Free Software Foundation, Inc.
1396214627 This config.status script is free software; the Free Software Foundation
1396314628 gives unlimited permission to copy, distribute and modify it."
1396414629
1399814663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1399914664 ac_cs_recheck=: ;;
1400014665 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14001 $as_echo "$ac_cs_version"; exit ;;
14666 printf "%s\n" "$ac_cs_version"; exit ;;
1400214667 --config | --confi | --conf | --con | --co | --c )
14003 $as_echo "$ac_cs_config"; exit ;;
14668 printf "%s\n" "$ac_cs_config"; exit ;;
1400414669 --debug | --debu | --deb | --de | --d | -d )
1400514670 debug=: ;;
1400614671 --file | --fil | --fi | --f )
1400714672 $ac_shift
1400814673 case $ac_optarg in
14009 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14674 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1401014675 '') as_fn_error $? "missing file argument" ;;
1401114676 esac
1401214677 as_fn_append CONFIG_FILES " '$ac_optarg'"
1401414679 --header | --heade | --head | --hea )
1401514680 $ac_shift
1401614681 case $ac_optarg in
14017 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14682 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1401814683 esac
1401914684 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1402014685 ac_need_defaults=false;;
1402314688 as_fn_error $? "ambiguous option: \`$1'
1402414689 Try \`$0 --help' for more information.";;
1402514690 --help | --hel | -h )
14026 $as_echo "$ac_cs_usage"; exit ;;
14691 printf "%s\n" "$ac_cs_usage"; exit ;;
1402714692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1402814693 | -silent | --silent | --silen | --sile | --sil | --si | --s)
1402914694 ac_cs_silent=: ;;
1405114716 if \$ac_cs_recheck; then
1405214717 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1405314718 shift
14054 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14719 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1405514720 CONFIG_SHELL='$SHELL'
1405614721 export CONFIG_SHELL
1405714722 exec "\$@"
1406514730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1406614731 ## Running $as_me. ##
1406714732 _ASBOX
14068 $as_echo "$ac_log"
14733 printf "%s\n" "$ac_log"
1406914734 } >&5
1407014735
1407114736 _ACEOF
1407314738 #
1407414739 # INIT-COMMANDS
1407514740 #
14076 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14741 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1407714742
1407814743
1407914744 # The HP-UX ksh and POSIX shell print the target directory to stdout
1411714782 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
1411814783 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1411914784 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14785 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
1412014786 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1412114787 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1412214788 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
1412514791 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
1412614792 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
1412714793 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14794 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
1412814795 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
1412914796 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
1413014797 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1424514912 lt_SP2NL \
1424614913 lt_NL2SP \
1424714914 reload_flag \
14915 FILECMD \
1424814916 OBJDUMP \
1424914917 deplibs_check_method \
1425014918 file_magic_cmd \
1425314921 DLLTOOL \
1425414922 sharedlib_from_linklib_cmd \
1425514923 AR \
14256 AR_FLAGS \
1425714924 archiver_list_spec \
1425814925 STRIP \
1425914926 RANLIB \
1438515052 # We use the long form for the default assignment because of an extremely
1438615053 # bizarre bug on SunOS 4.1.3.
1438715054 if $ac_need_defaults; then
14388 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14389 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14390 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15055 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15056 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15057 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1439115058 fi
1439215059
1439315060 # Have a temporary directory for convenience. Make it in the build tree
1472315390 esac ||
1472415391 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1472515392 esac
14726 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15393 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1472715394 as_fn_append ac_file_inputs " '$ac_f'"
1472815395 done
1472915396
1473115398 # use $as_me), people would be surprised to read:
1473215399 # /* config.h. Generated by config.status. */
1473315400 configure_input='Generated from '`
14734 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15401 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1473515402 `' by configure.'
1473615403 if test x"$ac_file" != x-; then
1473715404 configure_input="$ac_file. $configure_input"
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14739 $as_echo "$as_me: creating $ac_file" >&6;}
15405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15406 printf "%s\n" "$as_me: creating $ac_file" >&6;}
1474015407 fi
1474115408 # Neutralize special characters interpreted by sed in replacement strings.
1474215409 case $configure_input in #(
1474315410 *\&* | *\|* | *\\* )
14744 ac_sed_conf_input=`$as_echo "$configure_input" |
15411 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1474515412 sed 's/[\\\\&|]/\\\\&/g'`;; #(
1474615413 *) ac_sed_conf_input=$configure_input;;
1474715414 esac
1475815425 X"$ac_file" : 'X\(//\)[^/]' \| \
1475915426 X"$ac_file" : 'X\(//\)$' \| \
1476015427 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14761 $as_echo X"$ac_file" |
15428 printf "%s\n" X"$ac_file" |
1476215429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1476315430 s//\1/
1476415431 q
1478215449 case "$ac_dir" in
1478315450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478415451 *)
14785 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15452 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1478615453 # A ".." for each directory in $ac_dir_suffix.
14787 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15454 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478815455 case $ac_top_builddir_sub in
1478915456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479015457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484615513 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1484715514 *datarootdir*) ac_datarootdir_seen=yes;;
1484815515 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14850 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15517 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1485115518 _ACEOF
1485215519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1485315520 ac_datarootdir_hack='
1489115558 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1489215559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
1489315560 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1489515562 which seems to be undefined. Please make sure it is defined" >&5
14896 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15563 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1489715564 which seems to be undefined. Please make sure it is defined" >&2;}
1489815565
1489915566 rm -f "$ac_tmp/stdin"
1490915576 #
1491015577 if test x"$ac_file" != x-; then
1491115578 {
14912 $as_echo "/* $configure_input */" \
15579 printf "%s\n" "/* $configure_input */" >&1 \
1491315580 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1491415581 } >"$ac_tmp/config.h" \
1491515582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1491615583 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14918 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15585 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1491915586 else
1492015587 rm -f "$ac_file"
1492115588 mv "$ac_tmp/config.h" "$ac_file" \
1492215589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1492315590 fi
1492415591 else
14925 $as_echo "/* $configure_input */" \
15592 printf "%s\n" "/* $configure_input */" >&1 \
1492615593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1492715594 || as_fn_error $? "could not create -" "$LINENO" 5
1492815595 fi
1494215609 X"$_am_arg" : 'X\(//\)[^/]' \| \
1494315610 X"$_am_arg" : 'X\(//\)$' \| \
1494415611 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14945 $as_echo X"$_am_arg" |
15612 printf "%s\n" X"$_am_arg" |
1494615613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1494715614 s//\1/
1494815615 q
1496215629 s/.*/./; q'`/stamp-h$_am_stamp_count
1496315630 ;;
1496415631
14965 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14966 $as_echo "$as_me: executing $ac_file commands" >&6;}
15632 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15633 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1496715634 ;;
1496815635 esac
1496915636
1497315640 # Older Autoconf quotes --file arguments for eval, but not when files
1497415641 # are listed without --file. Let's play safe and only enable the eval
1497515642 # if we detect the quoting.
14976 case $CONFIG_FILES in
14977 *\'*) eval set x "$CONFIG_FILES" ;;
14978 *) set x $CONFIG_FILES ;;
14979 esac
15643 # TODO: see whether this extra hack can be removed once we start
15644 # requiring Autoconf 2.70 or later.
15645 case $CONFIG_FILES in #(
15646 *\'*) :
15647 eval set x "$CONFIG_FILES" ;; #(
15648 *) :
15649 set x $CONFIG_FILES ;; #(
15650 *) :
15651 ;;
15652 esac
1498015653 shift
14981 for mf
15654 # Used to flag and report bootstrapping failures.
15655 am_rc=0
15656 for am_mf
1498215657 do
1498315658 # Strip MF so we end up with the name of the file.
14984 mf=`echo "$mf" | sed -e 's/:.*$//'`
14985 # Check whether this is an Automake generated Makefile or not.
14986 # We used to match only the files named 'Makefile.in', but
14987 # some people rename them; so instead we look at the file content.
14988 # Grep'ing the first line is not enough: some people post-process
14989 # each Makefile.in and add a new line on top of each file to say so.
14990 # Grep'ing the whole file is not good either: AIX grep has a line
15659 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15660 # Check whether this is an Automake generated Makefile which includes
15661 # dependency-tracking related rules and includes.
15662 # Grep'ing the whole file directly is not great: AIX grep has a line
1499115663 # limit of 2048, but all sed's we know have understand at least 4000.
14992 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14993 dirpart=`$as_dirname -- "$mf" ||
14994 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14995 X"$mf" : 'X\(//\)[^/]' \| \
14996 X"$mf" : 'X\(//\)$' \| \
14997 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14998 $as_echo X"$mf" |
15664 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15665 || continue
15666 am_dirpart=`$as_dirname -- "$am_mf" ||
15667 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15668 X"$am_mf" : 'X\(//\)[^/]' \| \
15669 X"$am_mf" : 'X\(//\)$' \| \
15670 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15671 printf "%s\n" X"$am_mf" |
1499915672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500015673 s//\1/
1500115674 q
1501315686 q
1501415687 }
1501515688 s/.*/./; q'`
15016 else
15017 continue
15018 fi
15019 # Extract the definition of DEPDIR, am__include, and am__quote
15020 # from the Makefile without running 'make'.
15021 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15022 test -z "$DEPDIR" && continue
15023 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15024 test -z "$am__include" && continue
15025 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15026 # Find all dependency output files, they are included files with
15027 # $(DEPDIR) in their names. We invoke sed twice because it is the
15028 # simplest approach to changing $(DEPDIR) to its actual value in the
15029 # expansion.
15030 for file in `sed -n "
15031 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15032 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15033 # Make sure the directory exists.
15034 test -f "$dirpart/$file" && continue
15035 fdir=`$as_dirname -- "$file" ||
15036 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15037 X"$file" : 'X\(//\)[^/]' \| \
15038 X"$file" : 'X\(//\)$' \| \
15039 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15040 $as_echo X"$file" |
15041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15689 am_filepart=`$as_basename -- "$am_mf" ||
15690 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15691 X"$am_mf" : 'X\(//\)$' \| \
15692 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15693 printf "%s\n" X/"$am_mf" |
15694 sed '/^.*\/\([^/][^/]*\)\/*$/{
1504215695 s//\1/
1504315696 q
1504415697 }
15045 /^X\(\/\/\)[^/].*/{
15698 /^X\/\(\/\/\)$/{
1504615699 s//\1/
1504715700 q
1504815701 }
15049 /^X\(\/\/\)$/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\).*/{
15702 /^X\/\(\/\).*/{
1505415703 s//\1/
1505515704 q
1505615705 }
1505715706 s/.*/./; q'`
15058 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15059 # echo "creating $dirpart/$file"
15060 echo '# dummy' > "$dirpart/$file"
15061 done
15707 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15708 && sed -e '/# am--include-marker/d' "$am_filepart" \
15709 | $MAKE -f - am--depfiles" >&5
15710 (cd "$am_dirpart" \
15711 && sed -e '/# am--include-marker/d' "$am_filepart" \
15712 | $MAKE -f - am--depfiles) >&5 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } || am_rc=$?
1506215716 done
15717 if test $am_rc -ne 0; then
15718 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15719 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15720 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15721 for automatic dependency tracking. If GNU make was not used, consider
15722 re-running the configure script with MAKE=\"gmake\" (or whatever is
15723 necessary). You can also try re-running configure with the
15724 '--disable-dependency-tracking' option to at least be able to build
15725 the package (albeit without support for automatic dependency tracking).
15726 See \`config.log' for more details" "$LINENO" 5; }
15727 fi
15728 { am_dirpart=; unset am_dirpart;}
15729 { am_filepart=; unset am_filepart;}
15730 { am_mf=; unset am_mf;}
15731 { am_rc=; unset am_rc;}
15732 rm -f conftest-deps.mk
1506315733 }
1506415734 ;;
1506515735 "libtool":C)
1519615866 # convert \$build files to toolchain format.
1519715867 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1519815868
15869 # A file(cmd) program that detects file types.
15870 FILECMD=$lt_FILECMD
15871
1519915872 # An object symbol dumper.
1520015873 OBJDUMP=$lt_OBJDUMP
1520115874
1522015893 # The archiver.
1522115894 AR=$lt_AR
1522215895
15896 # Flags to create an archive (by configure).
15897 lt_ar_flags=$lt_ar_flags
15898
1522315899 # Flags to create an archive.
15224 AR_FLAGS=$lt_AR_FLAGS
15900 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
1522515901
1522615902 # How to feed a file listing to the archiver.
1522715903 archiver_list_spec=$lt_archiver_list_spec
1558916265 esac
1559016266
1559116267
16268
1559216269 ltmain=$ac_aux_dir/ltmain.sh
1559316270
1559416271
1559616273 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1559716274 # text mode, it properly converts lines to CR/LF. This bash problem
1559816275 # is reportedly fixed, but why not run on old versions too?
15599 sed '$q' "$ltmain" >> "$cfgfile" \
16276 $SED '$q' "$ltmain" >> "$cfgfile" \
1560016277 || (rm -f "$cfgfile"; exit 1)
1560116278
1560216279 mv -f "$cfgfile" "$ofile" ||
1563816315 $ac_cs_success || as_fn_exit 1
1563916316 fi
1564016317 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15642 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15643 fi
15644
16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16319 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16320 fi
16321
16322
66 # the Free Software Foundation; either version 2 of the License, or
77 # (at your option) any later version.
88 #
9 AC_INIT([pam_mount], [2.18])
10 PACKAGE_RELDATE="2021-01-04"
9 AC_INIT([pam_mount], [2.19])
10 PACKAGE_RELDATE="2022-07-06"
1111 AC_PREREQ([2.59])
1212 AC_CONFIG_AUX_DIR([build-aux])
1313 AC_CONFIG_HEADERS([config.h])
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2017 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,
166166 CC = @CC@
167167 CCDEPMODE = @CCDEPMODE@
168168 CFLAGS = @CFLAGS@
169 CPP = @CPP@
170169 CPPFLAGS = @CPPFLAGS@
170 CSCOPE = @CSCOPE@
171 CTAGS = @CTAGS@
171172 CYGPATH_W = @CYGPATH_W@
172173 DEFS = @DEFS@
173174 DEPDIR = @DEPDIR@
178179 ECHO_N = @ECHO_N@
179180 ECHO_T = @ECHO_T@
180181 EGREP = @EGREP@
182 ETAGS = @ETAGS@
181183 EXEEXT = @EXEEXT@
182184 FGREP = @FGREP@
185 FILECMD = @FILECMD@
183186 GCC_FVISIBILITY_HIDDEN = @GCC_FVISIBILITY_HIDDEN@
184187 GREP = @GREP@
185188 INSTALL = @INSTALL@
283286 regular_CFLAGS = @regular_CFLAGS@
284287 regular_CPPFLAGS = @regular_CPPFLAGS@
285288 rundir = @rundir@
289 runstatedir = @runstatedir@
286290 sbindir = @sbindir@
287291 sharedstatedir = @sharedstatedir@
288292 slibdir = @slibdir@
324328 *config.status*) \
325329 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
326330 *) \
327 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
328 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
331 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
332 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
329333 esac;
330334
331335 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
434438
435439 cscope cscopelist:
436440
437
438 distdir: $(DISTFILES)
441 distdir: $(BUILT_SOURCES)
442 $(MAKE) $(AM_MAKEFLAGS) distdir-am
443
444 distdir-am: $(DISTFILES)
439445 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
440446 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
441447 list='$(DISTFILES)'; \
2727 Turn on debugging and be a bit more verbose.
2828 .SH Mount options
2929 .TP
30 \fBheader\fP
31 A detached (separated) metadata file where the LUKS header is stored. It
32 correlates with the `cryptsetup --header` option. If omitted, the detached LUKS
33 header feature is not used.
34 .TP
3035 \fBallow_discard\fP
3136 Enables discard passthrough support. This option does not cause the filesystem
3237 to be mounted with discard enabled, but does allow fstrim to be manually run.
38 .TP
39 \fBno_read_workqueue\fP
40 Bypass internal workqueue and process read requests synchronously.
41 .TP
42 \fBno_write_workqueue\fP
43 Bypass internal workqueue and process write requests synchronously.
3344 .TP
3445 \fBcipher\fP
3546 The cryptsetup cipher used for the encrypted volume. This option is mandatory
0 v2.19 (2022-07-06)
1 ==================
2
3 Enhancements:
4
5 * Added support for LUKS detached headers
6
7
8 v2.18 (2021-01-04)
9 ==================
10
11 Import patches from the Debian project.
12
13 Changes:
14
15 * The build now uses PCRE2 instead of PCRE1.
16 * Cure mount.crypt recursively executing itself with -t crypt
17
18 Enhancements:
19
20 * Allow luserconf to be placed outside home directory
21 * Documentation updates
22
23
24 v2.17 (2020-11-20)
25 ==================
26
27 Changes:
28
29 * Programs are now unequivocally installed to ${sbindir}
30 (usually /usr(/local)/sbin) and never /sbin anymore.
31
32
33 v2.16 (2016-09-23)
34 ==================
35
36 Enhancements:
37
38 * support building with OpenSSL 1.1.0 and test libressl 2.4.2
39
40 Changes:
41
42 * the sgrp match is now implemented by asking for the user's group list instead
43 of asking for the group's user list. (The latter can easily be orders of
44 magnitude larger, which is why some LDAP servers may be configured not to
45 return the list at all.)
46
47
48 v2.15 (2014-12-01)
49 ==================
50
51 Changes:
52
53 * util-linux >= 2.20 is required at runtime
54 (just mentioning it again; it was already needed for building)
55 * use the helper= option to get umount.crypt invoked on calling umount
56 * remove unsupported -p0 mount option
57 * fix a crash in ehd_log
+0
-899
doc/news.txt less more
0
1 v2.18 (2021-01-04)
2 ==================
3 Import patches from the Debian project.
4 Changes:
5 * The build now uses PCRE2 instead of PCRE1.
6 * Cure mount.crypt recursively executing itself with -t crypt
7 Enhancements:
8 * Allow luserconf to be placed outside home directory
9 * Documentation updates
10
11
12 v2.17 (2020-11-20)
13 ==================
14 Changes:
15 * Programs are now unequivocally installed to ${sbindir}
16 (usually /usr(/local)/sbin) and never /sbin anymore.
17
18
19 v2.16 (2016-09-23)
20 ==================
21 Enhancements:
22 * support building with OpenSSL 1.1.0 and test libressl 2.4.2
23 Changes:
24 * the sgrp match is now implemented by asking for the user's group list instead
25 of asking for the group's user list. (The latter can easily be orders of
26 magnitude larger, which is why some LDAP servers may be configured not to
27 return the list at all.)
28
29
30 v2.15 (2014-12-01)
31 ==================
32 Changes:
33 * util-linux >= 2.20 is required at runtime
34 (just mentioning it again; it was already needed for building)
35 * use the helper= option to get umount.crypt invoked on calling umount
36 * remove unsupported -p0 mount option
37 * fix a crash in ehd_log
38
39
40 v2.14 (2013-08-27)
41 ==================
42 Enhancements:
43 - pam_mount: add an "allow_discard" option for volumes to enable
44 trim support on the block device without enabling it for the filesystem.
45 - config: regexes can now be used for the <user> and <group> configuration
46 options
47 Fixes:
48 - fix "feature 1 already set to zero"
49 - pmt-ehd: avoid miscalculating blockdev size obtained from BLKGETSIZE64
50 - pam_mount: give more verbose output on "unknown digest/cipher"
51 - pam_mount: fix crash when an unknown digest/cipher was specified
52 - pam_mount: correctly mkdir mountpoint if requested
53 - pam_mount: only remove mountpoint if actually created
54 - config: restore DOMAIN_USER and DOMAIN_NAME expansion in mount options
55 Changes:
56 - Complain louder when EUID is not 0
57 - Make CIFS mounts work again after util-linux option parser update.
58 util-linux has received updates to its option parser in or around
59 v2.22, and pam_mount was incorrectly using the "user" moutn option
60 to specify a username; the proper option is, of course, "username".
61 (as in: <volume fstype="cifs" ... options="username=someoneelse" />)
62 - Make Winbind user logins (DOMAIN\user) work with cifs-utils > 5.5
63
64
65 v2.13 (2011-12-15)
66 ==================
67 Fixes:
68 - pam_mount: restore keyfile support for non-crypto mounts
69 (useful for accessing volumes with a different password than the login one)
70 Changes:
71 - pam_mount: use libmount for utab/mtab operations
72 - Move crypto code into a separate library, libcryptmount
73 rather than including the .o files in every executable
74 Enhancements:
75 - mount.crypt: add support for crypto name mapping (new -o crypto_name= option)
76
77
78 v2.12 (2011-10-06)
79 ==================
80 Fixes:
81 - build: make build of pmt-ehd dependent upon HAVE_LIBCRYPTSETUP
82 - mount.crypt: restore support for files >= 4 GB
83 Changes:
84 - config: default to calling umount.crypt directly
85
86
87 v2.11 (2011-08-07)
88 ==================
89 Fixes:
90 - mount.crypt: fix a bogus "realpath (null): ..." message when trying to
91 umount a non-existing directory
92 - mount.crypt: make -v option on umount work again
93 Changes:
94 - support for old encfs 1.3.x has been removed
95 - mount.crypt: print the location of cmtab/smtab and its contents
96 when an entry was not found
97 - mount.crypt: add diagnostic to determine how the smtab entry was found
98 - mount.crypt: do not call lower-level helpers with -n option
99 (there are setups where that has no effect anyway)
100 - mount.crypt: do not call lower-level helpers with -i option
101 - mount.crypt: use /run directory to store cmtab
102 - pmvarrun: use /run/pam_mount directory
103 - pmt-ehd: exclusively create LUKS partitions from now on
104 Enhancements:
105 - config: allow specifying CIFS/NCP/NFS <volume>s without a "server" attribute
106
107
108 v2.10 (2011-04-15)
109 ==================
110 Fixes:
111 - loop-linux: wait for loop device deallocation to succeed
112 - crypto: avoid premature attempt of unloading the loop device
113 - mtab: cope with mtab-less systems in staleness check
114 Changes:
115 - mount.crypt: reduce mtab-less message from error to warning
116
117
118 v2.9 (2011-04-06)
119 =================
120 Fixes:
121 - build: fix configure --without-crypt{o,setup}
122 Changes:
123 - mount.crypt: warn of unwritable /etc/mtab
124 Enhancements:
125 - debug: print /proc/self/mountinfo when available (and avoid df)
126 - pam_mount: support mounting files with bind/move
127
128
129 v2.8 (2010-12-22)
130 =================
131 Fixes:
132 - config: options need to have a space for mount.fuse
133 - pam_mount: fix truncation of groups on FUSE mounts
134 Changes:
135 - pam_mount: reimplement mkmountpoint
136 - pam_mount: remove mountpoint early when mount failed
137
138
139 v2.7 (2010-12-01)
140 =================
141 Changes:
142 - conf: %(shell EXPR) is now activated and usable from the global config file
143
144
145 v2.6 (2010-10-30)
146 =================
147 Fixes:
148 - pam_mount: up the refcount once freeconfig is live
149 Changes:
150 - remove shipped copy of ofl, use hxtools's original variant
151 - remove shipped copy of fd0ssh, use hxtools's original variant
152
153
154 v2.5 (2010-08-10)
155 =================
156 Changes:
157 - mount.crypt: fix incorrect processing of binary files in keyfile passthrough
158 - call mount.crypt by means of mount -t crypt (selinux), same for umount
159 - reorder the default path to search in /usr/local first, then /usr, /
160 - config: add missing fd0ssh command to restore volumes using ssh
161 - ofl is now run as a separate process (selinux policy simplification)
162
163
164 v2.4 (2010-06-26)
165 =================
166 Notes:
167 - see doc/bugs.txt for cryptsetup behavior that impacts
168 pam_mount users since version 2.0
169 - recommending use of device-mapper >= 1.02.48 to avoid a race
170 Fixes:
171 - umount.crypt: fix use of a wrong field for smtab/cmtab staleness check
172 Changes:
173 - make libcryptsetup truly optional at compile-time
174 (it was only claimed in the doc, but not fully realized until now)
175 - make libcrypto truly optional at compile-time
176 (this had once worked in pam_mount 0.x, now it does again)
177
178
179 v2.3 (2010-05-19)
180 =================
181 Fixes:
182 - umount.crypt had erroneously mounted instead of umounted
183
184
185 v2.2 (2010-05-16)
186 =================
187 Fixes:
188 - mount.crypt: fix memory scribble crash when crypto device could
189 not be initialized
190 - mount.crypt: do not fail when unlocking key slot other than #0
191 - fusermount is now called with supplementary groups initialized
192 - rdconf: do not warn about missing fskeyhash when no fskey specified
193 - mount: prefer sysv mount API over bsd
194 - pmt-ehd: reword help text for -k option
195 - pmt-ehd: apply default value for -k option
196 - pmt-ehd: fix fskey generation which was pegged at 256 bits
197 - pmt-ehd: avoid needless overtruncation/sparsifying
198 - pmt-ehd: zero LUKS header to avoid setup failure of PLAIN volume
199 Changes:
200 - pmt-ehd: speed up writing random data
201 - pmt-ehd: reword help text for -k option
202 - mount.crypt: ignore cmtab update errors
203 - mount.crypt: add support for keyfile passthru using -ofsk_cipher=none
204 - doc: document mount.crypt's -o hash option
205 - mount.crypt: warn on ignored options
206
207
208 v2.1 (2010-05-02)
209 =================
210 Fixes:
211 - config: rdconf1 static data had unclosed %(if) tags
212 - config: rdconf1 static data had extraneous %(OPTIONS) parameter
213
214
215 v2.0 (2010-04-20)
216 =================
217 Changes:
218 - mount.crypt: make use of libcryptsetup
219 - cmtab is now stored below localstatedir (usually /var/run)
220 - use HXformat2. This invalidates old constructs like %(before=\"-o\"...),
221 which need to be replaced with the new syntax. (See below.)
222
223 In general, the old syntax was only used by commands Note to updaters: As the
224 old syntax %(after=...) %(before=...) %(ifempty=...) %(ifnempty=...)
225 %(lower=...) %(upper=...) only appeared in commands, and commands are not part
226 of the default config file anymore since v1.0~15^2~15, there should be little
227 worry. The configuration options in question are <cifsmount>, <cryptmount>,
228 <cryptumount>, <fd0ssh>, <fsck>, <fusemount>, <fuseumount>, <lclmount>,
229 <nfsmount>, <ncpmount>, <ncpumount>, <pmvarrun>, <smbmount>, <smbumount>
230 <umount> and should normally not be needed in pam_mount.conf.xml.
231
232
233 v1.36 (2010-04-13)
234 ==================
235 Changes:
236 - cope better with cryptsetup's assumption that keysize=256
237 - augment doc/bugs.txt about caveats with cryptsetup create
238
239
240 v1.35 (2010-04-10)
241 ==================
242 Fixes:
243 - avoid a mlock(NULL) when there is no auth token
244 Changes:
245 - print error code when mkmountpoint failed
246 - print warning when cmtab is not creatable
247
248
249 v1.34 (2010-04-08)
250 ==================
251 Changes:
252 - update for libHX 3.4
253 Fixes:
254 - do decrease the login refcount on logout when no volumes are defined
255
256
257 v1.33 (2010-01-10)
258 ==================
259 Fixes:
260 - avoid multi-free of auth token when pam_mount is rerun in a PAM stack
261 - avoid NULL dereference when there is an empty line in mtab
262
263
264 v1.32 (2009-09-21)
265 ==================
266 Fixes:
267 - luserconf: fix skipping luser volume mounting
268 - config: allow arbitrary source paths for tmpfs
269
270
271 v1.31 (2009-09-02)
272 ==================
273 Fixes:
274 - pam_mount: fix a potential strlen(NULL) on login
275
276
277 v1.30 (2009-08-27)
278 ==================
279 Fixes:
280 - pam_mount: avoid crash in sudo by not calling setenv() with NULL
281 - pam_mount: unwind krb5 environment info at the right time
282 - umount.crypt: do not remove entry from /etc/mtab twice
283 - doc: mount.crypt has no defaults for fsk_cipher and fsk_hash
284 - doc: pmt-ehd defaults to using SHA1 hash
285 - doc: mention preferred location of <debug>
286 Changes:
287 - config: move <debug> to top
288 Enhancements:
289 - luserconf: delayed parsing and mounting of luserconf volumes
290
291
292 v1.27 (2009-07-01)
293 ==================
294 Changes:
295 - mounting: stdout from mount programs is now discarded
296
297
298 v1.26 (2009-06-19)
299 ==================
300 Fixes:
301 - config: do parse <cryptumount> elements from .xml
302 Enhancements:
303 - mount: pass fstype to NFS mount program
304 - config: map "nfs4" fstype to NFSMOUNT
305 - pam_mount: PAM function return code audit
306 - config: warn about ignored "server" attribute in <volume>
307 - config: print error message on config file syntax error
308
309
310 v1.25 (2009-05-09)
311 ==================
312 Fixes:
313 - fix splitting of "NTDOMAIN\username" strings
314 Enhancements:
315 - config: broaden variable expansion to resolve a case where it
316 did not do expected expansion with AUFS
317
318
319 v1.24 (2009-04-23)
320 ==================
321 Fixes:
322 - src: fix one uninitialized value
323 - mount.crypt: write options, not "defaults" to /etc/mtab
324 - mount.crypt: keysize truncation must happen later
325
326
327 v1.22 (2009-04-05)
328 ==================
329 Changes:
330 - mount.crypt: pass -o ro/rw down to mount program
331 - mount.crypt: support for -o remount
332 - mount.crypt: support overriding keysize
333
334
335 v1.21 (2009-05-17)
336 ==================
337 Fixes:
338 - mount.crypt: must pass -s option to cryptsetup
339 (otherwise its odd default of truncating the key kicks in)
340 Documentation:
341 - mount.crypt: add "Deprecated Mount options" section to manpage
342
343
344 v1.20 (2009-03-01)
345 ==================
346 Fixes:
347 - pam_mount: fix a double free that can happen when stale entries are in cmtab
348 - pam_mount: first-time overriding of mntoptions failed to work
349
350
351 v1.19 (2009-02-27)
352 ==================
353 Fixes:
354 - pmvarrun: do not segfault when no username is specified (corner-case)
355 - pmvarrun: recognize internal _PMT_DEBUG_LEVEL env var
356 - mtab: automatically ignore and remove stale entries from cmtab
357 - pam_mount: fix unexpected termination after pam_mount ran
358 - doc: list support contacts in man page
359
360
361 v1.18 (2009-02-07)
362 ==================
363 Fixes:
364 - mount.crypt: warn on insecure ciphers/hashes
365 - pam_mount: fix case-insensitive sgrp matching for <volume>
366 - pam_mount: additional safety check for NULL 'converse' structs
367 - doc: add sudo to the Known Bugs list
368
369
370 v1.17 (2009-01-26)
371 ==================
372 Fixes:
373 - mount.crypt: resolve valgrind warnings (incapability to umount)
374 - mount.crypt: correct exit status on mount
375 - mtab: do not fail if file not found
376 - pam_mount: look into cmtab when checking for already-mounted volumes
377
378 Features:
379 - ports: FreeBSD loop device (MD) support
380 - ports: NetBSD loop device (VND) support
381 - ports: NetBSD crypto device (CGD) support
382
383
384 v1.16 (2009-01-24)
385 ==================
386 Fixes:
387 - nucrypt2: resolve compiler warnings
388 - nucrypt2: avoid NULL deref in pmt_cmtab_add
389 - mount.crypt: avoid random deref in bogus printf
390 - mount.crypt: only use mount -i on __linux__
391 - mount.crypt: avoid umount attemps when not mounted
392
393
394 v1.15 (2009-01-23)
395 ==================
396 Enhancements:
397 - mount.crypt: use /etc/cmtab file to keep crypto mount info
398 Fixes:
399 - mount.crypt/pmt-ehd: flush tty input queue before prompting for password
400
401
402 v1.10 (2009-01-22)
403 ==================
404 Fixes:
405 - crypto: add missing return statements during loop+crypto setup
406 - pmt-ehd: fix return statements
407 - ehd: do not feed password's '\0' into openSSL
408
409
410 v1.9 (2009-01-13)
411 =================
412 Fixes:
413 - umount was called on anything but the last session
414 - ofl: fix per-task fd lookup (again)
415 - luserconf: re-enforce three-wall option checks
416 Changes:
417 - doc: remove old use_first_pass from doc
418 - doc: add version string and reldate to manpages
419
420
421 v1.8 (2009-01-07)
422 =================
423 - doc: add manpage aliases crypt{,o}_LUKS
424 - mount.crypt: fix return code regression
425 - logging: <debug> should not turn off errors
426 - src: traverse non-whitespace properly, check for '\0'
427 - pam_mount: fix segfault in case of an undefined converse function (e.g. cron)
428 - mount.crypt: fix segfault when password is NULL
429 - umount.crypt: fix segfault when path is not mounted
430 Enhancements:
431 - ports: pam_mount.so compiles on FreeBSD (7.1)
432
433
434 v1.7 (2009-01-01)
435 =================
436 Fixes:
437 - spawns: correctly interpret return codes when signalled
438 - pmt-ehd: fix a wrong return value in the error path
439 - src: close some leaking fds
440 - src: resolve memory leaks from HXformat use
441 - mount.crypt: continue on umount errors
442 - rdconf: silence debug messages if debug turned off
443 Changes:
444 - signals: block SIGPIPE during the entire pam_mount run time
445 - signals: use refcounted SIGCHLD
446 - src: use libHX 2.2's proc interface
447
448
449 v1.6 (2008-12-27)
450 =================
451 - update to libHX 2.0
452 - block-linux: close a leaking fd
453 - config: optionally install DTD and instructions for verification
454 - config: resynchronize DTD with XML
455 - build: autotools fixes, make `make dist` work
456 - pam_mount.so now builds on BSD
457
458
459 v1.5 (2008-12-07)
460 =================
461 - mount.crypt: support fsck mount option
462
463
464 v1.4 (2008-11-24)
465 =================
466 - mount.crypt: fix is_luks detection
467 - mount.crypt: add warnings for unneeded/unsupported options
468 - build: supply "crypto_LUKS" fstype symlinks
469
470
471 v1.3 (2008-11-16)
472 =================
473 - ofl: fix per-task fd lookup
474 - mount.crypt: -v takes no argument
475 - mount.crypt: use original container name as dmdevice name
476 - mount.crypt: reduce output on wrong password
477 - mount.crypt: only require -o cipher when really needed
478 - always proceed with mount even when a password is missing
479
480
481 v1.2 (2008-10-23)
482 =================
483 - pmt-ehd: autodetect size for block devices
484 - config: add missing %(CIPHER) to CMD_CRYPTMOUNT command line
485 - mount.crypt: allow -v to be set through -o verbose too
486 (that way you can enable it per-<volume>)
487 - mount.crypt: pass -c to cryptsetup also for LUKS
488 - config: expand placeholders in the <volume options="..."> attribute
489 - config: make %(GROUP) variable working
490
491
492 v1.1 (2008-10-20)
493 =================
494 - config: fix unfortunate inversion in user_in_sgrp
495 - config: fix unintentional inversion in mntoptions deny processing
496 - mount.crypt: allow specification of a hash alg
497 - pmt-ehd: add -D option for debugging
498 - mount.crypt: propagate -o fstype=x to mount(8)
499 - pmt-ehd: double-ask for password
500 - config: remove bogus user check for ncpfs
501 - pmt-ehd: fix segfault when using -c option
502 - pmt-ehd: add -h option to pick hash for key derivation
503 - pmt-ehd: default to using SHA1 for hash
504 - mount.crypt: do not default to any cipher/hash
505 - pmt-ehd: print <volume> line after creation
506 - config: introduce <volume fskeyhash=""> attribute
507 - config: introduce <volume cipher=""> attribute
508
509
510 v1.0 (2008-10-12)
511 =================
512 - convert_pam_mount_conf.pl: ignore unknown commands
513 - fix leftover assertion in crypto.c
514 - remove legacy truecrypt 4.x support
515 - deprecate cryptoloop (unsafe for journalled fs)
516 - remove BSD mntcheck code
517 - remove BSD mntagain leftovers
518 - remove BSD mount_ehd/vnconfig scripts
519 - remove code that set up a loop device for fsck
520 (fsck can operate on normal files)
521 - new crypto helper: pmt-ehd replaces scripts/mkehd
522 - new crypto helper: mount.crypt is now a proper program
523 - add %(GROUP) variable
524 - remove convert_pam_mount.conf.pl
525
526
527 v0.49 (2008-10-07)
528 ==================
529 - convert_pam_mount_conf.pl: ignore unknown commands
530 - fix leftover assertion in crypto.c
531 - remove legacy truecrypt 4.x support
532 - deprecate cryptoloop (unsafe for journalled fs)
533 - revert "mount.crypt: default to aes-cbc-essiv:sha256/sha512"
534 - fix invalid pointer causing crash on fskey decryption
535
536
537 v0.48 (2008-09-10)
538 ==================
539 - upgrade for libHX 1.25
540 (this fixes a potential crash in the fskey decryption routine)
541 - move more documentation from pam_mount.conf.xml into pam_mount.conf.5
542
543
544 v0.47 (2008-09-04)
545 ==================
546 This release incorporates a security fix (item 3 on the list).
547 All administrators who have enabled <luserconf> in the configuration
548 file should upgrade. A workaround is to comment out <luserconf>.
549
550 - mount.crypt: add missing null command to conform to sh syntax
551 (SF bug #2089446)
552 - conf: fix printing of strings when luser volume options were not ok
553 - conf: re-add luserconf security checks
554 - add support for encfs 1.3.x (1.4.x already has been in for long)
555 - conf: add the "noroot" attribute for <volume> to force mounting with
556 the unprivileged user account (required for FUSE filesystems)
557 - replace fixed-size buffers and arrays with dynamic ones (complete)
558
559
560 v0.45 (2008-08-31)
561 ==================
562 - fix double-freeing the authentication token
563 - use ofl instead of lsof/fuser
564 - kill-on-logout support (terminate processes that would stand in the
565 way of unmounting)
566 - mount.crypt: auto-detect necessity for running losetup
567 - replace fixed-size buffers with dynamic ones (first part)
568
569
570 v0.44 (2008-08-16)
571 ==================
572 Bugfixes only.
573 - mount.crypt: fix option slurping (SF bug #2054323)
574 - properly handle simple sgrp config items (Debian bug #493497)
575 - src: correct error check in run_lsof()
576 - conf: check that slash follows home tilde
577 - conf: wildcard inadvertently matched root sometimes
578
579
580 v0.43 (2008-07-16)
581 ==================
582 A few accumulated patches, but no real new glaring features.
583 - remove davfs support
584 - pass fsck definition from pam_mount.conf.xml to mount.crypt
585 - document pam_mount.conf.xml defaults
586 - do not call fsck from within pam_mount for encrypted devices,
587 let mount.crypt do it
588
589
590 v0.41 (2008-06-17)
591 ==================
592 This is a stable release, no new features, bugfixes only.
593 Fixes regressions found in 0.39 and 0.40. Most important changes:
594 - bypass /sbin/mount for mount.crypt
595 - umount.crypt: fix expression syntax for _PMT_DEBUG_LEVEL
596 - re-add support for user="*" wildcard
597 - add missing pgrp/sgrp attribute handling for simple user control
598 - mount.crypt: handle arbitrary argument order
599 - correct extended sgrp handling
600 - manpages: add missing description for <fsck>, and reorder <path>
601
602
603 v0.40 (2008-06-11)
604 ==================
605 - the documentation in pam_mount.conf.xml has been reworked and
606 split off into pam_mount.conf(5).
607 - extensive user selection for <volume> (revised)
608 - case-insensitive matching for user, pgrp, sgrp
609 - fixed segfault when more than one volume was defined
610
611
612 v0.39 (2008-05-28)
613 ==================
614 - extended user selection for <volume>
615 - fix an unwanted inversion for handling <options allow=" (nonempty) ">
616 - store per-volume option list in ordered form --
617 essentially fixes the problem of "user" (implies noeexec)
618 overriding "exec"
619
620
621 v0.38 (2008-05-18)
622 ==================
623 - fix null pointer deref (from new UID/GID range support)
624 - mount.crypt uses normal sleep from coreutils again
625
626
627 v0.37 (2008-05-17)
628 ==================
629 - truecrypt 5.x is not supported because the truecrypt CLI component
630 that pam_mount requires was removed
631 - <volume> tag in pam_mount.conf.xml supports UID and GID ranges now
632 - avoid printing a line of garbage into logs
633
634
635 v0.35.1 (2008-04-10)
636 ====================
637 - fix HAVE_LIBCRYPTO regression;
638 crypto was always disabled even if openssl present
639
640
641 v0.35 (2008-04-06)
642 ==================
643 - mount.crypt: fix loop device detection
644 - mount.crypt: wait for dm devices to show up
645 - fixed: mount flag and value were one argument
646 - pmvarrun: support unprivileged mode
647 - Support for SSH keyboard-interactive authenticated volumes
648 - documentation updates
649
650
651 v0.33 (2008-02-22)
652 ==================
653 - notify about unknown options in /etc/pam.d/*
654 - support "debug" option for pam_mount in /etc/pam.d/*
655 - mount.crypt: detect loop devices by major number
656 - remove trailing comma from mount options
657
658
659 v0.32 (2007-12-06)
660 ==================
661 - remove unintended zeroing of variable
662 - rip out mntagain hack
663
664
665 v0.31 (2007-12-01)
666 ==================
667 Fixed parsing of old-style pam_mount.conf with spaces in group names,
668 copy-and-paste typos and a missing return value. Added workaround for
669 CIFS volumes within NFS mounts with "root_squash" option.
670
671 - allow --keyfile to be used for non-LUKS too
672 - add workaround for CIFS mounts within root_squashed NFS
673 - luksClose is the same as Remove (in umount.crypt)
674 - fix copy-and-paste error in converter script
675 - convert "local" fstype entries from old configuration format correctly.
676 - fixed parsing of old pam_mount.conf with spaces in group names
677 - fixed: When no volumes were to be mounted, return value
678 was not PAM_SUCCESS.
679
680
681 v0.29 (2007-09-27)
682 ==================
683 An uninitialized array and a copy-and-paste error were corrected in
684 the recently introduced process spawn code.
685
686 - explicitly initialize fd array (spawn.c)
687 - fix a copy-and-paste typo during dup2() (spawn.c)
688
689
690 v0.28 (2007-09-27)
691 ==================
692 A hotfix for an incorrect printf format specification in pmvarrun.
693 Also installs config files by default now.
694
695 - install pam_mount.conf.xml by default
696 - add --with-selinux configure option to install selinux files
697 - fix crash due to printf arguments in pmvarrun.c
698
699
700 v0.27 (2007-09-26)
701 ==================
702 This release fixes a crash on logout with su by using a fixed $PATH
703 to work around broken login programs. MSAD usernames are now accepted
704 in pmvarrun. The libglib dependency has been dropped.
705
706 - add luserconf conversion note to convert_pam_mount_conf.pl
707 - do not print "mount errors" if there won't be any
708 - allow MSAD usernames (with spaces and backslash) in pmvarrun
709 - quick-terminate if there is nothing to do on closing session
710 - fix crash on logout with su (unsigned loop underflow)
711 - drop libglib dependency
712 - always use fixed $PATH
713
714
715 v0.26 (2007-09-20)
716 ==================
717 Luks argument ordering, mountpoint creation as user, and the
718 converter script were corrected. The "nullok" and --keyfile options
719 were added.
720
721 - revert r290 which incorrectly changed the luks argument order
722 - --keyfile option added to mount.crypt
723 - improved error reporting in the config converter script
724 - do not literally copy the special-meaning single dashes
725 in converter script
726 - fix mount.crypt inner shell syntax
727 - add "nullok" option
728 - fix a missing user identity switch after mkmountpoint'ing
729
730
731 v0.21 (2007-09-17)
732 ==================
733 Some mount helpers needed a different option passing method.
734 Stacking of loop devices is now avoided, and pam_mount will not ask
735 for a password if no volumes are to be mounted. The documentation has
736 been updated to include PAM module stacking (e.g. when using pam_ldap
737 with pam_mount).
738
739 - silence unwanted error message (fallout from r240)
740 - add "Known Bugs and Issues" documentation
741 - more documentation - How to stack PAM modules without pam_stack
742 - option passing to some mount helpers needs to be different
743 - avoid stacking of loop devices
744 - do not ask for password if no volumes found
745
746
747 v0.20 (2007-09-05)
748 ==================
749 This release adds extra options regarding pam_mount behavior
750 (messages and mount points).
751
752 - do not use absolute paths, search $PATH instead for programs
753 - add pam_mount.conf to .conf.xml converter
754 - "sufficient" keyword documentation
755 - misc cryptmount fix
756 - pass down readonly flag to luksOpen
757 - add option to retain automatically created mountpoints
758 - create mountpoint as user if possible (e.g. if /home/USER
759 already exists and your volume is /home/USER/myvol)
760 - build fixes, making it work OOTB again with FC6 and Autoconf 2.59
761 - allow changing the password prompt
762 - add an overview of pam_mount options (options.txt)
763 - implement the "soft_try_pass" option
764
765
766 v0.19 (2007-07-04)
767 ==================
768 pam_mount now uses an XML config file, which also has a few new
769 variables and options. Support for truecrypt was added.
770
771 - pam_mount switched to an XML configuration.
772 - NT domain placeholders
773 - properly detect loop64 support
774 - split group matching into multiple attributes
775 - add an "invert" attribute
776 - remove pam_mount.la from `make install`ed directory
777 - partial davfs support
778 - added truecrypt support
779
780
781 v0.18 (2006-09-07)
782 ==================
783 A crash on x86_64 has been fixed. pam_mount now changes to the root
784 directory before attempting to (un)mount.
785
786 - change to / before attempting mount
787 - check return value in xmemdup()
788 - fix segfault on x64: Do not reuse va_lists (found by Celestar)
789
790
791 v0.17 (2006-08-06)
792 ==================
793 This release fixes memory corruption issues and improper zeroing.
794
795 - use standard allocators
796 - fix memory corruption issue
797 - enhance debugging messages with file/line
798 - fix improper zeroing (deceived as memory corruption)
799
800
801 v0.16 (2006-07-30)
802 ==================
803 The GDM SIGCHLD workaround handling has been improved, essential
804 environment variables for FUSE daemons are now set, and configure has
805 two new options (--slibdir and --sbindir).
806
807 - SIGCHLD handling updated
808 - set important environment variables for fuse daemons
809 - added new --slibdir and --ssbindir options to configure
810 - documentation updates
811
812
813 v0.15 (2006-07-26)
814 ==================
815 - mount.crypt and umount.crypt are installed to /sbin rather
816 than /usr/sbin; /bin/mount only looks into /sbin
817 - KRB5 credentials are now set in the environment
818 - fix XDM crash, for GCC >= 4.x
819 - disable debug output by default (confused gksu) [sf bug #1524325]
820 - do FUSE mounts done unprivileged [sf bug #1489657 and ML]
821 - fixed: /bin/login sends SIGHUP/SIGTERM to outstanding session
822 processes after PAM completed; this killed fuse daemons
823 - work around XDM crash (symbol clash), for GCC <= 3.x;
824 the proper solution would be that XDM be NOT compiled with -rdynamic
825 - properly truncate /var/run/pam_mount/YOURNAME files [sf bug #1503246]
826
827
828 v0.13 (2006-04-01)
829 ==================
830 Before SVN, patchsets were used.
831
832 [patch 01/11] January 28 2006
833 - src/readconfig.c, mount.c: mount volumes with user credentials,
834 not as root
835 - src/mount.c: add a swift error message for people using broken distros
836
837 [patch 02/11] January 28 2006
838 - config/pam_mount.conf, readconfig.c: lsof is in /usr/bin
839
840 [patch 03/11] February 23 2006
841 - dry/pam_mount.spec: fixed: forgot to clean out unpackaged files
842
843 [patch 04/11] February 27 2006
844 - config/pam_mount.conf: update some examples
845
846 [patch 05/11] Februrary 27 2006
847 - scripts/mount.crypt: fix SED expression
848
849 [patch 06/11] March 04 2006
850 - src/mount.c: add an extra hint for old distros
851
852 [patch 07/11] March 19 2006
853 - src/*.h: fix position of #include's, they need to be before extern "C".
854
855 [patch 08/11] March 19 2006
856 - config/pam_mount.conf: fix examples for shares with spaces
857
858 [patch 09/11] March 19 2006
859 - src/pam_mount.c: relookup user (for LDAP)
860
861 [patch 10/11] April 01 2006
862 - use own SIGCHLD handler during pam_mount operations (try to fix a
863 quirk with GDM)
864
865 [patch 11/11] April 01 2006
866 - configure: enforce straight /lib position for pam_mount Linux
867
868
869 v0.12.2 (2006-01-31)
870 ====================
871 Mount smbfs and cifs mounts with ownership belonging to the user
872 rather than root.
873
874
875 v0.12.0 (2006-01-11)
876 ====================
877 This version fixes an fd leak, expansion problems with @group and a
878 wrong inversion. The smb/ncp filesystem types have been superseded by
879 smbfs/ncpfs. Support for secondary "@@groups" was added.
880
881
882 v0.11 (2005-12-28)
883 ==================
884 - fix some memory leaks, unterminated strings, extra trailing
885 slashes, double frees
886 - fixed: wildcards were not expanded for "@group"s
887 - account for trailing slashes and path resolution in umount.crypt
888
889
890 v0.10 (2005-11-18)
891 ==================
892 - support ANY [kernel] filesystem (yes, finally) -- includes tmpfs,
893 fuse mounts and --bind operations.
894 - merged various patches and fixes by Bastian Kleineidam
895 - handle symlinks better (read: resolve them, so that the result
896 matches /bin/mount's resolving behavior)
897 - implemented group volumes, to be used by "volume @xyz ..."
898 - cleaned the code up here and there
9595 this attribute is omitted, the location is read from /etc/fstab, which also
9696 requires \fBpath\fP to be a device or a source directory of an fstab entry.
9797 .TP
98 \fBheader="\fP\fIpath\fP\fB"\fP
99 This specifies a detached (separated) metadata file where the LUKS header is
100 stored. This correlates with the `cryptsetup --header` option. If this
101 attribute is omitted, the detached LUKS header feature is not used.
102 .TP
98103 \fBoptions="\fP\fI...\fP\fB"\fP
99104 Specifies the mount options. If omitted and /etc/fstab is used (see
100105 \fBmountpoint\fP), the options will also be sources from fstab.
410415 .PP
411416 <volume path="/home/%(USER).img" mountpoint="~"
412417 cipher="aes\-cbc\-essiv:sha256" />
418 .PP
419 volume path="/home/%(USER).img" mountpoint="~"
420 header="/home/%(USER)-header.img" />
413421 .SS cryptoloop volumes
414422 .PP
415423 cryptoloop is not explicitly supported by pam_mount. Citing the Linux kernel
88 [\fB-h\fP \fIhash\fP]
99 [\fB-k\fP \fIfscipher_keybits\fP]
1010 [\fB-t\fP \fIfstype\fP]
11 [\fB-H\fP \fIheader_path\fP]
1112 \fB-f\fP \fIcontainer_path\fP
1213 \fB-s\fP \fIsize_in_mb\fP
1314 .SH Options
3233 Store the new disk image at \fIpath\fP. If the file already exists, pmt-ehd
3334 will prompt before overwriting unless -F is given. If \fIpath\fP refers to a
3435 symlink, pmt-ehd will act even more cautious.
36 .TP
37 \fB-H\fP \fIpath\fP
38 Store a detached (separate) metadata file with a new LUKS header at \fIpath\fP. If
39 the file already exists, pmt-ehd will prompt before overwriting unless -F is given.
40 If \fIpath\fP refers to a symlink, pmt-ehd will act even more cautious. The default
41 is to not use a detached header. Correlates with the `cryptsetup --header` option.
3542 .TP
3643 \fB-h\fP \fIhash\fP
3744 Message digest/hash used for key derivation in the PBKDF2 stage. The default is
00 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
11 #
2 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
2 # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
3 # Foundation, Inc.
34 # Written by Gordon Matzigkeit, 1996
45 #
56 # This file is free software; the Free Software Foundation gives
3031 # along with this program. If not, see <http://www.gnu.org/licenses/>.
3132 ])
3233
33 # serial 58 LT_INIT
34 # serial 59 LT_INIT
3435
3536
3637 # LT_PREREQ(VERSION)
180181 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
181182 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
182183 m4_require([_LT_CMD_RELOAD])dnl
184 m4_require([_LT_DECL_FILECMD])dnl
183185 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
184186 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
185187 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
218220 ofile=libtool
219221 can_build_shared=yes
220222
221 # All known linkers require a '.a' archive for static linking (except MSVC,
222 # which needs '.lib').
223 # All known linkers require a '.a' archive for static linking (except MSVC and
224 # ICC, which need '.lib').
223225 libext=a
224226
225227 with_gnu_ld=$lt_cv_prog_gnu_ld
776778 # if finds mixed CR/LF and LF-only lines. Since sed operates in
777779 # text mode, it properly converts lines to CR/LF. This bash problem
778780 # is reportedly fixed, but why not run on old versions too?
779 sed '$q' "$ltmain" >> "$cfgfile" \
781 $SED '$q' "$ltmain" >> "$cfgfile" \
780782 || (rm -f "$cfgfile"; exit 1)
781783
782784 mv -f "$cfgfile" "$ofile" ||
10401042 _LT_EOF
10411043 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
10421044 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1043 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1044 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1045 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1046 $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
10451047 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
10461048 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
10471049 cat > conftest.c << _LT_EOF
10651067 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10661068 darwin1.*)
10671069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1068 darwin*) # darwin 5.x on
1069 # if running on 10.5 or later, the deployment target defaults
1070 # to the OS version, if on x86, and 10.4, the deployment
1071 # target defaults to 10.4. Don't you love it?
1072 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1073 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1074 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1075 10.[[012]][[,.]]*)
1076 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1077 10.*)
1078 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1070 darwin*)
1071 case $MACOSX_DEPLOYMENT_TARGET,$host in
1072 10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
1073 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1074 *)
1075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10791076 esac
10801077 ;;
10811078 esac
11241121 output_verbose_link_cmd=func_echo_all
11251122 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11261123 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1127 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1128 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1124 _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1125 _LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11291126 m4_if([$1], [CXX],
11301127 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
11311128 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
1132 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
1129 _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
11331130 fi
11341131 ],[])
11351132 else
12431240 # _LT_WITH_SYSROOT
12441241 # ----------------
12451242 AC_DEFUN([_LT_WITH_SYSROOT],
1246 [AC_MSG_CHECKING([for sysroot])
1243 [m4_require([_LT_DECL_SED])dnl
1244 AC_MSG_CHECKING([for sysroot])
12471245 AC_ARG_WITH([sysroot],
12481246 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
12491247 [Search for dependent libraries within DIR (or the compiler's sysroot
12601258 fi
12611259 ;; #(
12621260 /*)
1263 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1261 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
12641262 ;; #(
12651263 no|'')
12661264 ;; #(
12901288 # options accordingly.
12911289 echo 'int i;' > conftest.$ac_ext
12921290 if AC_TRY_EVAL(ac_compile); then
1293 case `/usr/bin/file conftest.$ac_objext` in
1291 case `$FILECMD conftest.$ac_objext` in
12941292 *ELF-32*)
12951293 HPUX_IA64_MODE=32
12961294 ;;
13071305 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
13081306 if AC_TRY_EVAL(ac_compile); then
13091307 if test yes = "$lt_cv_prog_gnu_ld"; then
1310 case `/usr/bin/file conftest.$ac_objext` in
1308 case `$FILECMD conftest.$ac_objext` in
13111309 *32-bit*)
13121310 LD="${LD-ld} -melf32bsmip"
13131311 ;;
13191317 ;;
13201318 esac
13211319 else
1322 case `/usr/bin/file conftest.$ac_objext` in
1320 case `$FILECMD conftest.$ac_objext` in
13231321 *32-bit*)
13241322 LD="${LD-ld} -32"
13251323 ;;
13411339 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
13421340 if AC_TRY_EVAL(ac_compile); then
13431341 emul=elf
1344 case `/usr/bin/file conftest.$ac_objext` in
1342 case `$FILECMD conftest.$ac_objext` in
13451343 *32-bit*)
13461344 emul="${emul}32"
13471345 ;;
13491347 emul="${emul}64"
13501348 ;;
13511349 esac
1352 case `/usr/bin/file conftest.$ac_objext` in
1350 case `$FILECMD conftest.$ac_objext` in
13531351 *MSB*)
13541352 emul="${emul}btsmip"
13551353 ;;
13571355 emul="${emul}ltsmip"
13581356 ;;
13591357 esac
1360 case `/usr/bin/file conftest.$ac_objext` in
1358 case `$FILECMD conftest.$ac_objext` in
13611359 *N32*)
13621360 emul="${emul}n32"
13631361 ;;
13771375 # not appear in the list.
13781376 echo 'int i;' > conftest.$ac_ext
13791377 if AC_TRY_EVAL(ac_compile); then
1380 case `/usr/bin/file conftest.o` in
1378 case `$FILECMD conftest.o` in
13811379 *32-bit*)
13821380 case $host in
13831381 x86_64-*kfreebsd*-gnu)
13841382 LD="${LD-ld} -m elf_i386_fbsd"
13851383 ;;
13861384 x86_64-*linux*)
1387 case `/usr/bin/file conftest.o` in
1385 case `$FILECMD conftest.o` in
13881386 *x86-64*)
13891387 LD="${LD-ld} -m elf32_x86_64"
13901388 ;;
14521450 # options accordingly.
14531451 echo 'int i;' > conftest.$ac_ext
14541452 if AC_TRY_EVAL(ac_compile); then
1455 case `/usr/bin/file conftest.o` in
1453 case `$FILECMD conftest.o` in
14561454 *64-bit*)
14571455 case $lt_cv_prog_gnu_ld in
14581456 yes*)
14911489 m4_defun([_LT_PROG_AR],
14921490 [AC_CHECK_TOOLS(AR, [ar], false)
14931491 : ${AR=ar}
1494 : ${AR_FLAGS=cru}
14951492 _LT_DECL([], [AR], [1], [The archiver])
1496 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1493
1494 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
1495 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
1496 # higher priority because thats what people were doing historically (setting
1497 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
1498 # variable obsoleted/removed.
1499
1500 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
1501 lt_ar_flags=$AR_FLAGS
1502 _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
1503
1504 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
1505 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
1506 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
1507 [Flags to create an archive])
14971508
14981509 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
14991510 [lt_cv_ar_at_file=no
17121723 lt_cv_sys_max_cmd_len=8192;
17131724 ;;
17141725
1715 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
1726 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
17161727 # This has been around since 386BSD, at least. Likely further.
17171728 if test -x /sbin/sysctl; then
17181729 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
17551766 sysv5* | sco5v6* | sysv4.2uw2*)
17561767 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
17571768 if test -n "$kargmax"; then
1758 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1769 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'`
17591770 else
17601771 lt_cv_sys_max_cmd_len=32768
17611772 fi
22052216 striplib=
22062217 old_striplib=
22072218 AC_MSG_CHECKING([whether stripping libraries is possible])
2208 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2211 AC_MSG_RESULT([yes])
2219 if test -z "$STRIP"; then
2220 AC_MSG_RESULT([no])
22122221 else
2213 # FIXME - insert some real tests, host_os isn't really good enough
2214 case $host_os in
2215 darwin*)
2216 if test -n "$STRIP"; then
2222 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2223 old_striplib="$STRIP --strip-debug"
2224 striplib="$STRIP --strip-unneeded"
2225 AC_MSG_RESULT([yes])
2226 else
2227 case $host_os in
2228 darwin*)
2229 # FIXME - insert some real tests, host_os isn't really good enough
22172230 striplib="$STRIP -x"
22182231 old_striplib="$STRIP -S"
22192232 AC_MSG_RESULT([yes])
2220 else
2233 ;;
2234 freebsd*)
2235 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
2236 old_striplib="$STRIP --strip-debug"
2237 striplib="$STRIP --strip-unneeded"
2238 AC_MSG_RESULT([yes])
2239 else
2240 AC_MSG_RESULT([no])
2241 fi
2242 ;;
2243 *)
22212244 AC_MSG_RESULT([no])
2222 fi
2223 ;;
2224 *)
2225 AC_MSG_RESULT([no])
2226 ;;
2227 esac
2245 ;;
2246 esac
2247 fi
22282248 fi
22292249 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
22302250 _LT_DECL([], [striplib], [1])
25472567 case $host_os in
25482568 cygwin*)
25492569 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2550 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2570 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
25512571 m4_if([$1], [],[
25522572 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
25532573 ;;
25572577 ;;
25582578 pw32*)
25592579 # pw32 DLLs use 'pw' prefix rather than 'lib'
2560 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2580 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
25612581 ;;
25622582 esac
25632583 dynamic_linker='Win32 ld.exe'
25642584 ;;
25652585
2566 *,cl*)
2567 # Native MSVC
2586 *,cl* | *,icl*)
2587 # Native MSVC or ICC
25682588 libname_spec='$name'
25692589 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
25702590 library_names_spec='$libname.dll.lib'
25832603 done
25842604 IFS=$lt_save_ifs
25852605 # Convert to MSYS style.
2586 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
25872607 ;;
25882608 cygwin*)
25892609 # Convert to unix form, then to dos form, then back to unix form
26202640 ;;
26212641
26222642 *)
2623 # Assume MSVC wrapper
2643 # Assume MSVC and ICC wrapper
26242644 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
26252645 dynamic_linker='Win32 ld.exe'
26262646 ;;
26532673 shlibpath_var=LD_LIBRARY_PATH
26542674 ;;
26552675
2656 freebsd* | dragonfly*)
2676 freebsd* | dragonfly* | midnightbsd*)
26572677 # DragonFly does not have aout. When/if they implement a new
26582678 # versioning mechanism, adjust this.
26592679 if test -x /usr/bin/objformat; then
34523472
34533473 bsdi[[45]]*)
34543474 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3455 lt_cv_file_magic_cmd='/usr/bin/file -L'
3475 lt_cv_file_magic_cmd='$FILECMD -L'
34563476 lt_cv_file_magic_test_file=/shlib/libc.so
34573477 ;;
34583478
34863506 lt_cv_deplibs_check_method=pass_all
34873507 ;;
34883508
3489 freebsd* | dragonfly*)
3509 freebsd* | dragonfly* | midnightbsd*)
34903510 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
34913511 case $host_cpu in
34923512 i*86 )
34933513 # Not sure whether the presence of OpenBSD here was a mistake.
34943514 # Let's accept both of them until this is cleared up.
34953515 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3496 lt_cv_file_magic_cmd=/usr/bin/file
3516 lt_cv_file_magic_cmd=$FILECMD
34973517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
34983518 ;;
34993519 esac
35073527 ;;
35083528
35093529 hpux10.20* | hpux11*)
3510 lt_cv_file_magic_cmd=/usr/bin/file
3530 lt_cv_file_magic_cmd=$FILECMD
35113531 case $host_cpu in
35123532 ia64*)
35133533 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
35543574
35553575 newos6*)
35563576 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3557 lt_cv_file_magic_cmd=/usr/bin/file
3577 lt_cv_file_magic_cmd=$FILECMD
35583578 lt_cv_file_magic_test_file=/usr/lib/libnls.so
35593579 ;;
35603580
36813701 mingw*) lt_bad_file=conftest.nm/nofile ;;
36823702 *) lt_bad_file=/dev/null ;;
36833703 esac
3684 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3704 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
36853705 *$lt_bad_file* | *'Invalid file or object type'*)
36863706 lt_cv_path_NM="$tmp_nm -B"
36873707 break 2
36883708 ;;
36893709 *)
3690 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3710 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
36913711 */dev/null*)
36923712 lt_cv_path_NM="$tmp_nm -p"
36933713 break 2
37133733 # Let the user override the test.
37143734 else
37153735 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3716 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3736 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
37173737 *COFF*)
37183738 DUMPBIN="$DUMPBIN -symbols -headers"
37193739 ;;
39533973
39543974 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
39553975 # Gets list of data symbols to import.
3956 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3976 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
39573977 # Adjust the below global symbol transforms to fixup imported variables.
39583978 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
39593979 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
39713991 # Transform an extracted symbol line into a proper C declaration.
39723992 # Some systems (esp. on ia64) link data and code symbols differently,
39733993 # so use this general approach.
3974 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
3994 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
39753995 $lt_cdecl_hook\
39763996 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
39773997 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
39783998
39793999 # Transform an extracted symbol line into symbol name and symbol address
3980 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
4000 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
39814001 $lt_c_name_hook\
39824002 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
39834003 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
39844004
39854005 # Transform an extracted symbol line into symbol name with lib prefix and
39864006 # symbol address.
3987 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4007 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
39884008 $lt_c_name_lib_hook\
39894009 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
39904010 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
40084028 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
40094029 # Fake it for dumpbin and say T for any non-static function,
40104030 # D for any global variable and I for any imported variable.
4011 # Also find C++ and __fastcall symbols from MSVC++,
4031 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
40124032 # which start with @ or ?.
40134033 lt_cv_sys_global_symbol_pipe="$AWK ['"\
40144034 " {last_section=section; section=\$ 3};"\
40264046 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
40274047 " ' prfx=^$ac_symprfx]"
40284048 else
4029 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4049 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
40304050 fi
4031 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4051 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
40324052
40334053 # Check to see that the pipe works correctly.
40344054 pipe_works=no
43154335 ;;
43164336 esac
43174337 ;;
4318 freebsd* | dragonfly*)
4338 freebsd* | dragonfly* | midnightbsd*)
43194339 # FreeBSD uses GNU C++
43204340 ;;
43214341 hpux9* | hpux10* | hpux11*)
43984418 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
43994419 ;;
44004420 *)
4401 case `$CC -V 2>&1 | sed 5q` in
4421 case `$CC -V 2>&1 | $SED 5q` in
44024422 *Sun\ C*)
44034423 # Sun C++ 5.9
44044424 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
47344754 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
47354755 ;;
47364756 *)
4737 case `$CC -V 2>&1 | sed 5q` in
4757 case `$CC -V 2>&1 | $SED 5q` in
47384758 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
47394759 # Sun Fortran 8.3 passes all unrecognized flags to the linker
47404760 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
49174937 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
49184938 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
49194939 else
4920 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
4940 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
49214941 fi
49224942 ;;
49234943 pw32*)
49254945 ;;
49264946 cygwin* | mingw* | cegcc*)
49274947 case $cc_basename in
4928 cl*)
4948 cl* | icl*)
49294949 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
49304950 ;;
49314951 *)
49825002
49835003 case $host_os in
49845004 cygwin* | mingw* | pw32* | cegcc*)
4985 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5005 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
49865006 # When not using gcc, we currently assume that we are using
4987 # Microsoft Visual C++.
5007 # Microsoft Visual C++ or Intel C++ Compiler.
49885008 if test yes != "$GCC"; then
49895009 with_gnu_ld=no
49905010 fi
49915011 ;;
49925012 interix*)
4993 # we just hope/assume this is gcc and not c89 (= MSVC++)
5013 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
49945014 with_gnu_ld=yes
49955015 ;;
49965016 openbsd* | bitrig*)
50425062 _LT_TAGVAR(whole_archive_flag_spec, $1)=
50435063 fi
50445064 supports_anon_versioning=no
5045 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
5065 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
50465066 *GNU\ gold*) supports_anon_versioning=yes ;;
50475067 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
50485068 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
51545174 emximp -o $lib $output_objdir/$libname.def'
51555175 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
51565176 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5177 _LT_TAGVAR(file_list_spec, $1)='@'
51575178 ;;
51585179
51595180 interix[[3-9]]*)
51685189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
51695190 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
51705191 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5171 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5192 _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
51725193 ;;
51735194
51745195 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
52115232 _LT_TAGVAR(compiler_needs_object, $1)=yes
52125233 ;;
52135234 esac
5214 case `$CC -V 2>&1 | sed 5q` in
5235 case `$CC -V 2>&1 | $SED 5q` in
52155236 *Sun\ C*) # Sun C 5.9
52165237 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
52175238 _LT_TAGVAR(compiler_needs_object, $1)=yes
52235244
52245245 if test yes = "$supports_anon_versioning"; then
52255246 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5247 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
52275248 echo "local: *; };" >> $output_objdir/$libname.ver~
52285249 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
52295250 fi
52395260 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
52405261 if test yes = "$supports_anon_versioning"; then
52415262 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5242 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5263 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
52435264 echo "local: *; };" >> $output_objdir/$libname.ver~
52445265 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
52455266 fi
53715392 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
53725393 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
53735394 else
5374 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5395 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
53755396 fi
53765397 aix_use_runtimelinking=no
53775398
55545575
55555576 cygwin* | mingw* | pw32* | cegcc*)
55565577 # When not using gcc, we currently assume that we are using
5557 # Microsoft Visual C++.
5578 # Microsoft Visual C++ or Intel C++ Compiler.
55585579 # hardcode_libdir_flag_spec is actually meaningless, as there is
55595580 # no search path for DLLs.
55605581 case $cc_basename in
5561 cl*)
5562 # Native MSVC
5582 cl* | icl*)
5583 # Native MSVC or ICC
55635584 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
55645585 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
55655586 _LT_TAGVAR(always_export_symbols, $1)=yes
56005621 fi'
56015622 ;;
56025623 *)
5603 # Assume MSVC wrapper
5624 # Assume MSVC and ICC wrapper
56045625 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
56055626 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
56065627 # Tell ltmain to make .lib files, not .a files.
56485669 ;;
56495670
56505671 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5651 freebsd* | dragonfly*)
5672 freebsd* | dragonfly* | midnightbsd*)
56525673 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
56535674 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
56545675 _LT_TAGVAR(hardcode_direct, $1)=yes
58595880 emximp -o $lib $output_objdir/$libname.def'
58605881 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
58615882 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5883 _LT_TAGVAR(file_list_spec, $1)='@'
58625884 ;;
58635885
58645886 osf3*)
66296651
66306652 cygwin* | mingw* | pw32* | cegcc*)
66316653 case $GXX,$cc_basename in
6632 ,cl* | no,cl*)
6633 # Native MSVC
6654 ,cl* | no,cl* | ,icl* | no,icl*)
6655 # Native MSVC or ICC
66346656 # hardcode_libdir_flag_spec is actually meaningless, as there is
66356657 # no search path for DLLs.
66366658 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
67286750 emximp -o $lib $output_objdir/$libname.def'
67296751 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
67306752 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6753 _LT_TAGVAR(file_list_spec, $1)='@'
67316754 ;;
67326755
67336756 dgux*)
67586781 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67596782 ;;
67606783
6761 freebsd* | dragonfly*)
6784 freebsd* | dragonfly* | midnightbsd*)
67626785 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
67636786 # conventions
67646787 _LT_TAGVAR(ld_shlibs, $1)=yes
68956918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
68966919 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
68976920 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6898 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6921 _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
68996922 ;;
69006923 irix5* | irix6*)
69016924 case $cc_basename in
70357058 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
70367059 if test yes = "$supports_anon_versioning"; then
70377060 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7038 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7061 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
70397062 echo "local: *; };" >> $output_objdir/$libname.ver~
70407063 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
70417064 fi
70427065 ;;
70437066 *)
7044 case `$CC -V 2>&1 | sed 5q` in
7067 case `$CC -V 2>&1 | $SED 5q` in
70457068 *Sun\ C*)
70467069 # Sun C++ 5.9
70477070 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
81868209 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
81878210 AC_SUBST([DLLTOOL])
81888211 ])
8212
8213 # _LT_DECL_FILECMD
8214 # ----------------
8215 # Check for a file(cmd) program that can be used to detect file type and magic
8216 m4_defun([_LT_DECL_FILECMD],
8217 [AC_CHECK_TOOL([FILECMD], [file], [:])
8218 _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
8219 ])# _LD_DECL_FILECMD
81898220
81908221 # _LT_DECL_SED
81918222 # ------------
00 # Helper functions for option handling. -*- Autoconf -*-
11 #
2 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
3 # Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free
3 # Software Foundation, Inc.
44 # Written by Gary V. Vaughan, 2004
55 #
66 # This file is free software; the Free Software Foundation gives
00 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
2 # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software
33 # Foundation, Inc.
44 # Written by Gary V. Vaughan, 2004
55 #
00 # ltversion.m4 -- version numbers -*- Autoconf -*-
11 #
2 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
2 # Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation,
3 # Inc.
34 # Written by Scott James Remnant, 2004
45 #
56 # This file is free software; the Free Software Foundation gives
89
910 # @configure_input@
1011
11 # serial 4179 ltversion.m4
12 # serial 4245 ltversion.m4
1213 # This file is part of GNU Libtool
1314
14 m4_define([LT_PACKAGE_VERSION], [2.4.6])
15 m4_define([LT_PACKAGE_REVISION], [2.4.6])
15 m4_define([LT_PACKAGE_VERSION], [2.4.7])
16 m4_define([LT_PACKAGE_REVISION], [2.4.7])
1617
1718 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.4.6'
19 macro_revision='2.4.6'
19 [macro_version='2.4.7'
20 macro_revision='2.4.7'
2021 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
2122 _LT_DECL(, macro_revision, 0)
2223 ])
00 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
3 # Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free
3 # Software Foundation, Inc.
44 # Written by Scott James Remnant, 2004.
55 #
66 # This file is free software; the Free Software Foundation gives
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2017 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,
114114 CONFIG_HEADER = $(top_builddir)/config.h
115115 CONFIG_CLEAN_FILES =
116116 CONFIG_CLEAN_VPATH_FILES =
117 @HAVE_LIBCRYPTSETUP_TRUE@am__EXEEXT_1 = pmt-ehd$(EXEEXT)
118 am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(libdir)" \
119 "$(DESTDIR)$(moduledir)" "$(DESTDIR)$(includedir)"
120 PROGRAMS = $(noinst_PROGRAMS) $(sbin_PROGRAMS)
117121 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
118122 am__vpath_adj = case $$p in \
119123 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
141145 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
142146 $(am__cd) "$$dir" && rm -f $$files; }; \
143147 }
144 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(moduledir)" \
145 "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(includedir)"
146148 LTLIBRARIES = $(lib_LTLIBRARIES) $(module_LTLIBRARIES) \
147149 $(noinst_LTLIBRARIES)
148150 am__DEPENDENCIES_1 =
183185 pam_mount_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
184186 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(pam_mount_la_CFLAGS) \
185187 $(CFLAGS) $(pam_mount_la_LDFLAGS) $(LDFLAGS) -o $@
186 @HAVE_LIBCRYPTSETUP_TRUE@am__EXEEXT_1 = pmt-ehd$(EXEEXT)
187 PROGRAMS = $(noinst_PROGRAMS) $(sbin_PROGRAMS)
188188 am_autoloop_OBJECTS = autoloop.$(OBJEXT)
189189 autoloop_OBJECTS = $(am_autoloop_OBJECTS)
190190 autoloop_DEPENDENCIES = libcryptmount.la $(am__DEPENDENCIES_1)
215215 am__v_at_1 =
216216 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
217217 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
218 am__depfiles_maybe = depfiles
218 am__maybe_remake_depfiles = depfiles
219 am__depfiles_remade = ./$(DEPDIR)/autoloop.Po ./$(DEPDIR)/bdev.Po \
220 ./$(DEPDIR)/crypto-cgd.Plo ./$(DEPDIR)/crypto-dmc.Plo \
221 ./$(DEPDIR)/crypto.Plo ./$(DEPDIR)/ehd.Po \
222 ./$(DEPDIR)/libpmt_mtab_la-misc.Plo \
223 ./$(DEPDIR)/libpmt_mtab_la-mtab.Plo ./$(DEPDIR)/log.Plo \
224 ./$(DEPDIR)/loop-linux.Plo ./$(DEPDIR)/loop-mdvn.Plo \
225 ./$(DEPDIR)/loop-vnd.Plo ./$(DEPDIR)/loop.Plo \
226 ./$(DEPDIR)/misc.Po ./$(DEPDIR)/mtcrypt.Po \
227 ./$(DEPDIR)/pam_mount_la-misc.Plo \
228 ./$(DEPDIR)/pam_mount_la-mount.Plo \
229 ./$(DEPDIR)/pam_mount_la-pam_mount.Plo \
230 ./$(DEPDIR)/pam_mount_la-rdconf1.Plo \
231 ./$(DEPDIR)/pam_mount_la-rdconf2.Plo \
232 ./$(DEPDIR)/pam_mount_la-spawn.Plo ./$(DEPDIR)/pmvarrun.Po \
233 ./$(DEPDIR)/spawn.Po
219234 am__mv = mv -f
220235 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
221236 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
265280 unique=`for i in $$list; do \
266281 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
267282 done | $(am__uniquify_input)`
268 ETAGS = etags
269 CTAGS = ctags
270283 am__DIST_COMMON = $(srcdir)/Makefile.in \
271284 $(top_srcdir)/build-aux/depcomp
272285 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
281294 CC = @CC@
282295 CCDEPMODE = @CCDEPMODE@
283296 CFLAGS = @CFLAGS@
284 CPP = @CPP@
285297 CPPFLAGS = @CPPFLAGS@
298 CSCOPE = @CSCOPE@
299 CTAGS = @CTAGS@
286300 CYGPATH_W = @CYGPATH_W@
287301 DEFS = @DEFS@
288302 DEPDIR = @DEPDIR@
293307 ECHO_N = @ECHO_N@
294308 ECHO_T = @ECHO_T@
295309 EGREP = @EGREP@
310 ETAGS = @ETAGS@
296311 EXEEXT = @EXEEXT@
297312 FGREP = @FGREP@
313 FILECMD = @FILECMD@
298314 GCC_FVISIBILITY_HIDDEN = @GCC_FVISIBILITY_HIDDEN@
299315 GREP = @GREP@
300316 INSTALL = @INSTALL@
398414 regular_CFLAGS = @regular_CFLAGS@
399415 regular_CPPFLAGS = @regular_CPPFLAGS@
400416 rundir = @rundir@
417 runstatedir = @runstatedir@
401418 sbindir = @sbindir@
402419 sharedstatedir = @sharedstatedir@
403420 slibdir = @slibdir@
505522 *config.status*) \
506523 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
507524 *) \
508 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
509 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
525 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
526 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
510527 esac;
511528
512529 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
517534 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
518535 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
519536 $(am__aclocal_m4_deps):
520
521 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
522 @$(NORMAL_INSTALL)
523 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
524 list2=; for p in $$list; do \
525 if test -f $$p; then \
526 list2="$$list2 $$p"; \
527 else :; fi; \
528 done; \
529 test -z "$$list2" || { \
530 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
531 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
532 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
533 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
534 }
535
536 uninstall-libLTLIBRARIES:
537 @$(NORMAL_UNINSTALL)
538 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
539 for p in $$list; do \
540 $(am__strip_dir) \
541 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
542 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
543 done
544
545 clean-libLTLIBRARIES:
546 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
547 @list='$(lib_LTLIBRARIES)'; \
548 locs=`for p in $$list; do echo $$p; done | \
549 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
550 sort -u`; \
551 test -z "$$locs" || { \
552 echo rm -f $${locs}; \
553 rm -f $${locs}; \
554 }
555
556 install-moduleLTLIBRARIES: $(module_LTLIBRARIES)
557 @$(NORMAL_INSTALL)
558 @list='$(module_LTLIBRARIES)'; test -n "$(moduledir)" || list=; \
559 list2=; for p in $$list; do \
560 if test -f $$p; then \
561 list2="$$list2 $$p"; \
562 else :; fi; \
563 done; \
564 test -z "$$list2" || { \
565 echo " $(MKDIR_P) '$(DESTDIR)$(moduledir)'"; \
566 $(MKDIR_P) "$(DESTDIR)$(moduledir)" || exit 1; \
567 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(moduledir)'"; \
568 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(moduledir)"; \
569 }
570
571 uninstall-moduleLTLIBRARIES:
572 @$(NORMAL_UNINSTALL)
573 @list='$(module_LTLIBRARIES)'; test -n "$(moduledir)" || list=; \
574 for p in $$list; do \
575 $(am__strip_dir) \
576 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(moduledir)/$$f'"; \
577 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(moduledir)/$$f"; \
578 done
579
580 clean-moduleLTLIBRARIES:
581 -test -z "$(module_LTLIBRARIES)" || rm -f $(module_LTLIBRARIES)
582 @list='$(module_LTLIBRARIES)'; \
583 locs=`for p in $$list; do echo $$p; done | \
584 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
585 sort -u`; \
586 test -z "$$locs" || { \
587 echo rm -f $${locs}; \
588 rm -f $${locs}; \
589 }
590
591 clean-noinstLTLIBRARIES:
592 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
593 @list='$(noinst_LTLIBRARIES)'; \
594 locs=`for p in $$list; do echo $$p; done | \
595 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
596 sort -u`; \
597 test -z "$$locs" || { \
598 echo rm -f $${locs}; \
599 rm -f $${locs}; \
600 }
601
602 libcryptmount.la: $(libcryptmount_la_OBJECTS) $(libcryptmount_la_DEPENDENCIES) $(EXTRA_libcryptmount_la_DEPENDENCIES)
603 $(AM_V_CCLD)$(libcryptmount_la_LINK) -rpath $(libdir) $(libcryptmount_la_OBJECTS) $(libcryptmount_la_LIBADD) $(LIBS)
604
605 libpmt_mtab.la: $(libpmt_mtab_la_OBJECTS) $(libpmt_mtab_la_DEPENDENCIES) $(EXTRA_libpmt_mtab_la_DEPENDENCIES)
606 $(AM_V_CCLD)$(libpmt_mtab_la_LINK) $(libpmt_mtab_la_OBJECTS) $(libpmt_mtab_la_LIBADD) $(LIBS)
607
608 pam_mount.la: $(pam_mount_la_OBJECTS) $(pam_mount_la_DEPENDENCIES) $(EXTRA_pam_mount_la_DEPENDENCIES)
609 $(AM_V_CCLD)$(pam_mount_la_LINK) -rpath $(moduledir) $(pam_mount_la_OBJECTS) $(pam_mount_la_LIBADD) $(LIBS)
610537
611538 clean-noinstPROGRAMS:
612539 @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
666593 echo " rm -f" $$list; \
667594 rm -f $$list
668595
596 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
597 @$(NORMAL_INSTALL)
598 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
599 list2=; for p in $$list; do \
600 if test -f $$p; then \
601 list2="$$list2 $$p"; \
602 else :; fi; \
603 done; \
604 test -z "$$list2" || { \
605 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
606 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
607 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
608 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
609 }
610
611 uninstall-libLTLIBRARIES:
612 @$(NORMAL_UNINSTALL)
613 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
614 for p in $$list; do \
615 $(am__strip_dir) \
616 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
617 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
618 done
619
620 clean-libLTLIBRARIES:
621 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
622 @list='$(lib_LTLIBRARIES)'; \
623 locs=`for p in $$list; do echo $$p; done | \
624 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
625 sort -u`; \
626 test -z "$$locs" || { \
627 echo rm -f $${locs}; \
628 rm -f $${locs}; \
629 }
630
631 install-moduleLTLIBRARIES: $(module_LTLIBRARIES)
632 @$(NORMAL_INSTALL)
633 @list='$(module_LTLIBRARIES)'; test -n "$(moduledir)" || list=; \
634 list2=; for p in $$list; do \
635 if test -f $$p; then \
636 list2="$$list2 $$p"; \
637 else :; fi; \
638 done; \
639 test -z "$$list2" || { \
640 echo " $(MKDIR_P) '$(DESTDIR)$(moduledir)'"; \
641 $(MKDIR_P) "$(DESTDIR)$(moduledir)" || exit 1; \
642 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(moduledir)'"; \
643 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(moduledir)"; \
644 }
645
646 uninstall-moduleLTLIBRARIES:
647 @$(NORMAL_UNINSTALL)
648 @list='$(module_LTLIBRARIES)'; test -n "$(moduledir)" || list=; \
649 for p in $$list; do \
650 $(am__strip_dir) \
651 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(moduledir)/$$f'"; \
652 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(moduledir)/$$f"; \
653 done
654
655 clean-moduleLTLIBRARIES:
656 -test -z "$(module_LTLIBRARIES)" || rm -f $(module_LTLIBRARIES)
657 @list='$(module_LTLIBRARIES)'; \
658 locs=`for p in $$list; do echo $$p; done | \
659 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
660 sort -u`; \
661 test -z "$$locs" || { \
662 echo rm -f $${locs}; \
663 rm -f $${locs}; \
664 }
665
666 clean-noinstLTLIBRARIES:
667 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
668 @list='$(noinst_LTLIBRARIES)'; \
669 locs=`for p in $$list; do echo $$p; done | \
670 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
671 sort -u`; \
672 test -z "$$locs" || { \
673 echo rm -f $${locs}; \
674 rm -f $${locs}; \
675 }
676
677 libcryptmount.la: $(libcryptmount_la_OBJECTS) $(libcryptmount_la_DEPENDENCIES) $(EXTRA_libcryptmount_la_DEPENDENCIES)
678 $(AM_V_CCLD)$(libcryptmount_la_LINK) -rpath $(libdir) $(libcryptmount_la_OBJECTS) $(libcryptmount_la_LIBADD) $(LIBS)
679
680 libpmt_mtab.la: $(libpmt_mtab_la_OBJECTS) $(libpmt_mtab_la_DEPENDENCIES) $(EXTRA_libpmt_mtab_la_DEPENDENCIES)
681 $(AM_V_CCLD)$(libpmt_mtab_la_LINK) $(libpmt_mtab_la_OBJECTS) $(libpmt_mtab_la_LIBADD) $(LIBS)
682
683 pam_mount.la: $(pam_mount_la_OBJECTS) $(pam_mount_la_DEPENDENCIES) $(EXTRA_pam_mount_la_DEPENDENCIES)
684 $(AM_V_CCLD)$(pam_mount_la_LINK) -rpath $(moduledir) $(pam_mount_la_OBJECTS) $(pam_mount_la_LIBADD) $(LIBS)
685
669686 autoloop$(EXEEXT): $(autoloop_OBJECTS) $(autoloop_DEPENDENCIES) $(EXTRA_autoloop_DEPENDENCIES)
670687 @rm -f autoloop$(EXEEXT)
671688 $(AM_V_CCLD)$(LINK) $(autoloop_OBJECTS) $(autoloop_LDADD) $(LIBS)
688705 distclean-compile:
689706 -rm -f *.tab.c
690707
691 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/autoloop.Po@am__quote@
692 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bdev.Po@am__quote@
693 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto-cgd.Plo@am__quote@
694 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto-dmc.Plo@am__quote@
695 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto.Plo@am__quote@
696 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ehd.Po@am__quote@
697 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpmt_mtab_la-misc.Plo@am__quote@
698 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpmt_mtab_la-mtab.Plo@am__quote@
699 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log.Plo@am__quote@
700 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loop-linux.Plo@am__quote@
701 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loop-mdvn.Plo@am__quote@
702 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loop-vnd.Plo@am__quote@
703 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loop.Plo@am__quote@
704 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Po@am__quote@
705 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mtcrypt.Po@am__quote@
706 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_mount_la-misc.Plo@am__quote@
707 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_mount_la-mount.Plo@am__quote@
708 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_mount_la-pam_mount.Plo@am__quote@
709 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_mount_la-rdconf1.Plo@am__quote@
710 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_mount_la-rdconf2.Plo@am__quote@
711 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_mount_la-spawn.Plo@am__quote@
712 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pmvarrun.Po@am__quote@
713 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spawn.Po@am__quote@
708 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/autoloop.Po@am__quote@ # am--include-marker
709 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bdev.Po@am__quote@ # am--include-marker
710 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto-cgd.Plo@am__quote@ # am--include-marker
711 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto-dmc.Plo@am__quote@ # am--include-marker
712 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto.Plo@am__quote@ # am--include-marker
713 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ehd.Po@am__quote@ # am--include-marker
714 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpmt_mtab_la-misc.Plo@am__quote@ # am--include-marker
715 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpmt_mtab_la-mtab.Plo@am__quote@ # am--include-marker
716 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log.Plo@am__quote@ # am--include-marker
717 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loop-linux.Plo@am__quote@ # am--include-marker
718 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loop-mdvn.Plo@am__quote@ # am--include-marker
719 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loop-vnd.Plo@am__quote@ # am--include-marker
720 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loop.Plo@am__quote@ # am--include-marker
721 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Po@am__quote@ # am--include-marker
722 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mtcrypt.Po@am__quote@ # am--include-marker
723 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_mount_la-misc.Plo@am__quote@ # am--include-marker
724 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_mount_la-mount.Plo@am__quote@ # am--include-marker
725 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_mount_la-pam_mount.Plo@am__quote@ # am--include-marker
726 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_mount_la-rdconf1.Plo@am__quote@ # am--include-marker
727 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_mount_la-rdconf2.Plo@am__quote@ # am--include-marker
728 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_mount_la-spawn.Plo@am__quote@ # am--include-marker
729 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pmvarrun.Po@am__quote@ # am--include-marker
730 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spawn.Po@am__quote@ # am--include-marker
731
732 $(am__depfiles_remade):
733 @$(MKDIR_P) $(@D)
734 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
735
736 am--depfiles: $(am__depfiles_remade)
714737
715738 .c.o:
716739 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
870893
871894 distclean-tags:
872895 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
873
874 distdir: $(DISTFILES)
896 distdir: $(BUILT_SOURCES)
897 $(MAKE) $(AM_MAKEFLAGS) distdir-am
898
899 distdir-am: $(DISTFILES)
875900 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
876901 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
877902 list='$(DISTFILES)'; \
903928 done
904929 check-am: all-am
905930 check: check-am
906 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(HEADERS)
931 all-am: Makefile $(PROGRAMS) $(LTLIBRARIES) $(SCRIPTS) $(HEADERS)
932 install-sbinPROGRAMS: install-libLTLIBRARIES
933
934 install-moduleLTLIBRARIES: install-libLTLIBRARIES
935
907936 installdirs:
908 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(moduledir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(includedir)"; do \
937 for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(moduledir)" "$(DESTDIR)$(includedir)"; do \
909938 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
910939 done
911940 install: install-am
946975 clean-noinstPROGRAMS clean-sbinPROGRAMS mostlyclean-am
947976
948977 distclean: distclean-am
949 -rm -rf ./$(DEPDIR)
978 -rm -f ./$(DEPDIR)/autoloop.Po
979 -rm -f ./$(DEPDIR)/bdev.Po
980 -rm -f ./$(DEPDIR)/crypto-cgd.Plo
981 -rm -f ./$(DEPDIR)/crypto-dmc.Plo
982 -rm -f ./$(DEPDIR)/crypto.Plo
983 -rm -f ./$(DEPDIR)/ehd.Po
984 -rm -f ./$(DEPDIR)/libpmt_mtab_la-misc.Plo
985 -rm -f ./$(DEPDIR)/libpmt_mtab_la-mtab.Plo
986 -rm -f ./$(DEPDIR)/log.Plo
987 -rm -f ./$(DEPDIR)/loop-linux.Plo
988 -rm -f ./$(DEPDIR)/loop-mdvn.Plo
989 -rm -f ./$(DEPDIR)/loop-vnd.Plo
990 -rm -f ./$(DEPDIR)/loop.Plo
991 -rm -f ./$(DEPDIR)/misc.Po
992 -rm -f ./$(DEPDIR)/mtcrypt.Po
993 -rm -f ./$(DEPDIR)/pam_mount_la-misc.Plo
994 -rm -f ./$(DEPDIR)/pam_mount_la-mount.Plo
995 -rm -f ./$(DEPDIR)/pam_mount_la-pam_mount.Plo
996 -rm -f ./$(DEPDIR)/pam_mount_la-rdconf1.Plo
997 -rm -f ./$(DEPDIR)/pam_mount_la-rdconf2.Plo
998 -rm -f ./$(DEPDIR)/pam_mount_la-spawn.Plo
999 -rm -f ./$(DEPDIR)/pmvarrun.Po
1000 -rm -f ./$(DEPDIR)/spawn.Po
9501001 -rm -f Makefile
9511002 distclean-am: clean-am distclean-compile distclean-generic \
9521003 distclean-tags
9941045 installcheck-am:
9951046
9961047 maintainer-clean: maintainer-clean-am
997 -rm -rf ./$(DEPDIR)
1048 -rm -f ./$(DEPDIR)/autoloop.Po
1049 -rm -f ./$(DEPDIR)/bdev.Po
1050 -rm -f ./$(DEPDIR)/crypto-cgd.Plo
1051 -rm -f ./$(DEPDIR)/crypto-dmc.Plo
1052 -rm -f ./$(DEPDIR)/crypto.Plo
1053 -rm -f ./$(DEPDIR)/ehd.Po
1054 -rm -f ./$(DEPDIR)/libpmt_mtab_la-misc.Plo
1055 -rm -f ./$(DEPDIR)/libpmt_mtab_la-mtab.Plo
1056 -rm -f ./$(DEPDIR)/log.Plo
1057 -rm -f ./$(DEPDIR)/loop-linux.Plo
1058 -rm -f ./$(DEPDIR)/loop-mdvn.Plo
1059 -rm -f ./$(DEPDIR)/loop-vnd.Plo
1060 -rm -f ./$(DEPDIR)/loop.Plo
1061 -rm -f ./$(DEPDIR)/misc.Po
1062 -rm -f ./$(DEPDIR)/mtcrypt.Po
1063 -rm -f ./$(DEPDIR)/pam_mount_la-misc.Plo
1064 -rm -f ./$(DEPDIR)/pam_mount_la-mount.Plo
1065 -rm -f ./$(DEPDIR)/pam_mount_la-pam_mount.Plo
1066 -rm -f ./$(DEPDIR)/pam_mount_la-rdconf1.Plo
1067 -rm -f ./$(DEPDIR)/pam_mount_la-rdconf2.Plo
1068 -rm -f ./$(DEPDIR)/pam_mount_la-spawn.Plo
1069 -rm -f ./$(DEPDIR)/pmvarrun.Po
1070 -rm -f ./$(DEPDIR)/spawn.Po
9981071 -rm -f Makefile
9991072 maintainer-clean-am: distclean-am maintainer-clean-generic
10001073
10181091 .MAKE: install-am install-data-am install-exec-am install-strip \
10191092 uninstall-am
10201093
1021 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
1022 clean-libLTLIBRARIES clean-libtool clean-moduleLTLIBRARIES \
1023 clean-noinstLTLIBRARIES clean-noinstPROGRAMS \
1024 clean-sbinPROGRAMS cscopelist-am ctags ctags-am distclean \
1025 distclean-compile distclean-generic distclean-libtool \
1026 distclean-tags distdir dvi dvi-am html html-am info info-am \
1027 install install-am install-data install-data-am \
1028 install-data-hook install-dvi install-dvi-am install-exec \
1029 install-exec-am install-exec-hook install-html install-html-am \
1030 install-includeHEADERS install-info install-info-am \
1031 install-libLTLIBRARIES install-man install-moduleLTLIBRARIES \
1032 install-pdf install-pdf-am install-ps install-ps-am \
1033 install-sbinPROGRAMS install-strip installcheck \
1034 installcheck-am installdirs maintainer-clean \
1094 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
1095 clean-generic clean-libLTLIBRARIES clean-libtool \
1096 clean-moduleLTLIBRARIES clean-noinstLTLIBRARIES \
1097 clean-noinstPROGRAMS clean-sbinPROGRAMS cscopelist-am ctags \
1098 ctags-am distclean distclean-compile distclean-generic \
1099 distclean-libtool distclean-tags distdir dvi dvi-am html \
1100 html-am info info-am install install-am install-data \
1101 install-data-am install-data-hook install-dvi install-dvi-am \
1102 install-exec install-exec-am install-exec-hook install-html \
1103 install-html-am install-includeHEADERS install-info \
1104 install-info-am install-libLTLIBRARIES install-man \
1105 install-moduleLTLIBRARIES install-pdf install-pdf-am \
1106 install-ps install-ps-am install-sbinPROGRAMS install-strip \
1107 installcheck installcheck-am installdirs maintainer-clean \
10351108 maintainer-clean-generic mostlyclean mostlyclean-compile \
10361109 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
10371110 tags tags-am uninstall uninstall-am uninstall-hook \
77 /**
88 * struct ehd_mount - EHD mount info
99 * @container: path to disk image
10 * @header: LUKS header location (file or block device)
1011 * @lower_device: link to either @container if a block device,
1112 * otherwise points to @loop_device.
1213 * @loop_device: loop device that was created, if any
1516 * @mountpoint: assigned mountpoint
1617 */
1718 struct ehd_mount_info {
18 char *container;
19 char *container, *header;
1920 const char *lower_device;
2021 char *loop_device;
2122 hxmc_t *crypto_name;
2930 * @fstype: filesystem type
3031 * @mount_opts: mount options for fs
3132 * @mountpoint: where to mount the volume on
33 * @header: LUKS header location (file or block device)
3234 * @fs_cipher: cipher used for filesystem, if any. (cryptsetup name)
3335 * @fs_hash: hash used for filesystem, if any. (cryptsetup name)
3436 * @key_data: key material/password
4042 + * @last_stage: stop after setup of given component
4143 * @readonly: whether to create a readonly vfsmount
4244 * @allow_discards: allow fs trim requests
45 * @no_read_workqueue: bypass internal workqueue and process read requests synchronously
46 * @no_write_workqueue: bypass internal workqueue and process write requests synchronously
4347 */
4448 struct ehd_mount_request {
45 char *container, *crypto_name, *fstype, *mount_opts, *mountpoint;
49 char *container, *crypto_name, *fstype, *mount_opts, *mountpoint, *header;
4650 char *fs_cipher, *fs_hash;
4751 void *key_data;
4852 ehd_hook_fn_t loop_hook, crypto_hook;
4953 void *hook_priv;
5054 unsigned int key_size, trunc_keysize;
5155 enum ehd_mtreq_stage last_stage;
52 bool readonly, allow_discards;
56 bool readonly, allow_discards, no_read_workqueue, no_write_workqueue;
5357 };
5458
5559 struct ehd_crypto_ops {
2929 /**
3030 * dmc_is_luks - check if @path points to a LUKS volume (cf. normal dm-crypt)
3131 * @path: path to the crypto container
32 * @header: path to the LUKS header file or block device (can match @path)
3233 * @blkdev: path is definitely a block device
3334 */
34 EXPORT_SYMBOL int ehd_is_luks(const char *path, bool blkdev)
35 EXPORT_SYMBOL int ehd_is_luks(const char *path, const char *header, bool blkdev)
3536 {
3637 struct crypt_device *cd;
3738 const char *device = path;
5152 device = loop_device;
5253 }
5354
54 ret = crypt_init(&cd, device);
55 if (header != NULL)
56 ret = crypt_init_data_device(&cd, header, device);
57 else
58 ret = crypt_init(&cd, device);
59
5560 if (ret == 0) {
5661 ret = crypt_load(cd, CRYPT_LUKS, NULL);
5762 if (ret == -EINVAL)
95100 char *cipher = NULL, *mode;
96101 int ret;
97102
98 ret = crypt_init(&cd, mt->lower_device);
103 if (mt->header != NULL)
104 ret = crypt_init_data_device(&cd, mt->header, mt->lower_device);
105 else
106 ret = crypt_init(&cd, mt->lower_device);
107
99108 if (ret < 0) {
100109 fprintf(stderr, "crypt_init: %s\n", strerror(-ret));
101110 return false;
107116 flags |= CRYPT_ACTIVATE_ALLOW_DISCARDS;
108117 #else
109118 fprintf(stderr, "CRYPT_ACTIVATE_ALLOW_DISCARDS requested, "
119 "but not provided by your libcryptsetup.\n");
120 #endif
121 }
122
123 if (req->no_read_workqueue) {
124 #ifdef CRYPT_ACTIVATE_NO_READ_WORKQUEUE
125 flags |= CRYPT_ACTIVATE_NO_READ_WORKQUEUE;
126 #else
127 fprintf(stderr, "CRYPT_ACTIVATE_NO_READ_WORKQUEUE requested, "
128 "but not provided by your libcryptsetup.\n");
129 #endif
130 }
131
132 if (req->no_write_workqueue) {
133 #ifdef CRYPT_ACTIVATE_NO_WRITE_WORKQUEUE
134 flags |= CRYPT_ACTIVATE_NO_WRITE_WORKQUEUE;
135 #else
136 fprintf(stderr, "CRYPT_ACTIVATE_NO_WRITE_WORKQUEUE requested, "
110137 "but not provided by your libcryptsetup.\n");
111138 #endif
112139 }
2020 #include <libHX/defs.h>
2121 #include <libHX/init.h>
2222 #include <libHX/string.h>
23 #include <libHX/io.h>
2324 #include "config.h"
2425 #include "cmt-internal.h"
2526 #include "libcryptmount.h"
6768 return ret;
6869 }
6970 #ifdef HAVE_LIBCRYPTO
71 #if OPENSSL_VERSION_NUMBER >= 0x1010000fL
72 #else
7073 OpenSSL_add_all_algorithms();
7174 OpenSSL_add_all_ciphers();
7275 OpenSSL_add_all_digests();
76 #endif
7377 #endif
7478 }
7579 ++ehd_use_count;
105109 case EHD_MTINFO_CRYPTODEV:
106110 *static_cast(const char **, ptr) = mt->crypto_device;
107111 break;
112 case EHD_MTINFO_HEADER:
113 *static_cast(const char **, ptr) = mt->header;
114 break;
108115 case EHD_MTINFO_LOOPDEV:
109116 *static_cast(const char **, ptr) = mt->loop_device;
110117 break;
123130 EXPORT_SYMBOL void ehd_mtinfo_free(struct ehd_mount_info *mt)
124131 {
125132 free(mt->container);
133 free(mt->header);
126134 HXmc_free(mt->crypto_device);
127135 HXmc_free(mt->crypto_name);
128136 if (mt->loop_device != NULL)
133141 */
134142 }
135143
144 /**
145 * ehd_realpath - convert path to absolute file name
146 */
147 EXPORT_SYMBOL int ehd_realpath(char **path)
148 {
149 hxmc_t *tmp = HXmc_strinit("");
150 int ret = HX_realpath(&tmp, *path, HX_REALPATH_DEFAULT | HX_REALPATH_ABSOLUTE);
151 if (ret < 0) {
152 fprintf(stderr, "realpath %s: %s\n", *path, strerror(errno));
153 goto out;
154 }
155 *path = HX_strdup(tmp);
156 if (*path == NULL) {
157 ret = -ENOMEM;
158 goto out;
159 }
160 ret = true;
161 out:
162 HXmc_free(tmp);
163 return ret;
164 }
165
136166 EXPORT_SYMBOL struct ehd_mount_request *ehd_mtreq_new(void)
137167 {
138168 struct ehd_mount_request *rq;
148178 {
149179 free(rq->container);
150180 free(rq->mountpoint);
181 free(rq->header);
151182 free(rq->fs_cipher);
152183 free(rq->fs_hash);
153184 free(rq->key_data);
169200 case EHD_MTREQ_FS_CIPHER:
170201 case EHD_MTREQ_FS_HASH:
171202 case EHD_MTREQ_FSTYPE:
203 case EHD_MTREQ_HEADER:
172204 case EHD_MTREQ_MOUNT_OPTS:
173205 orig = va_arg(args, const char *);
174206 nv = HX_strdup(orig);
207239 case EHD_MTREQ_ALLOW_DISCARDS:
208240 rq->allow_discards = va_arg(args, unsigned int);
209241 break;
242 case EHD_MTREQ_NO_READ_WORKQUEUE:
243 rq->no_read_workqueue = va_arg(args, unsigned int);
244 break;
245 case EHD_MTREQ_NO_WRITE_WORKQUEUE:
246 rq->no_write_workqueue = va_arg(args, unsigned int);
247 break;
210248 }
211249 switch (opt) {
212250 case EHD_MTREQ_CONTAINER:
220258 case EHD_MTREQ_MOUNTPOINT:
221259 free(rq->container);
222260 rq->container = nv;
261 break;
262 case EHD_MTREQ_HEADER:
263 free(rq->header);
264 rq->header = nv;
223265 break;
224266 case EHD_MTREQ_FS_CIPHER:
225267 free(rq->fs_cipher);
297339 goto out_err;
298340 if ((mt->container = HX_strdup(req->container)) == NULL)
299341 goto out_err;
342 if (req->header != NULL) {
343 mt->header = HX_strdup(req->header);
344 if (mt->header == NULL)
345 goto out_err;
346 }
300347 if (S_ISBLK(sb.st_mode)) {
301348 mt->loop_device = NULL;
302349 mt->lower_device = req->container;
403450 }
404451
405452 #ifndef HAVE_LIBCRYPTSETUP
406 EXPORT_SYMBOL int ehd_is_luks(const char *device, bool blkdev)
453 EXPORT_SYMBOL int ehd_is_luks(const char *device, const char *header, bool blkdev)
407454 {
408455 return -EINVAL;
409456 }
4242 */
4343 struct container_ctl {
4444 unsigned long long size;
45 char *path, *fstype, *cipher, *hash, *user;
45 char *path, *fstype, *cipher, *hash, *user, *header;
4646 unsigned int keybits, skip_random, uid;
4747 bool blkdev;
4848 };
6161 bool interactive;
6262 };
6363
64 static bool ehd_check(const struct ehd_ctl *pg)
65 {
66 const struct container_ctl *cont = &pg->cont;
64 static bool ehd_check(const char *path, const char *pretty_name,
65 unsigned int force_level, bool interactive)
66 {
6767 int ret, ask = 0;
6868 struct stat sb;
6969 bool exists;
7070
71 printf("Creating a new container at %s\n", cont->path);
71 printf("Creating a new %s at %s\n", pretty_name, path);
7272
7373 /* First, check for hideous symlinks */
74 if (lstat(cont->path, &sb) < 0) {
74 if (lstat(path, &sb) < 0) {
7575 if (errno == ENOENT) {
7676 exists = false;
7777 } else {
8787
8888 /* Get confirmation for overwriting files */
8989 ++ask;
90 ret = HX_readlink(&target, cont->path);
90 ret = HX_readlink(&target, path);
9191 if (ret < 0) {
9292 fprintf(stderr, "readlink %s: %s\n",
93 cont->path, strerror(-ret));
93 path, strerror(-ret));
9494 return false;
9595 }
9696 printf("%s is a symlink and points to %s\n",
97 cont->path, target);
97 path, target);
9898 HXmc_free(target);
9999 /* Get extra confirmation */
100100 ++ask;
101101
102102 /* Now check for underlying device */
103 if (stat(cont->path, &sb) < 0) {
103 if (stat(path, &sb) < 0) {
104104 if (errno != ENOENT) {
105105 exists = false;
106106 } else {
115115 ++ask;
116116 }
117117
118 if (pg->force_level < ask) {
118 if (force_level < ask) {
119119 hxmc_t *tmp = NULL;
120120
121 if (!pg->interactive) {
121 if (!interactive) {
122122 printf("Not automatically overwriting file.\n");
123123 return false;
124124 }
125125
126 printf("Do you really want to overwrite %s? (y/n)\n",
127 cont->path);
126 printf("Do you really want to overwrite %s? (y/n)\n", path);
128127 if (HX_getl(&tmp, stdin) == NULL)
129128 return false;
130129 if (HX_tolower(*tmp) != 'y')
133132 }
134133
135134 return true;
135 }
136
137 static bool ehd_check_path(const struct ehd_ctl *pg)
138 {
139 return ehd_check(pg->cont.path, "path", pg->force_level, pg->interactive);
140 }
141
142 static bool ehd_check_header(const struct ehd_ctl *pg)
143 {
144 const struct container_ctl *cont = &pg->cont;
145
146 if (cont->header == NULL)
147 return true;
148 if (strcmp(cont->header, cont->path) == 0)
149 return true;
150 return ehd_check(cont->header, "header", pg->force_level, pg->interactive);
136151 }
137152
138153 static bool ehd_xfer(int fd, size_t z)
231246 return ret;
232247 }
233248
249 static bool ehd_create_header(struct ehd_ctl *pg)
250 {
251 struct container_ctl *cont = &pg->cont;
252 bool ret = false;
253 int fd = -1;
254
255 /* Header is not detached */
256 if (cont->header == NULL)
257 return true;
258 /* Container is formatted already */
259 if (strcmp(cont->path, cont->header) == 0)
260 return true;
261 fd = open(cont->header, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
262 if (fd < 0) {
263 fprintf(stderr, "open %s: %s\n", cont->header, strerror(errno));
264 return false;
265 }
266 if (cont->blkdev) {
267 ret = true;
268 goto out;
269 }
270
271 /*
272 * /dev nodes should not be owned by user, even if it
273 * is "their" voulme. Note that due to /dev being on tmpfs, ownership
274 * is lost anyway after a reboot or device removal/add.
275 */
276 if (fchown(fd, cont->uid, -1) < 0) {
277 fprintf(stderr, "fchown %s: %s\n", cont->header, strerror(errno));
278 ret = false;
279 goto out;
280 }
281
282 /*
283 * Truncate on block devices does not make sense and would also return
284 * EINVAL, so do not do it for block devices either.
285 */
286 if (ftruncate(fd, 4096) < 0) {
287 fprintf(stderr, "ftruncate %s: %s\n", cont->header, strerror(errno));
288 ret = false;
289 goto out;
290 }
291
292 ret = true;
293 out:
294 if (fd >= 0)
295 close(fd);
296 return ret;
297 }
298
234299 static bool ehd_mkfs(struct ehd_mount_request *rq,
235300 struct ehd_mount_info *mtinfo, void *priv)
236301 {
286351 struct crypt_params_luks1 format_params = {.hash = cont->hash};
287352 struct crypt_device *cd = NULL;
288353 const char *lower_dev = NULL;
354 const char *header = NULL;
289355 int ret;
290356
291357 BUILD_BUG_ON(!__builtin_types_compatible_p(
296362 ret = ehd_mtinfo_get(mtinfo, EHD_MTINFO_LOWERDEV, &lower_dev);
297363 if (ret <= 0 || lower_dev == NULL)
298364 goto out;
299 ret = crypt_init(&cd, lower_dev);
365 ret = ehd_mtinfo_get(mtinfo, EHD_MTINFO_HEADER, &header);
366 if (ret <= 0)
367 goto out;
368 ret = crypt_init(&cd, header ?: lower_dev);
300369 if (ret < 0) {
301 fprintf(stderr, "crypt_init: %s: %s\n",
302 lower_dev, strerror(-ret));
370 fprintf(stderr, "crypt_init_data_device: %s, %s: %s\n",
371 header, lower_dev, strerror(-ret));
303372 goto out;
304373 }
305374 ret = crypt_format(cd, CRYPT_LUKS1, cipher, cipher_mode, NULL, NULL,
337406 ret = ehd_mtreq_set(mount_request, EHD_MTREQ_CONTAINER, cont->path);
338407 if (ret < 0)
339408 goto out;
409 ret = ehd_mtreq_set(mount_request, EHD_MTREQ_HEADER, cont->header);
410 if (ret < 0)
411 goto out;
340412 ret = ehd_mtreq_set(mount_request, EHD_MTREQ_KEY_SIZE,
341413 strlen(pg->password));
342414 if (ret < 0)
377449 {
378450 printf(
379451 "-- (The important parts of) the new entry:\n\n"
380 "<volume fstype=\"crypt\" path=\"%s\" "
381 "mountpoint=\"REPLACEME\" />\n\n"
382 "-- Substitute paths by absolute ones.\n\n",
452 "<volume fstype=\"crypt\" path=\"%s\" ",
383453 pg->cont.path);
454 if (pg->cont.header && strcmp(pg->cont.path, pg->cont.header) != 0)
455 printf("header=\"%s\" ", pg->cont.header);
456 printf("mountpoint=\"REPLACEME\" />\n\n"
457 "-- Substitute paths by absolute ones.\n\n");
384458 }
385459
386460 /**
425499 cont->path = HX_strdup(tmp);
426500 }
427501
502 ret = ehd_realpath(&cont->path);
503 if (ret < 0)
504 goto out;
505
428506 if (stat(cont->path, &sb) < 0) {
429507 if (errno != ENOENT) {
430508 fprintf(stderr, "stat %s: %s\n",
439517 printf("Size of device: %llu MB\n",
440518 cont->size >> 20);
441519 }
520 }
521
522 if (cont->header == NULL && pg->interactive) {
523 printf("LUKS header path (optional): ");
524 fflush(stdout);
525 *tmp = '\0';
526 HX_getl(&tmp, stdin);
527 HX_chomp(tmp);
528 if (*tmp != '\0')
529 cont->header = HX_strdup(tmp);
530 }
531
532 if (cont->header != NULL) {
533 ret = ehd_realpath(&cont->header);
534 if (ret < 0)
535 goto out;
536 }
537
538 if (cont->header && stat(cont->header, &sb) < 0 && errno != ENOENT) {
539 fprintf(stderr, "stat %s: %s\n",
540 cont->header, strerror(errno));
541 goto out;
442542 }
443543
444544 if (cont->size == 0) {
514614 {.sh = 'h', .type = HXTYPE_STRING, .ptr = &cont->hash,
515615 .help = "Name of hash to be used for master keys (cryptsetup name)",
516616 .htyp = "NAME"},
617 {.sh = 'H', .type = HXTYPE_STRING, .ptr = &cont->header,
618 .help = "Path of the new LUKS header file", .htyp = "FILE"},
517619 {.sh = 'k', .type = HXTYPE_UINT, .ptr = &cont->keybits,
518620 .help = "Number of bits fscipher (-c) operates with",
519621 .htyp = "BITS"},
549651 if (!ehd_get_options(&argc, &argv, pg))
550652 return EXIT_FAILURE;
551653
552 if (!ehd_check(pg))
654 if (!ehd_check_path(pg))
553655 return EXIT_FAILURE;
554656 if (!ehd_create_container(pg))
657 return EXIT_FAILURE;
658 if (!ehd_check_header(pg))
659 return EXIT_FAILURE;
660 if (!ehd_create_header(pg))
555661 return EXIT_FAILURE;
556662 printf("NOTE: Use the end-user passphrase here. DO NOT feed it a hash "
557663 "of a passphrase or anything otherwise fancy. pmt-ehd(8), as "
6161 enum ehd_mtreq_opt {
6262 EHD_MTREQ_CONTAINER = 1,
6363 EHD_MTREQ_MOUNTPOINT,
64 EHD_MTREQ_HEADER,
6465 EHD_MTREQ_FS_CIPHER,
6566 EHD_MTREQ_FS_HASH,
6667 EHD_MTREQ_KEY_DATA,
7576 EHD_MTREQ_FSTYPE,
7677 EHD_MTREQ_MOUNT_OPTS,
7778 EHD_MTREQ_ALLOW_DISCARDS,
79 EHD_MTREQ_NO_READ_WORKQUEUE,
80 EHD_MTREQ_NO_WRITE_WORKQUEUE,
7881 };
7982
8083 enum ehd_mtinfo_opt {
8184 EHD_MTINFO_CONTAINER = 1,
8285 EHD_MTINFO_CRYPTONAME,
8386 EHD_MTINFO_CRYPTODEV,
87 EHD_MTINFO_HEADER,
8488 EHD_MTINFO_LOOPDEV,
8589 EHD_MTINFO_LOWERDEV,
8690 };
107111
108112 extern int ehd_mtinfo_get(struct ehd_mount_info *, enum ehd_mtinfo_opt, void *);
109113 extern void ehd_mtinfo_free(struct ehd_mount_info *);
110
114 extern int ehd_realpath(char **path);
111115 extern int ehd_load(struct ehd_mount_request *, struct ehd_mount_info **);
112116 extern int ehd_unload(struct ehd_mount_info *);
113 extern int ehd_is_luks(const char *, bool);
117 extern int ehd_is_luks(const char *, const char *, bool);
114118
115119 extern struct ehd_keydec_request *ehd_kdreq_new(void);
116120 extern int ehd_kdreq_set(struct ehd_keydec_request *, enum ehd_kdreq_opt, ...);
2121 ehd_mtreq_set;
2222 ehd_mtreq_free;
2323 ehd_unload;
24 ehd_realpath;
2425 local:
2526 *;
2627 };
114114 }
115115
116116 /**
117 * Compares a given utab entry to the volume. crypt-type volumes will always
117 * Compares a given utab entry to the combopath (vpt->combopath ==
118 * vpt->volume for non-network volumes). crypt-type volumes will always
118119 * be compared case-sensitive since they always use an existing file.
119120 */
120121 static bool pmt_utabent_matches(const struct vol *vpt, struct libmnt_fs *fs)
125126 bool result = false;
126127
127128 xcmp = fstype2_icase(vpt->type) ? strcasecmp : strcmp;
128 if (source != NULL)
129 result = xcmp(vpt->volume, source) == 0;
129 if (source != NULL) {
130 if (strcmp(vpt->fstype, "fuse") != 0)
131 result = xcmp(vpt->combopath, source) == 0;
132 else {
133 size_t len_combopath = strlen(vpt->combopath);
134 size_t len_source = strlen(source);
135 result = xcmp(vpt->combopath + len_combopath - len_source, source) == 0;
136 }
137 }
138
130139 if (target != NULL)
131140 result &= strcmp(vpt->mountpoint, target) == 0;
141
132142 return result;
133143 }
134144
251261 "Mount info: %s, user=%s <volume fstype=\"%s\" "
252262 "server=\"%s\" path=\"%s\" "
253263 "mountpoint=\"%s\" cipher=\"%s\" fskeypath=\"%s\" "
254 "fskeycipher=\"%s\" fskeyhash=\"%s\" options=\"%s\" /> "
264 "fskeycipher=\"%s\" fskeyhash=\"%s\" header=\"%s\" options=\"%s\" /> "
255265 "fstab=%u ssh=%u\n",
256266 vpt->globalconf ? "globalconf" : "luserconf",
257267 znul(vpt->user), znul(vpt->fstype),
258268 znul(vpt->server), znul(vpt->volume),
259269 vpt->mountpoint, znul(vpt->cipher), znul(vpt->fs_key_path),
260 znul(vpt->fs_key_cipher), znul(vpt->fs_key_hash), options,
270 znul(vpt->fs_key_cipher), znul(vpt->fs_key_hash), znul(vpt->header), options,
261271 vpt->use_fstab, vpt->uses_ssh
262272 );
263273 HXmc_free(options);
794804 format_add(vinfo, "FSKEYCIPHER", vpt->fs_key_cipher);
795805 format_add(vinfo, "FSKEYHASH", vpt->fs_key_hash);
796806 format_add(vinfo, "FSKEYPATH", vpt->fs_key_path);
807 format_add(vinfo, "HEADER", vpt->header);
797808 misc_add_ntdom(vinfo, vpt->user);
798809
799810 if ((pe = getpwnam(vpt->user)) == NULL) {
193193
194194 int pmt_cmtab_add(struct ehd_mount_info *mt)
195195 {
196 const char *loop_device, *crypto_device;
196 const char *loop_device, *crypto_device, *header;
197197 hxmc_t *line;
198198 int ret;
199199
201201 return -EINVAL;
202202 loop_device = (mt->loop_device == NULL) ? "-" : mt->loop_device;
203203 crypto_device = (mt->crypto_device == NULL) ? "-" : mt->crypto_device;
204 header = mt->header == NULL ? "-" : mt->header;
204205
205206 /* Preallocate just the normal size */
206207 line = HXmc_meminit(NULL, strlen(mt->mountpoint) +
207208 strlen(mt->container) + strlen(loop_device) +
208 strlen(crypto_device) + 5);
209 strlen(crypto_device) + strlen(header) + 6);
209210 if (line == NULL)
210211 return -errno;
211212
216217 mt_esccat(&line, loop_device);
217218 HXmc_strcat(&line, "\t");
218219 mt_esccat(&line, crypto_device);
220 HXmc_strcat(&line, "\t");
221 mt_esccat(&line, header);
219222 HXmc_strcat(&line, "\n");
220223 ret = pmt_mtab_add(pmt_cmtab_file, line, MKDIR_MAY);
221224 HXmc_free(line);
229232 */
230233 static void cmtab_parse_line(char *line, char **field)
231234 {
232 static const unsigned int fld_num = 4;
235 static const unsigned int fld_num = __CMTABF_MAX;
233236 const char *eol = line + strlen(line);
234237 char *p = line, *q;
235238 int i;
281284 .l_whence = SEEK_SET, .l_start = 0, .l_len = 0});
282285
283286 while (HX_getl(&line, fp) != NULL) {
284 char *field[4];
287 char *field[__CMTABF_MAX];
285288
286289 cmtab_parse_line(line, field);
287290 if (strcmp(spec, field[type]) != 0)
289292
290293 if (mountpoint != NULL) {
291294 free(*mountpoint);
292 *mountpoint = HX_strdup(field[0]);
295 *mountpoint = HX_strdup(field[CMTABF_MOUNTPOINT]);
293296 }
294297 if (container != NULL) {
295298 free(*container);
296 *container = HX_strdup(field[1]);
299 *container = HX_strdup(field[CMTABF_CONTAINER]);
297300 }
298301 if (loop_device != NULL) {
299302 free(*loop_device);
300 if (strcmp(field[2], "-") != 0)
301 *loop_device = HX_strdup(field[2]);
303 if (strcmp(field[CMTABF_LOOP_DEV], "-") != 0)
304 *loop_device = HX_strdup(field[CMTABF_LOOP_DEV]);
302305 else
303306 *loop_device = NULL;
304307 }
305308 if (crypto_device != NULL) {
306309 free(*crypto_device);
307 if (strcmp(field[3], "-") != 0)
308 *crypto_device = HX_strdup(field[3]);
310 if (strcmp(field[CMTABF_CRYPTO_DEV], "-") != 0)
311 *crypto_device = HX_strdup(field[CMTABF_CRYPTO_DEV]);
309312 else
310313 *crypto_device = NULL;
311314 }
398401
399402 ret = 0;
400403 do {
401 char *field[4];
404 char *field[__CMTABF_MAX];
402405 size_t curr_pos;
403406
404407 curr_pos = ftello(fp);
478481 .l_whence = SEEK_SET, .l_start = 0, .l_len = 0});
479482
480483 while (HX_getl(&line, fp) != NULL) {
481 char *field[4];
484 const int MNTPT = CMTABF_MOUNTPOINT;
485 const int CONT = CMTABF_MOUNTPOINT;
486 char *field[__CMTABF_MAX];
482487
483488 cmtab_parse_line(line, field);
484 if ((spec[0] == NULL || (field[0] && (*compare[0])(spec[0], field[0]) == 0)) &&
485 (spec[1] == NULL || (field[1] && (*compare[1])(spec[1], field[1]) == 0)) &&
489 if ((spec[0] == NULL || (field[MNTPT] && (*compare[0])(spec[MNTPT], field[MNTPT]) == 0)) &&
490 (spec[1] == NULL || (field[CONT] && (*compare[1])(spec[CONT], field[CONT]) == 0)) &&
486491 (!cmtab_verify || pmt_smtab_mounted(field[CMTABF_CRYPTO_DEV],
487 spec[CMTABF_MOUNTPOINT], strcmp) > 0)) {
492 spec[MNTPT], strcmp) > 0)) {
488493 ret = true;
489494 break;
490495 /* No need to continue looping here. */
3030 * (file) /home/user.!@#)
3131 * @crypto_name: preferred name of the crypto device (where possible)
3232 * @mountpoint: where to put this
33 * @header: LUKS header location (file or block device)
3334 * @extra_options: options to pass down
3435 * @no_update: do not update mtab
3536 * @loop_device: loop device association, if any
4142 * @fsck: true if fsck should be performed
4243 * @remount: issue a remount
4344 * @allow_discards: set block device to allow fs trim requests
45 * @no_read_workqueue: bypass internal workqueue and process read requests synchronously
46 * @no_write_workqueue: bypass internal workqueue and process write requests synchronously
4447 */
4548 struct mount_options {
46 hxmc_t *object, *container, *mountpoint;
49 hxmc_t *object, *container, *mountpoint, *header;
4750 const char *fstype;
4851 const char *crypto_name, *dmcrypt_cipher, *dmcrypt_hash;
4952 const char *fsk_hash, *fsk_cipher, *fsk_file;
5053 hxmc_t *fsk_password, *extra_opts, *crypto_device;
5154 char *loop_device;
5255 unsigned int no_update, readonly, trunc_keysize;
53 bool is_cont;
54 bool blkdev;
55 bool fsck;
56 bool remount;
57 bool allow_discards;
56 bool is_cont, blkdev, fsck, remount, allow_discards;
57 bool no_read_workqueue, no_write_workqueue;
5858 };
5959
6060 /**
126126 }
127127 else if (strcmp(key, "keyfile") == 0)
128128 mo->fsk_file = value;
129 else if (strcmp(key, "header") == 0)
130 mo->header = value;
129131 else if (strcmp(key, "keysize") == 0)
130132 mo->trunc_keysize = strtoul(value, NULL, 0) / CHAR_BIT;
131133 else if (strcmp(key, "fsck") == 0)
149151 mo->crypto_name = value;
150152 } else if (strcmp(key, "allow_discard") == 0) {
151153 mo->allow_discards = true;
154 } else if (strcmp(key, "no_read_workqueue") == 0) {
155 mo->no_read_workqueue = true;
156 } else if (strcmp(key, "no_write_workqueue") == 0) {
157 mo->no_write_workqueue = true;
152158 } else {
153159 /*
154160 * Above are the pam_mount-specific options that are
307313 fprintf(stderr, "%s: %s must either be a regular file or "
308314 "block device\n", **argv, opt->container);
309315 return false;
316 }
317
318 if (opt->header != NULL) {
319 ret = ehd_realpath(&opt->header);
320 if (ret < 0)
321 return false;
322
323 if (stat(opt->header, &sb) < 0) {
324 fprintf(stderr, "%s: stat %s: %s\n", **argv, opt->header,
325 strerror(errno));
326 return false;
327 } else if (S_ISDIR(sb.st_mode)) {
328 fprintf(stderr, "%s: %s is a directory\n",
329 **argv, opt->header);
330 return false;
331 }
310332 }
311333
312334 kfpt = kfpt_selected(opt->fsk_cipher);
329351 }
330352 }
331353
332 ret = ehd_is_luks(opt->container, opt->blkdev);
354 ret = ehd_is_luks(opt->container, opt->header, opt->blkdev);
333355 if (ret > 0) {
334356 /* LUKS */
335357 if (opt->dmcrypt_cipher != NULL)
455477 ret = ehd_mtreq_set(mount_request, EHD_MTREQ_CRYPTONAME, opt->crypto_name);
456478 if (ret < 0)
457479 goto out_r;
480 ret = ehd_mtreq_set(mount_request, EHD_MTREQ_HEADER, opt->header);
481 if (ret < 0)
482 goto out_r;
458483 ret = ehd_mtreq_set(mount_request, EHD_MTREQ_FS_CIPHER, opt->dmcrypt_cipher);
459484 if (ret < 0)
460485 goto out_r;
466491 goto out_r;
467492 ret = ehd_mtreq_set(mount_request, EHD_MTREQ_ALLOW_DISCARDS,
468493 opt->allow_discards);
494 if (ret < 0)
495 goto out_r;
496 ret = ehd_mtreq_set(mount_request, EHD_MTREQ_NO_READ_WORKQUEUE,
497 opt->no_read_workqueue);
498 if (ret < 0)
499 goto out_r;
500 ret = ehd_mtreq_set(mount_request, EHD_MTREQ_NO_WRITE_WORKQUEUE,
501 opt->no_write_workqueue);
469502 if (ret < 0)
470503 goto out_r;
471504 /* Hack for CRYPT_PLAIN: default to 256 */
7878 /* was handed off to mount_op() */
7979 bool mnt_processed;
8080 const char *user;
81 char *fstype, *server, *volume, *combopath, *mountpoint, *cipher;
81 char *fstype, *server, *volume, *combopath, *mountpoint, *header, *cipher;
8282 char *fs_key_cipher, *fs_key_hash, *fs_key_path;
8383 /* May be NULL if no options */
8484 struct HXclist_head options;
177177 CMTABF_CONTAINER,
178178 CMTABF_LOOP_DEV,
179179 CMTABF_CRYPTO_DEV,
180 CMTABF_HEADER,
180181 __CMTABF_MAX,
181182 };
182183
6060
6161 struct pmt_command {
6262 enum command_type type;
63 const char *fs, *def[11];
63 const char *fs, *def[12];
6464 /*
6565 * You will need to enlarge @def whenever the compiler
6666 * (rightfully) complains.
192192 !expand_user(u, &vpt->volume, vinfo) ||
193193 !expand_home(u, &vpt->mountpoint) ||
194194 !expand_user(u, &vpt->mountpoint, vinfo) ||
195 !expand_home(u, &vpt->header) ||
196 !expand_user(u, &vpt->header, vinfo) ||
195197 !expand_home(u, &vpt->fs_key_path) ||
196198 !expand_user(u, &vpt->fs_key_path, vinfo) ||
197199 !expand_user(u, &vpt->fs_key_cipher, vinfo))
223225 free(vol->fstype);
224226 free(vol->server);
225227 free(vol->volume);
228 free(vol->header);
226229 HXmc_free(vol->combopath);
227230 free(vol->cipher);
228231 free(vol->fs_key_cipher);
610613 ret = pcre2_match(rd, reinterpret_cast(PCRE2_SPTR, s), strlen(s),
611614 0, 0, match_data, 0);
612615 if (ret == PCRE2_ERROR_NOMATCH) {
613 l0g("pcre_exec: no match\n");
616 w4rn("pcre_exec: no match\n");
614617 ret = false;
615618 } else if (ret < 0) {
616619 ret = false;
617620 l0g("pcre_exec: error code %d\n", ret);
618621 } else {
619622 ret = true;
620 l0g("pcre_exec: /%s/: %d matches\n", pattern, ret);
623 w4rn("pcre_exec: /%s/: %d matches\n", pattern, ret);
621624 }
622625 pcre2_match_data_free(match_data);
623626 pcre2_code_free(rd);
13631366 if ((tmp = xml_getprop(node, "path")) != NULL) {
13641367 free(vpt->volume);
13651368 vpt->volume = tmp;
1369 }
1370 if ((tmp = xml_getprop(node, "header")) != NULL) {
1371 free(vpt->header);
1372 vpt->header = tmp;
13661373 }
13671374
13681375 /* Destination */
14591466 */
14601467 {CMD_NFSMOUNT, "nfs", {"mount", "%(if %(OPTIONS),-o%(OPTIONS))", "-t%(FSTYPE)", "%(COMBOPATH)", "%(MNTPT)", NULL}},
14611468 {CMD_NFSMOUNT, "nfs4"},
1462 {CMD_LCLMOUNT, NULL, {"mount", "%(if %(OPTIONS),-o%(OPTIONS))", "-t%(FSTYPE)", "%(VOLUME)", "%(MNTPT)", NULL}},
1463 {CMD_CRYPTMOUNT, "crypt", {"mount", "-t", "crypt", "%(if %(CIPHER),-ocipher=%(CIPHER))", "%(if %(FSKEYCIPHER),-ofsk_cipher=%(FSKEYCIPHER))", "%(if %(FSKEYHASH),-ofsk_hash=%(FSKEYHASH))", "%(if %(FSKEYPATH),-okeyfile=%(FSKEYPATH))", "%(if %(OPTIONS),-o%(OPTIONS))", "%(VOLUME)", "%(MNTPT)", NULL}},
1469 {CMD_LCLMOUNT, NULL, {"mount", "%(if %(OPTIONS),-o%(OPTIONS))", "-t%(FSTYPE)", "%(if %(HEADER),-oheader=%(HEADER))", "%(VOLUME)", "%(MNTPT)", NULL}},
1470 {CMD_CRYPTMOUNT, "crypt", {"mount", "-t", "crypt", "%(if %(CIPHER),-ocipher=%(CIPHER))", "%(if %(FSKEYCIPHER),-ofsk_cipher=%(FSKEYCIPHER))", "%(if %(FSKEYHASH),-ofsk_hash=%(FSKEYHASH))", "%(if %(FSKEYPATH),-okeyfile=%(FSKEYPATH))", "%(if %(OPTIONS),-o%(OPTIONS))", "%(if %(HEADER),-oheader=%(HEADER))", "%(VOLUME)", "%(MNTPT)", NULL}},
14641471 {CMD_CRYPTMOUNT, "crypt_LUKS"},
14651472 {CMD_CRYPTMOUNT, "crypto_LUKS"},
14661473 {CMD_CRYPTUMOUNT, "crypt", {"umount", "%(MNTPT)", NULL}},