Package list libgeotiff / fc50637
New upstream version 1.7.0~rc1 Bas Couwenberg 2 months ago
25 changed file(s) with 1226 addition(s) and 1004 deletion(s). Raw diff Collapse all Expand all
1717
1818 # Version information
1919 set(PROJECT_VERSION_MAJOR 1)
20 set(PROJECT_VERSION_MINOR 6)
20 set(PROJECT_VERSION_MINOR 7)
2121 set(PROJECT_VERSION_PATCH 0)
2222 set(PROJECT_VERSION
2323 "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
2828 # libgeotiff.so.2 -> libgeotiff.so.2.2.0
2929 # libgeotiff.so.2.2.0
3030 set(LINK_SOVERSION "5")
31 set(LINK_VERSION "5.0.1")
31 set(LINK_VERSION "5.1.0")
3232
3333 string (TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)
3434 string (TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPER)
5252 geo_strtod.c \
5353 geotiff_proj4.c
5454
55 libgeotiff_la_LDFLAGS = -version-info 6:0:1 ${NOUNDEFINED}
55 libgeotiff_la_LDFLAGS = -version-info 7:0:2 ${NOUNDEFINED}
5656
5757 libgeotiff_la_LIBADD = libxtiff/libxtiff.la
5858
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2018 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,
191191 am__v_at_1 =
192192 DEFAULT_INCLUDES = -I.@am__isrc@
193193 depcomp = $(SHELL) $(top_srcdir)/depcomp
194 am__depfiles_maybe = depfiles
194 am__maybe_remake_depfiles = depfiles
195 am__depfiles_remade = ./$(DEPDIR)/cpl_serv.Plo \
196 ./$(DEPDIR)/geo_extra.Plo ./$(DEPDIR)/geo_free.Plo \
197 ./$(DEPDIR)/geo_get.Plo ./$(DEPDIR)/geo_names.Plo \
198 ./$(DEPDIR)/geo_new.Plo ./$(DEPDIR)/geo_normalize.Plo \
199 ./$(DEPDIR)/geo_print.Plo ./$(DEPDIR)/geo_set.Plo \
200 ./$(DEPDIR)/geo_simpletags.Plo ./$(DEPDIR)/geo_strtod.Plo \
201 ./$(DEPDIR)/geo_tiffp.Plo ./$(DEPDIR)/geo_trans.Plo \
202 ./$(DEPDIR)/geo_write.Plo ./$(DEPDIR)/geotiff_proj4.Plo
195203 am__mv = mv -f
196204 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
197205 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
234242 $(RECURSIVE_CLEAN_TARGETS) \
235243 $(am__extra_recursive_targets)
236244 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
237 cscope distdir dist dist-all distcheck
245 cscope distdir distdir-am dist dist-all distcheck
238246 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
239247 $(LISP)geo_config.h.in
240248 # Read a list of newline-separated strings from the standard input,
528536 geo_strtod.c \
529537 geotiff_proj4.c
530538
531 libgeotiff_la_LDFLAGS = -version-info 6:0:1 ${NOUNDEFINED}
539 libgeotiff_la_LDFLAGS = -version-info 7:0:2 ${NOUNDEFINED}
532540 libgeotiff_la_LIBADD = libxtiff/libxtiff.la
533541 lib_LTLIBRARIES = libgeotiff.la
534542 EXTRA_DIST = autogen.sh \
575583 echo ' $(SHELL) ./config.status'; \
576584 $(SHELL) ./config.status;; \
577585 *) \
578 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
579 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
586 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
587 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
580588 esac;
581589 $(top_srcdir)/m4/doxygen.am $(am__empty):
582590
648656 distclean-compile:
649657 -rm -f *.tab.c
650658
651 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpl_serv.Plo@am__quote@
652 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_extra.Plo@am__quote@
653 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_free.Plo@am__quote@
654 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_get.Plo@am__quote@
655 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_names.Plo@am__quote@
656 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_new.Plo@am__quote@
657 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_normalize.Plo@am__quote@
658 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_print.Plo@am__quote@
659 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_set.Plo@am__quote@
660 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_simpletags.Plo@am__quote@
661 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_strtod.Plo@am__quote@
662 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_tiffp.Plo@am__quote@
663 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_trans.Plo@am__quote@
664 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_write.Plo@am__quote@
665 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geotiff_proj4.Plo@am__quote@
659 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpl_serv.Plo@am__quote@ # am--include-marker
660 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_extra.Plo@am__quote@ # am--include-marker
661 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_free.Plo@am__quote@ # am--include-marker
662 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_get.Plo@am__quote@ # am--include-marker
663 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_names.Plo@am__quote@ # am--include-marker
664 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_new.Plo@am__quote@ # am--include-marker
665 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_normalize.Plo@am__quote@ # am--include-marker
666 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_print.Plo@am__quote@ # am--include-marker
667 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_set.Plo@am__quote@ # am--include-marker
668 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_simpletags.Plo@am__quote@ # am--include-marker
669 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_strtod.Plo@am__quote@ # am--include-marker
670 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_tiffp.Plo@am__quote@ # am--include-marker
671 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_trans.Plo@am__quote@ # am--include-marker
672 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geo_write.Plo@am__quote@ # am--include-marker
673 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geotiff_proj4.Plo@am__quote@ # am--include-marker
674
675 $(am__depfiles_remade):
676 @$(MKDIR_P) $(@D)
677 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
678
679 am--depfiles: $(am__depfiles_remade)
666680
667681 .c.o:
668682 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
845859 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
846860 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
847861
848 distdir: $(DISTFILES)
862 distdir: $(BUILT_SOURCES)
863 $(MAKE) $(AM_MAKEFLAGS) distdir-am
864
865 distdir-am: $(DISTFILES)
849866 $(am__remove_distdir)
850867 test -d "$(distdir)" || mkdir "$(distdir)"
851868 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
910927 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
911928 || chmod -R a+r "$(distdir)"
912929 dist-gzip: distdir
913 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
930 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
914931 $(am__post_remove_distdir)
915932
916933 dist-bzip2: distdir
936953 @echo WARNING: "Support for shar distribution archives is" \
937954 "deprecated." >&2
938955 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
939 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
956 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
940957 $(am__post_remove_distdir)
941958 dist-zip: distdir
942959 -rm -f $(distdir).zip
953970 distcheck: dist
954971 case '$(DIST_ARCHIVES)' in \
955972 *.tar.gz*) \
956 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
973 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
957974 *.tar.bz2*) \
958975 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
959976 *.tar.lz*) \
963980 *.tar.Z*) \
964981 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
965982 *.shar.gz*) \
966 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
983 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
967984 *.zip*) \
968985 unzip $(distdir).zip ;;\
969986 esac
10781095
10791096 distclean: distclean-recursive
10801097 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1081 -rm -rf ./$(DEPDIR)
1098 -rm -f ./$(DEPDIR)/cpl_serv.Plo
1099 -rm -f ./$(DEPDIR)/geo_extra.Plo
1100 -rm -f ./$(DEPDIR)/geo_free.Plo
1101 -rm -f ./$(DEPDIR)/geo_get.Plo
1102 -rm -f ./$(DEPDIR)/geo_names.Plo
1103 -rm -f ./$(DEPDIR)/geo_new.Plo
1104 -rm -f ./$(DEPDIR)/geo_normalize.Plo
1105 -rm -f ./$(DEPDIR)/geo_print.Plo
1106 -rm -f ./$(DEPDIR)/geo_set.Plo
1107 -rm -f ./$(DEPDIR)/geo_simpletags.Plo
1108 -rm -f ./$(DEPDIR)/geo_strtod.Plo
1109 -rm -f ./$(DEPDIR)/geo_tiffp.Plo
1110 -rm -f ./$(DEPDIR)/geo_trans.Plo
1111 -rm -f ./$(DEPDIR)/geo_write.Plo
1112 -rm -f ./$(DEPDIR)/geotiff_proj4.Plo
10821113 -rm -f Makefile
10831114 distclean-am: clean-am distclean-compile distclean-generic \
10841115 distclean-hdr distclean-libtool distclean-tags
11261157 maintainer-clean: maintainer-clean-recursive
11271158 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
11281159 -rm -rf $(top_srcdir)/autom4te.cache
1129 -rm -rf ./$(DEPDIR)
1160 -rm -f ./$(DEPDIR)/cpl_serv.Plo
1161 -rm -f ./$(DEPDIR)/geo_extra.Plo
1162 -rm -f ./$(DEPDIR)/geo_free.Plo
1163 -rm -f ./$(DEPDIR)/geo_get.Plo
1164 -rm -f ./$(DEPDIR)/geo_names.Plo
1165 -rm -f ./$(DEPDIR)/geo_new.Plo
1166 -rm -f ./$(DEPDIR)/geo_normalize.Plo
1167 -rm -f ./$(DEPDIR)/geo_print.Plo
1168 -rm -f ./$(DEPDIR)/geo_set.Plo
1169 -rm -f ./$(DEPDIR)/geo_simpletags.Plo
1170 -rm -f ./$(DEPDIR)/geo_strtod.Plo
1171 -rm -f ./$(DEPDIR)/geo_tiffp.Plo
1172 -rm -f ./$(DEPDIR)/geo_trans.Plo
1173 -rm -f ./$(DEPDIR)/geo_write.Plo
1174 -rm -f ./$(DEPDIR)/geotiff_proj4.Plo
11301175 -rm -f Makefile
11311176 maintainer-clean-am: distclean-am maintainer-clean-generic
11321177
11491194 .MAKE: $(am__recursive_targets) all install-am install-strip
11501195
11511196 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
1152 am--refresh check check-am clean clean-cscope clean-generic \
1153 clean-libLTLIBRARIES clean-libtool cscope cscopelist-am ctags \
1154 ctags-am dist dist-all dist-bzip2 dist-gzip dist-lzip \
1155 dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
1156 distclean-compile distclean-generic distclean-hdr \
1157 distclean-libtool distclean-tags distcleancheck distdir \
1158 distuninstallcheck dvi dvi-am html html-am info info-am \
1159 install install-am install-data install-data-am install-dvi \
1160 install-dvi-am install-exec install-exec-am install-html \
1161 install-html-am install-includeHEADERS install-info \
1162 install-info-am install-libLTLIBRARIES install-man \
1163 install-nodist_includeHEADERS install-pdf install-pdf-am \
1164 install-ps install-ps-am install-strip installcheck \
1165 installcheck-am installdirs installdirs-am maintainer-clean \
1166 maintainer-clean-generic mostlyclean mostlyclean-compile \
1167 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1168 tags tags-am uninstall uninstall-am uninstall-includeHEADERS \
1169 uninstall-libLTLIBRARIES uninstall-nodist_includeHEADERS
1197 am--depfiles am--refresh check check-am clean clean-cscope \
1198 clean-generic clean-libLTLIBRARIES clean-libtool cscope \
1199 cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
1200 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
1201 distcheck distclean distclean-compile distclean-generic \
1202 distclean-hdr distclean-libtool distclean-tags distcleancheck \
1203 distdir distuninstallcheck dvi dvi-am html html-am info \
1204 info-am install install-am install-data install-data-am \
1205 install-dvi install-dvi-am install-exec install-exec-am \
1206 install-html install-html-am install-includeHEADERS \
1207 install-info install-info-am install-libLTLIBRARIES \
1208 install-man install-nodist_includeHEADERS install-pdf \
1209 install-pdf-am install-ps install-ps-am install-strip \
1210 installcheck installcheck-am installdirs installdirs-am \
1211 maintainer-clean maintainer-clean-generic mostlyclean \
1212 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
1213 pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
1214 uninstall-includeHEADERS uninstall-libLTLIBRARIES \
1215 uninstall-nodist_includeHEADERS
11701216
11711217 .PRECIOUS: Makefile
11721218
0 libgeotiff 1.7.0
1 ----------------
2
3 * Add CoordinateEpochGeoKey = 5120 of type DOUBLE to store coordinate epoch of
4 tie points / geotransform matrix for dynamic CRS.
5 See https://github.com/opengeospatial/geotiff/pull/99
6 * geo_normalize.h/c: rename variables to please codespell
7 * GTIFGetGCSInfoEx(): use proj_crs_get_datum_forced() for PROJ >= 8 to avoid
8 issues with datum ensembles (fixes #54)
9 * GTIFGetGCSInfoEx(): remove dead code (GDAL Coverity CID 1432690)
10 * geo_normalize.c: follow-up to e06625c4e5bcce9f9217d1d5a43dc6af73156283 to avoid
11 look up of user-defined GeogGeodeticDatumGeoKey that cause PROJ warnings (fixes #41)
12
013 libgeotiff 1.6.0
114 ----------------
215
0 # generated automatically by aclocal 1.15 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2018 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,
295295 AS_VAR_IF([$1], [""], [$5], [$4])dnl
296296 ])dnl PKG_CHECK_VAR
297297
298 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
298 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
299299 #
300300 # This file is free software; the Free Software Foundation
301301 # gives unlimited permission to copy and/or distribute it,
307307 # generated from the m4 files accompanying Automake X.Y.
308308 # (This private macro should not be called outside this file.)
309309 AC_DEFUN([AM_AUTOMAKE_VERSION],
310 [am__api_version='1.15'
310 [am__api_version='1.16'
311311 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
312312 dnl require some minimum version. Point them to the right macro.
313 m4_if([$1], [1.15], [],
313 m4_if([$1], [1.16.1], [],
314314 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
315315 ])
316316
326326 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
327327 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
328328 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
329 [AM_AUTOMAKE_VERSION([1.15])dnl
329 [AM_AUTOMAKE_VERSION([1.16.1])dnl
330330 m4_ifndef([AC_AUTOCONF_VERSION],
331331 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
332332 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
333333
334334 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
335335
336 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
336 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
337337 #
338338 # This file is free software; the Free Software Foundation
339339 # gives unlimited permission to copy and/or distribute it,
385385
386386 # AM_CONDITIONAL -*- Autoconf -*-
387387
388 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
388 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
389389 #
390390 # This file is free software; the Free Software Foundation
391391 # gives unlimited permission to copy and/or distribute it,
416416 Usually this means the macro was only invoked conditionally.]])
417417 fi])])
418418
419 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
419 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
420420 #
421421 # This file is free software; the Free Software Foundation
422422 # gives unlimited permission to copy and/or distribute it,
607607
608608 # Generate code to set up dependency tracking. -*- Autoconf -*-
609609
610 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
611 #
612 # This file is free software; the Free Software Foundation
613 # gives unlimited permission to copy and/or distribute it,
614 # with or without modifications, as long as this notice is preserved.
615
610 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
611 #
612 # This file is free software; the Free Software Foundation
613 # gives unlimited permission to copy and/or distribute it,
614 # with or without modifications, as long as this notice is preserved.
616615
617616 # _AM_OUTPUT_DEPENDENCY_COMMANDS
618617 # ------------------------------
621620 # Older Autoconf quotes --file arguments for eval, but not when files
622621 # are listed without --file. Let's play safe and only enable the eval
623622 # if we detect the quoting.
624 case $CONFIG_FILES in
625 *\'*) eval set x "$CONFIG_FILES" ;;
626 *) set x $CONFIG_FILES ;;
627 esac
623 # TODO: see whether this extra hack can be removed once we start
624 # requiring Autoconf 2.70 or later.
625 AS_CASE([$CONFIG_FILES],
626 [*\'*], [eval set x "$CONFIG_FILES"],
627 [*], [set x $CONFIG_FILES])
628628 shift
629 for mf
629 # Used to flag and report bootstrapping failures.
630 am_rc=0
631 for am_mf
630632 do
631633 # Strip MF so we end up with the name of the file.
632 mf=`echo "$mf" | sed -e 's/:.*$//'`
633 # Check whether this is an Automake generated Makefile or not.
634 # We used to match only the files named 'Makefile.in', but
635 # some people rename them; so instead we look at the file content.
636 # Grep'ing the first line is not enough: some people post-process
637 # each Makefile.in and add a new line on top of each file to say so.
638 # Grep'ing the whole file is not good either: AIX grep has a line
634 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
635 # Check whether this is an Automake generated Makefile which includes
636 # dependency-tracking related rules and includes.
637 # Grep'ing the whole file directly is not great: AIX grep has a line
639638 # limit of 2048, but all sed's we know have understand at least 4000.
640 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
641 dirpart=`AS_DIRNAME("$mf")`
642 else
643 continue
644 fi
645 # Extract the definition of DEPDIR, am__include, and am__quote
646 # from the Makefile without running 'make'.
647 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
648 test -z "$DEPDIR" && continue
649 am__include=`sed -n 's/^am__include = //p' < "$mf"`
650 test -z "$am__include" && continue
651 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
652 # Find all dependency output files, they are included files with
653 # $(DEPDIR) in their names. We invoke sed twice because it is the
654 # simplest approach to changing $(DEPDIR) to its actual value in the
655 # expansion.
656 for file in `sed -n "
657 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
658 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
659 # Make sure the directory exists.
660 test -f "$dirpart/$file" && continue
661 fdir=`AS_DIRNAME(["$file"])`
662 AS_MKDIR_P([$dirpart/$fdir])
663 # echo "creating $dirpart/$file"
664 echo '# dummy' > "$dirpart/$file"
665 done
639 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
640 || continue
641 am_dirpart=`AS_DIRNAME(["$am_mf"])`
642 am_filepart=`AS_BASENAME(["$am_mf"])`
643 AM_RUN_LOG([cd "$am_dirpart" \
644 && sed -e '/# am--include-marker/d' "$am_filepart" \
645 | $MAKE -f - am--depfiles]) || am_rc=$?
666646 done
647 if test $am_rc -ne 0; then
648 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
649 for automatic dependency tracking. Try re-running configure with the
650 '--disable-dependency-tracking' option to at least be able to build
651 the package (albeit without support for automatic dependency tracking).])
652 fi
653 AS_UNSET([am_dirpart])
654 AS_UNSET([am_filepart])
655 AS_UNSET([am_mf])
656 AS_UNSET([am_rc])
657 rm -f conftest-deps.mk
667658 }
668659 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
669660
672663 # -----------------------------
673664 # This macro should only be invoked once -- use via AC_REQUIRE.
674665 #
675 # This code is only required when automatic dependency tracking
676 # is enabled. FIXME. This creates each '.P' file that we will
677 # need in order to bootstrap the dependency handling code.
666 # This code is only required when automatic dependency tracking is enabled.
667 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
668 # order to bootstrap the dependency handling code.
678669 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
679670 [AC_CONFIG_COMMANDS([depfiles],
680671 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
681 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
682 ])
672 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
683673
684674 # Do all the work for Automake. -*- Autoconf -*-
685675
686 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
676 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
687677 #
688678 # This file is free software; the Free Software Foundation
689679 # gives unlimited permission to copy and/or distribute it,
770760 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
771761 # For better backward compatibility. To be removed once Automake 1.9.x
772762 # dies out for good. For more background, see:
773 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
774 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
763 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
764 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
775765 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
776766 # We need awk for the "check" target (and possibly the TAP driver). The
777767 # system "awk" is bad on some platforms.
838828 Aborting the configuration process, to ensure you take notice of the issue.
839829
840830 You can download and install GNU coreutils to get an 'rm' implementation
841 that behaves properly: <http://www.gnu.org/software/coreutils/>.
831 that behaves properly: <https://www.gnu.org/software/coreutils/>.
842832
843833 If you want to complete the configuration process using your problematic
844834 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
880870 done
881871 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
882872
883 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
873 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
884874 #
885875 # This file is free software; the Free Software Foundation
886876 # gives unlimited permission to copy and/or distribute it,
901891 fi
902892 AC_SUBST([install_sh])])
903893
904 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
894 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
905895 #
906896 # This file is free software; the Free Software Foundation
907897 # gives unlimited permission to copy and/or distribute it,
923913 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
924914 # From Jim Meyering
925915
926 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
916 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
927917 #
928918 # This file is free software; the Free Software Foundation
929919 # gives unlimited permission to copy and/or distribute it,
958948
959949 # Check to see how 'make' treats includes. -*- Autoconf -*-
960950
961 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
951 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
962952 #
963953 # This file is free software; the Free Software Foundation
964954 # gives unlimited permission to copy and/or distribute it,
966956
967957 # AM_MAKE_INCLUDE()
968958 # -----------------
969 # Check to see how make treats includes.
959 # Check whether make has an 'include' directive that can support all
960 # the idioms we need for our automatic dependency tracking code.
970961 AC_DEFUN([AM_MAKE_INCLUDE],
971 [am_make=${MAKE-make}
972 cat > confinc << 'END'
962 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
963 cat > confinc.mk << 'END'
973964 am__doit:
974 @echo this is the am__doit target
965 @echo this is the am__doit target >confinc.out
975966 .PHONY: am__doit
976967 END
977 # If we don't find an include directive, just comment out the code.
978 AC_MSG_CHECKING([for style of include used by $am_make])
979968 am__include="#"
980969 am__quote=
981 _am_result=none
982 # First try GNU make style include.
983 echo "include confinc" > confmf
984 # Ignore all kinds of additional output from 'make'.
985 case `$am_make -s -f confmf 2> /dev/null` in #(
986 *the\ am__doit\ target*)
987 am__include=include
988 am__quote=
989 _am_result=GNU
990 ;;
991 esac
992 # Now try BSD make style include.
993 if test "$am__include" = "#"; then
994 echo '.include "confinc"' > confmf
995 case `$am_make -s -f confmf 2> /dev/null` in #(
996 *the\ am__doit\ target*)
997 am__include=.include
998 am__quote="\""
999 _am_result=BSD
1000 ;;
1001 esac
1002 fi
1003 AC_SUBST([am__include])
1004 AC_SUBST([am__quote])
1005 AC_MSG_RESULT([$_am_result])
1006 rm -f confinc confmf
1007 ])
970 # BSD make does it like this.
971 echo '.include "confinc.mk" # ignored' > confmf.BSD
972 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
973 echo 'include confinc.mk # ignored' > confmf.GNU
974 _am_result=no
975 for s in GNU BSD; do
976 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
977 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
978 ['0:this is the am__doit target'],
979 [AS_CASE([$s],
980 [BSD], [am__include='.include' am__quote='"'],
981 [am__include='include' am__quote=''])])
982 if test "$am__include" != "#"; then
983 _am_result="yes ($s style)"
984 break
985 fi
986 done
987 rm -f confinc.* confmf.*
988 AC_MSG_RESULT([${_am_result}])
989 AC_SUBST([am__include])])
990 AC_SUBST([am__quote])])
1008991
1009992 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1010993
1011 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
994 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
1012995 #
1013996 # This file is free software; the Free Software Foundation
1014997 # gives unlimited permission to copy and/or distribute it,
10471030
10481031 # Helper functions for option handling. -*- Autoconf -*-
10491032
1050 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1033 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
10511034 #
10521035 # This file is free software; the Free Software Foundation
10531036 # gives unlimited permission to copy and/or distribute it,
10761059 AC_DEFUN([_AM_IF_OPTION],
10771060 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10781061
1079 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
1062 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
10801063 #
10811064 # This file is free software; the Free Software Foundation
10821065 # gives unlimited permission to copy and/or distribute it,
11231106 # For backward compatibility.
11241107 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
11251108
1126 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1109 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
11271110 #
11281111 # This file is free software; the Free Software Foundation
11291112 # gives unlimited permission to copy and/or distribute it,
11421125
11431126 # Check to make sure that the build environment is sane. -*- Autoconf -*-
11441127
1145 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
1128 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
11461129 #
11471130 # This file is free software; the Free Software Foundation
11481131 # gives unlimited permission to copy and/or distribute it,
12231206 rm -f conftest.file
12241207 ])
12251208
1226 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
1209 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
12271210 #
12281211 # This file is free software; the Free Software Foundation
12291212 # gives unlimited permission to copy and/or distribute it,
12831266 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
12841267 ])
12851268
1286 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1269 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
12871270 #
12881271 # This file is free software; the Free Software Foundation
12891272 # gives unlimited permission to copy and/or distribute it,
13111294 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13121295 AC_SUBST([INSTALL_STRIP_PROGRAM])])
13131296
1314 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
1297 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
13151298 #
13161299 # This file is free software; the Free Software Foundation
13171300 # gives unlimited permission to copy and/or distribute it,
13301313
13311314 # Check how to create a tarball. -*- Autoconf -*-
13321315
1333 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
1316 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
13341317 #
13351318 # This file is free software; the Free Software Foundation
13361319 # gives unlimited permission to copy and/or distribute it,
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2018 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,
138138 am__v_at_1 =
139139 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
140140 depcomp = $(SHELL) $(top_srcdir)/depcomp
141 am__depfiles_maybe = depfiles
141 am__maybe_remake_depfiles = depfiles
142 am__depfiles_remade = ./$(DEPDIR)/applygeo.Po ./$(DEPDIR)/geotifcp.Po \
143 ./$(DEPDIR)/listgeo.Po ./$(DEPDIR)/makegeo.Po
142144 am__mv = mv -f
143145 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
144146 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
375377 *config.status*) \
376378 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
377379 *) \
378 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
379 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
380 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
381 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
380382 esac;
381383
382384 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
468470 distclean-compile:
469471 -rm -f *.tab.c
470472
471 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/applygeo.Po@am__quote@
472 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geotifcp.Po@am__quote@
473 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listgeo.Po@am__quote@
474 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/makegeo.Po@am__quote@
473 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/applygeo.Po@am__quote@ # am--include-marker
474 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geotifcp.Po@am__quote@ # am--include-marker
475 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listgeo.Po@am__quote@ # am--include-marker
476 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/makegeo.Po@am__quote@ # am--include-marker
477
478 $(am__depfiles_remade):
479 @$(MKDIR_P) $(@D)
480 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
481
482 am--depfiles: $(am__depfiles_remade)
475483
476484 .c.o:
477485 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
552560 distclean-tags:
553561 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
554562
555 distdir: $(DISTFILES)
563 distdir: $(BUILT_SOURCES)
564 $(MAKE) $(AM_MAKEFLAGS) distdir-am
565
566 distdir-am: $(DISTFILES)
556567 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
557568 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
558569 list='$(DISTFILES)'; \
625636 clean-noinstPROGRAMS mostlyclean-am
626637
627638 distclean: distclean-am
628 -rm -rf ./$(DEPDIR)
639 -rm -f ./$(DEPDIR)/applygeo.Po
640 -rm -f ./$(DEPDIR)/geotifcp.Po
641 -rm -f ./$(DEPDIR)/listgeo.Po
642 -rm -f ./$(DEPDIR)/makegeo.Po
629643 -rm -f Makefile
630644 distclean-am: clean-am distclean-compile distclean-generic \
631645 distclean-tags
671685 installcheck-am:
672686
673687 maintainer-clean: maintainer-clean-am
674 -rm -rf ./$(DEPDIR)
688 -rm -f ./$(DEPDIR)/applygeo.Po
689 -rm -f ./$(DEPDIR)/geotifcp.Po
690 -rm -f ./$(DEPDIR)/listgeo.Po
691 -rm -f ./$(DEPDIR)/makegeo.Po
675692 -rm -f Makefile
676693 maintainer-clean-am: distclean-am maintainer-clean-generic
677694
692709
693710 .MAKE: install-am install-strip
694711
695 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
712 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
696713 clean-binPROGRAMS clean-generic clean-libtool \
697714 clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \
698715 distclean-compile distclean-generic distclean-libtool \
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2018 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,
306306 *config.status*) \
307307 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
308308 *) \
309 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
310 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
309 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
310 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
311311 esac;
312312
313313 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
331331 cscope cscopelist:
332332
333333
334 distdir: $(DISTFILES)
334 distdir: $(BUILT_SOURCES)
335 $(MAKE) $(AM_MAKEFLAGS) distdir-am
336
337 distdir-am: $(DISTFILES)
335338 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
336339 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
337340 list='$(DISTFILES)'; \
00 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2018 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
254254 echo "compile $scriptversion"
255255 exit $?
256256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
258 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
258259 func_cl_wrapper "$@" # Doesn't return...
259260 ;;
260261 esac
338339 # Local Variables:
339340 # mode: shell-script
340341 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # eval: (add-hook 'before-save-hook 'time-stamp)
342343 # time-stamp-start: "scriptversion="
343344 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-time-zone: "UTC0"
345346 # time-stamp-end: "; # UTC"
346347 # End:
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-08-20'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-24'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
1414 # General Public License for more details.
1515 #
1616 # 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/>.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1818 #
1919 # As a special exception to the GNU General Public License, if you
2020 # distribute this file as part of a program that contains a
2626 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2727 #
2828 # 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;hb=HEAD
29 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
3030 #
3131 # Please send patches to <config-patches@gnu.org>.
3232
3838
3939 Output the configuration name of the system \`$me' is run on.
4040
41 Operation modes:
41 Options:
4242 -h, --help print this help, then exit
4343 -t, --time-stamp print date of last modification, then exit
4444 -v, --version print version number, then exit
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2015 Free Software Foundation, Inc.
52 Copyright 1992-2018 Free Software Foundation, Inc.
5353
5454 This is free software; see the source for copying conditions. There is NO
5555 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
106106 dummy=$tmp/dummy ;
107107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > $dummy.c ;
109 ,,) echo "int x;" > "$dummy.c" ;
110110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112112 CC_FOR_BUILD="$c"; break ;
113113 fi ;
114114 done ;
131131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133133
134 case "${UNAME_SYSTEM}" in
134 case "$UNAME_SYSTEM" in
135135 Linux|GNU|GNU/*)
136136 # If the system lacks a compiler, then just pick glibc.
137137 # We could probably try harder.
138138 LIBC=gnu
139139
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
140 eval "$set_cc_for_build"
141 cat <<-EOF > "$dummy.c"
142142 #include <features.h>
143143 #if defined(__UCLIBC__)
144144 LIBC=uclibc
148148 LIBC=gnu
149149 #endif
150150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
151 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
152
153 # If ldd exists, use it to detect musl libc.
154 if command -v ldd >/dev/null && \
155 ldd --version 2>&1 | grep -q ^musl
156 then
157 LIBC=musl
158 fi
152159 ;;
153160 esac
154161
155162 # Note: order is significant - the case branches are not exclusive.
156163
157 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
164 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
158165 *:NetBSD:*:*)
159166 # NetBSD (nbsd) targets should (where applicable) match one or
160167 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
168175 # portion of the name. We always set it to "unknown".
169176 sysctl="sysctl -n hw.machine_arch"
170177 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
171 /sbin/$sysctl 2>/dev/null || \
172 /usr/sbin/$sysctl 2>/dev/null || \
178 "/sbin/$sysctl" 2>/dev/null || \
179 "/usr/sbin/$sysctl" 2>/dev/null || \
173180 echo unknown)`
174 case "${UNAME_MACHINE_ARCH}" in
181 case "$UNAME_MACHINE_ARCH" in
175182 armeb) machine=armeb-unknown ;;
176183 arm*) machine=arm-unknown ;;
177184 sh3el) machine=shl-unknown ;;
178185 sh3eb) machine=sh-unknown ;;
179186 sh5el) machine=sh5le-unknown ;;
180187 earmv*)
181 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
182 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
183 machine=${arch}${endian}-unknown
188 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
189 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
190 machine="${arch}${endian}"-unknown
184191 ;;
185 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
192 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
186193 esac
187194 # The Operating System including object format, if it has switched
188 # to ELF recently, or will in the future.
189 case "${UNAME_MACHINE_ARCH}" in
190 arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
191 eval $set_cc_for_build
195 # to ELF recently (or will in the future) and ABI.
196 case "$UNAME_MACHINE_ARCH" in
197 earm*)
198 os=netbsdelf
199 ;;
200 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
201 eval "$set_cc_for_build"
192202 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
193203 | grep -q __ELF__
194204 then
204214 ;;
205215 esac
206216 # Determine ABI tags.
207 case "${UNAME_MACHINE_ARCH}" in
217 case "$UNAME_MACHINE_ARCH" in
208218 earm*)
209219 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
210 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
220 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
211221 ;;
212222 esac
213223 # The OS release
215225 # thus, need a distinct triplet. However, they do not need
216226 # kernel version information, so it can be replaced with a
217227 # suitable tag, in the style of linux-gnu.
218 case "${UNAME_VERSION}" in
228 case "$UNAME_VERSION" in
219229 Debian*)
220230 release='-gnu'
221231 ;;
222232 *)
223 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
233 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
224234 ;;
225235 esac
226236 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
227237 # contains redundant information, the shorter form:
228238 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
229 echo "${machine}-${os}${release}${abi}"
239 echo "$machine-${os}${release}${abi}"
230240 exit ;;
231241 *:Bitrig:*:*)
232242 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
233 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
243 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
234244 exit ;;
235245 *:OpenBSD:*:*)
236246 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
237 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
247 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
248 exit ;;
249 *:LibertyBSD:*:*)
250 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
251 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
252 exit ;;
253 *:MidnightBSD:*:*)
254 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
238255 exit ;;
239256 *:ekkoBSD:*:*)
240 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
257 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
241258 exit ;;
242259 *:SolidBSD:*:*)
243 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
260 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
244261 exit ;;
245262 macppc:MirBSD:*:*)
246 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
263 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
247264 exit ;;
248265 *:MirBSD:*:*)
249 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
266 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
250267 exit ;;
251268 *:Sortix:*:*)
252 echo ${UNAME_MACHINE}-unknown-sortix
253 exit ;;
269 echo "$UNAME_MACHINE"-unknown-sortix
270 exit ;;
271 *:Redox:*:*)
272 echo "$UNAME_MACHINE"-unknown-redox
273 exit ;;
274 mips:OSF1:*.*)
275 echo mips-dec-osf1
276 exit ;;
254277 alpha:OSF1:*:*)
255278 case $UNAME_RELEASE in
256279 *4.0)
267290 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
268291 case "$ALPHA_CPU_TYPE" in
269292 "EV4 (21064)")
270 UNAME_MACHINE="alpha" ;;
293 UNAME_MACHINE=alpha ;;
271294 "EV4.5 (21064)")
272 UNAME_MACHINE="alpha" ;;
295 UNAME_MACHINE=alpha ;;
273296 "LCA4 (21066/21068)")
274 UNAME_MACHINE="alpha" ;;
297 UNAME_MACHINE=alpha ;;
275298 "EV5 (21164)")
276 UNAME_MACHINE="alphaev5" ;;
299 UNAME_MACHINE=alphaev5 ;;
277300 "EV5.6 (21164A)")
278 UNAME_MACHINE="alphaev56" ;;
301 UNAME_MACHINE=alphaev56 ;;
279302 "EV5.6 (21164PC)")
280 UNAME_MACHINE="alphapca56" ;;
303 UNAME_MACHINE=alphapca56 ;;
281304 "EV5.7 (21164PC)")
282 UNAME_MACHINE="alphapca57" ;;
305 UNAME_MACHINE=alphapca57 ;;
283306 "EV6 (21264)")
284 UNAME_MACHINE="alphaev6" ;;
307 UNAME_MACHINE=alphaev6 ;;
285308 "EV6.7 (21264A)")
286 UNAME_MACHINE="alphaev67" ;;
309 UNAME_MACHINE=alphaev67 ;;
287310 "EV6.8CB (21264C)")
288 UNAME_MACHINE="alphaev68" ;;
311 UNAME_MACHINE=alphaev68 ;;
289312 "EV6.8AL (21264B)")
290 UNAME_MACHINE="alphaev68" ;;
313 UNAME_MACHINE=alphaev68 ;;
291314 "EV6.8CX (21264D)")
292 UNAME_MACHINE="alphaev68" ;;
315 UNAME_MACHINE=alphaev68 ;;
293316 "EV6.9A (21264/EV69A)")
294 UNAME_MACHINE="alphaev69" ;;
317 UNAME_MACHINE=alphaev69 ;;
295318 "EV7 (21364)")
296 UNAME_MACHINE="alphaev7" ;;
319 UNAME_MACHINE=alphaev7 ;;
297320 "EV7.9 (21364A)")
298 UNAME_MACHINE="alphaev79" ;;
321 UNAME_MACHINE=alphaev79 ;;
299322 esac
300323 # A Pn.n version is a patched version.
301324 # A Vn.n version is a released version.
302325 # A Tn.n version is a released field test version.
303326 # A Xn.n version is an unreleased experimental baselevel.
304327 # 1.2 uses "1.2" for uname -r.
305 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
328 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
306329 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
307330 exitcode=$?
308331 trap '' 0
309332 exit $exitcode ;;
310 Alpha\ *:Windows_NT*:*)
311 # How do we know it's Interix rather than the generic POSIX subsystem?
312 # Should we change UNAME_MACHINE based on the output of uname instead
313 # of the specific Alpha model?
314 echo alpha-pc-interix
315 exit ;;
316 21064:Windows_NT:50:3)
317 echo alpha-dec-winnt3.5
318 exit ;;
319333 Amiga*:UNIX_System_V:4.0:*)
320334 echo m68k-unknown-sysv4
321335 exit ;;
322336 *:[Aa]miga[Oo][Ss]:*:*)
323 echo ${UNAME_MACHINE}-unknown-amigaos
337 echo "$UNAME_MACHINE"-unknown-amigaos
324338 exit ;;
325339 *:[Mm]orph[Oo][Ss]:*:*)
326 echo ${UNAME_MACHINE}-unknown-morphos
340 echo "$UNAME_MACHINE"-unknown-morphos
327341 exit ;;
328342 *:OS/390:*:*)
329343 echo i370-ibm-openedition
335349 echo powerpc-ibm-os400
336350 exit ;;
337351 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
338 echo arm-acorn-riscix${UNAME_RELEASE}
352 echo arm-acorn-riscix"$UNAME_RELEASE"
339353 exit ;;
340354 arm*:riscos:*:*|arm*:RISCOS:*:*)
341355 echo arm-unknown-riscos
362376 sparc) echo sparc-icl-nx7; exit ;;
363377 esac ;;
364378 s390x:SunOS:*:*)
365 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
379 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
366380 exit ;;
367381 sun4H:SunOS:5.*:*)
368 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
382 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
369383 exit ;;
370384 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
371 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
385 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
372386 exit ;;
373387 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
374 echo i386-pc-auroraux${UNAME_RELEASE}
388 echo i386-pc-auroraux"$UNAME_RELEASE"
375389 exit ;;
376390 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
377 eval $set_cc_for_build
378 SUN_ARCH="i386"
391 eval "$set_cc_for_build"
392 SUN_ARCH=i386
379393 # If there is a compiler, see if it is configured for 64-bit objects.
380394 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
381395 # This test works for both compilers.
382 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
383397 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
384 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
398 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
385399 grep IS_64BIT_ARCH >/dev/null
386400 then
387 SUN_ARCH="x86_64"
401 SUN_ARCH=x86_64
388402 fi
389403 fi
390 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
391405 exit ;;
392406 sun4*:SunOS:6*:*)
393407 # According to config.sub, this is the proper way to canonicalize
394408 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
395409 # it's likely to be more like Solaris than SunOS4.
396 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
410 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
397411 exit ;;
398412 sun4*:SunOS:*:*)
399413 case "`/usr/bin/arch -k`" in
402416 ;;
403417 esac
404418 # Japanese Language versions have a version number like `4.1.3-JL'.
405 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
419 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
406420 exit ;;
407421 sun3*:SunOS:*:*)
408 echo m68k-sun-sunos${UNAME_RELEASE}
422 echo m68k-sun-sunos"$UNAME_RELEASE"
409423 exit ;;
410424 sun*:*:4.2BSD:*)
411425 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
412 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
426 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
413427 case "`/bin/arch`" in
414428 sun3)
415 echo m68k-sun-sunos${UNAME_RELEASE}
429 echo m68k-sun-sunos"$UNAME_RELEASE"
416430 ;;
417431 sun4)
418 echo sparc-sun-sunos${UNAME_RELEASE}
432 echo sparc-sun-sunos"$UNAME_RELEASE"
419433 ;;
420434 esac
421435 exit ;;
422436 aushp:SunOS:*:*)
423 echo sparc-auspex-sunos${UNAME_RELEASE}
437 echo sparc-auspex-sunos"$UNAME_RELEASE"
424438 exit ;;
425439 # The situation for MiNT is a little confusing. The machine name
426440 # can be virtually everything (everything which is not
431445 # MiNT. But MiNT is downward compatible to TOS, so this should
432446 # be no problem.
433447 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
434 echo m68k-atari-mint${UNAME_RELEASE}
448 echo m68k-atari-mint"$UNAME_RELEASE"
435449 exit ;;
436450 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
437 echo m68k-atari-mint${UNAME_RELEASE}
451 echo m68k-atari-mint"$UNAME_RELEASE"
438452 exit ;;
439453 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
440 echo m68k-atari-mint${UNAME_RELEASE}
454 echo m68k-atari-mint"$UNAME_RELEASE"
441455 exit ;;
442456 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
443 echo m68k-milan-mint${UNAME_RELEASE}
457 echo m68k-milan-mint"$UNAME_RELEASE"
444458 exit ;;
445459 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
446 echo m68k-hades-mint${UNAME_RELEASE}
460 echo m68k-hades-mint"$UNAME_RELEASE"
447461 exit ;;
448462 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
449 echo m68k-unknown-mint${UNAME_RELEASE}
463 echo m68k-unknown-mint"$UNAME_RELEASE"
450464 exit ;;
451465 m68k:machten:*:*)
452 echo m68k-apple-machten${UNAME_RELEASE}
466 echo m68k-apple-machten"$UNAME_RELEASE"
453467 exit ;;
454468 powerpc:machten:*:*)
455 echo powerpc-apple-machten${UNAME_RELEASE}
469 echo powerpc-apple-machten"$UNAME_RELEASE"
456470 exit ;;
457471 RISC*:Mach:*:*)
458472 echo mips-dec-mach_bsd4.3
459473 exit ;;
460474 RISC*:ULTRIX:*:*)
461 echo mips-dec-ultrix${UNAME_RELEASE}
475 echo mips-dec-ultrix"$UNAME_RELEASE"
462476 exit ;;
463477 VAX*:ULTRIX*:*:*)
464 echo vax-dec-ultrix${UNAME_RELEASE}
478 echo vax-dec-ultrix"$UNAME_RELEASE"
465479 exit ;;
466480 2020:CLIX:*:* | 2430:CLIX:*:*)
467 echo clipper-intergraph-clix${UNAME_RELEASE}
481 echo clipper-intergraph-clix"$UNAME_RELEASE"
468482 exit ;;
469483 mips:*:*:UMIPS | mips:*:*:RISCos)
470 eval $set_cc_for_build
471 sed 's/^ //' << EOF >$dummy.c
484 eval "$set_cc_for_build"
485 sed 's/^ //' << EOF > "$dummy.c"
472486 #ifdef __cplusplus
473487 #include <stdio.h> /* for printf() prototype */
474488 int main (int argc, char *argv[]) {
477491 #endif
478492 #if defined (host_mips) && defined (MIPSEB)
479493 #if defined (SYSTYPE_SYSV)
480 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
494 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
481495 #endif
482496 #if defined (SYSTYPE_SVR4)
483 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
497 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
484498 #endif
485499 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
486 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
500 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
487501 #endif
488502 #endif
489503 exit (-1);
490504 }
491505 EOF
492 $CC_FOR_BUILD -o $dummy $dummy.c &&
493 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
494 SYSTEM_NAME=`$dummy $dummyarg` &&
506 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
507 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
508 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
495509 { echo "$SYSTEM_NAME"; exit; }
496 echo mips-mips-riscos${UNAME_RELEASE}
510 echo mips-mips-riscos"$UNAME_RELEASE"
497511 exit ;;
498512 Motorola:PowerMAX_OS:*:*)
499513 echo powerpc-motorola-powermax
519533 AViiON:dgux:*:*)
520534 # DG/UX returns AViiON for all architectures
521535 UNAME_PROCESSOR=`/usr/bin/uname -p`
522 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
536 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
523537 then
524 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
525 [ ${TARGET_BINARY_INTERFACE}x = x ]
538 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
539 [ "$TARGET_BINARY_INTERFACE"x = x ]
526540 then
527 echo m88k-dg-dgux${UNAME_RELEASE}
541 echo m88k-dg-dgux"$UNAME_RELEASE"
528542 else
529 echo m88k-dg-dguxbcs${UNAME_RELEASE}
543 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
530544 fi
531545 else
532 echo i586-dg-dgux${UNAME_RELEASE}
546 echo i586-dg-dgux"$UNAME_RELEASE"
533547 fi
534548 exit ;;
535549 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
546560 echo m68k-tektronix-bsd
547561 exit ;;
548562 *:IRIX*:*:*)
549 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
563 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
550564 exit ;;
551565 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
552566 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
558572 if [ -x /usr/bin/oslevel ] ; then
559573 IBM_REV=`/usr/bin/oslevel`
560574 else
561 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
562 fi
563 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
575 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
576 fi
577 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
564578 exit ;;
565579 *:AIX:2:3)
566580 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
567 eval $set_cc_for_build
568 sed 's/^ //' << EOF >$dummy.c
581 eval "$set_cc_for_build"
582 sed 's/^ //' << EOF > "$dummy.c"
569583 #include <sys/systemcfg.h>
570584
571585 main()
576590 exit(0);
577591 }
578592 EOF
579 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
593 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
580594 then
581595 echo "$SYSTEM_NAME"
582596 else
590604 exit ;;
591605 *:AIX:*:[4567])
592606 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
593 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
607 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
594608 IBM_ARCH=rs6000
595609 else
596610 IBM_ARCH=powerpc
599613 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
600614 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
601615 else
602 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
603 fi
604 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
616 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
617 fi
618 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
605619 exit ;;
606620 *:AIX:*:*)
607621 echo rs6000-ibm-aix
608622 exit ;;
609 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
623 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
610624 echo romp-ibm-bsd4.4
611625 exit ;;
612626 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
613 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
627 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
614628 exit ;; # report: romp-ibm BSD 4.3
615629 *:BOSX:*:*)
616630 echo rs6000-bull-bosx
625639 echo m68k-hp-bsd4.4
626640 exit ;;
627641 9000/[34678]??:HP-UX:*:*)
628 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
629 case "${UNAME_MACHINE}" in
630 9000/31? ) HP_ARCH=m68000 ;;
631 9000/[34]?? ) HP_ARCH=m68k ;;
642 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
643 case "$UNAME_MACHINE" in
644 9000/31?) HP_ARCH=m68000 ;;
645 9000/[34]??) HP_ARCH=m68k ;;
632646 9000/[678][0-9][0-9])
633647 if [ -x /usr/bin/getconf ]; then
634648 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
635649 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
636 case "${sc_cpu_version}" in
637 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
638 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
650 case "$sc_cpu_version" in
651 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
652 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
639653 532) # CPU_PA_RISC2_0
640 case "${sc_kernel_bits}" in
641 32) HP_ARCH="hppa2.0n" ;;
642 64) HP_ARCH="hppa2.0w" ;;
643 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
654 case "$sc_kernel_bits" in
655 32) HP_ARCH=hppa2.0n ;;
656 64) HP_ARCH=hppa2.0w ;;
657 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
644658 esac ;;
645659 esac
646660 fi
647 if [ "${HP_ARCH}" = "" ]; then
648 eval $set_cc_for_build
649 sed 's/^ //' << EOF >$dummy.c
661 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
663 sed 's/^ //' << EOF > "$dummy.c"
650664
651665 #define _HPUX_SOURCE
652666 #include <stdlib.h>
679693 exit (0);
680694 }
681695 EOF
682 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
696 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
683697 test -z "$HP_ARCH" && HP_ARCH=hppa
684698 fi ;;
685699 esac
686 if [ ${HP_ARCH} = "hppa2.0w" ]
700 if [ "$HP_ARCH" = hppa2.0w ]
687701 then
688 eval $set_cc_for_build
702 eval "$set_cc_for_build"
689703
690704 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
691705 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
696710 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
697711 # => hppa64-hp-hpux11.23
698712
699 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
713 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
700714 grep -q __LP64__
701715 then
702 HP_ARCH="hppa2.0w"
716 HP_ARCH=hppa2.0w
703717 else
704 HP_ARCH="hppa64"
718 HP_ARCH=hppa64
705719 fi
706720 fi
707 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
721 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
708722 exit ;;
709723 ia64:HP-UX:*:*)
710 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
711 echo ia64-hp-hpux${HPUX_REV}
724 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
725 echo ia64-hp-hpux"$HPUX_REV"
712726 exit ;;
713727 3050*:HI-UX:*:*)
714 eval $set_cc_for_build
715 sed 's/^ //' << EOF >$dummy.c
728 eval "$set_cc_for_build"
729 sed 's/^ //' << EOF > "$dummy.c"
716730 #include <unistd.h>
717731 int
718732 main ()
737751 exit (0);
738752 }
739753 EOF
740 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
754 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
741755 { echo "$SYSTEM_NAME"; exit; }
742756 echo unknown-hitachi-hiuxwe2
743757 exit ;;
744 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
758 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
745759 echo hppa1.1-hp-bsd
746760 exit ;;
747761 9000/8??:4.3bsd:*:*)
750764 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
751765 echo hppa1.0-hp-mpeix
752766 exit ;;
753 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
767 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
754768 echo hppa1.1-hp-osf
755769 exit ;;
756770 hp8??:OSF1:*:*)
758772 exit ;;
759773 i*86:OSF1:*:*)
760774 if [ -x /usr/sbin/sysversion ] ; then
761 echo ${UNAME_MACHINE}-unknown-osf1mk
775 echo "$UNAME_MACHINE"-unknown-osf1mk
762776 else
763 echo ${UNAME_MACHINE}-unknown-osf1
777 echo "$UNAME_MACHINE"-unknown-osf1
764778 fi
765779 exit ;;
766780 parisc*:Lites*:*:*)
785799 echo c4-convex-bsd
786800 exit ;;
787801 CRAY*Y-MP:*:*:*)
788 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
802 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
789803 exit ;;
790804 CRAY*[A-Z]90:*:*:*)
791 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
805 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
792806 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
793807 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
794808 -e 's/\.[^.]*$/.X/'
795809 exit ;;
796810 CRAY*TS:*:*:*)
797 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
811 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
798812 exit ;;
799813 CRAY*T3E:*:*:*)
800 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
814 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
801815 exit ;;
802816 CRAY*SV1:*:*:*)
803 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
817 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
804818 exit ;;
805819 *:UNICOS/mp:*:*)
806 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
820 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
807821 exit ;;
808822 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
809 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
810 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
811 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
823 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
824 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
825 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
812826 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
813827 exit ;;
814828 5000:UNIX_System_V:4.*:*)
815 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
816 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
829 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
830 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
817831 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
818832 exit ;;
819833 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
820 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
834 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
821835 exit ;;
822836 sparc*:BSD/OS:*:*)
823 echo sparc-unknown-bsdi${UNAME_RELEASE}
837 echo sparc-unknown-bsdi"$UNAME_RELEASE"
824838 exit ;;
825839 *:BSD/OS:*:*)
826 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
840 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
827841 exit ;;
828842 *:FreeBSD:*:*)
829843 UNAME_PROCESSOR=`/usr/bin/uname -p`
830 case ${UNAME_PROCESSOR} in
844 case "$UNAME_PROCESSOR" in
831845 amd64)
832 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
833 *)
834 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
846 UNAME_PROCESSOR=x86_64 ;;
847 i386)
848 UNAME_PROCESSOR=i586 ;;
835849 esac
850 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
836851 exit ;;
837852 i*:CYGWIN*:*)
838 echo ${UNAME_MACHINE}-pc-cygwin
853 echo "$UNAME_MACHINE"-pc-cygwin
839854 exit ;;
840855 *:MINGW64*:*)
841 echo ${UNAME_MACHINE}-pc-mingw64
856 echo "$UNAME_MACHINE"-pc-mingw64
842857 exit ;;
843858 *:MINGW*:*)
844 echo ${UNAME_MACHINE}-pc-mingw32
859 echo "$UNAME_MACHINE"-pc-mingw32
845860 exit ;;
846861 *:MSYS*:*)
847 echo ${UNAME_MACHINE}-pc-msys
848 exit ;;
849 i*:windows32*:*)
850 # uname -m includes "-pc" on this system.
851 echo ${UNAME_MACHINE}-mingw32
862 echo "$UNAME_MACHINE"-pc-msys
852863 exit ;;
853864 i*:PW*:*)
854 echo ${UNAME_MACHINE}-pc-pw32
865 echo "$UNAME_MACHINE"-pc-pw32
855866 exit ;;
856867 *:Interix*:*)
857 case ${UNAME_MACHINE} in
868 case "$UNAME_MACHINE" in
858869 x86)
859 echo i586-pc-interix${UNAME_RELEASE}
870 echo i586-pc-interix"$UNAME_RELEASE"
860871 exit ;;
861872 authenticamd | genuineintel | EM64T)
862 echo x86_64-unknown-interix${UNAME_RELEASE}
873 echo x86_64-unknown-interix"$UNAME_RELEASE"
863874 exit ;;
864875 IA64)
865 echo ia64-unknown-interix${UNAME_RELEASE}
876 echo ia64-unknown-interix"$UNAME_RELEASE"
866877 exit ;;
867878 esac ;;
868 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
869 echo i${UNAME_MACHINE}-pc-mks
870 exit ;;
871 8664:Windows_NT:*)
872 echo x86_64-pc-mks
873 exit ;;
874 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
875 # How do we know it's Interix rather than the generic POSIX subsystem?
876 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
877 # UNAME_MACHINE based on the output of uname instead of i386?
878 echo i586-pc-interix
879 exit ;;
880879 i*:UWIN*:*)
881 echo ${UNAME_MACHINE}-pc-uwin
880 echo "$UNAME_MACHINE"-pc-uwin
882881 exit ;;
883882 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
884883 echo x86_64-unknown-cygwin
885884 exit ;;
886 p*:CYGWIN*:*)
887 echo powerpcle-unknown-cygwin
888 exit ;;
889885 prep*:SunOS:5.*:*)
890 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
886 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
891887 exit ;;
892888 *:GNU:*:*)
893889 # the GNU system
894 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
890 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
895891 exit ;;
896892 *:GNU/*:*:*)
897893 # other systems with GNU libc and userland
898 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
894 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
899895 exit ;;
900896 i*86:Minix:*:*)
901 echo ${UNAME_MACHINE}-pc-minix
897 echo "$UNAME_MACHINE"-pc-minix
902898 exit ;;
903899 aarch64:Linux:*:*)
904 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
900 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
905901 exit ;;
906902 aarch64_be:Linux:*:*)
907903 UNAME_MACHINE=aarch64_be
908 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
904 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
909905 exit ;;
910906 alpha:Linux:*:*)
911907 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
918914 EV68*) UNAME_MACHINE=alphaev68 ;;
919915 esac
920916 objdump --private-headers /bin/sh | grep -q ld.so.1
921 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
922 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
917 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
918 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
923919 exit ;;
924920 arc:Linux:*:* | arceb:Linux:*:*)
925 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
926922 exit ;;
927923 arm*:Linux:*:*)
928 eval $set_cc_for_build
924 eval "$set_cc_for_build"
929925 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
930926 | grep -q __ARM_EABI__
931927 then
932 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
928 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
933929 else
934930 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
935931 | grep -q __ARM_PCS_VFP
936932 then
937 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
933 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
938934 else
939 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
935 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
940936 fi
941937 fi
942938 exit ;;
943939 avr32*:Linux:*:*)
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
940 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
945941 exit ;;
946942 cris:Linux:*:*)
947 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
943 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
948944 exit ;;
949945 crisv32:Linux:*:*)
950 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
946 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
951947 exit ;;
952948 e2k:Linux:*:*)
953 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
954950 exit ;;
955951 frv:Linux:*:*)
956 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
952 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
957953 exit ;;
958954 hexagon:Linux:*:*)
959 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
955 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
960956 exit ;;
961957 i*86:Linux:*:*)
962 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
958 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
963959 exit ;;
964960 ia64:Linux:*:*)
965 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
962 exit ;;
963 k1om:Linux:*:*)
964 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
966965 exit ;;
967966 m32r*:Linux:*:*)
968 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
967 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
969968 exit ;;
970969 m68*:Linux:*:*)
971 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
972971 exit ;;
973972 mips:Linux:*:* | mips64:Linux:*:*)
974 eval $set_cc_for_build
975 sed 's/^ //' << EOF >$dummy.c
973 eval "$set_cc_for_build"
974 sed 's/^ //' << EOF > "$dummy.c"
976975 #undef CPU
977976 #undef ${UNAME_MACHINE}
978977 #undef ${UNAME_MACHINE}el
986985 #endif
987986 #endif
988987 EOF
989 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
990 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
988 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
989 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
991990 ;;
991 mips64el:Linux:*:*)
992 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
993 exit ;;
992994 openrisc*:Linux:*:*)
993 echo or1k-unknown-linux-${LIBC}
995 echo or1k-unknown-linux-"$LIBC"
994996 exit ;;
995997 or32:Linux:*:* | or1k*:Linux:*:*)
996 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
998 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
997999 exit ;;
9981000 padre:Linux:*:*)
999 echo sparc-unknown-linux-${LIBC}
1001 echo sparc-unknown-linux-"$LIBC"
10001002 exit ;;
10011003 parisc64:Linux:*:* | hppa64:Linux:*:*)
1002 echo hppa64-unknown-linux-${LIBC}
1004 echo hppa64-unknown-linux-"$LIBC"
10031005 exit ;;
10041006 parisc:Linux:*:* | hppa:Linux:*:*)
10051007 # Look for CPU level
10061008 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1007 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
1008 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
1009 *) echo hppa-unknown-linux-${LIBC} ;;
1009 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1010 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1011 *) echo hppa-unknown-linux-"$LIBC" ;;
10101012 esac
10111013 exit ;;
10121014 ppc64:Linux:*:*)
1013 echo powerpc64-unknown-linux-${LIBC}
1015 echo powerpc64-unknown-linux-"$LIBC"
10141016 exit ;;
10151017 ppc:Linux:*:*)
1016 echo powerpc-unknown-linux-${LIBC}
1018 echo powerpc-unknown-linux-"$LIBC"
10171019 exit ;;
10181020 ppc64le:Linux:*:*)
1019 echo powerpc64le-unknown-linux-${LIBC}
1021 echo powerpc64le-unknown-linux-"$LIBC"
10201022 exit ;;
10211023 ppcle:Linux:*:*)
1022 echo powerpcle-unknown-linux-${LIBC}
1024 echo powerpcle-unknown-linux-"$LIBC"
1025 exit ;;
1026 riscv32:Linux:*:* | riscv64:Linux:*:*)
1027 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10231028 exit ;;
10241029 s390:Linux:*:* | s390x:Linux:*:*)
1025 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1030 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
10261031 exit ;;
10271032 sh64*:Linux:*:*)
1028 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1033 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10291034 exit ;;
10301035 sh*:Linux:*:*)
1031 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1036 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10321037 exit ;;
10331038 sparc:Linux:*:* | sparc64:Linux:*:*)
1034 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1039 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10351040 exit ;;
10361041 tile*:Linux:*:*)
1037 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1042 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10381043 exit ;;
10391044 vax:Linux:*:*)
1040 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1045 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
10411046 exit ;;
10421047 x86_64:Linux:*:*)
1043 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
1048 if objdump -f /bin/sh | grep -q elf32-x86-64; then
1049 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
1050 else
1051 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1052 fi
10441053 exit ;;
10451054 xtensa*:Linux:*:*)
1046 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1055 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10471056 exit ;;
10481057 i*86:DYNIX/ptx:4*:*)
10491058 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10571066 # I am not positive that other SVR4 systems won't match this,
10581067 # I just have to hope. -- rms.
10591068 # Use sysv4.2uw... so that sysv4* matches it.
1060 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1069 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
10611070 exit ;;
10621071 i*86:OS/2:*:*)
10631072 # If we were able to find `uname', then EMX Unix compatibility
10641073 # is probably installed.
1065 echo ${UNAME_MACHINE}-pc-os2-emx
1074 echo "$UNAME_MACHINE"-pc-os2-emx
10661075 exit ;;
10671076 i*86:XTS-300:*:STOP)
1068 echo ${UNAME_MACHINE}-unknown-stop
1077 echo "$UNAME_MACHINE"-unknown-stop
10691078 exit ;;
10701079 i*86:atheos:*:*)
1071 echo ${UNAME_MACHINE}-unknown-atheos
1080 echo "$UNAME_MACHINE"-unknown-atheos
10721081 exit ;;
10731082 i*86:syllable:*:*)
1074 echo ${UNAME_MACHINE}-pc-syllable
1083 echo "$UNAME_MACHINE"-pc-syllable
10751084 exit ;;
10761085 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1077 echo i386-unknown-lynxos${UNAME_RELEASE}
1086 echo i386-unknown-lynxos"$UNAME_RELEASE"
10781087 exit ;;
10791088 i*86:*DOS:*:*)
1080 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1081 exit ;;
1082 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1083 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1089 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1090 exit ;;
1091 i*86:*:4.*:*)
1092 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
10841093 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1085 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1094 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
10861095 else
1087 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1096 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
10881097 fi
10891098 exit ;;
10901099 i*86:*:5:[678]*)
10941103 *Pentium) UNAME_MACHINE=i586 ;;
10951104 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
10961105 esac
1097 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1106 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
10981107 exit ;;
10991108 i*86:*:3.2:*)
11001109 if test -f /usr/options/cb.name; then
11011110 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1102 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1111 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
11031112 elif /bin/uname -X 2>/dev/null >/dev/null ; then
11041113 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
11051114 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
11091118 && UNAME_MACHINE=i686
11101119 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
11111120 && UNAME_MACHINE=i686
1112 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1121 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
11131122 else
1114 echo ${UNAME_MACHINE}-pc-sysv32
1123 echo "$UNAME_MACHINE"-pc-sysv32
11151124 fi
11161125 exit ;;
11171126 pc:*:*:*)
11191128 # uname -m prints for DJGPP always 'pc', but it prints nothing about
11201129 # the processor, so we play safe by assuming i586.
11211130 # Note: whatever this is, it MUST be the same as what config.sub
1122 # prints for the "djgpp" host, or else GDB configury will decide that
1131 # prints for the "djgpp" host, or else GDB configure will decide that
11231132 # this is a cross-build.
11241133 echo i586-pc-msdosdjgpp
11251134 exit ;;
11311140 exit ;;
11321141 i860:*:4.*:*) # i860-SVR4
11331142 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1134 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1143 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
11351144 else # Add other i860-SVR4 vendors below as they are discovered.
1136 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1145 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
11371146 fi
11381147 exit ;;
11391148 mini*:CTIX:SYS*5:*)
11531162 test -r /etc/.relid \
11541163 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11551164 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1156 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1165 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11571166 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1158 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1167 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11591168 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11601169 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11611170 && { echo i486-ncr-sysv4; exit; } ;;
11641173 test -r /etc/.relid \
11651174 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11661175 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1167 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1176 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11681177 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1169 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1178 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
11701179 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1171 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1180 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11721181 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1173 echo m68k-unknown-lynxos${UNAME_RELEASE}
1182 echo m68k-unknown-lynxos"$UNAME_RELEASE"
11741183 exit ;;
11751184 mc68030:UNIX_System_V:4.*:*)
11761185 echo m68k-atari-sysv4
11771186 exit ;;
11781187 TSUNAMI:LynxOS:2.*:*)
1179 echo sparc-unknown-lynxos${UNAME_RELEASE}
1188 echo sparc-unknown-lynxos"$UNAME_RELEASE"
11801189 exit ;;
11811190 rs6000:LynxOS:2.*:*)
1182 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1191 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
11831192 exit ;;
11841193 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1185 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1194 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
11861195 exit ;;
11871196 SM[BE]S:UNIX_SV:*:*)
1188 echo mips-dde-sysv${UNAME_RELEASE}
1197 echo mips-dde-sysv"$UNAME_RELEASE"
11891198 exit ;;
11901199 RM*:ReliantUNIX-*:*:*)
11911200 echo mips-sni-sysv4
11961205 *:SINIX-*:*:*)
11971206 if uname -p 2>/dev/null >/dev/null ; then
11981207 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1199 echo ${UNAME_MACHINE}-sni-sysv4
1208 echo "$UNAME_MACHINE"-sni-sysv4
12001209 else
12011210 echo ns32k-sni-sysv
12021211 fi
12161225 exit ;;
12171226 i*86:VOS:*:*)
12181227 # From Paul.Green@stratus.com.
1219 echo ${UNAME_MACHINE}-stratus-vos
1228 echo "$UNAME_MACHINE"-stratus-vos
12201229 exit ;;
12211230 *:VOS:*:*)
12221231 # From Paul.Green@stratus.com.
12231232 echo hppa1.1-stratus-vos
12241233 exit ;;
12251234 mc68*:A/UX:*:*)
1226 echo m68k-apple-aux${UNAME_RELEASE}
1235 echo m68k-apple-aux"$UNAME_RELEASE"
12271236 exit ;;
12281237 news*:NEWS-OS:6*:*)
12291238 echo mips-sony-newsos6
12301239 exit ;;
12311240 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
12321241 if [ -d /usr/nec ]; then
1233 echo mips-nec-sysv${UNAME_RELEASE}
1242 echo mips-nec-sysv"$UNAME_RELEASE"
12341243 else
1235 echo mips-unknown-sysv${UNAME_RELEASE}
1244 echo mips-unknown-sysv"$UNAME_RELEASE"
12361245 fi
12371246 exit ;;
12381247 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
12511260 echo x86_64-unknown-haiku
12521261 exit ;;
12531262 SX-4:SUPER-UX:*:*)
1254 echo sx4-nec-superux${UNAME_RELEASE}
1263 echo sx4-nec-superux"$UNAME_RELEASE"
12551264 exit ;;
12561265 SX-5:SUPER-UX:*:*)
1257 echo sx5-nec-superux${UNAME_RELEASE}
1266 echo sx5-nec-superux"$UNAME_RELEASE"
12581267 exit ;;
12591268 SX-6:SUPER-UX:*:*)
1260 echo sx6-nec-superux${UNAME_RELEASE}
1269 echo sx6-nec-superux"$UNAME_RELEASE"
12611270 exit ;;
12621271 SX-7:SUPER-UX:*:*)
1263 echo sx7-nec-superux${UNAME_RELEASE}
1272 echo sx7-nec-superux"$UNAME_RELEASE"
12641273 exit ;;
12651274 SX-8:SUPER-UX:*:*)
1266 echo sx8-nec-superux${UNAME_RELEASE}
1275 echo sx8-nec-superux"$UNAME_RELEASE"
12671276 exit ;;
12681277 SX-8R:SUPER-UX:*:*)
1269 echo sx8r-nec-superux${UNAME_RELEASE}
1278 echo sx8r-nec-superux"$UNAME_RELEASE"
1279 exit ;;
1280 SX-ACE:SUPER-UX:*:*)
1281 echo sxace-nec-superux"$UNAME_RELEASE"
12701282 exit ;;
12711283 Power*:Rhapsody:*:*)
1272 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1284 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
12731285 exit ;;
12741286 *:Rhapsody:*:*)
1275 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1287 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
12761288 exit ;;
12771289 *:Darwin:*:*)
12781290 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1279 eval $set_cc_for_build
1291 eval "$set_cc_for_build"
12801292 if test "$UNAME_PROCESSOR" = unknown ; then
12811293 UNAME_PROCESSOR=powerpc
12821294 fi
1283 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1284 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1295 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1296 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
12851297 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1286 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1287 grep IS_64BIT_ARCH >/dev/null
1298 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1299 grep IS_64BIT_ARCH >/dev/null
12881300 then
12891301 case $UNAME_PROCESSOR in
12901302 i386) UNAME_PROCESSOR=x86_64 ;;
12911303 powerpc) UNAME_PROCESSOR=powerpc64 ;;
12921304 esac
1305 fi
1306 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1307 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1308 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1309 grep IS_PPC >/dev/null
1310 then
1311 UNAME_PROCESSOR=powerpc
12931312 fi
12941313 fi
12951314 elif test "$UNAME_PROCESSOR" = i386 ; then
13011320 # that Apple uses in portable devices.
13021321 UNAME_PROCESSOR=x86_64
13031322 fi
1304 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1323 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
13051324 exit ;;
13061325 *:procnto*:*:* | *:QNX:[0123456789]*:*)
13071326 UNAME_PROCESSOR=`uname -p`
1308 if test "$UNAME_PROCESSOR" = "x86"; then
1327 if test "$UNAME_PROCESSOR" = x86; then
13091328 UNAME_PROCESSOR=i386
13101329 UNAME_MACHINE=pc
13111330 fi
1312 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1331 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
13131332 exit ;;
13141333 *:QNX:*:4*)
13151334 echo i386-pc-qnx
13161335 exit ;;
1317 NEO-?:NONSTOP_KERNEL:*:*)
1318 echo neo-tandem-nsk${UNAME_RELEASE}
1336 NEO-*:NONSTOP_KERNEL:*:*)
1337 echo neo-tandem-nsk"$UNAME_RELEASE"
13191338 exit ;;
13201339 NSE-*:NONSTOP_KERNEL:*:*)
1321 echo nse-tandem-nsk${UNAME_RELEASE}
1322 exit ;;
1323 NSR-?:NONSTOP_KERNEL:*:*)
1324 echo nsr-tandem-nsk${UNAME_RELEASE}
1340 echo nse-tandem-nsk"$UNAME_RELEASE"
1341 exit ;;
1342 NSR-*:NONSTOP_KERNEL:*:*)
1343 echo nsr-tandem-nsk"$UNAME_RELEASE"
1344 exit ;;
1345 NSV-*:NONSTOP_KERNEL:*:*)
1346 echo nsv-tandem-nsk"$UNAME_RELEASE"
1347 exit ;;
1348 NSX-*:NONSTOP_KERNEL:*:*)
1349 echo nsx-tandem-nsk"$UNAME_RELEASE"
13251350 exit ;;
13261351 *:NonStop-UX:*:*)
13271352 echo mips-compaq-nonstopux
13301355 echo bs2000-siemens-sysv
13311356 exit ;;
13321357 DS/*:UNIX_System_V:*:*)
1333 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1358 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
13341359 exit ;;
13351360 *:Plan9:*:*)
13361361 # "uname -m" is not consistent, so use $cputype instead. 386
13371362 # is converted to i386 for consistency with other x86
13381363 # operating systems.
1339 if test "$cputype" = "386"; then
1364 if test "$cputype" = 386; then
13401365 UNAME_MACHINE=i386
13411366 else
13421367 UNAME_MACHINE="$cputype"
13431368 fi
1344 echo ${UNAME_MACHINE}-unknown-plan9
1369 echo "$UNAME_MACHINE"-unknown-plan9
13451370 exit ;;
13461371 *:TOPS-10:*:*)
13471372 echo pdp10-unknown-tops10
13621387 echo pdp10-unknown-its
13631388 exit ;;
13641389 SEI:*:*:SEIUX)
1365 echo mips-sei-seiux${UNAME_RELEASE}
1390 echo mips-sei-seiux"$UNAME_RELEASE"
13661391 exit ;;
13671392 *:DragonFly:*:*)
1368 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1393 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
13691394 exit ;;
13701395 *:*VMS:*:*)
13711396 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1372 case "${UNAME_MACHINE}" in
1397 case "$UNAME_MACHINE" in
13731398 A*) echo alpha-dec-vms ; exit ;;
13741399 I*) echo ia64-dec-vms ; exit ;;
13751400 V*) echo vax-dec-vms ; exit ;;
13781403 echo i386-pc-xenix
13791404 exit ;;
13801405 i*86:skyos:*:*)
1381 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1406 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
13821407 exit ;;
13831408 i*86:rdos:*:*)
1384 echo ${UNAME_MACHINE}-pc-rdos
1409 echo "$UNAME_MACHINE"-pc-rdos
13851410 exit ;;
13861411 i*86:AROS:*:*)
1387 echo ${UNAME_MACHINE}-pc-aros
1412 echo "$UNAME_MACHINE"-pc-aros
13881413 exit ;;
13891414 x86_64:VMkernel:*:*)
1390 echo ${UNAME_MACHINE}-unknown-esx
1415 echo "$UNAME_MACHINE"-unknown-esx
1416 exit ;;
1417 amd64:Isilon\ OneFS:*:*)
1418 echo x86_64-unknown-onefs
13911419 exit ;;
13921420 esac
13931421
1422 echo "$0: unable to guess system type" >&2
1423
1424 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1425 mips:Linux | mips64:Linux)
1426 # If we got here on MIPS GNU/Linux, output extra information.
1427 cat >&2 <<EOF
1428
1429 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1430 the system type. Please install a C compiler and try again.
1431 EOF
1432 ;;
1433 esac
1434
13941435 cat >&2 <<EOF
1395 $0: unable to guess system type
1396
1397 This script, last modified $timestamp, has failed to recognize
1398 the operating system you are using. It is advised that you
1399 download the most up to date version of the config scripts from
1400
1401 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1436
1437 This script (version $timestamp), has failed to recognize the
1438 operating system you are using. If your script is old, overwrite *all*
1439 copies of config.guess and config.sub with the latest versions from:
1440
1441 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
14021442 and
1403 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1404
1405 If the version you run ($0) is already up to date, please
1406 send the following data and any information you think might be
1407 pertinent to <config-patches@gnu.org> in order to provide the needed
1408 information to handle your system.
1443 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1444
1445 If $0 has already been updated, send the following data and any
1446 information you think might be pertinent to config-patches@gnu.org to
1447 provide the necessary information to handle your system.
14091448
14101449 config.guess timestamp = $timestamp
14111450
14241463 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
14251464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
14261465
1427 UNAME_MACHINE = ${UNAME_MACHINE}
1428 UNAME_RELEASE = ${UNAME_RELEASE}
1429 UNAME_SYSTEM = ${UNAME_SYSTEM}
1430 UNAME_VERSION = ${UNAME_VERSION}
1466 UNAME_MACHINE = "$UNAME_MACHINE"
1467 UNAME_RELEASE = "$UNAME_RELEASE"
1468 UNAME_SYSTEM = "$UNAME_SYSTEM"
1469 UNAME_VERSION = "$UNAME_VERSION"
14311470 EOF
14321471
14331472 exit 1
14341473
14351474 # Local variables:
1436 # eval: (add-hook 'write-file-hooks 'time-stamp)
1475 # eval: (add-hook 'write-file-functions 'time-stamp)
14371476 # time-stamp-start: "timestamp='"
14381477 # time-stamp-format: "%:y-%02m-%02d"
14391478 # time-stamp-end: "'"
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-08-20'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-22'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
1414 # General Public License for more details.
1515 #
1616 # 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/>.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1818 #
1919 # As a special exception to the GNU General Public License, if you
2020 # distribute this file as part of a program that contains a
3232 # Otherwise, we print the canonical config type on stdout and succeed.
3333
3434 # 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;hb=HEAD
35 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
3636
3737 # This file is supposed to be the same for all GNU packages
3838 # and recognize all the CPU types, system types and aliases
5252 me=`echo "$0" | sed -e 's,.*/,,'`
5353
5454 usage="\
55 Usage: $0 [OPTION] CPU-MFR-OPSYS
56 $0 [OPTION] ALIAS
55 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
5756
5857 Canonicalize a configuration name.
5958
60 Operation modes:
59 Options:
6160 -h, --help print this help, then exit
6261 -t, --time-stamp print date of last modification, then exit
6362 -v, --version print version number, then exit
6766 version="\
6867 GNU config.sub ($timestamp)
6968
70 Copyright 1992-2015 Free Software Foundation, Inc.
69 Copyright 1992-2018 Free Software Foundation, Inc.
7170
7271 This is free software; see the source for copying conditions. There is NO
7372 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
9493
9594 *local*)
9695 # First pass through any local machine types.
97 echo $1
96 echo "$1"
9897 exit ;;
9998
10099 * )
112111
113112 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114113 # Here we must recognize all the valid KERNEL-OS combinations.
115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
114 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116115 case $maybe_os in
117116 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118117 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
120 kopensolaris*-gnu* | \
119 kopensolaris*-gnu* | cloudabi*-eabi* | \
121120 storm-chaos* | os2-emx* | rtmk-nova*)
122121 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
122 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124123 ;;
125124 android-linux)
126125 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
126 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128127 ;;
129128 *)
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131 if [ $basic_machine != $1 ]
132 then os=`echo $1 | sed 's/.*-/-/'`
129 basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
130 if [ "$basic_machine" != "$1" ]
131 then os=`echo "$1" | sed 's/.*-/-/'`
133132 else os=; fi
134133 ;;
135134 esac
178177 ;;
179178 -sco6)
180179 os=-sco5v6
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
180 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
182181 ;;
183182 -sco5)
184183 os=-sco3.2v5
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
184 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
186185 ;;
187186 -sco4)
188187 os=-sco3.2v4
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
190189 ;;
191190 -sco3.2.[4-9]*)
192191 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
192 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
194193 ;;
195194 -sco3.2v[4-9]*)
196195 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
196 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
198197 ;;
199198 -sco5v6*)
200199 # Don't forget version if it is 3.2v4 or newer.
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
202201 ;;
203202 -sco*)
204203 os=-sco3.2v2
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
206205 ;;
207206 -udk*)
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
207 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
209208 ;;
210209 -isc)
211210 os=-isc2.2
212 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
211 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
213212 ;;
214213 -clix*)
215214 basic_machine=clipper-intergraph
216215 ;;
217216 -isc*)
218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
217 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
219218 ;;
220219 -lynx*178)
221220 os=-lynxos178
227226 os=-lynxos
228227 ;;
229228 -ptx*)
230 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
231 ;;
232 -windowsnt*)
233 os=`echo $os | sed -e 's/windowsnt/winnt/'`
229 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
234230 ;;
235231 -psos*)
236232 os=-psos
263259 | fido | fr30 | frv | ft32 \
264260 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265261 | hexagon \
266 | i370 | i860 | i960 | ia64 \
262 | i370 | i860 | i960 | ia16 | ia64 \
267263 | ip2k | iq2000 \
268264 | k1om \
269265 | le32 | le64 \
299295 | nios | nios2 | nios2eb | nios2el \
300296 | ns16k | ns32k \
301297 | open8 | or1k | or1knd | or32 \
302 | pdp10 | pdp11 | pj | pjl \
298 | pdp10 | pj | pjl \
303299 | powerpc | powerpc64 | powerpc64le | powerpcle \
300 | pru \
304301 | pyramid \
305302 | riscv32 | riscv64 \
306303 | rl78 | rx \
314311 | ubicom32 \
315312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
316313 | visium \
317 | we32k \
314 | wasm32 \
318315 | x86 | xc16x | xstormy16 | xtensa \
319316 | z8k | z80)
320317 basic_machine=$basic_machine-unknown
335332 basic_machine=$basic_machine-unknown
336333 os=-none
337334 ;;
338 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
335 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
339336 ;;
340337 ms1)
341338 basic_machine=mt-unknown
364361 ;;
365362 # Object if more than one company name word.
366363 *-*-*)
367 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
364 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
368365 exit 1
369366 ;;
370367 # Recognize the basic CPU types with company name.
387384 | h8300-* | h8500-* \
388385 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
389386 | hexagon-* \
390 | i*86-* | i860-* | i960-* | ia64-* \
387 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
391388 | ip2k-* | iq2000-* \
392389 | k1om-* \
393390 | le32-* | le64-* \
428425 | orion-* \
429426 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
430427 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
428 | pru-* \
431429 | pyramid-* \
432430 | riscv32-* | riscv64-* \
433431 | rl78-* | romp-* | rs6000-* | rx-* \
444442 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
445443 | vax-* \
446444 | visium-* \
445 | wasm32-* \
447446 | we32k-* \
448447 | x86-* | x86_64-* | xc16x-* | xps100-* \
449448 | xstormy16-* | xtensa*-* \
457456 # Recognize the various machine names and aliases which stand
458457 # for a CPU type and a company and sometimes even an OS.
459458 386bsd)
460 basic_machine=i386-unknown
459 basic_machine=i386-pc
461460 os=-bsd
462461 ;;
463462 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
491490 basic_machine=x86_64-pc
492491 ;;
493492 amd64-*)
494 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
493 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
495494 ;;
496495 amdahl)
497496 basic_machine=580-amdahl
520519 basic_machine=i386-pc
521520 os=-aros
522521 ;;
523 asmjs)
522 asmjs)
524523 basic_machine=asmjs-unknown
525524 ;;
526525 aux)
536535 os=-linux
537536 ;;
538537 blackfin-*)
539 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
538 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
540539 os=-linux
541540 ;;
542541 bluegene*)
544543 os=-cnk
545544 ;;
546545 c54x-*)
547 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
546 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
548547 ;;
549548 c55x-*)
550 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
549 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
551550 ;;
552551 c6x-*)
553 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
552 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
554553 ;;
555554 c90)
556555 basic_machine=c90-cray
639638 basic_machine=rs6000-bull
640639 os=-bosx
641640 ;;
642 dpx2* | dpx2*-bull)
641 dpx2*)
643642 basic_machine=m68k-bull
644643 os=-sysv3
644 ;;
645 e500v[12])
646 basic_machine=powerpc-unknown
647 os=$os"spe"
648 ;;
649 e500v[12]-*)
650 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
651 os=$os"spe"
645652 ;;
646653 ebmon29k)
647654 basic_machine=a29k-amd
732739 hp9k8[0-9][0-9] | hp8[0-9][0-9])
733740 basic_machine=hppa1.0-hp
734741 ;;
735 hppa-next)
736 os=-nextstep3
737 ;;
738742 hppaosf)
739743 basic_machine=hppa1.1-hp
740744 os=-osf
747751 basic_machine=i370-ibm
748752 ;;
749753 i*86v32)
750 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
754 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
751755 os=-sysv32
752756 ;;
753757 i*86v4*)
754 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
758 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
755759 os=-sysv4
756760 ;;
757761 i*86v)
758 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
762 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
759763 os=-sysv
760764 ;;
761765 i*86sol2)
762 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
766 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
763767 os=-solaris2
764768 ;;
765769 i386mach)
766770 basic_machine=i386-mach
767771 os=-mach
768772 ;;
769 i386-vsta | vsta)
773 vsta)
770774 basic_machine=i386-unknown
771775 os=-vsta
772776 ;;
785789 os=-sysv
786790 ;;
787791 leon-*|leon[3-9]-*)
788 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
792 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
789793 ;;
790794 m68knommu)
791795 basic_machine=m68k-unknown
792796 os=-linux
793797 ;;
794798 m68knommu-*)
795 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
799 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
796800 os=-linux
797 ;;
798 m88k-omron*)
799 basic_machine=m88k-omron
800801 ;;
801802 magnum | m3230)
802803 basic_machine=mips-mips
829830 os=-mint
830831 ;;
831832 mips3*-*)
832 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
833 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
833834 ;;
834835 mips3*)
835 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
836 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
836837 ;;
837838 monitor)
838839 basic_machine=m68k-rom68k
851852 os=-msdos
852853 ;;
853854 ms1-*)
854 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
855 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
855856 ;;
856857 msys)
857858 basic_machine=i686-pc
893894 basic_machine=v70-nec
894895 os=-sysv
895896 ;;
896 next | m*-next )
897 next | m*-next)
897898 basic_machine=m68k-next
898899 case $os in
899900 -nextstep* )
938939 nsr-tandem)
939940 basic_machine=nsr-tandem
940941 ;;
942 nsv-tandem)
943 basic_machine=nsv-tandem
944 ;;
945 nsx-tandem)
946 basic_machine=nsx-tandem
947 ;;
941948 op50n-* | op60c-*)
942949 basic_machine=hppa1.1-oki
943950 os=-proelf
970977 os=-linux
971978 ;;
972979 parisc-*)
973 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
980 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
974981 os=-linux
975982 ;;
976983 pbd)
986993 basic_machine=i386-pc
987994 ;;
988995 pc98-*)
989 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
996 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
990997 ;;
991998 pentium | p5 | k5 | k6 | nexgen | viac3)
992999 basic_machine=i586-pc
10011008 basic_machine=i786-pc
10021009 ;;
10031010 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1004 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
1011 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10051012 ;;
10061013 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1007 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1014 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10081015 ;;
10091016 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1010 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1017 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10111018 ;;
10121019 pentium4-*)
1013 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
1020 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10141021 ;;
10151022 pn)
10161023 basic_machine=pn-gould
10201027 ppc | ppcbe) basic_machine=powerpc-unknown
10211028 ;;
10221029 ppc-* | ppcbe-*)
1023 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1024 ;;
1025 ppcle | powerpclittle | ppc-le | powerpc-little)
1030 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1031 ;;
1032 ppcle | powerpclittle)
10261033 basic_machine=powerpcle-unknown
10271034 ;;
10281035 ppcle-* | powerpclittle-*)
1029 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1036 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10301037 ;;
10311038 ppc64) basic_machine=powerpc64-unknown
10321039 ;;
1033 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1034 ;;
1035 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1040 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 ppc64le | powerpc64little)
10361043 basic_machine=powerpc64le-unknown
10371044 ;;
10381045 ppc64le-* | powerpc64little-*)
1039 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1046 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10401047 ;;
10411048 ps2)
10421049 basic_machine=i386-ibm
10901097 sequent)
10911098 basic_machine=i386-sequent
10921099 ;;
1093 sh)
1094 basic_machine=sh-hitachi
1095 os=-hms
1096 ;;
10971100 sh5el)
10981101 basic_machine=sh5le-unknown
10991102 ;;
1100 sh64)
1101 basic_machine=sh64-unknown
1102 ;;
1103 sparclite-wrs | simso-wrs)
1103 simso-wrs)
11041104 basic_machine=sparclite-wrs
11051105 os=-vxworks
11061106 ;;
11191119 os=-sysv4
11201120 ;;
11211121 strongarm-* | thumb-*)
1122 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1122 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
11231123 ;;
11241124 sun2)
11251125 basic_machine=m68000-sun
12411241 basic_machine=hppa1.1-winbond
12421242 os=-proelf
12431243 ;;
1244 x64)
1245 basic_machine=x86_64-pc
1246 ;;
12441247 xbox)
12451248 basic_machine=i686-pc
12461249 os=-mingw32
12491252 basic_machine=xps100-honeywell
12501253 ;;
12511254 xscale-* | xscalee[bl]-*)
1252 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1255 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
12531256 ;;
12541257 ymp)
12551258 basic_machine=ymp-cray
12561259 os=-unicos
1257 ;;
1258 z8k-*-coff)
1259 basic_machine=z8k-unknown
1260 os=-sim
1261 ;;
1262 z80-*-coff)
1263 basic_machine=z80-unknown
1264 os=-sim
12651260 ;;
12661261 none)
12671262 basic_machine=none-none
12911286 vax)
12921287 basic_machine=vax-dec
12931288 ;;
1294 pdp10)
1295 # there are many clones, so DEC is not a safe bet
1296 basic_machine=pdp10-unknown
1297 ;;
12981289 pdp11)
12991290 basic_machine=pdp11-dec
13001291 ;;
13041295 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
13051296 basic_machine=sh-unknown
13061297 ;;
1307 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1308 basic_machine=sparc-sun
1309 ;;
13101298 cydra)
13111299 basic_machine=cydra-cydrome
13121300 ;;
13261314 # Make sure to match an already-canonicalized machine name.
13271315 ;;
13281316 *)
1329 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1317 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
13301318 exit 1
13311319 ;;
13321320 esac
13341322 # Here we canonicalize certain aliases for manufacturers.
13351323 case $basic_machine in
13361324 *-digital*)
1337 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1325 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
13381326 ;;
13391327 *-commodore*)
1340 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1328 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
13411329 ;;
13421330 *)
13431331 ;;
13481336 if [ x"$os" != x"" ]
13491337 then
13501338 case $os in
1351 # First match some system type aliases
1352 # that might get confused with valid system types.
1339 # First match some system type aliases that might get confused
1340 # with valid system types.
13531341 # -solaris* is a basic system type, with this one exception.
13541342 -auroraux)
13551343 os=-auroraux
13601348 -solaris)
13611349 os=-solaris2
13621350 ;;
1363 -svr4*)
1364 os=-sysv4
1365 ;;
13661351 -unixware*)
13671352 os=-sysv4.2uw
13681353 ;;
13691354 -gnu/linux*)
13701355 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
13711356 ;;
1372 # First accept the basic system types.
1357 # es1800 is here to avoid being matched by es* (a different OS)
1358 -es1800*)
1359 os=-ose
1360 ;;
1361 # Now accept the basic system types.
13731362 # The portable systems comes first.
1374 # Each alternative MUST END IN A *, to match a version number.
1363 # Each alternative MUST end in a * to match a version number.
13751364 # -sysv* is not here because it comes later, after sysvr4.
13761365 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13771366 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
13811370 | -aos* | -aros* | -cloudabi* | -sortix* \
13821371 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13831372 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1384 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1385 | -bitrig* | -openbsd* | -solidbsd* \
1373 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1374 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
13861375 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13871376 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13881377 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13891378 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1390 | -chorusos* | -chorusrdb* | -cegcc* \
1379 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
13911380 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1392 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1381 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
13931382 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
13941383 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1395 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1384 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
13961385 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13971386 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13981387 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1399 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1388 | -morphos* | -superux* | -rtmk* | -windiss* \
14001389 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1401 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
1390 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1391 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1392 | -midnightbsd*)
14021393 # Remember, each alternative MUST END IN *, to match a version number.
14031394 ;;
14041395 -qnx*)
14151406 -nto*)
14161407 os=`echo $os | sed -e 's|nto|nto-qnx|'`
14171408 ;;
1418 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1419 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1409 -sim | -xray | -os68k* | -v88r* \
1410 | -windows* | -osx | -abug | -netware* | -os9* \
14201411 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
14211412 ;;
14221413 -mac*)
1423 os=`echo $os | sed -e 's|mac|macos|'`
1414 os=`echo "$os" | sed -e 's|mac|macos|'`
14241415 ;;
14251416 -linux-dietlibc)
14261417 os=-linux-dietlibc
14291420 os=`echo $os | sed -e 's|linux|linux-gnu|'`
14301421 ;;
14311422 -sunos5*)
1432 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1423 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
14331424 ;;
14341425 -sunos6*)
1435 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1426 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
14361427 ;;
14371428 -opened*)
14381429 os=-openedition
14431434 -wince*)
14441435 os=-wince
14451436 ;;
1446 -osfrose*)
1447 os=-osfrose
1448 ;;
1449 -osf*)
1450 os=-osf
1451 ;;
14521437 -utek*)
14531438 os=-bsd
14541439 ;;
14731458 -nova*)
14741459 os=-rtmk-nova
14751460 ;;
1476 -ns2 )
1461 -ns2)
14771462 os=-nextstep2
14781463 ;;
14791464 -nsk*)
14951480 -oss*)
14961481 os=-sysv3
14971482 ;;
1498 -svr4)
1483 -svr4*)
14991484 os=-sysv4
15001485 ;;
15011486 -svr3)
15101495 -ose*)
15111496 os=-ose
15121497 ;;
1513 -es1800*)
1514 os=-ose
1515 ;;
1516 -xenix)
1517 os=-xenix
1518 ;;
15191498 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
15201499 os=-mint
15211500 ;;
1522 -aros*)
1523 os=-aros
1524 ;;
15251501 -zvmoe)
15261502 os=-zvmoe
15271503 ;;
15281504 -dicos*)
15291505 os=-dicos
15301506 ;;
1507 -pikeos*)
1508 # Until real need of OS specific support for
1509 # particular features comes up, bare metal
1510 # configurations are quite functional.
1511 case $basic_machine in
1512 arm*)
1513 os=-eabi
1514 ;;
1515 *)
1516 os=-elf
1517 ;;
1518 esac
1519 ;;
15311520 -nacl*)
1521 ;;
1522 -ios)
15321523 ;;
15331524 -none)
15341525 ;;
15351526 *)
15361527 # Get rid of the `-' at the beginning of $os.
15371528 os=`echo $os | sed 's/[^-]*-//'`
1538 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1529 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
15391530 exit 1
15401531 ;;
15411532 esac
16251616 sparc-* | *-sun)
16261617 os=-sunos4.1.1
16271618 ;;
1619 pru-*)
1620 os=-elf
1621 ;;
16281622 *-be)
16291623 os=-beos
16301624 ;;
1631 *-haiku)
1632 os=-haiku
1633 ;;
16341625 *-ibm)
16351626 os=-aix
16361627 ;;
16701661 m88k-omron*)
16711662 os=-luna
16721663 ;;
1673 *-next )
1664 *-next)
16741665 os=-nextstep
16751666 ;;
16761667 *-sequent)
16841675 ;;
16851676 i370-*)
16861677 os=-mvs
1687 ;;
1688 *-next)
1689 os=-nextstep3
16901678 ;;
16911679 *-gould)
16921680 os=-sysv
17971785 vendor=stratus
17981786 ;;
17991787 esac
1800 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1788 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
18011789 ;;
18021790 esac
18031791
1804 echo $basic_machine$os
1792 echo "$basic_machine$os"
18051793 exit
18061794
18071795 # Local variables:
1808 # eval: (add-hook 'write-file-hooks 'time-stamp)
1796 # eval: (add-hook 'write-file-functions 'time-stamp)
18091797 # time-stamp-start: "timestamp='"
18101798 # time-stamp-format: "%:y-%02m-%02d"
18111799 # time-stamp-end: "'"
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for libgeotiff 1.6.0.
2 # Generated by GNU Autoconf 2.69 for libgeotiff 1.7.0.
33 #
44 # Report bugs to <warmerdam@pobox.com>.
55 #
589589 # Identity of this package.
590590 PACKAGE_NAME='libgeotiff'
591591 PACKAGE_TARNAME='libgeotiff'
592 PACKAGE_VERSION='1.6.0'
593 PACKAGE_STRING='libgeotiff 1.6.0'
592 PACKAGE_VERSION='1.7.0'
593 PACKAGE_STRING='libgeotiff 1.7.0'
594594 PACKAGE_BUGREPORT='warmerdam@pobox.com'
595595 PACKAGE_URL=''
596596
736736 AMDEPBACKSLASH
737737 AMDEP_FALSE
738738 AMDEP_TRUE
739 am__quote
740739 am__include
741740 DEPDIR
742741 OBJEXT
819818 PACKAGE_TARNAME
820819 PACKAGE_NAME
821820 PATH_SEPARATOR
822 SHELL'
821 SHELL
822 am__quote'
823823 ac_subst_files=''
824824 ac_user_opts='
825825 enable_option_checking
14211421 # Omit some internal or obsolete options to make the list less imposing.
14221422 # This message is too long to be a string in the A/UX 3.1 sh.
14231423 cat <<_ACEOF
1424 \`configure' configures libgeotiff 1.6.0 to adapt to many kinds of systems.
1424 \`configure' configures libgeotiff 1.7.0 to adapt to many kinds of systems.
14251425
14261426 Usage: $0 [OPTION]... [VAR=VALUE]...
14271427
14921492
14931493 if test -n "$ac_init_help"; then
14941494 case $ac_init_help in
1495 short | recursive ) echo "Configuration of libgeotiff 1.6.0:";;
1495 short | recursive ) echo "Configuration of libgeotiff 1.7.0:";;
14961496 esac
14971497 cat <<\_ACEOF
14981498
16381638 test -n "$ac_init_help" && exit $ac_status
16391639 if $ac_init_version; then
16401640 cat <<\_ACEOF
1641 libgeotiff configure 1.6.0
1641 libgeotiff configure 1.7.0
16421642 generated by GNU Autoconf 2.69
16431643
16441644 Copyright (C) 2012 Free Software Foundation, Inc.
20072007 This file contains any messages produced by compilers while
20082008 running configure, to aid debugging if configure makes a mistake.
20092009
2010 It was created by libgeotiff $as_me 1.6.0, which was
2010 It was created by libgeotiff $as_me 1.7.0, which was
20112011 generated by GNU Autoconf 2.69. Invocation command line was
20122012
20132013 $ $0 $@
24252425
24262426
24272427
2428 RELEASE_VERSION=1.6.0
2428 RELEASE_VERSION=1.7.0
24292429
24302430 ac_config_headers="$ac_config_headers geo_config.h"
24312431
24322432
24332433
2434 am__api_version='1.15'
2434 am__api_version='1.16'
24352435
24362436 # Find a good install program. We prefer a C program (faster),
24372437 # so one script is as good as another. But avoid the broken or
29172917
29182918 # Define the identity of the package.
29192919 PACKAGE='libgeotiff'
2920 VERSION='1.6.0'
2920 VERSION='1.7.0'
29212921
29222922
29232923 cat >>confdefs.h <<_ACEOF
29472947
29482948 # For better backward compatibility. To be removed once Automake 1.9.x
29492949 # dies out for good. For more background, see:
2950 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2951 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2950 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2951 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
29522952 mkdir_p='$(MKDIR_P)'
29532953
29542954 # We need awk for the "check" target (and possibly the TAP driver). The
29992999 Aborting the configuration process, to ensure you take notice of the issue.
30003000
30013001 You can download and install GNU coreutils to get an 'rm' implementation
3002 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3002 that behaves properly: <https://www.gnu.org/software/coreutils/>.
30033003
30043004 If you want to complete the configuration process using your problematic
30053005 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
38843884
38853885 ac_config_commands="$ac_config_commands depfiles"
38863886
3887
3888 am_make=${MAKE-make}
3889 cat > confinc << 'END'
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3888 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3889 cat > confinc.mk << 'END'
38903890 am__doit:
3891 @echo this is the am__doit target
3891 @echo this is the am__doit target >confinc.out
38923892 .PHONY: am__doit
38933893 END
3894 # If we don't find an include directive, just comment out the code.
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3896 $as_echo_n "checking for style of include used by $am_make... " >&6; }
38973894 am__include="#"
38983895 am__quote=
3899 _am_result=none
3900 # First try GNU make style include.
3901 echo "include confinc" > confmf
3902 # Ignore all kinds of additional output from 'make'.
3903 case `$am_make -s -f confmf 2> /dev/null` in #(
3904 *the\ am__doit\ target*)
3905 am__include=include
3906 am__quote=
3907 _am_result=GNU
3908 ;;
3896 # BSD make does it like this.
3897 echo '.include "confinc.mk" # ignored' > confmf.BSD
3898 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3899 echo 'include confinc.mk # ignored' > confmf.GNU
3900 _am_result=no
3901 for s in GNU BSD; do
3902 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3903 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3904 ac_status=$?
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }
3907 case $?:`cat confinc.out 2>/dev/null` in #(
3908 '0:this is the am__doit target') :
3909 case $s in #(
3910 BSD) :
3911 am__include='.include' am__quote='"' ;; #(
3912 *) :
3913 am__include='include' am__quote='' ;;
3914 esac ;; #(
3915 *) :
3916 ;;
39093917 esac
3910 # Now try BSD make style include.
3911 if test "$am__include" = "#"; then
3912 echo '.include "confinc"' > confmf
3913 case `$am_make -s -f confmf 2> /dev/null` in #(
3914 *the\ am__doit\ target*)
3915 am__include=.include
3916 am__quote="\""
3917 _am_result=BSD
3918 ;;
3919 esac
3920 fi
3921
3922
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3924 $as_echo "$_am_result" >&6; }
3925 rm -f confinc confmf
3918 if test "$am__include" != "#"; then
3919 _am_result="yes ($s style)"
3920 break
3921 fi
3922 done
3923 rm -f confinc.* confmf.*
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3925 $as_echo "${_am_result}" >&6; }
39263926
39273927 # Check whether --enable-dependency-tracking was given.
39283928 if test "${enable_dependency_tracking+set}" = set; then :
57385738 fi
57395739
57405740 : ${AR=ar}
5741 : ${AR_FLAGS=cru}
5741 : ${AR_FLAGS=cr}
57425742
57435743
57445744
62396239 test $ac_status = 0; }; then
62406240 # Now try to grab the symbols.
62416241 nlist=conftest.nm
6242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6243 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6244 ac_status=$?
6245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6246 test $ac_status = 0; } && test -s "$nlist"; then
6242 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6243 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
62476244 # Try sorting and uniquifying the output.
62486245 if sort "$nlist" | uniq > "$nlist"T; then
62496246 mv -f "$nlist"T "$nlist"
74627459 _LT_EOF
74637460 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
74647461 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7465 echo "$AR cru libconftest.a conftest.o" >&5
7466 $AR cru libconftest.a conftest.o 2>&5
7462 echo "$AR cr libconftest.a conftest.o" >&5
7463 $AR cr libconftest.a conftest.o 2>&5
74677464 echo "$RANLIB libconftest.a" >&5
74687465 $RANLIB libconftest.a 2>&5
74697466 cat > conftest.c << _LT_EOF
85908587 ecc*)
85918588 lt_prog_compiler_wl='-Wl,'
85928589 lt_prog_compiler_pic='-KPIC'
8590 lt_prog_compiler_static='-static'
8591 ;;
8592 # flang / f18. f95 an alias for gfortran or flang on Debian
8593 flang* | f18* | f95*)
8594 lt_prog_compiler_wl='-Wl,'
8595 lt_prog_compiler_pic='-fPIC'
85938596 lt_prog_compiler_static='-static'
85948597 ;;
85958598 # icc used to be incompatible with GCC.
1617616179 # report actual input values of CONFIG_FILES etc. instead of their
1617716180 # values after options handling.
1617816181 ac_log="
16179 This file was extended by libgeotiff $as_me 1.6.0, which was
16182 This file was extended by libgeotiff $as_me 1.7.0, which was
1618016183 generated by GNU Autoconf 2.69. Invocation command line was
1618116184
1618216185 CONFIG_FILES = $CONFIG_FILES
1624216245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1624316246 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1624416247 ac_cs_version="\\
16245 libgeotiff config.status 1.6.0
16248 libgeotiff config.status 1.7.0
1624616249 configured by $0, generated by GNU Autoconf 2.69,
1624716250 with options \\"\$ac_cs_config\\"
1624816251
1636116364 #
1636216365 # INIT-COMMANDS
1636316366 #
16364 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16367 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1636516368
1636616369
1636716370 # The HP-UX ksh and POSIX shell print the target directory to stdout
1726317266 # Older Autoconf quotes --file arguments for eval, but not when files
1726417267 # are listed without --file. Let's play safe and only enable the eval
1726517268 # if we detect the quoting.
17266 case $CONFIG_FILES in
17267 *\'*) eval set x "$CONFIG_FILES" ;;
17268 *) set x $CONFIG_FILES ;;
17269 esac
17269 # TODO: see whether this extra hack can be removed once we start
17270 # requiring Autoconf 2.70 or later.
17271 case $CONFIG_FILES in #(
17272 *\'*) :
17273 eval set x "$CONFIG_FILES" ;; #(
17274 *) :
17275 set x $CONFIG_FILES ;; #(
17276 *) :
17277 ;;
17278 esac
1727017279 shift
17271 for mf
17280 # Used to flag and report bootstrapping failures.
17281 am_rc=0
17282 for am_mf
1727217283 do
1727317284 # Strip MF so we end up with the name of the file.
17274 mf=`echo "$mf" | sed -e 's/:.*$//'`
17275 # Check whether this is an Automake generated Makefile or not.
17276 # We used to match only the files named 'Makefile.in', but
17277 # some people rename them; so instead we look at the file content.
17278 # Grep'ing the first line is not enough: some people post-process
17279 # each Makefile.in and add a new line on top of each file to say so.
17280 # Grep'ing the whole file is not good either: AIX grep has a line
17285 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17286 # Check whether this is an Automake generated Makefile which includes
17287