Artifact
aa2bfd12c38a821b848d83767faa20331347733590bebfe13b0fab1e0758771a:
0000: 23 20 67 65 6e 65 72 61 74 65 64 20 61 75 74 6f # generated auto
0010: 6d 61 74 69 63 61 6c 6c 79 20 62 79 20 61 63 6c matically by acl
0020: 6f 63 61 6c 20 31 2e 31 36 2e 35 20 2d 2a 2d 20 ocal 1.16.5 -*-
0030: 41 75 74 6f 63 6f 6e 66 20 2d 2a 2d 0a 0a 23 20 Autoconf -*-..#
0040: 43 6f 70 79 72 69 67 68 74 20 28 43 29 20 31 39 Copyright (C) 19
0050: 39 36 2d 32 30 32 31 20 46 72 65 65 20 53 6f 66 96-2021 Free Sof
0060: 74 77 61 72 65 20 46 6f 75 6e 64 61 74 69 6f 6e tware Foundation
0070: 2c 20 49 6e 63 2e 0a 0a 23 20 54 68 69 73 20 66 , Inc...# This f
0080: 69 6c 65 20 69 73 20 66 72 65 65 20 73 6f 66 74 ile is free soft
0090: 77 61 72 65 3b 20 74 68 65 20 46 72 65 65 20 53 ware; the Free S
00a0: 6f 66 74 77 61 72 65 20 46 6f 75 6e 64 61 74 69 oftware Foundati
00b0: 6f 6e 0a 23 20 67 69 76 65 73 20 75 6e 6c 69 6d on.# gives unlim
00c0: 69 74 65 64 20 70 65 72 6d 69 73 73 69 6f 6e 20 ited permission
00d0: 74 6f 20 63 6f 70 79 20 61 6e 64 2f 6f 72 20 64 to copy and/or d
00e0: 69 73 74 72 69 62 75 74 65 20 69 74 2c 0a 23 20 istribute it,.#
00f0: 77 69 74 68 20 6f 72 20 77 69 74 68 6f 75 74 20 with or without
0100: 6d 6f 64 69 66 69 63 61 74 69 6f 6e 73 2c 20 61 modifications, a
0110: 73 20 6c 6f 6e 67 20 61 73 20 74 68 69 73 20 6e s long as this n
0120: 6f 74 69 63 65 20 69 73 20 70 72 65 73 65 72 76 otice is preserv
0130: 65 64 2e 0a 0a 23 20 54 68 69 73 20 70 72 6f 67 ed...# This prog
0140: 72 61 6d 20 69 73 20 64 69 73 74 72 69 62 75 74 ram is distribut
0150: 65 64 20 69 6e 20 74 68 65 20 68 6f 70 65 20 74 ed in the hope t
0160: 68 61 74 20 69 74 20 77 69 6c 6c 20 62 65 20 75 hat it will be u
0170: 73 65 66 75 6c 2c 0a 23 20 62 75 74 20 57 49 54 seful,.# but WIT
0180: 48 4f 55 54 20 41 4e 59 20 57 41 52 52 41 4e 54 HOUT ANY WARRANT
0190: 59 2c 20 74 6f 20 74 68 65 20 65 78 74 65 6e 74 Y, to the extent
01a0: 20 70 65 72 6d 69 74 74 65 64 20 62 79 20 6c 61 permitted by la
01b0: 77 3b 20 77 69 74 68 6f 75 74 0a 23 20 65 76 65 w; without.# eve
01c0: 6e 20 74 68 65 20 69 6d 70 6c 69 65 64 20 77 61 n the implied wa
01d0: 72 72 61 6e 74 79 20 6f 66 20 4d 45 52 43 48 41 rranty of MERCHA
01e0: 4e 54 41 42 49 4c 49 54 59 20 6f 72 20 46 49 54 NTABILITY or FIT
01f0: 4e 45 53 53 20 46 4f 52 20 41 0a 23 20 50 41 52 NESS FOR A.# PAR
0200: 54 49 43 55 4c 41 52 20 50 55 52 50 4f 53 45 2e TICULAR PURPOSE.
0210: 0a 0a 6d 34 5f 69 66 6e 64 65 66 28 5b 41 43 5f ..m4_ifndef([AC_
0220: 43 4f 4e 46 49 47 5f 4d 41 43 52 4f 5f 44 49 52 CONFIG_MACRO_DIR
0230: 53 5d 2c 20 5b 6d 34 5f 64 65 66 75 6e 28 5b 5f S], [m4_defun([_
0240: 41 4d 5f 43 4f 4e 46 49 47 5f 4d 41 43 52 4f 5f AM_CONFIG_MACRO_
0250: 44 49 52 53 5d 2c 20 5b 5d 29 6d 34 5f 64 65 66 DIRS], [])m4_def
0260: 75 6e 28 5b 41 43 5f 43 4f 4e 46 49 47 5f 4d 41 un([AC_CONFIG_MA
0270: 43 52 4f 5f 44 49 52 53 5d 2c 20 5b 5f 41 4d 5f CRO_DIRS], [_AM_
0280: 43 4f 4e 46 49 47 5f 4d 41 43 52 4f 5f 44 49 52 CONFIG_MACRO_DIR
0290: 53 28 24 40 29 5d 29 5d 29 0a 23 20 3d 3d 3d 3d S($@)])]).# ====
02a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
02b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
02c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
02d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
02e0: 3d 3d 3d 3d 3d 3d 3d 0a 23 20 20 68 74 74 70 73 =======.# https
02f0: 3a 2f 2f 77 77 77 2e 67 6e 75 2e 6f 72 67 2f 73 ://www.gnu.org/s
0300: 6f 66 74 77 61 72 65 2f 61 75 74 6f 63 6f 6e 66 oftware/autoconf
0310: 2d 61 72 63 68 69 76 65 2f 61 78 5f 63 68 65 63 -archive/ax_chec
0320: 6b 5f 63 6f 6d 70 69 6c 65 5f 66 6c 61 67 2e 68 k_compile_flag.h
0330: 74 6d 6c 0a 23 20 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d tml.# ==========
0340: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0350: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0360: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0370: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0380: 3d 0a 23 0a 23 20 53 59 4e 4f 50 53 49 53 0a 23 =.#.# SYNOPSIS.#
0390: 0a 23 20 20 20 41 58 5f 43 48 45 43 4b 5f 43 4f .# AX_CHECK_CO
03a0: 4d 50 49 4c 45 5f 46 4c 41 47 28 46 4c 41 47 2c MPILE_FLAG(FLAG,
03b0: 20 5b 41 43 54 49 4f 4e 2d 53 55 43 43 45 53 53 [ACTION-SUCCESS
03c0: 5d 2c 20 5b 41 43 54 49 4f 4e 2d 46 41 49 4c 55 ], [ACTION-FAILU
03d0: 52 45 5d 2c 20 5b 45 58 54 52 41 2d 46 4c 41 47 RE], [EXTRA-FLAG
03e0: 53 5d 2c 20 5b 49 4e 50 55 54 5d 29 0a 23 0a 23 S], [INPUT]).#.#
03f0: 20 44 45 53 43 52 49 50 54 49 4f 4e 0a 23 0a 23 DESCRIPTION.#.#
0400: 20 20 20 43 68 65 63 6b 20 77 68 65 74 68 65 72 Check whether
0410: 20 74 68 65 20 67 69 76 65 6e 20 46 4c 41 47 20 the given FLAG
0420: 77 6f 72 6b 73 20 77 69 74 68 20 74 68 65 20 63 works with the c
0430: 75 72 72 65 6e 74 20 6c 61 6e 67 75 61 67 65 27 urrent language'
0440: 73 20 63 6f 6d 70 69 6c 65 72 0a 23 20 20 20 6f s compiler.# o
0450: 72 20 67 69 76 65 73 20 61 6e 20 65 72 72 6f 72 r gives an error
0460: 2e 20 20 28 57 61 72 6e 69 6e 67 73 2c 20 68 6f . (Warnings, ho
0470: 77 65 76 65 72 2c 20 61 72 65 20 69 67 6e 6f 72 wever, are ignor
0480: 65 64 29 0a 23 0a 23 20 20 20 41 43 54 49 4f 4e ed).#.# ACTION
0490: 2d 53 55 43 43 45 53 53 2f 41 43 54 49 4f 4e 2d -SUCCESS/ACTION-
04a0: 46 41 49 4c 55 52 45 20 61 72 65 20 73 68 65 6c FAILURE are shel
04b0: 6c 20 63 6f 6d 6d 61 6e 64 73 20 74 6f 20 65 78 l commands to ex
04c0: 65 63 75 74 65 20 6f 6e 0a 23 20 20 20 73 75 63 ecute on.# suc
04d0: 63 65 73 73 2f 66 61 69 6c 75 72 65 2e 0a 23 0a cess/failure..#.
04e0: 23 20 20 20 49 66 20 45 58 54 52 41 2d 46 4c 41 # If EXTRA-FLA
04f0: 47 53 20 69 73 20 64 65 66 69 6e 65 64 2c 20 69 GS is defined, i
0500: 74 20 69 73 20 61 64 64 65 64 20 74 6f 20 74 68 t is added to th
0510: 65 20 63 75 72 72 65 6e 74 20 6c 61 6e 67 75 61 e current langua
0520: 67 65 27 73 20 64 65 66 61 75 6c 74 0a 23 20 20 ge's default.#
0530: 20 66 6c 61 67 73 20 28 65 2e 67 2e 20 43 46 4c flags (e.g. CFL
0540: 41 47 53 29 20 77 68 65 6e 20 74 68 65 20 63 68 AGS) when the ch
0550: 65 63 6b 20 69 73 20 64 6f 6e 65 2e 20 20 54 68 eck is done. Th
0560: 65 20 63 68 65 63 6b 20 69 73 20 74 68 75 73 20 e check is thus
0570: 6d 61 64 65 20 77 69 74 68 0a 23 20 20 20 74 68 made with.# th
0580: 65 20 66 6c 61 67 73 3a 20 22 43 46 4c 41 47 53 e flags: "CFLAGS
0590: 20 45 58 54 52 41 2d 46 4c 41 47 53 20 46 4c 41 EXTRA-FLAGS FLA
05a0: 47 22 2e 20 20 54 68 69 73 20 63 61 6e 20 66 6f G". This can fo
05b0: 72 20 65 78 61 6d 70 6c 65 20 62 65 20 75 73 65 r example be use
05c0: 64 20 74 6f 0a 23 20 20 20 66 6f 72 63 65 20 74 d to.# force t
05d0: 68 65 20 63 6f 6d 70 69 6c 65 72 20 74 6f 20 69 he compiler to i
05e0: 73 73 75 65 20 61 6e 20 65 72 72 6f 72 20 77 68 ssue an error wh
05f0: 65 6e 20 61 20 62 61 64 20 66 6c 61 67 20 69 73 en a bad flag is
0600: 20 67 69 76 65 6e 2e 0a 23 0a 23 20 20 20 49 4e given..#.# IN
0610: 50 55 54 20 67 69 76 65 73 20 61 6e 20 61 6c 74 PUT gives an alt
0620: 65 72 6e 61 74 69 76 65 20 69 6e 70 75 74 20 73 ernative input s
0630: 6f 75 72 63 65 20 74 6f 20 41 43 5f 43 4f 4d 50 ource to AC_COMP
0640: 49 4c 45 5f 49 46 45 4c 53 45 2e 0a 23 0a 23 20 ILE_IFELSE..#.#
0650: 20 20 4e 4f 54 45 3a 20 49 6d 70 6c 65 6d 65 6e NOTE: Implemen
0660: 74 61 74 69 6f 6e 20 62 61 73 65 64 20 6f 6e 20 tation based on
0670: 41 58 5f 43 46 4c 41 47 53 5f 47 43 43 5f 4f 50 AX_CFLAGS_GCC_OP
0680: 54 49 4f 4e 2e 20 50 6c 65 61 73 65 20 6b 65 65 TION. Please kee
0690: 70 20 74 68 69 73 0a 23 20 20 20 6d 61 63 72 6f p this.# macro
06a0: 20 69 6e 20 73 79 6e 63 20 77 69 74 68 20 41 58 in sync with AX
06b0: 5f 43 48 45 43 4b 5f 7b 50 52 45 50 52 4f 43 2c _CHECK_{PREPROC,
06c0: 4c 49 4e 4b 7d 5f 46 4c 41 47 2e 0a 23 0a 23 20 LINK}_FLAG..#.#
06d0: 4c 49 43 45 4e 53 45 0a 23 0a 23 20 20 20 43 6f LICENSE.#.# Co
06e0: 70 79 72 69 67 68 74 20 28 63 29 20 32 30 30 38 pyright (c) 2008
06f0: 20 47 75 69 64 6f 20 55 2e 20 44 72 61 68 65 69 Guido U. Drahei
0700: 6d 20 3c 67 75 69 64 6f 64 40 67 6d 78 2e 64 65 m <guidod@gmx.de
0710: 3e 0a 23 20 20 20 43 6f 70 79 72 69 67 68 74 20 >.# Copyright
0720: 28 63 29 20 32 30 31 31 20 4d 61 61 72 74 65 6e (c) 2011 Maarten
0730: 20 42 6f 73 6d 61 6e 73 20 3c 6d 6b 62 6f 73 6d Bosmans <mkbosm
0740: 61 6e 73 40 67 6d 61 69 6c 2e 63 6f 6d 3e 0a 23 ans@gmail.com>.#
0750: 0a 23 20 20 20 43 6f 70 79 69 6e 67 20 61 6e 64 .# Copying and
0760: 20 64 69 73 74 72 69 62 75 74 69 6f 6e 20 6f 66 distribution of
0770: 20 74 68 69 73 20 66 69 6c 65 2c 20 77 69 74 68 this file, with
0780: 20 6f 72 20 77 69 74 68 6f 75 74 20 6d 6f 64 69 or without modi
0790: 66 69 63 61 74 69 6f 6e 2c 20 61 72 65 0a 23 20 fication, are.#
07a0: 20 20 70 65 72 6d 69 74 74 65 64 20 69 6e 20 61 permitted in a
07b0: 6e 79 20 6d 65 64 69 75 6d 20 77 69 74 68 6f 75 ny medium withou
07c0: 74 20 72 6f 79 61 6c 74 79 20 70 72 6f 76 69 64 t royalty provid
07d0: 65 64 20 74 68 65 20 63 6f 70 79 72 69 67 68 74 ed the copyright
07e0: 20 6e 6f 74 69 63 65 0a 23 20 20 20 61 6e 64 20 notice.# and
07f0: 74 68 69 73 20 6e 6f 74 69 63 65 20 61 72 65 20 this notice are
0800: 70 72 65 73 65 72 76 65 64 2e 20 20 54 68 69 73 preserved. This
0810: 20 66 69 6c 65 20 69 73 20 6f 66 66 65 72 65 64 file is offered
0820: 20 61 73 2d 69 73 2c 20 77 69 74 68 6f 75 74 20 as-is, without
0830: 61 6e 79 0a 23 20 20 20 77 61 72 72 61 6e 74 79 any.# warranty
0840: 2e 0a 0a 23 73 65 72 69 61 6c 20 36 0a 0a 41 43 ...#serial 6..AC
0850: 5f 44 45 46 55 4e 28 5b 41 58 5f 43 48 45 43 4b _DEFUN([AX_CHECK
0860: 5f 43 4f 4d 50 49 4c 45 5f 46 4c 41 47 5d 2c 0a _COMPILE_FLAG],.
0870: 5b 41 43 5f 50 52 45 52 45 51 28 32 2e 36 34 29 [AC_PREREQ(2.64)
0880: 64 6e 6c 20 66 6f 72 20 5f 41 43 5f 4c 41 4e 47 dnl for _AC_LANG
0890: 5f 50 52 45 46 49 58 20 61 6e 64 20 41 53 5f 56 _PREFIX and AS_V
08a0: 41 52 5f 49 46 0a 41 53 5f 56 41 52 5f 50 55 53 AR_IF.AS_VAR_PUS
08b0: 48 44 45 46 28 5b 43 41 43 48 45 56 41 52 5d 2c HDEF([CACHEVAR],
08c0: 5b 61 78 5f 63 76 5f 63 68 65 63 6b 5f 5b 5d 5f [ax_cv_check_[]_
08d0: 41 43 5f 4c 41 4e 47 5f 41 42 42 52 45 56 5b 5d AC_LANG_ABBREV[]
08e0: 66 6c 61 67 73 5f 24 34 5f 24 31 5d 29 64 6e 6c flags_$4_$1])dnl
08f0: 0a 41 43 5f 43 41 43 48 45 5f 43 48 45 43 4b 28 .AC_CACHE_CHECK(
0900: 5b 77 68 65 74 68 65 72 20 5f 41 43 5f 4c 41 4e [whether _AC_LAN
0910: 47 20 63 6f 6d 70 69 6c 65 72 20 61 63 63 65 70 G compiler accep
0920: 74 73 20 24 31 5d 2c 20 43 41 43 48 45 56 41 52 ts $1], CACHEVAR
0930: 2c 20 5b 0a 20 20 61 78 5f 63 68 65 63 6b 5f 73 , [. ax_check_s
0940: 61 76 65 5f 66 6c 61 67 73 3d 24 5b 5d 5f 41 43 ave_flags=$[]_AC
0950: 5f 4c 41 4e 47 5f 50 52 45 46 49 58 5b 5d 46 4c _LANG_PREFIX[]FL
0960: 41 47 53 0a 20 20 5f 41 43 5f 4c 41 4e 47 5f 50 AGS. _AC_LANG_P
0970: 52 45 46 49 58 5b 5d 46 4c 41 47 53 3d 22 24 5b REFIX[]FLAGS="$[
0980: 5d 5f 41 43 5f 4c 41 4e 47 5f 50 52 45 46 49 58 ]_AC_LANG_PREFIX
0990: 5b 5d 46 4c 41 47 53 20 24 34 20 24 31 22 0a 20 []FLAGS $4 $1".
09a0: 20 41 43 5f 43 4f 4d 50 49 4c 45 5f 49 46 45 4c AC_COMPILE_IFEL
09b0: 53 45 28 5b 6d 34 5f 64 65 66 61 75 6c 74 28 5b SE([m4_default([
09c0: 24 35 5d 2c 5b 41 43 5f 4c 41 4e 47 5f 50 52 4f $5],[AC_LANG_PRO
09d0: 47 52 41 4d 28 29 5d 29 5d 2c 0a 20 20 20 20 5b GRAM()])],. [
09e0: 41 53 5f 56 41 52 5f 53 45 54 28 43 41 43 48 45 AS_VAR_SET(CACHE
09f0: 56 41 52 2c 5b 79 65 73 5d 29 5d 2c 0a 20 20 20 VAR,[yes])],.
0a00: 20 5b 41 53 5f 56 41 52 5f 53 45 54 28 43 41 43 [AS_VAR_SET(CAC
0a10: 48 45 56 41 52 2c 5b 6e 6f 5d 29 5d 29 0a 20 20 HEVAR,[no])]).
0a20: 5f 41 43 5f 4c 41 4e 47 5f 50 52 45 46 49 58 5b _AC_LANG_PREFIX[
0a30: 5d 46 4c 41 47 53 3d 24 61 78 5f 63 68 65 63 6b ]FLAGS=$ax_check
0a40: 5f 73 61 76 65 5f 66 6c 61 67 73 5d 29 0a 41 53 _save_flags]).AS
0a50: 5f 56 41 52 5f 49 46 28 43 41 43 48 45 56 41 52 _VAR_IF(CACHEVAR
0a60: 2c 79 65 73 2c 0a 20 20 5b 6d 34 5f 64 65 66 61 ,yes,. [m4_defa
0a70: 75 6c 74 28 5b 24 32 5d 2c 20 3a 29 5d 2c 0a 20 ult([$2], :)],.
0a80: 20 5b 6d 34 5f 64 65 66 61 75 6c 74 28 5b 24 33 [m4_default([$3
0a90: 5d 2c 20 3a 29 5d 29 0a 41 53 5f 56 41 52 5f 50 ], :)]).AS_VAR_P
0aa0: 4f 50 44 45 46 28 5b 43 41 43 48 45 56 41 52 5d OPDEF([CACHEVAR]
0ab0: 29 64 6e 6c 0a 5d 29 64 6e 6c 20 41 58 5f 43 48 )dnl.])dnl AX_CH
0ac0: 45 43 4b 5f 43 4f 4d 50 49 4c 45 5f 46 4c 41 47 ECK_COMPILE_FLAG
0ad0: 53 0a 0a 6d 34 5f 69 6e 63 6c 75 64 65 28 5b 61 S..m4_include([a
0ae0: 63 69 6e 63 6c 75 64 65 2e 6d 34 5d 29 0a cinclude.m4]).