Codebase list sludge / 5f7af02
Import upstream version 2.2.2+git20220114.1.2ab8eb3 Debian Janitor 1 year, 6 months ago
23 changed file(s) with 7303 addition(s) and 2658 deletion(s). Raw diff Collapse all Expand all
2424 #include <glib-object.h>
2525 #include <glib.h>
2626
27 #define GL_GLEXT_PROTOTYPES
2728 #include <GL/glew.h>
28 #define GL_GLEXT_PROTOTYPES
29 #include <GL/gl.h>
30 #include <GL/glu.h>
31 #include <GL/glext.h>
3229
3330 #include <errno.h>
3431 #include <sys/types.h>
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
8686 NORMAL_UNINSTALL = :
8787 PRE_UNINSTALL = :
8888 POST_UNINSTALL = :
89 build_triplet = @build@
90 host_triplet = @host@
8991 bin_PROGRAMS = sludge-floormaker$(EXEEXT) sludge-zbuffermaker$(EXEEXT) \
9092 sludge-spritebankeditor$(EXEEXT) \
9193 sludge-translationeditor$(EXEEXT) \
229231 am__v_at_1 =
230232 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
231233 depcomp = $(SHELL) $(top_srcdir)/depcomp
232 am__depfiles_maybe = depfiles
234 am__maybe_remake_depfiles = depfiles
235 am__depfiles_remade = ../source/CommonCode/$(DEPDIR)/tga.Po \
236 ../source/CommonCode/$(DEPDIR)/utf8.Po \
237 ../source/DevKit/Common/$(DEPDIR)/helpers.Po \
238 ../source/DevKit/Common/$(DEPDIR)/moreio.Po \
239 ../source/DevKit/Common/$(DEPDIR)/stringarray.Po \
240 ../source/DevKit/Compiler/$(DEPDIR)/allknown.Po \
241 ../source/DevKit/Compiler/$(DEPDIR)/checkused.Po \
242 ../source/DevKit/Compiler/$(DEPDIR)/compiler.Po \
243 ../source/DevKit/Compiler/$(DEPDIR)/compilerinfo.Po \
244 ../source/DevKit/Compiler/$(DEPDIR)/dumpfiles.Po \
245 ../source/DevKit/Compiler/$(DEPDIR)/floor.Po \
246 ../source/DevKit/Compiler/$(DEPDIR)/hsi.Po \
247 ../source/DevKit/Compiler/$(DEPDIR)/linker.Po \
248 ../source/DevKit/Compiler/$(DEPDIR)/objtype.Po \
249 ../source/DevKit/Compiler/$(DEPDIR)/preproc.Po \
250 ../source/DevKit/Compiler/$(DEPDIR)/realproc.Po \
251 ../source/DevKit/Compiler/$(DEPDIR)/sludge_functions.Po \
252 ../source/DevKit/Compiler/$(DEPDIR)/splitter.Po \
253 ../source/DevKit/Compiler/$(DEPDIR)/tokens.Po \
254 ../source/DevKit/Compiler/$(DEPDIR)/translation.Po \
255 ../source/DevKit/GraphicalTools/$(DEPDIR)/floormaker.Po \
256 ../source/DevKit/GraphicalTools/$(DEPDIR)/sprites.Po \
257 ../source/DevKit/GraphicalTools/$(DEPDIR)/zbuffer.Po \
258 ../source/DevKit/ProjectManager/$(DEPDIR)/messbox.Po \
259 ../source/DevKit/ProjectManager/$(DEPDIR)/project.Po \
260 ../source/DevKit/ProjectManager/$(DEPDIR)/settings.Po \
261 ../source/DevKit/TranslationEditor/$(DEPDIR)/translator.Po \
262 ./$(DEPDIR)/Common.Po ./$(DEPDIR)/CompilerMain.Po \
263 ./$(DEPDIR)/FloorMakerMain.Po \
264 ./$(DEPDIR)/ProjectManagerMain.Po \
265 ./$(DEPDIR)/SludgeApplication.Po \
266 ./$(DEPDIR)/SludgeFloorMaker.Po \
267 ./$(DEPDIR)/SludgeGLApplication.Po \
268 ./$(DEPDIR)/SludgeProjectManager.Po \
269 ./$(DEPDIR)/SludgeSpriteBankEditor.Po \
270 ./$(DEPDIR)/SludgeTranslationEditor.Po \
271 ./$(DEPDIR)/SludgeZBufferMaker.Po \
272 ./$(DEPDIR)/SpriteBankEditorMain.Po \
273 ./$(DEPDIR)/TranslationEditorMain.Po \
274 ./$(DEPDIR)/ZBufferMakerMain.Po
233275 am__mv = mv -f
234276 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
235277 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
314356 $(RECURSIVE_CLEAN_TARGETS) \
315357 $(am__extra_recursive_targets)
316358 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
317 distdir
359 distdir distdir-am
318360 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
319361 # Read a list of newline-separated strings from the standard input,
320362 # and print each of them once, without duplicates. Input order is
332374 unique=`for i in $$list; do \
333375 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334376 done | $(am__uniquify_input)`
335 ETAGS = etags
336 CTAGS = ctags
337377 DIST_SUBDIRS = $(SUBDIRS)
338378 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
339379 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
372412 CC = @CC@
373413 CCDEPMODE = @CCDEPMODE@
374414 CFLAGS = @CFLAGS@
375 CPP = @CPP@
376415 CPPFLAGS = @CPPFLAGS@
416 CSCOPE = @CSCOPE@
417 CTAGS = @CTAGS@
377418 CXX = @CXX@
378419 CXXDEPMODE = @CXXDEPMODE@
379420 CXXFLAGS = @CXXFLAGS@
383424 ECHO_C = @ECHO_C@
384425 ECHO_N = @ECHO_N@
385426 ECHO_T = @ECHO_T@
386 EGREP = @EGREP@
387427 ENGINE_CFLAGS = @ENGINE_CFLAGS@
388428 ENGINE_LIBS = @ENGINE_LIBS@
429 ETAGS = @ETAGS@
389430 EXEEXT = @EXEEXT@
390431 GLEW_CFLAGS = @GLEW_CFLAGS@
391432 GLEW_LIBS = @GLEW_LIBS@
393434 GLIB_LIBS = @GLIB_LIBS@
394435 GL_CFLAGS = @GL_CFLAGS@
395436 GL_LIBS = @GL_LIBS@
396 GREP = @GREP@
397437 GTK_CFLAGS = @GTK_CFLAGS@
398438 GTK_LIBS = @GTK_LIBS@
399439 INSTALL = @INSTALL@
437477 am__tar = @am__tar@
438478 am__untar = @am__untar@
439479 bindir = @bindir@
480 build = @build@
440481 build_alias = @build_alias@
482 build_cpu = @build_cpu@
483 build_os = @build_os@
484 build_vendor = @build_vendor@
441485 builddir = @builddir@
442486 datadir = @datadir@
443487 datarootdir = @datarootdir@
444488 docdir = @docdir@
445489 dvidir = @dvidir@
446490 exec_prefix = @exec_prefix@
491 host = @host@
447492 host_alias = @host_alias@
493 host_cpu = @host_cpu@
494 host_os = @host_os@
495 host_vendor = @host_vendor@
448496 htmldir = @htmldir@
449497 includedir = @includedir@
450498 infodir = @infodir@
653701 *config.status*) \
654702 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
655703 *) \
656 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
657 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
704 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
705 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
658706 esac;
659707
660708 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
861909 distclean-compile:
862910 -rm -f *.tab.c
863911
864 @AMDEP_TRUE@@am__include@ @am__quote@../source/CommonCode/$(DEPDIR)/tga.Po@am__quote@
865 @AMDEP_TRUE@@am__include@ @am__quote@../source/CommonCode/$(DEPDIR)/utf8.Po@am__quote@
866 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Common/$(DEPDIR)/helpers.Po@am__quote@
867 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Common/$(DEPDIR)/moreio.Po@am__quote@
868 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Common/$(DEPDIR)/stringarray.Po@am__quote@
869 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/allknown.Po@am__quote@
870 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/checkused.Po@am__quote@
871 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/compiler.Po@am__quote@
872 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/compilerinfo.Po@am__quote@
873 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/dumpfiles.Po@am__quote@
874 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/floor.Po@am__quote@
875 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/hsi.Po@am__quote@
876 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/linker.Po@am__quote@
877 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/objtype.Po@am__quote@
878 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/preproc.Po@am__quote@
879 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/realproc.Po@am__quote@
880 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/sludge_functions.Po@am__quote@
881 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/splitter.Po@am__quote@
882 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/tokens.Po@am__quote@
883 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/translation.Po@am__quote@
884 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/GraphicalTools/$(DEPDIR)/floormaker.Po@am__quote@
885 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/GraphicalTools/$(DEPDIR)/sprites.Po@am__quote@
886 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/GraphicalTools/$(DEPDIR)/zbuffer.Po@am__quote@
887 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/ProjectManager/$(DEPDIR)/messbox.Po@am__quote@
888 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/ProjectManager/$(DEPDIR)/project.Po@am__quote@
889 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/ProjectManager/$(DEPDIR)/settings.Po@am__quote@
890 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/TranslationEditor/$(DEPDIR)/translator.Po@am__quote@
891 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Common.Po@am__quote@
892 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CompilerMain.Po@am__quote@
893 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/FloorMakerMain.Po@am__quote@
894 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ProjectManagerMain.Po@am__quote@
895 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeApplication.Po@am__quote@
896 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeFloorMaker.Po@am__quote@
897 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeGLApplication.Po@am__quote@
898 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeProjectManager.Po@am__quote@
899 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeSpriteBankEditor.Po@am__quote@
900 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeTranslationEditor.Po@am__quote@
901 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeZBufferMaker.Po@am__quote@
902 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SpriteBankEditorMain.Po@am__quote@
903 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TranslationEditorMain.Po@am__quote@
904 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ZBufferMakerMain.Po@am__quote@
912 @AMDEP_TRUE@@am__include@ @am__quote@../source/CommonCode/$(DEPDIR)/tga.Po@am__quote@ # am--include-marker
913 @AMDEP_TRUE@@am__include@ @am__quote@../source/CommonCode/$(DEPDIR)/utf8.Po@am__quote@ # am--include-marker
914 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Common/$(DEPDIR)/helpers.Po@am__quote@ # am--include-marker
915 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Common/$(DEPDIR)/moreio.Po@am__quote@ # am--include-marker
916 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Common/$(DEPDIR)/stringarray.Po@am__quote@ # am--include-marker
917 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/allknown.Po@am__quote@ # am--include-marker
918 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/checkused.Po@am__quote@ # am--include-marker
919 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/compiler.Po@am__quote@ # am--include-marker
920 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/compilerinfo.Po@am__quote@ # am--include-marker
921 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/dumpfiles.Po@am__quote@ # am--include-marker
922 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/floor.Po@am__quote@ # am--include-marker
923 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/hsi.Po@am__quote@ # am--include-marker
924 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/linker.Po@am__quote@ # am--include-marker
925 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/objtype.Po@am__quote@ # am--include-marker
926 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/preproc.Po@am__quote@ # am--include-marker
927 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/realproc.Po@am__quote@ # am--include-marker
928 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/sludge_functions.Po@am__quote@ # am--include-marker
929 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/splitter.Po@am__quote@ # am--include-marker
930 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/tokens.Po@am__quote@ # am--include-marker
931 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/Compiler/$(DEPDIR)/translation.Po@am__quote@ # am--include-marker
932 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/GraphicalTools/$(DEPDIR)/floormaker.Po@am__quote@ # am--include-marker
933 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/GraphicalTools/$(DEPDIR)/sprites.Po@am__quote@ # am--include-marker
934 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/GraphicalTools/$(DEPDIR)/zbuffer.Po@am__quote@ # am--include-marker
935 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/ProjectManager/$(DEPDIR)/messbox.Po@am__quote@ # am--include-marker
936 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/ProjectManager/$(DEPDIR)/project.Po@am__quote@ # am--include-marker
937 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/ProjectManager/$(DEPDIR)/settings.Po@am__quote@ # am--include-marker
938 @AMDEP_TRUE@@am__include@ @am__quote@../source/DevKit/TranslationEditor/$(DEPDIR)/translator.Po@am__quote@ # am--include-marker
939 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Common.Po@am__quote@ # am--include-marker
940 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CompilerMain.Po@am__quote@ # am--include-marker
941 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/FloorMakerMain.Po@am__quote@ # am--include-marker
942 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ProjectManagerMain.Po@am__quote@ # am--include-marker
943 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeApplication.Po@am__quote@ # am--include-marker
944 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeFloorMaker.Po@am__quote@ # am--include-marker
945 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeGLApplication.Po@am__quote@ # am--include-marker
946 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeProjectManager.Po@am__quote@ # am--include-marker
947 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeSpriteBankEditor.Po@am__quote@ # am--include-marker
948 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeTranslationEditor.Po@am__quote@ # am--include-marker
949 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SludgeZBufferMaker.Po@am__quote@ # am--include-marker
950 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SpriteBankEditorMain.Po@am__quote@ # am--include-marker
951 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TranslationEditorMain.Po@am__quote@ # am--include-marker
952 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ZBufferMakerMain.Po@am__quote@ # am--include-marker
953
954 $(am__depfiles_remade):
955 @$(MKDIR_P) $(@D)
956 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
957
958 am--depfiles: $(am__depfiles_remade)
905959
906960 .cpp.o:
907961 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
10381092
10391093 distclean-tags:
10401094 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1041
1042 distdir: $(DISTFILES)
1095 distdir: $(BUILT_SOURCES)
1096 $(MAKE) $(AM_MAKEFLAGS) distdir-am
1097
1098 distdir-am: $(DISTFILES)
10431099 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
10441100 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
10451101 list='$(DISTFILES)'; \
11491205 clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
11501206
11511207 distclean: distclean-recursive
1152 -rm -rf ../source/CommonCode/$(DEPDIR) ../source/DevKit/Common/$(DEPDIR) ../source/DevKit/Compiler/$(DEPDIR) ../source/DevKit/GraphicalTools/$(DEPDIR) ../source/DevKit/ProjectManager/$(DEPDIR) ../source/DevKit/TranslationEditor/$(DEPDIR) ./$(DEPDIR)
1208 -rm -f ../source/CommonCode/$(DEPDIR)/tga.Po
1209 -rm -f ../source/CommonCode/$(DEPDIR)/utf8.Po
1210 -rm -f ../source/DevKit/Common/$(DEPDIR)/helpers.Po
1211 -rm -f ../source/DevKit/Common/$(DEPDIR)/moreio.Po
1212 -rm -f ../source/DevKit/Common/$(DEPDIR)/stringarray.Po
1213 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/allknown.Po
1214 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/checkused.Po
1215 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/compiler.Po
1216 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/compilerinfo.Po
1217 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/dumpfiles.Po
1218 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/floor.Po
1219 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/hsi.Po
1220 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/linker.Po
1221 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/objtype.Po
1222 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/preproc.Po
1223 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/realproc.Po
1224 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/sludge_functions.Po
1225 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/splitter.Po
1226 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/tokens.Po
1227 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/translation.Po
1228 -rm -f ../source/DevKit/GraphicalTools/$(DEPDIR)/floormaker.Po
1229 -rm -f ../source/DevKit/GraphicalTools/$(DEPDIR)/sprites.Po
1230 -rm -f ../source/DevKit/GraphicalTools/$(DEPDIR)/zbuffer.Po
1231 -rm -f ../source/DevKit/ProjectManager/$(DEPDIR)/messbox.Po
1232 -rm -f ../source/DevKit/ProjectManager/$(DEPDIR)/project.Po
1233 -rm -f ../source/DevKit/ProjectManager/$(DEPDIR)/settings.Po
1234 -rm -f ../source/DevKit/TranslationEditor/$(DEPDIR)/translator.Po
1235 -rm -f ./$(DEPDIR)/Common.Po
1236 -rm -f ./$(DEPDIR)/CompilerMain.Po
1237 -rm -f ./$(DEPDIR)/FloorMakerMain.Po
1238 -rm -f ./$(DEPDIR)/ProjectManagerMain.Po
1239 -rm -f ./$(DEPDIR)/SludgeApplication.Po
1240 -rm -f ./$(DEPDIR)/SludgeFloorMaker.Po
1241 -rm -f ./$(DEPDIR)/SludgeGLApplication.Po
1242 -rm -f ./$(DEPDIR)/SludgeProjectManager.Po
1243 -rm -f ./$(DEPDIR)/SludgeSpriteBankEditor.Po
1244 -rm -f ./$(DEPDIR)/SludgeTranslationEditor.Po
1245 -rm -f ./$(DEPDIR)/SludgeZBufferMaker.Po
1246 -rm -f ./$(DEPDIR)/SpriteBankEditorMain.Po
1247 -rm -f ./$(DEPDIR)/TranslationEditorMain.Po
1248 -rm -f ./$(DEPDIR)/ZBufferMakerMain.Po
11531249 -rm -f Makefile
11541250 distclean-am: clean-am distclean-compile distclean-generic \
11551251 distclean-tags
11951291 installcheck-am:
11961292
11971293 maintainer-clean: maintainer-clean-recursive
1198 -rm -rf ../source/CommonCode/$(DEPDIR) ../source/DevKit/Common/$(DEPDIR) ../source/DevKit/Compiler/$(DEPDIR) ../source/DevKit/GraphicalTools/$(DEPDIR) ../source/DevKit/ProjectManager/$(DEPDIR) ../source/DevKit/TranslationEditor/$(DEPDIR) ./$(DEPDIR)
1294 -rm -f ../source/CommonCode/$(DEPDIR)/tga.Po
1295 -rm -f ../source/CommonCode/$(DEPDIR)/utf8.Po
1296 -rm -f ../source/DevKit/Common/$(DEPDIR)/helpers.Po
1297 -rm -f ../source/DevKit/Common/$(DEPDIR)/moreio.Po
1298 -rm -f ../source/DevKit/Common/$(DEPDIR)/stringarray.Po
1299 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/allknown.Po
1300 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/checkused.Po
1301 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/compiler.Po
1302 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/compilerinfo.Po
1303 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/dumpfiles.Po
1304 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/floor.Po
1305 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/hsi.Po
1306 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/linker.Po
1307 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/objtype.Po
1308 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/preproc.Po
1309 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/realproc.Po
1310 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/sludge_functions.Po
1311 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/splitter.Po
1312 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/tokens.Po
1313 -rm -f ../source/DevKit/Compiler/$(DEPDIR)/translation.Po
1314 -rm -f ../source/DevKit/GraphicalTools/$(DEPDIR)/floormaker.Po
1315 -rm -f ../source/DevKit/GraphicalTools/$(DEPDIR)/sprites.Po
1316 -rm -f ../source/DevKit/GraphicalTools/$(DEPDIR)/zbuffer.Po
1317 -rm -f ../source/DevKit/ProjectManager/$(DEPDIR)/messbox.Po
1318 -rm -f ../source/DevKit/ProjectManager/$(DEPDIR)/project.Po
1319 -rm -f ../source/DevKit/ProjectManager/$(DEPDIR)/settings.Po
1320 -rm -f ../source/DevKit/TranslationEditor/$(DEPDIR)/translator.Po
1321 -rm -f ./$(DEPDIR)/Common.Po
1322 -rm -f ./$(DEPDIR)/CompilerMain.Po
1323 -rm -f ./$(DEPDIR)/FloorMakerMain.Po
1324 -rm -f ./$(DEPDIR)/ProjectManagerMain.Po
1325 -rm -f ./$(DEPDIR)/SludgeApplication.Po
1326 -rm -f ./$(DEPDIR)/SludgeFloorMaker.Po
1327 -rm -f ./$(DEPDIR)/SludgeGLApplication.Po
1328 -rm -f ./$(DEPDIR)/SludgeProjectManager.Po
1329 -rm -f ./$(DEPDIR)/SludgeSpriteBankEditor.Po
1330 -rm -f ./$(DEPDIR)/SludgeTranslationEditor.Po
1331 -rm -f ./$(DEPDIR)/SludgeZBufferMaker.Po
1332 -rm -f ./$(DEPDIR)/SpriteBankEditorMain.Po
1333 -rm -f ./$(DEPDIR)/TranslationEditorMain.Po
1334 -rm -f ./$(DEPDIR)/ZBufferMakerMain.Po
11991335 -rm -f Makefile
12001336 maintainer-clean-am: distclean-am maintainer-clean-generic
12011337
12151351
12161352 .MAKE: $(am__recursive_targets) install-am install-strip
12171353
1218 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
1219 check-am clean clean-binPROGRAMS clean-generic cscopelist-am \
1220 ctags ctags-am distclean distclean-compile distclean-generic \
1221 distclean-tags distdir dvi dvi-am html html-am info info-am \
1222 install install-am install-binPROGRAMS install-data \
1223 install-data-am install-dist_pkgdataDATA install-dvi \
1224 install-dvi-am install-exec install-exec-am install-html \
1225 install-html-am install-info install-info-am install-man \
1226 install-pdf install-pdf-am install-ps install-ps-am \
1227 install-strip installcheck installcheck-am installdirs \
1228 installdirs-am maintainer-clean maintainer-clean-generic \
1229 mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
1230 ps ps-am tags tags-am uninstall uninstall-am \
1231 uninstall-binPROGRAMS uninstall-dist_pkgdataDATA
1354 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
1355 am--depfiles check check-am clean clean-binPROGRAMS \
1356 clean-generic cscopelist-am ctags ctags-am distclean \
1357 distclean-compile distclean-generic distclean-tags distdir dvi \
1358 dvi-am html html-am info info-am install install-am \
1359 install-binPROGRAMS install-data install-data-am \
1360 install-dist_pkgdataDATA install-dvi install-dvi-am \
1361 install-exec install-exec-am install-html install-html-am \
1362 install-info install-info-am install-man install-pdf \
1363 install-pdf-am install-ps install-ps-am install-strip \
1364 installcheck installcheck-am installdirs installdirs-am \
1365 maintainer-clean maintainer-clean-generic mostlyclean \
1366 mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
1367 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \
1368 uninstall-dist_pkgdataDATA
12321369
12331370 .PRECIOUS: Makefile
12341371
2424 #include <glib-object.h>
2525 #include <glib.h>
2626
27 #define GL_GLEXT_PROTOTYPES
2728 #include <GL/glew.h>
28 #define GL_GLEXT_PROTOTYPES
29 #include <GL/gl.h>
30 #include <GL/glu.h>
31 #include <GL/glext.h>
3229
3330 #include <errno.h>
3431 #include <sys/types.h>
2424 #include <glib-object.h>
2525 #include <glib.h>
2626
27 #define GL_GLEXT_PROTOTYPES
2728 #include <GL/glew.h>
28 #define GL_GLEXT_PROTOTYPES
29 #include <GL/gl.h>
30 #include <GL/glu.h>
31 #include <GL/glext.h>
3229
3330 #include <errno.h>
3431 #include <sys/types.h>
5959 numResources = 0;
6060 resourceList[0] = NULL;
6161 fileList[0] = NULL;
62 fileListNum = 0;
6263
6364 filesListStore = NULL;
6465 resourcesListStore = NULL;
2424 #include <glib-object.h>
2525 #include <glib.h>
2626
27 #define GL_GLEXT_PROTOTYPES
2728 #include <GL/glew.h>
28 #define GL_GLEXT_PROTOTYPES
29 #include <GL/gl.h>
30 #include <GL/glu.h>
31 #include <GL/glext.h>
3229
3330 #include <errno.h>
3431 #include <sys/types.h>
2424 #include <glib-object.h>
2525 #include <glib.h>
2626
27 #define GL_GLEXT_PROTOTYPES
2728 #include <GL/glew.h>
28 #define GL_GLEXT_PROTOTYPES
29 #include <GL/gl.h>
30 #include <GL/glu.h>
31 #include <GL/glext.h>
3229
3330 #include <errno.h>
3431 #include <sys/types.h>
2424 #include <glib-object.h>
2525 #include <glib.h>
2626
27 #define GL_GLEXT_PROTOTYPES
2728 #include <GL/glew.h>
28 #define GL_GLEXT_PROTOTYPES
29 #include <GL/gl.h>
30 #include <GL/glu.h>
31 #include <GL/glext.h>
3229
3330 #include <errno.h>
3431 #include <sys/types.h>
2424 #include <glib-object.h>
2525 #include <glib.h>
2626
27 #define GL_GLEXT_PROTOTYPES
2728 #include <GL/glew.h>
28 #define GL_GLEXT_PROTOTYPES
29 #include <GL/gl.h>
30 #include <GL/glu.h>
31 #include <GL/glext.h>
3229
3330 #include <errno.h>
3431 #include <sys/types.h>
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
8585 NORMAL_UNINSTALL = :
8686 PRE_UNINSTALL = :
8787 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
8890 subdir = GTK_Dev_Kit/support
8991 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
9092 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
159161 CC = @CC@
160162 CCDEPMODE = @CCDEPMODE@
161163 CFLAGS = @CFLAGS@
162 CPP = @CPP@
163164 CPPFLAGS = @CPPFLAGS@
165 CSCOPE = @CSCOPE@
166 CTAGS = @CTAGS@
164167 CXX = @CXX@
165168 CXXDEPMODE = @CXXDEPMODE@
166169 CXXFLAGS = @CXXFLAGS@
170173 ECHO_C = @ECHO_C@
171174 ECHO_N = @ECHO_N@
172175 ECHO_T = @ECHO_T@
173 EGREP = @EGREP@
174176 ENGINE_CFLAGS = @ENGINE_CFLAGS@
175177 ENGINE_LIBS = @ENGINE_LIBS@
178 ETAGS = @ETAGS@
176179 EXEEXT = @EXEEXT@
177180 GLEW_CFLAGS = @GLEW_CFLAGS@
178181 GLEW_LIBS = @GLEW_LIBS@
180183 GLIB_LIBS = @GLIB_LIBS@
181184 GL_CFLAGS = @GL_CFLAGS@
182185 GL_LIBS = @GL_LIBS@
183 GREP = @GREP@
184186 GTK_CFLAGS = @GTK_CFLAGS@
185187 GTK_LIBS = @GTK_LIBS@
186188 INSTALL = @INSTALL@
224226 am__tar = @am__tar@
225227 am__untar = @am__untar@
226228 bindir = @bindir@
229 build = @build@
227230 build_alias = @build_alias@
231 build_cpu = @build_cpu@
232 build_os = @build_os@
233 build_vendor = @build_vendor@
228234 builddir = @builddir@
229235 datadir = @datadir@
230236 datarootdir = @datarootdir@
231237 docdir = @docdir@
232238 dvidir = @dvidir@
233239 exec_prefix = @exec_prefix@
240 host = @host@
234241 host_alias = @host_alias@
242 host_cpu = @host_cpu@
243 host_os = @host_os@
244 host_vendor = @host_vendor@
235245 htmldir = @htmldir@
236246 includedir = @includedir@
237247 infodir = @infodir@
395405 *config.status*) \
396406 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
397407 *) \
398 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
399 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
408 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
409 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
400410 esac;
401411
402412 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
500510
501511 cscope cscopelist:
502512
503
504 distdir: $(DISTFILES)
513 distdir: $(BUILT_SOURCES)
514 $(MAKE) $(AM_MAKEFLAGS) distdir-am
515
516 distdir-am: $(DISTFILES)
505517 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
506518 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
507519 list='$(DISTFILES)'; \
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
8585 NORMAL_UNINSTALL = :
8686 PRE_UNINSTALL = :
8787 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
8890 subdir = .
8991 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
9092 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
161163 $(RECURSIVE_CLEAN_TARGETS) \
162164 $(am__extra_recursive_targets)
163165 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
164 cscope distdir dist dist-all distcheck
165 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
166 $(LISP)config.h.in
166 cscope distdir distdir-am dist dist-all distcheck
167 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
168 config.h.in
167169 # Read a list of newline-separated strings from the standard input,
168170 # and print each of them once, without duplicates. Input order is
169171 # *not* preserved.
180182 unique=`for i in $$list; do \
181183 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
182184 done | $(am__uniquify_input)`
183 ETAGS = etags
184 CTAGS = ctags
185 CSCOPE = cscope
186185 DIST_SUBDIRS = source GTK_Dev_Kit doc
187186 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in AUTHORS \
188 COPYING ChangeLog INSTALL NEWS README compile depcomp \
189 install-sh missing
187 COPYING ChangeLog INSTALL NEWS README compile config.guess \
188 config.sub depcomp install-sh missing
190189 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
191190 distdir = $(PACKAGE)-$(VERSION)
192191 top_distdir = $(distdir)
225224 DIST_ARCHIVES = $(distdir).tar.gz
226225 GZIP_ENV = --best
227226 DIST_TARGETS = dist-gzip
227 # Exists only to be overridden by the user if desired.
228 AM_DISTCHECK_DVI_TARGET = dvi
228229 distuninstallcheck_listfiles = find . -type f -print
229230 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
230231 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
239240 CC = @CC@
240241 CCDEPMODE = @CCDEPMODE@
241242 CFLAGS = @CFLAGS@
242 CPP = @CPP@
243243 CPPFLAGS = @CPPFLAGS@
244 CSCOPE = @CSCOPE@
245 CTAGS = @CTAGS@
244246 CXX = @CXX@
245247 CXXDEPMODE = @CXXDEPMODE@
246248 CXXFLAGS = @CXXFLAGS@
250252 ECHO_C = @ECHO_C@
251253 ECHO_N = @ECHO_N@
252254 ECHO_T = @ECHO_T@
253 EGREP = @EGREP@
254255 ENGINE_CFLAGS = @ENGINE_CFLAGS@
255256 ENGINE_LIBS = @ENGINE_LIBS@
257 ETAGS = @ETAGS@
256258 EXEEXT = @EXEEXT@
257259 GLEW_CFLAGS = @GLEW_CFLAGS@
258260 GLEW_LIBS = @GLEW_LIBS@
260262 GLIB_LIBS = @GLIB_LIBS@
261263 GL_CFLAGS = @GL_CFLAGS@
262264 GL_LIBS = @GL_LIBS@
263 GREP = @GREP@
264265 GTK_CFLAGS = @GTK_CFLAGS@
265266 GTK_LIBS = @GTK_LIBS@
266267 INSTALL = @INSTALL@
304305 am__tar = @am__tar@
305306 am__untar = @am__untar@
306307 bindir = @bindir@
308 build = @build@
307309 build_alias = @build_alias@
310 build_cpu = @build_cpu@
311 build_os = @build_os@
312 build_vendor = @build_vendor@
308313 builddir = @builddir@
309314 datadir = @datadir@
310315 datarootdir = @datarootdir@
311316 docdir = @docdir@
312317 dvidir = @dvidir@
313318 exec_prefix = @exec_prefix@
319 host = @host@
314320 host_alias = @host_alias@
321 host_cpu = @host_cpu@
322 host_os = @host_os@
323 host_vendor = @host_vendor@
315324 htmldir = @htmldir@
316325 includedir = @includedir@
317326 infodir = @infodir@
367376 echo ' $(SHELL) ./config.status'; \
368377 $(SHELL) ./config.status;; \
369378 *) \
370 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
371 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
379 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
380 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
372381 esac;
373382
374383 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
521530 distclean-tags:
522531 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
523532 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
524
525 distdir: $(DISTFILES)
533 distdir: $(BUILT_SOURCES)
534 $(MAKE) $(AM_MAKEFLAGS) distdir-am
535
536 distdir-am: $(DISTFILES)
526537 $(am__remove_distdir)
527538 test -d "$(distdir)" || mkdir "$(distdir)"
528539 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
587598 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
588599 || chmod -R a+r "$(distdir)"
589600 dist-gzip: distdir
590 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
601 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
591602 $(am__post_remove_distdir)
592603
593604 dist-bzip2: distdir
600611
601612 dist-xz: distdir
602613 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
614 $(am__post_remove_distdir)
615
616 dist-zstd: distdir
617 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
603618 $(am__post_remove_distdir)
604619
605620 dist-tarZ: distdir
613628 @echo WARNING: "Support for shar distribution archives is" \
614629 "deprecated." >&2
615630 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
616 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
631 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
617632 $(am__post_remove_distdir)
618633
619634 dist-zip: distdir
631646 distcheck: dist
632647 case '$(DIST_ARCHIVES)' in \
633648 *.tar.gz*) \
634 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
649 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
635650 *.tar.bz2*) \
636651 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
637652 *.tar.lz*) \
641656 *.tar.Z*) \
642657 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
643658 *.shar.gz*) \
644 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
659 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
645660 *.zip*) \
646661 unzip $(distdir).zip ;;\
662 *.tar.zst*) \
663 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
647664 esac
648665 chmod -R a-w $(distdir)
649666 chmod u+w $(distdir)
659676 $(DISTCHECK_CONFIGURE_FLAGS) \
660677 --srcdir=../.. --prefix="$$dc_install_base" \
661678 && $(MAKE) $(AM_MAKEFLAGS) \
662 && $(MAKE) $(AM_MAKEFLAGS) dvi \
679 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
663680 && $(MAKE) $(AM_MAKEFLAGS) check \
664681 && $(MAKE) $(AM_MAKEFLAGS) install \
665682 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
823840 am--refresh check check-am clean clean-cscope clean-generic \
824841 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
825842 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
826 distcheck distclean distclean-generic distclean-hdr \
843 dist-zstd distcheck distclean distclean-generic distclean-hdr \
827844 distclean-tags distcleancheck distdir distuninstallcheck dvi \
828845 dvi-am html html-am info info-am install install-am \
829846 install-data install-data-am install-dist_docDATA install-dvi \
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.5 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1313 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1414 m4_ifndef([AC_AUTOCONF_VERSION],
1515 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
17 [m4_warning([this file was generated for autoconf 2.71.
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
22 dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 dnl serial 11 (pkg-config-0.29)
24 dnl
22 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 # serial 12 (pkg-config-0.29.2)
24
2525 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
2626 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
2727 dnl
6262 dnl See the "Since" comment for each macro you use to see what version
6363 dnl of the macros you require.
6464 m4_defun([PKG_PREREQ],
65 [m4_define([PKG_MACROS_VERSION], [0.29])
65 [m4_define([PKG_MACROS_VERSION], [0.29.2])
6666 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
6767 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
6868 ])dnl PKG_PREREQ
163163 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
164164
165165 pkg_failed=no
166 AC_MSG_CHECKING([for $1])
166 AC_MSG_CHECKING([for $2])
167167
168168 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
169169 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
173173 See the pkg-config man page for more details.])
174174
175175 if test $pkg_failed = yes; then
176 AC_MSG_RESULT([no])
176 AC_MSG_RESULT([no])
177177 _PKG_SHORT_ERRORS_SUPPORTED
178178 if test $_pkg_short_errors_supported = yes; then
179179 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
180 else
180 else
181181 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
182182 fi
183183 # Put the nasty error message in config.log where it belongs
194194 _PKG_TEXT])[]dnl
195195 ])
196196 elif test $pkg_failed = untried; then
197 AC_MSG_RESULT([no])
197 AC_MSG_RESULT([no])
198198 m4_default([$4], [AC_MSG_FAILURE(
199199 [The pkg-config script could not be found or is too old. Make sure it
200200 is in your PATH or set the PKG_CONFIG environment variable to the full
295295 AS_VAR_IF([$1], [""], [$5], [$4])dnl
296296 ])dnl PKG_CHECK_VAR
297297
298 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
298 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
299299 #
300300 # This file is free software; the Free Software Foundation
301301 # gives unlimited permission to copy and/or distribute it,
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.5], [],
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.5])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-2021 Free Software Foundation, Inc.
337337 #
338338 # This file is free software; the Free Software Foundation
339339 # gives unlimited permission to copy and/or distribute it,
385385
386386 # AM_CONDITIONAL -*- Autoconf -*-
387387
388 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
388 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
389389 #
390390 # This file is free software; the Free Software Foundation
391391 # gives unlimited permission to copy and/or distribute it,
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-2021 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-2021 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. If GNU make was not used, consider
650 re-running the configure script with MAKE="gmake" (or whatever is
651 necessary). You can also try re-running configure with the
652 '--disable-dependency-tracking' option to at least be able to build
653 the package (albeit without support for automatic dependency tracking).])
654 fi
655 AS_UNSET([am_dirpart])
656 AS_UNSET([am_filepart])
657 AS_UNSET([am_mf])
658 AS_UNSET([am_rc])
659 rm -f conftest-deps.mk
667660 }
668661 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
669662
672665 # -----------------------------
673666 # This macro should only be invoked once -- use via AC_REQUIRE.
674667 #
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.
668 # This code is only required when automatic dependency tracking is enabled.
669 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
670 # order to bootstrap the dependency handling code.
678671 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
679672 [AC_CONFIG_COMMANDS([depfiles],
680673 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
681 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
682 ])
674 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
683675
684676 # Do all the work for Automake. -*- Autoconf -*-
685677
686 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
678 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
687679 #
688680 # This file is free software; the Free Software Foundation
689681 # gives unlimited permission to copy and/or distribute it,
711703 # release and drop the old call support.
712704 AC_DEFUN([AM_INIT_AUTOMAKE],
713705 [AC_PREREQ([2.65])dnl
706 m4_ifdef([_$0_ALREADY_INIT],
707 [m4_fatal([$0 expanded multiple times
708 ]m4_defn([_$0_ALREADY_INIT]))],
709 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
714710 dnl Autoconf wants to disallow AM_ names. We explicitly allow
715711 dnl the ones we care about.
716712 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
747743 [_AM_SET_OPTIONS([$1])dnl
748744 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
749745 m4_if(
750 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
746 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
751747 [ok:ok],,
752748 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
753749 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
770766 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
771767 # For better backward compatibility. To be removed once Automake 1.9.x
772768 # 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>
769 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
770 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
775771 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
776772 # We need awk for the "check" target (and possibly the TAP driver). The
777773 # system "awk" is bad on some platforms.
799795 [m4_define([AC_PROG_OBJCXX],
800796 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
801797 ])
798 # Variables for tags utilities; see am/tags.am
799 if test -z "$CTAGS"; then
800 CTAGS=ctags
801 fi
802 AC_SUBST([CTAGS])
803 if test -z "$ETAGS"; then
804 ETAGS=etags
805 fi
806 AC_SUBST([ETAGS])
807 if test -z "$CSCOPE"; then
808 CSCOPE=cscope
809 fi
810 AC_SUBST([CSCOPE])
811
802812 AC_REQUIRE([AM_SILENT_RULES])dnl
803813 dnl The testsuite driver may need to know about EXEEXT, so add the
804814 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
838848 Aborting the configuration process, to ensure you take notice of the issue.
839849
840850 You can download and install GNU coreutils to get an 'rm' implementation
841 that behaves properly: <http://www.gnu.org/software/coreutils/>.
851 that behaves properly: <https://www.gnu.org/software/coreutils/>.
842852
843853 If you want to complete the configuration process using your problematic
844854 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
880890 done
881891 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
882892
883 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
893 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
884894 #
885895 # This file is free software; the Free Software Foundation
886896 # gives unlimited permission to copy and/or distribute it,
901911 fi
902912 AC_SUBST([install_sh])])
903913
904 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
914 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
905915 #
906916 # This file is free software; the Free Software Foundation
907917 # gives unlimited permission to copy and/or distribute it,
922932
923933 # Check to see how 'make' treats includes. -*- Autoconf -*-
924934
925 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
935 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
926936 #
927937 # This file is free software; the Free Software Foundation
928938 # gives unlimited permission to copy and/or distribute it,
930940
931941 # AM_MAKE_INCLUDE()
932942 # -----------------
933 # Check to see how make treats includes.
943 # Check whether make has an 'include' directive that can support all
944 # the idioms we need for our automatic dependency tracking code.
934945 AC_DEFUN([AM_MAKE_INCLUDE],
935 [am_make=${MAKE-make}
936 cat > confinc << 'END'
946 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
947 cat > confinc.mk << 'END'
937948 am__doit:
938 @echo this is the am__doit target
949 @echo this is the am__doit target >confinc.out
939950 .PHONY: am__doit
940951 END
941 # If we don't find an include directive, just comment out the code.
942 AC_MSG_CHECKING([for style of include used by $am_make])
943952 am__include="#"
944953 am__quote=
945 _am_result=none
946 # First try GNU make style include.
947 echo "include confinc" > confmf
948 # Ignore all kinds of additional output from 'make'.
949 case `$am_make -s -f confmf 2> /dev/null` in #(
950 *the\ am__doit\ target*)
951 am__include=include
952 am__quote=
953 _am_result=GNU
954 ;;
955 esac
956 # Now try BSD make style include.
957 if test "$am__include" = "#"; then
958 echo '.include "confinc"' > confmf
959 case `$am_make -s -f confmf 2> /dev/null` in #(
960 *the\ am__doit\ target*)
961 am__include=.include
962 am__quote="\""
963 _am_result=BSD
964 ;;
965 esac
966 fi
967 AC_SUBST([am__include])
968 AC_SUBST([am__quote])
969 AC_MSG_RESULT([$_am_result])
970 rm -f confinc confmf
971 ])
954 # BSD make does it like this.
955 echo '.include "confinc.mk" # ignored' > confmf.BSD
956 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
957 echo 'include confinc.mk # ignored' > confmf.GNU
958 _am_result=no
959 for s in GNU BSD; do
960 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
961 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
962 ['0:this is the am__doit target'],
963 [AS_CASE([$s],
964 [BSD], [am__include='.include' am__quote='"'],
965 [am__include='include' am__quote=''])])
966 if test "$am__include" != "#"; then
967 _am_result="yes ($s style)"
968 break
969 fi
970 done
971 rm -f confinc.* confmf.*
972 AC_MSG_RESULT([${_am_result}])
973 AC_SUBST([am__include])])
974 AC_SUBST([am__quote])])
972975
973976 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
974977
975 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
978 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
976979 #
977980 # This file is free software; the Free Software Foundation
978981 # gives unlimited permission to copy and/or distribute it,
993996 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
994997 AC_REQUIRE_AUX_FILE([missing])dnl
995998 if test x"${MISSING+set}" != xset; then
996 case $am_aux_dir in
997 *\ * | *\ *)
998 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
999 *)
1000 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1001 esac
999 MISSING="\${SHELL} '$am_aux_dir/missing'"
10021000 fi
10031001 # Use eval to expand $SHELL
10041002 if eval "$MISSING --is-lightweight"; then
10111009
10121010 # Helper functions for option handling. -*- Autoconf -*-
10131011
1014 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1012 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
10151013 #
10161014 # This file is free software; the Free Software Foundation
10171015 # gives unlimited permission to copy and/or distribute it,
10401038 AC_DEFUN([_AM_IF_OPTION],
10411039 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10421040
1043 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
1041 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
10441042 #
10451043 # This file is free software; the Free Software Foundation
10461044 # gives unlimited permission to copy and/or distribute it,
10871085 # For backward compatibility.
10881086 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
10891087
1090 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1088 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
10911089 #
10921090 # This file is free software; the Free Software Foundation
10931091 # gives unlimited permission to copy and/or distribute it,
11061104
11071105 # Check to make sure that the build environment is sane. -*- Autoconf -*-
11081106
1109 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
1107 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
11101108 #
11111109 # This file is free software; the Free Software Foundation
11121110 # gives unlimited permission to copy and/or distribute it,
11871185 rm -f conftest.file
11881186 ])
11891187
1190 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
1188 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
11911189 #
11921190 # This file is free software; the Free Software Foundation
11931191 # gives unlimited permission to copy and/or distribute it,
12471245 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
12481246 ])
12491247
1250 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1248 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
12511249 #
12521250 # This file is free software; the Free Software Foundation
12531251 # gives unlimited permission to copy and/or distribute it,
12751273 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12761274 AC_SUBST([INSTALL_STRIP_PROGRAM])])
12771275
1278 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
1276 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
12791277 #
12801278 # This file is free software; the Free Software Foundation
12811279 # gives unlimited permission to copy and/or distribute it,
12941292
12951293 # Check how to create a tarball. -*- Autoconf -*-
12961294
1297 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
1295 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
12981296 #
12991297 # This file is free software; the Free Software Foundation
13001298 # gives unlimited permission to copy and/or distribute it,
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-2021 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
1616 # GNU General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
5252 MINGW*)
5353 file_conv=mingw
5454 ;;
55 CYGWIN*)
55 CYGWIN* | MSYS*)
5656 file_conv=cygwin
5757 ;;
5858 *)
6666 mingw/*)
6767 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6868 ;;
69 cygwin/*)
69 cygwin/* | msys/*)
7070 file=`cygpath -m "$file" || echo "$file"`
7171 ;;
7272 wine/*)
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:
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright 1992-2022 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2022-01-09'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, see <https://www.gnu.org/licenses/>.
20 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that
25 # program. This Exception is an additional permission under section 7
26 # of the GNU General Public License, version 3 ("GPLv3").
27 #
28 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
29 #
30 # You can get the latest version of this script from:
31 # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
32 #
33 # Please send patches to <config-patches@gnu.org>.
34
35
36 # The "shellcheck disable" line above the timestamp inhibits complaints
37 # about features and limitations of the classic Bourne shell that were
38 # superseded or lifted in POSIX. However, this script identifies a wide
39 # variety of pre-POSIX systems that do not have POSIX shells at all, and
40 # even some reasonably current systems (Solaris 10 as case-in-point) still
41 # have a pre-POSIX /bin/sh.
42
43
44 me=`echo "$0" | sed -e 's,.*/,,'`
45
46 usage="\
47 Usage: $0 [OPTION]
48
49 Output the configuration name of the system \`$me' is run on.
50
51 Options:
52 -h, --help print this help, then exit
53 -t, --time-stamp print date of last modification, then exit
54 -v, --version print version number, then exit
55
56 Report bugs and patches to <config-patches@gnu.org>."
57
58 version="\
59 GNU config.guess ($timestamp)
60
61 Originally written by Per Bothner.
62 Copyright 1992-2022 Free Software Foundation, Inc.
63
64 This is free software; see the source for copying conditions. There is NO
65 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
66
67 help="
68 Try \`$me --help' for more information."
69
70 # Parse command line
71 while test $# -gt 0 ; do
72 case $1 in
73 --time-stamp | --time* | -t )
74 echo "$timestamp" ; exit ;;
75 --version | -v )
76 echo "$version" ; exit ;;
77 --help | --h* | -h )
78 echo "$usage"; exit ;;
79 -- ) # Stop option processing
80 shift; break ;;
81 - ) # Use stdin as input.
82 break ;;
83 -* )
84 echo "$me: invalid option $1$help" >&2
85 exit 1 ;;
86 * )
87 break ;;
88 esac
89 done
90
91 if test $# != 0; then
92 echo "$me: too many arguments$help" >&2
93 exit 1
94 fi
95
96 # Just in case it came from the environment.
97 GUESS=
98
99 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
100 # compiler to aid in system detection is discouraged as it requires
101 # temporary files to be created and, as you can see below, it is a
102 # headache to deal with in a portable fashion.
103
104 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
105 # use `HOST_CC' if defined, but it is deprecated.
106
107 # Portable tmp directory creation inspired by the Autoconf team.
108
109 tmp=
110 # shellcheck disable=SC2172
111 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
112
113 set_cc_for_build() {
114 # prevent multiple calls if $tmp is already set
115 test "$tmp" && return 0
116 : "${TMPDIR=/tmp}"
117 # shellcheck disable=SC2039,SC3028
118 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
119 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
120 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
121 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
122 dummy=$tmp/dummy
123 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
124 ,,) echo "int x;" > "$dummy.c"
125 for driver in cc gcc c89 c99 ; do
126 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
127 CC_FOR_BUILD=$driver
128 break
129 fi
130 done
131 if test x"$CC_FOR_BUILD" = x ; then
132 CC_FOR_BUILD=no_compiler_found
133 fi
134 ;;
135 ,,*) CC_FOR_BUILD=$CC ;;
136 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
137 esac
138 }
139
140 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
141 # (ghazi@noc.rutgers.edu 1994-08-24)
142 if test -f /.attbin/uname ; then
143 PATH=$PATH:/.attbin ; export PATH
144 fi
145
146 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
147 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
148 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
149 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
150
151 case $UNAME_SYSTEM in
152 Linux|GNU|GNU/*)
153 LIBC=unknown
154
155 set_cc_for_build
156 cat <<-EOF > "$dummy.c"
157 #include <features.h>
158 #if defined(__UCLIBC__)
159 LIBC=uclibc
160 #elif defined(__dietlibc__)
161 LIBC=dietlibc
162 #elif defined(__GLIBC__)
163 LIBC=gnu
164 #else
165 #include <stdarg.h>
166 /* First heuristic to detect musl libc. */
167 #ifdef __DEFINED_va_list
168 LIBC=musl
169 #endif
170 #endif
171 EOF
172 cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
173 eval "$cc_set_libc"
174
175 # Second heuristic to detect musl libc.
176 if [ "$LIBC" = unknown ] &&
177 command -v ldd >/dev/null &&
178 ldd --version 2>&1 | grep -q ^musl; then
179 LIBC=musl
180 fi
181
182 # If the system lacks a compiler, then just pick glibc.
183 # We could probably try harder.
184 if [ "$LIBC" = unknown ]; then
185 LIBC=gnu
186 fi
187 ;;
188 esac
189
190 # Note: order is significant - the case branches are not exclusive.
191
192 case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
193 *:NetBSD:*:*)
194 # NetBSD (nbsd) targets should (where applicable) match one or
195 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
196 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
197 # switched to ELF, *-*-netbsd* would select the old
198 # object file format. This provides both forward
199 # compatibility and a consistent mechanism for selecting the
200 # object file format.
201 #
202 # Note: NetBSD doesn't particularly care about the vendor
203 # portion of the name. We always set it to "unknown".
204 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
205 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
206 /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
207 echo unknown)`
208 case $UNAME_MACHINE_ARCH in
209 aarch64eb) machine=aarch64_be-unknown ;;
210 armeb) machine=armeb-unknown ;;
211 arm*) machine=arm-unknown ;;
212 sh3el) machine=shl-unknown ;;
213 sh3eb) machine=sh-unknown ;;
214 sh5el) machine=sh5le-unknown ;;
215 earmv*)
216 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
217 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
218 machine=${arch}${endian}-unknown
219 ;;
220 *) machine=$UNAME_MACHINE_ARCH-unknown ;;
221 esac
222 # The Operating System including object format, if it has switched
223 # to ELF recently (or will in the future) and ABI.
224 case $UNAME_MACHINE_ARCH in
225 earm*)
226 os=netbsdelf
227 ;;
228 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
229 set_cc_for_build
230 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
231 | grep -q __ELF__
232 then
233 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
234 # Return netbsd for either. FIX?
235 os=netbsd
236 else
237 os=netbsdelf
238 fi
239 ;;
240 *)
241 os=netbsd
242 ;;
243 esac
244 # Determine ABI tags.
245 case $UNAME_MACHINE_ARCH in
246 earm*)
247 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
248 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
249 ;;
250 esac
251 # The OS release
252 # Debian GNU/NetBSD machines have a different userland, and
253 # thus, need a distinct triplet. However, they do not need
254 # kernel version information, so it can be replaced with a
255 # suitable tag, in the style of linux-gnu.
256 case $UNAME_VERSION in
257 Debian*)
258 release='-gnu'
259 ;;
260 *)
261 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
262 ;;
263 esac
264 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
265 # contains redundant information, the shorter form:
266 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
267 GUESS=$machine-${os}${release}${abi-}
268 ;;
269 *:Bitrig:*:*)
270 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
271 GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE
272 ;;
273 *:OpenBSD:*:*)
274 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
275 GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE
276 ;;
277 *:SecBSD:*:*)
278 UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'`
279 GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE
280 ;;
281 *:LibertyBSD:*:*)
282 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
283 GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE
284 ;;
285 *:MidnightBSD:*:*)
286 GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE
287 ;;
288 *:ekkoBSD:*:*)
289 GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE
290 ;;
291 *:SolidBSD:*:*)
292 GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE
293 ;;
294 *:OS108:*:*)
295 GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE
296 ;;
297 macppc:MirBSD:*:*)
298 GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE
299 ;;
300 *:MirBSD:*:*)
301 GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE
302 ;;
303 *:Sortix:*:*)
304 GUESS=$UNAME_MACHINE-unknown-sortix
305 ;;
306 *:Twizzler:*:*)
307 GUESS=$UNAME_MACHINE-unknown-twizzler
308 ;;
309 *:Redox:*:*)
310 GUESS=$UNAME_MACHINE-unknown-redox
311 ;;
312 mips:OSF1:*.*)
313 GUESS=mips-dec-osf1
314 ;;
315 alpha:OSF1:*:*)
316 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
317 trap '' 0
318 case $UNAME_RELEASE in
319 *4.0)
320 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
321 ;;
322 *5.*)
323 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
324 ;;
325 esac
326 # According to Compaq, /usr/sbin/psrinfo has been available on
327 # OSF/1 and Tru64 systems produced since 1995. I hope that
328 # covers most systems running today. This code pipes the CPU
329 # types through head -n 1, so we only detect the type of CPU 0.
330 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
331 case $ALPHA_CPU_TYPE in
332 "EV4 (21064)")
333 UNAME_MACHINE=alpha ;;
334 "EV4.5 (21064)")
335 UNAME_MACHINE=alpha ;;
336 "LCA4 (21066/21068)")
337 UNAME_MACHINE=alpha ;;
338 "EV5 (21164)")
339 UNAME_MACHINE=alphaev5 ;;
340 "EV5.6 (21164A)")
341 UNAME_MACHINE=alphaev56 ;;
342 "EV5.6 (21164PC)")
343 UNAME_MACHINE=alphapca56 ;;
344 "EV5.7 (21164PC)")
345 UNAME_MACHINE=alphapca57 ;;
346 "EV6 (21264)")
347 UNAME_MACHINE=alphaev6 ;;
348 "EV6.7 (21264A)")
349 UNAME_MACHINE=alphaev67 ;;
350 "EV6.8CB (21264C)")
351 UNAME_MACHINE=alphaev68 ;;
352 "EV6.8AL (21264B)")
353 UNAME_MACHINE=alphaev68 ;;
354 "EV6.8CX (21264D)")
355 UNAME_MACHINE=alphaev68 ;;
356 "EV6.9A (21264/EV69A)")
357 UNAME_MACHINE=alphaev69 ;;
358 "EV7 (21364)")
359 UNAME_MACHINE=alphaev7 ;;
360 "EV7.9 (21364A)")
361 UNAME_MACHINE=alphaev79 ;;
362 esac
363 # A Pn.n version is a patched version.
364 # A Vn.n version is a released version.
365 # A Tn.n version is a released field test version.
366 # A Xn.n version is an unreleased experimental baselevel.
367 # 1.2 uses "1.2" for uname -r.
368 OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
369 GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
370 ;;
371 Amiga*:UNIX_System_V:4.0:*)
372 GUESS=m68k-unknown-sysv4
373 ;;
374 *:[Aa]miga[Oo][Ss]:*:*)
375 GUESS=$UNAME_MACHINE-unknown-amigaos
376 ;;
377 *:[Mm]orph[Oo][Ss]:*:*)
378 GUESS=$UNAME_MACHINE-unknown-morphos
379 ;;
380 *:OS/390:*:*)
381 GUESS=i370-ibm-openedition
382 ;;
383 *:z/VM:*:*)
384 GUESS=s390-ibm-zvmoe
385 ;;
386 *:OS400:*:*)
387 GUESS=powerpc-ibm-os400
388 ;;
389 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
390 GUESS=arm-acorn-riscix$UNAME_RELEASE
391 ;;
392 arm*:riscos:*:*|arm*:RISCOS:*:*)
393 GUESS=arm-unknown-riscos
394 ;;
395 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
396 GUESS=hppa1.1-hitachi-hiuxmpp
397 ;;
398 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
399 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
400 case `(/bin/universe) 2>/dev/null` in
401 att) GUESS=pyramid-pyramid-sysv3 ;;
402 *) GUESS=pyramid-pyramid-bsd ;;
403 esac
404 ;;
405 NILE*:*:*:dcosx)
406 GUESS=pyramid-pyramid-svr4
407 ;;
408 DRS?6000:unix:4.0:6*)
409 GUESS=sparc-icl-nx6
410 ;;
411 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
412 case `/usr/bin/uname -p` in
413 sparc) GUESS=sparc-icl-nx7 ;;
414 esac
415 ;;
416 s390x:SunOS:*:*)
417 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
418 GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
419 ;;
420 sun4H:SunOS:5.*:*)
421 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
422 GUESS=sparc-hal-solaris2$SUN_REL
423 ;;
424 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
425 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
426 GUESS=sparc-sun-solaris2$SUN_REL
427 ;;
428 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
429 GUESS=i386-pc-auroraux$UNAME_RELEASE
430 ;;
431 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
432 set_cc_for_build
433 SUN_ARCH=i386
434 # If there is a compiler, see if it is configured for 64-bit objects.
435 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
436 # This test works for both compilers.
437 if test "$CC_FOR_BUILD" != no_compiler_found; then
438 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
439 (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \
440 grep IS_64BIT_ARCH >/dev/null
441 then
442 SUN_ARCH=x86_64
443 fi
444 fi
445 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
446 GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
447 ;;
448 sun4*:SunOS:6*:*)
449 # According to config.sub, this is the proper way to canonicalize
450 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
451 # it's likely to be more like Solaris than SunOS4.
452 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
453 GUESS=sparc-sun-solaris3$SUN_REL
454 ;;
455 sun4*:SunOS:*:*)
456 case `/usr/bin/arch -k` in
457 Series*|S4*)
458 UNAME_RELEASE=`uname -v`
459 ;;
460 esac
461 # Japanese Language versions have a version number like `4.1.3-JL'.
462 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
463 GUESS=sparc-sun-sunos$SUN_REL
464 ;;
465 sun3*:SunOS:*:*)
466 GUESS=m68k-sun-sunos$UNAME_RELEASE
467 ;;
468 sun*:*:4.2BSD:*)
469 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
470 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
471 case `/bin/arch` in
472 sun3)
473 GUESS=m68k-sun-sunos$UNAME_RELEASE
474 ;;
475 sun4)
476 GUESS=sparc-sun-sunos$UNAME_RELEASE
477 ;;
478 esac
479 ;;
480 aushp:SunOS:*:*)
481 GUESS=sparc-auspex-sunos$UNAME_RELEASE
482 ;;
483 # The situation for MiNT is a little confusing. The machine name
484 # can be virtually everything (everything which is not
485 # "atarist" or "atariste" at least should have a processor
486 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
487 # to the lowercase version "mint" (or "freemint"). Finally
488 # the system name "TOS" denotes a system which is actually not
489 # MiNT. But MiNT is downward compatible to TOS, so this should
490 # be no problem.
491 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
492 GUESS=m68k-atari-mint$UNAME_RELEASE
493 ;;
494 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
495 GUESS=m68k-atari-mint$UNAME_RELEASE
496 ;;
497 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
498 GUESS=m68k-atari-mint$UNAME_RELEASE
499 ;;
500 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
501 GUESS=m68k-milan-mint$UNAME_RELEASE
502 ;;
503 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
504 GUESS=m68k-hades-mint$UNAME_RELEASE
505 ;;
506 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
507 GUESS=m68k-unknown-mint$UNAME_RELEASE
508 ;;
509 m68k:machten:*:*)
510 GUESS=m68k-apple-machten$UNAME_RELEASE
511 ;;
512 powerpc:machten:*:*)
513 GUESS=powerpc-apple-machten$UNAME_RELEASE
514 ;;
515 RISC*:Mach:*:*)
516 GUESS=mips-dec-mach_bsd4.3
517 ;;
518 RISC*:ULTRIX:*:*)
519 GUESS=mips-dec-ultrix$UNAME_RELEASE
520 ;;
521 VAX*:ULTRIX*:*:*)
522 GUESS=vax-dec-ultrix$UNAME_RELEASE
523 ;;
524 2020:CLIX:*:* | 2430:CLIX:*:*)
525 GUESS=clipper-intergraph-clix$UNAME_RELEASE
526 ;;
527 mips:*:*:UMIPS | mips:*:*:RISCos)
528 set_cc_for_build
529 sed 's/^ //' << EOF > "$dummy.c"
530 #ifdef __cplusplus
531 #include <stdio.h> /* for printf() prototype */
532 int main (int argc, char *argv[]) {
533 #else
534 int main (argc, argv) int argc; char *argv[]; {
535 #endif
536 #if defined (host_mips) && defined (MIPSEB)
537 #if defined (SYSTYPE_SYSV)
538 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
539 #endif
540 #if defined (SYSTYPE_SVR4)
541 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
542 #endif
543 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
544 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
545 #endif
546 #endif
547 exit (-1);
548 }
549 EOF
550 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
551 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
552 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
553 { echo "$SYSTEM_NAME"; exit; }
554 GUESS=mips-mips-riscos$UNAME_RELEASE
555 ;;
556 Motorola:PowerMAX_OS:*:*)
557 GUESS=powerpc-motorola-powermax
558 ;;
559 Motorola:*:4.3:PL8-*)
560 GUESS=powerpc-harris-powermax
561 ;;
562 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
563 GUESS=powerpc-harris-powermax
564 ;;
565 Night_Hawk:Power_UNIX:*:*)
566 GUESS=powerpc-harris-powerunix
567 ;;
568 m88k:CX/UX:7*:*)
569 GUESS=m88k-harris-cxux7
570 ;;
571 m88k:*:4*:R4*)
572 GUESS=m88k-motorola-sysv4
573 ;;
574 m88k:*:3*:R3*)
575 GUESS=m88k-motorola-sysv3
576 ;;
577 AViiON:dgux:*:*)
578 # DG/UX returns AViiON for all architectures
579 UNAME_PROCESSOR=`/usr/bin/uname -p`
580 if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
581 then
582 if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
583 test "$TARGET_BINARY_INTERFACE"x = x
584 then
585 GUESS=m88k-dg-dgux$UNAME_RELEASE
586 else
587 GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
588 fi
589 else
590 GUESS=i586-dg-dgux$UNAME_RELEASE
591 fi
592 ;;
593 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
594 GUESS=m88k-dolphin-sysv3
595 ;;
596 M88*:*:R3*:*)
597 # Delta 88k system running SVR3
598 GUESS=m88k-motorola-sysv3
599 ;;
600 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
601 GUESS=m88k-tektronix-sysv3
602 ;;
603 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
604 GUESS=m68k-tektronix-bsd
605 ;;
606 *:IRIX*:*:*)
607 IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
608 GUESS=mips-sgi-irix$IRIX_REL
609 ;;
610 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
611 GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id
612 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
613 i*86:AIX:*:*)
614 GUESS=i386-ibm-aix
615 ;;
616 ia64:AIX:*:*)
617 if test -x /usr/bin/oslevel ; then
618 IBM_REV=`/usr/bin/oslevel`
619 else
620 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
621 fi
622 GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
623 ;;
624 *:AIX:2:3)
625 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
626 set_cc_for_build
627 sed 's/^ //' << EOF > "$dummy.c"
628 #include <sys/systemcfg.h>
629
630 main()
631 {
632 if (!__power_pc())
633 exit(1);
634 puts("powerpc-ibm-aix3.2.5");
635 exit(0);
636 }
637 EOF
638 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
639 then
640 GUESS=$SYSTEM_NAME
641 else
642 GUESS=rs6000-ibm-aix3.2.5
643 fi
644 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
645 GUESS=rs6000-ibm-aix3.2.4
646 else
647 GUESS=rs6000-ibm-aix3.2
648 fi
649 ;;
650 *:AIX:*:[4567])
651 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
652 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
653 IBM_ARCH=rs6000
654 else
655 IBM_ARCH=powerpc
656 fi
657 if test -x /usr/bin/lslpp ; then
658 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \
659 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
660 else
661 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
662 fi
663 GUESS=$IBM_ARCH-ibm-aix$IBM_REV
664 ;;
665 *:AIX:*:*)
666 GUESS=rs6000-ibm-aix
667 ;;
668 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
669 GUESS=romp-ibm-bsd4.4
670 ;;
671 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
672 GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to
673 ;; # report: romp-ibm BSD 4.3
674 *:BOSX:*:*)
675 GUESS=rs6000-bull-bosx
676 ;;
677 DPX/2?00:B.O.S.:*:*)
678 GUESS=m68k-bull-sysv3
679 ;;
680 9000/[34]??:4.3bsd:1.*:*)
681 GUESS=m68k-hp-bsd
682 ;;
683 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
684 GUESS=m68k-hp-bsd4.4
685 ;;
686 9000/[34678]??:HP-UX:*:*)
687 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
688 case $UNAME_MACHINE in
689 9000/31?) HP_ARCH=m68000 ;;
690 9000/[34]??) HP_ARCH=m68k ;;
691 9000/[678][0-9][0-9])
692 if test -x /usr/bin/getconf; then
693 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
694 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
695 case $sc_cpu_version in
696 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
697 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
698 532) # CPU_PA_RISC2_0
699 case $sc_kernel_bits in
700 32) HP_ARCH=hppa2.0n ;;
701 64) HP_ARCH=hppa2.0w ;;
702 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
703 esac ;;
704 esac
705 fi
706 if test "$HP_ARCH" = ""; then
707 set_cc_for_build
708 sed 's/^ //' << EOF > "$dummy.c"
709
710 #define _HPUX_SOURCE
711 #include <stdlib.h>
712 #include <unistd.h>
713
714 int main ()
715 {
716 #if defined(_SC_KERNEL_BITS)
717 long bits = sysconf(_SC_KERNEL_BITS);
718 #endif
719 long cpu = sysconf (_SC_CPU_VERSION);
720
721 switch (cpu)
722 {
723 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
724 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
725 case CPU_PA_RISC2_0:
726 #if defined(_SC_KERNEL_BITS)
727 switch (bits)
728 {
729 case 64: puts ("hppa2.0w"); break;
730 case 32: puts ("hppa2.0n"); break;
731 default: puts ("hppa2.0"); break;
732 } break;
733 #else /* !defined(_SC_KERNEL_BITS) */
734 puts ("hppa2.0"); break;
735 #endif
736 default: puts ("hppa1.0"); break;
737 }
738 exit (0);
739 }
740 EOF
741 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
742 test -z "$HP_ARCH" && HP_ARCH=hppa
743 fi ;;
744 esac
745 if test "$HP_ARCH" = hppa2.0w
746 then
747 set_cc_for_build
748
749 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
750 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
751 # generating 64-bit code. GNU and HP use different nomenclature:
752 #
753 # $ CC_FOR_BUILD=cc ./config.guess
754 # => hppa2.0w-hp-hpux11.23
755 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
756 # => hppa64-hp-hpux11.23
757
758 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
759 grep -q __LP64__
760 then
761 HP_ARCH=hppa2.0w
762 else
763 HP_ARCH=hppa64
764 fi
765 fi
766 GUESS=$HP_ARCH-hp-hpux$HPUX_REV
767 ;;
768 ia64:HP-UX:*:*)
769 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
770 GUESS=ia64-hp-hpux$HPUX_REV
771 ;;
772 3050*:HI-UX:*:*)
773 set_cc_for_build
774 sed 's/^ //' << EOF > "$dummy.c"
775 #include <unistd.h>
776 int
777 main ()
778 {
779 long cpu = sysconf (_SC_CPU_VERSION);
780 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
781 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
782 results, however. */
783 if (CPU_IS_PA_RISC (cpu))
784 {
785 switch (cpu)
786 {
787 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
788 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
789 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
790 default: puts ("hppa-hitachi-hiuxwe2"); break;
791 }
792 }
793 else if (CPU_IS_HP_MC68K (cpu))
794 puts ("m68k-hitachi-hiuxwe2");
795 else puts ("unknown-hitachi-hiuxwe2");
796 exit (0);
797 }
798 EOF
799 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
800 { echo "$SYSTEM_NAME"; exit; }
801 GUESS=unknown-hitachi-hiuxwe2
802 ;;
803 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
804 GUESS=hppa1.1-hp-bsd
805 ;;
806 9000/8??:4.3bsd:*:*)
807 GUESS=hppa1.0-hp-bsd
808 ;;
809 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
810 GUESS=hppa1.0-hp-mpeix
811 ;;
812 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
813 GUESS=hppa1.1-hp-osf
814 ;;
815 hp8??:OSF1:*:*)
816 GUESS=hppa1.0-hp-osf
817 ;;
818 i*86:OSF1:*:*)
819 if test -x /usr/sbin/sysversion ; then
820 GUESS=$UNAME_MACHINE-unknown-osf1mk
821 else
822 GUESS=$UNAME_MACHINE-unknown-osf1
823 fi
824 ;;
825 parisc*:Lites*:*:*)
826 GUESS=hppa1.1-hp-lites
827 ;;
828 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
829 GUESS=c1-convex-bsd
830 ;;
831 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
832 if getsysinfo -f scalar_acc
833 then echo c32-convex-bsd
834 else echo c2-convex-bsd
835 fi
836 exit ;;
837 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
838 GUESS=c34-convex-bsd
839 ;;
840 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
841 GUESS=c38-convex-bsd
842 ;;
843 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
844 GUESS=c4-convex-bsd
845 ;;
846 CRAY*Y-MP:*:*:*)
847 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
848 GUESS=ymp-cray-unicos$CRAY_REL
849 ;;
850 CRAY*[A-Z]90:*:*:*)
851 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
852 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
853 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
854 -e 's/\.[^.]*$/.X/'
855 exit ;;
856 CRAY*TS:*:*:*)
857 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
858 GUESS=t90-cray-unicos$CRAY_REL
859 ;;
860 CRAY*T3E:*:*:*)
861 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
862 GUESS=alphaev5-cray-unicosmk$CRAY_REL
863 ;;
864 CRAY*SV1:*:*:*)
865 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
866 GUESS=sv1-cray-unicos$CRAY_REL
867 ;;
868 *:UNICOS/mp:*:*)
869 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
870 GUESS=craynv-cray-unicosmp$CRAY_REL
871 ;;
872 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
873 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
874 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
875 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
876 GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
877 ;;
878 5000:UNIX_System_V:4.*:*)
879 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
880 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
881 GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
882 ;;
883 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
884 GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
885 ;;
886 sparc*:BSD/OS:*:*)
887 GUESS=sparc-unknown-bsdi$UNAME_RELEASE
888 ;;
889 *:BSD/OS:*:*)
890 GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE
891 ;;
892 arm:FreeBSD:*:*)
893 UNAME_PROCESSOR=`uname -p`
894 set_cc_for_build
895 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
896 | grep -q __ARM_PCS_VFP
897 then
898 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
899 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi
900 else
901 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
902 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf
903 fi
904 ;;
905 *:FreeBSD:*:*)
906 UNAME_PROCESSOR=`/usr/bin/uname -p`
907 case $UNAME_PROCESSOR in
908 amd64)
909 UNAME_PROCESSOR=x86_64 ;;
910 i386)
911 UNAME_PROCESSOR=i586 ;;
912 esac
913 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
914 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL
915 ;;
916 i*:CYGWIN*:*)
917 GUESS=$UNAME_MACHINE-pc-cygwin
918 ;;
919 *:MINGW64*:*)
920 GUESS=$UNAME_MACHINE-pc-mingw64
921 ;;
922 *:MINGW*:*)
923 GUESS=$UNAME_MACHINE-pc-mingw32
924 ;;
925 *:MSYS*:*)
926 GUESS=$UNAME_MACHINE-pc-msys
927 ;;
928 i*:PW*:*)
929 GUESS=$UNAME_MACHINE-pc-pw32
930 ;;
931 *:SerenityOS:*:*)
932 GUESS=$UNAME_MACHINE-pc-serenity
933 ;;
934 *:Interix*:*)
935 case $UNAME_MACHINE in
936 x86)
937 GUESS=i586-pc-interix$UNAME_RELEASE
938 ;;
939 authenticamd | genuineintel | EM64T)
940 GUESS=x86_64-unknown-interix$UNAME_RELEASE
941 ;;
942 IA64)
943 GUESS=ia64-unknown-interix$UNAME_RELEASE
944 ;;
945 esac ;;
946 i*:UWIN*:*)
947 GUESS=$UNAME_MACHINE-pc-uwin
948 ;;
949 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
950 GUESS=x86_64-pc-cygwin
951 ;;
952 prep*:SunOS:5.*:*)
953 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
954 GUESS=powerpcle-unknown-solaris2$SUN_REL
955 ;;
956 *:GNU:*:*)
957 # the GNU system
958 GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'`
959 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'`
960 GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL
961 ;;
962 *:GNU/*:*:*)
963 # other systems with GNU libc and userland
964 GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"`
965 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
966 GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC
967 ;;
968 *:Minix:*:*)
969 GUESS=$UNAME_MACHINE-unknown-minix
970 ;;
971 aarch64:Linux:*:*)
972 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
973 ;;
974 aarch64_be:Linux:*:*)
975 UNAME_MACHINE=aarch64_be
976 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
977 ;;
978 alpha:Linux:*:*)
979 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
980 EV5) UNAME_MACHINE=alphaev5 ;;
981 EV56) UNAME_MACHINE=alphaev56 ;;
982 PCA56) UNAME_MACHINE=alphapca56 ;;
983 PCA57) UNAME_MACHINE=alphapca56 ;;
984 EV6) UNAME_MACHINE=alphaev6 ;;
985 EV67) UNAME_MACHINE=alphaev67 ;;
986 EV68*) UNAME_MACHINE=alphaev68 ;;
987 esac
988 objdump --private-headers /bin/sh | grep -q ld.so.1
989 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
990 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
991 ;;
992 arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
993 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
994 ;;
995 arm*:Linux:*:*)
996 set_cc_for_build
997 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
998 | grep -q __ARM_EABI__
999 then
1000 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1001 else
1002 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
1003 | grep -q __ARM_PCS_VFP
1004 then
1005 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi
1006 else
1007 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf
1008 fi
1009 fi
1010 ;;
1011 avr32*:Linux:*:*)
1012 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1013 ;;
1014 cris:Linux:*:*)
1015 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1016 ;;
1017 crisv32:Linux:*:*)
1018 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1019 ;;
1020 e2k:Linux:*:*)
1021 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1022 ;;
1023 frv:Linux:*:*)
1024 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1025 ;;
1026 hexagon:Linux:*:*)
1027 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1028 ;;
1029 i*86:Linux:*:*)
1030 GUESS=$UNAME_MACHINE-pc-linux-$LIBC
1031 ;;
1032 ia64:Linux:*:*)
1033 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1034 ;;
1035 k1om:Linux:*:*)
1036 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1037 ;;
1038 loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
1039 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1040 ;;
1041 m32r*:Linux:*:*)
1042 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1043 ;;
1044 m68*:Linux:*:*)
1045 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1046 ;;
1047 mips:Linux:*:* | mips64:Linux:*:*)
1048 set_cc_for_build
1049 IS_GLIBC=0
1050 test x"${LIBC}" = xgnu && IS_GLIBC=1
1051 sed 's/^ //' << EOF > "$dummy.c"
1052 #undef CPU
1053 #undef mips
1054 #undef mipsel
1055 #undef mips64
1056 #undef mips64el
1057 #if ${IS_GLIBC} && defined(_ABI64)
1058 LIBCABI=gnuabi64
1059 #else
1060 #if ${IS_GLIBC} && defined(_ABIN32)
1061 LIBCABI=gnuabin32
1062 #else
1063 LIBCABI=${LIBC}
1064 #endif
1065 #endif
1066
1067 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1068 CPU=mipsisa64r6
1069 #else
1070 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1071 CPU=mipsisa32r6
1072 #else
1073 #if defined(__mips64)
1074 CPU=mips64
1075 #else
1076 CPU=mips
1077 #endif
1078 #endif
1079 #endif
1080
1081 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
1082 MIPS_ENDIAN=el
1083 #else
1084 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
1085 MIPS_ENDIAN=
1086 #else
1087 MIPS_ENDIAN=
1088 #endif
1089 #endif
1090 EOF
1091 cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`
1092 eval "$cc_set_vars"
1093 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
1094 ;;
1095 mips64el:Linux:*:*)
1096 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1097 ;;
1098 openrisc*:Linux:*:*)
1099 GUESS=or1k-unknown-linux-$LIBC
1100 ;;
1101 or32:Linux:*:* | or1k*:Linux:*:*)
1102 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1103 ;;
1104 padre:Linux:*:*)
1105 GUESS=sparc-unknown-linux-$LIBC
1106 ;;
1107 parisc64:Linux:*:* | hppa64:Linux:*:*)
1108 GUESS=hppa64-unknown-linux-$LIBC
1109 ;;
1110 parisc:Linux:*:* | hppa:Linux:*:*)
1111 # Look for CPU level
1112 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1113 PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;;
1114 PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;;
1115 *) GUESS=hppa-unknown-linux-$LIBC ;;
1116 esac
1117 ;;
1118 ppc64:Linux:*:*)
1119 GUESS=powerpc64-unknown-linux-$LIBC
1120 ;;
1121 ppc:Linux:*:*)
1122 GUESS=powerpc-unknown-linux-$LIBC
1123 ;;
1124 ppc64le:Linux:*:*)
1125 GUESS=powerpc64le-unknown-linux-$LIBC
1126 ;;
1127 ppcle:Linux:*:*)
1128 GUESS=powerpcle-unknown-linux-$LIBC
1129 ;;
1130 riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
1131 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1132 ;;
1133 s390:Linux:*:* | s390x:Linux:*:*)
1134 GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
1135 ;;
1136 sh64*:Linux:*:*)
1137 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1138 ;;
1139 sh*:Linux:*:*)
1140 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1141 ;;
1142 sparc:Linux:*:* | sparc64:Linux:*:*)
1143 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1144 ;;
1145 tile*:Linux:*:*)
1146 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1147 ;;
1148 vax:Linux:*:*)
1149 GUESS=$UNAME_MACHINE-dec-linux-$LIBC
1150 ;;
1151 x86_64:Linux:*:*)
1152 set_cc_for_build
1153 LIBCABI=$LIBC
1154 if test "$CC_FOR_BUILD" != no_compiler_found; then
1155 if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
1156 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1157 grep IS_X32 >/dev/null
1158 then
1159 LIBCABI=${LIBC}x32
1160 fi
1161 fi
1162 GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI
1163 ;;
1164 xtensa*:Linux:*:*)
1165 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1166 ;;
1167 i*86:DYNIX/ptx:4*:*)
1168 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1169 # earlier versions are messed up and put the nodename in both
1170 # sysname and nodename.
1171 GUESS=i386-sequent-sysv4
1172 ;;
1173 i*86:UNIX_SV:4.2MP:2.*)
1174 # Unixware is an offshoot of SVR4, but it has its own version
1175 # number series starting with 2...
1176 # I am not positive that other SVR4 systems won't match this,
1177 # I just have to hope. -- rms.
1178 # Use sysv4.2uw... so that sysv4* matches it.
1179 GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
1180 ;;
1181 i*86:OS/2:*:*)
1182 # If we were able to find `uname', then EMX Unix compatibility
1183 # is probably installed.
1184 GUESS=$UNAME_MACHINE-pc-os2-emx
1185 ;;
1186 i*86:XTS-300:*:STOP)
1187 GUESS=$UNAME_MACHINE-unknown-stop
1188 ;;
1189 i*86:atheos:*:*)
1190 GUESS=$UNAME_MACHINE-unknown-atheos
1191 ;;
1192 i*86:syllable:*:*)
1193 GUESS=$UNAME_MACHINE-pc-syllable
1194 ;;
1195 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1196 GUESS=i386-unknown-lynxos$UNAME_RELEASE
1197 ;;
1198 i*86:*DOS:*:*)
1199 GUESS=$UNAME_MACHINE-pc-msdosdjgpp
1200 ;;
1201 i*86:*:4.*:*)
1202 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
1203 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1204 GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
1205 else
1206 GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
1207 fi
1208 ;;
1209 i*86:*:5:[678]*)
1210 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1211 case `/bin/uname -X | grep "^Machine"` in
1212 *486*) UNAME_MACHINE=i486 ;;
1213 *Pentium) UNAME_MACHINE=i586 ;;
1214 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1215 esac
1216 GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1217 ;;
1218 i*86:*:3.2:*)
1219 if test -f /usr/options/cb.name; then
1220 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1221 GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
1222 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1223 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1224 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1225 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1226 && UNAME_MACHINE=i586
1227 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1228 && UNAME_MACHINE=i686
1229 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1230 && UNAME_MACHINE=i686
1231 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
1232 else
1233 GUESS=$UNAME_MACHINE-pc-sysv32
1234 fi
1235 ;;
1236 pc:*:*:*)
1237 # Left here for compatibility:
1238 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1239 # the processor, so we play safe by assuming i586.
1240 # Note: whatever this is, it MUST be the same as what config.sub
1241 # prints for the "djgpp" host, or else GDB configure will decide that
1242 # this is a cross-build.
1243 GUESS=i586-pc-msdosdjgpp
1244 ;;
1245 Intel:Mach:3*:*)
1246 GUESS=i386-pc-mach3
1247 ;;
1248 paragon:*:*:*)
1249 GUESS=i860-intel-osf1
1250 ;;
1251 i860:*:4.*:*) # i860-SVR4
1252 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1253 GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4
1254 else # Add other i860-SVR4 vendors below as they are discovered.
1255 GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4
1256 fi
1257 ;;
1258 mini*:CTIX:SYS*5:*)
1259 # "miniframe"
1260 GUESS=m68010-convergent-sysv
1261 ;;
1262 mc68k:UNIX:SYSTEM5:3.51m)
1263 GUESS=m68k-convergent-sysv
1264 ;;
1265 M680?0:D-NIX:5.3:*)
1266 GUESS=m68k-diab-dnix
1267 ;;
1268 M68*:*:R3V[5678]*:*)
1269 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1270 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1271 OS_REL=''
1272 test -r /etc/.relid \
1273 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1274 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1275 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1276 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1277 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1278 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1279 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1280 && { echo i486-ncr-sysv4; exit; } ;;
1281 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1282 OS_REL='.3'
1283 test -r /etc/.relid \
1284 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1285 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1286 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1287 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1288 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
1289 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1290 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1291 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1292 GUESS=m68k-unknown-lynxos$UNAME_RELEASE
1293 ;;
1294 mc68030:UNIX_System_V:4.*:*)
1295 GUESS=m68k-atari-sysv4
1296 ;;
1297 TSUNAMI:LynxOS:2.*:*)
1298 GUESS=sparc-unknown-lynxos$UNAME_RELEASE
1299 ;;
1300 rs6000:LynxOS:2.*:*)
1301 GUESS=rs6000-unknown-lynxos$UNAME_RELEASE
1302 ;;
1303 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1304 GUESS=powerpc-unknown-lynxos$UNAME_RELEASE
1305 ;;
1306 SM[BE]S:UNIX_SV:*:*)
1307 GUESS=mips-dde-sysv$UNAME_RELEASE
1308 ;;
1309 RM*:ReliantUNIX-*:*:*)
1310 GUESS=mips-sni-sysv4
1311 ;;
1312 RM*:SINIX-*:*:*)
1313 GUESS=mips-sni-sysv4
1314 ;;
1315 *:SINIX-*:*:*)
1316 if uname -p 2>/dev/null >/dev/null ; then
1317 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1318 GUESS=$UNAME_MACHINE-sni-sysv4
1319 else
1320 GUESS=ns32k-sni-sysv
1321 fi
1322 ;;
1323 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1324 # says <Richard.M.Bartel@ccMail.Census.GOV>
1325 GUESS=i586-unisys-sysv4
1326 ;;
1327 *:UNIX_System_V:4*:FTX*)
1328 # From Gerald Hewes <hewes@openmarket.com>.
1329 # How about differentiating between stratus architectures? -djm
1330 GUESS=hppa1.1-stratus-sysv4
1331 ;;
1332 *:*:*:FTX*)
1333 # From seanf@swdc.stratus.com.
1334 GUESS=i860-stratus-sysv4
1335 ;;
1336 i*86:VOS:*:*)
1337 # From Paul.Green@stratus.com.
1338 GUESS=$UNAME_MACHINE-stratus-vos
1339 ;;
1340 *:VOS:*:*)
1341 # From Paul.Green@stratus.com.
1342 GUESS=hppa1.1-stratus-vos
1343 ;;
1344 mc68*:A/UX:*:*)
1345 GUESS=m68k-apple-aux$UNAME_RELEASE
1346 ;;
1347 news*:NEWS-OS:6*:*)
1348 GUESS=mips-sony-newsos6
1349 ;;
1350 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1351 if test -d /usr/nec; then
1352 GUESS=mips-nec-sysv$UNAME_RELEASE
1353 else
1354 GUESS=mips-unknown-sysv$UNAME_RELEASE
1355 fi
1356 ;;
1357 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1358 GUESS=powerpc-be-beos
1359 ;;
1360 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1361 GUESS=powerpc-apple-beos
1362 ;;
1363 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1364 GUESS=i586-pc-beos
1365 ;;
1366 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1367 GUESS=i586-pc-haiku
1368 ;;
1369 x86_64:Haiku:*:*)
1370 GUESS=x86_64-unknown-haiku
1371 ;;
1372 SX-4:SUPER-UX:*:*)
1373 GUESS=sx4-nec-superux$UNAME_RELEASE
1374 ;;
1375 SX-5:SUPER-UX:*:*)
1376 GUESS=sx5-nec-superux$UNAME_RELEASE
1377 ;;
1378 SX-6:SUPER-UX:*:*)
1379 GUESS=sx6-nec-superux$UNAME_RELEASE
1380 ;;
1381 SX-7:SUPER-UX:*:*)
1382 GUESS=sx7-nec-superux$UNAME_RELEASE
1383 ;;
1384 SX-8:SUPER-UX:*:*)
1385 GUESS=sx8-nec-superux$UNAME_RELEASE
1386 ;;
1387 SX-8R:SUPER-UX:*:*)
1388 GUESS=sx8r-nec-superux$UNAME_RELEASE
1389 ;;
1390 SX-ACE:SUPER-UX:*:*)
1391 GUESS=sxace-nec-superux$UNAME_RELEASE
1392 ;;
1393 Power*:Rhapsody:*:*)
1394 GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
1395 ;;
1396 *:Rhapsody:*:*)
1397 GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
1398 ;;
1399 arm64:Darwin:*:*)
1400 GUESS=aarch64-apple-darwin$UNAME_RELEASE
1401 ;;
1402 *:Darwin:*:*)
1403 UNAME_PROCESSOR=`uname -p`
1404 case $UNAME_PROCESSOR in
1405 unknown) UNAME_PROCESSOR=powerpc ;;
1406 esac
1407 if command -v xcode-select > /dev/null 2> /dev/null && \
1408 ! xcode-select --print-path > /dev/null 2> /dev/null ; then
1409 # Avoid executing cc if there is no toolchain installed as
1410 # cc will be a stub that puts up a graphical alert
1411 # prompting the user to install developer tools.
1412 CC_FOR_BUILD=no_compiler_found
1413 else
1414 set_cc_for_build
1415 fi
1416 if test "$CC_FOR_BUILD" != no_compiler_found; then
1417 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1418 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1419 grep IS_64BIT_ARCH >/dev/null
1420 then
1421 case $UNAME_PROCESSOR in
1422 i386) UNAME_PROCESSOR=x86_64 ;;
1423 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1424 esac
1425 fi
1426 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1427 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1428 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1429 grep IS_PPC >/dev/null
1430 then
1431 UNAME_PROCESSOR=powerpc
1432 fi
1433 elif test "$UNAME_PROCESSOR" = i386 ; then
1434 # uname -m returns i386 or x86_64
1435 UNAME_PROCESSOR=$UNAME_MACHINE
1436 fi
1437 GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE
1438 ;;
1439 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1440 UNAME_PROCESSOR=`uname -p`
1441 if test "$UNAME_PROCESSOR" = x86; then
1442 UNAME_PROCESSOR=i386
1443 UNAME_MACHINE=pc
1444 fi
1445 GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
1446 ;;
1447 *:QNX:*:4*)
1448 GUESS=i386-pc-qnx
1449 ;;
1450 NEO-*:NONSTOP_KERNEL:*:*)
1451 GUESS=neo-tandem-nsk$UNAME_RELEASE
1452 ;;
1453 NSE-*:NONSTOP_KERNEL:*:*)
1454 GUESS=nse-tandem-nsk$UNAME_RELEASE
1455 ;;
1456 NSR-*:NONSTOP_KERNEL:*:*)
1457 GUESS=nsr-tandem-nsk$UNAME_RELEASE
1458 ;;
1459 NSV-*:NONSTOP_KERNEL:*:*)
1460 GUESS=nsv-tandem-nsk$UNAME_RELEASE
1461 ;;
1462 NSX-*:NONSTOP_KERNEL:*:*)
1463 GUESS=nsx-tandem-nsk$UNAME_RELEASE
1464 ;;
1465 *:NonStop-UX:*:*)
1466 GUESS=mips-compaq-nonstopux
1467 ;;
1468 BS2000:POSIX*:*:*)
1469 GUESS=bs2000-siemens-sysv
1470 ;;
1471 DS/*:UNIX_System_V:*:*)
1472 GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
1473 ;;
1474 *:Plan9:*:*)
1475 # "uname -m" is not consistent, so use $cputype instead. 386
1476 # is converted to i386 for consistency with other x86
1477 # operating systems.
1478 if test "${cputype-}" = 386; then
1479 UNAME_MACHINE=i386
1480 elif test "x${cputype-}" != x; then
1481 UNAME_MACHINE=$cputype
1482 fi
1483 GUESS=$UNAME_MACHINE-unknown-plan9
1484 ;;
1485 *:TOPS-10:*:*)
1486 GUESS=pdp10-unknown-tops10
1487 ;;
1488 *:TENEX:*:*)
1489 GUESS=pdp10-unknown-tenex
1490 ;;
1491 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1492 GUESS=pdp10-dec-tops20
1493 ;;
1494 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1495 GUESS=pdp10-xkl-tops20
1496 ;;
1497 *:TOPS-20:*:*)
1498 GUESS=pdp10-unknown-tops20
1499 ;;
1500 *:ITS:*:*)
1501 GUESS=pdp10-unknown-its
1502 ;;
1503 SEI:*:*:SEIUX)
1504 GUESS=mips-sei-seiux$UNAME_RELEASE
1505 ;;
1506 *:DragonFly:*:*)
1507 DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
1508 GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL
1509 ;;
1510 *:*VMS:*:*)
1511 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1512 case $UNAME_MACHINE in
1513 A*) GUESS=alpha-dec-vms ;;
1514 I*) GUESS=ia64-dec-vms ;;
1515 V*) GUESS=vax-dec-vms ;;
1516 esac ;;
1517 *:XENIX:*:SysV)
1518 GUESS=i386-pc-xenix
1519 ;;
1520 i*86:skyos:*:*)
1521 SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
1522 GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
1523 ;;
1524 i*86:rdos:*:*)
1525 GUESS=$UNAME_MACHINE-pc-rdos
1526 ;;
1527 i*86:Fiwix:*:*)
1528 GUESS=$UNAME_MACHINE-pc-fiwix
1529 ;;
1530 *:AROS:*:*)
1531 GUESS=$UNAME_MACHINE-unknown-aros
1532 ;;
1533 x86_64:VMkernel:*:*)
1534 GUESS=$UNAME_MACHINE-unknown-esx
1535 ;;
1536 amd64:Isilon\ OneFS:*:*)
1537 GUESS=x86_64-unknown-onefs
1538 ;;
1539 *:Unleashed:*:*)
1540 GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
1541 ;;
1542 esac
1543
1544 # Do we have a guess based on uname results?
1545 if test "x$GUESS" != x; then
1546 echo "$GUESS"
1547 exit
1548 fi
1549
1550 # No uname command or uname output not recognized.
1551 set_cc_for_build
1552 cat > "$dummy.c" <<EOF
1553 #ifdef _SEQUENT_
1554 #include <sys/types.h>
1555 #include <sys/utsname.h>
1556 #endif
1557 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1558 #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1559 #include <signal.h>
1560 #if defined(_SIZE_T_) || defined(SIGLOST)
1561 #include <sys/utsname.h>
1562 #endif
1563 #endif
1564 #endif
1565 main ()
1566 {
1567 #if defined (sony)
1568 #if defined (MIPSEB)
1569 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1570 I don't know.... */
1571 printf ("mips-sony-bsd\n"); exit (0);
1572 #else
1573 #include <sys/param.h>
1574 printf ("m68k-sony-newsos%s\n",
1575 #ifdef NEWSOS4
1576 "4"
1577 #else
1578 ""
1579 #endif
1580 ); exit (0);
1581 #endif
1582 #endif
1583
1584 #if defined (NeXT)
1585 #if !defined (__ARCHITECTURE__)
1586 #define __ARCHITECTURE__ "m68k"
1587 #endif
1588 int version;
1589 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1590 if (version < 4)
1591 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1592 else
1593 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1594 exit (0);
1595 #endif
1596
1597 #if defined (MULTIMAX) || defined (n16)
1598 #if defined (UMAXV)
1599 printf ("ns32k-encore-sysv\n"); exit (0);
1600 #else
1601 #if defined (CMU)
1602 printf ("ns32k-encore-mach\n"); exit (0);
1603 #else
1604 printf ("ns32k-encore-bsd\n"); exit (0);
1605 #endif
1606 #endif
1607 #endif
1608
1609 #if defined (__386BSD__)
1610 printf ("i386-pc-bsd\n"); exit (0);
1611 #endif
1612
1613 #if defined (sequent)
1614 #if defined (i386)
1615 printf ("i386-sequent-dynix\n"); exit (0);
1616 #endif
1617 #if defined (ns32000)
1618 printf ("ns32k-sequent-dynix\n"); exit (0);
1619 #endif
1620 #endif
1621
1622 #if defined (_SEQUENT_)
1623 struct utsname un;
1624
1625 uname(&un);
1626 if (strncmp(un.version, "V2", 2) == 0) {
1627 printf ("i386-sequent-ptx2\n"); exit (0);
1628 }
1629 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1630 printf ("i386-sequent-ptx1\n"); exit (0);
1631 }
1632 printf ("i386-sequent-ptx\n"); exit (0);
1633 #endif
1634
1635 #if defined (vax)
1636 #if !defined (ultrix)
1637 #include <sys/param.h>
1638 #if defined (BSD)
1639 #if BSD == 43
1640 printf ("vax-dec-bsd4.3\n"); exit (0);
1641 #else
1642 #if BSD == 199006
1643 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1644 #else
1645 printf ("vax-dec-bsd\n"); exit (0);
1646 #endif
1647 #endif
1648 #else
1649 printf ("vax-dec-bsd\n"); exit (0);
1650 #endif
1651 #else
1652 #if defined(_SIZE_T_) || defined(SIGLOST)
1653 struct utsname un;
1654 uname (&un);
1655 printf ("vax-dec-ultrix%s\n", un.release); exit (0);
1656 #else
1657 printf ("vax-dec-ultrix\n"); exit (0);
1658 #endif
1659 #endif
1660 #endif
1661 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1662 #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1663 #if defined(_SIZE_T_) || defined(SIGLOST)
1664 struct utsname *un;
1665 uname (&un);
1666 printf ("mips-dec-ultrix%s\n", un.release); exit (0);
1667 #else
1668 printf ("mips-dec-ultrix\n"); exit (0);
1669 #endif
1670 #endif
1671 #endif
1672
1673 #if defined (alliant) && defined (i860)
1674 printf ("i860-alliant-bsd\n"); exit (0);
1675 #endif
1676
1677 exit (1);
1678 }
1679 EOF
1680
1681 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` &&
1682 { echo "$SYSTEM_NAME"; exit; }
1683
1684 # Apollos put the system type in the environment.
1685 test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }
1686
1687 echo "$0: unable to guess system type" >&2
1688
1689 case $UNAME_MACHINE:$UNAME_SYSTEM in
1690 mips:Linux | mips64:Linux)
1691 # If we got here on MIPS GNU/Linux, output extra information.
1692 cat >&2 <<EOF
1693
1694 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1695 the system type. Please install a C compiler and try again.
1696 EOF
1697 ;;
1698 esac
1699
1700 cat >&2 <<EOF
1701
1702 This script (version $timestamp), has failed to recognize the
1703 operating system you are using. If your script is old, overwrite *all*
1704 copies of config.guess and config.sub with the latest versions from:
1705
1706 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
1707 and
1708 https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
1709 EOF
1710
1711 our_year=`echo $timestamp | sed 's,-.*,,'`
1712 thisyear=`date +%Y`
1713 # shellcheck disable=SC2003
1714 script_age=`expr "$thisyear" - "$our_year"`
1715 if test "$script_age" -lt 3 ; then
1716 cat >&2 <<EOF
1717
1718 If $0 has already been updated, send the following data and any
1719 information you think might be pertinent to config-patches@gnu.org to
1720 provide the necessary information to handle your system.
1721
1722 config.guess timestamp = $timestamp
1723
1724 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1725 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1726 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1727 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1728
1729 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1730 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1731
1732 hostinfo = `(hostinfo) 2>/dev/null`
1733 /bin/universe = `(/bin/universe) 2>/dev/null`
1734 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1735 /bin/arch = `(/bin/arch) 2>/dev/null`
1736 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1737 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1738
1739 UNAME_MACHINE = "$UNAME_MACHINE"
1740 UNAME_RELEASE = "$UNAME_RELEASE"
1741 UNAME_SYSTEM = "$UNAME_SYSTEM"
1742 UNAME_VERSION = "$UNAME_VERSION"
1743 EOF
1744 fi
1745
1746 exit 1
1747
1748 # Local variables:
1749 # eval: (add-hook 'before-save-hook 'time-stamp)
1750 # time-stamp-start: "timestamp='"
1751 # time-stamp-format: "%:y-%02m-%02d"
1752 # time-stamp-end: "'"
1753 # End:
3636 /* Define to 1 if you have the <malloc.h> header file. */
3737 #undef HAVE_MALLOC_H
3838
39 /* Define to 1 if you have the <memory.h> header file. */
40 #undef HAVE_MEMORY_H
41
4239 /* Define to 1 if you have the `memset' function. */
4340 #undef HAVE_MEMSET
4441
7572
7673 /* Define to 1 if you have the <stdint.h> header file. */
7774 #undef HAVE_STDINT_H
75
76 /* Define to 1 if you have the <stdio.h> header file. */
77 #undef HAVE_STDIO_H
7878
7979 /* Define to 1 if you have the <stdlib.h> header file. */
8080 #undef HAVE_STDLIB_H
139139 /* Define to the version of this package. */
140140 #undef PACKAGE_VERSION
141141
142 /* Define to 1 if you have the ANSI C header files. */
142 /* Define to 1 if all of the C90 standard headers exist (not just the ones
143 required in a freestanding environment). This macro is provided for
144 backward compatibility; new code need not use it. */
143145 #undef STDC_HEADERS
144146
145147 /* Version number of package */
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright 1992-2022 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2022-01-03'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, see <https://www.gnu.org/licenses/>.
20 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that
25 # program. This Exception is an additional permission under section 7
26 # of the GNU General Public License, version 3 ("GPLv3").
27
28
29 # Please send patches to <config-patches@gnu.org>.
30 #
31 # Configuration subroutine to validate and canonicalize a configuration type.
32 # Supply the specified configuration type as an argument.
33 # If it is invalid, we print an error message on stderr and exit with code 1.
34 # Otherwise, we print the canonical config type on stdout and succeed.
35
36 # You can get the latest version of this script from:
37 # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
38
39 # This file is supposed to be the same for all GNU packages
40 # and recognize all the CPU types, system types and aliases
41 # that are meaningful with *any* GNU software.
42 # Each package is responsible for reporting which valid configurations
43 # it does not support. The user should be able to distinguish
44 # a failure to support a valid configuration from a meaningless
45 # configuration.
46
47 # The goal of this file is to map all the various variations of a given
48 # machine specification into a single specification in the form:
49 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
50 # or in some cases, the newer four-part form:
51 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
52 # It is wrong to echo any other type of specification.
53
54 # The "shellcheck disable" line above the timestamp inhibits complaints
55 # about features and limitations of the classic Bourne shell that were
56 # superseded or lifted in POSIX. However, this script identifies a wide
57 # variety of pre-POSIX systems that do not have POSIX shells at all, and
58 # even some reasonably current systems (Solaris 10 as case-in-point) still
59 # have a pre-POSIX /bin/sh.
60
61 me=`echo "$0" | sed -e 's,.*/,,'`
62
63 usage="\
64 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
65
66 Canonicalize a configuration name.
67
68 Options:
69 -h, --help print this help, then exit
70 -t, --time-stamp print date of last modification, then exit
71 -v, --version print version number, then exit
72
73 Report bugs and patches to <config-patches@gnu.org>."
74
75 version="\
76 GNU config.sub ($timestamp)
77
78 Copyright 1992-2022 Free Software Foundation, Inc.
79
80 This is free software; see the source for copying conditions. There is NO
81 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
82
83 help="
84 Try \`$me --help' for more information."
85
86 # Parse command line
87 while test $# -gt 0 ; do
88 case $1 in
89 --time-stamp | --time* | -t )
90 echo "$timestamp" ; exit ;;
91 --version | -v )
92 echo "$version" ; exit ;;
93 --help | --h* | -h )
94 echo "$usage"; exit ;;
95 -- ) # Stop option processing
96 shift; break ;;
97 - ) # Use stdin as input.
98 break ;;
99 -* )
100 echo "$me: invalid option $1$help" >&2
101 exit 1 ;;
102
103 *local*)
104 # First pass through any local machine types.
105 echo "$1"
106 exit ;;
107
108 * )
109 break ;;
110 esac
111 done
112
113 case $# in
114 0) echo "$me: missing argument$help" >&2
115 exit 1;;
116 1) ;;
117 *) echo "$me: too many arguments$help" >&2
118 exit 1;;
119 esac
120
121 # Split fields of configuration type
122 # shellcheck disable=SC2162
123 saved_IFS=$IFS
124 IFS="-" read field1 field2 field3 field4 <<EOF
125 $1
126 EOF
127 IFS=$saved_IFS
128
129 # Separate into logical components for further validation
130 case $1 in
131 *-*-*-*-*)
132 echo Invalid configuration \`"$1"\': more than four components >&2
133 exit 1
134 ;;
135 *-*-*-*)
136 basic_machine=$field1-$field2
137 basic_os=$field3-$field4
138 ;;
139 *-*-*)
140 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
141 # parts
142 maybe_os=$field2-$field3
143 case $maybe_os in
144 nto-qnx* | linux-* | uclinux-uclibc* \
145 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
146 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
147 | storm-chaos* | os2-emx* | rtmk-nova*)
148 basic_machine=$field1
149 basic_os=$maybe_os
150 ;;
151 android-linux)
152 basic_machine=$field1-unknown
153 basic_os=linux-android
154 ;;
155 *)
156 basic_machine=$field1-$field2
157 basic_os=$field3
158 ;;
159 esac
160 ;;
161 *-*)
162 # A lone config we happen to match not fitting any pattern
163 case $field1-$field2 in
164 decstation-3100)
165 basic_machine=mips-dec
166 basic_os=
167 ;;
168 *-*)
169 # Second component is usually, but not always the OS
170 case $field2 in
171 # Prevent following clause from handling this valid os
172 sun*os*)
173 basic_machine=$field1
174 basic_os=$field2
175 ;;
176 zephyr*)
177 basic_machine=$field1-unknown
178 basic_os=$field2
179 ;;
180 # Manufacturers
181 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
182 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
183 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
184 | convergent* | ncr* | news | 32* | 3600* | 3100* \
185 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
186 | ultra | tti* | harris | dolphin | highlevel | gould \
187 | cbm | ns | masscomp | apple | axis | knuth | cray \
188 | microblaze* | sim | cisco \
189 | oki | wec | wrs | winbond)
190 basic_machine=$field1-$field2
191 basic_os=
192 ;;
193 *)
194 basic_machine=$field1
195 basic_os=$field2
196 ;;
197 esac
198 ;;
199 esac
200 ;;
201 *)
202 # Convert single-component short-hands not valid as part of
203 # multi-component configurations.
204 case $field1 in
205 386bsd)
206 basic_machine=i386-pc
207 basic_os=bsd
208 ;;
209 a29khif)
210 basic_machine=a29k-amd
211 basic_os=udi
212 ;;
213 adobe68k)
214 basic_machine=m68010-adobe
215 basic_os=scout
216 ;;
217 alliant)
218 basic_machine=fx80-alliant
219 basic_os=
220 ;;
221 altos | altos3068)
222 basic_machine=m68k-altos
223 basic_os=
224 ;;
225 am29k)
226 basic_machine=a29k-none
227 basic_os=bsd
228 ;;
229 amdahl)
230 basic_machine=580-amdahl
231 basic_os=sysv
232 ;;
233 amiga)
234 basic_machine=m68k-unknown
235 basic_os=
236 ;;
237 amigaos | amigados)
238 basic_machine=m68k-unknown
239 basic_os=amigaos
240 ;;
241 amigaunix | amix)
242 basic_machine=m68k-unknown
243 basic_os=sysv4
244 ;;
245 apollo68)
246 basic_machine=m68k-apollo
247 basic_os=sysv
248 ;;
249 apollo68bsd)
250 basic_machine=m68k-apollo
251 basic_os=bsd
252 ;;
253 aros)
254 basic_machine=i386-pc
255 basic_os=aros
256 ;;
257 aux)
258 basic_machine=m68k-apple
259 basic_os=aux
260 ;;
261 balance)
262 basic_machine=ns32k-sequent
263 basic_os=dynix
264 ;;
265 blackfin)
266 basic_machine=bfin-unknown
267 basic_os=linux
268 ;;
269 cegcc)
270 basic_machine=arm-unknown
271 basic_os=cegcc
272 ;;
273 convex-c1)
274 basic_machine=c1-convex
275 basic_os=bsd
276 ;;
277 convex-c2)
278 basic_machine=c2-convex
279 basic_os=bsd
280 ;;
281 convex-c32)
282 basic_machine=c32-convex
283 basic_os=bsd
284 ;;
285 convex-c34)
286 basic_machine=c34-convex
287 basic_os=bsd
288 ;;
289 convex-c38)
290 basic_machine=c38-convex
291 basic_os=bsd
292 ;;
293 cray)
294 basic_machine=j90-cray
295 basic_os=unicos
296 ;;
297 crds | unos)
298 basic_machine=m68k-crds
299 basic_os=
300 ;;
301 da30)
302 basic_machine=m68k-da30
303 basic_os=
304 ;;
305 decstation | pmax | pmin | dec3100 | decstatn)
306 basic_machine=mips-dec
307 basic_os=
308 ;;
309 delta88)
310 basic_machine=m88k-motorola
311 basic_os=sysv3
312 ;;
313 dicos)
314 basic_machine=i686-pc
315 basic_os=dicos
316 ;;
317 djgpp)
318 basic_machine=i586-pc
319 basic_os=msdosdjgpp
320 ;;
321 ebmon29k)
322 basic_machine=a29k-amd
323 basic_os=ebmon
324 ;;
325 es1800 | OSE68k | ose68k | ose | OSE)
326 basic_machine=m68k-ericsson
327 basic_os=ose
328 ;;
329 gmicro)
330 basic_machine=tron-gmicro
331 basic_os=sysv
332 ;;
333 go32)
334 basic_machine=i386-pc
335 basic_os=go32
336 ;;
337 h8300hms)
338 basic_machine=h8300-hitachi
339 basic_os=hms
340 ;;
341 h8300xray)
342 basic_machine=h8300-hitachi
343 basic_os=xray
344 ;;
345 h8500hms)
346 basic_machine=h8500-hitachi
347 basic_os=hms
348 ;;
349 harris)
350 basic_machine=m88k-harris
351 basic_os=sysv3
352 ;;
353 hp300 | hp300hpux)
354 basic_machine=m68k-hp
355 basic_os=hpux
356 ;;
357 hp300bsd)
358 basic_machine=m68k-hp
359 basic_os=bsd
360 ;;
361 hppaosf)
362 basic_machine=hppa1.1-hp
363 basic_os=osf
364 ;;
365 hppro)
366 basic_machine=hppa1.1-hp
367 basic_os=proelf
368 ;;
369 i386mach)
370 basic_machine=i386-mach
371 basic_os=mach
372 ;;
373 isi68 | isi)
374 basic_machine=m68k-isi
375 basic_os=sysv
376 ;;
377 m68knommu)
378 basic_machine=m68k-unknown
379 basic_os=linux
380 ;;
381 magnum | m3230)
382 basic_machine=mips-mips
383 basic_os=sysv
384 ;;
385 merlin)
386 basic_machine=ns32k-utek
387 basic_os=sysv
388 ;;
389 mingw64)
390 basic_machine=x86_64-pc
391 basic_os=mingw64
392 ;;
393 mingw32)
394 basic_machine=i686-pc
395 basic_os=mingw32
396 ;;
397 mingw32ce)
398 basic_machine=arm-unknown
399 basic_os=mingw32ce
400 ;;
401 monitor)
402 basic_machine=m68k-rom68k
403 basic_os=coff
404 ;;
405 morphos)
406 basic_machine=powerpc-unknown
407 basic_os=morphos
408 ;;
409 moxiebox)
410 basic_machine=moxie-unknown
411 basic_os=moxiebox
412 ;;
413 msdos)
414 basic_machine=i386-pc
415 basic_os=msdos
416 ;;
417 msys)
418 basic_machine=i686-pc
419 basic_os=msys
420 ;;
421 mvs)
422 basic_machine=i370-ibm
423 basic_os=mvs
424 ;;
425 nacl)
426 basic_machine=le32-unknown
427 basic_os=nacl
428 ;;
429 ncr3000)
430 basic_machine=i486-ncr
431 basic_os=sysv4
432 ;;
433 netbsd386)
434 basic_machine=i386-pc
435 basic_os=netbsd
436 ;;
437 netwinder)
438 basic_machine=armv4l-rebel
439 basic_os=linux
440 ;;
441 news | news700 | news800 | news900)
442 basic_machine=m68k-sony
443 basic_os=newsos
444 ;;
445 news1000)
446 basic_machine=m68030-sony
447 basic_os=newsos
448 ;;
449 necv70)
450 basic_machine=v70-nec
451 basic_os=sysv
452 ;;
453 nh3000)
454 basic_machine=m68k-harris
455 basic_os=cxux
456 ;;
457 nh[45]000)
458 basic_machine=m88k-harris
459 basic_os=cxux
460 ;;
461 nindy960)
462 basic_machine=i960-intel
463 basic_os=nindy
464 ;;
465 mon960)
466 basic_machine=i960-intel
467 basic_os=mon960
468 ;;
469 nonstopux)
470 basic_machine=mips-compaq
471 basic_os=nonstopux
472 ;;
473 os400)
474 basic_machine=powerpc-ibm
475 basic_os=os400
476 ;;
477 OSE68000 | ose68000)
478 basic_machine=m68000-ericsson
479 basic_os=ose
480 ;;
481 os68k)
482 basic_machine=m68k-none
483 basic_os=os68k
484 ;;
485 paragon)
486 basic_machine=i860-intel
487 basic_os=osf
488 ;;
489 parisc)
490 basic_machine=hppa-unknown
491 basic_os=linux
492 ;;
493 psp)
494 basic_machine=mipsallegrexel-sony
495 basic_os=psp
496 ;;
497 pw32)
498 basic_machine=i586-unknown
499 basic_os=pw32
500 ;;
501 rdos | rdos64)
502 basic_machine=x86_64-pc
503 basic_os=rdos
504 ;;
505 rdos32)
506 basic_machine=i386-pc
507 basic_os=rdos
508 ;;
509 rom68k)
510 basic_machine=m68k-rom68k
511 basic_os=coff
512 ;;
513 sa29200)
514 basic_machine=a29k-amd
515 basic_os=udi
516 ;;
517 sei)
518 basic_machine=mips-sei
519 basic_os=seiux
520 ;;
521 sequent)
522 basic_machine=i386-sequent
523 basic_os=
524 ;;
525 sps7)
526 basic_machine=m68k-bull
527 basic_os=sysv2
528 ;;
529 st2000)
530 basic_machine=m68k-tandem
531 basic_os=
532 ;;
533 stratus)
534 basic_machine=i860-stratus
535 basic_os=sysv4
536 ;;
537 sun2)
538 basic_machine=m68000-sun
539 basic_os=
540 ;;
541 sun2os3)
542 basic_machine=m68000-sun
543 basic_os=sunos3
544 ;;
545 sun2os4)
546 basic_machine=m68000-sun
547 basic_os=sunos4
548 ;;
549 sun3)
550 basic_machine=m68k-sun
551 basic_os=
552 ;;
553 sun3os3)
554 basic_machine=m68k-sun
555 basic_os=sunos3
556 ;;
557 sun3os4)
558 basic_machine=m68k-sun
559 basic_os=sunos4
560 ;;
561 sun4)
562 basic_machine=sparc-sun
563 basic_os=
564 ;;
565 sun4os3)
566 basic_machine=sparc-sun
567 basic_os=sunos3
568 ;;
569 sun4os4)
570 basic_machine=sparc-sun
571 basic_os=sunos4
572 ;;
573 sun4sol2)
574 basic_machine=sparc-sun
575 basic_os=solaris2
576 ;;
577 sun386 | sun386i | roadrunner)
578 basic_machine=i386-sun
579 basic_os=
580 ;;
581 sv1)
582 basic_machine=sv1-cray
583 basic_os=unicos
584 ;;
585 symmetry)
586 basic_machine=i386-sequent
587 basic_os=dynix
588 ;;
589 t3e)
590 basic_machine=alphaev5-cray
591 basic_os=unicos
592 ;;
593 t90)
594 basic_machine=t90-cray
595 basic_os=unicos
596 ;;
597 toad1)
598 basic_machine=pdp10-xkl
599 basic_os=tops20
600 ;;
601 tpf)
602 basic_machine=s390x-ibm
603 basic_os=tpf
604 ;;
605 udi29k)
606 basic_machine=a29k-amd
607 basic_os=udi
608 ;;
609 ultra3)
610 basic_machine=a29k-nyu
611 basic_os=sym1
612 ;;
613 v810 | necv810)
614 basic_machine=v810-nec
615 basic_os=none
616 ;;
617 vaxv)
618 basic_machine=vax-dec
619 basic_os=sysv
620 ;;
621 vms)
622 basic_machine=vax-dec
623 basic_os=vms
624 ;;
625 vsta)
626 basic_machine=i386-pc
627 basic_os=vsta
628 ;;
629 vxworks960)
630 basic_machine=i960-wrs
631 basic_os=vxworks
632 ;;
633 vxworks68)
634 basic_machine=m68k-wrs
635 basic_os=vxworks
636 ;;
637 vxworks29k)
638 basic_machine=a29k-wrs
639 basic_os=vxworks
640 ;;
641 xbox)
642 basic_machine=i686-pc
643 basic_os=mingw32
644 ;;
645 ymp)
646 basic_machine=ymp-cray
647 basic_os=unicos
648 ;;
649 *)
650 basic_machine=$1
651 basic_os=
652 ;;
653 esac
654 ;;
655 esac
656
657 # Decode 1-component or ad-hoc basic machines
658 case $basic_machine in
659 # Here we handle the default manufacturer of certain CPU types. It is in
660 # some cases the only manufacturer, in others, it is the most popular.
661 w89k)
662 cpu=hppa1.1
663 vendor=winbond
664 ;;
665 op50n)
666 cpu=hppa1.1
667 vendor=oki
668 ;;
669 op60c)
670 cpu=hppa1.1
671 vendor=oki
672 ;;
673 ibm*)
674 cpu=i370
675 vendor=ibm
676 ;;
677 orion105)
678 cpu=clipper
679 vendor=highlevel
680 ;;
681 mac | mpw | mac-mpw)
682 cpu=m68k
683 vendor=apple
684 ;;
685 pmac | pmac-mpw)
686 cpu=powerpc
687 vendor=apple
688 ;;
689
690 # Recognize the various machine names and aliases which stand
691 # for a CPU type and a company and sometimes even an OS.
692 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
693 cpu=m68000
694 vendor=att
695 ;;
696 3b*)
697 cpu=we32k
698 vendor=att
699 ;;
700 bluegene*)
701 cpu=powerpc
702 vendor=ibm
703 basic_os=cnk
704 ;;
705 decsystem10* | dec10*)
706 cpu=pdp10
707 vendor=dec
708 basic_os=tops10
709 ;;
710 decsystem20* | dec20*)
711 cpu=pdp10
712 vendor=dec
713 basic_os=tops20
714 ;;
715 delta | 3300 | motorola-3300 | motorola-delta \
716 | 3300-motorola | delta-motorola)
717 cpu=m68k
718 vendor=motorola
719 ;;
720 dpx2*)
721 cpu=m68k
722 vendor=bull
723 basic_os=sysv3
724 ;;
725 encore | umax | mmax)
726 cpu=ns32k
727 vendor=encore
728 ;;
729 elxsi)
730 cpu=elxsi
731 vendor=elxsi
732 basic_os=${basic_os:-bsd}
733 ;;
734 fx2800)
735 cpu=i860
736 vendor=alliant
737 ;;
738 genix)
739 cpu=ns32k
740 vendor=ns
741 ;;
742 h3050r* | hiux*)
743 cpu=hppa1.1
744 vendor=hitachi
745 basic_os=hiuxwe2
746 ;;
747 hp3k9[0-9][0-9] | hp9[0-9][0-9])
748 cpu=hppa1.0
749 vendor=hp
750 ;;
751 hp9k2[0-9][0-9] | hp9k31[0-9])
752 cpu=m68000
753 vendor=hp
754 ;;
755 hp9k3[2-9][0-9])
756 cpu=m68k
757 vendor=hp
758 ;;
759 hp9k6[0-9][0-9] | hp6[0-9][0-9])
760 cpu=hppa1.0
761 vendor=hp
762 ;;
763 hp9k7[0-79][0-9] | hp7[0-79][0-9])
764 cpu=hppa1.1
765 vendor=hp
766 ;;
767 hp9k78[0-9] | hp78[0-9])
768 # FIXME: really hppa2.0-hp
769 cpu=hppa1.1
770 vendor=hp
771 ;;
772 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
773 # FIXME: really hppa2.0-hp
774 cpu=hppa1.1
775 vendor=hp
776 ;;
777 hp9k8[0-9][13679] | hp8[0-9][13679])
778 cpu=hppa1.1
779 vendor=hp
780 ;;
781 hp9k8[0-9][0-9] | hp8[0-9][0-9])
782 cpu=hppa1.0
783 vendor=hp
784 ;;
785 i*86v32)
786 cpu=`echo "$1" | sed -e 's/86.*/86/'`
787 vendor=pc
788 basic_os=sysv32
789 ;;
790 i*86v4*)
791 cpu=`echo "$1" | sed -e 's/86.*/86/'`
792 vendor=pc
793 basic_os=sysv4
794 ;;
795 i*86v)
796 cpu=`echo "$1" | sed -e 's/86.*/86/'`
797 vendor=pc
798 basic_os=sysv
799 ;;
800 i*86sol2)
801 cpu=`echo "$1" | sed -e 's/86.*/86/'`
802 vendor=pc
803 basic_os=solaris2
804 ;;
805 j90 | j90-cray)
806 cpu=j90
807 vendor=cray
808 basic_os=${basic_os:-unicos}
809 ;;
810 iris | iris4d)
811 cpu=mips
812 vendor=sgi
813 case $basic_os in
814 irix*)
815 ;;
816 *)
817 basic_os=irix4
818 ;;
819 esac
820 ;;
821 miniframe)
822 cpu=m68000
823 vendor=convergent
824 ;;
825 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
826 cpu=m68k
827 vendor=atari
828 basic_os=mint
829 ;;
830 news-3600 | risc-news)
831 cpu=mips
832 vendor=sony
833 basic_os=newsos
834 ;;
835 next | m*-next)
836 cpu=m68k
837 vendor=next
838 case $basic_os in
839 openstep*)
840 ;;
841 nextstep*)
842 ;;
843 ns2*)
844 basic_os=nextstep2
845 ;;
846 *)
847 basic_os=nextstep3
848 ;;
849 esac
850 ;;
851 np1)
852 cpu=np1
853 vendor=gould
854 ;;
855 op50n-* | op60c-*)
856 cpu=hppa1.1
857 vendor=oki
858 basic_os=proelf
859 ;;
860 pa-hitachi)
861 cpu=hppa1.1
862 vendor=hitachi
863 basic_os=hiuxwe2
864 ;;
865 pbd)
866 cpu=sparc
867 vendor=tti
868 ;;
869 pbb)
870 cpu=m68k
871 vendor=tti
872 ;;
873 pc532)
874 cpu=ns32k
875 vendor=pc532
876 ;;
877 pn)
878 cpu=pn
879 vendor=gould
880 ;;
881 power)
882 cpu=power
883 vendor=ibm
884 ;;
885 ps2)
886 cpu=i386
887 vendor=ibm
888 ;;
889 rm[46]00)
890 cpu=mips
891 vendor=siemens
892 ;;
893 rtpc | rtpc-*)
894 cpu=romp
895 vendor=ibm
896 ;;
897 sde)
898 cpu=mipsisa32
899 vendor=sde
900 basic_os=${basic_os:-elf}
901 ;;
902 simso-wrs)
903 cpu=sparclite
904 vendor=wrs
905 basic_os=vxworks
906 ;;
907 tower | tower-32)
908 cpu=m68k
909 vendor=ncr
910 ;;
911 vpp*|vx|vx-*)
912 cpu=f301
913 vendor=fujitsu
914 ;;
915 w65)
916 cpu=w65
917 vendor=wdc
918 ;;
919 w89k-*)
920 cpu=hppa1.1
921 vendor=winbond
922 basic_os=proelf
923 ;;
924 none)
925 cpu=none
926 vendor=none
927 ;;
928 leon|leon[3-9])
929 cpu=sparc
930 vendor=$basic_machine
931 ;;
932 leon-*|leon[3-9]-*)
933 cpu=sparc
934 vendor=`echo "$basic_machine" | sed 's/-.*//'`
935 ;;
936
937 *-*)
938 # shellcheck disable=SC2162
939 saved_IFS=$IFS
940 IFS="-" read cpu vendor <<EOF
941 $basic_machine
942 EOF
943 IFS=$saved_IFS
944 ;;
945 # We use `pc' rather than `unknown'
946 # because (1) that's what they normally are, and
947 # (2) the word "unknown" tends to confuse beginning users.
948 i*86 | x86_64)
949 cpu=$basic_machine
950 vendor=pc
951 ;;
952 # These rules are duplicated from below for sake of the special case above;
953 # i.e. things that normalized to x86 arches should also default to "pc"
954 pc98)
955 cpu=i386
956 vendor=pc
957 ;;
958 x64 | amd64)
959 cpu=x86_64
960 vendor=pc
961 ;;
962 # Recognize the basic CPU types without company name.
963 *)
964 cpu=$basic_machine
965 vendor=unknown
966 ;;
967 esac
968
969 unset -v basic_machine
970
971 # Decode basic machines in the full and proper CPU-Company form.
972 case $cpu-$vendor in
973 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
974 # some cases the only manufacturer, in others, it is the most popular.
975 craynv-unknown)
976 vendor=cray
977 basic_os=${basic_os:-unicosmp}
978 ;;
979 c90-unknown | c90-cray)
980 vendor=cray
981 basic_os=${Basic_os:-unicos}
982 ;;
983 fx80-unknown)
984 vendor=alliant
985 ;;
986 romp-unknown)
987 vendor=ibm
988 ;;
989 mmix-unknown)
990 vendor=knuth
991 ;;
992 microblaze-unknown | microblazeel-unknown)
993 vendor=xilinx
994 ;;
995 rs6000-unknown)
996 vendor=ibm
997 ;;
998 vax-unknown)
999 vendor=dec
1000 ;;
1001 pdp11-unknown)
1002 vendor=dec
1003 ;;
1004 we32k-unknown)
1005 vendor=att
1006 ;;
1007 cydra-unknown)
1008 vendor=cydrome
1009 ;;
1010 i370-ibm*)
1011 vendor=ibm
1012 ;;
1013 orion-unknown)
1014 vendor=highlevel
1015 ;;
1016 xps-unknown | xps100-unknown)
1017 cpu=xps100
1018 vendor=honeywell
1019 ;;
1020
1021 # Here we normalize CPU types with a missing or matching vendor
1022 armh-unknown | armh-alt)
1023 cpu=armv7l
1024 vendor=alt
1025 basic_os=${basic_os:-linux-gnueabihf}
1026 ;;
1027 dpx20-unknown | dpx20-bull)
1028 cpu=rs6000
1029 vendor=bull
1030 basic_os=${basic_os:-bosx}
1031 ;;
1032
1033 # Here we normalize CPU types irrespective of the vendor
1034 amd64-*)
1035 cpu=x86_64
1036 ;;
1037 blackfin-*)
1038 cpu=bfin
1039 basic_os=linux
1040 ;;
1041 c54x-*)
1042 cpu=tic54x
1043 ;;
1044 c55x-*)
1045 cpu=tic55x
1046 ;;
1047 c6x-*)
1048 cpu=tic6x
1049 ;;
1050 e500v[12]-*)
1051 cpu=powerpc
1052 basic_os=${basic_os}"spe"
1053 ;;
1054 mips3*-*)
1055 cpu=mips64
1056 ;;
1057 ms1-*)
1058 cpu=mt
1059 ;;
1060 m68knommu-*)
1061 cpu=m68k
1062 basic_os=linux
1063 ;;
1064 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1065 cpu=s12z
1066 ;;
1067 openrisc-*)
1068 cpu=or32
1069 ;;
1070 parisc-*)
1071 cpu=hppa
1072 basic_os=linux
1073 ;;
1074 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1075 cpu=i586
1076 ;;
1077 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1078 cpu=i686
1079 ;;
1080 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1081 cpu=i686
1082 ;;
1083 pentium4-*)
1084 cpu=i786
1085 ;;
1086 pc98-*)
1087 cpu=i386
1088 ;;
1089 ppc-* | ppcbe-*)
1090 cpu=powerpc
1091 ;;
1092 ppcle-* | powerpclittle-*)
1093 cpu=powerpcle
1094 ;;
1095 ppc64-*)
1096 cpu=powerpc64
1097 ;;
1098 ppc64le-* | powerpc64little-*)
1099 cpu=powerpc64le
1100 ;;
1101 sb1-*)
1102 cpu=mipsisa64sb1
1103 ;;
1104 sb1el-*)
1105 cpu=mipsisa64sb1el
1106 ;;
1107 sh5e[lb]-*)
1108 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1109 ;;
1110 spur-*)
1111 cpu=spur
1112 ;;
1113 strongarm-* | thumb-*)
1114 cpu=arm
1115 ;;
1116 tx39-*)
1117 cpu=mipstx39
1118 ;;
1119 tx39el-*)
1120 cpu=mipstx39el
1121 ;;
1122 x64-*)
1123 cpu=x86_64
1124 ;;
1125 xscale-* | xscalee[bl]-*)
1126 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1127 ;;
1128 arm64-* | aarch64le-*)
1129 cpu=aarch64
1130 ;;
1131
1132 # Recognize the canonical CPU Types that limit and/or modify the
1133 # company names they are paired with.
1134 cr16-*)
1135 basic_os=${basic_os:-elf}
1136 ;;
1137 crisv32-* | etraxfs*-*)
1138 cpu=crisv32
1139 vendor=axis
1140 ;;
1141 cris-* | etrax*-*)
1142 cpu=cris
1143 vendor=axis
1144 ;;
1145 crx-*)
1146 basic_os=${basic_os:-elf}
1147 ;;
1148 neo-tandem)
1149 cpu=neo
1150 vendor=tandem
1151 ;;
1152 nse-tandem)
1153 cpu=nse
1154 vendor=tandem
1155 ;;
1156 nsr-tandem)
1157 cpu=nsr
1158 vendor=tandem
1159 ;;
1160 nsv-tandem)
1161 cpu=nsv
1162 vendor=tandem
1163 ;;
1164 nsx-tandem)
1165 cpu=nsx
1166 vendor=tandem
1167 ;;
1168 mipsallegrexel-sony)
1169 cpu=mipsallegrexel
1170 vendor=sony
1171 ;;
1172 tile*-*)
1173 basic_os=${basic_os:-linux-gnu}
1174 ;;
1175
1176 *)
1177 # Recognize the canonical CPU types that are allowed with any
1178 # company name.
1179 case $cpu in
1180 1750a | 580 \
1181 | a29k \
1182 | aarch64 | aarch64_be \
1183 | abacus \
1184 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1185 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1186 | alphapca5[67] | alpha64pca5[67] \
1187 | am33_2.0 \
1188 | amdgcn \
1189 | arc | arceb | arc32 | arc64 \
1190 | arm | arm[lb]e | arme[lb] | armv* \
1191 | avr | avr32 \
1192 | asmjs \
1193 | ba \
1194 | be32 | be64 \
1195 | bfin | bpf | bs2000 \
1196 | c[123]* | c30 | [cjt]90 | c4x \
1197 | c8051 | clipper | craynv | csky | cydra \
1198 | d10v | d30v | dlx | dsp16xx \
1199 | e2k | elxsi | epiphany \
1200 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1201 | h8300 | h8500 \
1202 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1203 | hexagon \
1204 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1205 | ip2k | iq2000 \
1206 | k1om \
1207 | le32 | le64 \
1208 | lm32 \
1209 | loongarch32 | loongarch64 | loongarchx32 \
1210 | m32c | m32r | m32rle \
1211 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
1212 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
1213 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1214 | microblaze | microblazeel \
1215 | mips | mipsbe | mipseb | mipsel | mipsle \
1216 | mips16 \
1217 | mips64 | mips64eb | mips64el \
1218 | mips64octeon | mips64octeonel \
1219 | mips64orion | mips64orionel \
1220 | mips64r5900 | mips64r5900el \
1221 | mips64vr | mips64vrel \
1222 | mips64vr4100 | mips64vr4100el \
1223 | mips64vr4300 | mips64vr4300el \
1224 | mips64vr5000 | mips64vr5000el \
1225 | mips64vr5900 | mips64vr5900el \
1226 | mipsisa32 | mipsisa32el \
1227 | mipsisa32r2 | mipsisa32r2el \
1228 | mipsisa32r3 | mipsisa32r3el \
1229 | mipsisa32r5 | mipsisa32r5el \
1230 | mipsisa32r6 | mipsisa32r6el \
1231 | mipsisa64 | mipsisa64el \
1232 | mipsisa64r2 | mipsisa64r2el \
1233 | mipsisa64r3 | mipsisa64r3el \
1234 | mipsisa64r5 | mipsisa64r5el \
1235 | mipsisa64r6 | mipsisa64r6el \
1236 | mipsisa64sb1 | mipsisa64sb1el \
1237 | mipsisa64sr71k | mipsisa64sr71kel \
1238 | mipsr5900 | mipsr5900el \
1239 | mipstx39 | mipstx39el \
1240 | mmix \
1241 | mn10200 | mn10300 \
1242 | moxie \
1243 | mt \
1244 | msp430 \
1245 | nds32 | nds32le | nds32be \
1246 | nfp \
1247 | nios | nios2 | nios2eb | nios2el \
1248 | none | np1 | ns16k | ns32k | nvptx \
1249 | open8 \
1250 | or1k* \
1251 | or32 \
1252 | orion \
1253 | picochip \
1254 | pdp10 | pdp11 | pj | pjl | pn | power \
1255 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1256 | pru \
1257 | pyramid \
1258 | riscv | riscv32 | riscv32be | riscv64 | riscv64be \
1259 | rl78 | romp | rs6000 | rx \
1260 | s390 | s390x \
1261 | score \
1262 | sh | shl \
1263 | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1264 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1265 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1266 | sparclite \
1267 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1268 | spu \
1269 | tahoe \
1270 | thumbv7* \
1271 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1272 | tron \
1273 | ubicom32 \
1274 | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1275 | vax \
1276 | visium \
1277 | w65 \
1278 | wasm32 | wasm64 \
1279 | we32k \
1280 | x86 | x86_64 | xc16x | xgate | xps100 \
1281 | xstormy16 | xtensa* \
1282 | ymp \
1283 | z8k | z80)
1284 ;;
1285
1286 *)
1287 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1288 exit 1
1289 ;;
1290 esac
1291 ;;
1292 esac
1293
1294 # Here we canonicalize certain aliases for manufacturers.
1295 case $vendor in
1296 digital*)
1297 vendor=dec
1298 ;;
1299 commodore*)
1300 vendor=cbm
1301 ;;
1302 *)
1303 ;;
1304 esac
1305
1306 # Decode manufacturer-specific aliases for certain operating systems.
1307
1308 if test x$basic_os != x
1309 then
1310
1311 # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just
1312 # set os.
1313 case $basic_os in
1314 gnu/linux*)
1315 kernel=linux
1316 os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'`
1317 ;;
1318 os2-emx)
1319 kernel=os2
1320 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'`
1321 ;;
1322 nto-qnx*)
1323 kernel=nto
1324 os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'`
1325 ;;
1326 *-*)
1327 # shellcheck disable=SC2162
1328 saved_IFS=$IFS
1329 IFS="-" read kernel os <<EOF
1330 $basic_os
1331 EOF
1332 IFS=$saved_IFS
1333 ;;
1334 # Default OS when just kernel was specified
1335 nto*)
1336 kernel=nto
1337 os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
1338 ;;
1339 linux*)
1340 kernel=linux
1341 os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
1342 ;;
1343 *)
1344 kernel=
1345 os=$basic_os
1346 ;;
1347 esac
1348
1349 # Now, normalize the OS (knowing we just have one component, it's not a kernel,
1350 # etc.)
1351 case $os in
1352 # First match some system type aliases that might get confused
1353 # with valid system types.
1354 # solaris* is a basic system type, with this one exception.
1355 auroraux)
1356 os=auroraux
1357 ;;
1358 bluegene*)
1359 os=cnk
1360 ;;
1361 solaris1 | solaris1.*)
1362 os=`echo "$os" | sed -e 's|solaris1|sunos4|'`
1363 ;;
1364 solaris)
1365 os=solaris2
1366 ;;
1367 unixware*)
1368 os=sysv4.2uw
1369 ;;
1370 # es1800 is here to avoid being matched by es* (a different OS)
1371 es1800*)
1372 os=ose
1373 ;;
1374 # Some version numbers need modification
1375 chorusos*)
1376 os=chorusos
1377 ;;
1378 isc)
1379 os=isc2.2
1380 ;;
1381 sco6)
1382 os=sco5v6
1383 ;;
1384 sco5)
1385 os=sco3.2v5
1386 ;;
1387 sco4)
1388 os=sco3.2v4
1389 ;;
1390 sco3.2.[4-9]*)
1391 os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'`
1392 ;;
1393 sco*v* | scout)
1394 # Don't match below
1395 ;;
1396 sco*)
1397 os=sco3.2v2
1398 ;;
1399 psos*)
1400 os=psos
1401 ;;
1402 qnx*)
1403 os=qnx
1404 ;;
1405 hiux*)
1406 os=hiuxwe2
1407 ;;
1408 lynx*178)
1409 os=lynxos178
1410 ;;
1411 lynx*5)
1412 os=lynxos5
1413 ;;
1414 lynxos*)
1415 # don't get caught up in next wildcard
1416 ;;
1417 lynx*)
1418 os=lynxos
1419 ;;
1420 mac[0-9]*)
1421 os=`echo "$os" | sed -e 's|mac|macos|'`
1422 ;;
1423 opened*)
1424 os=openedition
1425 ;;
1426 os400*)
1427 os=os400
1428 ;;
1429 sunos5*)
1430 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1431 ;;
1432 sunos6*)
1433 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1434 ;;
1435 wince*)
1436 os=wince
1437 ;;
1438 utek*)
1439 os=bsd
1440 ;;
1441 dynix*)
1442 os=bsd
1443 ;;
1444 acis*)
1445 os=aos
1446 ;;
1447 atheos*)
1448 os=atheos
1449 ;;
1450 syllable*)
1451 os=syllable
1452 ;;
1453 386bsd)
1454 os=bsd
1455 ;;
1456 ctix* | uts*)
1457 os=sysv
1458 ;;
1459 nova*)
1460 os=rtmk-nova
1461 ;;
1462 ns2)
1463 os=nextstep2
1464 ;;
1465 # Preserve the version number of sinix5.
1466 sinix5.*)
1467 os=`echo "$os" | sed -e 's|sinix|sysv|'`
1468 ;;
1469 sinix*)
1470 os=sysv4
1471 ;;
1472 tpf*)
1473 os=tpf
1474 ;;
1475 triton*)
1476 os=sysv3
1477 ;;
1478 oss*)
1479 os=sysv3
1480 ;;
1481 svr4*)
1482 os=sysv4
1483 ;;
1484 svr3)
1485 os=sysv3
1486 ;;
1487 sysvr4)
1488 os=sysv4
1489 ;;
1490 ose*)
1491 os=ose
1492 ;;
1493 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1494 os=mint
1495 ;;
1496 dicos*)
1497 os=dicos
1498 ;;
1499 pikeos*)
1500 # Until real need of OS specific support for
1501 # particular features comes up, bare metal
1502 # configurations are quite functional.
1503 case $cpu in
1504 arm*)
1505 os=eabi
1506 ;;
1507 *)
1508 os=elf
1509 ;;
1510 esac
1511 ;;
1512 *)
1513 # No normalization, but not necessarily accepted, that comes below.
1514 ;;
1515 esac
1516
1517 else
1518
1519 # Here we handle the default operating systems that come with various machines.
1520 # The value should be what the vendor currently ships out the door with their
1521 # machine or put another way, the most popular os provided with the machine.
1522
1523 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1524 # "-sun"), then you have to tell the case statement up towards the top
1525 # that MANUFACTURER isn't an operating system. Otherwise, code above
1526 # will signal an error saying that MANUFACTURER isn't an operating
1527 # system, and we'll never get to this point.
1528
1529 kernel=
1530 case $cpu-$vendor in
1531 score-*)
1532 os=elf
1533 ;;
1534 spu-*)
1535 os=elf
1536 ;;
1537 *-acorn)
1538 os=riscix1.2
1539 ;;
1540 arm*-rebel)
1541 kernel=linux
1542 os=gnu
1543 ;;
1544 arm*-semi)
1545 os=aout
1546 ;;
1547 c4x-* | tic4x-*)
1548 os=coff
1549 ;;
1550 c8051-*)
1551 os=elf
1552 ;;
1553 clipper-intergraph)
1554 os=clix
1555 ;;
1556 hexagon-*)
1557 os=elf
1558 ;;
1559 tic54x-*)
1560 os=coff
1561 ;;
1562 tic55x-*)
1563 os=coff
1564 ;;
1565 tic6x-*)
1566 os=coff
1567 ;;
1568 # This must come before the *-dec entry.
1569 pdp10-*)
1570 os=tops20
1571 ;;
1572 pdp11-*)
1573 os=none
1574 ;;
1575 *-dec | vax-*)
1576 os=ultrix4.2
1577 ;;
1578 m68*-apollo)
1579 os=domain
1580 ;;
1581 i386-sun)
1582 os=sunos4.0.2
1583 ;;
1584 m68000-sun)
1585 os=sunos3
1586 ;;
1587 m68*-cisco)
1588 os=aout
1589 ;;
1590 mep-*)
1591 os=elf
1592 ;;
1593 mips*-cisco)
1594 os=elf
1595 ;;
1596 mips*-*)
1597 os=elf
1598 ;;
1599 or32-*)
1600 os=coff
1601 ;;
1602 *-tti) # must be before sparc entry or we get the wrong os.
1603 os=sysv3
1604 ;;
1605 sparc-* | *-sun)
1606 os=sunos4.1.1
1607 ;;
1608 pru-*)
1609 os=elf
1610 ;;
1611 *-be)
1612 os=beos
1613 ;;
1614 *-ibm)
1615 os=aix
1616 ;;
1617 *-knuth)
1618 os=mmixware
1619 ;;
1620 *-wec)
1621 os=proelf
1622 ;;
1623 *-winbond)
1624 os=proelf
1625 ;;
1626 *-oki)
1627 os=proelf
1628 ;;
1629 *-hp)
1630 os=hpux
1631 ;;
1632 *-hitachi)
1633 os=hiux
1634 ;;
1635 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1636 os=sysv
1637 ;;
1638 *-cbm)
1639 os=amigaos
1640 ;;
1641 *-dg)
1642 os=dgux
1643 ;;
1644 *-dolphin)
1645 os=sysv3
1646 ;;
1647 m68k-ccur)
1648 os=rtu
1649 ;;
1650 m88k-omron*)
1651 os=luna
1652 ;;
1653 *-next)
1654 os=nextstep
1655 ;;
1656 *-sequent)
1657 os=ptx
1658 ;;
1659 *-crds)
1660 os=unos
1661 ;;
1662 *-ns)
1663 os=genix
1664 ;;
1665 i370-*)
1666 os=mvs
1667 ;;
1668 *-gould)
1669 os=sysv
1670 ;;
1671 *-highlevel)
1672 os=bsd
1673 ;;
1674 *-encore)
1675 os=bsd
1676 ;;
1677 *-sgi)
1678 os=irix
1679 ;;
1680 *-siemens)
1681 os=sysv4
1682 ;;
1683 *-masscomp)
1684 os=rtu
1685 ;;
1686 f30[01]-fujitsu | f700-fujitsu)
1687 os=uxpv
1688 ;;
1689 *-rom68k)
1690 os=coff
1691 ;;
1692 *-*bug)
1693 os=coff
1694 ;;
1695 *-apple)
1696 os=macos
1697 ;;
1698 *-atari*)
1699 os=mint
1700 ;;
1701 *-wrs)
1702 os=vxworks
1703 ;;
1704 *)
1705 os=none
1706 ;;
1707 esac
1708
1709 fi
1710
1711 # Now, validate our (potentially fixed-up) OS.
1712 case $os in
1713 # Sometimes we do "kernel-libc", so those need to count as OSes.
1714 musl* | newlib* | relibc* | uclibc*)
1715 ;;
1716 # Likewise for "kernel-abi"
1717 eabi* | gnueabi*)
1718 ;;
1719 # VxWorks passes extra cpu info in the 4th filed.
1720 simlinux | simwindows | spe)
1721 ;;
1722 # Now accept the basic system types.
1723 # The portable systems comes first.
1724 # Each alternative MUST end in a * to match a version number.
1725 gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1726 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
1727 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1728 | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \
1729 | hiux* | abug | nacl* | netware* | windows* \
1730 | os9* | macos* | osx* | ios* \
1731 | mpw* | magic* | mmixware* | mon960* | lnews* \
1732 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1733 | aos* | aros* | cloudabi* | sortix* | twizzler* \
1734 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1735 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1736 | mirbsd* | netbsd* | dicos* | openedition* | ose* \
1737 | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \
1738 | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
1739 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1740 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1741 | udi* | lites* | ieee* | go32* | aux* | hcos* \
1742 | chorusrdb* | cegcc* | glidix* | serenity* \
1743 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1744 | midipix* | mingw32* | mingw64* | mint* \
1745 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1746 | interix* | uwin* | mks* | rhapsody* | darwin* \
1747 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1748 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1749 | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \
1750 | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \
1751 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1752 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1753 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1754 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
1755 | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
1756 | fiwix* )
1757 ;;
1758 # This one is extra strict with allowed versions
1759 sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
1760 # Don't forget version if it is 3.2v4 or newer.
1761 ;;
1762 none)
1763 ;;
1764 *)
1765 echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
1766 exit 1
1767 ;;
1768 esac
1769
1770 # As a final step for OS-related things, validate the OS-kernel combination
1771 # (given a valid OS), if there is a kernel.
1772 case $kernel-$os in
1773 linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \
1774 | linux-musl* | linux-relibc* | linux-uclibc* )
1775 ;;
1776 uclinux-uclibc* )
1777 ;;
1778 -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
1779 # These are just libc implementations, not actual OSes, and thus
1780 # require a kernel.
1781 echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
1782 exit 1
1783 ;;
1784 kfreebsd*-gnu* | kopensolaris*-gnu*)
1785 ;;
1786 vxworks-simlinux | vxworks-simwindows | vxworks-spe)
1787 ;;
1788 nto-qnx*)
1789 ;;
1790 os2-emx)
1791 ;;
1792 *-eabi* | *-gnueabi*)
1793 ;;
1794 -*)
1795 # Blank kernel with real OS is always fine.
1796 ;;
1797 *-*)
1798 echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
1799 exit 1
1800 ;;
1801 esac
1802
1803 # Here we handle the case where we know the os, and the CPU type, but not the
1804 # manufacturer. We pick the logical manufacturer.
1805 case $vendor in
1806 unknown)
1807 case $cpu-$os in
1808 *-riscix*)
1809 vendor=acorn
1810 ;;
1811 *-sunos*)
1812 vendor=sun
1813 ;;
1814 *-cnk* | *-aix*)
1815 vendor=ibm
1816 ;;
1817 *-beos*)
1818 vendor=be
1819 ;;
1820 *-hpux*)
1821 vendor=hp
1822 ;;
1823 *-mpeix*)
1824 vendor=hp
1825 ;;
1826 *-hiux*)
1827 vendor=hitachi
1828 ;;
1829 *-unos*)
1830 vendor=crds
1831 ;;
1832 *-dgux*)
1833 vendor=dg
1834 ;;
1835 *-luna*)
1836 vendor=omron
1837 ;;
1838 *-genix*)
1839 vendor=ns
1840 ;;
1841 *-clix*)
1842 vendor=intergraph
1843 ;;
1844 *-mvs* | *-opened*)
1845 vendor=ibm
1846 ;;
1847 *-os400*)
1848 vendor=ibm
1849 ;;
1850 s390-* | s390x-*)
1851 vendor=ibm
1852 ;;
1853 *-ptx*)
1854 vendor=sequent
1855 ;;
1856 *-tpf*)
1857 vendor=ibm
1858 ;;
1859 *-vxsim* | *-vxworks* | *-windiss*)
1860 vendor=wrs
1861 ;;
1862 *-aux*)
1863 vendor=apple
1864 ;;
1865 *-hms*)
1866 vendor=hitachi
1867 ;;
1868 *-mpw* | *-macos*)
1869 vendor=apple
1870 ;;
1871 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
1872 vendor=atari
1873 ;;
1874 *-vos*)
1875 vendor=stratus
1876 ;;
1877 esac
1878 ;;
1879 esac
1880
1881 echo "$cpu-$vendor-${kernel:+$kernel-}$os"
1882 exit
1883
1884 # Local variables:
1885 # eval: (add-hook 'before-save-hook 'time-stamp)
1886 # time-stamp-start: "timestamp='"
1887 # time-stamp-format: "%:y-%02m-%02d"
1888 # time-stamp-end: "'"
1889 # End:
+2906
-2224
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for SLUDGE 2.2.2.
2 # Generated by GNU Autoconf 2.71 for SLUDGE 2.2.2.
33 #
44 # Report bugs to <tobias.han@gmx.de>.
55 #
66 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
8 # Inc.
89 #
910 #
1011 # This configure script is free software; the Free Software Foundation
1516
1617 # Be more Bourne compatible
1718 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 as_nop=:
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
1922 emulate sh
2023 NULLCMD=:
2124 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2225 # is contrary to our usage. Disable this feature.
2326 alias -g '${1+"$@"}'='"$@"'
2427 setopt NO_GLOB_SUBST
25 else
28 else $as_nop
2629 case `(set -o) 2>/dev/null` in #(
2730 *posix*) :
2831 set -o posix ;; #(
3235 fi
3336
3437
38
39 # Reset variables that may have inherited troublesome values from
40 # the environment.
41
42 # IFS needs to be set, to space, tab, and newline, in precisely that order.
43 # (If _AS_PATH_WALK were called with IFS unset, it would have the
44 # side effect of setting IFS to empty, thus disabling word splitting.)
45 # Quoting is to prevent editors from complaining about space-tab.
3546 as_nl='
3647 '
3748 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
49 IFS=" "" $as_nl"
50
51 PS1='$ '
52 PS2='> '
53 PS4='+ '
54
55 # Ensure predictable behavior from utilities with locale-dependent output.
56 LC_ALL=C
57 export LC_ALL
58 LANGUAGE=C
59 export LANGUAGE
60
61 # We cannot yet rely on "unset" to work, but we need these variables
62 # to be unset--not just set to an empty or harmless value--now, to
63 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
64 # also avoids known problems related to "unset" and subshell syntax
65 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
66 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
67 do eval test \${$as_var+y} \
68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69 done
70
71 # Ensure that fds 0, 1, and 2 are open.
72 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
73 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
74 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7275
7376 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
77 if ${PATH_SEPARATOR+false} :; then
7578 PATH_SEPARATOR=:
7679 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7780 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7982 }
8083 fi
8184
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
8985
9086 # Find who we are. Look in the path if we contain no directory separator.
9187 as_myself=
9591 for as_dir in $PATH
9692 do
9793 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
94 case $as_dir in #(((
95 '') as_dir=./ ;;
96 */) ;;
97 *) as_dir=$as_dir/ ;;
98 esac
99 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
100100 done
101101 IFS=$as_save_IFS
102102
108108 as_myself=$0
109109 fi
110110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112112 exit 1
113113 fi
114114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135115
136116 # Use a proper internal environment variable to ensure we don't fall
137117 # into an infinite loop, continuously re-executing ourselves.
153133 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154134 # Admittedly, this is quite paranoid, since all the known shells bail
155135 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
136 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
137 exit 255
158138 fi
159139 # We don't want this to propagate to other subprocesses.
160140 { _as_can_reexec=; unset _as_can_reexec;}
161141 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 as_bourne_compatible="as_nop=:
143 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
163145 emulate sh
164146 NULLCMD=:
165147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166148 # is contrary to our usage. Disable this feature.
167149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168150 setopt NO_GLOB_SUBST
169 else
151 else \$as_nop
170152 case \`(set -o) 2>/dev/null\` in #(
171153 *posix*) :
172154 set -o posix ;; #(
186168 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187169 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188170 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
171 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
172 then :
173
174 else \$as_nop
192175 exitcode=1; echo positional parameters were not saved.
193176 fi
194177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
195180 test -x / || exit 1"
196181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test \$(( 1 + 1 )) = 2 || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
202187 as_have_required=yes
203 else
188 else $as_nop
204189 as_have_required=no
205190 fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208 else
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
193
194 else $as_nop
209195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210196 as_found=false
211197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212198 do
213199 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
215205 as_found=:
216206 case $as_dir in #(
217207 /*)
218208 for as_base in sh bash ksh sh5; do
219209 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
210 as_shell=$as_dir$as_base
221211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
223214 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
225217 break 2
226218 fi
227219 fi
229221 esac
230222 as_found=false
231223 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
224 IFS=$as_save_IFS
225 if $as_found
226 then :
227
228 else $as_nop
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
234232 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
233 fi
234 fi
235
236
237 if test "x$CONFIG_SHELL" != x
238 then :
240239 export CONFIG_SHELL
241240 # We cannot yet assume a decent shell, so we have to provide a
242241 # neutralization value for shells without unset; and this also
254253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255254 # Admittedly, this is quite paranoid, since all the known shells bail
256255 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258257 exit 255
259258 fi
260259
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
260 if test x$as_have_required = xno
261 then :
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and tobias.han@gmx.de
268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and tobias.han@gmx.de
269269 $0: about your system, including any error possibly output
270270 $0: before this message. Then install a modern shell, or
271271 $0: manually run the script under such a shell if you do
293293 }
294294 as_unset=as_fn_unset
295295
296
296297 # as_fn_set_status STATUS
297298 # -----------------------
298299 # Set $? to STATUS, without forking.
310311 as_fn_set_status $1
311312 exit $1
312313 } # as_fn_exit
314 # as_fn_nop
315 # ---------
316 # Do nothing but, unlike ":", preserve the value of $?.
317 as_fn_nop ()
318 {
319 return $?
320 }
321 as_nop=as_fn_nop
313322
314323 # as_fn_mkdir_p
315324 # -------------
324333 as_dirs=
325334 while :; do
326335 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328337 *) as_qdir=$as_dir;;
329338 esac
330339 as_dirs="'$as_qdir' $as_dirs"
333342 X"$as_dir" : 'X\(//\)[^/]' \| \
334343 X"$as_dir" : 'X\(//\)$' \| \
335344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
345 printf "%s\n" X"$as_dir" |
337346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338347 s//\1/
339348 q
372381 # advantage of any shell optimizations that allow amortized linear growth over
373382 # repeated appends, instead of the typical quadratic growth present in naive
374383 # implementations.
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
385 then :
376386 eval 'as_fn_append ()
377387 {
378388 eval $1+=\$2
379389 }'
380 else
390 else $as_nop
381391 as_fn_append ()
382392 {
383393 eval $1=\$$1\$2
389399 # Perform arithmetic evaluation on the ARGs, and store the result in the
390400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391401 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
393404 eval 'as_fn_arith ()
394405 {
395406 as_val=$(( $* ))
396407 }'
397 else
408 else $as_nop
398409 as_fn_arith ()
399410 {
400411 as_val=`expr "$@" || test $? -eq 1`
401412 }
402413 fi # as_fn_arith
403414
415 # as_fn_nop
416 # ---------
417 # Do nothing but, unlike ":", preserve the value of $?.
418 as_fn_nop ()
419 {
420 return $?
421 }
422 as_nop=as_fn_nop
404423
405424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406425 # ----------------------------------------
412431 as_status=$1; test $as_status -eq 0 && as_status=1
413432 if test "$4"; then
414433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416435 fi
417 $as_echo "$as_me: error: $2" >&2
436 printf "%s\n" "$as_me: error: $2" >&2
418437 as_fn_exit $as_status
419438 } # as_fn_error
420439
441460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442461 X"$0" : 'X\(//\)$' \| \
443462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 $as_echo X/"$0" |
463 printf "%s\n" X/"$0" |
445464 sed '/^.*\/\([^/][^/]*\)\/*$/{
446465 s//\1/
447466 q
485504 s/-\n.*//
486505 ' >$as_me.lineno &&
487506 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489508
490509 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491510 # already done that, so ensure we don't try to do so again and fall
499518 exit
500519 }
501520
521
522 # Determine whether it's possible to make 'echo' print without a newline.
523 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
524 # for compatibility with existing Makefiles.
502525 ECHO_C= ECHO_N= ECHO_T=
503526 case `echo -n x` in #(((((
504527 -n*)
511534 *)
512535 ECHO_N='-n';;
513536 esac
537
538 # For backward compatibility with old third-party macros, we provide
539 # the shell variables $as_echo and $as_echo_n. New code should use
540 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
541 as_echo='printf %s\n'
542 as_echo_n='printf %s'
543
514544
515545 rm -f conf$$ conf$$.exe conf$$.file
516546 if test -d conf$$.dir; then
587617 ac_unique_file="source/CommonCode/tga.cpp"
588618 # Factoring default headers for most tests.
589619 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
620 #include <stddef.h>
621 #ifdef HAVE_STDIO_H
622 # include <stdio.h>
593623 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
624 #ifdef HAVE_STDLIB_H
598625 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 # include <stdlib.h>
603 # endif
604626 #endif
605627 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 # include <memory.h>
608 # endif
609628 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613629 #endif
614630 #ifdef HAVE_INTTYPES_H
615631 # include <inttypes.h>
617633 #ifdef HAVE_STDINT_H
618634 # include <stdint.h>
619635 #endif
636 #ifdef HAVE_STRINGS_H
637 # include <strings.h>
638 #endif
639 #ifdef HAVE_SYS_TYPES_H
640 # include <sys/types.h>
641 #endif
642 #ifdef HAVE_SYS_STAT_H
643 # include <sys/stat.h>
644 #endif
620645 #ifdef HAVE_UNISTD_H
621646 # include <unistd.h>
622647 #endif"
623648
649 ac_header_c_list=
624650 ac_subst_vars='am__EXEEXT_FALSE
625651 am__EXEEXT_TRUE
626652 LTLIBOBJS
639665 COND_ENGINE_FALSE
640666 COND_ENGINE_TRUE
641667 LIBOBJS
642 EGREP
643 GREP
644 CPP
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
645676 LIBPNG_LIBS
646677 LIBPNG_CFLAGS
647678 GLIB_LIBS
672703 AMDEPBACKSLASH
673704 AMDEP_FALSE
674705 AMDEP_TRUE
675 am__quote
676706 am__include
677707 DEPDIR
678708 OBJEXT
686716 AM_DEFAULT_VERBOSITY
687717 AM_DEFAULT_V
688718 AM_V
719 CSCOPE
720 ETAGS
721 CTAGS
689722 am__untar
690723 am__tar
691724 AMTAR
747780 PACKAGE_TARNAME
748781 PACKAGE_NAME
749782 PATH_SEPARATOR
750 SHELL'
783 SHELL
784 am__quote'
751785 ac_subst_files=''
752786 ac_user_opts='
753787 enable_option_checking
786820 GLIB_CFLAGS
787821 GLIB_LIBS
788822 LIBPNG_CFLAGS
789 LIBPNG_LIBS
790 CPP'
823 LIBPNG_LIBS'
791824
792825
793826 # Initialize some variables set by options.
856889 *) ac_optarg=yes ;;
857890 esac
858891
859 # Accept the important Cygnus configure options, so we can diagnose typos.
860
861892 case $ac_dashdash$ac_option in
862893 --)
863894 ac_dashdash=yes ;;
898929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899930 # Reject names that are not valid shell variable names.
900931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
932 as_fn_error $? "invalid feature name: \`$ac_useropt'"
902933 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
904935 case $ac_user_opts in
905936 *"
906937 "enable_$ac_useropt"
924955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925956 # Reject names that are not valid shell variable names.
926957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
958 as_fn_error $? "invalid feature name: \`$ac_useropt'"
928959 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
930961 case $ac_user_opts in
931962 *"
932963 "enable_$ac_useropt"
11371168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11381169 # Reject names that are not valid shell variable names.
11391170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1171 as_fn_error $? "invalid package name: \`$ac_useropt'"
11411172 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11431174 case $ac_user_opts in
11441175 *"
11451176 "with_$ac_useropt"
11531184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11541185 # Reject names that are not valid shell variable names.
11551186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1187 as_fn_error $? "invalid package name: \`$ac_useropt'"
11571188 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11591190 case $ac_user_opts in
11601191 *"
11611192 "with_$ac_useropt"
11991230
12001231 *)
12011232 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
12031234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
12051236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12061237 ;;
12071238
12171248 case $enable_option_checking in
12181249 no) ;;
12191250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12211252 esac
12221253 fi
12231254
12811312 X"$as_myself" : 'X\(//\)[^/]' \| \
12821313 X"$as_myself" : 'X\(//\)$' \| \
12831314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1315 printf "%s\n" X"$as_myself" |
12851316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12861317 s//\1/
12871318 q
14001431 --program-prefix=PREFIX prepend PREFIX to installed program names
14011432 --program-suffix=SUFFIX append SUFFIX to installed program names
14021433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
14031438 _ACEOF
14041439 fi
14051440
14561491 LIBPNG_CFLAGS
14571492 C compiler flags for LIBPNG, overriding pkg-config
14581493 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1459 CPP C preprocessor
14601494
14611495 Use these variables to override the choices made by `configure' or to help
14621496 it to find libraries and programs with nonstandard names/locations.
14781512 case "$ac_dir" in
14791513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14801514 *)
1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14821516 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14841518 case $ac_top_builddir_sub in
14851519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14861520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15081542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15091543
15101544 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1545 # Check for configure.gnu first; this name is used for a wrapper for
1546 # Metaconfig's "Configure" on case-insensitive file systems.
15121547 if test -f "$ac_srcdir/configure.gnu"; then
15131548 echo &&
15141549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15161551 echo &&
15171552 $SHELL "$ac_srcdir/configure" --help=recursive
15181553 else
1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15201555 fi || ac_status=$?
15211556 cd "$ac_pwd" || { ac_status=$?; break; }
15221557 done
15261561 if $ac_init_version; then
15271562 cat <<\_ACEOF
15281563 SLUDGE configure 2.2.2
1529 generated by GNU Autoconf 2.69
1530
1531 Copyright (C) 2012 Free Software Foundation, Inc.
1564 generated by GNU Autoconf 2.71
1565
1566 Copyright (C) 2021 Free Software Foundation, Inc.
15321567 This configure script is free software; the Free Software Foundation
15331568 gives unlimited permission to copy, distribute and modify it.
15341569 _ACEOF
15451580 ac_fn_cxx_try_compile ()
15461581 {
15471582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1583 rm -f conftest.$ac_objext conftest.beam
15491584 if { { ac_try="$ac_compile"
15501585 case "(($ac_try" in
15511586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521587 *) ac_try_echo=$ac_try;;
15531588 esac
15541589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1590 printf "%s\n" "$ac_try_echo"; } >&5
15561591 (eval "$ac_compile") 2>conftest.err
15571592 ac_status=$?
15581593 if test -s conftest.err; then
15601595 cat conftest.er1 >&5
15611596 mv -f conftest.er1 conftest.err
15621597 fi
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15641599 test $ac_status = 0; } && {
15651600 test -z "$ac_cxx_werror_flag" ||
15661601 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1602 } && test -s conftest.$ac_objext
1603 then :
15681604 ac_retval=0
1569 else
1570 $as_echo "$as_me: failed program was:" >&5
1605 else $as_nop
1606 printf "%s\n" "$as_me: failed program was:" >&5
15711607 sed 's/^/| /' conftest.$ac_ext >&5
15721608
15731609 ac_retval=1
15831619 ac_fn_c_try_compile ()
15841620 {
15851621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext
1622 rm -f conftest.$ac_objext conftest.beam
15871623 if { { ac_try="$ac_compile"
15881624 case "(($ac_try" in
15891625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901626 *) ac_try_echo=$ac_try;;
15911627 esac
15921628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1629 printf "%s\n" "$ac_try_echo"; } >&5
15941630 (eval "$ac_compile") 2>conftest.err
15951631 ac_status=$?
15961632 if test -s conftest.err; then
15981634 cat conftest.er1 >&5
15991635 mv -f conftest.er1 conftest.err
16001636 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16021638 test $ac_status = 0; } && {
16031639 test -z "$ac_c_werror_flag" ||
16041640 test ! -s conftest.err
1605 } && test -s conftest.$ac_objext; then :
1641 } && test -s conftest.$ac_objext
1642 then :
16061643 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1644 else $as_nop
1645 printf "%s\n" "$as_me: failed program was:" >&5
16091646 sed 's/^/| /' conftest.$ac_ext >&5
16101647
16111648 ac_retval=1
16211658 ac_fn_c_try_link ()
16221659 {
16231660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext conftest$ac_exeext
1661 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
16251662 if { { ac_try="$ac_link"
16261663 case "(($ac_try" in
16271664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281665 *) ac_try_echo=$ac_try;;
16291666 esac
16301667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1668 printf "%s\n" "$ac_try_echo"; } >&5
16321669 (eval "$ac_link") 2>conftest.err
16331670 ac_status=$?
16341671 if test -s conftest.err; then
16361673 cat conftest.er1 >&5
16371674 mv -f conftest.er1 conftest.err
16381675 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16401677 test $ac_status = 0; } && {
16411678 test -z "$ac_c_werror_flag" ||
16421679 test ! -s conftest.err
16431680 } && test -s conftest$ac_exeext && {
16441681 test "$cross_compiling" = yes ||
16451682 test -x conftest$ac_exeext
1646 }; then :
1683 }
1684 then :
16471685 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1686 else $as_nop
1687 printf "%s\n" "$as_me: failed program was:" >&5
16501688 sed 's/^/| /' conftest.$ac_ext >&5
16511689
16521690 ac_retval=1
16611699
16621700 } # ac_fn_c_try_link
16631701
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_cpp ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695 fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_cpp
1700
1701 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1704 # the include files in INCLUDES and setting the cache variable VAR
1705 # accordingly.
1706 ac_fn_c_check_header_mongrel ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if eval \${$3+:} false; then :
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 fi
1715 eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 else
1719 # Is the header compilable?
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1721 $as_echo_n "checking $2 usability... " >&6; }
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 $4
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 ac_header_compiler=yes
1729 else
1730 ac_header_compiler=no
1731 fi
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1734 $as_echo "$ac_header_compiler" >&6; }
1735
1736 # Is the header present?
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1738 $as_echo_n "checking $2 presence... " >&6; }
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_cpp "$LINENO"; then :
1744 ac_header_preproc=yes
1745 else
1746 ac_header_preproc=no
1747 fi
1748 rm -f conftest.err conftest.i conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1750 $as_echo "$ac_header_preproc" >&6; }
1751
1752 # So? What about this header?
1753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1754 yes:no: )
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1756 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759 ;;
1760 no:yes:* )
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1762 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1764 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1766 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1768 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771 ( $as_echo "## -------------------------------- ##
1772 ## Report this to tobias.han@gmx.de ##
1773 ## -------------------------------- ##"
1774 ) | sed "s/^/$as_me: WARNING: /" >&2
1775 ;;
1776 esac
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 eval "$3=\$ac_header_compiler"
1783 fi
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 fi
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_mongrel
1791
1792 # ac_fn_c_try_run LINENO
1793 # ----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1796 ac_fn_c_try_run ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810 { { case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_try") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=$ac_status
1827 fi
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832 } # ac_fn_c_try_run
1833
18341702 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
18351703 # -------------------------------------------------------
18361704 # Tests whether HEADER exists and can be compiled using the include files in
18381706 ac_fn_c_check_header_compile ()
18391707 {
18401708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 printf %s "checking for $2... " >&6; }
1711 if eval test \${$3+y}
1712 then :
1713 printf %s "(cached) " >&6
1714 else $as_nop
18461715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471716 /* end confdefs.h. */
18481717 $4
18491718 #include <$2>
18501719 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1720 if ac_fn_c_try_compile "$LINENO"
1721 then :
18521722 eval "$3=yes"
1853 else
1723 else $as_nop
18541724 eval "$3=no"
18551725 fi
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18571727 fi
18581728 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 printf "%s\n" "$ac_res" >&6; }
18611731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18621732
18631733 } # ac_fn_c_check_header_compile
18691739 ac_fn_c_check_type ()
18701740 {
18711741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 printf %s "checking for $2... " >&6; }
1744 if eval test \${$3+y}
1745 then :
1746 printf %s "(cached) " >&6
1747 else $as_nop
18771748 eval "$3=no"
18781749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18791750 /* end confdefs.h. */
18801751 $4
18811752 int
1882 main ()
1753 main (void)
18831754 {
18841755 if (sizeof ($2))
18851756 return 0;
18871758 return 0;
18881759 }
18891760 _ACEOF
1890 if ac_fn_c_try_compile "$LINENO"; then :
1761 if ac_fn_c_try_compile "$LINENO"
1762 then :
18911763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18921764 /* end confdefs.h. */
18931765 $4
18941766 int
1895 main ()
1767 main (void)
18961768 {
18971769 if (sizeof (($2)))
18981770 return 0;
19001772 return 0;
19011773 }
19021774 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904
1905 else
1775 if ac_fn_c_try_compile "$LINENO"
1776 then :
1777
1778 else $as_nop
19061779 eval "$3=yes"
19071780 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19111784 fi
19121785 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 printf "%s\n" "$ac_res" >&6; }
19151788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19161789
19171790 } # ac_fn_c_check_type
19231796 ac_fn_c_find_intX_t ()
19241797 {
19251798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1927 $as_echo_n "checking for int$2_t... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1930 else
1799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1800 printf %s "checking for int$2_t... " >&6; }
1801 if eval test \${$3+y}
1802 then :
1803 printf %s "(cached) " >&6
1804 else $as_nop
19311805 eval "$3=no"
19321806 # Order is important - never check a type that is potentially smaller
19331807 # than half of the expected target width.
19381812 $ac_includes_default
19391813 enum { N = $2 / 2 - 1 };
19401814 int
1941 main ()
1815 main (void)
19421816 {
19431817 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
19441818 test_array [0] = 0;
19481822 return 0;
19491823 }
19501824 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1825 if ac_fn_c_try_compile "$LINENO"
1826 then :
19521827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19531828 /* end confdefs.h. */
19541829 $ac_includes_default
19551830 enum { N = $2 / 2 - 1 };
19561831 int
1957 main ()
1832 main (void)
19581833 {
19591834 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
19601835 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
19651840 return 0;
19661841 }
19671842 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969
1970 else
1843 if ac_fn_c_try_compile "$LINENO"
1844 then :
1845
1846 else $as_nop
19711847 case $ac_type in #(
19721848 int$2_t) :
19731849 eval "$3=yes" ;; #(
19751851 eval "$3=\$ac_type" ;;
19761852 esac
19771853 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 if eval test \"x\$"$3"\" = x"no"; then :
1982
1983 else
1854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1855 fi
1856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1857 if eval test \"x\$"$3"\" = x"no"
1858 then :
1859
1860 else $as_nop
19841861 break
19851862 fi
19861863 done
19871864 fi
19881865 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 printf "%s\n" "$ac_res" >&6; }
19911868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19921869
19931870 } # ac_fn_c_find_intX_t
19991876 ac_fn_c_find_uintX_t ()
20001877 {
20011878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2003 $as_echo_n "checking for uint$2_t... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006 else
1879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1880 printf %s "checking for uint$2_t... " >&6; }
1881 if eval test \${$3+y}
1882 then :
1883 printf %s "(cached) " >&6
1884 else $as_nop
20071885 eval "$3=no"
20081886 # Order is important - never check a type that is potentially smaller
20091887 # than half of the expected target width.
20131891 /* end confdefs.h. */
20141892 $ac_includes_default
20151893 int
2016 main ()
1894 main (void)
20171895 {
20181896 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
20191897 test_array [0] = 0;
20231901 return 0;
20241902 }
20251903 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
1904 if ac_fn_c_try_compile "$LINENO"
1905 then :
20271906 case $ac_type in #(
20281907 uint$2_t) :
20291908 eval "$3=yes" ;; #(
20311910 eval "$3=\$ac_type" ;;
20321911 esac
20331912 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 if eval test \"x\$"$3"\" = x"no"; then :
2036
2037 else
1913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1914 if eval test \"x\$"$3"\" = x"no"
1915 then :
1916
1917 else $as_nop
20381918 break
20391919 fi
20401920 done
20411921 fi
20421922 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
1923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 printf "%s\n" "$ac_res" >&6; }
20451925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
20461926
20471927 } # ac_fn_c_find_uintX_t
1928
1929 # ac_fn_c_try_run LINENO
1930 # ----------------------
1931 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1932 # executables *can* be run.
1933 ac_fn_c_try_run ()
1934 {
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { { ac_try="$ac_link"
1937 case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 printf "%s\n" "$ac_try_echo"; } >&5
1943 (eval "$ac_link") 2>&5
1944 ac_status=$?
1945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1947 { { case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 printf "%s\n" "$ac_try_echo"; } >&5
1953 (eval "$ac_try") 2>&5
1954 ac_status=$?
1955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; }; }
1957 then :
1958 ac_retval=0
1959 else $as_nop
1960 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1961 printf "%s\n" "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1963
1964 ac_retval=$ac_status
1965 fi
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1969
1970 } # ac_fn_c_try_run
20481971
20491972 # ac_fn_c_check_func LINENO FUNC VAR
20501973 # ----------------------------------
20521975 ac_fn_c_check_func ()
20531976 {
20541977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2059 else
1978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 printf %s "checking for $2... " >&6; }
1980 if eval test \${$3+y}
1981 then :
1982 printf %s "(cached) " >&6
1983 else $as_nop
20601984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20611985 /* end confdefs.h. */
20621986 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
20641988 #define $2 innocuous_$2
20651989
20661990 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $2 (); below.
2068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069 <limits.h> exists even on freestanding compilers. */
2070
2071 #ifdef __STDC__
2072 # include <limits.h>
2073 #else
2074 # include <assert.h>
2075 #endif
2076
1991 which can conflict with char $2 (); below. */
1992
1993 #include <limits.h>
20771994 #undef $2
20781995
20791996 /* Override any GCC internal prototype to avoid an error.
20912008 #endif
20922009
20932010 int
2094 main ()
2011 main (void)
20952012 {
20962013 return $2 ();
20972014 ;
20982015 return 0;
20992016 }
21002017 _ACEOF
2101 if ac_fn_c_try_link "$LINENO"; then :
2018 if ac_fn_c_try_link "$LINENO"
2019 then :
21022020 eval "$3=yes"
2103 else
2021 else $as_nop
21042022 eval "$3=no"
21052023 fi
2106 rm -f core conftest.err conftest.$ac_objext \
2024 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21072025 conftest$ac_exeext conftest.$ac_ext
21082026 fi
21092027 eval ac_res=\$$3
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 printf "%s\n" "$ac_res" >&6; }
21122030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21132031
21142032 } # ac_fn_c_check_func
2033 ac_configure_args_raw=
2034 for ac_arg
2035 do
2036 case $ac_arg in
2037 *\'*)
2038 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 esac
2040 as_fn_append ac_configure_args_raw " '$ac_arg'"
2041 done
2042
2043 case $ac_configure_args_raw in
2044 *$as_nl*)
2045 ac_safe_unquote= ;;
2046 *)
2047 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2048 ac_unsafe_a="$ac_unsafe_z#~"
2049 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2050 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2051 esac
2052
21152053 cat >config.log <<_ACEOF
21162054 This file contains any messages produced by compilers while
21172055 running configure, to aid debugging if configure makes a mistake.
21182056
21192057 It was created by SLUDGE $as_me 2.2.2, which was
2120 generated by GNU Autoconf 2.69. Invocation command line was
2121
2122 $ $0 $@
2058 generated by GNU Autoconf 2.71. Invocation command line was
2059
2060 $ $0$ac_configure_args_raw
21232061
21242062 _ACEOF
21252063 exec 5>>config.log
21522090 for as_dir in $PATH
21532091 do
21542092 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 $as_echo "PATH: $as_dir"
2093 case $as_dir in #(((
2094 '') as_dir=./ ;;
2095 */) ;;
2096 *) as_dir=$as_dir/ ;;
2097 esac
2098 printf "%s\n" "PATH: $as_dir"
21572099 done
21582100 IFS=$as_save_IFS
21592101
21882130 | -silent | --silent | --silen | --sile | --sil)
21892131 continue ;;
21902132 *\'*)
2191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2133 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21922134 esac
21932135 case $ac_pass in
21942136 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
22232165 # WARNING: Use '\'' to represent an apostrophe within the trap.
22242166 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
22252167 trap 'exit_status=$?
2168 # Sanitize IFS.
2169 IFS=" "" $as_nl"
22262170 # Save into config.log some information that might help in debugging.
22272171 {
22282172 echo
22292173
2230 $as_echo "## ---------------- ##
2174 printf "%s\n" "## ---------------- ##
22312175 ## Cache variables. ##
22322176 ## ---------------- ##"
22332177 echo
22382182 case $ac_val in #(
22392183 *${as_nl}*)
22402184 case $ac_var in #(
2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2185 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22432187 esac
22442188 case $ac_var in #(
22452189 _ | IFS | as_nl) ;; #(
22632207 )
22642208 echo
22652209
2266 $as_echo "## ----------------- ##
2210 printf "%s\n" "## ----------------- ##
22672211 ## Output variables. ##
22682212 ## ----------------- ##"
22692213 echo
22712215 do
22722216 eval ac_val=\$$ac_var
22732217 case $ac_val in
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
22752219 esac
2276 $as_echo "$ac_var='\''$ac_val'\''"
2220 printf "%s\n" "$ac_var='\''$ac_val'\''"
22772221 done | sort
22782222 echo
22792223
22802224 if test -n "$ac_subst_files"; then
2281 $as_echo "## ------------------- ##
2225 printf "%s\n" "## ------------------- ##
22822226 ## File substitutions. ##
22832227 ## ------------------- ##"
22842228 echo
22862230 do
22872231 eval ac_val=\$$ac_var
22882232 case $ac_val in
2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
22902234 esac
2291 $as_echo "$ac_var='\''$ac_val'\''"
2235 printf "%s\n" "$ac_var='\''$ac_val'\''"
22922236 done | sort
22932237 echo
22942238 fi
22952239
22962240 if test -s confdefs.h; then
2297 $as_echo "## ----------- ##
2241 printf "%s\n" "## ----------- ##
22982242 ## confdefs.h. ##
22992243 ## ----------- ##"
23002244 echo
23022246 echo
23032247 fi
23042248 test "$ac_signal" != 0 &&
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
2249 printf "%s\n" "$as_me: caught signal $ac_signal"
2250 printf "%s\n" "$as_me: exit $exit_status"
23072251 } >&5
23082252 rm -f core *.core core.conftest.* &&
23092253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
23172261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
23182262 rm -f -r conftest* confdefs.h
23192263
2320 $as_echo "/* confdefs.h */" > confdefs.h
2264 printf "%s\n" "/* confdefs.h */" > confdefs.h
23212265
23222266 # Predefined preprocessor variables.
23232267
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_NAME "$PACKAGE_NAME"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_STRING "$PACKAGE_STRING"
2338 _ACEOF
2339
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342 _ACEOF
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_URL "$PACKAGE_URL"
2346 _ACEOF
2268 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2269
2270 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2271
2272 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2273
2274 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2275
2276 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2277
2278 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
23472279
23482280
23492281 # Let the site file select an alternate cache file if it wants to.
23502282 # Prefer an explicitly selected file to automatically selected ones.
2351 ac_site_file1=NONE
2352 ac_site_file2=NONE
23532283 if test -n "$CONFIG_SITE"; then
2354 # We do not want a PATH search for config.site.
2355 case $CONFIG_SITE in #((
2356 -*) ac_site_file1=./$CONFIG_SITE;;
2357 */*) ac_site_file1=$CONFIG_SITE;;
2358 *) ac_site_file1=./$CONFIG_SITE;;
2359 esac
2284 ac_site_files="$CONFIG_SITE"
23602285 elif test "x$prefix" != xNONE; then
2361 ac_site_file1=$prefix/share/config.site
2362 ac_site_file2=$prefix/etc/config.site
2363 else
2364 ac_site_file1=$ac_default_prefix/share/config.site
2365 ac_site_file2=$ac_default_prefix/etc/config.site
2366 fi
2367 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2286 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2287 else
2288 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2289 fi
2290
2291 for ac_site_file in $ac_site_files
23682292 do
2369 test "x$ac_site_file" = xNONE && continue
2370 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2372 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2293 case $ac_site_file in #(
2294 */*) :
2295 ;; #(
2296 *) :
2297 ac_site_file=./$ac_site_file ;;
2298 esac
2299 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2301 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
23732302 sed 's/^/| /' "$ac_site_file" >&5
23742303 . "$ac_site_file" \
2375 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23772306 as_fn_error $? "failed to load site script $ac_site_file
23782307 See \`config.log' for more details" "$LINENO" 5; }
23792308 fi
23832312 # Some versions of bash will fail to source /dev/null (special files
23842313 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
23852314 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2387 $as_echo "$as_me: loading cache $cache_file" >&6;}
2315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2316 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
23882317 case $cache_file in
23892318 [\\/]* | ?:[\\/]* ) . "$cache_file";;
23902319 *) . "./$cache_file";;
23912320 esac
23922321 fi
23932322 else
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2395 $as_echo "$as_me: creating cache $cache_file" >&6;}
2323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2324 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
23962325 >$cache_file
2326 fi
2327
2328 # Test code for whether the C++ compiler supports C++98 (global declarations)
2329 ac_cxx_conftest_cxx98_globals='
2330 // Does the compiler advertise C++98 conformance?
2331 #if !defined __cplusplus || __cplusplus < 199711L
2332 # error "Compiler does not advertise C++98 conformance"
2333 #endif
2334
2335 // These inclusions are to reject old compilers that
2336 // lack the unsuffixed header files.
2337 #include <cstdlib>
2338 #include <exception>
2339
2340 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2341 extern void assert (int);
2342 namespace std {
2343 extern int strcmp (const char *, const char *);
2344 }
2345
2346 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2347 using std::exception;
2348 using std::strcmp;
2349
2350 namespace {
2351
2352 void test_exception_syntax()
2353 {
2354 try {
2355 throw "test";
2356 } catch (const char *s) {
2357 // Extra parentheses suppress a warning when building autoconf itself,
2358 // due to lint rules shared with more typical C programs.
2359 assert (!(strcmp) (s, "test"));
2360 }
2361 }
2362
2363 template <typename T> struct test_template
2364 {
2365 T const val;
2366 explicit test_template(T t) : val(t) {}
2367 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2368 };
2369
2370 } // anonymous namespace
2371 '
2372
2373 # Test code for whether the C++ compiler supports C++98 (body of main)
2374 ac_cxx_conftest_cxx98_main='
2375 assert (argc);
2376 assert (! argv[0]);
2377 {
2378 test_exception_syntax ();
2379 test_template<double> tt (2.0);
2380 assert (tt.add (4) == 6.0);
2381 assert (true && !false);
2382 }
2383 '
2384
2385 # Test code for whether the C++ compiler supports C++11 (global declarations)
2386 ac_cxx_conftest_cxx11_globals='
2387 // Does the compiler advertise C++ 2011 conformance?
2388 #if !defined __cplusplus || __cplusplus < 201103L
2389 # error "Compiler does not advertise C++11 conformance"
2390 #endif
2391
2392 namespace cxx11test
2393 {
2394 constexpr int get_val() { return 20; }
2395
2396 struct testinit
2397 {
2398 int i;
2399 double d;
2400 };
2401
2402 class delegate
2403 {
2404 public:
2405 delegate(int n) : n(n) {}
2406 delegate(): delegate(2354) {}
2407
2408 virtual int getval() { return this->n; };
2409 protected:
2410 int n;
2411 };
2412
2413 class overridden : public delegate
2414 {
2415 public:
2416 overridden(int n): delegate(n) {}
2417 virtual int getval() override final { return this->n * 2; }
2418 };
2419
2420 class nocopy
2421 {
2422 public:
2423 nocopy(int i): i(i) {}
2424 nocopy() = default;
2425 nocopy(const nocopy&) = delete;
2426 nocopy & operator=(const nocopy&) = delete;
2427 private:
2428 int i;
2429 };
2430
2431 // for testing lambda expressions
2432 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2433 {
2434 return f(v);
2435 }
2436
2437 // for testing variadic templates and trailing return types
2438 template <typename V> auto sum(V first) -> V
2439 {
2440 return first;
2441 }
2442 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2443 {
2444 return first + sum(rest...);
2445 }
2446 }
2447 '
2448
2449 # Test code for whether the C++ compiler supports C++11 (body of main)
2450 ac_cxx_conftest_cxx11_main='
2451 {
2452 // Test auto and decltype
2453 auto a1 = 6538;
2454 auto a2 = 48573953.4;
2455 auto a3 = "String literal";
2456
2457 int total = 0;
2458 for (auto i = a3; *i; ++i) { total += *i; }
2459
2460 decltype(a2) a4 = 34895.034;
2461 }
2462 {
2463 // Test constexpr
2464 short sa[cxx11test::get_val()] = { 0 };
2465 }
2466 {
2467 // Test initializer lists
2468 cxx11test::testinit il = { 4323, 435234.23544 };
2469 }
2470 {
2471 // Test range-based for
2472 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2473 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2474 for (auto &x : array) { x += 23; }
2475 }
2476 {
2477 // Test lambda expressions
2478 using cxx11test::eval;
2479 assert (eval ([](int x) { return x*2; }, 21) == 42);
2480 double d = 2.0;
2481 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2482 assert (d == 5.0);
2483 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2484 assert (d == 5.0);
2485 }
2486 {
2487 // Test use of variadic templates
2488 using cxx11test::sum;
2489 auto a = sum(1);
2490 auto b = sum(1, 2);
2491 auto c = sum(1.0, 2.0, 3.0);
2492 }
2493 {
2494 // Test constructor delegation
2495 cxx11test::delegate d1;
2496 cxx11test::delegate d2();
2497 cxx11test::delegate d3(45);
2498 }
2499 {
2500 // Test override and final
2501 cxx11test::overridden o1(55464);
2502 }
2503 {
2504 // Test nullptr
2505 char *c = nullptr;
2506 }
2507 {
2508 // Test template brackets
2509 test_template<::test_template<int>> v(test_template<int>(12));
2510 }
2511 {
2512 // Unicode literals
2513 char const *utf8 = u8"UTF-8 string \u2500";
2514 char16_t const *utf16 = u"UTF-8 string \u2500";
2515 char32_t const *utf32 = U"UTF-32 string \u2500";
2516 }
2517 '
2518
2519 # Test code for whether the C compiler supports C++11 (complete).
2520 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2521 ${ac_cxx_conftest_cxx11_globals}
2522
2523 int
2524 main (int argc, char **argv)
2525 {
2526 int ok = 0;
2527 ${ac_cxx_conftest_cxx98_main}
2528 ${ac_cxx_conftest_cxx11_main}
2529 return ok;
2530 }
2531 "
2532
2533 # Test code for whether the C compiler supports C++98 (complete).
2534 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2535 int
2536 main (int argc, char **argv)
2537 {
2538 int ok = 0;
2539 ${ac_cxx_conftest_cxx98_main}
2540 return ok;
2541 }
2542 "
2543
2544 # Test code for whether the C compiler supports C89 (global declarations)
2545 ac_c_conftest_c89_globals='
2546 /* Does the compiler advertise C89 conformance?
2547 Do not test the value of __STDC__, because some compilers set it to 0
2548 while being otherwise adequately conformant. */
2549 #if !defined __STDC__
2550 # error "Compiler does not advertise C89 conformance"
2551 #endif
2552
2553 #include <stddef.h>
2554 #include <stdarg.h>
2555 struct stat;
2556 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2557 struct buf { int x; };
2558 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2559 static char *e (p, i)
2560 char **p;
2561 int i;
2562 {
2563 return p[i];
2564 }
2565 static char *f (char * (*g) (char **, int), char **p, ...)
2566 {
2567 char *s;
2568 va_list v;
2569 va_start (v,p);
2570 s = g (p, va_arg (v,int));
2571 va_end (v);
2572 return s;
2573 }
2574
2575 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2576 function prototypes and stuff, but not \xHH hex character constants.
2577 These do not provoke an error unfortunately, instead are silently treated
2578 as an "x". The following induces an error, until -std is added to get
2579 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2580 array size at least. It is necessary to write \x00 == 0 to get something
2581 that is true only with -std. */
2582 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2583
2584 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2585 inside strings and character constants. */
2586 #define FOO(x) '\''x'\''
2587 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2588
2589 int test (int i, double x);
2590 struct s1 {int (*f) (int a);};
2591 struct s2 {int (*f) (double a);};
2592 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2593 int, int);'
2594
2595 # Test code for whether the C compiler supports C89 (body of main).
2596 ac_c_conftest_c89_main='
2597 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2598 '
2599
2600 # Test code for whether the C compiler supports C99 (global declarations)
2601 ac_c_conftest_c99_globals='
2602 // Does the compiler advertise C99 conformance?
2603 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2604 # error "Compiler does not advertise C99 conformance"
2605 #endif
2606
2607 #include <stdbool.h>
2608 extern int puts (const char *);
2609 extern int printf (const char *, ...);
2610 extern int dprintf (int, const char *, ...);
2611 extern void *malloc (size_t);
2612
2613 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2614 // dprintf is used instead of fprintf to avoid needing to declare
2615 // FILE and stderr.
2616 #define debug(...) dprintf (2, __VA_ARGS__)
2617 #define showlist(...) puts (#__VA_ARGS__)
2618 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2619 static void
2620 test_varargs_macros (void)
2621 {
2622 int x = 1234;
2623 int y = 5678;
2624 debug ("Flag");
2625 debug ("X = %d\n", x);
2626 showlist (The first, second, and third items.);
2627 report (x>y, "x is %d but y is %d", x, y);
2628 }
2629
2630 // Check long long types.
2631 #define BIG64 18446744073709551615ull
2632 #define BIG32 4294967295ul
2633 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2634 #if !BIG_OK
2635 #error "your preprocessor is broken"
2636 #endif
2637 #if BIG_OK
2638 #else
2639 #error "your preprocessor is broken"
2640 #endif
2641 static long long int bignum = -9223372036854775807LL;
2642 static unsigned long long int ubignum = BIG64;
2643
2644 struct incomplete_array
2645 {
2646 int datasize;
2647 double data[];
2648 };
2649
2650 struct named_init {
2651 int number;
2652 const wchar_t *name;
2653 double average;
2654 };
2655
2656 typedef const char *ccp;
2657
2658 static inline int
2659 test_restrict (ccp restrict text)
2660 {
2661 // See if C++-style comments work.
2662 // Iterate through items via the restricted pointer.
2663 // Also check for declarations in for loops.
2664 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2665 continue;
2666 return 0;
2667 }
2668
2669 // Check varargs and va_copy.
2670 static bool
2671 test_varargs (const char *format, ...)
2672 {
2673 va_list args;
2674 va_start (args, format);
2675 va_list args_copy;
2676 va_copy (args_copy, args);
2677
2678 const char *str = "";
2679 int number = 0;
2680 float fnumber = 0;
2681
2682 while (*format)
2683 {
2684 switch (*format++)
2685 {
2686 case '\''s'\'': // string
2687 str = va_arg (args_copy, const char *);
2688 break;
2689 case '\''d'\'': // int
2690 number = va_arg (args_copy, int);
2691 break;
2692 case '\''f'\'': // float
2693 fnumber = va_arg (args_copy, double);
2694 break;
2695 default:
2696 break;
2697 }
2698 }
2699 va_end (args_copy);
2700 va_end (args);
2701
2702 return *str && number && fnumber;
2703 }
2704 '
2705
2706 # Test code for whether the C compiler supports C99 (body of main).
2707 ac_c_conftest_c99_main='
2708 // Check bool.
2709 _Bool success = false;
2710 success |= (argc != 0);
2711
2712 // Check restrict.
2713 if (test_restrict ("String literal") == 0)
2714 success = true;
2715 char *restrict newvar = "Another string";
2716
2717 // Check varargs.
2718 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2719 test_varargs_macros ();
2720
2721 // Check flexible array members.
2722 struct incomplete_array *ia =
2723 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2724 ia->datasize = 10;
2725 for (int i = 0; i < ia->datasize; ++i)
2726 ia->data[i] = i * 1.234;
2727
2728 // Check named initializers.
2729 struct named_init ni = {
2730 .number = 34,
2731 .name = L"Test wide string",
2732 .average = 543.34343,
2733 };
2734
2735 ni.number = 58;
2736
2737 int dynamic_array[ni.number];
2738 dynamic_array[0] = argv[0][0];
2739 dynamic_array[ni.number - 1] = 543;
2740
2741 // work around unused variable warnings
2742 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2743 || dynamic_array[ni.number - 1] != 543);
2744 '
2745
2746 # Test code for whether the C compiler supports C11 (global declarations)
2747 ac_c_conftest_c11_globals='
2748 // Does the compiler advertise C11 conformance?
2749 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2750 # error "Compiler does not advertise C11 conformance"
2751 #endif
2752
2753 // Check _Alignas.
2754 char _Alignas (double) aligned_as_double;
2755 char _Alignas (0) no_special_alignment;
2756 extern char aligned_as_int;
2757 char _Alignas (0) _Alignas (int) aligned_as_int;
2758
2759 // Check _Alignof.
2760 enum
2761 {
2762 int_alignment = _Alignof (int),
2763 int_array_alignment = _Alignof (int[100]),
2764 char_alignment = _Alignof (char)
2765 };
2766 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2767
2768 // Check _Noreturn.
2769 int _Noreturn does_not_return (void) { for (;;) continue; }
2770
2771 // Check _Static_assert.
2772 struct test_static_assert
2773 {
2774 int x;
2775 _Static_assert (sizeof (int) <= sizeof (long int),
2776 "_Static_assert does not work in struct");
2777 long int y;
2778 };
2779
2780 // Check UTF-8 literals.
2781 #define u8 syntax error!
2782 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2783
2784 // Check duplicate typedefs.
2785 typedef long *long_ptr;
2786 typedef long int *long_ptr;
2787 typedef long_ptr long_ptr;
2788
2789 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2790 struct anonymous
2791 {
2792 union {
2793 struct { int i; int j; };
2794 struct { int k; long int l; } w;
2795 };
2796 int m;
2797 } v1;
2798 '
2799
2800 # Test code for whether the C compiler supports C11 (body of main).
2801 ac_c_conftest_c11_main='
2802 _Static_assert ((offsetof (struct anonymous, i)
2803 == offsetof (struct anonymous, w.k)),
2804 "Anonymous union alignment botch");
2805 v1.i = 2;
2806 v1.w.k = 5;
2807 ok |= v1.i != 5;
2808 '
2809
2810 # Test code for whether the C compiler supports C11 (complete).
2811 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2812 ${ac_c_conftest_c99_globals}
2813 ${ac_c_conftest_c11_globals}
2814
2815 int
2816 main (int argc, char **argv)
2817 {
2818 int ok = 0;
2819 ${ac_c_conftest_c89_main}
2820 ${ac_c_conftest_c99_main}
2821 ${ac_c_conftest_c11_main}
2822 return ok;
2823 }
2824 "
2825
2826 # Test code for whether the C compiler supports C99 (complete).
2827 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2828 ${ac_c_conftest_c99_globals}
2829
2830 int
2831 main (int argc, char **argv)
2832 {
2833 int ok = 0;
2834 ${ac_c_conftest_c89_main}
2835 ${ac_c_conftest_c99_main}
2836 return ok;
2837 }
2838 "
2839
2840 # Test code for whether the C compiler supports C89 (complete).
2841 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2842
2843 int
2844 main (int argc, char **argv)
2845 {
2846 int ok = 0;
2847 ${ac_c_conftest_c89_main}
2848 return ok;
2849 }
2850 "
2851
2852 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2853 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2854 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2855 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2856 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2857 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2858 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2859 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2860 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2861
2862 # Auxiliary files required by this configure script.
2863 ac_aux_files="config.guess config.sub compile missing install-sh"
2864
2865 # Locations in which to look for auxiliary files.
2866 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2867
2868 # Search for a directory containing all of the required auxiliary files,
2869 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2870 # If we don't find one directory that contains all the files we need,
2871 # we report the set of missing files from the *first* directory in
2872 # $ac_aux_dir_candidates and give up.
2873 ac_missing_aux_files=""
2874 ac_first_candidate=:
2875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 as_found=false
2878 for as_dir in $ac_aux_dir_candidates
2879 do
2880 IFS=$as_save_IFS
2881 case $as_dir in #(((
2882 '') as_dir=./ ;;
2883 */) ;;
2884 *) as_dir=$as_dir/ ;;
2885 esac
2886 as_found=:
2887
2888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2889 ac_aux_dir_found=yes
2890 ac_install_sh=
2891 for ac_aux in $ac_aux_files
2892 do
2893 # As a special case, if "install-sh" is required, that requirement
2894 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2895 # and $ac_install_sh is set appropriately for whichever one is found.
2896 if test x"$ac_aux" = x"install-sh"
2897 then
2898 if test -f "${as_dir}install-sh"; then
2899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2900 ac_install_sh="${as_dir}install-sh -c"
2901 elif test -f "${as_dir}install.sh"; then
2902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2903 ac_install_sh="${as_dir}install.sh -c"
2904 elif test -f "${as_dir}shtool"; then
2905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2906 ac_install_sh="${as_dir}shtool install -c"
2907 else
2908 ac_aux_dir_found=no
2909 if $ac_first_candidate; then
2910 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2911 else
2912 break
2913 fi
2914 fi
2915 else
2916 if test -f "${as_dir}${ac_aux}"; then
2917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2918 else
2919 ac_aux_dir_found=no
2920 if $ac_first_candidate; then
2921 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2922 else
2923 break
2924 fi
2925 fi
2926 fi
2927 done
2928 if test "$ac_aux_dir_found" = yes; then
2929 ac_aux_dir="$as_dir"
2930 break
2931 fi
2932 ac_first_candidate=false
2933
2934 as_found=false
2935 done
2936 IFS=$as_save_IFS
2937 if $as_found
2938 then :
2939
2940 else $as_nop
2941 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2942 fi
2943
2944
2945 # These three variables are undocumented and unsupported,
2946 # and are intended to be withdrawn in a future Autoconf release.
2947 # They can cause serious problems if a builder's source tree is in a directory
2948 # whose full name contains unusual characters.
2949 if test -f "${ac_aux_dir}config.guess"; then
2950 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2951 fi
2952 if test -f "${ac_aux_dir}config.sub"; then
2953 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2954 fi
2955 if test -f "$ac_aux_dir/configure"; then
2956 ac_configure="$SHELL ${ac_aux_dir}configure"
23972957 fi
23982958
23992959 # Check that the precious variables saved in the cache have kept the same
24062966 eval ac_new_val=\$ac_env_${ac_var}_value
24072967 case $ac_old_set,$ac_new_set in
24082968 set,)
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2970 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
24112971 ac_cache_corrupted=: ;;
24122972 ,set)
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2414 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2974 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
24152975 ac_cache_corrupted=: ;;
24162976 ,);;
24172977 *)
24202980 ac_old_val_w=`echo x $ac_old_val`
24212981 ac_new_val_w=`echo x $ac_new_val`
24222982 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2424 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2984 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
24252985 ac_cache_corrupted=:
24262986 else
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2428 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2988 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
24292989 eval $ac_var=\$ac_old_val
24302990 fi
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2432 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2434 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2992 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2994 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
24352995 fi;;
24362996 esac
24372997 # Pass precious variables to config.status.
24382998 if test "$ac_new_set" = set; then
24392999 case $ac_new_val in
2440 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3000 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
24413001 *) ac_arg=$ac_var=$ac_new_val ;;
24423002 esac
24433003 case " $ac_configure_args " in
24473007 fi
24483008 done
24493009 if $ac_cache_corrupted; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2453 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2454 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3013 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3014 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3015 and start over" "$LINENO" 5
24553016 fi
24563017 ## -------------------- ##
24573018 ## Main body of script. ##
24653026
24663027
24673028
2468 am__api_version='1.15'
2469
2470 ac_aux_dir=
2471 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2472 if test -f "$ac_dir/install-sh"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/install-sh -c"
2475 break
2476 elif test -f "$ac_dir/install.sh"; then
2477 ac_aux_dir=$ac_dir
2478 ac_install_sh="$ac_aux_dir/install.sh -c"
2479 break
2480 elif test -f "$ac_dir/shtool"; then
2481 ac_aux_dir=$ac_dir
2482 ac_install_sh="$ac_aux_dir/shtool install -c"
2483 break
2484 fi
2485 done
2486 if test -z "$ac_aux_dir"; then
2487 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2488 fi
2489
2490 # These three variables are undocumented and unsupported,
2491 # and are intended to be withdrawn in a future Autoconf release.
2492 # They can cause serious problems if a builder's source tree is in a directory
2493 # whose full name contains unusual characters.
2494 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2495 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2496 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2497
2498
2499 # Find a good install program. We prefer a C program (faster),
3029 am__api_version='1.16'
3030
3031
3032
3033 # Find a good install program. We prefer a C program (faster),
25003034 # so one script is as good as another. But avoid the broken or
25013035 # incompatible versions:
25023036 # SysV /etc/install, /usr/sbin/install
25103044 # OS/2's system install, which has a completely different semantic
25113045 # ./install, which can be erroneously created by make from ./install.sh.
25123046 # Reject install programs that cannot install multiple files.
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2514 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3048 printf %s "checking for a BSD-compatible install... " >&6; }
25153049 if test -z "$INSTALL"; then
2516 if ${ac_cv_path_install+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
3050 if test ${ac_cv_path_install+y}
3051 then :
3052 printf %s "(cached) " >&6
3053 else $as_nop
25193054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25203055 for as_dir in $PATH
25213056 do
25223057 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 # Account for people who put trailing slashes in PATH elements.
2525 case $as_dir/ in #((
2526 ./ | .// | /[cC]/* | \
3058 case $as_dir in #(((
3059 '') as_dir=./ ;;
3060 */) ;;
3061 *) as_dir=$as_dir/ ;;
3062 esac
3063 # Account for fact that we put trailing slashes in our PATH walk.
3064 case $as_dir in #((
3065 ./ | /[cC]/* | \
25273066 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
25283067 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
25293068 /usr/ucb/* ) ;;
25333072 # by default.
25343073 for ac_prog in ginstall scoinst install; do
25353074 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3075 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
25373076 if test $ac_prog = install &&
2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3077 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25393078 # AIX install. It has an incompatible calling convention.
25403079 :
25413080 elif test $ac_prog = install &&
2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3081 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25433082 # program-specific install script used by HP pwplus--don't use.
25443083 :
25453084 else
25473086 echo one > conftest.one
25483087 echo two > conftest.two
25493088 mkdir conftest.dir
2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3089 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
25513090 test -s conftest.one && test -s conftest.two &&
25523091 test -s conftest.dir/conftest.one &&
25533092 test -s conftest.dir/conftest.two
25543093 then
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3094 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
25563095 break 3
25573096 fi
25583097 fi
25683107 rm -rf conftest.one conftest.two conftest.dir
25693108
25703109 fi
2571 if test "${ac_cv_path_install+set}" = set; then
3110 if test ${ac_cv_path_install+y}; then
25723111 INSTALL=$ac_cv_path_install
25733112 else
25743113 # As a last resort, use the slow shell script. Don't cache a
25783117 INSTALL=$ac_install_sh
25793118 fi
25803119 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2582 $as_echo "$INSTALL" >&6; }
3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3121 printf "%s\n" "$INSTALL" >&6; }
25833122
25843123 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
25853124 # It thinks the first close brace ends the variable substitution.
25893128
25903129 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
25913130
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2593 $as_echo_n "checking whether build environment is sane... " >&6; }
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3132 printf %s "checking whether build environment is sane... " >&6; }
25943133 # Reject unsafe characters in $srcdir or the absolute working directory
25953134 # name. Accept space and tab only in the latter.
25963135 am_lf='
26443183 as_fn_error $? "newly created file is older than distributed files!
26453184 Check your system clock" "$LINENO" 5
26463185 fi
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2648 $as_echo "yes" >&6; }
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187 printf "%s\n" "yes" >&6; }
26493188 # If we didn't sleep, we still need to ensure time stamps of config.status and
26503189 # generated files are strictly newer.
26513190 am_sleep_pid=
26643203 # Double any \ or $.
26653204 # By default was `s,x,x', remove it if useless.
26663205 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2667 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3206 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3207
26683208
26693209 # Expand $ac_aux_dir to an absolute path.
26703210 am_aux_dir=`cd "$ac_aux_dir" && pwd`
26713211
2672 if test x"${MISSING+set}" != xset; then
2673 case $am_aux_dir in
2674 *\ * | *\ *)
2675 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2676 *)
2677 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2678 esac
3212
3213 if test x"${MISSING+set}" != xset; then
3214 MISSING="\${SHELL} '$am_aux_dir/missing'"
26793215 fi
26803216 # Use eval to expand $SHELL
26813217 if eval "$MISSING --is-lightweight"; then
26823218 am_missing_run="$MISSING "
26833219 else
26843220 am_missing_run=
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2686 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3222 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26873223 fi
26883224
26893225 if test x"${install_sh+set}" != xset; then
27033239 if test -n "$ac_tool_prefix"; then
27043240 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27053241 set dummy ${ac_tool_prefix}strip; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_STRIP+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 printf %s "checking for $ac_word... " >&6; }
3244 if test ${ac_cv_prog_STRIP+y}
3245 then :
3246 printf %s "(cached) " >&6
3247 else $as_nop
27113248 if test -n "$STRIP"; then
27123249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
27133250 else
27153252 for as_dir in $PATH
27163253 do
27173254 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
3255 case $as_dir in #(((
3256 '') as_dir=./ ;;
3257 */) ;;
3258 *) as_dir=$as_dir/ ;;
3259 esac
27193260 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27213262 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27233264 break 2
27243265 fi
27253266 done
27303271 fi
27313272 STRIP=$ac_cv_prog_STRIP
27323273 if test -n "$STRIP"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2734 $as_echo "$STRIP" >&6; }
2735 else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3275 printf "%s\n" "$STRIP" >&6; }
3276 else
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 printf "%s\n" "no" >&6; }
27383279 fi
27393280
27403281
27433284 ac_ct_STRIP=$STRIP
27443285 # Extract the first word of "strip", so it can be a program name with args.
27453286 set dummy strip; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 printf %s "checking for $ac_word... " >&6; }
3289 if test ${ac_cv_prog_ac_ct_STRIP+y}
3290 then :
3291 printf %s "(cached) " >&6
3292 else $as_nop
27513293 if test -n "$ac_ct_STRIP"; then
27523294 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
27533295 else
27553297 for as_dir in $PATH
27563298 do
27573299 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
3300 case $as_dir in #(((
3301 '') as_dir=./ ;;
3302 */) ;;
3303 *) as_dir=$as_dir/ ;;
3304 esac
27593305 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27613307 ac_cv_prog_ac_ct_STRIP="strip"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27633309 break 2
27643310 fi
27653311 done
27703316 fi
27713317 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
27723318 if test -n "$ac_ct_STRIP"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2774 $as_echo "$ac_ct_STRIP" >&6; }
2775 else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3320 printf "%s\n" "$ac_ct_STRIP" >&6; }
3321 else
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 printf "%s\n" "no" >&6; }
27783324 fi
27793325
27803326 if test "x$ac_ct_STRIP" = x; then
27823328 else
27833329 case $cross_compiling:$ac_tool_warned in
27843330 yes:)
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3332 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27873333 ac_tool_warned=yes ;;
27883334 esac
27893335 STRIP=$ac_ct_STRIP
27953341 fi
27963342 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
27973343
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2799 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3344
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3346 printf %s "checking for a race-free mkdir -p... " >&6; }
28003347 if test -z "$MKDIR_P"; then
2801 if ${ac_cv_path_mkdir+:} false; then :
2802 $as_echo_n "(cached) " >&6
2803 else
3348 if test ${ac_cv_path_mkdir+y}
3349 then :
3350 printf %s "(cached) " >&6
3351 else $as_nop
28043352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28053353 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
28063354 do
28073355 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
3356 case $as_dir in #(((
3357 '') as_dir=./ ;;
3358 */) ;;
3359 *) as_dir=$as_dir/ ;;
3360 esac
28093361 for ac_prog in mkdir gmkdir; do
28103362 for ac_exec_ext in '' $ac_executable_extensions; do
2811 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2812 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2813 'mkdir (GNU coreutils) '* | \
2814 'mkdir (coreutils) '* | \
3363 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3364 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3365 'mkdir ('*'coreutils) '* | \
3366 'BusyBox '* | \
28153367 'mkdir (fileutils) '4.1*)
2816 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3368 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
28173369 break 3;;
28183370 esac
28193371 done
28243376 fi
28253377
28263378 test -d ./--version && rmdir ./--version
2827 if test "${ac_cv_path_mkdir+set}" = set; then
3379 if test ${ac_cv_path_mkdir+y}; then
28283380 MKDIR_P="$ac_cv_path_mkdir -p"
28293381 else
28303382 # As a last resort, use the slow shell script. Don't cache a
28343386 MKDIR_P="$ac_install_sh -d"
28353387 fi
28363388 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2838 $as_echo "$MKDIR_P" >&6; }
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3390 printf "%s\n" "$MKDIR_P" >&6; }
28393391
28403392 for ac_prog in gawk mawk nawk awk
28413393 do
28423394 # Extract the first word of "$ac_prog", so it can be a program name with args.
28433395 set dummy $ac_prog; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_AWK+:} false; then :
2847 $as_echo_n "(cached) " >&6
2848 else
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 printf %s "checking for $ac_word... " >&6; }
3398 if test ${ac_cv_prog_AWK+y}
3399 then :
3400 printf %s "(cached) " >&6
3401 else $as_nop
28493402 if test -n "$AWK"; then
28503403 ac_cv_prog_AWK="$AWK" # Let the user override the test.
28513404 else
28533406 for as_dir in $PATH
28543407 do
28553408 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
3409 case $as_dir in #(((
3410 '') as_dir=./ ;;
3411 */) ;;
3412 *) as_dir=$as_dir/ ;;
3413 esac
28573414 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28593416 ac_cv_prog_AWK="$ac_prog"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28613418 break 2
28623419 fi
28633420 done
28683425 fi
28693426 AWK=$ac_cv_prog_AWK
28703427 if test -n "$AWK"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2872 $as_echo "$AWK" >&6; }
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3429 printf "%s\n" "$AWK" >&6; }
3430 else
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 printf "%s\n" "no" >&6; }
28763433 fi
28773434
28783435
28793436 test -n "$AWK" && break
28803437 done
28813438
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2883 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3440 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28843441 set x ${MAKE-make}
2885 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2886 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
3442 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3443 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3444 then :
3445 printf %s "(cached) " >&6
3446 else $as_nop
28893447 cat >conftest.make <<\_ACEOF
28903448 SHELL = /bin/sh
28913449 all:
29013459 rm -f conftest.make
29023460 fi
29033461 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2905 $as_echo "yes" >&6; }
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3463 printf "%s\n" "yes" >&6; }
29063464 SET_MAKE=
29073465 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 printf "%s\n" "no" >&6; }
29103468 SET_MAKE="MAKE=${MAKE-make}"
29113469 fi
29123470
29203478 rmdir .tst 2>/dev/null
29213479
29223480 # Check whether --enable-silent-rules was given.
2923 if test "${enable_silent_rules+set}" = set; then :
3481 if test ${enable_silent_rules+y}
3482 then :
29243483 enableval=$enable_silent_rules;
29253484 fi
29263485
29303489 *) AM_DEFAULT_VERBOSITY=1;;
29313490 esac
29323491 am_make=${MAKE-make}
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2934 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2935 if ${am_cv_make_support_nested_variables+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if $as_echo 'TRUE=$(BAR$(V))
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3493 printf %s "checking whether $am_make supports nested variables... " >&6; }
3494 if test ${am_cv_make_support_nested_variables+y}
3495 then :
3496 printf %s "(cached) " >&6
3497 else $as_nop
3498 if printf "%s\n" 'TRUE=$(BAR$(V))
29393499 BAR0=false
29403500 BAR1=true
29413501 V=1
29473507 am_cv_make_support_nested_variables=no
29483508 fi
29493509 fi
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2951 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3511 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
29523512 if test $am_cv_make_support_nested_variables = yes; then
29533513 AM_V='$(V)'
29543514 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
29833543 VERSION='2.2.2'
29843544
29853545
2986 cat >>confdefs.h <<_ACEOF
2987 #define PACKAGE "$PACKAGE"
2988 _ACEOF
2989
2990
2991 cat >>confdefs.h <<_ACEOF
2992 #define VERSION "$VERSION"
2993 _ACEOF
3546 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3547
3548
3549 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
29943550
29953551 # Some tools Automake needs.
29963552
30103566
30113567 # For better backward compatibility. To be removed once Automake 1.9.x
30123568 # dies out for good. For more background, see:
3013 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3014 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3569 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3570 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
30153571 mkdir_p='$(MKDIR_P)'
30163572
30173573 # We need awk for the "check" target (and possibly the TAP driver). The
30283584
30293585
30303586
3587
3588
3589 # Variables for tags utilities; see am/tags.am
3590 if test -z "$CTAGS"; then
3591 CTAGS=ctags
3592 fi
3593
3594 if test -z "$ETAGS"; then
3595 ETAGS=etags
3596 fi
3597
3598 if test -z "$CSCOPE"; then
3599 CSCOPE=cscope
3600 fi
30313601
30323602
30333603
30623632 Aborting the configuration process, to ensure you take notice of the issue.
30633633
30643634 You can download and install GNU coreutils to get an 'rm' implementation
3065 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3635 that behaves properly: <https://www.gnu.org/software/coreutils/>.
30663636
30673637 If you want to complete the configuration process using your problematic
30683638 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
30773647
30783648
30793649 # Check whether --enable-silent-rules was given.
3080 if test "${enable_silent_rules+set}" = set; then :
3650 if test ${enable_silent_rules+y}
3651 then :
30813652 enableval=$enable_silent_rules;
30823653 fi
30833654
30873658 *) AM_DEFAULT_VERBOSITY=0;;
30883659 esac
30893660 am_make=${MAKE-make}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3091 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3092 if ${am_cv_make_support_nested_variables+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if $as_echo 'TRUE=$(BAR$(V))
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3662 printf %s "checking whether $am_make supports nested variables... " >&6; }
3663 if test ${am_cv_make_support_nested_variables+y}
3664 then :
3665 printf %s "(cached) " >&6
3666 else $as_nop
3667 if printf "%s\n" 'TRUE=$(BAR$(V))
30963668 BAR0=false
30973669 BAR1=true
30983670 V=1
31043676 am_cv_make_support_nested_variables=no
31053677 fi
31063678 fi
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3108 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3680 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
31093681 if test $am_cv_make_support_nested_variables = yes; then
31103682 AM_V='$(V)'
31113683 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
31173689
31183690
31193691 # Checks for programs.
3692
3693
3694
3695
3696
3697
31203698 ac_ext=cpp
31213699 ac_cpp='$CXXCPP $CPPFLAGS'
31223700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31273705 CXX=$CCC
31283706 else
31293707 if test -n "$ac_tool_prefix"; then
3130 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3708 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
31313709 do
31323710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31333711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_CXX+:} false; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 printf %s "checking for $ac_word... " >&6; }
3714 if test ${ac_cv_prog_CXX+y}
3715 then :
3716 printf %s "(cached) " >&6
3717 else $as_nop
31393718 if test -n "$CXX"; then
31403719 ac_cv_prog_CXX="$CXX" # Let the user override the test.
31413720 else
31433722 for as_dir in $PATH
31443723 do
31453724 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3725 case $as_dir in #(((
3726 '') as_dir=./ ;;
3727 */) ;;
3728 *) as_dir=$as_dir/ ;;
3729 esac
31473730 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31493732 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31513734 break 2
31523735 fi
31533736 done
31583741 fi
31593742 CXX=$ac_cv_prog_CXX
31603743 if test -n "$CXX"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3162 $as_echo "$CXX" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3745 printf "%s\n" "$CXX" >&6; }
3746 else
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 printf "%s\n" "no" >&6; }
31663749 fi
31673750
31683751
31713754 fi
31723755 if test -z "$CXX"; then
31733756 ac_ct_CXX=$CXX
3174 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3757 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
31753758 do
31763759 # Extract the first word of "$ac_prog", so it can be a program name with args.
31773760 set dummy $ac_prog; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 printf %s "checking for $ac_word... " >&6; }
3763 if test ${ac_cv_prog_ac_ct_CXX+y}
3764 then :
3765 printf %s "(cached) " >&6
3766 else $as_nop
31833767 if test -n "$ac_ct_CXX"; then
31843768 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
31853769 else
31873771 for as_dir in $PATH
31883772 do
31893773 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3774 case $as_dir in #(((
3775 '') as_dir=./ ;;
3776 */) ;;
3777 *) as_dir=$as_dir/ ;;
3778 esac
31913779 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31933781 ac_cv_prog_ac_ct_CXX="$ac_prog"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31953783 break 2
31963784 fi
31973785 done
32023790 fi
32033791 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
32043792 if test -n "$ac_ct_CXX"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3206 $as_echo "$ac_ct_CXX" >&6; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3794 printf "%s\n" "$ac_ct_CXX" >&6; }
3795 else
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 printf "%s\n" "no" >&6; }
32103798 fi
32113799
32123800
32183806 else
32193807 case $cross_compiling:$ac_tool_warned in
32203808 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3810 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32233811 ac_tool_warned=yes ;;
32243812 esac
32253813 CXX=$ac_ct_CXX
32293817 fi
32303818 fi
32313819 # Provide some information about the compiler.
3232 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
32333821 set X $ac_compile
32343822 ac_compiler=$2
32353823 for ac_option in --version -v -V -qversion; do
32393827 *) ac_try_echo=$ac_try;;
32403828 esac
32413829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3830 printf "%s\n" "$ac_try_echo"; } >&5
32433831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
32443832 ac_status=$?
32453833 if test -s conftest.err; then
32493837 cat conftest.er1 >&5
32503838 fi
32513839 rm -f conftest.er1 conftest.err
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32533841 test $ac_status = 0; }
32543842 done
32553843
32573845 /* end confdefs.h. */
32583846
32593847 int
3260 main ()
3848 main (void)
32613849 {
32623850
32633851 ;
32693857 # Try to create an executable without -o first, disregard a.out.
32703858 # It will help us diagnose broken compilers, and finding out an intuition
32713859 # of exeext.
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3273 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3274 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3861 printf %s "checking whether the C++ compiler works... " >&6; }
3862 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
32753863
32763864 # The possible output files:
32773865 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
32923880 *) ac_try_echo=$ac_try;;
32933881 esac
32943882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3883 printf "%s\n" "$ac_try_echo"; } >&5
32963884 (eval "$ac_link_default") 2>&5
32973885 ac_status=$?
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }; then :
3886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }
3888 then :
33003889 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
33013890 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
33023891 # in a Makefile. We should not override ac_cv_exeext if it was cached,
33133902 # certainly right.
33143903 break;;
33153904 *.* )
3316 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3905 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
33173906 then :; else
33183907 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
33193908 fi
33293918 done
33303919 test "$ac_cv_exeext" = no && ac_cv_exeext=
33313920
3332 else
3921 else $as_nop
33333922 ac_file=''
33343923 fi
3335 if test -z "$ac_file"; then :
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 $as_echo "$as_me: failed program was:" >&5
3924 if test -z "$ac_file"
3925 then :
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 printf "%s\n" "no" >&6; }
3928 printf "%s\n" "$as_me: failed program was:" >&5
33393929 sed 's/^/| /' conftest.$ac_ext >&5
33403930
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
33433933 as_fn_error 77 "C++ compiler cannot create executables
33443934 See \`config.log' for more details" "$LINENO" 5; }
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347 $as_echo "yes" >&6; }
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3350 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3352 $as_echo "$ac_file" >&6; }
3935 else $as_nop
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3937 printf "%s\n" "yes" >&6; }
3938 fi
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3940 printf %s "checking for C++ compiler default output file name... " >&6; }
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3942 printf "%s\n" "$ac_file" >&6; }
33533943 ac_exeext=$ac_cv_exeext
33543944
33553945 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
33563946 ac_clean_files=$ac_clean_files_save
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3358 $as_echo_n "checking for suffix of executables... " >&6; }
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3948 printf %s "checking for suffix of executables... " >&6; }
33593949 if { { ac_try="$ac_link"
33603950 case "(($ac_try" in
33613951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33623952 *) ac_try_echo=$ac_try;;
33633953 esac
33643954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3955 printf "%s\n" "$ac_try_echo"; } >&5
33663956 (eval "$ac_link") 2>&5
33673957 ac_status=$?
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }; then :
3958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }
3960 then :
33703961 # If both `conftest.exe' and `conftest' are `present' (well, observable)
33713962 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
33723963 # work properly (i.e., refer to `conftest.exe'), while it won't with
33803971 * ) break;;
33813972 esac
33823973 done
3383 else
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 else $as_nop
3975 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
33863977 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
33873978 See \`config.log' for more details" "$LINENO" 5; }
33883979 fi
33893980 rm -f conftest conftest$ac_cv_exeext
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3391 $as_echo "$ac_cv_exeext" >&6; }
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3982 printf "%s\n" "$ac_cv_exeext" >&6; }
33923983
33933984 rm -f conftest.$ac_ext
33943985 EXEEXT=$ac_cv_exeext
33973988 /* end confdefs.h. */
33983989 #include <stdio.h>
33993990 int
3400 main ()
3991 main (void)
34013992 {
34023993 FILE *f = fopen ("conftest.out", "w");
34033994 return ferror (f) || fclose (f) != 0;
34094000 ac_clean_files="$ac_clean_files conftest.out"
34104001 # Check that the compiler produces executables we can run. If not, either
34114002 # the compiler is broken, or we cross compile.
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3413 $as_echo_n "checking whether we are cross compiling... " >&6; }
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4004 printf %s "checking whether we are cross compiling... " >&6; }
34144005 if test "$cross_compiling" != yes; then
34154006 { { ac_try="$ac_link"
34164007 case "(($ac_try" in
34184009 *) ac_try_echo=$ac_try;;
34194010 esac
34204011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
4012 printf "%s\n" "$ac_try_echo"; } >&5
34224013 (eval "$ac_link") 2>&5
34234014 ac_status=$?
3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34254016 test $ac_status = 0; }
34264017 if { ac_try='./conftest$ac_cv_exeext'
34274018 { { case "(($ac_try" in
34294020 *) ac_try_echo=$ac_try;;
34304021 esac
34314022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
4023 printf "%s\n" "$ac_try_echo"; } >&5
34334024 (eval "$ac_try") 2>&5
34344025 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34364027 test $ac_status = 0; }; }; then
34374028 cross_compiling=no
34384029 else
34394030 if test "$cross_compiling" = maybe; then
34404031 cross_compiling=yes
34414032 else
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error $? "cannot run C++ compiled programs.
4033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4035 as_fn_error 77 "cannot run C++ compiled programs.
34454036 If you meant to cross compile, use \`--host'.
34464037 See \`config.log' for more details" "$LINENO" 5; }
34474038 fi
34484039 fi
34494040 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3451 $as_echo "$cross_compiling" >&6; }
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4042 printf "%s\n" "$cross_compiling" >&6; }
34524043
34534044 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
34544045 ac_clean_files=$ac_clean_files_save
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3456 $as_echo_n "checking for suffix of object files... " >&6; }
3457 if ${ac_cv_objext+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4047 printf %s "checking for suffix of object files... " >&6; }
4048 if test ${ac_cv_objext+y}
4049 then :
4050 printf %s "(cached) " >&6
4051 else $as_nop
34604052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34614053 /* end confdefs.h. */
34624054
34634055 int
3464 main ()
4056 main (void)
34654057 {
34664058
34674059 ;
34754067 *) ac_try_echo=$ac_try;;
34764068 esac
34774069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
4070 printf "%s\n" "$ac_try_echo"; } >&5
34794071 (eval "$ac_compile") 2>&5
34804072 ac_status=$?
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }; then :
4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }
4075 then :
34834076 for ac_file in conftest.o conftest.obj conftest.*; do
34844077 test -f "$ac_file" || continue;
34854078 case $ac_file in
34884081 break;;
34894082 esac
34904083 done
3491 else
3492 $as_echo "$as_me: failed program was:" >&5
4084 else $as_nop
4085 printf "%s\n" "$as_me: failed program was:" >&5
34934086 sed 's/^/| /' conftest.$ac_ext >&5
34944087
3495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4088 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34974090 as_fn_error $? "cannot compute suffix of object files: cannot compile
34984091 See \`config.log' for more details" "$LINENO" 5; }
34994092 fi
35004093 rm -f conftest.$ac_cv_objext conftest.$ac_ext
35014094 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3503 $as_echo "$ac_cv_objext" >&6; }
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4096 printf "%s\n" "$ac_cv_objext" >&6; }
35044097 OBJEXT=$ac_cv_objext
35054098 ac_objext=$OBJEXT
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3507 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3508 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3509 $as_echo_n "(cached) " >&6
3510 else
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4100 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4101 if test ${ac_cv_cxx_compiler_gnu+y}
4102 then :
4103 printf %s "(cached) " >&6
4104 else $as_nop
35114105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35124106 /* end confdefs.h. */
35134107
35144108 int
3515 main ()
4109 main (void)
35164110 {
35174111 #ifndef __GNUC__
35184112 choke me
35224116 return 0;
35234117 }
35244118 _ACEOF
3525 if ac_fn_cxx_try_compile "$LINENO"; then :
4119 if ac_fn_cxx_try_compile "$LINENO"
4120 then :
35264121 ac_compiler_gnu=yes
3527 else
4122 else $as_nop
35284123 ac_compiler_gnu=no
35294124 fi
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35314126 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
35324127
35334128 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3535 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4130 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4132
35364133 if test $ac_compiler_gnu = yes; then
35374134 GXX=yes
35384135 else
35394136 GXX=
35404137 fi
3541 ac_test_CXXFLAGS=${CXXFLAGS+set}
4138 ac_test_CXXFLAGS=${CXXFLAGS+y}
35424139 ac_save_CXXFLAGS=$CXXFLAGS
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3544 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3545 if ${ac_cv_prog_cxx_g+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4141 printf %s "checking whether $CXX accepts -g... " >&6; }
4142 if test ${ac_cv_prog_cxx_g+y}
4143 then :
4144 printf %s "(cached) " >&6
4145 else $as_nop
35484146 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
35494147 ac_cxx_werror_flag=yes
35504148 ac_cv_prog_cxx_g=no
35534151 /* end confdefs.h. */
35544152
35554153 int
3556 main ()
4154 main (void)
35574155 {
35584156
35594157 ;
35604158 return 0;
35614159 }
35624160 _ACEOF
3563 if ac_fn_cxx_try_compile "$LINENO"; then :
4161 if ac_fn_cxx_try_compile "$LINENO"
4162 then :
35644163 ac_cv_prog_cxx_g=yes
3565 else
4164 else $as_nop
35664165 CXXFLAGS=""
35674166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35684167 /* end confdefs.h. */
35694168
35704169 int
3571 main ()
4170 main (void)
35724171 {
35734172
35744173 ;
35754174 return 0;
35764175 }
35774176 _ACEOF
3578 if ac_fn_cxx_try_compile "$LINENO"; then :
3579
3580 else
4177 if ac_fn_cxx_try_compile "$LINENO"
4178 then :
4179
4180 else $as_nop
35814181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35824182 CXXFLAGS="-g"
35834183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35844184 /* end confdefs.h. */
35854185
35864186 int
3587 main ()
4187 main (void)
35884188 {
35894189
35904190 ;
35914191 return 0;
35924192 }
35934193 _ACEOF
3594 if ac_fn_cxx_try_compile "$LINENO"; then :
4194 if ac_fn_cxx_try_compile "$LINENO"
4195 then :
35954196 ac_cv_prog_cxx_g=yes
35964197 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4201 fi
4202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36024203 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
36034204 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3605 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3606 if test "$ac_test_CXXFLAGS" = set; then
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4206 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4207 if test $ac_test_CXXFLAGS; then
36074208 CXXFLAGS=$ac_save_CXXFLAGS
36084209 elif test $ac_cv_prog_cxx_g = yes; then
36094210 if test "$GXX" = yes; then
36184219 CXXFLAGS=
36194220 fi
36204221 fi
4222 ac_prog_cxx_stdcxx=no
4223 if test x$ac_prog_cxx_stdcxx = xno
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4226 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4227 if test ${ac_cv_prog_cxx_11+y}
4228 then :
4229 printf %s "(cached) " >&6
4230 else $as_nop
4231 ac_cv_prog_cxx_11=no
4232 ac_save_CXX=$CXX
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235 $ac_cxx_conftest_cxx11_program
4236 _ACEOF
4237 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4238 do
4239 CXX="$ac_save_CXX $ac_arg"
4240 if ac_fn_cxx_try_compile "$LINENO"
4241 then :
4242 ac_cv_prog_cxx_cxx11=$ac_arg
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.beam
4245 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CXX=$ac_save_CXX
4249 fi
4250
4251 if test "x$ac_cv_prog_cxx_cxx11" = xno
4252 then :
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254 printf "%s\n" "unsupported" >&6; }
4255 else $as_nop
4256 if test "x$ac_cv_prog_cxx_cxx11" = x
4257 then :
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4259 printf "%s\n" "none needed" >&6; }
4260 else $as_nop
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4262 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4263 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4264 fi
4265 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4266 ac_prog_cxx_stdcxx=cxx11
4267 fi
4268 fi
4269 if test x$ac_prog_cxx_stdcxx = xno
4270 then :
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4272 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4273 if test ${ac_cv_prog_cxx_98+y}
4274 then :
4275 printf %s "(cached) " >&6
4276 else $as_nop
4277 ac_cv_prog_cxx_98=no
4278 ac_save_CXX=$CXX
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 $ac_cxx_conftest_cxx98_program
4282 _ACEOF
4283 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4284 do
4285 CXX="$ac_save_CXX $ac_arg"
4286 if ac_fn_cxx_try_compile "$LINENO"
4287 then :
4288 ac_cv_prog_cxx_cxx98=$ac_arg
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.beam
4291 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4292 done
4293 rm -f conftest.$ac_ext
4294 CXX=$ac_save_CXX
4295 fi
4296
4297 if test "x$ac_cv_prog_cxx_cxx98" = xno
4298 then :
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300 printf "%s\n" "unsupported" >&6; }
4301 else $as_nop
4302 if test "x$ac_cv_prog_cxx_cxx98" = x
4303 then :
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 printf "%s\n" "none needed" >&6; }
4306 else $as_nop
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4308 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4309 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4310 fi
4311 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4312 ac_prog_cxx_stdcxx=cxx98
4313 fi
4314 fi
4315
36214316 ac_ext=c
36224317 ac_cpp='$CPP $CPPFLAGS'
36234318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36274322
36284323 ac_config_commands="$ac_config_commands depfiles"
36294324
3630
3631 am_make=${MAKE-make}
3632 cat > confinc << 'END'
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4326 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4327 cat > confinc.mk << 'END'
36334328 am__doit:
3634 @echo this is the am__doit target
4329 @echo this is the am__doit target >confinc.out
36354330 .PHONY: am__doit
36364331 END
3637 # If we don't find an include directive, just comment out the code.
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3639 $as_echo_n "checking for style of include used by $am_make... " >&6; }
36404332 am__include="#"
36414333 am__quote=
3642 _am_result=none
3643 # First try GNU make style include.
3644 echo "include confinc" > confmf
3645 # Ignore all kinds of additional output from 'make'.
3646 case `$am_make -s -f confmf 2> /dev/null` in #(
3647 *the\ am__doit\ target*)
3648 am__include=include
3649 am__quote=
3650 _am_result=GNU
3651 ;;
4334 # BSD make does it like this.
4335 echo '.include "confinc.mk" # ignored' > confmf.BSD
4336 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4337 echo 'include confinc.mk # ignored' > confmf.GNU
4338 _am_result=no
4339 for s in GNU BSD; do
4340 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4341 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }
4345 case $?:`cat confinc.out 2>/dev/null` in #(
4346 '0:this is the am__doit target') :
4347 case $s in #(
4348 BSD) :
4349 am__include='.include' am__quote='"' ;; #(
4350 *) :
4351 am__include='include' am__quote='' ;;
4352 esac ;; #(
4353 *) :
4354 ;;
36524355 esac
3653 # Now try BSD make style include.
3654 if test "$am__include" = "#"; then
3655 echo '.include "confinc"' > confmf
3656 case `$am_make -s -f confmf 2> /dev/null` in #(
3657 *the\ am__doit\ target*)
3658 am__include=.include
3659 am__quote="\""
3660 _am_result=BSD
3661 ;;
3662 esac
3663 fi
3664
3665
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3667 $as_echo "$_am_result" >&6; }
3668 rm -f confinc confmf
4356 if test "$am__include" != "#"; then
4357 _am_result="yes ($s style)"
4358 break
4359 fi
4360 done
4361 rm -f confinc.* confmf.*
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4363 printf "%s\n" "${_am_result}" >&6; }
36694364
36704365 # Check whether --enable-dependency-tracking was given.
3671 if test "${enable_dependency_tracking+set}" = set; then :
4366 if test ${enable_dependency_tracking+y}
4367 then :
36724368 enableval=$enable_dependency_tracking;
36734369 fi
36744370
36894385
36904386 depcc="$CXX" am_compiler_list=
36914387
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3693 $as_echo_n "checking dependency style of $depcc... " >&6; }
3694 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3695 $as_echo_n "(cached) " >&6
3696 else
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4389 printf %s "checking dependency style of $depcc... " >&6; }
4390 if test ${am_cv_CXX_dependencies_compiler_type+y}
4391 then :
4392 printf %s "(cached) " >&6
4393 else $as_nop
36974394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
36984395 # We make a subdir and do the tests there. Otherwise we can end up
36994396 # making bogus files that we don't know about and never remove. For
38004497 fi
38014498
38024499 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3804 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4501 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
38054502 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
38064503
38074504 if
38134510 am__fastdepCXX_TRUE='#'
38144511 am__fastdepCXX_FALSE=
38154512 fi
4513
4514
4515
4516
4517
4518
4519
4520
4521
38164522
38174523
38184524 ac_ext=c
38234529 if test -n "$ac_tool_prefix"; then
38244530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
38254531 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827 $as_echo_n "checking for $ac_word... " >&6; }
3828 if ${ac_cv_prog_CC+:} false; then :
3829 $as_echo_n "(cached) " >&6
3830 else
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 printf %s "checking for $ac_word... " >&6; }
4534 if test ${ac_cv_prog_CC+y}
4535 then :
4536 printf %s "(cached) " >&6
4537 else $as_nop
38314538 if test -n "$CC"; then
38324539 ac_cv_prog_CC="$CC" # Let the user override the test.
38334540 else
38354542 for as_dir in $PATH
38364543 do
38374544 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
4545 case $as_dir in #(((
4546 '') as_dir=./ ;;
4547 */) ;;
4548 *) as_dir=$as_dir/ ;;
4549 esac
38394550 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38414552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38434554 break 2
38444555 fi
38454556 done
38504561 fi
38514562 CC=$ac_cv_prog_CC
38524563 if test -n "$CC"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3854 $as_echo "$CC" >&6; }
3855 else
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4565 printf "%s\n" "$CC" >&6; }
4566 else
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 printf "%s\n" "no" >&6; }
38584569 fi
38594570
38604571
38634574 ac_ct_CC=$CC
38644575 # Extract the first word of "gcc", so it can be a program name with args.
38654576 set dummy gcc; ac_word=$2
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 $as_echo_n "checking for $ac_word... " >&6; }
3868 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 printf %s "checking for $ac_word... " >&6; }
4579 if test ${ac_cv_prog_ac_ct_CC+y}
4580 then :
4581 printf %s "(cached) " >&6
4582 else $as_nop
38714583 if test -n "$ac_ct_CC"; then
38724584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
38734585 else
38754587 for as_dir in $PATH
38764588 do
38774589 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
4590 case $as_dir in #(((
4591 '') as_dir=./ ;;
4592 */) ;;
4593 *) as_dir=$as_dir/ ;;
4594 esac
38794595 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38814597 ac_cv_prog_ac_ct_CC="gcc"
3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38834599 break 2
38844600 fi
38854601 done
38904606 fi
38914607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
38924608 if test -n "$ac_ct_CC"; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3894 $as_echo "$ac_ct_CC" >&6; }
3895 else
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 $as_echo "no" >&6; }
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4610 printf "%s\n" "$ac_ct_CC" >&6; }
4611 else
4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 printf "%s\n" "no" >&6; }
38984614 fi
38994615
39004616 if test "x$ac_ct_CC" = x; then
39024618 else
39034619 case $cross_compiling:$ac_tool_warned in
39044620 yes:)
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4622 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39074623 ac_tool_warned=yes ;;
39084624 esac
39094625 CC=$ac_ct_CC
39164632 if test -n "$ac_tool_prefix"; then
39174633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
39184634 set dummy ${ac_tool_prefix}cc; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if ${ac_cv_prog_CC+:} false; then :
3922 $as_echo_n "(cached) " >&6
3923 else
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 printf %s "checking for $ac_word... " >&6; }
4637 if test ${ac_cv_prog_CC+y}
4638 then :
4639 printf %s "(cached) " >&6
4640 else $as_nop
39244641 if test -n "$CC"; then
39254642 ac_cv_prog_CC="$CC" # Let the user override the test.
39264643 else
39284645 for as_dir in $PATH
39294646 do
39304647 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
4648 case $as_dir in #(((
4649 '') as_dir=./ ;;
4650 */) ;;
4651 *) as_dir=$as_dir/ ;;
4652 esac
39324653 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39344655 ac_cv_prog_CC="${ac_tool_prefix}cc"
3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39364657 break 2
39374658 fi
39384659 done
39434664 fi
39444665 CC=$ac_cv_prog_CC
39454666 if test -n "$CC"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3947 $as_echo "$CC" >&6; }
3948 else
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4668 printf "%s\n" "$CC" >&6; }
4669 else
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 printf "%s\n" "no" >&6; }
39514672 fi
39524673
39534674
39564677 if test -z "$CC"; then
39574678 # Extract the first word of "cc", so it can be a program name with args.
39584679 set dummy cc; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if ${ac_cv_prog_CC+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 printf %s "checking for $ac_word... " >&6; }
4682 if test ${ac_cv_prog_CC+y}
4683 then :
4684 printf %s "(cached) " >&6
4685 else $as_nop
39644686 if test -n "$CC"; then
39654687 ac_cv_prog_CC="$CC" # Let the user override the test.
39664688 else
39694691 for as_dir in $PATH
39704692 do
39714693 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
4694 case $as_dir in #(((
4695 '') as_dir=./ ;;
4696 */) ;;
4697 *) as_dir=$as_dir/ ;;
4698 esac
39734699 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4701 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
39764702 ac_prog_rejected=yes
39774703 continue
39784704 fi
39794705 ac_cv_prog_CC="cc"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39814707 break 2
39824708 fi
39834709 done
39934719 # However, it has the same basename, so the bogon will be chosen
39944720 # first if we set CC to just the basename; use the full file name.
39954721 shift
3996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4722 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
39974723 fi
39984724 fi
39994725 fi
40004726 fi
40014727 CC=$ac_cv_prog_CC
40024728 if test -n "$CC"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4004 $as_echo "$CC" >&6; }
4005 else
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4730 printf "%s\n" "$CC" >&6; }
4731 else
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 printf "%s\n" "no" >&6; }
40084734 fi
40094735
40104736
40154741 do
40164742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
40174743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if ${ac_cv_prog_CC+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 printf %s "checking for $ac_word... " >&6; }
4746 if test ${ac_cv_prog_CC+y}
4747 then :
4748 printf %s "(cached) " >&6
4749 else $as_nop
40234750 if test -n "$CC"; then
40244751 ac_cv_prog_CC="$CC" # Let the user override the test.
40254752 else
40274754 for as_dir in $PATH
40284755 do
40294756 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4757 case $as_dir in #(((
4758 '') as_dir=./ ;;
4759 */) ;;
4760 *) as_dir=$as_dir/ ;;
4761 esac
40314762 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
40334764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
40354766 break 2
40364767 fi
40374768 done
40424773 fi
40434774 CC=$ac_cv_prog_CC
40444775 if test -n "$CC"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4046 $as_echo "$CC" >&6; }
4047 else
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4777 printf "%s\n" "$CC" >&6; }
4778 else
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 printf "%s\n" "no" >&6; }
40504781 fi
40514782
40524783
40594790 do
40604791 # Extract the first word of "$ac_prog", so it can be a program name with args.
40614792 set dummy $ac_prog; ac_word=$2
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 printf %s "checking for $ac_word... " >&6; }
4795 if test ${ac_cv_prog_ac_ct_CC+y}
4796 then :
4797 printf %s "(cached) " >&6
4798 else $as_nop
40674799 if test -n "$ac_ct_CC"; then
40684800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
40694801 else
40714803 for as_dir in $PATH
40724804 do
40734805 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4806 case $as_dir in #(((
4807 '') as_dir=./ ;;
4808 */) ;;
4809 *) as_dir=$as_dir/ ;;
4810 esac
40754811 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
40774813 ac_cv_prog_ac_ct_CC="$ac_prog"
4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
40794815 break 2
40804816 fi
40814817 done
40864822 fi
40874823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
40884824 if test -n "$ac_ct_CC"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4090 $as_echo "$ac_ct_CC" >&6; }
4091 else
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4826 printf "%s\n" "$ac_ct_CC" >&6; }
4827 else
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 printf "%s\n" "no" >&6; }
40944830 fi
40954831
40964832
41024838 else
41034839 case $cross_compiling:$ac_tool_warned in
41044840 yes:)
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
41074843 ac_tool_warned=yes ;;
41084844 esac
41094845 CC=$ac_ct_CC
41114847 fi
41124848
41134849 fi
4114
4115
4116 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4850 if test -z "$CC"; then
4851 if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4853 set dummy ${ac_tool_prefix}clang; ac_word=$2
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 printf %s "checking for $ac_word... " >&6; }
4856 if test ${ac_cv_prog_CC+y}
4857 then :
4858 printf %s "(cached) " >&6
4859 else $as_nop
4860 if test -n "$CC"; then
4861 ac_cv_prog_CC="$CC" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866 IFS=$as_save_IFS
4867 case $as_dir in #(((
4868 '') as_dir=./ ;;
4869 */) ;;
4870 *) as_dir=$as_dir/ ;;
4871 esac
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_CC="${ac_tool_prefix}clang"
4875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4876 break 2
4877 fi
4878 done
4879 done
4880 IFS=$as_save_IFS
4881
4882 fi
4883 fi
4884 CC=$ac_cv_prog_CC
4885 if test -n "$CC"; then
4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4887 printf "%s\n" "$CC" >&6; }
4888 else
4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 printf "%s\n" "no" >&6; }
4891 fi
4892
4893
4894 fi
4895 if test -z "$ac_cv_prog_CC"; then
4896 ac_ct_CC=$CC
4897 # Extract the first word of "clang", so it can be a program name with args.
4898 set dummy clang; ac_word=$2
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 printf %s "checking for $ac_word... " >&6; }
4901 if test ${ac_cv_prog_ac_ct_CC+y}
4902 then :
4903 printf %s "(cached) " >&6
4904 else $as_nop
4905 if test -n "$ac_ct_CC"; then
4906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911 IFS=$as_save_IFS
4912 case $as_dir in #(((
4913 '') as_dir=./ ;;
4914 */) ;;
4915 *) as_dir=$as_dir/ ;;
4916 esac
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_ac_ct_CC="clang"
4920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4921 break 2
4922 fi
4923 done
4924 done
4925 IFS=$as_save_IFS
4926
4927 fi
4928 fi
4929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4930 if test -n "$ac_ct_CC"; then
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4932 printf "%s\n" "$ac_ct_CC" >&6; }
4933 else
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 printf "%s\n" "no" >&6; }
4936 fi
4937
4938 if test "x$ac_ct_CC" = x; then
4939 CC=""
4940 else
4941 case $cross_compiling:$ac_tool_warned in
4942 yes:)
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4945 ac_tool_warned=yes ;;
4946 esac
4947 CC=$ac_ct_CC
4948 fi
4949 else
4950 CC="$ac_cv_prog_CC"
4951 fi
4952
4953 fi
4954
4955
4956 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4957 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41184958 as_fn_error $? "no acceptable C compiler found in \$PATH
41194959 See \`config.log' for more details" "$LINENO" 5; }
41204960
41214961 # Provide some information about the compiler.
4122 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
41234963 set X $ac_compile
41244964 ac_compiler=$2
4125 for ac_option in --version -v -V -qversion; do
4965 for ac_option in --version -v -V -qversion -version; do
41264966 { { ac_try="$ac_compiler $ac_option >&5"
41274967 case "(($ac_try" in
41284968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41294969 *) ac_try_echo=$ac_try;;
41304970 esac
41314971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132 $as_echo "$ac_try_echo"; } >&5
4972 printf "%s\n" "$ac_try_echo"; } >&5
41334973 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
41344974 ac_status=$?
41354975 if test -s conftest.err; then
41394979 cat conftest.er1 >&5
41404980 fi
41414981 rm -f conftest.er1 conftest.err
4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41434983 test $ac_status = 0; }
41444984 done
41454985
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4147 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4148 if ${ac_cv_c_compiler_gnu+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4987 printf %s "checking whether the compiler supports GNU C... " >&6; }
4988 if test ${ac_cv_c_compiler_gnu+y}
4989 then :
4990 printf %s "(cached) " >&6
4991 else $as_nop
41514992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41524993 /* end confdefs.h. */
41534994
41544995 int
4155 main ()
4996 main (void)
41564997 {
41574998 #ifndef __GNUC__
41584999 choke me
41625003 return 0;
41635004 }
41645005 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
5006 if ac_fn_c_try_compile "$LINENO"
5007 then :
41665008 ac_compiler_gnu=yes
4167 else
5009 else $as_nop
41685010 ac_compiler_gnu=no
41695011 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41715013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
41725014
41735015 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4175 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5017 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5019
41765020 if test $ac_compiler_gnu = yes; then
41775021 GCC=yes
41785022 else
41795023 GCC=
41805024 fi
4181 ac_test_CFLAGS=${CFLAGS+set}
5025 ac_test_CFLAGS=${CFLAGS+y}
41825026 ac_save_CFLAGS=$CFLAGS
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4184 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4185 if ${ac_cv_prog_cc_g+:} false; then :
4186 $as_echo_n "(cached) " >&6
4187 else
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5028 printf %s "checking whether $CC accepts -g... " >&6; }
5029 if test ${ac_cv_prog_cc_g+y}
5030 then :
5031 printf %s "(cached) " >&6
5032 else $as_nop
41885033 ac_save_c_werror_flag=$ac_c_werror_flag
41895034 ac_c_werror_flag=yes
41905035 ac_cv_prog_cc_g=no
41935038 /* end confdefs.h. */
41945039
41955040 int
4196 main ()
5041 main (void)
41975042 {
41985043
41995044 ;
42005045 return 0;
42015046 }
42025047 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
5048 if ac_fn_c_try_compile "$LINENO"
5049 then :
42045050 ac_cv_prog_cc_g=yes
4205 else
5051 else $as_nop
42065052 CFLAGS=""
42075053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42085054 /* end confdefs.h. */
42095055
42105056 int
4211 main ()
5057 main (void)
42125058 {
42135059
42145060 ;
42155061 return 0;
42165062 }
42175063 _ACEOF
4218 if ac_fn_c_try_compile "$LINENO"; then :
4219
4220 else
5064 if ac_fn_c_try_compile "$LINENO"
5065 then :
5066
5067 else $as_nop
42215068 ac_c_werror_flag=$ac_save_c_werror_flag
42225069 CFLAGS="-g"
42235070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42245071 /* end confdefs.h. */
42255072
42265073 int
4227 main ()
5074 main (void)
42285075 {
42295076
42305077 ;
42315078 return 0;
42325079 }
42335080 _ACEOF
4234 if ac_fn_c_try_compile "$LINENO"; then :
5081 if ac_fn_c_try_compile "$LINENO"
5082 then :
42355083 ac_cv_prog_cc_g=yes
42365084 fi
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 fi
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 fi
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5086 fi
5087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5088 fi
5089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42425090 ac_c_werror_flag=$ac_save_c_werror_flag
42435091 fi
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4245 $as_echo "$ac_cv_prog_cc_g" >&6; }
4246 if test "$ac_test_CFLAGS" = set; then
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5093 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5094 if test $ac_test_CFLAGS; then
42475095 CFLAGS=$ac_save_CFLAGS
42485096 elif test $ac_cv_prog_cc_g = yes; then
42495097 if test "$GCC" = yes; then
42585106 CFLAGS=
42595107 fi
42605108 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4262 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4263 if ${ac_cv_prog_cc_c89+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
5109 ac_prog_cc_stdc=no
5110 if test x$ac_prog_cc_stdc = xno
5111 then :
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5113 printf %s "checking for $CC option to enable C11 features... " >&6; }
5114 if test ${ac_cv_prog_cc_c11+y}
5115 then :
5116 printf %s "(cached) " >&6
5117 else $as_nop
5118 ac_cv_prog_cc_c11=no
5119 ac_save_CC=$CC
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 $ac_c_conftest_c11_program
5123 _ACEOF
5124 for ac_arg in '' -std=gnu11
5125 do
5126 CC="$ac_save_CC $ac_arg"
5127 if ac_fn_c_try_compile "$LINENO"
5128 then :
5129 ac_cv_prog_cc_c11=$ac_arg
5130 fi
5131 rm -f core conftest.err conftest.$ac_objext conftest.beam
5132 test "x$ac_cv_prog_cc_c11" != "xno" && break
5133 done
5134 rm -f conftest.$ac_ext
5135 CC=$ac_save_CC
5136 fi
5137
5138 if test "x$ac_cv_prog_cc_c11" = xno
5139 then :
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5141 printf "%s\n" "unsupported" >&6; }
5142 else $as_nop
5143 if test "x$ac_cv_prog_cc_c11" = x
5144 then :
5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5146 printf "%s\n" "none needed" >&6; }
5147 else $as_nop
5148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5149 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5150 CC="$CC $ac_cv_prog_cc_c11"
5151 fi
5152 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5153 ac_prog_cc_stdc=c11
5154 fi
5155 fi
5156 if test x$ac_prog_cc_stdc = xno
5157 then :
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5159 printf %s "checking for $CC option to enable C99 features... " >&6; }
5160 if test ${ac_cv_prog_cc_c99+y}
5161 then :
5162 printf %s "(cached) " >&6
5163 else $as_nop
5164 ac_cv_prog_cc_c99=no
5165 ac_save_CC=$CC
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 $ac_c_conftest_c99_program
5169 _ACEOF
5170 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5171 do
5172 CC="$ac_save_CC $ac_arg"
5173 if ac_fn_c_try_compile "$LINENO"
5174 then :
5175 ac_cv_prog_cc_c99=$ac_arg
5176 fi
5177 rm -f core conftest.err conftest.$ac_objext conftest.beam
5178 test "x$ac_cv_prog_cc_c99" != "xno" && break
5179 done
5180 rm -f conftest.$ac_ext
5181 CC=$ac_save_CC
5182 fi
5183
5184 if test "x$ac_cv_prog_cc_c99" = xno
5185 then :
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5187 printf "%s\n" "unsupported" >&6; }
5188 else $as_nop
5189 if test "x$ac_cv_prog_cc_c99" = x
5190 then :
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5192 printf "%s\n" "none needed" >&6; }
5193 else $as_nop
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5195 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5196 CC="$CC $ac_cv_prog_cc_c99"
5197 fi
5198 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5199 ac_prog_cc_stdc=c99
5200 fi
5201 fi
5202 if test x$ac_prog_cc_stdc = xno
5203 then :
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5205 printf %s "checking for $CC option to enable C89 features... " >&6; }
5206 if test ${ac_cv_prog_cc_c89+y}
5207 then :
5208 printf %s "(cached) " >&6
5209 else $as_nop
42665210 ac_cv_prog_cc_c89=no
42675211 ac_save_CC=$CC
42685212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42695213 /* end confdefs.h. */
4270 #include <stdarg.h>
4271 #include <stdio.h>
4272 struct stat;
4273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4274 struct buf { int x; };
4275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4276 static char *e (p, i)
4277 char **p;
4278 int i;
4279 {
4280 return p[i];
4281 }
4282 static char *f (char * (*g) (char **, int), char **p, ...)
4283 {
4284 char *s;
4285 va_list v;
4286 va_start (v,p);
4287 s = g (p, va_arg (v,int));
4288 va_end (v);
4289 return s;
4290 }
4291
4292 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4293 function prototypes and stuff, but not '\xHH' hex character constants.
4294 These don't provoke an error unfortunately, instead are silently treated
4295 as 'x'. The following induces an error, until -std is added to get
4296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4297 array size at least. It's necessary to write '\x00'==0 to get something
4298 that's true only with -std. */
4299 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4300
4301 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4302 inside strings and character constants. */
4303 #define FOO(x) 'x'
4304 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4305
4306 int test (int i, double x);
4307 struct s1 {int (*f) (int a);};
4308 struct s2 {int (*f) (double a);};
4309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4310 int argc;
4311 char **argv;
4312 int
4313 main ()
4314 {
4315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4316 ;
4317 return 0;
4318 }
5214 $ac_c_conftest_c89_program
43195215 _ACEOF
4320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
43225217 do
43235218 CC="$ac_save_CC $ac_arg"
4324 if ac_fn_c_try_compile "$LINENO"; then :
5219 if ac_fn_c_try_compile "$LINENO"
5220 then :
43255221 ac_cv_prog_cc_c89=$ac_arg
43265222 fi
4327 rm -f core conftest.err conftest.$ac_objext
5223 rm -f core conftest.err conftest.$ac_objext conftest.beam
43285224 test "x$ac_cv_prog_cc_c89" != "xno" && break
43295225 done
43305226 rm -f conftest.$ac_ext
43315227 CC=$ac_save_CC
4332
4333 fi
4334 # AC_CACHE_VAL
4335 case "x$ac_cv_prog_cc_c89" in
4336 x)
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4338 $as_echo "none needed" >&6; } ;;
4339 xno)
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4341 $as_echo "unsupported" >&6; } ;;
4342 *)
4343 CC="$CC $ac_cv_prog_cc_c89"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4345 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4346 esac
4347 if test "x$ac_cv_prog_cc_c89" != xno; then :
4348
5228 fi
5229
5230 if test "x$ac_cv_prog_cc_c89" = xno
5231 then :
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5233 printf "%s\n" "unsupported" >&6; }
5234 else $as_nop
5235 if test "x$ac_cv_prog_cc_c89" = x
5236 then :
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5238 printf "%s\n" "none needed" >&6; }
5239 else $as_nop
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5241 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5242 CC="$CC $ac_cv_prog_cc_c89"
5243 fi
5244 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5245 ac_prog_cc_stdc=c89
5246 fi
43495247 fi
43505248
43515249 ac_ext=c
43545252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43555253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43565254
4357 ac_ext=c
5255
5256 ac_ext=c
43585257 ac_cpp='$CPP $CPPFLAGS'
43595258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43605259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43615260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4363 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4364 if ${am_cv_prog_cc_c_o+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
5261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5262 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5263 if test ${am_cv_prog_cc_c_o+y}
5264 then :
5265 printf %s "(cached) " >&6
5266 else $as_nop
43675267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43685268 /* end confdefs.h. */
43695269
43705270 int
4371 main ()
5271 main (void)
43725272 {
43735273
43745274 ;
43965296 rm -f core conftest*
43975297 unset am_i
43985298 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4400 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5300 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
44015301 if test "$am_cv_prog_cc_c_o" != yes; then
44025302 # Losing compiler, so override with the script.
44035303 # FIXME: It is wrong to rewrite CC.
44155315
44165316 depcc="$CC" am_compiler_list=
44175317
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4419 $as_echo_n "checking dependency style of $depcc... " >&6; }
4420 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5319 printf %s "checking dependency style of $depcc... " >&6; }
5320 if test ${am_cv_CC_dependencies_compiler_type+y}
5321 then :
5322 printf %s "(cached) " >&6
5323 else $as_nop
44235324 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
44245325 # We make a subdir and do the tests there. Otherwise we can end up
44255326 # making bogus files that we don't know about and never remove. For
45265427 fi
45275428
45285429 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4530 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5431 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
45315432 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
45325433
45335434 if
45535454 if test -n "$ac_tool_prefix"; then
45545455 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45555456 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 printf %s "checking for $ac_word... " >&6; }
5459 if test ${ac_cv_path_PKG_CONFIG+y}
5460 then :
5461 printf %s "(cached) " >&6
5462 else $as_nop
45615463 case $PKG_CONFIG in
45625464 [\\/]* | ?:[\\/]*)
45635465 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45675469 for as_dir in $PATH
45685470 do
45695471 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
5472 case $as_dir in #(((
5473 '') as_dir=./ ;;
5474 */) ;;
5475 *) as_dir=$as_dir/ ;;
5476 esac
45715477 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5479 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45755481 break 2
45765482 fi
45775483 done
45835489 fi
45845490 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45855491 if test -n "$PKG_CONFIG"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4587 $as_echo "$PKG_CONFIG" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5493 printf "%s\n" "$PKG_CONFIG" >&6; }
5494 else
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 printf "%s\n" "no" >&6; }
45915497 fi
45925498
45935499
45965502 ac_pt_PKG_CONFIG=$PKG_CONFIG
45975503 # Extract the first word of "pkg-config", so it can be a program name with args.
45985504 set dummy pkg-config; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 printf %s "checking for $ac_word... " >&6; }
5507 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5508 then :
5509 printf %s "(cached) " >&6
5510 else $as_nop
46045511 case $ac_pt_PKG_CONFIG in
46055512 [\\/]* | ?:[\\/]*)
46065513 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
46105517 for as_dir in $PATH
46115518 do
46125519 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
5520 case $as_dir in #(((
5521 '') as_dir=./ ;;
5522 */) ;;
5523 *) as_dir=$as_dir/ ;;
5524 esac
46145525 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5527 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
46185529 break 2
46195530 fi
46205531 done
46265537 fi
46275538 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
46285539 if test -n "$ac_pt_PKG_CONFIG"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4630 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5541 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5542 else
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 printf "%s\n" "no" >&6; }
46345545 fi
46355546
46365547 if test "x$ac_pt_PKG_CONFIG" = x; then
46385549 else
46395550 case $cross_compiling:$ac_tool_warned in
46405551 yes:)
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46435554 ac_tool_warned=yes ;;
46445555 esac
46455556 PKG_CONFIG=$ac_pt_PKG_CONFIG
46515562 fi
46525563 if test -n "$PKG_CONFIG"; then
46535564 _pkg_min_version=0.9.0
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4655 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5566 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
46565567 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4658 $as_echo "yes" >&6; }
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5569 printf "%s\n" "yes" >&6; }
46595570 else
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 printf "%s\n" "no" >&6; }
46625573 PKG_CONFIG=""
46635574 fi
46645575 fi
46655576
46665577 # Check whether --enable-engine was given.
4667 if test "${enable_engine+set}" = set; then :
5578 if test ${enable_engine+y}
5579 then :
46685580 enableval=$enable_engine;
46695581 fi
46705582
46715583 # Check whether --enable-devkit was given.
4672 if test "${enable_devkit+set}" = set; then :
5584 if test ${enable_devkit+y}
5585 then :
46735586 enableval=$enable_devkit;
46745587 fi
46755588
46765589 # Check whether --enable-doc was given.
4677 if test "${enable_doc+set}" = set; then :
5590 if test ${enable_doc+y}
5591 then :
46785592 enableval=$enable_doc;
46795593 fi
46805594
46815595 # Check whether --enable-gles2 was given.
4682 if test "${enable_gles2+set}" = set; then :
5596 if test ${enable_gles2+y}
5597 then :
46835598 enableval=$enable_gles2;
46845599 fi
46855600
46865601 # Check whether --enable-pandora was given.
4687 if test "${enable_pandora+set}" = set; then :
5602 if test ${enable_pandora+y}
5603 then :
46885604 enableval=$enable_pandora;
46895605 fi
46905606
46915607 # Check whether --enable-rpi was given.
4692 if test "${enable_rpi+set}" = set; then :
5608 if test ${enable_rpi+y}
5609 then :
46935610 enableval=$enable_rpi;
46945611 fi
46955612
46965613 # Check whether --enable-odroid was given.
4697 if test "${enable_odroid+set}" = set; then :
5614 if test ${enable_odroid+y}
5615 then :
46985616 enableval=$enable_odroid;
46995617 fi
47005618
47565674 if test "x$enable_gles2" = xno; then
47575675
47585676 pkg_failed=no
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLEW" >&5
4760 $as_echo_n "checking for GLEW... " >&6; }
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glew" >&5
5678 printf %s "checking for glew... " >&6; }
47615679
47625680 if test -n "$GLEW_CFLAGS"; then
47635681 pkg_cv_GLEW_CFLAGS="$GLEW_CFLAGS"
47645682 elif test -n "$PKG_CONFIG"; then
47655683 if test -n "$PKG_CONFIG" && \
4766 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glew\""; } >&5
5684 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glew\""; } >&5
47675685 ($PKG_CONFIG --exists --print-errors "glew") 2>&5
47685686 ac_status=$?
4769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47705688 test $ac_status = 0; }; then
47715689 pkg_cv_GLEW_CFLAGS=`$PKG_CONFIG --cflags "glew" 2>/dev/null`
47725690 test "x$?" != "x0" && pkg_failed=yes
47805698 pkg_cv_GLEW_LIBS="$GLEW_LIBS"
47815699 elif test -n "$PKG_CONFIG"; then
47825700 if test -n "$PKG_CONFIG" && \
4783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glew\""; } >&5
5701 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glew\""; } >&5
47845702 ($PKG_CONFIG --exists --print-errors "glew") 2>&5
47855703 ac_status=$?
4786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47875705 test $ac_status = 0; }; then
47885706 pkg_cv_GLEW_LIBS=`$PKG_CONFIG --libs "glew" 2>/dev/null`
47895707 test "x$?" != "x0" && pkg_failed=yes
47975715
47985716
47995717 if test $pkg_failed = yes; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 printf "%s\n" "no" >&6; }
48025720
48035721 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48045722 _pkg_short_errors_supported=yes
48245742 and GLEW_LIBS to avoid the need to call pkg-config.
48255743 See the pkg-config man page for more details." "$LINENO" 5
48265744 elif test $pkg_failed = untried; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 printf "%s\n" "no" >&6; }
5747 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5748 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
48315749 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
48325750 is in your PATH or set the PKG_CONFIG environment variable to the full
48335751 path to pkg-config.
48415759 else
48425760 GLEW_CFLAGS=$pkg_cv_GLEW_CFLAGS
48435761 GLEW_LIBS=$pkg_cv_GLEW_LIBS
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4845 $as_echo "yes" >&6; }
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5763 printf "%s\n" "yes" >&6; }
48465764
48475765 fi
48485766 else
48495767 if test "x$enable_devkit" = xyes; then
48505768
48515769 pkg_failed=no
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLEW" >&5
4853 $as_echo_n "checking for GLEW... " >&6; }
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glew" >&5
5771 printf %s "checking for glew... " >&6; }
48545772
48555773 if test -n "$GLEW_CFLAGS"; then
48565774 pkg_cv_GLEW_CFLAGS="$GLEW_CFLAGS"
48575775 elif test -n "$PKG_CONFIG"; then
48585776 if test -n "$PKG_CONFIG" && \
4859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glew\""; } >&5
5777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glew\""; } >&5
48605778 ($PKG_CONFIG --exists --print-errors "glew") 2>&5
48615779 ac_status=$?
4862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48635781 test $ac_status = 0; }; then
48645782 pkg_cv_GLEW_CFLAGS=`$PKG_CONFIG --cflags "glew" 2>/dev/null`
48655783 test "x$?" != "x0" && pkg_failed=yes
48735791 pkg_cv_GLEW_LIBS="$GLEW_LIBS"
48745792 elif test -n "$PKG_CONFIG"; then
48755793 if test -n "$PKG_CONFIG" && \
4876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glew\""; } >&5
5794 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glew\""; } >&5
48775795 ($PKG_CONFIG --exists --print-errors "glew") 2>&5
48785796 ac_status=$?
4879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48805798 test $ac_status = 0; }; then
48815799 pkg_cv_GLEW_LIBS=`$PKG_CONFIG --libs "glew" 2>/dev/null`
48825800 test "x$?" != "x0" && pkg_failed=yes
48905808
48915809
48925810 if test $pkg_failed = yes; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 printf "%s\n" "no" >&6; }
48955813
48965814 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48975815 _pkg_short_errors_supported=yes
49175835 and GLEW_LIBS to avoid the need to call pkg-config.
49185836 See the pkg-config man page for more details." "$LINENO" 5
49195837 elif test $pkg_failed = untried; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 printf "%s\n" "no" >&6; }
5840 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5841 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
49245842 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
49255843 is in your PATH or set the PKG_CONFIG environment variable to the full
49265844 path to pkg-config.
49345852 else
49355853 GLEW_CFLAGS=$pkg_cv_GLEW_CFLAGS
49365854 GLEW_LIBS=$pkg_cv_GLEW_LIBS
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4938 $as_echo "yes" >&6; }
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5856 printf "%s\n" "yes" >&6; }
49395857
49405858 fi
49415859 fi
49445862 if test "x$enable_engine" = xyes; then
49455863
49465864 pkg_failed=no
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENGINE" >&5
4948 $as_echo_n "checking for ENGINE... " >&6; }
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sdl alure >= 1.1 openal vorbis ogg vpx" >&5
5866 printf %s "checking for sdl alure >= 1.1 openal vorbis ogg vpx... " >&6; }
49495867
49505868 if test -n "$ENGINE_CFLAGS"; then
49515869 pkg_cv_ENGINE_CFLAGS="$ENGINE_CFLAGS"
49525870 elif test -n "$PKG_CONFIG"; then
49535871 if test -n "$PKG_CONFIG" && \
4954 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl alure >= 1.1 openal vorbis ogg vpx\""; } >&5
5872 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl alure >= 1.1 openal vorbis ogg vpx\""; } >&5
49555873 ($PKG_CONFIG --exists --print-errors "sdl alure >= 1.1 openal vorbis ogg vpx") 2>&5
49565874 ac_status=$?
4957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49585876 test $ac_status = 0; }; then
49595877 pkg_cv_ENGINE_CFLAGS=`$PKG_CONFIG --cflags "sdl alure >= 1.1 openal vorbis ogg vpx" 2>/dev/null`
49605878 test "x$?" != "x0" && pkg_failed=yes
49685886 pkg_cv_ENGINE_LIBS="$ENGINE_LIBS"
49695887 elif test -n "$PKG_CONFIG"; then
49705888 if test -n "$PKG_CONFIG" && \
4971 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl alure >= 1.1 openal vorbis ogg vpx\""; } >&5
5889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl alure >= 1.1 openal vorbis ogg vpx\""; } >&5
49725890 ($PKG_CONFIG --exists --print-errors "sdl alure >= 1.1 openal vorbis ogg vpx") 2>&5
49735891 ac_status=$?
4974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49755893 test $ac_status = 0; }; then
49765894 pkg_cv_ENGINE_LIBS=`$PKG_CONFIG --libs "sdl alure >= 1.1 openal vorbis ogg vpx" 2>/dev/null`
49775895 test "x$?" != "x0" && pkg_failed=yes
49855903
49865904
49875905 if test $pkg_failed = yes; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 printf "%s\n" "no" >&6; }
49905908
49915909 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49925910 _pkg_short_errors_supported=yes
50125930 and ENGINE_LIBS to avoid the need to call pkg-config.
50135931 See the pkg-config man page for more details." "$LINENO" 5
50145932 elif test $pkg_failed = untried; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 printf "%s\n" "no" >&6; }
5935 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5936 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
50195937 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
50205938 is in your PATH or set the PKG_CONFIG environment variable to the full
50215939 path to pkg-config.
50295947 else
50305948 ENGINE_CFLAGS=$pkg_cv_ENGINE_CFLAGS
50315949 ENGINE_LIBS=$pkg_cv_ENGINE_LIBS
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033 $as_echo "yes" >&6; }
5034
5035 fi
5036
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for duh_render in -ldumb" >&5
5038 $as_echo_n "checking for duh_render in -ldumb... " >&6; }
5039 if ${ac_cv_lib_dumb_duh_render+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5951 printf "%s\n" "yes" >&6; }
5952
5953 fi
5954
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for duh_render in -ldumb" >&5
5956 printf %s "checking for duh_render in -ldumb... " >&6; }
5957 if test ${ac_cv_lib_dumb_duh_render+y}
5958 then :
5959 printf %s "(cached) " >&6
5960 else $as_nop
50425961 ac_check_lib_save_LIBS=$LIBS
50435962 LIBS="-ldumb $LIBS"
50445963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50475966 /* Override any GCC internal prototype to avoid an error.
50485967 Use char because int might match the return type of a GCC
50495968 builtin and then its argument prototype would still apply. */
5050 #ifdef __cplusplus
5051 extern "C"
5052 #endif
50535969 char duh_render ();
50545970 int
5055 main ()
5971 main (void)
50565972 {
50575973 return duh_render ();
50585974 ;
50595975 return 0;
50605976 }
50615977 _ACEOF
5062 if ac_fn_c_try_link "$LINENO"; then :
5978 if ac_fn_c_try_link "$LINENO"
5979 then :
50635980 ac_cv_lib_dumb_duh_render=yes
5064 else
5981 else $as_nop
50655982 ac_cv_lib_dumb_duh_render=no
50665983 fi
5067 rm -f core conftest.err conftest.$ac_objext \
5984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
50685985 conftest$ac_exeext conftest.$ac_ext
50695986 LIBS=$ac_check_lib_save_LIBS
50705987 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dumb_duh_render" >&5
5072 $as_echo "$ac_cv_lib_dumb_duh_render" >&6; }
5073 if test "x$ac_cv_lib_dumb_duh_render" = xyes; then :
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dumb_duh_render" >&5
5989 printf "%s\n" "$ac_cv_lib_dumb_duh_render" >&6; }
5990 if test "x$ac_cv_lib_dumb_duh_render" = xyes
5991 then :
50745992 ENGINE_LIBS="$ENGINE_LIBS -ldumb"
5075 else
5993 else $as_nop
50765994 as_fn_error $? "cannot find DUMB library" "$LINENO" 5
50775995 fi
50785996
50795997 if test "x$enable_gles2" = xyes; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glEnable in -lGLESv2" >&5
5081 $as_echo_n "checking for glEnable in -lGLESv2... " >&6; }
5082 if ${ac_cv_lib_GLESv2_glEnable+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glEnable in -lGLESv2" >&5
5999 printf %s "checking for glEnable in -lGLESv2... " >&6; }
6000 if test ${ac_cv_lib_GLESv2_glEnable+y}
6001 then :
6002 printf %s "(cached) " >&6
6003 else $as_nop
50856004 ac_check_lib_save_LIBS=$LIBS
50866005 LIBS="-lGLESv2 $LIBS"
50876006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50906009 /* Override any GCC internal prototype to avoid an error.
50916010 Use char because int might match the return type of a GCC
50926011 builtin and then its argument prototype would still apply. */
5093 #ifdef __cplusplus
5094 extern "C"
5095 #endif
50966012 char glEnable ();
50976013 int
5098 main ()
6014 main (void)
50996015 {
51006016 return glEnable ();
51016017 ;
51026018 return 0;
51036019 }
51046020 _ACEOF
5105 if ac_fn_c_try_link "$LINENO"; then :
6021 if ac_fn_c_try_link "$LINENO"
6022 then :
51066023 ac_cv_lib_GLESv2_glEnable=yes
5107 else
6024 else $as_nop
51086025 ac_cv_lib_GLESv2_glEnable=no
51096026 fi
5110 rm -f core conftest.err conftest.$ac_objext \
6027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
51116028 conftest$ac_exeext conftest.$ac_ext
51126029 LIBS=$ac_check_lib_save_LIBS
51136030 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glEnable" >&5
5115 $as_echo "$ac_cv_lib_GLESv2_glEnable" >&6; }
5116 if test "x$ac_cv_lib_GLESv2_glEnable" = xyes; then :
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glEnable" >&5
6032 printf "%s\n" "$ac_cv_lib_GLESv2_glEnable" >&6; }
6033 if test "x$ac_cv_lib_GLESv2_glEnable" = xyes
6034 then :
51176035 ENGINE_LIBS="$ENGINE_LIBS -lGLESv2"
5118 else
6036 else $as_nop
51196037 as_fn_error $? "cannot find GLESv2 library" "$LINENO" 5
51206038 fi
51216039
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglInitialize in -lEGL" >&5
5123 $as_echo_n "checking for eglInitialize in -lEGL... " >&6; }
5124 if ${ac_cv_lib_EGL_eglInitialize+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eglInitialize in -lEGL" >&5
6041 printf %s "checking for eglInitialize in -lEGL... " >&6; }
6042 if test ${ac_cv_lib_EGL_eglInitialize+y}
6043 then :
6044 printf %s "(cached) " >&6
6045 else $as_nop
51276046 ac_check_lib_save_LIBS=$LIBS
51286047 LIBS="-lEGL $LIBS"
51296048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51326051 /* Override any GCC internal prototype to avoid an error.
51336052 Use char because int might match the return type of a GCC
51346053 builtin and then its argument prototype would still apply. */
5135 #ifdef __cplusplus
5136 extern "C"
5137 #endif
51386054 char eglInitialize ();
51396055 int
5140 main ()
6056 main (void)
51416057 {
51426058 return eglInitialize ();
51436059 ;
51446060 return 0;
51456061 }
51466062 _ACEOF
5147 if ac_fn_c_try_link "$LINENO"; then :
6063 if ac_fn_c_try_link "$LINENO"
6064 then :
51486065 ac_cv_lib_EGL_eglInitialize=yes
5149 else
6066 else $as_nop
51506067 ac_cv_lib_EGL_eglInitialize=no
51516068 fi
5152 rm -f core conftest.err conftest.$ac_objext \
6069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
51536070 conftest$ac_exeext conftest.$ac_ext
51546071 LIBS=$ac_check_lib_save_LIBS
51556072 fi
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_eglInitialize" >&5
5157 $as_echo "$ac_cv_lib_EGL_eglInitialize" >&6; }
5158 if test "x$ac_cv_lib_EGL_eglInitialize" = xyes; then :
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_eglInitialize" >&5
6074 printf "%s\n" "$ac_cv_lib_EGL_eglInitialize" >&6; }
6075 if test "x$ac_cv_lib_EGL_eglInitialize" = xyes
6076 then :
51596077 ENGINE_LIBS="$ENGINE_LIBS -lEGL"
5160 else
6078 else $as_nop
51616079 as_fn_error $? "cannot find EGL library" "$LINENO" 5
51626080 fi
51636081
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
5165 $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
5166 if ${ac_cv_lib_X11_XOpenDisplay+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
6083 printf %s "checking for XOpenDisplay in -lX11... " >&6; }
6084 if test ${ac_cv_lib_X11_XOpenDisplay+y}
6085 then :
6086 printf %s "(cached) " >&6
6087 else $as_nop
51696088 ac_check_lib_save_LIBS=$LIBS
51706089 LIBS="-lX11 $LIBS"
51716090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51746093 /* Override any GCC internal prototype to avoid an error.
51756094 Use char because int might match the return type of a GCC
51766095 builtin and then its argument prototype would still apply. */
5177 #ifdef __cplusplus
5178 extern "C"
5179 #endif
51806096 char XOpenDisplay ();
51816097 int
5182 main ()
6098 main (void)
51836099 {
51846100 return XOpenDisplay ();
51856101 ;
51866102 return 0;
51876103 }
51886104 _ACEOF
5189 if ac_fn_c_try_link "$LINENO"; then :
6105 if ac_fn_c_try_link "$LINENO"
6106 then :
51906107 ac_cv_lib_X11_XOpenDisplay=yes
5191 else
6108 else $as_nop
51926109 ac_cv_lib_X11_XOpenDisplay=no
51936110 fi
5194 rm -f core conftest.err conftest.$ac_objext \
6111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
51956112 conftest$ac_exeext conftest.$ac_ext
51966113 LIBS=$ac_check_lib_save_LIBS
51976114 fi
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5199 $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
5200 if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then :
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6116 printf "%s\n" "$ac_cv_lib_X11_XOpenDisplay" >&6; }
6117 if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes
6118 then :
52016119 ENGINE_LIBS="$ENGINE_LIBS -lX11"
5202 else
6120 else $as_nop
52036121 as_fn_error $? "cannot find X11 library" "$LINENO" 5
52046122 fi
52056123
52066124 else
52076125
52086126 pkg_failed=no
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
5210 $as_echo_n "checking for GL... " >&6; }
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gl glu" >&5
6128 printf %s "checking for gl glu... " >&6; }
52116129
52126130 if test -n "$GL_CFLAGS"; then
52136131 pkg_cv_GL_CFLAGS="$GL_CFLAGS"
52146132 elif test -n "$PKG_CONFIG"; then
52156133 if test -n "$PKG_CONFIG" && \
5216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl glu\""; } >&5
6134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl glu\""; } >&5
52176135 ($PKG_CONFIG --exists --print-errors "gl glu") 2>&5
52186136 ac_status=$?
5219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52206138 test $ac_status = 0; }; then
52216139 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "gl glu" 2>/dev/null`
52226140 test "x$?" != "x0" && pkg_failed=yes
52306148 pkg_cv_GL_LIBS="$GL_LIBS"
52316149 elif test -n "$PKG_CONFIG"; then
52326150 if test -n "$PKG_CONFIG" && \
5233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl glu\""; } >&5
6151 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl glu\""; } >&5
52346152 ($PKG_CONFIG --exists --print-errors "gl glu") 2>&5
52356153 ac_status=$?
5236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52376155 test $ac_status = 0; }; then
52386156 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "gl glu" 2>/dev/null`
52396157 test "x$?" != "x0" && pkg_failed=yes
52476165
52486166
52496167 if test $pkg_failed = yes; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 printf "%s\n" "no" >&6; }
52526170
52536171 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52546172 _pkg_short_errors_supported=yes
52746192 and GL_LIBS to avoid the need to call pkg-config.
52756193 See the pkg-config man page for more details." "$LINENO" 5
52766194 elif test $pkg_failed = untried; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 printf "%s\n" "no" >&6; }
6197 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6198 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
52816199 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
52826200 is in your PATH or set the PKG_CONFIG environment variable to the full
52836201 path to pkg-config.
52916209 else
52926210 GL_CFLAGS=$pkg_cv_GL_CFLAGS
52936211 GL_LIBS=$pkg_cv_GL_LIBS
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5295 $as_echo "yes" >&6; }
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6213 printf "%s\n" "yes" >&6; }
52966214
52976215 fi
52986216 fi
53016219 if test "x$enable_devkit" = xyes; then
53026220
53036221 pkg_failed=no
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
5305 $as_echo_n "checking for GTK... " >&6; }
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 gthread-2.0 gobject-2.0 gtkglext-1.0 gmodule-2.0" >&5
6223 printf %s "checking for gtk+-2.0 gthread-2.0 gobject-2.0 gtkglext-1.0 gmodule-2.0... " >&6; }
53066224
53076225 if test -n "$GTK_CFLAGS"; then
53086226 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
53096227 elif test -n "$PKG_CONFIG"; then
53106228 if test -n "$PKG_CONFIG" && \
5311 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gthread-2.0 gobject-2.0 gtkglext-1.0 gmodule-2.0\""; } >&5
6229 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gthread-2.0 gobject-2.0 gtkglext-1.0 gmodule-2.0\""; } >&5
53126230 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 gthread-2.0 gobject-2.0 gtkglext-1.0 gmodule-2.0") 2>&5
53136231 ac_status=$?
5314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53156233 test $ac_status = 0; }; then
53166234 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 gthread-2.0 gobject-2.0 gtkglext-1.0 gmodule-2.0" 2>/dev/null`
53176235 test "x$?" != "x0" && pkg_failed=yes
53256243 pkg_cv_GTK_LIBS="$GTK_LIBS"
53266244 elif test -n "$PKG_CONFIG"; then
53276245 if test -n "$PKG_CONFIG" && \
5328 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gthread-2.0 gobject-2.0 gtkglext-1.0 gmodule-2.0\""; } >&5
6246 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gthread-2.0 gobject-2.0 gtkglext-1.0 gmodule-2.0\""; } >&5
53296247 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 gthread-2.0 gobject-2.0 gtkglext-1.0 gmodule-2.0") 2>&5
53306248 ac_status=$?
5331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53326250 test $ac_status = 0; }; then
53336251 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 gthread-2.0 gobject-2.0 gtkglext-1.0 gmodule-2.0" 2>/dev/null`
53346252 test "x$?" != "x0" && pkg_failed=yes
53426260
53436261
53446262 if test $pkg_failed = yes; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 printf "%s\n" "no" >&6; }
53476265
53486266 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53496267 _pkg_short_errors_supported=yes
53696287 and GTK_LIBS to avoid the need to call pkg-config.
53706288 See the pkg-config man page for more details." "$LINENO" 5
53716289 elif test $pkg_failed = untried; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 printf "%s\n" "no" >&6; }
6292 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6293 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
53766294 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
53776295 is in your PATH or set the PKG_CONFIG environment variable to the full
53786296 path to pkg-config.
53866304 else
53876305 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
53886306 GTK_LIBS=$pkg_cv_GTK_LIBS
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5390 $as_echo "yes" >&6; }
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6308 printf "%s\n" "yes" >&6; }
53916309
53926310 fi
53936311
53946312 pkg_failed=no
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
5396 $as_echo_n "checking for GLIB... " >&6; }
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
6314 printf %s "checking for glib-2.0... " >&6; }
53976315
53986316 if test -n "$GLIB_CFLAGS"; then
53996317 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
54006318 elif test -n "$PKG_CONFIG"; then
54016319 if test -n "$PKG_CONFIG" && \
5402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
6320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
54036321 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
54046322 ac_status=$?
5405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54066324 test $ac_status = 0; }; then
54076325 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
54086326 test "x$?" != "x0" && pkg_failed=yes
54166334 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
54176335 elif test -n "$PKG_CONFIG"; then
54186336 if test -n "$PKG_CONFIG" && \
5419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
6337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
54206338 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
54216339 ac_status=$?
5422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54236341 test $ac_status = 0; }; then
54246342 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
54256343 test "x$?" != "x0" && pkg_failed=yes
54336351
54346352
54356353 if test $pkg_failed = yes; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 printf "%s\n" "no" >&6; }
54386356
54396357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54406358 _pkg_short_errors_supported=yes
54606378 and GLIB_LIBS to avoid the need to call pkg-config.
54616379 See the pkg-config man page for more details." "$LINENO" 5
54626380 elif test $pkg_failed = untried; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 printf "%s\n" "no" >&6; }
6383 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6384 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
54676385 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
54686386 is in your PATH or set the PKG_CONFIG environment variable to the full
54696387 path to pkg-config.
54776395 else
54786396 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
54796397 GLIB_LIBS=$pkg_cv_GLIB_LIBS
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481 $as_echo "yes" >&6; }
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6399 printf "%s\n" "yes" >&6; }
54826400
54836401 fi
54846402 fi
54856403
54866404
54876405 pkg_failed=no
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
5489 $as_echo_n "checking for LIBPNG... " >&6; }
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpng" >&5
6407 printf %s "checking for libpng... " >&6; }
54906408
54916409 if test -n "$LIBPNG_CFLAGS"; then
54926410 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
54936411 elif test -n "$PKG_CONFIG"; then
54946412 if test -n "$PKG_CONFIG" && \
5495 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
6413 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
54966414 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
54976415 ac_status=$?
5498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54996417 test $ac_status = 0; }; then
55006418 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
55016419 test "x$?" != "x0" && pkg_failed=yes
55096427 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
55106428 elif test -n "$PKG_CONFIG"; then
55116429 if test -n "$PKG_CONFIG" && \
5512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
6430 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
55136431 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
55146432 ac_status=$?
5515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55166434 test $ac_status = 0; }; then
55176435 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
55186436 test "x$?" != "x0" && pkg_failed=yes
55266444
55276445
55286446 if test $pkg_failed = yes; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 printf "%s\n" "no" >&6; }
55316449
55326450 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55336451 _pkg_short_errors_supported=yes
55536471 and LIBPNG_LIBS to avoid the need to call pkg-config.
55546472 See the pkg-config man page for more details." "$LINENO" 5
55556473 elif test $pkg_failed = untried; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 printf "%s\n" "no" >&6; }
6476 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6477 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
55606478 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
55616479 is in your PATH or set the PKG_CONFIG environment variable to the full
55626480 path to pkg-config.
55706488 else
55716489 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
55726490 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5574 $as_echo "yes" >&6; }
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6492 printf "%s\n" "yes" >&6; }
55756493
55766494 fi
55776495
55786496 # Checks for header files.
5579 ac_ext=c
5580 ac_cpp='$CPP $CPPFLAGS'
5581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5585 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5586 # On Suns, sometimes $CPP names a directory.
5587 if test -n "$CPP" && test -d "$CPP"; then
5588 CPP=
5589 fi
5590 if test -z "$CPP"; then
5591 if ${ac_cv_prog_CPP+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 # Double quotes because CPP needs to be expanded
5595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5596 do
5597 ac_preproc_ok=false
5598 for ac_c_preproc_warn_flag in '' yes
6497 ac_header= ac_cache=
6498 for ac_item in $ac_header_c_list
55996499 do
5600 # Use a header file that comes with gcc, so configuring glibc
5601 # with a fresh cross-compiler works.
5602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5603 # <limits.h> exists even on freestanding compilers.
5604 # On the NeXT, cc -E runs the code through the compiler's parser,
5605 # not just through cpp. "Syntax error" is here to catch this case.
6500 if test $ac_cache; then
6501 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6502 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6503 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6504 fi
6505 ac_header= ac_cache=
6506 elif test $ac_header; then
6507 ac_cache=$ac_item
6508 else
6509 ac_header=$ac_item
6510 fi
6511 done
6512
6513
6514
6515
6516
6517
6518
6519
6520 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6521 then :
6522
6523 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6524
6525 fi
6526 for ac_header in limits.h malloc.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h
6527 do :
6528 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
6529 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6530 if eval test \"x\$"$as_ac_Header"\" = x"yes"
6531 then :
6532 cat >>confdefs.h <<_ACEOF
6533 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
6534 _ACEOF
6535
6536 else $as_nop
6537 as_fn_error $? "cannot find one or more of these header files: limits.h malloc.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h" "$LINENO" 5
6538 fi
6539
6540 done
6541 for ac_header in getopt.h
6542 do :
6543 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
6544 if test "x$ac_cv_header_getopt_h" = xyes
6545 then :
6546 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
6547
6548 else $as_nop
6549 as_fn_error $? "cannot find getopt header files" "$LINENO" 5
6550 fi
6551
6552 done
6553
6554 if test "x$enable_engine" = xyes; then
6555 for ac_header in SDL/SDL.h SDL/SDL_syswm.h
6556 do :
6557 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
6558 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6559 if eval test \"x\$"$as_ac_Header"\" = x"yes"
6560 then :
6561 cat >>confdefs.h <<_ACEOF
6562 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
6563 _ACEOF
6564
6565 else $as_nop
6566 as_fn_error $? "cannot find SDL header files" "$LINENO" 5
6567 fi
6568
6569 done
6570 for ac_header in AL/alure.h
6571 do :
6572 ac_fn_c_check_header_compile "$LINENO" "AL/alure.h" "ac_cv_header_AL_alure_h" "$ac_includes_default"
6573 if test "x$ac_cv_header_AL_alure_h" = xyes
6574 then :
6575 printf "%s\n" "#define HAVE_AL_ALURE_H 1" >>confdefs.h
6576
6577 else $as_nop
6578 as_fn_error $? "cannot find alure header files" "$LINENO" 5
6579 fi
6580
6581 done
6582 for ac_header in vpx/vpx_decoder.h
6583 do :
6584 ac_fn_c_check_header_compile "$LINENO" "vpx/vpx_decoder.h" "ac_cv_header_vpx_vpx_decoder_h" "$ac_includes_default"
6585 if test "x$ac_cv_header_vpx_vpx_decoder_h" = xyes
6586 then :
6587 printf "%s\n" "#define HAVE_VPX_VPX_DECODER_H 1" >>confdefs.h
6588
6589 else $as_nop
6590 as_fn_error $? "cannot find vpx header files" "$LINENO" 5
6591 fi
6592
6593 done
6594 for ac_header in vorbis/codec.h
6595 do :
6596 ac_fn_c_check_header_compile "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
6597 if test "x$ac_cv_header_vorbis_codec_h" = xyes
6598 then :
6599 printf "%s\n" "#define HAVE_VORBIS_CODEC_H 1" >>confdefs.h
6600
6601 else $as_nop
6602 as_fn_error $? "cannot find vorbis header files" "$LINENO" 5
6603 fi
6604
6605 done
6606 for ac_header in ogg/ogg.h
6607 do :
6608 ac_fn_c_check_header_compile "$LINENO" "ogg/ogg.h" "ac_cv_header_ogg_ogg_h" "$ac_includes_default"
6609 if test "x$ac_cv_header_ogg_ogg_h" = xyes
6610 then :
6611 printf "%s\n" "#define HAVE_OGG_OGG_H 1" >>confdefs.h
6612
6613 else $as_nop
6614 as_fn_error $? "cannot find ogg header files" "$LINENO" 5
6615 fi
6616
6617 done
6618 for ac_header in dumb.h
6619 do :
6620 ac_fn_c_check_header_compile "$LINENO" "dumb.h" "ac_cv_header_dumb_h" "$ac_includes_default"
6621 if test "x$ac_cv_header_dumb_h" = xyes
6622 then :
6623 printf "%s\n" "#define HAVE_DUMB_H 1" >>confdefs.h
6624
6625 else $as_nop
6626 as_fn_error $? "cannot find DUMB header files" "$LINENO" 5
6627 fi
6628
6629 done
6630 if test "x$enable_gles2" = xyes; then
6631 for ac_header in GLES2/gl2.h
6632 do :
6633 ac_fn_c_check_header_compile "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
6634 if test "x$ac_cv_header_GLES2_gl2_h" = xyes
6635 then :
6636 printf "%s\n" "#define HAVE_GLES2_GL2_H 1" >>confdefs.h
6637
6638 else $as_nop
6639 as_fn_error $? "cannot find gles2 header files" "$LINENO" 5
6640 fi
6641
6642 done
6643 for ac_header in EGL/egl.h
6644 do :
6645 ac_fn_c_check_header_compile "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
6646 if test "x$ac_cv_header_EGL_egl_h" = xyes
6647 then :
6648 printf "%s\n" "#define HAVE_EGL_EGL_H 1" >>confdefs.h
6649
6650 else $as_nop
6651 as_fn_error $? "cannot find egl header files" "$LINENO" 5
6652 fi
6653
6654 done
6655 for ac_header in X11/Xlib.h X11/Xutil.h
6656 do :
6657 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
6658 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6659 if eval test \"x\$"$as_ac_Header"\" = x"yes"
6660 then :
6661 cat >>confdefs.h <<_ACEOF
6662 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
6663 _ACEOF
6664
6665 else $as_nop
6666 as_fn_error $? "cannot find x11 header files" "$LINENO" 5
6667 fi
6668
6669 done
6670 else
6671 for ac_header in GL/glu.h
6672 do :
6673 ac_fn_c_check_header_compile "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
6674 if test "x$ac_cv_header_GL_glu_h" = xyes
6675 then :
6676 printf "%s\n" "#define HAVE_GL_GLU_H 1" >>confdefs.h
6677
6678 else $as_nop
6679 as_fn_error $? "cannot find glu header files" "$LINENO" 5
6680 fi
6681
6682 done
6683 fi
6684 fi
6685
6686 # Checks for typedefs, structures, and compiler characteristics.
6687 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6688 if test "x$ac_cv_type__Bool" = xyes
6689 then :
6690
6691 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
6692
6693
6694 fi
6695
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6697 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
6698 if test ${ac_cv_header_stdbool_h+y}
6699 then :
6700 printf %s "(cached) " >&6
6701 else $as_nop
56066702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56076703 /* end confdefs.h. */
5608 #ifdef __STDC__
5609 # include <limits.h>
5610 #else
5611 # include <assert.h>
5612 #endif
5613 Syntax error
5614 _ACEOF
5615 if ac_fn_c_try_cpp "$LINENO"; then :
5616
5617 else
5618 # Broken: fails on valid input.
5619 continue
5620 fi
5621 rm -f conftest.err conftest.i conftest.$ac_ext
5622
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <ac_nonexistent.h>
5628 _ACEOF
5629 if ac_fn_c_try_cpp "$LINENO"; then :
5630 # Broken: success on invalid input.
5631 continue
5632 else
5633 # Passes both tests.
5634 ac_preproc_ok=:
5635 break
5636 fi
5637 rm -f conftest.err conftest.i conftest.$ac_ext
5638
5639 done
5640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5641 rm -f conftest.i conftest.err conftest.$ac_ext
5642 if $ac_preproc_ok; then :
5643 break
5644 fi
5645
5646 done
5647 ac_cv_prog_CPP=$CPP
5648
5649 fi
5650 CPP=$ac_cv_prog_CPP
5651 else
5652 ac_cv_prog_CPP=$CPP
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5655 $as_echo "$CPP" >&6; }
5656 ac_preproc_ok=false
5657 for ac_c_preproc_warn_flag in '' yes
5658 do
5659 # Use a header file that comes with gcc, so configuring glibc
5660 # with a fresh cross-compiler works.
5661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5662 # <limits.h> exists even on freestanding compilers.
5663 # On the NeXT, cc -E runs the code through the compiler's parser,
5664 # not just through cpp. "Syntax error" is here to catch this case.
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #ifdef __STDC__
5668 # include <limits.h>
5669 #else
5670 # include <assert.h>
5671 #endif
5672 Syntax error
5673 _ACEOF
5674 if ac_fn_c_try_cpp "$LINENO"; then :
5675
5676 else
5677 # Broken: fails on valid input.
5678 continue
5679 fi
5680 rm -f conftest.err conftest.i conftest.$ac_ext
5681
5682 # OK, works on sane cases. Now check whether nonexistent headers
5683 # can be detected and how.
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #include <ac_nonexistent.h>
5687 _ACEOF
5688 if ac_fn_c_try_cpp "$LINENO"; then :
5689 # Broken: success on invalid input.
5690 continue
5691 else
5692 # Passes both tests.
5693 ac_preproc_ok=:
5694 break
5695 fi
5696 rm -f conftest.err conftest.i conftest.$ac_ext
5697
5698 done
5699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5700 rm -f conftest.i conftest.err conftest.$ac_ext
5701 if $ac_preproc_ok; then :
5702
5703 else
5704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5706 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5707 See \`config.log' for more details" "$LINENO" 5; }
5708 fi
5709
5710 ac_ext=c
5711 ac_cpp='$CPP $CPPFLAGS'
5712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5715
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5718 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5719 if ${ac_cv_path_GREP+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -z "$GREP"; then
5723 ac_path_GREP_found=false
5724 # Loop through the user's path and test for each of PROGNAME-LIST
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5727 do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_prog in grep ggrep; do
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5733 as_fn_executable_p "$ac_path_GREP" || continue
5734 # Check for GNU ac_path_GREP and select it if it is found.
5735 # Check for GNU $ac_path_GREP
5736 case `"$ac_path_GREP" --version 2>&1` in
5737 *GNU*)
5738 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5739 *)
5740 ac_count=0
5741 $as_echo_n 0123456789 >"conftest.in"
5742 while :
5743 do
5744 cat "conftest.in" "conftest.in" >"conftest.tmp"
5745 mv "conftest.tmp" "conftest.in"
5746 cp "conftest.in" "conftest.nl"
5747 $as_echo 'GREP' >> "conftest.nl"
5748 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5750 as_fn_arith $ac_count + 1 && ac_count=$as_val
5751 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5752 # Best one so far, save it but keep looking for a better one
5753 ac_cv_path_GREP="$ac_path_GREP"
5754 ac_path_GREP_max=$ac_count
5755 fi
5756 # 10*(2^10) chars as input seems more than enough
5757 test $ac_count -gt 10 && break
5758 done
5759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5760 esac
5761
5762 $ac_path_GREP_found && break 3
5763 done
5764 done
5765 done
5766 IFS=$as_save_IFS
5767 if test -z "$ac_cv_path_GREP"; then
5768 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5769 fi
5770 else
5771 ac_cv_path_GREP=$GREP
5772 fi
5773
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5776 $as_echo "$ac_cv_path_GREP" >&6; }
5777 GREP="$ac_cv_path_GREP"
5778
5779
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5781 $as_echo_n "checking for egrep... " >&6; }
5782 if ${ac_cv_path_EGREP+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5786 then ac_cv_path_EGREP="$GREP -E"
5787 else
5788 if test -z "$EGREP"; then
5789 ac_path_EGREP_found=false
5790 # Loop through the user's path and test for each of PROGNAME-LIST
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5793 do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_prog in egrep; do
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5799 as_fn_executable_p "$ac_path_EGREP" || continue
5800 # Check for GNU ac_path_EGREP and select it if it is found.
5801 # Check for GNU $ac_path_EGREP
5802 case `"$ac_path_EGREP" --version 2>&1` in
5803 *GNU*)
5804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5805 *)
5806 ac_count=0
5807 $as_echo_n 0123456789 >"conftest.in"
5808 while :
5809 do
5810 cat "conftest.in" "conftest.in" >"conftest.tmp"
5811 mv "conftest.tmp" "conftest.in"
5812 cp "conftest.in" "conftest.nl"
5813 $as_echo 'EGREP' >> "conftest.nl"
5814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5816 as_fn_arith $ac_count + 1 && ac_count=$as_val
5817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5818 # Best one so far, save it but keep looking for a better one
5819 ac_cv_path_EGREP="$ac_path_EGREP"
5820 ac_path_EGREP_max=$ac_count
5821 fi
5822 # 10*(2^10) chars as input seems more than enough
5823 test $ac_count -gt 10 && break
5824 done
5825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5826 esac
5827
5828 $ac_path_EGREP_found && break 3
5829 done
5830 done
5831 done
5832 IFS=$as_save_IFS
5833 if test -z "$ac_cv_path_EGREP"; then
5834 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5835 fi
5836 else
5837 ac_cv_path_EGREP=$EGREP
5838 fi
5839
5840 fi
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5843 $as_echo "$ac_cv_path_EGREP" >&6; }
5844 EGREP="$ac_cv_path_EGREP"
5845
5846
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5848 $as_echo_n "checking for ANSI C header files... " >&6; }
5849 if ${ac_cv_header_stdc+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854 #include <stdlib.h>
5855 #include <stdarg.h>
5856 #include <string.h>
5857 #include <float.h>
6704 #include <stdbool.h>
6705
6706 #ifndef __bool_true_false_are_defined
6707 #error "__bool_true_false_are_defined is not defined"
6708 #endif
6709 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
6710
6711 /* Regardless of whether this is C++ or "_Bool" is a
6712 valid type name, "true" and "false" should be usable
6713 in #if expressions and integer constant expressions,
6714 and "bool" should be a valid type name. */
6715
6716 #if !true
6717 #error "'true' is not true"
6718 #endif
6719 #if true != 1
6720 #error "'true' is not equal to 1"
6721 #endif
6722 char b[true == 1 ? 1 : -1];
6723 char c[true];
6724
6725 #if false
6726 #error "'false' is not false"
6727 #endif
6728 #if false != 0
6729 #error "'false' is not equal to 0"
6730 #endif
6731 char d[false == 0 ? 1 : -1];
6732
6733 enum { e = false, f = true, g = false * true, h = true * 256 };
6734
6735 char i[(bool) 0.5 == true ? 1 : -1];
6736 char j[(bool) 0.0 == false ? 1 : -1];
6737 char k[sizeof (bool) > 0 ? 1 : -1];
6738
6739 struct sb { bool s: 1; bool t; } s;
6740 char l[sizeof s.t > 0 ? 1 : -1];
6741
6742 /* The following fails for
6743 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6744 bool m[h];
6745 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
6746 char o[-1 - (bool) 0 < 0 ? 1 : -1];
6747 /* Catch a bug in an HP-UX C compiler. See
6748 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6749 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6750 */
6751 bool p = true;
6752 bool *pp = &p;
6753
6754 /* C 1999 specifies that bool, true, and false are to be
6755 macros, but C++ 2011 and later overrule this. */
6756 #if __cplusplus < 201103
6757 #ifndef bool
6758 #error "bool is not defined"
6759 #endif
6760 #ifndef false
6761 #error "false is not defined"
6762 #endif
6763 #ifndef true
6764 #error "true is not defined"
6765 #endif
6766 #endif
6767
6768 /* If _Bool is available, repeat with it all the tests
6769 above that used bool. */
6770 #ifdef HAVE__BOOL
6771 struct sB { _Bool s: 1; _Bool t; } t;
6772
6773 char q[(_Bool) 0.5 == true ? 1 : -1];
6774 char r[(_Bool) 0.0 == false ? 1 : -1];
6775 char u[sizeof (_Bool) > 0 ? 1 : -1];
6776 char v[sizeof t.t > 0 ? 1 : -1];
6777
6778 _Bool w[h];
6779 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
6780 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
6781 _Bool z = true;
6782 _Bool *pz = &p;
6783 #endif
58586784
58596785 int
5860 main ()
6786 main (void)
58616787 {
6788
6789 bool ps = &s;
6790 *pp |= p;
6791 *pp |= ! p;
6792
6793 #ifdef HAVE__BOOL
6794 _Bool pt = &t;
6795 *pz |= z;
6796 *pz |= ! z;
6797 #endif
6798
6799 /* Refer to every declared value, so they cannot be
6800 discarded as unused. */
6801 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
6802 + !l + !m + !n + !o + !p + !pp + !ps
6803 #ifdef HAVE__BOOL
6804 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
6805 #endif
6806 );
58626807
58636808 ;
58646809 return 0;
58656810 }
58666811 _ACEOF
5867 if ac_fn_c_try_compile "$LINENO"; then :
5868 ac_cv_header_stdc=yes
5869 else
5870 ac_cv_header_stdc=no
5871 fi
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873
5874 if test $ac_cv_header_stdc = yes; then
5875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 #include <string.h>
5879
5880 _ACEOF
5881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5882 $EGREP "memchr" >/dev/null 2>&1; then :
5883
5884 else
5885 ac_cv_header_stdc=no
5886 fi
5887 rm -f conftest*
5888
5889 fi
5890
5891 if test $ac_cv_header_stdc = yes; then
5892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 #include <stdlib.h>
5896
5897 _ACEOF
5898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899 $EGREP "free" >/dev/null 2>&1; then :
5900
5901 else
5902 ac_cv_header_stdc=no
5903 fi
5904 rm -f conftest*
5905
5906 fi
5907
5908 if test $ac_cv_header_stdc = yes; then
5909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5910 if test "$cross_compiling" = yes; then :
5911 :
5912 else
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5915 #include <ctype.h>
5916 #include <stdlib.h>
5917 #if ((' ' & 0x0FF) == 0x020)
5918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5920 #else
5921 # define ISLOWER(c) \
5922 (('a' <= (c) && (c) <= 'i') \
5923 || ('j' <= (c) && (c) <= 'r') \
5924 || ('s' <= (c) && (c) <= 'z'))
5925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5926 #endif
5927
5928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5929 int
5930 main ()
5931 {
5932 int i;
5933 for (i = 0; i < 256; i++)
5934 if (XOR (islower (i), ISLOWER (i))
5935 || toupper (i) != TOUPPER (i))
5936 return 2;
5937 return 0;
5938 }
5939 _ACEOF
5940 if ac_fn_c_try_run "$LINENO"; then :
5941
5942 else
5943 ac_cv_header_stdc=no
5944 fi
5945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5946 conftest.$ac_objext conftest.beam conftest.$ac_ext
5947 fi
5948
5949 fi
5950 fi
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5952 $as_echo "$ac_cv_header_stdc" >&6; }
5953 if test $ac_cv_header_stdc = yes; then
5954
5955 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5956
5957 fi
5958
5959 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5960 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5961 inttypes.h stdint.h unistd.h
5962 do :
5963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5964 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5965 "
5966 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5967 cat >>confdefs.h <<_ACEOF
5968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5969 _ACEOF
5970
5971 fi
5972
5973 done
5974
5975
5976 for ac_header in limits.h malloc.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h
5977 do :
5978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5981 cat >>confdefs.h <<_ACEOF
5982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5983 _ACEOF
5984
5985 else
5986 as_fn_error $? "cannot find one or more of these header files: limits.h malloc.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h" "$LINENO" 5
5987 fi
5988
5989 done
5990
5991 for ac_header in getopt.h
5992 do :
5993 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
5994 if test "x$ac_cv_header_getopt_h" = xyes; then :
5995 cat >>confdefs.h <<_ACEOF
5996 #define HAVE_GETOPT_H 1
5997 _ACEOF
5998
5999 else
6000 as_fn_error $? "cannot find getopt header files" "$LINENO" 5
6001 fi
6002
6003 done
6004
6005
6006 if test "x$enable_engine" = xyes; then
6007 for ac_header in SDL/SDL.h SDL/SDL_syswm.h
6008 do :
6009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6010 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6011 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6012 cat >>confdefs.h <<_ACEOF
6013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6014 _ACEOF
6015
6016 else
6017 as_fn_error $? "cannot find SDL header files" "$LINENO" 5
6018 fi
6019
6020 done
6021
6022 for ac_header in AL/alure.h
6023 do :
6024 ac_fn_c_check_header_mongrel "$LINENO" "AL/alure.h" "ac_cv_header_AL_alure_h" "$ac_includes_default"
6025 if test "x$ac_cv_header_AL_alure_h" = xyes; then :
6026 cat >>confdefs.h <<_ACEOF
6027 #define HAVE_AL_ALURE_H 1
6028 _ACEOF
6029
6030 else
6031 as_fn_error $? "cannot find alure header files" "$LINENO" 5
6032 fi
6033
6034 done
6035
6036 for ac_header in vpx/vpx_decoder.h
6037 do :
6038 ac_fn_c_check_header_mongrel "$LINENO" "vpx/vpx_decoder.h" "ac_cv_header_vpx_vpx_decoder_h" "$ac_includes_default"
6039 if test "x$ac_cv_header_vpx_vpx_decoder_h" = xyes; then :
6040 cat >>confdefs.h <<_ACEOF
6041 #define HAVE_VPX_VPX_DECODER_H 1
6042 _ACEOF
6043
6044 else
6045 as_fn_error $? "cannot find vpx header files" "$LINENO" 5
6046 fi
6047
6048 done
6049
6050 for ac_header in vorbis/codec.h
6051 do :
6052 ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
6053 if test "x$ac_cv_header_vorbis_codec_h" = xyes; then :
6054 cat >>confdefs.h <<_ACEOF
6055 #define HAVE_VORBIS_CODEC_H 1
6056 _ACEOF
6057
6058 else
6059 as_fn_error $? "cannot find vorbis header files" "$LINENO" 5
6060 fi
6061
6062 done
6063
6064 for ac_header in ogg/ogg.h
6065 do :
6066 ac_fn_c_check_header_mongrel "$LINENO" "ogg/ogg.h" "ac_cv_header_ogg_ogg_h" "$ac_includes_default"
6067 if test "x$ac_cv_header_ogg_ogg_h" = xyes; then :
6068 cat >>confdefs.h <<_ACEOF
6069 #define HAVE_OGG_OGG_H 1
6070 _ACEOF
6071
6072 else
6073 as_fn_error $? "cannot find ogg header files" "$LINENO" 5
6074 fi
6075
6076 done
6077
6078 for ac_header in dumb.h
6079 do :
6080 ac_fn_c_check_header_mongrel "$LINENO" "dumb.h" "ac_cv_header_dumb_h" "$ac_includes_default"
6081 if test "x$ac_cv_header_dumb_h" = xyes; then :
6082 cat >>confdefs.h <<_ACEOF
6083 #define HAVE_DUMB_H 1
6084 _ACEOF
6085
6086 else
6087 as_fn_error $? "cannot find DUMB header files" "$LINENO" 5
6088 fi
6089
6090 done
6091
6092 if test "x$enable_gles2" = xyes; then
6093 for ac_header in GLES2/gl2.h
6094 do :
6095 ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
6096 if test "x$ac_cv_header_GLES2_gl2_h" = xyes; then :
6097 cat >>confdefs.h <<_ACEOF
6098 #define HAVE_GLES2_GL2_H 1
6099 _ACEOF
6100
6101 else
6102 as_fn_error $? "cannot find gles2 header files" "$LINENO" 5
6103 fi
6104
6105 done
6106
6107 for ac_header in EGL/egl.h
6108 do :
6109 ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
6110 if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
6111 cat >>confdefs.h <<_ACEOF
6112 #define HAVE_EGL_EGL_H 1
6113 _ACEOF
6114
6115 else
6116 as_fn_error $? "cannot find egl header files" "$LINENO" 5
6117 fi
6118
6119 done
6120
6121 for ac_header in X11/Xlib.h X11/Xutil.h
6122 do :
6123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6124 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6125 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6126 cat >>confdefs.h <<_ACEOF
6127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6128 _ACEOF
6129
6130 else
6131 as_fn_error $? "cannot find x11 header files" "$LINENO" 5
6132 fi
6133
6134 done
6135
6136 else
6137 for ac_header in GL/glu.h
6138 do :
6139 ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
6140 if test "x$ac_cv_header_GL_glu_h" = xyes; then :
6141 cat >>confdefs.h <<_ACEOF
6142 #define HAVE_GL_GLU_H 1
6143 _ACEOF
6144
6145 else
6146 as_fn_error $? "cannot find glu header files" "$LINENO" 5
6147 fi
6148
6149 done
6150
6151 fi
6152 fi
6153
6154 # Checks for typedefs, structures, and compiler characteristics.
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6156 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
6157 if ${ac_cv_header_stdbool_h+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162
6163 #include <stdbool.h>
6164 #ifndef bool
6165 "error: bool is not defined"
6166 #endif
6167 #ifndef false
6168 "error: false is not defined"
6169 #endif
6170 #if false
6171 "error: false is not 0"
6172 #endif
6173 #ifndef true
6174 "error: true is not defined"
6175 #endif
6176 #if true != 1
6177 "error: true is not 1"
6178 #endif
6179 #ifndef __bool_true_false_are_defined
6180 "error: __bool_true_false_are_defined is not defined"
6181 #endif
6182
6183 struct s { _Bool s: 1; _Bool t; } s;
6184
6185 char a[true == 1 ? 1 : -1];
6186 char b[false == 0 ? 1 : -1];
6187 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6188 char d[(bool) 0.5 == true ? 1 : -1];
6189 /* See body of main program for 'e'. */
6190 char f[(_Bool) 0.0 == false ? 1 : -1];
6191 char g[true];
6192 char h[sizeof (_Bool)];
6193 char i[sizeof s.t];
6194 enum { j = false, k = true, l = false * true, m = true * 256 };
6195 /* The following fails for
6196 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6197 _Bool n[m];
6198 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6199 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6200 /* Catch a bug in an HP-UX C compiler. See
6201 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6202 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6203 */
6204 _Bool q = true;
6205 _Bool *pq = &q;
6206
6207 int
6208 main ()
6209 {
6210
6211 bool e = &s;
6212 *pq |= q;
6213 *pq |= ! q;
6214 /* Refer to every declared value, to avoid compiler optimizations. */
6215 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6216 + !m + !n + !o + !p + !q + !pq);
6217
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"; then :
6812 if ac_fn_c_try_compile "$LINENO"
6813 then :
62236814 ac_cv_header_stdbool_h=yes
6224 else
6815 else $as_nop
62256816 ac_cv_header_stdbool_h=no
62266817 fi
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 fi
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6230 $as_echo "$ac_cv_header_stdbool_h" >&6; }
6231 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6232 if test "x$ac_cv_type__Bool" = xyes; then :
6233
6234 cat >>confdefs.h <<_ACEOF
6235 #define HAVE__BOOL 1
6236 _ACEOF
6237
6238
6239 fi
6240
6818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6819 fi
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6821 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
62416822
62426823 if test $ac_cv_header_stdbool_h = yes; then
62436824
6244 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
6245
6246 fi
6247
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6249 $as_echo_n "checking for inline... " >&6; }
6250 if ${ac_cv_c_inline+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6825 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
6826
6827 fi
6828
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6830 printf %s "checking for inline... " >&6; }
6831 if test ${ac_cv_c_inline+y}
6832 then :
6833 printf %s "(cached) " >&6
6834 else $as_nop
62536835 ac_cv_c_inline=no
62546836 for ac_kw in inline __inline__ __inline; do
62556837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62566838 /* end confdefs.h. */
62576839 #ifndef __cplusplus
62586840 typedef int foo_t;
6259 static $ac_kw foo_t static_foo () {return 0; }
6260 $ac_kw foo_t foo () {return 0; }
6841 static $ac_kw foo_t static_foo (void) {return 0; }
6842 $ac_kw foo_t foo (void) {return 0; }
62616843 #endif
62626844
62636845 _ACEOF
6264 if ac_fn_c_try_compile "$LINENO"; then :
6846 if ac_fn_c_try_compile "$LINENO"
6847 then :
62656848 ac_cv_c_inline=$ac_kw
62666849 fi
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
62686851 test "$ac_cv_c_inline" != no && break
62696852 done
62706853
62716854 fi
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6273 $as_echo "$ac_cv_c_inline" >&6; }
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6856 printf "%s\n" "$ac_cv_c_inline" >&6; }
62746857
62756858 case $ac_cv_c_inline in
62766859 inline | yes) ;;
62926875 no|yes) ;; #(
62936876 *)
62946877
6295 cat >>confdefs.h <<_ACEOF
6296 #define int32_t $ac_cv_c_int32_t
6297 _ACEOF
6878 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
62986879 ;;
62996880 esac
63006881
63036884 no|yes) ;; #(
63046885 *)
63056886
6306 cat >>confdefs.h <<_ACEOF
6307 #define int64_t $ac_cv_c_int64_t
6308 _ACEOF
6887 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
63096888 ;;
63106889 esac
63116890
63126891 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6313 if test "x$ac_cv_type_size_t" = xyes; then :
6314
6315 else
6316
6317 cat >>confdefs.h <<_ACEOF
6318 #define size_t unsigned int
6319 _ACEOF
6892 if test "x$ac_cv_type_size_t" = xyes
6893 then :
6894
6895 else $as_nop
6896
6897 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
63206898
63216899 fi
63226900
63256903 no|yes) ;; #(
63266904 *)
63276905
6328 $as_echo "#define _UINT32_T 1" >>confdefs.h
6329
6330
6331 cat >>confdefs.h <<_ACEOF
6332 #define uint32_t $ac_cv_c_uint32_t
6333 _ACEOF
6906 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
6907
6908
6909 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
63346910 ;;
63356911 esac
63366912
63376913 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
6338 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
6339
6340 cat >>confdefs.h <<_ACEOF
6341 #define HAVE_PTRDIFF_T 1
6342 _ACEOF
6914 if test "x$ac_cv_type_ptrdiff_t" = xyes
6915 then :
6916
6917 printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
63436918
63446919
63456920 fi
63466921
63476922
63486923 # Checks for library functions.
6349 for ac_header in stdlib.h
6350 do :
6351 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6352 if test "x$ac_cv_header_stdlib_h" = xyes; then :
6353 cat >>confdefs.h <<_ACEOF
6354 #define HAVE_STDLIB_H 1
6355 _ACEOF
6356
6357 fi
6358
6359 done
6360
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6362 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6363 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 if test "$cross_compiling" = yes; then :
6367 ac_cv_func_malloc_0_nonnull=no
6368 else
6924
6925
6926 # Make sure we can run config.sub.
6927 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6928 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6929
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6931 printf %s "checking build system type... " >&6; }
6932 if test ${ac_cv_build+y}
6933 then :
6934 printf %s "(cached) " >&6
6935 else $as_nop
6936 ac_build_alias=$build_alias
6937 test "x$ac_build_alias" = x &&
6938 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6939 test "x$ac_build_alias" = x &&
6940 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6941 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6942 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6943
6944 fi
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6946 printf "%s\n" "$ac_cv_build" >&6; }
6947 case $ac_cv_build in
6948 *-*-*) ;;
6949 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6950 esac
6951 build=$ac_cv_build
6952 ac_save_IFS=$IFS; IFS='-'
6953 set x $ac_cv_build
6954 shift
6955 build_cpu=$1
6956 build_vendor=$2
6957 shift; shift
6958 # Remember, the first character of IFS is used to create $*,
6959 # except with old shells:
6960 build_os=$*
6961 IFS=$ac_save_IFS
6962 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6963
6964
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6966 printf %s "checking host system type... " >&6; }
6967 if test ${ac_cv_host+y}
6968 then :
6969 printf %s "(cached) " >&6
6970 else $as_nop
6971 if test "x$host_alias" = x; then
6972 ac_cv_host=$ac_cv_build
6973 else
6974 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6975 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6976 fi
6977
6978 fi
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6980 printf "%s\n" "$ac_cv_host" >&6; }
6981 case $ac_cv_host in
6982 *-*-*) ;;
6983 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6984 esac
6985 host=$ac_cv_host
6986 ac_save_IFS=$IFS; IFS='-'
6987 set x $ac_cv_host
6988 shift
6989 host_cpu=$1
6990 host_vendor=$2
6991 shift; shift
6992 # Remember, the first character of IFS is used to create $*,
6993 # except with old shells:
6994 host_os=$*
6995 IFS=$ac_save_IFS
6996 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6997
6998
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7000 printf %s "checking for GNU libc compatible malloc... " >&6; }
7001 if test ${ac_cv_func_malloc_0_nonnull+y}
7002 then :
7003 printf %s "(cached) " >&6
7004 else $as_nop
7005 if test "$cross_compiling" = yes
7006 then :
7007 case "$host_os" in # ((
7008 # Guess yes on platforms where we know the result.
7009 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
7010 | hpux* | solaris* | cygwin* | mingw* | msys* )
7011 ac_cv_func_malloc_0_nonnull=yes ;;
7012 # If we don't know, assume the worst.
7013 *) ac_cv_func_malloc_0_nonnull=no ;;
7014 esac
7015 else $as_nop
63697016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63707017 /* end confdefs.h. */
6371 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6372 # include <stdlib.h>
6373 #else
6374 char *malloc ();
6375 #endif
7018 #include <stdlib.h>
63767019
63777020 int
6378 main ()
7021 main (void)
63797022 {
6380 return ! malloc (0);
7023 void *p = malloc (0);
7024 int result = !p;
7025 free (p);
7026 return result;
63817027 ;
63827028 return 0;
63837029 }
63847030 _ACEOF
6385 if ac_fn_c_try_run "$LINENO"; then :
7031 if ac_fn_c_try_run "$LINENO"
7032 then :
63867033 ac_cv_func_malloc_0_nonnull=yes
6387 else
7034 else $as_nop
63887035 ac_cv_func_malloc_0_nonnull=no
63897036 fi
63907037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
63927039 fi
63937040
63947041 fi
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6396 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6397 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6398
6399 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6400
6401 else
6402 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7043 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
7044 if test $ac_cv_func_malloc_0_nonnull = yes
7045 then :
7046
7047 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
7048
7049 else $as_nop
7050 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
64037051
64047052 case " $LIBOBJS " in
64057053 *" malloc.$ac_objext "* ) ;;
64087056 esac
64097057
64107058
6411 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6412
6413 fi
6414
6415
6416 for ac_header in stdlib.h
6417 do :
6418 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6419 if test "x$ac_cv_header_stdlib_h" = xyes; then :
6420 cat >>confdefs.h <<_ACEOF
6421 #define HAVE_STDLIB_H 1
6422 _ACEOF
6423
6424 fi
6425
6426 done
6427
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6429 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6430 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 if test "$cross_compiling" = yes; then :
6434 ac_cv_func_realloc_0_nonnull=no
6435 else
7059 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
7060
7061 fi
7062
7063
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
7065 printf %s "checking for GNU libc compatible realloc... " >&6; }
7066 if test ${ac_cv_func_realloc_0_nonnull+y}
7067 then :
7068 printf %s "(cached) " >&6
7069 else $as_nop
7070 if test "$cross_compiling" = yes
7071 then :
7072 case "$host_os" in # ((
7073 # Guess yes on platforms where we know the result.
7074 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
7075 | hpux* | solaris* | cygwin* | mingw* | msys* )
7076 ac_cv_func_realloc_0_nonnull=yes ;;
7077 # If we don't know, assume the worst.
7078 *) ac_cv_func_realloc_0_nonnull=no ;;
7079 esac
7080 else $as_nop
64367081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64377082 /* end confdefs.h. */
6438 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6439 # include <stdlib.h>
6440 #else
6441 char *realloc ();
6442 #endif
7083 #include <stdlib.h>
64437084
64447085 int
6445 main ()
7086 main (void)
64467087 {
6447 return ! realloc (0, 0);
7088 void *p = realloc (0, 0);
7089 int result = !p;
7090 free (p);
7091 return result;
64487092 ;
64497093 return 0;
64507094 }
64517095 _ACEOF
6452 if ac_fn_c_try_run "$LINENO"; then :
7096 if ac_fn_c_try_run "$LINENO"
7097 then :
64537098 ac_cv_func_realloc_0_nonnull=yes
6454 else
7099 else $as_nop
64557100 ac_cv_func_realloc_0_nonnull=no
64567101 fi
64577102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64597104 fi
64607105
64617106 fi
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6463 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6464 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6465
6466 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6467
6468 else
6469 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
7108 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
7109 if test $ac_cv_func_realloc_0_nonnull = yes
7110 then :
7111
7112 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
7113
7114 else $as_nop
7115 printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
64707116
64717117 case " $LIBOBJS " in
64727118 *" realloc.$ac_objext "* ) ;;
64757121 esac
64767122
64777123
6478 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6479
6480 fi
6481
6482
6483 for ac_func in atexit getcwd memset mkdir rmdir sqrt strstr strtol
6484 do :
6485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6487 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6488 cat >>confdefs.h <<_ACEOF
6489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6490 _ACEOF
6491
6492 fi
6493 done
7124 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
7125
7126 fi
7127
7128
7129 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
7130 if test "x$ac_cv_func_atexit" = xyes
7131 then :
7132 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
7133
7134 fi
7135 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
7136 if test "x$ac_cv_func_getcwd" = xyes
7137 then :
7138 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
7139
7140 fi
7141 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
7142 if test "x$ac_cv_func_memset" = xyes
7143 then :
7144 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
7145
7146 fi
7147 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
7148 if test "x$ac_cv_func_mkdir" = xyes
7149 then :
7150 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
7151
7152 fi
7153 ac_fn_c_check_func "$LINENO" "rmdir" "ac_cv_func_rmdir"
7154 if test "x$ac_cv_func_rmdir" = xyes
7155 then :
7156 printf "%s\n" "#define HAVE_RMDIR 1" >>confdefs.h
7157
7158 fi
7159 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
7160 if test "x$ac_cv_func_sqrt" = xyes
7161 then :
7162 printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
7163
7164 fi
7165 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
7166 if test "x$ac_cv_func_strstr" = xyes
7167 then :
7168 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
7169
7170 fi
7171 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
7172 if test "x$ac_cv_func_strtol" = xyes
7173 then :
7174 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
7175
7176 fi
64947177
64957178
64967179 if test "x$enable_engine" = xyes; then
65797262 case $ac_val in #(
65807263 *${as_nl}*)
65817264 case $ac_var in #(
6582 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6583 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7265 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7266 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
65847267 esac
65857268 case $ac_var in #(
65867269 _ | IFS | as_nl) ;; #(
66107293 /^ac_cv_env_/b end
66117294 t clear
66127295 :clear
6613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7296 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
66147297 t end
66157298 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
66167299 :end' >>confcache
66177300 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
66187301 if test -w "$cache_file"; then
66197302 if test "x$cache_file" != "x/dev/null"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6621 $as_echo "$as_me: updating cache $cache_file" >&6;}
7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7304 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
66227305 if test ! -f "$cache_file" || test -h "$cache_file"; then
66237306 cat confcache >"$cache_file"
66247307 else
66327315 fi
66337316 fi
66347317 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6636 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7319 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
66377320 fi
66387321 fi
66397322 rm -f confcache
66507333 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
66517334 # 1. Remove the extension, and $U if already installed.
66527335 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7336 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
66547337 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
66557338 # will be set to the directory where LIBOBJS objects are built.
66567339 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
66617344 LTLIBOBJS=$ac_ltlibobjs
66627345
66637346
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6665 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7348 printf %s "checking that generated files are newer than configure... " >&6; }
66667349 if test -n "$am_sleep_pid"; then
66677350 # Hide warnings about reused PIDs.
66687351 wait $am_sleep_pid 2>/dev/null
66697352 fi
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6671 $as_echo "done" >&6; }
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
7354 printf "%s\n" "done" >&6; }
66727355 if test -n "$EXEEXT"; then
66737356 am__EXEEXT_TRUE=
66747357 am__EXEEXT_FALSE='#'
67267409 ac_write_fail=0
67277410 ac_clean_files_save=$ac_clean_files
67287411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6730 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7413 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
67317414 as_write_fail=0
67327415 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
67337416 #! $SHELL
67507433
67517434 # Be more Bourne compatible
67527435 DUALCASE=1; export DUALCASE # for MKS sh
6753 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7436 as_nop=:
7437 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
7438 then :
67547439 emulate sh
67557440 NULLCMD=:
67567441 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
67577442 # is contrary to our usage. Disable this feature.
67587443 alias -g '${1+"$@"}'='"$@"'
67597444 setopt NO_GLOB_SUBST
6760 else
7445 else $as_nop
67617446 case `(set -o) 2>/dev/null` in #(
67627447 *posix*) :
67637448 set -o posix ;; #(
67677452 fi
67687453
67697454
7455
7456 # Reset variables that may have inherited troublesome values from
7457 # the environment.
7458
7459 # IFS needs to be set, to space, tab, and newline, in precisely that order.
7460 # (If _AS_PATH_WALK were called with IFS unset, it would have the
7461 # side effect of setting IFS to empty, thus disabling word splitting.)
7462 # Quoting is to prevent editors from complaining about space-tab.
67707463 as_nl='
67717464 '
67727465 export as_nl
6773 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6774 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6775 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6777 # Prefer a ksh shell builtin over an external printf program on Solaris,
6778 # but without wasting forks for bash or zsh.
6779 if test -z "$BASH_VERSION$ZSH_VERSION" \
6780 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6781 as_echo='print -r --'
6782 as_echo_n='print -rn --'
6783 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6784 as_echo='printf %s\n'
6785 as_echo_n='printf %s'
6786 else
6787 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6788 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6789 as_echo_n='/usr/ucb/echo -n'
6790 else
6791 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6792 as_echo_n_body='eval
6793 arg=$1;
6794 case $arg in #(
6795 *"$as_nl"*)
6796 expr "X$arg" : "X\\(.*\\)$as_nl";
6797 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6798 esac;
6799 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6800 '
6801 export as_echo_n_body
6802 as_echo_n='sh -c $as_echo_n_body as_echo'
6803 fi
6804 export as_echo_body
6805 as_echo='sh -c $as_echo_body as_echo'
6806 fi
7466 IFS=" "" $as_nl"
7467
7468 PS1='$ '
7469 PS2='> '
7470 PS4='+ '
7471
7472 # Ensure predictable behavior from utilities with locale-dependent output.
7473 LC_ALL=C
7474 export LC_ALL
7475 LANGUAGE=C
7476 export LANGUAGE
7477
7478 # We cannot yet rely on "unset" to work, but we need these variables
7479 # to be unset--not just set to an empty or harmless value--now, to
7480 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7481 # also avoids known problems related to "unset" and subshell syntax
7482 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7483 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7484 do eval test \${$as_var+y} \
7485 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7486 done
7487
7488 # Ensure that fds 0, 1, and 2 are open.
7489 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7490 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7491 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
68077492
68087493 # The user is always right.
6809 if test "${PATH_SEPARATOR+set}" != set; then
7494 if ${PATH_SEPARATOR+false} :; then
68107495 PATH_SEPARATOR=:
68117496 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
68127497 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
68147499 }
68157500 fi
68167501
6817
6818 # IFS
6819 # We need space, tab and new line, in precisely that order. Quoting is
6820 # there to prevent editors from complaining about space-tab.
6821 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6822 # splitting by setting IFS to empty value.)
6823 IFS=" "" $as_nl"
68247502
68257503 # Find who we are. Look in the path if we contain no directory separator.
68267504 as_myself=
68307508 for as_dir in $PATH
68317509 do
68327510 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7511 case $as_dir in #(((
7512 '') as_dir=./ ;;
7513 */) ;;
7514 *) as_dir=$as_dir/ ;;
7515 esac
7516 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
68357517 done
68367518 IFS=$as_save_IFS
68377519
68437525 as_myself=$0
68447526 fi
68457527 if test ! -f "$as_myself"; then
6846 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7528 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
68477529 exit 1
68487530 fi
68497531
6850 # Unset variables that we do not need and which cause bugs (e.g. in
6851 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6852 # suppresses any "Segmentation fault" message there. '((' could
6853 # trigger a bug in pdksh 5.2.14.
6854 for as_var in BASH_ENV ENV MAIL MAILPATH
6855 do eval test x\${$as_var+set} = xset \
6856 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6857 done
6858 PS1='$ '
6859 PS2='> '
6860 PS4='+ '
6861
6862 # NLS nuisances.
6863 LC_ALL=C
6864 export LC_ALL
6865 LANGUAGE=C
6866 export LANGUAGE
6867
6868 # CDPATH.
6869 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
68707532
68717533
68727534 # as_fn_error STATUS ERROR [LINENO LOG_FD]
68797541 as_status=$1; test $as_status -eq 0 && as_status=1
68807542 if test "$4"; then
68817543 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6882 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
68837545 fi
6884 $as_echo "$as_me: error: $2" >&2
7546 printf "%s\n" "$as_me: error: $2" >&2
68857547 as_fn_exit $as_status
68867548 } # as_fn_error
7549
68877550
68887551
68897552 # as_fn_set_status STATUS
69127575 { eval $1=; unset $1;}
69137576 }
69147577 as_unset=as_fn_unset
7578
69157579 # as_fn_append VAR VALUE
69167580 # ----------------------
69177581 # Append the text in VALUE to the end of the definition contained in VAR. Take
69187582 # advantage of any shell optimizations that allow amortized linear growth over
69197583 # repeated appends, instead of the typical quadratic growth present in naive
69207584 # implementations.
6921 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7585 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7586 then :
69227587 eval 'as_fn_append ()
69237588 {
69247589 eval $1+=\$2
69257590 }'
6926 else
7591 else $as_nop
69277592 as_fn_append ()
69287593 {
69297594 eval $1=\$$1\$2
69357600 # Perform arithmetic evaluation on the ARGs, and store the result in the
69367601 # global $as_val. Take advantage of shells that can avoid forks. The arguments
69377602 # must be portable across $(()) and expr.
6938 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7603 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7604 then :
69397605 eval 'as_fn_arith ()
69407606 {
69417607 as_val=$(( $* ))
69427608 }'
6943 else
7609 else $as_nop
69447610 as_fn_arith ()
69457611 {
69467612 as_val=`expr "$@" || test $? -eq 1`
69717637 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69727638 X"$0" : 'X\(//\)$' \| \
69737639 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6974 $as_echo X/"$0" |
7640 printf "%s\n" X/"$0" |
69757641 sed '/^.*\/\([^/][^/]*\)\/*$/{
69767642 s//\1/
69777643 q
69937659 as_cr_digits='0123456789'
69947660 as_cr_alnum=$as_cr_Letters$as_cr_digits
69957661
7662
7663 # Determine whether it's possible to make 'echo' print without a newline.
7664 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7665 # for compatibility with existing Makefiles.
69967666 ECHO_C= ECHO_N= ECHO_T=
69977667 case `echo -n x` in #(((((
69987668 -n*)
70057675 *)
70067676 ECHO_N='-n';;
70077677 esac
7678
7679 # For backward compatibility with old third-party macros, we provide
7680 # the shell variables $as_echo and $as_echo_n. New code should use
7681 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7682 as_echo='printf %s\n'
7683 as_echo_n='printf %s'
70087684
70097685 rm -f conf$$ conf$$.exe conf$$.file
70107686 if test -d conf$$.dir; then
70477723 as_dirs=
70487724 while :; do
70497725 case $as_dir in #(
7050 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7726 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
70517727 *) as_qdir=$as_dir;;
70527728 esac
70537729 as_dirs="'$as_qdir' $as_dirs"
70567732 X"$as_dir" : 'X\(//\)[^/]' \| \
70577733 X"$as_dir" : 'X\(//\)$' \| \
70587734 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7059 $as_echo X"$as_dir" |
7735 printf "%s\n" X"$as_dir" |
70607736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70617737 s//\1/
70627738 q
71197795 # values after options handling.
71207796 ac_log="
71217797 This file was extended by SLUDGE $as_me 2.2.2, which was
7122 generated by GNU Autoconf 2.69. Invocation command line was
7798 generated by GNU Autoconf 2.71. Invocation command line was
71237799
71247800 CONFIG_FILES = $CONFIG_FILES
71257801 CONFIG_HEADERS = $CONFIG_HEADERS
71827858 SLUDGE home page: <http://opensludge.github.io/>."
71837859
71847860 _ACEOF
7861 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7862 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
71857863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7186 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7864 ac_cs_config='$ac_cs_config_escaped'
71877865 ac_cs_version="\\
71887866 SLUDGE config.status 2.2.2
7189 configured by $0, generated by GNU Autoconf 2.69,
7867 configured by $0, generated by GNU Autoconf 2.71,
71907868 with options \\"\$ac_cs_config\\"
71917869
7192 Copyright (C) 2012 Free Software Foundation, Inc.
7870 Copyright (C) 2021 Free Software Foundation, Inc.
71937871 This config.status script is free software; the Free Software Foundation
71947872 gives unlimited permission to copy, distribute and modify it."
71957873
72297907 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
72307908 ac_cs_recheck=: ;;
72317909 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7232 $as_echo "$ac_cs_version"; exit ;;
7910 printf "%s\n" "$ac_cs_version"; exit ;;
72337911 --config | --confi | --conf | --con | --co | --c )
7234 $as_echo "$ac_cs_config"; exit ;;
7912 printf "%s\n" "$ac_cs_config"; exit ;;
72357913 --debug | --debu | --deb | --de | --d | -d )
72367914 debug=: ;;
72377915 --file | --fil | --fi | --f )
72387916 $ac_shift
72397917 case $ac_optarg in
7240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7918 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
72417919 '') as_fn_error $? "missing file argument" ;;
72427920 esac
72437921 as_fn_append CONFIG_FILES " '$ac_optarg'"
72457923 --header | --heade | --head | --hea )
72467924 $ac_shift
72477925 case $ac_optarg in
7248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7926 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
72497927 esac
72507928 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
72517929 ac_need_defaults=false;;
72547932 as_fn_error $? "ambiguous option: \`$1'
72557933 Try \`$0 --help' for more information.";;
72567934 --help | --hel | -h )
7257 $as_echo "$ac_cs_usage"; exit ;;
7935 printf "%s\n" "$ac_cs_usage"; exit ;;
72587936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
72597937 | -silent | --silent | --silen | --sile | --sil | --si | --s)
72607938 ac_cs_silent=: ;;
72827960 if \$ac_cs_recheck; then
72837961 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
72847962 shift
7285 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7963 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
72867964 CONFIG_SHELL='$SHELL'
72877965 export CONFIG_SHELL
72887966 exec "\$@"
72967974 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
72977975 ## Running $as_me. ##
72987976 _ASBOX
7299 $as_echo "$ac_log"
7977 printf "%s\n" "$ac_log"
73007978 } >&5
73017979
73027980 _ACEOF
73047982 #
73057983 # INIT-COMMANDS
73067984 #
7307 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7985 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
73087986
73097987 _ACEOF
73107988
73338011 # We use the long form for the default assignment because of an extremely
73348012 # bizarre bug on SunOS 4.1.3.
73358013 if $ac_need_defaults; then
7336 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7337 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7338 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8014 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8015 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
8016 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
73398017 fi
73408018
73418019 # Have a temporary directory for convenience. Make it in the build tree
76718349 esac ||
76728350 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
76738351 esac
7674 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8352 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
76758353 as_fn_append ac_file_inputs " '$ac_f'"
76768354 done
76778355
76798357 # use $as_me), people would be surprised to read:
76808358 # /* config.h. Generated by config.status. */
76818359 configure_input='Generated from '`
7682 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8360 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
76838361 `' by configure.'
76848362 if test x"$ac_file" != x-; then
76858363 configure_input="$ac_file. $configure_input"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7687 $as_echo "$as_me: creating $ac_file" >&6;}
8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8365 printf "%s\n" "$as_me: creating $ac_file" >&6;}
76888366 fi
76898367 # Neutralize special characters interpreted by sed in replacement strings.
76908368 case $configure_input in #(
76918369 *\&* | *\|* | *\\* )
7692 ac_sed_conf_input=`$as_echo "$configure_input" |
8370 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
76938371 sed 's/[\\\\&|]/\\\\&/g'`;; #(
76948372 *) ac_sed_conf_input=$configure_input;;
76958373 esac
77068384 X"$ac_file" : 'X\(//\)[^/]' \| \
77078385 X"$ac_file" : 'X\(//\)$' \| \
77088386 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7709 $as_echo X"$ac_file" |
8387 printf "%s\n" X"$ac_file" |
77108388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
77118389 s//\1/
77128390 q
77308408 case "$ac_dir" in
77318409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
77328410 *)
7733 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8411 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
77348412 # A ".." for each directory in $ac_dir_suffix.
7735 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8413 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
77368414 case $ac_top_builddir_sub in
77378415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
77388416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
77948472 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
77958473 *datarootdir*) ac_datarootdir_seen=yes;;
77968474 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7798 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8476 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
77998477 _ACEOF
78008478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78018479 ac_datarootdir_hack='
78398517 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
78408518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
78418519 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
78438521 which seems to be undefined. Please make sure it is defined" >&5
7844 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8522 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
78458523 which seems to be undefined. Please make sure it is defined" >&2;}
78468524
78478525 rm -f "$ac_tmp/stdin"
78578535 #
78588536 if test x"$ac_file" != x-; then
78598537 {
7860 $as_echo "/* $configure_input */" \
8538 printf "%s\n" "/* $configure_input */" >&1 \
78618539 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
78628540 } >"$ac_tmp/config.h" \
78638541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
78648542 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7866 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8544 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
78678545 else
78688546 rm -f "$ac_file"
78698547 mv "$ac_tmp/config.h" "$ac_file" \
78708548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
78718549 fi
78728550 else
7873 $as_echo "/* $configure_input */" \
8551 printf "%s\n" "/* $configure_input */" >&1 \
78748552 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
78758553 || as_fn_error $? "could not create -" "$LINENO" 5
78768554 fi
78908568 X"$_am_arg" : 'X\(//\)[^/]' \| \
78918569 X"$_am_arg" : 'X\(//\)$' \| \
78928570 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7893 $as_echo X"$_am_arg" |
8571 printf "%s\n" X"$_am_arg" |
78948572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
78958573 s//\1/
78968574 q
79108588 s/.*/./; q'`/stamp-h$_am_stamp_count
79118589 ;;
79128590
7913 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7914 $as_echo "$as_me: executing $ac_file commands" >&6;}
8591 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8592 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
79158593 ;;
79168594 esac
79178595
79218599 # Older Autoconf quotes --file arguments for eval, but not when files
79228600 # are listed without --file. Let's play safe and only enable the eval
79238601 # if we detect the quoting.
7924 case $CONFIG_FILES in
7925 *\'*) eval set x "$CONFIG_FILES" ;;
7926 *) set x $CONFIG_FILES ;;
7927 esac
8602 # TODO: see whether this extra hack can be removed once we start
8603 # requiring Autoconf 2.70 or later.
8604 case $CONFIG_FILES in #(
8605 *\'*) :
8606 eval set x "$CONFIG_FILES" ;; #(
8607 *) :
8608 set x $CONFIG_FILES ;; #(
8609 *) :
8610 ;;
8611 esac
79288612 shift
7929 for mf
8613 # Used to flag and report bootstrapping failures.
8614 am_rc=0
8615 for am_mf
79308616 do
79318617 # Strip MF so we end up with the name of the file.
7932 mf=`echo "$mf" | sed -e 's/:.*$//'`
7933 # Check whether this is an Automake generated Makefile or not.
7934 # We used to match only the files named 'Makefile.in', but
7935 # some people rename them; so instead we look at the file content.
7936 # Grep'ing the first line is not enough: some people post-process
7937 # each Makefile.in and add a new line on top of each file to say so.
7938 # Grep'ing the whole file is not good either: AIX grep has a line
8618 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
8619 # Check whether this is an Automake generated Makefile which includes
8620 # dependency-tracking related rules and includes.
8621 # Grep'ing the whole file directly is not great: AIX grep has a line
79398622 # limit of 2048, but all sed's we know have understand at least 4000.
7940 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7941 dirpart=`$as_dirname -- "$mf" ||
7942 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7943 X"$mf" : 'X\(//\)[^/]' \| \
7944 X"$mf" : 'X\(//\)$' \| \
7945 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7946 $as_echo X"$mf" |
8623 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8624 || continue
8625 am_dirpart=`$as_dirname -- "$am_mf" ||
8626 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8627 X"$am_mf" : 'X\(//\)[^/]' \| \
8628 X"$am_mf" : 'X\(//\)$' \| \
8629 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8630 printf "%s\n" X"$am_mf" |
79478631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
79488632 s//\1/
79498633 q
79618645 q
79628646 }
79638647 s/.*/./; q'`
7964 else
7965 continue
7966 fi
7967 # Extract the definition of DEPDIR, am__include, and am__quote
7968 # from the Makefile without running 'make'.
7969 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7970 test -z "$DEPDIR" && continue
7971 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7972 test -z "$am__include" && continue
7973 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7974 # Find all dependency output files, they are included files with
7975 # $(DEPDIR) in their names. We invoke sed twice because it is the
7976 # simplest approach to changing $(DEPDIR) to its actual value in the
7977 # expansion.
7978 for file in `sed -n "
7979 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7980 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7981 # Make sure the directory exists.
7982 test -f "$dirpart/$file" && continue
7983 fdir=`$as_dirname -- "$file" ||
7984 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7985 X"$file" : 'X\(//\)[^/]' \| \
7986 X"$file" : 'X\(//\)$' \| \
7987 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7988 $as_echo X"$file" |
7989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8648 am_filepart=`$as_basename -- "$am_mf" ||
8649 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
8650 X"$am_mf" : 'X\(//\)$' \| \
8651 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8652 printf "%s\n" X/"$am_mf" |
8653 sed '/^.*\/\([^/][^/]*\)\/*$/{
79908654 s//\1/
79918655 q
79928656 }
7993 /^X\(\/\/\)[^/].*/{
8657 /^X\/\(\/\/\)$/{
79948658 s//\1/
79958659 q
79968660 }
7997 /^X\(\/\/\)$/{
7998 s//\1/
7999 q
8000 }
8001 /^X\(\/\).*/{
8661 /^X\/\(\/\).*/{
80028662 s//\1/
80038663 q
80048664 }
80058665 s/.*/./; q'`
8006 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8007 # echo "creating $dirpart/$file"
8008 echo '# dummy' > "$dirpart/$file"
8009 done
8666 { echo "$as_me:$LINENO: cd "$am_dirpart" \
8667 && sed -e '/# am--include-marker/d' "$am_filepart" \
8668 | $MAKE -f - am--depfiles" >&5
8669 (cd "$am_dirpart" \
8670 && sed -e '/# am--include-marker/d' "$am_filepart" \
8671 | $MAKE -f - am--depfiles) >&5 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } || am_rc=$?
80108675 done
8676 if test $am_rc -ne 0; then
8677 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8678 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8679 as_fn_error $? "Something went wrong bootstrapping makefile fragments
8680 for automatic dependency tracking. If GNU make was not used, consider
8681 re-running the configure script with MAKE=\"gmake\" (or whatever is
8682 necessary). You can also try re-running configure with the
8683 '--disable-dependency-tracking' option to at least be able to build
8684 the package (albeit without support for automatic dependency tracking).
8685 See \`config.log' for more details" "$LINENO" 5; }
8686 fi
8687 { am_dirpart=; unset am_dirpart;}
8688 { am_filepart=; unset am_filepart;}
8689 { am_mf=; unset am_mf;}
8690 { am_rc=; unset am_rc;}
8691 rm -f conftest-deps.mk
80118692 }
80128693 ;;
80138694
80448725 $ac_cs_success || as_fn_exit 1
80458726 fi
80468727 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8048 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8729 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
80498730 fi
80508731
80518732
80658746 Use the options --disable-engine, --enable-devkit and/or --enable-doc to (de)select components.
80668747 "
80678748 fi
8749
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
1515 # GNU General Public License for more details.
1616
1717 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
2020 # As a special exception to the GNU General Public License, if you
2121 # distribute this file as part of a program that contains a
782782 # Local Variables:
783783 # mode: shell-script
784784 # sh-indentation: 2
785 # eval: (add-hook 'write-file-hooks 'time-stamp)
785 # eval: (add-hook 'before-save-hook 'time-stamp)
786786 # time-stamp-start: "scriptversion="
787787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC"
788 # time-stamp-time-zone: "UTC0"
789789 # time-stamp-end: "; # UTC"
790790 # End:
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
8585 NORMAL_UNINSTALL = :
8686 PRE_UNINSTALL = :
8787 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
8890 subdir = doc
8991 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
9092 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
157159 CC = @CC@
158160 CCDEPMODE = @CCDEPMODE@
159161 CFLAGS = @CFLAGS@
160 CPP = @CPP@
161162 CPPFLAGS = @CPPFLAGS@
163 CSCOPE = @CSCOPE@
164 CTAGS = @CTAGS@
162165 CXX = @CXX@
163166 CXXDEPMODE = @CXXDEPMODE@
164167 CXXFLAGS = @CXXFLAGS@
168171 ECHO_C = @ECHO_C@
169172 ECHO_N = @ECHO_N@
170173 ECHO_T = @ECHO_T@
171 EGREP = @EGREP@
172174 ENGINE_CFLAGS = @ENGINE_CFLAGS@
173175 ENGINE_LIBS = @ENGINE_LIBS@
176 ETAGS = @ETAGS@
174177 EXEEXT = @EXEEXT@
175178 GLEW_CFLAGS = @GLEW_CFLAGS@
176179 GLEW_LIBS = @GLEW_LIBS@
178181 GLIB_LIBS = @GLIB_LIBS@
179182 GL_CFLAGS = @GL_CFLAGS@
180183 GL_LIBS = @GL_LIBS@
181 GREP = @GREP@
182184 GTK_CFLAGS = @GTK_CFLAGS@
183185 GTK_LIBS = @GTK_LIBS@
184186 INSTALL = @INSTALL@
222224 am__tar = @am__tar@
223225 am__untar = @am__untar@
224226 bindir = @bindir@
227 build = @build@
225228 build_alias = @build_alias@
229 build_cpu = @build_cpu@
230 build_os = @build_os@
231 build_vendor = @build_vendor@
226232 builddir = @builddir@
227233 datadir = @datadir@
228234 datarootdir = @datarootdir@
229235 docdir = @docdir@
230236 dvidir = @dvidir@
231237 exec_prefix = @exec_prefix@
238 host = @host@
232239 host_alias = @host_alias@
240 host_cpu = @host_cpu@
241 host_os = @host_os@
242 host_vendor = @host_vendor@
233243 htmldir = @htmldir@
234244 includedir = @includedir@
235245 infodir = @infodir@
540550 *config.status*) \
541551 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
542552 *) \
543 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
544 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
553 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
554 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
545555 esac;
546556
547557 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
582592
583593 cscope cscopelist:
584594
585
586 distdir: $(DISTFILES)
595 distdir: $(BUILT_SOURCES)
596 $(MAKE) $(AM_MAKEFLAGS) distdir-am
597
598 distdir-am: $(DISTFILES)
587599 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
588600 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
589601 list='$(DISTFILES)'; \
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2014-09-12.12; # UTC
3 scriptversion=2020-11-14.01; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
6868 # Desired mode of installed file.
6969 mode=0755
7070
71 # Create dirs (including intermediate dirs) using mode 755.
72 # This is like GNU 'install' as of coreutils 8.32 (2020).
73 mkdir_umask=22
74
75 backupsuffix=
7176 chgrpcmd=
7277 chmodcmd=$chmodprog
7378 chowncmd=
98103 --version display version info and exit.
99104
100105 -c (ignored)
101 -C install only if different (preserve the last data modification time)
106 -C install only if different (preserve data modification time)
102107 -d create directories instead of installing files.
103108 -g GROUP $chgrpprog installed files to GROUP.
104109 -m MODE $chmodprog installed files to MODE.
105110 -o USER $chownprog installed files to USER.
111 -p pass -p to $cpprog.
106112 -s $stripprog installed files.
113 -S SUFFIX attempt to back up existing files, with suffix SUFFIX.
107114 -t DIRECTORY install into DIRECTORY.
108115 -T report an error if DSTFILE is a directory.
109116
110117 Environment variables override the default commands:
111118 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
112119 RMPROG STRIPPROG
120
121 By default, rm is invoked with -f; when overridden with RMPROG,
122 it's up to you to specify -f if you want it.
123
124 If -S is not specified, no backups are attempted.
125
126 Email bug reports to bug-automake@gnu.org.
127 Automake home page: https://www.gnu.org/software/automake/
113128 "
114129
115130 while test $# -ne 0; do
136151 -o) chowncmd="$chownprog $2"
137152 shift;;
138153
154 -p) cpprog="$cpprog -p";;
155
139156 -s) stripcmd=$stripprog;;
157
158 -S) backupsuffix="$2"
159 shift;;
140160
141161 -t)
142162 is_target_a_directory=always
254274 dstdir=$dst
255275 test -d "$dstdir"
256276 dstdir_status=$?
277 # Don't chown directories that already exist.
278 if test $dstdir_status = 0; then
279 chowncmd=""
280 fi
257281 else
258282
259283 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
270294 fi
271295 dst=$dst_arg
272296
273 # If destination is a directory, append the input filename; won't work
274 # if double slashes aren't ignored.
297 # If destination is a directory, append the input filename.
275298 if test -d "$dst"; then
276299 if test "$is_target_a_directory" = never; then
277300 echo "$0: $dst_arg: Is a directory" >&2
278301 exit 1
279302 fi
280303 dstdir=$dst
281 dst=$dstdir/`basename "$src"`
304 dstbase=`basename "$src"`
305 case $dst in
306 */) dst=$dst$dstbase;;
307 *) dst=$dst/$dstbase;;
308 esac
282309 dstdir_status=0
283310 else
284311 dstdir=`dirname "$dst"`
287314 fi
288315 fi
289316
317 case $dstdir in
318 */) dstdirslash=$dstdir;;
319 *) dstdirslash=$dstdir/;;
320 esac
321
290322 obsolete_mkdir_used=false
291323
292324 if test $dstdir_status != 0; then
293325 case $posix_mkdir in
294326 '')
295 # Create intermediate dirs using mode 755 as modified by the umask.
296 # This is like FreeBSD 'install' as of 1997-10-28.
297 umask=`umask`
298 case $stripcmd.$umask in
299 # Optimize common cases.
300 *[2367][2367]) mkdir_umask=$umask;;
301 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
302
303 *[0-7])
304 mkdir_umask=`expr $umask + 22 \
305 - $umask % 100 % 40 + $umask % 20 \
306 - $umask % 10 % 4 + $umask % 2
307 `;;
308 *) mkdir_umask=$umask,go-w;;
309 esac
310
311327 # With -d, create the new directory with the user-specified mode.
312328 # Otherwise, rely on $mkdir_umask.
313329 if test -n "$dir_arg"; then
317333 fi
318334
319335 posix_mkdir=false
320 case $umask in
321 *[123567][0-7][0-7])
322 # POSIX mkdir -p sets u+wx bits regardless of umask, which
323 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324 ;;
325 *)
326 # $RANDOM is not portable (e.g. dash); use it when possible to
327 # lower collision chance
328 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
329 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
330
331 # As "mkdir -p" follows symlinks and we work in /tmp possibly; so
332 # create the $tmpdir first (and fail if unsuccessful) to make sure
333 # that nobody tries to guess the $tmpdir name.
334 if (umask $mkdir_umask &&
335 $mkdirprog $mkdir_mode "$tmpdir" &&
336 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
337 then
338 if test -z "$dir_arg" || {
339 # Check for POSIX incompatibilities with -m.
340 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
341 # other-writable bit of parent directory when it shouldn't.
342 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
343 test_tmpdir="$tmpdir/a"
344 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
345 case $ls_ld_tmpdir in
346 d????-?r-*) different_mode=700;;
347 d????-?--*) different_mode=755;;
348 *) false;;
349 esac &&
350 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
351 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
352 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
353 }
354 }
355 then posix_mkdir=:
356 fi
357 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
358 else
359 # Remove any dirs left behind by ancient mkdir implementations.
360 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
361 fi
362 trap '' 0;;
363 esac;;
336 # The $RANDOM variable is not portable (e.g., dash). Use it
337 # here however when possible just to lower collision chance.
338 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
339
340 trap '
341 ret=$?
342 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
343 exit $ret
344 ' 0
345
346 # Because "mkdir -p" follows existing symlinks and we likely work
347 # directly in world-writeable /tmp, make sure that the '$tmpdir'
348 # directory is successfully created first before we actually test
349 # 'mkdir -p'.
350 if (umask $mkdir_umask &&
351 $mkdirprog $mkdir_mode "$tmpdir" &&
352 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
353 then
354 if test -z "$dir_arg" || {
355 # Check for POSIX incompatibilities with -m.
356 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
357 # other-writable bit of parent directory when it shouldn't.
358 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
359 test_tmpdir="$tmpdir/a"
360 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
361 case $ls_ld_tmpdir in
362 d????-?r-*) different_mode=700;;
363 d????-?--*) different_mode=755;;
364 *) false;;
365 esac &&
366 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
367 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
368 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
369 }
370 }
371 then posix_mkdir=:
372 fi
373 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
374 else
375 # Remove any dirs left behind by ancient mkdir implementations.
376 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
377 fi
378 trap '' 0;;
364379 esac
365380
366381 if
371386 then :
372387 else
373388
374 # The umask is ridiculous, or mkdir does not conform to POSIX,
389 # mkdir does not conform to POSIX,
375390 # or it failed possibly due to a race condition. Create the
376391 # directory the slow way, step by step, checking for races as we go.
377392
400415 prefixes=
401416 else
402417 if $posix_mkdir; then
403 (umask=$mkdir_umask &&
418 (umask $mkdir_umask &&
404419 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
405420 # Don't fail if two instances are running concurrently.
406421 test -d "$prefix" || exit 1
433448 else
434449
435450 # Make a couple of temp file names in the proper directory.
436 dsttmp=$dstdir/_inst.$$_
437 rmtmp=$dstdir/_rm.$$_
451 dsttmp=${dstdirslash}_inst.$$_
452 rmtmp=${dstdirslash}_rm.$$_
438453
439454 # Trap to clean up those temp files at exit.
440455 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
441456
442457 # Copy the file name to the temp name.
443 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
458 (umask $cp_umask &&
459 { test -z "$stripcmd" || {
460 # Create $dsttmp read-write so that cp doesn't create it read-only,
461 # which would cause strip to fail.
462 if test -z "$doit"; then
463 : >"$dsttmp" # No need to fork-exec 'touch'.
464 else
465 $doit touch "$dsttmp"
466 fi
467 }
468 } &&
469 $doit_exec $cpprog "$src" "$dsttmp") &&
444470
445471 # and set any options; do chmod last to preserve setuid bits.
446472 #
466492 then
467493 rm -f "$dsttmp"
468494 else
495 # If $backupsuffix is set, and the file being installed
496 # already exists, attempt a backup. Don't worry if it fails,
497 # e.g., if mv doesn't support -f.
498 if test -n "$backupsuffix" && test -f "$dst"; then
499 $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
500 fi
501
469502 # Rename the file to the real destination.
470503 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
471504
480513 # file should still install successfully.
481514 {
482515 test ! -f "$dst" ||
483 $doit $rmcmd -f "$dst" 2>/dev/null ||
516 $doit $rmcmd "$dst" 2>/dev/null ||
484517 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
485 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
518 { $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
486519 } ||
487520 { echo "$0: cannot unlink or rename $dst" >&2
488521 (exit 1); exit 1
499532 done
500533
501534 # Local variables:
502 # eval: (add-hook 'write-file-hooks 'time-stamp)
535 # eval: (add-hook 'before-save-hook 'time-stamp)
503536 # time-stamp-start: "scriptversion="
504537 # time-stamp-format: "%:y-%02m-%02d.%02H"
505 # time-stamp-time-zone: "UTC"
538 # time-stamp-time-zone: "UTC0"
506539 # time-stamp-end: "; # UTC"
507540 # End:
00 #! /bin/sh
11 # Common wrapper for a few potentially missing GNU programs.
22
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
1616 # GNU General Public License for more details.
1717
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
100100 exit $st
101101 fi
102102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
103 perl_URL=https://www.perl.org/
104 flex_URL=https://github.com/westes/flex
105 gnu_software_URL=https://www.gnu.org/software
106106
107107 program_details ()
108108 {
206206 exit $st
207207
208208 # Local variables:
209 # eval: (add-hook 'write-file-hooks 'time-stamp)
209 # eval: (add-hook 'before-save-hook 'time-stamp)
210210 # time-stamp-start: "scriptversion="
211211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC"
212 # time-stamp-time-zone: "UTC0"
213213 # time-stamp-end: "; # UTC"
214214 # End:
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
8686 NORMAL_UNINSTALL = :
8787 PRE_UNINSTALL = :
8888 POST_UNINSTALL = :
89 build_triplet = @build@
90 host_triplet = @host@
8991 bin_PROGRAMS = sludge-engine$(EXEEXT)
9092 @COND_GLES2_TRUE@am__append_1 = eglport/eglport.cpp eglport/eglport.h
9193 @COND_GLES2_TRUE@am__append_2 = -DHAVE_GLES2 -DUSE_EGL_SDL -DUSE_GLES2
166168 am__v_at_1 =
167169 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
168170 depcomp = $(SHELL) $(top_srcdir)/depcomp
169 am__depfiles_maybe = depfiles
171 am__maybe_remake_depfiles = depfiles
172 am__depfiles_remade = ../CommonCode/$(DEPDIR)/utf8.Po \
173 ./$(DEPDIR)/backdrop.Po ./$(DEPDIR)/bg_effects.Po \
174 ./$(DEPDIR)/builtin.Po ./$(DEPDIR)/cursors.Po \
175 ./$(DEPDIR)/debug.Po ./$(DEPDIR)/fileset.Po \
176 ./$(DEPDIR)/floor.Po ./$(DEPDIR)/fonttext.Po \
177 ./$(DEPDIR)/freeze.Po ./$(DEPDIR)/graphics.Po \
178 ./$(DEPDIR)/helpers.Po ./$(DEPDIR)/language.Po \
179 ./$(DEPDIR)/line.Po ./$(DEPDIR)/linuxstuff.Po \
180 ./$(DEPDIR)/loadsave.Po ./$(DEPDIR)/main.Po \
181 ./$(DEPDIR)/memwatch.Po ./$(DEPDIR)/moreio.Po \
182 ./$(DEPDIR)/movie.Po ./$(DEPDIR)/newfatal.Po \
183 ./$(DEPDIR)/objtypes.Po ./$(DEPDIR)/people.Po \
184 ./$(DEPDIR)/region.Po ./$(DEPDIR)/savedata.Po \
185 ./$(DEPDIR)/shaders.Po ./$(DEPDIR)/sludger.Po \
186 ./$(DEPDIR)/sound_openal.Po ./$(DEPDIR)/sprbanks.Po \
187 ./$(DEPDIR)/sprites.Po ./$(DEPDIR)/statusba.Po \
188 ./$(DEPDIR)/stringy.Po ./$(DEPDIR)/talk.Po \
189 ./$(DEPDIR)/thumbnail.Po ./$(DEPDIR)/timing.Po \
190 ./$(DEPDIR)/transition.Po ./$(DEPDIR)/variable.Po \
191 ./$(DEPDIR)/zbuffer.Po eglport/$(DEPDIR)/eglport.Po \
192 libwebm/$(DEPDIR)/mkvparser.Po libwebm/$(DEPDIR)/mkvreader.Po
170193 am__mv = mv -f
171194 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
172195 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
245268 unique=`for i in $$list; do \
246269 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
247270 done | $(am__uniquify_input)`
248 ETAGS = etags
249 CTAGS = ctags
250271 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
251272 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
252273 ACLOCAL = @ACLOCAL@
259280 CC = @CC@
260281 CCDEPMODE = @CCDEPMODE@
261282 CFLAGS = @CFLAGS@
262 CPP = @CPP@
263283 CPPFLAGS = @CPPFLAGS@
284 CSCOPE = @CSCOPE@
285 CTAGS = @CTAGS@
264286 CXX = @CXX@
265287 CXXDEPMODE = @CXXDEPMODE@
266288 CXXFLAGS = @CXXFLAGS@
270292 ECHO_C = @ECHO_C@
271293 ECHO_N = @ECHO_N@
272294 ECHO_T = @ECHO_T@
273 EGREP = @EGREP@
274295 ENGINE_CFLAGS = @ENGINE_CFLAGS@
275296 ENGINE_LIBS = @ENGINE_LIBS@
297 ETAGS = @ETAGS@
276298 EXEEXT = @EXEEXT@
277299 GLEW_CFLAGS = @GLEW_CFLAGS@
278300 GLEW_LIBS = @GLEW_LIBS@
280302 GLIB_LIBS = @GLIB_LIBS@
281303 GL_CFLAGS = @GL_CFLAGS@
282304 GL_LIBS = @GL_LIBS@
283 GREP = @GREP@
284305 GTK_CFLAGS = @GTK_CFLAGS@
285306 GTK_LIBS = @GTK_LIBS@
286307 INSTALL = @INSTALL@
324345 am__tar = @am__tar@
325346 am__untar = @am__untar@
326347 bindir = @bindir@
348 build = @build@
327349 build_alias = @build_alias@
350 build_cpu = @build_cpu@
351 build_os = @build_os@
352 build_vendor = @build_vendor@
328353 builddir = @builddir@
329354 datadir = @datadir@
330355 datarootdir = @datarootdir@
331356 docdir = @docdir@
332357 dvidir = @dvidir@
333358 exec_prefix = @exec_prefix@
359 host = @host@
334360 host_alias = @host_alias@
361 host_cpu = @host_cpu@
362 host_os = @host_os@
363 host_vendor = @host_vendor@
335364 htmldir = @htmldir@
336365 includedir = @includedir@
337366 infodir = @infodir@
417446 *config.status*) \
418447 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
419448 *) \
420 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
421 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
449 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
450 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
422451 esac;
423452
424453 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
511540 distclean-compile:
512541 -rm -f *.tab.c
513542
514 @AMDEP_TRUE@@am__include@ @am__quote@../CommonCode/$(DEPDIR)/utf8.Po@am__quote@
515 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/backdrop.Po@am__quote@
516 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bg_effects.Po@am__quote@
517 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/builtin.Po@am__quote@
518 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cursors.Po@am__quote@
519 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debug.Po@am__quote@
520 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fileset.Po@am__quote@
521 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/floor.Po@am__quote@
522 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fonttext.Po@am__quote@
523 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/freeze.Po@am__quote@
524 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/graphics.Po@am__quote@
525 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/helpers.Po@am__quote@
526 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/language.Po@am__quote@
527 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/line.Po@am__quote@
528 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linuxstuff.Po@am__quote@
529 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loadsave.Po@am__quote@
530 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
531 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memwatch.Po@am__quote@
532 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/moreio.Po@am__quote@
533 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/movie.Po@am__quote@
534 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/newfatal.Po@am__quote@
535 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/objtypes.Po@am__quote@
536 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/people.Po@am__quote@
537 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/region.Po@am__quote@
538 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/savedata.Po@am__quote@
539 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shaders.Po@am__quote@
540 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sludger.Po@am__quote@
541 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_openal.Po@am__quote@
542 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sprbanks.Po@am__quote@
543 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sprites.Po@am__quote@
544 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/statusba.Po@am__quote@
545 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stringy.Po@am__quote@
546 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/talk.Po@am__quote@
547 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/thumbnail.Po@am__quote@
548 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timing.Po@am__quote@
549 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/transition.Po@am__quote@
550 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/variable.Po@am__quote@
551 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zbuffer.Po@am__quote@
552 @AMDEP_TRUE@@am__include@ @am__quote@eglport/$(DEPDIR)/eglport.Po@am__quote@
553 @AMDEP_TRUE@@am__include@ @am__quote@libwebm/$(DEPDIR)/mkvparser.Po@am__quote@
554 @AMDEP_TRUE@@am__include@ @am__quote@libwebm/$(DEPDIR)/mkvreader.Po@am__quote@
543 @AMDEP_TRUE@@am__include@ @am__quote@../CommonCode/$(DEPDIR)/utf8.Po@am__quote@ # am--include-marker
544 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/backdrop.Po@am__quote@ # am--include-marker
545 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bg_effects.Po@am__quote@ # am--include-marker
546 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/builtin.Po@am__quote@ # am--include-marker
547 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cursors.Po@am__quote@ # am--include-marker
548 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debug.Po@am__quote@ # am--include-marker
549 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fileset.Po@am__quote@ # am--include-marker
550 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/floor.Po@am__quote@ # am--include-marker
551 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fonttext.Po@am__quote@ # am--include-marker
552 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/freeze.Po@am__quote@ # am--include-marker
553 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/graphics.Po@am__quote@ # am--include-marker
554 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/helpers.Po@am__quote@ # am--include-marker
555 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/language.Po@am__quote@ # am--include-marker
556 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/line.Po@am__quote@ # am--include-marker
557 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linuxstuff.Po@am__quote@ # am--include-marker
558 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loadsave.Po@am__quote@ # am--include-marker
559 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ # am--include-marker
560 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memwatch.Po@am__quote@ # am--include-marker
561 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/moreio.Po@am__quote@ # am--include-marker
562 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/movie.Po@am__quote@ # am--include-marker
563 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/newfatal.Po@am__quote@ # am--include-marker
564 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/objtypes.Po@am__quote@ # am--include-marker
565 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/people.Po@am__quote@ # am--include-marker
566 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/region.Po@am__quote@ # am--include-marker
567 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/savedata.Po@am__quote@ # am--include-marker
568 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shaders.Po@am__quote@ # am--include-marker
569 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sludger.Po@am__quote@ # am--include-marker
570 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_openal.Po@am__quote@ # am--include-marker
571 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sprbanks.Po@am__quote@ # am--include-marker
572 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sprites.Po@am__quote@ # am--include-marker
573 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/statusba.Po@am__quote@ # am--include-marker
574 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stringy.Po@am__quote@ # am--include-marker
575 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/talk.Po@am__quote@ # am--include-marker
576 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/thumbnail.Po@am__quote@ # am--include-marker
577 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timing.Po@am__quote@ # am--include-marker
578 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/transition.Po@am__quote@ # am--include-marker
579 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/variable.Po@am__quote@ # am--include-marker
580 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zbuffer.Po@am__quote@ # am--include-marker
581 @AMDEP_TRUE@@am__include@ @am__quote@eglport/$(DEPDIR)/eglport.Po@am__quote@ # am--include-marker
582 @AMDEP_TRUE@@am__include@ @am__quote@libwebm/$(DEPDIR)/mkvparser.Po@am__quote@ # am--include-marker
583 @AMDEP_TRUE@@am__include@ @am__quote@libwebm/$(DEPDIR)/mkvreader.Po@am__quote@ # am--include-marker
584
585 $(am__depfiles_remade):
586 @$(MKDIR_P) $(@D)
587 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
588
589 am--depfiles: $(am__depfiles_remade)
555590
556591 .cpp.o:
557592 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
641676
642677 distclean-tags:
643678 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
644
645 distdir: $(DISTFILES)
679 distdir: $(BUILT_SOURCES)
680 $(MAKE) $(AM_MAKEFLAGS) distdir-am
681
682 distdir-am: $(DISTFILES)
646683 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
647684 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
648685 list='$(DISTFILES)'; \
720757 clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
721758
722759 distclean: distclean-am
723 -rm -rf ../CommonCode/$(DEPDIR) ./$(DEPDIR) eglport/$(DEPDIR) libwebm/$(DEPDIR)
760 -rm -f ../CommonCode/$(DEPDIR)/utf8.Po
761 -rm -f ./$(DEPDIR)/backdrop.Po
762 -rm -f ./$(DEPDIR)/bg_effects.Po
763 -rm -f ./$(DEPDIR)/builtin.Po
764 -rm -f ./$(DEPDIR)/cursors.Po
765 -rm -f ./$(DEPDIR)/debug.Po
766 -rm -f ./$(DEPDIR)/fileset.Po
767 -rm -f ./$(DEPDIR)/floor.Po
768 -rm -f ./$(DEPDIR)/fonttext.Po
769 -rm -f ./$(DEPDIR)/freeze.Po
770 -rm -f ./$(DEPDIR)/graphics.Po
771 -rm -f ./$(DEPDIR)/helpers.Po
772 -rm -f ./$(DEPDIR)/language.Po
773 -rm -f ./$(DEPDIR)/line.Po
774 -rm -f ./$(DEPDIR)/linuxstuff.Po
775 -rm -f ./$(DEPDIR)/loadsave.Po
776 -rm -f ./$(DEPDIR)/main.Po
777 -rm -f ./$(DEPDIR)/memwatch.Po
778 -rm -f ./$(DEPDIR)/moreio.Po
779 -rm -f ./$(DEPDIR)/movie.Po
780 -rm -f ./$(DEPDIR)/newfatal.Po
781 -rm -f ./$(DEPDIR)/objtypes.Po
782 -rm -f ./$(DEPDIR)/people.Po
783 -rm -f ./$(DEPDIR)/region.Po
784 -rm -f ./$(DEPDIR)/savedata.Po
785 -rm -f ./$(DEPDIR)/shaders.Po
786 -rm -f ./$(DEPDIR)/sludger.Po
787 -rm -f ./$(DEPDIR)/sound_openal.Po
788 -rm -f ./$(DEPDIR)/sprbanks.Po
789 -rm -f ./$(DEPDIR)/sprites.Po
790 -rm -f ./$(DEPDIR)/statusba.Po
791 -rm -f ./$(DEPDIR)/stringy.Po
792 -rm -f ./$(DEPDIR)/talk.Po
793 -rm -f ./$(DEPDIR)/thumbnail.Po
794 -rm -f ./$(DEPDIR)/timing.Po
795 -rm -f ./$(DEPDIR)/transition.Po
796 -rm -f ./$(DEPDIR)/variable.Po
797 -rm -f ./$(DEPDIR)/zbuffer.Po
798 -rm -f eglport/$(DEPDIR)/eglport.Po
799 -rm -f libwebm/$(DEPDIR)/mkvparser.Po
800 -rm -f libwebm/$(DEPDIR)/mkvreader.Po
724801 -rm -f Makefile
725802 distclean-am: clean-am distclean-compile distclean-generic \
726803 distclean-tags
766843 installcheck-am:
767844
768845 maintainer-clean: maintainer-clean-am
769 -rm -rf ../CommonCode/$(DEPDIR) ./$(DEPDIR) eglport/$(DEPDIR) libwebm/$(DEPDIR)
846 -rm -f ../CommonCode/$(DEPDIR)/utf8.Po
847 -rm -f ./$(DEPDIR)/backdrop.Po
848 -rm -f ./$(DEPDIR)/bg_effects.Po
849 -rm -f ./$(DEPDIR)/builtin.Po
850 -rm -f ./$(DEPDIR)/cursors.Po
851 -rm -f ./$(DEPDIR)/debug.Po
852 -rm -f ./$(DEPDIR)/fileset.Po
853 -rm -f ./$(DEPDIR)/floor.Po
854 -rm -f ./$(DEPDIR)/fonttext.Po
855 -rm -f ./$(DEPDIR)/freeze.Po
856 -rm -f ./$(DEPDIR)/graphics.Po
857 -rm -f ./$(DEPDIR)/helpers.Po
858 -rm -f ./$(DEPDIR)/language.Po
859 -rm -f ./$(DEPDIR)/line.Po
860 -rm -f ./$(DEPDIR)/linuxstuff.Po
861 -rm -f ./$(DEPDIR)/loadsave.Po
862 -rm -f ./$(DEPDIR)/main.Po
863 -rm -f ./$(DEPDIR)/memwatch.Po
864 -rm -f ./$(DEPDIR)/moreio.Po
865 -rm -f ./$(DEPDIR)/movie.Po
866 -rm -f ./$(DEPDIR)/newfatal.Po
867 -rm -f ./$(DEPDIR)/objtypes.Po
868 -rm -f ./$(DEPDIR)/people.Po
869 -rm -f ./$(DEPDIR)/region.Po
870 -rm -f ./$(DEPDIR)/savedata.Po
871 -rm -f ./$(DEPDIR)/shaders.Po
872 -rm -f ./$(DEPDIR)/sludger.Po
873 -rm -f ./$(DEPDIR)/sound_openal.Po
874 -rm -f ./$(DEPDIR)/sprbanks.Po
875 -rm -f ./$(DEPDIR)/sprites.Po
876 -rm -f ./$(DEPDIR)/statusba.Po
877 -rm -f ./$(DEPDIR)/stringy.Po
878 -rm -f ./$(DEPDIR)/talk.Po
879 -rm -f ./$(DEPDIR)/thumbnail.Po
880 -rm -f ./$(DEPDIR)/timing.Po
881 -rm -f ./$(DEPDIR)/transition.Po
882 -rm -f ./$(DEPDIR)/variable.Po
883 -rm -f ./$(DEPDIR)/zbuffer.Po
884 -rm -f eglport/$(DEPDIR)/eglport.Po
885 -rm -f libwebm/$(DEPDIR)/mkvparser.Po
886 -rm -f libwebm/$(DEPDIR)/mkvreader.Po
770887 -rm -f Makefile
771888 maintainer-clean-am: distclean-am maintainer-clean-generic
772889
786903
787904 .MAKE: install-am install-strip
788905
789 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
906 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
790907 clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \
791908 distclean distclean-compile distclean-generic distclean-tags \
792909 distdir dvi dvi-am html html-am info info-am install \
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
8484 NORMAL_UNINSTALL = :
8585 PRE_UNINSTALL = :
8686 POST_UNINSTALL = :
87 build_triplet = @build@
88 host_triplet = @host@
8789 subdir = source
8890 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8991 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
128130 $(RECURSIVE_CLEAN_TARGETS) \
129131 $(am__extra_recursive_targets)
130132 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
131 distdir
133 distdir distdir-am
132134 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
133135 # Read a list of newline-separated strings from the standard input,
134136 # and print each of them once, without duplicates. Input order is
146148 unique=`for i in $$list; do \
147149 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
148150 done | $(am__uniquify_input)`
149 ETAGS = etags
150 CTAGS = ctags
151151 DIST_SUBDIRS = $(SUBDIRS)
152152 am__DIST_COMMON = $(srcdir)/Makefile.in
153153 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
186186 CC = @CC@
187187 CCDEPMODE = @CCDEPMODE@
188188 CFLAGS = @CFLAGS@
189 CPP = @CPP@
190189 CPPFLAGS = @CPPFLAGS@
190 CSCOPE = @CSCOPE@
191 CTAGS = @CTAGS@
191192 CXX = @CXX@
192193 CXXDEPMODE = @CXXDEPMODE@
193194 CXXFLAGS = @CXXFLAGS@
197198 ECHO_C = @ECHO_C@
198199 ECHO_N = @ECHO_N@
199200 ECHO_T = @ECHO_T@
200 EGREP = @EGREP@
201201 ENGINE_CFLAGS = @ENGINE_CFLAGS@
202202 ENGINE_LIBS = @ENGINE_LIBS@
203 ETAGS = @ETAGS@
203204 EXEEXT = @EXEEXT@
204205 GLEW_CFLAGS = @GLEW_CFLAGS@
205206 GLEW_LIBS = @GLEW_LIBS@
207208 GLIB_LIBS = @GLIB_LIBS@
208209 GL_CFLAGS = @GL_CFLAGS@
209210 GL_LIBS = @GL_LIBS@
210 GREP = @GREP@
211211 GTK_CFLAGS = @GTK_CFLAGS@
212212 GTK_LIBS = @GTK_LIBS@
213213 INSTALL = @INSTALL@
251251 am__tar = @am__tar@
252252 am__untar = @am__untar@
253253 bindir = @bindir@
254 build = @build@
254255 build_alias = @build_alias@
256 build_cpu = @build_cpu@
257 build_os = @build_os@
258 build_vendor = @build_vendor@
255259 builddir = @builddir@
256260 datadir = @datadir@
257261 datarootdir = @datarootdir@
258262 docdir = @docdir@
259263 dvidir = @dvidir@
260264 exec_prefix = @exec_prefix@
265 host = @host@
261266 host_alias = @host_alias@
267 host_cpu = @host_cpu@
268 host_os = @host_os@
269 host_vendor = @host_vendor@
262270 htmldir = @htmldir@
263271 includedir = @includedir@
264272 infodir = @infodir@
304312 *config.status*) \
305313 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
306314 *) \
307 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
308 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
315 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
316 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
309317 esac;
310318
311319 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
415423
416424 distclean-tags:
417425 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
418
419 distdir: $(DISTFILES)
426 distdir: $(BUILT_SOURCES)
427 $(MAKE) $(AM_MAKEFLAGS) distdir-am
428
429 distdir-am: $(DISTFILES)
420430 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
421431 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
422432 list='$(DISTFILES)'; \