Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.72. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5 | # |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7 | # Inc. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8 | # |
| 9 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12 | ## -------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## -------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 19 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 26 | else case e in #( |
| 27 | e) case `(set -o) 2>/dev/null` in #( |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 32 | esac ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 33 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 34 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 35 | |
| 36 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 37 | |
| 38 | # Reset variables that may have inherited troublesome values from |
| 39 | # the environment. |
| 40 | |
| 41 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 42 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 43 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 44 | # Quoting is to prevent editors from complaining about space-tab. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 45 | as_nl=' |
| 46 | ' |
| 47 | export as_nl |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 48 | IFS=" "" $as_nl" |
| 49 | |
| 50 | PS1='$ ' |
| 51 | PS2='> ' |
| 52 | PS4='+ ' |
| 53 | |
| 54 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 55 | LC_ALL=C |
| 56 | export LC_ALL |
| 57 | LANGUAGE=C |
| 58 | export LANGUAGE |
| 59 | |
| 60 | # We cannot yet rely on "unset" to work, but we need these variables |
| 61 | # to be unset--not just set to an empty or harmless value--now, to |
| 62 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 63 | # also avoids known problems related to "unset" and subshell syntax |
| 64 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 65 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 66 | do eval test \${$as_var+y} \ |
| 67 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 68 | done |
| 69 | |
| 70 | # Ensure that fds 0, 1, and 2 are open. |
| 71 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 72 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 73 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 74 | |
| 75 | # The user is always right. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 76 | if ${PATH_SEPARATOR+false} :; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 77 | PATH_SEPARATOR=: |
| 78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 | PATH_SEPARATOR=';' |
| 81 | } |
| 82 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 83 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 84 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 85 | # Find who we are. Look in the path if we contain no directory separator. |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 86 | as_myself= |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 87 | case $0 in #(( |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 88 | *[\\/]* ) as_myself=$0 ;; |
| 89 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 90 | for as_dir in $PATH |
| 91 | do |
| 92 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 93 | case $as_dir in #((( |
| 94 | '') as_dir=./ ;; |
| 95 | */) ;; |
| 96 | *) as_dir=$as_dir/ ;; |
| 97 | esac |
| 98 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 99 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 100 | IFS=$as_save_IFS |
| 101 | |
| 102 | ;; |
| 103 | esac |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 104 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 110 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 111 | exit 1 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 112 | fi |
| 113 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 114 | |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 115 | # Use a proper internal environment variable to ensure we don't fall |
| 116 | # into an infinite loop, continuously re-executing ourselves. |
| 117 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 118 | _as_can_reexec=no; export _as_can_reexec; |
| 119 | # We cannot yet assume a decent shell, so we have to provide a |
| 120 | # neutralization value for shells without unset; and this also |
| 121 | # works around shells that cannot unset nonexistent variables. |
| 122 | # Preserve -v and -x to the replacement shell. |
| 123 | BASH_ENV=/dev/null |
| 124 | ENV=/dev/null |
| 125 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 126 | case $- in # (((( |
| 127 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 128 | *v* ) as_opts=-v ;; |
| 129 | *x* ) as_opts=-x ;; |
| 130 | * ) as_opts= ;; |
| 131 | esac |
| 132 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 133 | # Admittedly, this is quite paranoid, since all the known shells bail |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 134 | # out after a failed 'exec'. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 135 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 136 | exit 255 |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 137 | fi |
| 138 | # We don't want this to propagate to other subprocesses. |
| 139 | { _as_can_reexec=; unset _as_can_reexec;} |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 140 | if test "x$CONFIG_SHELL" = x; then |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 141 | as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 142 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 143 | emulate sh |
| 144 | NULLCMD=: |
| 145 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 146 | # is contrary to our usage. Disable this feature. |
| 147 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 148 | setopt NO_GLOB_SUBST |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 149 | else case e in #( |
| 150 | e) case \`(set -o) 2>/dev/null\` in #( |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 151 | *posix*) : |
| 152 | set -o posix ;; #( |
| 153 | *) : |
| 154 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 155 | esac ;; |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 156 | esac |
| 157 | fi |
| 158 | " |
| 159 | as_required="as_fn_return () { (exit \$1); } |
| 160 | as_fn_success () { as_fn_return 0; } |
| 161 | as_fn_failure () { as_fn_return 1; } |
| 162 | as_fn_ret_success () { return 0; } |
| 163 | as_fn_ret_failure () { return 1; } |
| 164 | |
| 165 | exitcode=0 |
| 166 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 167 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 168 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 169 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 171 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 172 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 173 | else case e in #( |
| 174 | e) exitcode=1; echo positional parameters were not saved. ;; |
| 175 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 176 | fi |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 177 | test x\$exitcode = x0 || exit 1 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 178 | blah=\$(echo \$(echo blah)) |
| 179 | test x\"\$blah\" = xblah || exit 1 |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 180 | test -x / || exit 1" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 181 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 182 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 183 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 184 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 185 | test \$(( 1 + 1 )) = 2 || exit 1" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 186 | if (eval "$as_required") 2>/dev/null |
| 187 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 188 | as_have_required=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 189 | else case e in #( |
| 190 | e) as_have_required=no ;; |
| 191 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 192 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 193 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 194 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 195 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 196 | else case e in #( |
| 197 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 198 | as_found=false |
| 199 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 200 | do |
| 201 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 202 | case $as_dir in #((( |
| 203 | '') as_dir=./ ;; |
| 204 | */) ;; |
| 205 | *) as_dir=$as_dir/ ;; |
| 206 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 207 | as_found=: |
| 208 | case $as_dir in #( |
| 209 | /*) |
| 210 | for as_base in sh bash ksh sh5; do |
| 211 | # Try only shells that exist, to save several forks. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 212 | as_shell=$as_dir$as_base |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 213 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 214 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 215 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 216 | CONFIG_SHELL=$as_shell as_have_required=yes |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 217 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 218 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 219 | break 2 |
| 220 | fi |
| 221 | fi |
| 222 | done;; |
| 223 | esac |
| 224 | as_found=false |
| 225 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 226 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 227 | if $as_found |
| 228 | then : |
| 229 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 230 | else case e in #( |
| 231 | e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 232 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 233 | then : |
| 234 | CONFIG_SHELL=$SHELL as_have_required=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 235 | fi ;; |
| 236 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 237 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 238 | |
| 239 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 240 | if test "x$CONFIG_SHELL" != x |
| 241 | then : |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 242 | export CONFIG_SHELL |
| 243 | # We cannot yet assume a decent shell, so we have to provide a |
| 244 | # neutralization value for shells without unset; and this also |
| 245 | # works around shells that cannot unset nonexistent variables. |
| 246 | # Preserve -v and -x to the replacement shell. |
| 247 | BASH_ENV=/dev/null |
| 248 | ENV=/dev/null |
| 249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 250 | case $- in # (((( |
| 251 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 252 | *v* ) as_opts=-v ;; |
| 253 | *x* ) as_opts=-x ;; |
| 254 | * ) as_opts= ;; |
| 255 | esac |
| 256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 257 | # Admittedly, this is quite paranoid, since all the known shells bail |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 258 | # out after a failed 'exec'. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 259 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 260 | exit 255 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 261 | fi |
| 262 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 263 | if test x$as_have_required = xno |
| 264 | then : |
| 265 | printf "%s\n" "$0: This script requires a shell more modern than all" |
| 266 | printf "%s\n" "$0: the shells that I found on your system." |
| 267 | if test ${ZSH_VERSION+y} ; then |
| 268 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 269 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 270 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 271 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 272 | $0: including any error possibly output before this |
| 273 | $0: message. Then install a modern shell, or manually run |
| 274 | $0: the script under such a shell if you do have one." |
| 275 | fi |
| 276 | exit 1 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 277 | fi ;; |
| 278 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 279 | fi |
| 280 | fi |
| 281 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 282 | export SHELL |
| 283 | # Unset more variables known to interfere with behavior of common tools. |
| 284 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 285 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 286 | |
| 287 | ## --------------------- ## |
| 288 | ## M4sh Shell Functions. ## |
| 289 | ## --------------------- ## |
| 290 | # as_fn_unset VAR |
| 291 | # --------------- |
| 292 | # Portably unset VAR. |
| 293 | as_fn_unset () |
| 294 | { |
| 295 | { eval $1=; unset $1;} |
| 296 | } |
| 297 | as_unset=as_fn_unset |
| 298 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 299 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 300 | # as_fn_set_status STATUS |
| 301 | # ----------------------- |
| 302 | # Set $? to STATUS, without forking. |
| 303 | as_fn_set_status () |
| 304 | { |
| 305 | return $1 |
| 306 | } # as_fn_set_status |
| 307 | |
| 308 | # as_fn_exit STATUS |
| 309 | # ----------------- |
| 310 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 311 | as_fn_exit () |
| 312 | { |
| 313 | set +e |
| 314 | as_fn_set_status $1 |
| 315 | exit $1 |
| 316 | } # as_fn_exit |
| 317 | |
| 318 | # as_fn_mkdir_p |
| 319 | # ------------- |
| 320 | # Create "$as_dir" as a directory, including parents if necessary. |
| 321 | as_fn_mkdir_p () |
| 322 | { |
| 323 | |
| 324 | case $as_dir in #( |
| 325 | -*) as_dir=./$as_dir;; |
| 326 | esac |
| 327 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 328 | as_dirs= |
| 329 | while :; do |
| 330 | case $as_dir in #( |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 331 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 332 | *) as_qdir=$as_dir;; |
| 333 | esac |
| 334 | as_dirs="'$as_qdir' $as_dirs" |
| 335 | as_dir=`$as_dirname -- "$as_dir" || |
| 336 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 337 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 338 | X"$as_dir" : 'X\(//\)$' \| \ |
| 339 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 340 | printf "%s\n" X"$as_dir" | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 341 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 342 | s//\1/ |
| 343 | q |
| 344 | } |
| 345 | /^X\(\/\/\)[^/].*/{ |
| 346 | s//\1/ |
| 347 | q |
| 348 | } |
| 349 | /^X\(\/\/\)$/{ |
| 350 | s//\1/ |
| 351 | q |
| 352 | } |
| 353 | /^X\(\/\).*/{ |
| 354 | s//\1/ |
| 355 | q |
| 356 | } |
| 357 | s/.*/./; q'` |
| 358 | test -d "$as_dir" && break |
| 359 | done |
| 360 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 361 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 362 | |
| 363 | |
| 364 | } # as_fn_mkdir_p |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 365 | |
| 366 | # as_fn_executable_p FILE |
| 367 | # ----------------------- |
| 368 | # Test if FILE is an executable regular file. |
| 369 | as_fn_executable_p () |
| 370 | { |
| 371 | test -f "$1" && test -x "$1" |
| 372 | } # as_fn_executable_p |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 373 | # as_fn_append VAR VALUE |
| 374 | # ---------------------- |
| 375 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 376 | # advantage of any shell optimizations that allow amortized linear growth over |
| 377 | # repeated appends, instead of the typical quadratic growth present in naive |
| 378 | # implementations. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 379 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 380 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 381 | eval 'as_fn_append () |
| 382 | { |
| 383 | eval $1+=\$2 |
| 384 | }' |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 385 | else case e in #( |
| 386 | e) as_fn_append () |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 387 | { |
| 388 | eval $1=\$$1\$2 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 389 | } ;; |
| 390 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 391 | fi # as_fn_append |
| 392 | |
| 393 | # as_fn_arith ARG... |
| 394 | # ------------------ |
| 395 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 397 | # must be portable across $(()) and expr. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 399 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 400 | eval 'as_fn_arith () |
| 401 | { |
| 402 | as_val=$(( $* )) |
| 403 | }' |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 404 | else case e in #( |
| 405 | e) as_fn_arith () |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 406 | { |
| 407 | as_val=`expr "$@" || test $? -eq 1` |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 408 | } ;; |
| 409 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 410 | fi # as_fn_arith |
| 411 | |
| 412 | |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 413 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 414 | # ---------------------------------------- |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 415 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 416 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 417 | # script with STATUS, using 1 if that was 0. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 418 | as_fn_error () |
| 419 | { |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 420 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 421 | if test "$4"; then |
| 422 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 423 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 424 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 425 | printf "%s\n" "$as_me: error: $2" >&2 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 426 | as_fn_exit $as_status |
| 427 | } # as_fn_error |
| 428 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 429 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 430 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 431 | as_expr=expr |
| 432 | else |
| 433 | as_expr=false |
| 434 | fi |
| 435 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 436 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 437 | as_basename=basename |
| 438 | else |
| 439 | as_basename=false |
| 440 | fi |
| 441 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 442 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 443 | as_dirname=dirname |
| 444 | else |
| 445 | as_dirname=false |
| 446 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 447 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 448 | as_me=`$as_basename -- "$0" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 449 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 450 | X"$0" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 451 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 452 | printf "%s\n" X/"$0" | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 453 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 454 | s//\1/ |
| 455 | q |
| 456 | } |
| 457 | /^X\/\(\/\/\)$/{ |
| 458 | s//\1/ |
| 459 | q |
| 460 | } |
| 461 | /^X\/\(\/\).*/{ |
| 462 | s//\1/ |
| 463 | q |
| 464 | } |
| 465 | s/.*/./; q'` |
| 466 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 467 | # Avoid depending upon Character Ranges. |
| 468 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 469 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 470 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 471 | as_cr_digits='0123456789' |
| 472 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 473 | |
| 474 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 475 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 476 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 477 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 478 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 479 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 480 | sed -n ' |
| 481 | p |
| 482 | /[$]LINENO/= |
| 483 | ' <$as_myself | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 484 | sed ' |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 485 | t clear |
| 486 | :clear |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 487 | s/[$]LINENO.*/&-/ |
| 488 | t lineno |
| 489 | b |
| 490 | :lineno |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 491 | N |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 492 | :loop |
| 493 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 494 | t loop |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 495 | s/-\n.*// |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 496 | ' >$as_me.lineno && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 497 | chmod +x "$as_me.lineno" || |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 498 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 499 | |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 500 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 501 | # already done that, so ensure we don't try to do so again and fall |
| 502 | # in an infinite loop. This has already happened in practice. |
| 503 | _as_can_reexec=no; export _as_can_reexec |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 504 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 505 | # (the dirname of $[0] is not the place where we might find the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 506 | # original and so on. Autoconf is especially sensitive to this). |
| 507 | . "./$as_me.lineno" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 508 | # Exit status is that of the last command. |
| 509 | exit |
| 510 | } |
| 511 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 512 | |
| 513 | # Determine whether it's possible to make 'echo' print without a newline. |
| 514 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 515 | # for compatibility with existing Makefiles. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 516 | ECHO_C= ECHO_N= ECHO_T= |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 517 | case `echo -n x` in #((((( |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 518 | -n*) |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 519 | case `echo 'xy\c'` in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 520 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 521 | xy) ECHO_C='\c';; |
| 522 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 523 | ECHO_T=' ';; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 524 | esac;; |
| 525 | *) |
| 526 | ECHO_N='-n';; |
| 527 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 528 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 529 | # For backward compatibility with old third-party macros, we provide |
| 530 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 531 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 532 | as_echo='printf %s\n' |
| 533 | as_echo_n='printf %s' |
| 534 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 535 | rm -f conf$$ conf$$.exe conf$$.file |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 536 | if test -d conf$$.dir; then |
| 537 | rm -f conf$$.dir/conf$$.file |
| 538 | else |
| 539 | rm -f conf$$.dir |
| 540 | mkdir conf$$.dir 2>/dev/null |
| 541 | fi |
| 542 | if (echo >conf$$.file) 2>/dev/null; then |
| 543 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 544 | as_ln_s='ln -s' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 545 | # ... but there are two gotchas: |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 546 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 547 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 548 | # In both cases, we have to default to 'cp -pR'. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 549 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 550 | as_ln_s='cp -pR' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 551 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 552 | as_ln_s=ln |
| 553 | else |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 554 | as_ln_s='cp -pR' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 555 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 556 | else |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 557 | as_ln_s='cp -pR' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 558 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 559 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 560 | rmdir conf$$.dir 2>/dev/null |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 561 | |
| 562 | if mkdir -p . 2>/dev/null; then |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 563 | as_mkdir_p='mkdir -p "$as_dir"' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 564 | else |
| 565 | test -d ./-p && rmdir ./-p |
| 566 | as_mkdir_p=false |
| 567 | fi |
| 568 | |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 569 | as_test_x='test -x' |
| 570 | as_executable_p=as_fn_executable_p |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 571 | |
| 572 | # Sed expression to map a string onto a valid CPP name. |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 573 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 574 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 575 | |
| 576 | # Sed expression to map a string onto a valid variable name. |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 577 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 578 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 579 | |
| 580 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 581 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 582 | exec 6>&1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 583 | |
| 584 | # Name of the host. |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 585 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 586 | # so uname gets run too. |
| 587 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 588 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 589 | # |
| 590 | # Initializations. |
| 591 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 592 | ac_default_prefix=/usr/local |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 593 | ac_clean_files= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 594 | ac_config_libobj_dir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 595 | LIBOBJS= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 596 | cross_compiling=no |
| 597 | subdirs= |
| 598 | MFLAGS= |
| 599 | MAKEFLAGS= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 600 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 601 | # Identity of this package. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 602 | PACKAGE_NAME='' |
| 603 | PACKAGE_TARNAME='' |
| 604 | PACKAGE_VERSION='' |
| 605 | PACKAGE_STRING='' |
| 606 | PACKAGE_BUGREPORT='' |
| 607 | PACKAGE_URL='' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 608 | |
| 609 | ac_unique_file="vim.h" |
| 610 | # Factoring default headers for most tests. |
| 611 | ac_includes_default="\ |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 612 | #include <stddef.h> |
| 613 | #ifdef HAVE_STDIO_H |
| 614 | # include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 615 | #endif |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 616 | #ifdef HAVE_STDLIB_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 617 | # include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 618 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 619 | #ifdef HAVE_STRING_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 620 | # include <string.h> |
| 621 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 622 | #ifdef HAVE_INTTYPES_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 623 | # include <inttypes.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 624 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 625 | #ifdef HAVE_STDINT_H |
| 626 | # include <stdint.h> |
| 627 | #endif |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 628 | #ifdef HAVE_STRINGS_H |
| 629 | # include <strings.h> |
| 630 | #endif |
| 631 | #ifdef HAVE_SYS_TYPES_H |
| 632 | # include <sys/types.h> |
| 633 | #endif |
| 634 | #ifdef HAVE_SYS_STAT_H |
| 635 | # include <sys/stat.h> |
| 636 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 637 | #ifdef HAVE_UNISTD_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 638 | # include <unistd.h> |
| 639 | #endif" |
| 640 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 641 | ac_header_c_list= |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 642 | enable_year2038=no |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 643 | ac_subst_vars='LTLIBOBJS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 644 | LIBOBJS |
Bram Moolenaar | 22e193d | 2010-11-03 22:32:24 +0100 | [diff] [blame] | 645 | LINK_AS_NEEDED |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 646 | DEPEND_CFLAGS_FILTER |
RestorerZ | e498caf | 2024-03-12 22:11:36 +0100 | [diff] [blame] | 647 | MSGFMTCMD |
Bram Moolenaar | 26096cc | 2019-04-11 15:25:40 +0200 | [diff] [blame] | 648 | MSGFMT_DESKTOP |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 649 | MAKEMO |
| 650 | MSGFMT |
| 651 | INSTALL_TOOL_LANGS |
| 652 | INSTALL_LANGS |
| 653 | TAGPRG |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 654 | GUI_X_LIBS |
| 655 | GUITYPE |
| 656 | GUI_LIB_LOC |
| 657 | GUI_INC_LOC |
| 658 | NARROW_PROTO |
| 659 | MOTIF_LIBNAME |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 660 | GRESOURCE_OBJ |
| 661 | GRESOURCE_SRC |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 662 | UPDATE_DESKTOP_DATABASE |
| 663 | GTK_UPDATE_ICON_CACHE |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 664 | GLIB_COMPILE_RESOURCES |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 665 | GNOME_INCLUDEDIR |
| 666 | GNOME_LIBDIR |
| 667 | GNOME_LIBS |
| 668 | GTK_LIBNAME |
| 669 | GTK_LIBS |
| 670 | GTK_CFLAGS |
| 671 | PKG_CONFIG |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 672 | X_LIB |
| 673 | X_EXTRA_LIBS |
| 674 | X_LIBS |
| 675 | X_PRE_LIBS |
| 676 | X_CFLAGS |
| 677 | XMKMF |
| 678 | xmkmfpath |
Bram Moolenaar | 823edd1 | 2019-10-23 22:35:36 +0200 | [diff] [blame] | 679 | TERM_TEST |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 680 | TERM_OBJ |
| 681 | TERM_SRC |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 682 | CHANNEL_OBJ |
| 683 | CHANNEL_SRC |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 684 | NETBEANS_OBJ |
| 685 | NETBEANS_SRC |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 686 | RUBY_LIBS |
ichizok | 8bb3fe4 | 2021-12-28 15:51:45 +0000 | [diff] [blame] | 687 | RUBY_CFLAGS_EXTRA |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 688 | RUBY_CFLAGS |
| 689 | RUBY_PRO |
| 690 | RUBY_OBJ |
| 691 | RUBY_SRC |
| 692 | vi_cv_path_ruby |
| 693 | TCL_LIBS |
ichizok | 8bb3fe4 | 2021-12-28 15:51:45 +0000 | [diff] [blame] | 694 | TCL_CFLAGS_EXTRA |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 695 | TCL_CFLAGS |
| 696 | TCL_PRO |
| 697 | TCL_OBJ |
| 698 | TCL_SRC |
| 699 | vi_cv_path_tcl |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 700 | PYTHON3_OBJ |
| 701 | PYTHON3_SRC |
ichizok | 8bb3fe4 | 2021-12-28 15:51:45 +0000 | [diff] [blame] | 702 | PYTHON3_CFLAGS_EXTRA |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 703 | PYTHON3_CFLAGS |
| 704 | PYTHON3_LIBS |
Yee Cheng Chin | c13b3d1 | 2023-08-20 21:18:38 +0200 | [diff] [blame] | 705 | vi_cv_var_python3_stable_abi |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 706 | vi_cv_path_python3 |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 707 | PYTHON_OBJ |
| 708 | PYTHON_SRC |
ichizok | 8bb3fe4 | 2021-12-28 15:51:45 +0000 | [diff] [blame] | 709 | PYTHON_CFLAGS_EXTRA |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 710 | PYTHON_CFLAGS |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 711 | PYTHON_LIBS |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 712 | vi_cv_path_python |
| 713 | PERL_LIBS |
ichizok | 8bb3fe4 | 2021-12-28 15:51:45 +0000 | [diff] [blame] | 714 | PERL_CFLAGS_EXTRA |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 715 | PERL_CFLAGS |
| 716 | PERL_PRO |
| 717 | PERL_OBJ |
| 718 | PERL_SRC |
| 719 | shrpenv |
Bram Moolenaar | d5f62b1 | 2014-08-17 17:05:44 +0200 | [diff] [blame] | 720 | vi_cv_perl_xsubpp |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 721 | vi_cv_perllib |
| 722 | vi_cv_path_perl |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 723 | MZSCHEME_MZC |
| 724 | MZSCHEME_EXTRA |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 725 | MZSCHEME_CFLAGS |
| 726 | MZSCHEME_LIBS |
| 727 | MZSCHEME_PRO |
| 728 | MZSCHEME_OBJ |
| 729 | MZSCHEME_SRC |
| 730 | vi_cv_path_mzscheme |
ichizok | 8bb3fe4 | 2021-12-28 15:51:45 +0000 | [diff] [blame] | 731 | LUA_CFLAGS_EXTRA |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 732 | LUA_CFLAGS |
| 733 | LUA_LIBS |
| 734 | LUA_PRO |
| 735 | LUA_OBJ |
| 736 | LUA_SRC |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 737 | vi_cv_path_plain_lua |
| 738 | vi_cv_path_luajit |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 739 | vi_cv_path_lua |
Bram Moolenaar | 67ffb41 | 2022-01-08 13:36:57 +0000 | [diff] [blame] | 740 | XDIFF_OBJS_USED |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 741 | compiledby |
| 742 | dogvimdiff |
| 743 | dovimdiff |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 744 | QUOTESED |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 745 | line_break |
| 746 | VIEWNAME |
| 747 | EXNAME |
| 748 | VIMNAME |
| 749 | OS_EXTRA_OBJ |
| 750 | OS_EXTRA_SRC |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 751 | XCODE_SELECT |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 752 | CPP_MM |
Bram Moolenaar | 839e954 | 2016-04-14 16:46:02 +0200 | [diff] [blame] | 753 | CROSS_COMPILING |
Bram Moolenaar | 8f1dde5 | 2020-06-05 23:16:29 +0200 | [diff] [blame] | 754 | BUILD_DATE_MSG |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 755 | STRIP |
| 756 | AWK |
Bram Moolenaar | 2bcaec3 | 2014-03-27 18:51:11 +0100 | [diff] [blame] | 757 | FGREP |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 758 | EGREP |
| 759 | GREP |
| 760 | CPP |
| 761 | OBJEXT |
| 762 | EXEEXT |
| 763 | ac_ct_CC |
| 764 | CPPFLAGS |
| 765 | LDFLAGS |
| 766 | CFLAGS |
| 767 | CC |
| 768 | SET_MAKE |
| 769 | target_alias |
| 770 | host_alias |
| 771 | build_alias |
| 772 | LIBS |
| 773 | ECHO_T |
| 774 | ECHO_N |
| 775 | ECHO_C |
| 776 | DEFS |
| 777 | mandir |
| 778 | localedir |
| 779 | libdir |
| 780 | psdir |
| 781 | pdfdir |
| 782 | dvidir |
| 783 | htmldir |
| 784 | infodir |
| 785 | docdir |
| 786 | oldincludedir |
| 787 | includedir |
Illia Bobyr | f39842f | 2023-08-27 18:21:23 +0200 | [diff] [blame] | 788 | runstatedir |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 789 | localstatedir |
| 790 | sharedstatedir |
| 791 | sysconfdir |
| 792 | datadir |
| 793 | datarootdir |
| 794 | libexecdir |
| 795 | sbindir |
| 796 | bindir |
| 797 | program_transform_name |
| 798 | prefix |
| 799 | exec_prefix |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 800 | PACKAGE_URL |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 801 | PACKAGE_BUGREPORT |
| 802 | PACKAGE_STRING |
| 803 | PACKAGE_VERSION |
| 804 | PACKAGE_TARNAME |
| 805 | PACKAGE_NAME |
| 806 | PATH_SEPARATOR |
| 807 | SHELL' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 808 | ac_subst_files='' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 809 | ac_user_opts=' |
| 810 | enable_option_checking |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 811 | enable_fail_if_missing |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 812 | enable_darwin |
| 813 | with_mac_arch |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 814 | with_developer_dir |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 815 | with_local_dir |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 816 | with_vim_name |
| 817 | with_ex_name |
| 818 | with_view_name |
| 819 | with_global_runtime |
| 820 | with_modified_by |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 821 | enable_smack |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 822 | enable_selinux |
Christian Brabandt | e085dfd | 2023-09-30 12:49:18 +0200 | [diff] [blame] | 823 | enable_xattr |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 824 | with_features |
| 825 | with_compiledby |
| 826 | enable_xsmp |
| 827 | enable_xsmp_interact |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 828 | enable_luainterp |
| 829 | with_lua_prefix |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 830 | with_luajit |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 831 | enable_mzschemeinterp |
| 832 | with_plthome |
| 833 | enable_perlinterp |
Zdenek Dohnal | 1b1c9f2 | 2023-11-02 20:19:06 +0100 | [diff] [blame] | 834 | with_xsubpp |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 835 | enable_pythoninterp |
Bram Moolenaar | e1a3231 | 2018-04-15 16:03:25 +0200 | [diff] [blame] | 836 | with_python_command |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 837 | with_python_config_dir |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 838 | enable_python3interp |
Bram Moolenaar | e1a3231 | 2018-04-15 16:03:25 +0200 | [diff] [blame] | 839 | with_python3_command |
Yee Cheng Chin | c13b3d1 | 2023-08-20 21:18:38 +0200 | [diff] [blame] | 840 | with_python3_stable_abi |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 841 | with_python3_config_dir |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 842 | enable_tclinterp |
| 843 | with_tclsh |
| 844 | enable_rubyinterp |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 845 | with_ruby_command |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 846 | enable_cscope |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 847 | enable_netbeans |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 848 | enable_channel |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 849 | enable_terminal |
Bram Moolenaar | e42a6d2 | 2017-11-12 19:21:51 +0100 | [diff] [blame] | 850 | enable_autoservername |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 851 | enable_multibyte |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 852 | enable_rightleft |
| 853 | enable_arabic |
| 854 | enable_farsi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 855 | enable_xim |
| 856 | enable_fontset |
| 857 | with_x |
| 858 | enable_gui |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 859 | enable_gtk2_check |
| 860 | enable_gnome_check |
Bram Moolenaar | 9892189 | 2016-02-23 17:14:37 +0100 | [diff] [blame] | 861 | enable_gtk3_check |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 862 | enable_motif_check |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 863 | enable_gtktest |
| 864 | with_gnome_includes |
| 865 | with_gnome_libs |
| 866 | with_gnome |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 867 | enable_icon_cache_update |
| 868 | enable_desktop_database_update |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 869 | with_motif_lib |
| 870 | with_tlib |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 871 | enable_largefile |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 872 | enable_canberra |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 873 | enable_libsodium |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 874 | enable_acl |
| 875 | enable_gpm |
| 876 | enable_sysmouse |
| 877 | enable_nls |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 878 | enable_year2038 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 879 | ' |
| 880 | ac_precious_vars='build_alias |
| 881 | host_alias |
| 882 | target_alias |
| 883 | CC |
| 884 | CFLAGS |
| 885 | LDFLAGS |
| 886 | LIBS |
| 887 | CPPFLAGS |
| 888 | CPP |
| 889 | XMKMF' |
| 890 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 891 | |
| 892 | # Initialize some variables set by options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 893 | ac_init_help= |
| 894 | ac_init_version=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 895 | ac_unrecognized_opts= |
| 896 | ac_unrecognized_sep= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 897 | # The variables have the same names as the options, with |
| 898 | # dashes changed to underlines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 899 | cache_file=/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 900 | exec_prefix=NONE |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 901 | no_create= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 902 | no_recursion= |
| 903 | prefix=NONE |
| 904 | program_prefix=NONE |
| 905 | program_suffix=NONE |
| 906 | program_transform_name=s,x,x, |
| 907 | silent= |
| 908 | site= |
| 909 | srcdir= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 910 | verbose= |
| 911 | x_includes=NONE |
| 912 | x_libraries=NONE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 913 | |
| 914 | # Installation directory options. |
| 915 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 916 | # and all the variables that are supposed to be based on exec_prefix |
| 917 | # by default will actually change. |
| 918 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 919 | # (The list follows the same order as the GNU Coding Standards.) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 920 | bindir='${exec_prefix}/bin' |
| 921 | sbindir='${exec_prefix}/sbin' |
| 922 | libexecdir='${exec_prefix}/libexec' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 923 | datarootdir='${prefix}/share' |
| 924 | datadir='${datarootdir}' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 925 | sysconfdir='${prefix}/etc' |
| 926 | sharedstatedir='${prefix}/com' |
| 927 | localstatedir='${prefix}/var' |
Illia Bobyr | f39842f | 2023-08-27 18:21:23 +0200 | [diff] [blame] | 928 | runstatedir='${localstatedir}/run' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 929 | includedir='${prefix}/include' |
| 930 | oldincludedir='/usr/include' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 931 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 932 | infodir='${datarootdir}/info' |
| 933 | htmldir='${docdir}' |
| 934 | dvidir='${docdir}' |
| 935 | pdfdir='${docdir}' |
| 936 | psdir='${docdir}' |
| 937 | libdir='${exec_prefix}/lib' |
| 938 | localedir='${datarootdir}/locale' |
| 939 | mandir='${datarootdir}/man' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 940 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 941 | ac_prev= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 942 | ac_dashdash= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 943 | for ac_option |
| 944 | do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 945 | # If the previous option needs an argument, assign it. |
| 946 | if test -n "$ac_prev"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 947 | eval $ac_prev=\$ac_option |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 948 | ac_prev= |
| 949 | continue |
| 950 | fi |
| 951 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 952 | case $ac_option in |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 953 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 954 | *=) ac_optarg= ;; |
| 955 | *) ac_optarg=yes ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 956 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 957 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 958 | case $ac_dashdash$ac_option in |
| 959 | --) |
| 960 | ac_dashdash=yes ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 961 | |
| 962 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 963 | ac_prev=bindir ;; |
| 964 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 965 | bindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 966 | |
| 967 | -build | --build | --buil | --bui | --bu) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 968 | ac_prev=build_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 969 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 970 | build_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 971 | |
| 972 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 973 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 974 | ac_prev=cache_file ;; |
| 975 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 976 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 977 | cache_file=$ac_optarg ;; |
| 978 | |
| 979 | --config-cache | -C) |
| 980 | cache_file=config.cache ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 981 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 982 | -datadir | --datadir | --datadi | --datad) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 983 | ac_prev=datadir ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 984 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 985 | datadir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 986 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 987 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 988 | | --dataroo | --dataro | --datar) |
| 989 | ac_prev=datarootdir ;; |
| 990 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 991 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 992 | datarootdir=$ac_optarg ;; |
| 993 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 994 | -disable-* | --disable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 995 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 996 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 997 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 998 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 999 | ac_useropt_orig=$ac_useropt |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1000 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1001 | case $ac_user_opts in |
| 1002 | *" |
| 1003 | "enable_$ac_useropt" |
| 1004 | "*) ;; |
| 1005 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1006 | ac_unrecognized_sep=', ';; |
| 1007 | esac |
| 1008 | eval enable_$ac_useropt=no ;; |
| 1009 | |
| 1010 | -docdir | --docdir | --docdi | --doc | --do) |
| 1011 | ac_prev=docdir ;; |
| 1012 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1013 | docdir=$ac_optarg ;; |
| 1014 | |
| 1015 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1016 | ac_prev=dvidir ;; |
| 1017 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1018 | dvidir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1019 | |
| 1020 | -enable-* | --enable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1021 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1022 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1023 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1024 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1025 | ac_useropt_orig=$ac_useropt |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1026 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1027 | case $ac_user_opts in |
| 1028 | *" |
| 1029 | "enable_$ac_useropt" |
| 1030 | "*) ;; |
| 1031 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1032 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1033 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1034 | eval enable_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1035 | |
| 1036 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1037 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1038 | | --exec | --exe | --ex) |
| 1039 | ac_prev=exec_prefix ;; |
| 1040 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1041 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1042 | | --exec=* | --exe=* | --ex=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1043 | exec_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1044 | |
| 1045 | -gas | --gas | --ga | --g) |
| 1046 | # Obsolete; use --with-gas. |
| 1047 | with_gas=yes ;; |
| 1048 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1049 | -help | --help | --hel | --he | -h) |
| 1050 | ac_init_help=long ;; |
| 1051 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1052 | ac_init_help=recursive ;; |
| 1053 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1054 | ac_init_help=short ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1055 | |
| 1056 | -host | --host | --hos | --ho) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1057 | ac_prev=host_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1058 | -host=* | --host=* | --hos=* | --ho=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1059 | host_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1060 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1061 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1062 | ac_prev=htmldir ;; |
| 1063 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1064 | | --ht=*) |
| 1065 | htmldir=$ac_optarg ;; |
| 1066 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1067 | -includedir | --includedir | --includedi | --included | --include \ |
| 1068 | | --includ | --inclu | --incl | --inc) |
| 1069 | ac_prev=includedir ;; |
| 1070 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1071 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1072 | includedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1073 | |
| 1074 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1075 | ac_prev=infodir ;; |
| 1076 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1077 | infodir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1078 | |
| 1079 | -libdir | --libdir | --libdi | --libd) |
| 1080 | ac_prev=libdir ;; |
| 1081 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1082 | libdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1083 | |
| 1084 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1085 | | --libexe | --libex | --libe) |
| 1086 | ac_prev=libexecdir ;; |
| 1087 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1088 | | --libexe=* | --libex=* | --libe=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1089 | libexecdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1090 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1091 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1092 | ac_prev=localedir ;; |
| 1093 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1094 | localedir=$ac_optarg ;; |
| 1095 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1096 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1097 | | --localstate | --localstat | --localsta | --localst | --locals) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1098 | ac_prev=localstatedir ;; |
| 1099 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1100 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1101 | localstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1102 | |
| 1103 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1104 | ac_prev=mandir ;; |
| 1105 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1106 | mandir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1107 | |
| 1108 | -nfp | --nfp | --nf) |
| 1109 | # Obsolete; use --without-fp. |
| 1110 | with_fp=no ;; |
| 1111 | |
| 1112 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1113 | | --no-cr | --no-c | -n) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1114 | no_create=yes ;; |
| 1115 | |
| 1116 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1117 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1118 | no_recursion=yes ;; |
| 1119 | |
| 1120 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1121 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1122 | | --oldin | --oldi | --old | --ol | --o) |
| 1123 | ac_prev=oldincludedir ;; |
| 1124 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1125 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1126 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1127 | oldincludedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1128 | |
| 1129 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1130 | ac_prev=prefix ;; |
| 1131 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1132 | prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1133 | |
| 1134 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1135 | | --program-pre | --program-pr | --program-p) |
| 1136 | ac_prev=program_prefix ;; |
| 1137 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1138 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1139 | program_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1140 | |
| 1141 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1142 | | --program-suf | --program-su | --program-s) |
| 1143 | ac_prev=program_suffix ;; |
| 1144 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1145 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1146 | program_suffix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1147 | |
| 1148 | -program-transform-name | --program-transform-name \ |
| 1149 | | --program-transform-nam | --program-transform-na \ |
| 1150 | | --program-transform-n | --program-transform- \ |
| 1151 | | --program-transform | --program-transfor \ |
| 1152 | | --program-transfo | --program-transf \ |
| 1153 | | --program-trans | --program-tran \ |
| 1154 | | --progr-tra | --program-tr | --program-t) |
| 1155 | ac_prev=program_transform_name ;; |
| 1156 | -program-transform-name=* | --program-transform-name=* \ |
| 1157 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1158 | | --program-transform-n=* | --program-transform-=* \ |
| 1159 | | --program-transform=* | --program-transfor=* \ |
| 1160 | | --program-transfo=* | --program-transf=* \ |
| 1161 | | --program-trans=* | --program-tran=* \ |
| 1162 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1163 | program_transform_name=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1164 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1165 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1166 | ac_prev=pdfdir ;; |
| 1167 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1168 | pdfdir=$ac_optarg ;; |
| 1169 | |
| 1170 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1171 | ac_prev=psdir ;; |
| 1172 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1173 | psdir=$ac_optarg ;; |
| 1174 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1175 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1176 | | -silent | --silent | --silen | --sile | --sil) |
| 1177 | silent=yes ;; |
| 1178 | |
Illia Bobyr | f39842f | 2023-08-27 18:21:23 +0200 | [diff] [blame] | 1179 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1180 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1181 | | --run | --ru | --r) |
| 1182 | ac_prev=runstatedir ;; |
| 1183 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1184 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1185 | | --run=* | --ru=* | --r=*) |
| 1186 | runstatedir=$ac_optarg ;; |
| 1187 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1188 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1189 | ac_prev=sbindir ;; |
| 1190 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1191 | | --sbi=* | --sb=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1192 | sbindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1193 | |
| 1194 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1195 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1196 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1197 | | --sha | --sh) |
| 1198 | ac_prev=sharedstatedir ;; |
| 1199 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1200 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1201 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1202 | | --sha=* | --sh=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1203 | sharedstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1204 | |
| 1205 | -site | --site | --sit) |
| 1206 | ac_prev=site ;; |
| 1207 | -site=* | --site=* | --sit=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1208 | site=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1209 | |
| 1210 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1211 | ac_prev=srcdir ;; |
| 1212 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1213 | srcdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1214 | |
| 1215 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1216 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1217 | ac_prev=sysconfdir ;; |
| 1218 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1219 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1220 | sysconfdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1221 | |
| 1222 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1223 | ac_prev=target_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1224 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1225 | target_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1226 | |
| 1227 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1228 | verbose=yes ;; |
| 1229 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1230 | -version | --version | --versio | --versi | --vers | -V) |
| 1231 | ac_init_version=: ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1232 | |
| 1233 | -with-* | --with-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1234 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1235 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1236 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1237 | as_fn_error $? "invalid package name: '$ac_useropt'" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1238 | ac_useropt_orig=$ac_useropt |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1239 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1240 | case $ac_user_opts in |
| 1241 | *" |
| 1242 | "with_$ac_useropt" |
| 1243 | "*) ;; |
| 1244 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1245 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1246 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1247 | eval with_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1248 | |
| 1249 | -without-* | --without-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1250 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1251 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1252 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1253 | as_fn_error $? "invalid package name: '$ac_useropt'" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1254 | ac_useropt_orig=$ac_useropt |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1255 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1256 | case $ac_user_opts in |
| 1257 | *" |
| 1258 | "with_$ac_useropt" |
| 1259 | "*) ;; |
| 1260 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1261 | ac_unrecognized_sep=', ';; |
| 1262 | esac |
| 1263 | eval with_$ac_useropt=no ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1264 | |
| 1265 | --x) |
| 1266 | # Obsolete; use --with-x. |
| 1267 | with_x=yes ;; |
| 1268 | |
| 1269 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1270 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1271 | ac_prev=x_includes ;; |
| 1272 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1273 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1274 | x_includes=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1275 | |
| 1276 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1277 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1278 | ac_prev=x_libraries ;; |
| 1279 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1280 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1281 | x_libraries=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1282 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1283 | -*) as_fn_error $? "unrecognized option: '$ac_option' |
| 1284 | Try '$0 --help' for more information" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1285 | ;; |
| 1286 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1287 | *=*) |
| 1288 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1289 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1290 | case $ac_envvar in #( |
| 1291 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1292 | as_fn_error $? "invalid variable name: '$ac_envvar'" ;; |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1293 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1294 | eval $ac_envvar=\$ac_optarg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1295 | export $ac_envvar ;; |
| 1296 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1297 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1298 | # FIXME: should be removed in autoconf 3.0. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1299 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1300 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1301 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1302 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1303 | ;; |
| 1304 | |
| 1305 | esac |
| 1306 | done |
| 1307 | |
| 1308 | if test -n "$ac_prev"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1309 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1310 | as_fn_error $? "missing argument to $ac_option" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1311 | fi |
| 1312 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1313 | if test -n "$ac_unrecognized_opts"; then |
| 1314 | case $enable_option_checking in |
| 1315 | no) ;; |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1316 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1317 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1318 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1319 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1320 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1321 | # Check all directory arguments for consistency. |
| 1322 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1323 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1324 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
Illia Bobyr | f39842f | 2023-08-27 18:21:23 +0200 | [diff] [blame] | 1325 | libdir localedir mandir runstatedir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1326 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1327 | eval ac_val=\$$ac_var |
| 1328 | # Remove trailing slashes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1329 | case $ac_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1330 | */ ) |
| 1331 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1332 | eval $ac_var=\$ac_val;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1333 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1334 | # Be sure to have absolute directory names. |
| 1335 | case $ac_val in |
| 1336 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1337 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1338 | esac |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1339 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1340 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1341 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1342 | # There might be people who depend on the old broken behavior: '$host' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1343 | # used to hold the argument of --host etc. |
| 1344 | # FIXME: To remove some day. |
| 1345 | build=$build_alias |
| 1346 | host=$host_alias |
| 1347 | target=$target_alias |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1348 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1349 | # FIXME: To remove some day. |
| 1350 | if test "x$host_alias" != x; then |
| 1351 | if test "x$build_alias" = x; then |
| 1352 | cross_compiling=maybe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1353 | elif test "x$build_alias" != "x$host_alias"; then |
| 1354 | cross_compiling=yes |
| 1355 | fi |
| 1356 | fi |
| 1357 | |
| 1358 | ac_tool_prefix= |
| 1359 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1360 | |
| 1361 | test "$silent" = yes && exec 6>/dev/null |
| 1362 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1363 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1364 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1365 | ac_ls_di=`ls -di .` && |
| 1366 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1367 | as_fn_error $? "working directory cannot be determined" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1368 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1369 | as_fn_error $? "pwd does not report name of working directory" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1370 | |
| 1371 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1372 | # Find the source files, if location was not specified. |
| 1373 | if test -z "$srcdir"; then |
| 1374 | ac_srcdir_defaulted=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1375 | # Try the directory containing this script, then the parent directory. |
| 1376 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1377 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1378 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1379 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1380 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1381 | printf "%s\n" X"$as_myself" | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1382 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1383 | s//\1/ |
| 1384 | q |
| 1385 | } |
| 1386 | /^X\(\/\/\)[^/].*/{ |
| 1387 | s//\1/ |
| 1388 | q |
| 1389 | } |
| 1390 | /^X\(\/\/\)$/{ |
| 1391 | s//\1/ |
| 1392 | q |
| 1393 | } |
| 1394 | /^X\(\/\).*/{ |
| 1395 | s//\1/ |
| 1396 | q |
| 1397 | } |
| 1398 | s/.*/./; q'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1399 | srcdir=$ac_confdir |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1400 | if test ! -r "$srcdir/$ac_unique_file"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1401 | srcdir=.. |
| 1402 | fi |
| 1403 | else |
| 1404 | ac_srcdir_defaulted=no |
| 1405 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1406 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1407 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1408 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1409 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1410 | ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1411 | ac_abs_confdir=`( |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1412 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1413 | pwd)` |
| 1414 | # When building in place, set srcdir=. |
| 1415 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1416 | srcdir=. |
| 1417 | fi |
| 1418 | # Remove unnecessary trailing slashes from srcdir. |
| 1419 | # Double slashes in file names in object file debugging info |
| 1420 | # mess up M-x gdb in Emacs. |
| 1421 | case $srcdir in |
| 1422 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1423 | esac |
| 1424 | for ac_var in $ac_precious_vars; do |
| 1425 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1426 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1427 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1428 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1429 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1430 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1431 | # |
| 1432 | # Report the --help message. |
| 1433 | # |
| 1434 | if test "$ac_init_help" = "long"; then |
| 1435 | # Omit some internal or obsolete options to make the list less imposing. |
| 1436 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1437 | cat <<_ACEOF |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1438 | 'configure' configures this package to adapt to many kinds of systems. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1439 | |
| 1440 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1441 | |
| 1442 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1443 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1444 | |
| 1445 | Defaults for the options are specified in brackets. |
| 1446 | |
| 1447 | Configuration: |
| 1448 | -h, --help display this help and exit |
| 1449 | --help=short display options specific to this package |
| 1450 | --help=recursive display the short help of all the included packages |
| 1451 | -V, --version display version information and exit |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1452 | -q, --quiet, --silent do not print 'checking ...' messages |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1453 | --cache-file=FILE cache test results in FILE [disabled] |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1454 | -C, --config-cache alias for '--cache-file=config.cache' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1455 | -n, --no-create do not create output files |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1456 | --srcdir=DIR find the sources in DIR [configure dir or '..'] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1457 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1458 | Installation directories: |
| 1459 | --prefix=PREFIX install architecture-independent files in PREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1460 | [$ac_default_prefix] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1461 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1462 | [PREFIX] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1463 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1464 | By default, 'make install' will install all the files in |
| 1465 | '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify |
| 1466 | an installation prefix other than '$ac_default_prefix' using '--prefix', |
| 1467 | for instance '--prefix=\$HOME'. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1468 | |
| 1469 | For better control, use the options below. |
| 1470 | |
| 1471 | Fine tuning of the installation directories: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1472 | --bindir=DIR user executables [EPREFIX/bin] |
| 1473 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1474 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1475 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1476 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1477 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
Illia Bobyr | f39842f | 2023-08-27 18:21:23 +0200 | [diff] [blame] | 1478 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1479 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1480 | --includedir=DIR C header files [PREFIX/include] |
| 1481 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1482 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1483 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1484 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1485 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1486 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1487 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1488 | --htmldir=DIR html documentation [DOCDIR] |
| 1489 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1490 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1491 | --psdir=DIR ps documentation [DOCDIR] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1492 | _ACEOF |
| 1493 | |
| 1494 | cat <<\_ACEOF |
| 1495 | |
| 1496 | X features: |
| 1497 | --x-includes=DIR X include files are in DIR |
| 1498 | --x-libraries=DIR X library files are in DIR |
| 1499 | _ACEOF |
| 1500 | fi |
| 1501 | |
| 1502 | if test -n "$ac_init_help"; then |
| 1503 | |
| 1504 | cat <<\_ACEOF |
| 1505 | |
| 1506 | Optional Features: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1507 | --disable-option-checking ignore unrecognized --enable/--with options |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1508 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1509 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 1510 | --enable-fail-if-missing Fail if dependencies on additional features |
| 1511 | specified on the command line are missing. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1512 | --disable-darwin Disable Darwin (Mac OS X) support. |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 1513 | --disable-smack Do not check for Smack support. |
| 1514 | --disable-selinux Do not check for SELinux support. |
Christian Brabandt | e085dfd | 2023-09-30 12:49:18 +0200 | [diff] [blame] | 1515 | --disable-xattr Do not check for XATTR support. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1516 | --disable-xsmp Disable XSMP session management |
| 1517 | --disable-xsmp-interact Disable XSMP interaction |
Bram Moolenaar | 8008b63 | 2017-07-18 21:33:20 +0200 | [diff] [blame] | 1518 | --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic |
| 1519 | --enable-mzschemeinterp Include MzScheme interpreter. |
Bram Moolenaar | e06c188 | 2010-07-21 22:05:20 +0200 | [diff] [blame] | 1520 | --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 1521 | --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic |
Bram Moolenaar | 8008b63 | 2017-07-18 21:33:20 +0200 | [diff] [blame] | 1522 | --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic |
Bram Moolenaar | 8a5115c | 2016-01-09 19:41:11 +0100 | [diff] [blame] | 1523 | --enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic |
Bram Moolenaar | 3ca71f1 | 2010-10-27 16:49:47 +0200 | [diff] [blame] | 1524 | --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1525 | --enable-cscope Include cscope interface. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1526 | --disable-netbeans Disable NetBeans integration support. |
Bram Moolenaar | 8008b63 | 2017-07-18 21:33:20 +0200 | [diff] [blame] | 1527 | --disable-channel Disable process communication support. |
| 1528 | --enable-terminal Enable terminal emulation support. |
Bram Moolenaar | e42a6d2 | 2017-11-12 19:21:51 +0100 | [diff] [blame] | 1529 | --enable-autoservername Automatically define servername at vim startup. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1530 | --enable-multibyte Include multibyte editing support. |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 1531 | --disable-rightleft Do not include Right-to-Left language support. |
| 1532 | --disable-arabic Do not include Arabic language support. |
Bram Moolenaar | 14184a3 | 2019-02-16 15:10:30 +0100 | [diff] [blame] | 1533 | --disable-farsi Deprecated. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1534 | --enable-xim Include XIM input support. |
| 1535 | --enable-fontset Include X fontset output support. |
Bram Moolenaar | f52fac2 | 2022-03-11 16:01:26 +0000 | [diff] [blame] | 1536 | --enable-gui=OPTS X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/haiku/photon/carbon |
Bram Moolenaar | 182c5be | 2010-06-25 05:37:59 +0200 | [diff] [blame] | 1537 | --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1538 | --enable-gnome-check If GTK GUI, check for GNOME default=no |
Bram Moolenaar | 9892189 | 2016-02-23 17:14:37 +0100 | [diff] [blame] | 1539 | --enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1540 | --enable-motif-check If auto-select GUI, check for Motif default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1541 | --disable-gtktest Do not try to compile and run a test GTK program |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 1542 | --disable-icon-cache-update update disabled |
| 1543 | --disable-desktop-database-update update disabled |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 1544 | --disable-largefile omit support for large files |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 1545 | --disable-canberra Do not use libcanberra. |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 1546 | --disable-libsodium Do not use libsodium. |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 1547 | --disable-acl No check for ACL support. |
Bram Moolenaar | 0b40d08 | 2022-03-08 13:32:37 +0000 | [diff] [blame] | 1548 | --enable-gpm=OPTS Use gpm (Linux mouse daemon). default=yes OPTS=yes/no/dynamic |
Bram Moolenaar | 8008b63 | 2017-07-18 21:33:20 +0200 | [diff] [blame] | 1549 | --disable-sysmouse Don't use sysmouse (mouse in *BSD console). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1550 | --disable-nls Don't support NLS (gettext()). |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1551 | --enable-year2038 support timestamps after 2038 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1552 | |
| 1553 | Optional Packages: |
| 1554 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1555 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Bram Moolenaar | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 1556 | --with-mac-arch=ARCH current, intel, ppc or both |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 1557 | --with-developer-dir=PATH use PATH as location for Xcode developer tools |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 1558 | --with-local-dir=PATH search PATH instead of /usr/local for local libraries. |
| 1559 | --without-local-dir do not search /usr/local for local libraries. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1560 | --with-vim-name=NAME what to call the Vim executable |
| 1561 | --with-ex-name=NAME what to call the Ex executable |
| 1562 | --with-view-name=NAME what to call the View executable |
Bram Moolenaar | 9d302ad | 2018-12-21 11:48:51 +0100 | [diff] [blame] | 1563 | --with-global-runtime=DIR global runtime directory in 'runtimepath', comma-separated for multiple directories |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1564 | --with-modified-by=NAME name of who modified a release version |
Martin Tournoij | 25f3a14 | 2022-10-08 19:26:41 +0100 | [diff] [blame] | 1565 | --with-features=TYPE tiny, normal or huge (default: huge) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1566 | --with-compiledby=NAME name to show in :version message |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 1567 | --with-lua-prefix=PFX Prefix where Lua is installed. |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 1568 | --with-luajit Link with LuaJIT instead of Lua. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1569 | --with-plthome=PLTHOME Use PLTHOME. |
Zdenek Dohnal | 1b1c9f2 | 2023-11-02 20:19:06 +0100 | [diff] [blame] | 1570 | --with-xsubpp=PATH path to the xsubpp command |
Bram Moolenaar | e1a3231 | 2018-04-15 16:03:25 +0200 | [diff] [blame] | 1571 | --with-python-command=NAME name of the Python 2 command (default: python2 or python) |
| 1572 | --with-python-config-dir=PATH Python's config directory (deprecated) |
| 1573 | --with-python3-command=NAME name of the Python 3 command (default: python3 or python) |
Ken Takata | 1c032e3 | 2024-08-11 18:41:41 +0200 | [diff] [blame] | 1574 | --with-python3-stable-abi=VERSION stable ABI version to target (default: 3.8) |
Bram Moolenaar | e1a3231 | 2018-04-15 16:03:25 +0200 | [diff] [blame] | 1575 | --with-python3-config-dir=PATH Python's config directory (deprecated) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1576 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 1577 | --with-ruby-command=RUBY name of the Ruby command (default: ruby) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1578 | --with-x use the X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1579 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 1580 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 1581 | --with-gnome Specify prefix for GNOME files |
Bram Moolenaar | 8008b63 | 2017-07-18 21:33:20 +0200 | [diff] [blame] | 1582 | --with-motif-lib=STRING Library for Motif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1583 | --with-tlib=library terminal library to be used |
| 1584 | |
| 1585 | Some influential environment variables: |
| 1586 | CC C compiler command |
| 1587 | CFLAGS C compiler flags |
| 1588 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1589 | nonstandard directory <lib dir> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1590 | LIBS libraries to pass to the linker, e.g. -l<library> |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1591 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1592 | you have headers in a nonstandard directory <include dir> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1593 | CPP C preprocessor |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1594 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1595 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1596 | Use these variables to override the choices made by 'configure' or to help |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1597 | it to find libraries and programs with nonstandard names/locations. |
| 1598 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1599 | Report bugs to the package provider. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1600 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1601 | ac_status=$? |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1602 | fi |
| 1603 | |
| 1604 | if test "$ac_init_help" = "recursive"; then |
| 1605 | # If there are subdirs, report their specific --help. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1606 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1607 | test -d "$ac_dir" || |
| 1608 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1609 | continue |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1610 | ac_builddir=. |
| 1611 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1612 | case "$ac_dir" in |
| 1613 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1614 | *) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1615 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1616 | # A ".." for each directory in $ac_dir_suffix. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1617 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1618 | case $ac_top_builddir_sub in |
| 1619 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1620 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1621 | esac ;; |
| 1622 | esac |
| 1623 | ac_abs_top_builddir=$ac_pwd |
| 1624 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1625 | # for backward compatibility: |
| 1626 | ac_top_builddir=$ac_top_build_prefix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1627 | |
| 1628 | case $srcdir in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1629 | .) # We are building in place. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1630 | ac_srcdir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1631 | ac_top_srcdir=$ac_top_builddir_sub |
| 1632 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1633 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1634 | ac_srcdir=$srcdir$ac_dir_suffix; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1635 | ac_top_srcdir=$srcdir |
| 1636 | ac_abs_top_srcdir=$srcdir ;; |
| 1637 | *) # Relative name. |
| 1638 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1639 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1640 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1641 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1642 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1643 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1644 | cd "$ac_dir" || { ac_status=$?; continue; } |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1645 | # Check for configure.gnu first; this name is used for a wrapper for |
| 1646 | # Metaconfig's "Configure" on case-insensitive file systems. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1647 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1648 | echo && |
| 1649 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1650 | elif test -f "$ac_srcdir/configure"; then |
| 1651 | echo && |
| 1652 | $SHELL "$ac_srcdir/configure" --help=recursive |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1653 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1654 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1655 | fi || ac_status=$? |
| 1656 | cd "$ac_pwd" || { ac_status=$?; break; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1657 | done |
| 1658 | fi |
| 1659 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1660 | test -n "$ac_init_help" && exit $ac_status |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1661 | if $ac_init_version; then |
| 1662 | cat <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1663 | configure |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1664 | generated by GNU Autoconf 2.72 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1665 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1666 | Copyright (C) 2023 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1667 | This configure script is free software; the Free Software Foundation |
| 1668 | gives unlimited permission to copy, distribute and modify it. |
| 1669 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1670 | exit |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1671 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1672 | |
| 1673 | ## ------------------------ ## |
| 1674 | ## Autoconf initialization. ## |
| 1675 | ## ------------------------ ## |
| 1676 | |
| 1677 | # ac_fn_c_try_compile LINENO |
| 1678 | # -------------------------- |
| 1679 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1680 | ac_fn_c_try_compile () |
| 1681 | { |
| 1682 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1683 | rm -f conftest.$ac_objext conftest.beam |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1684 | if { { ac_try="$ac_compile" |
| 1685 | case "(($ac_try" in |
| 1686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1687 | *) ac_try_echo=$ac_try;; |
| 1688 | esac |
| 1689 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1690 | printf "%s\n" "$ac_try_echo"; } >&5 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1691 | (eval "$ac_compile") 2>conftest.err |
| 1692 | ac_status=$? |
| 1693 | if test -s conftest.err; then |
| 1694 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1695 | cat conftest.er1 >&5 |
| 1696 | mv -f conftest.er1 conftest.err |
| 1697 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1698 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1699 | test $ac_status = 0; } && { |
| 1700 | test -z "$ac_c_werror_flag" || |
| 1701 | test ! -s conftest.err |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1702 | } && test -s conftest.$ac_objext |
| 1703 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1704 | ac_retval=0 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1705 | else case e in #( |
| 1706 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1708 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1709 | ac_retval=1 ;; |
| 1710 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1711 | fi |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1712 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1713 | as_fn_set_status $ac_retval |
| 1714 | |
| 1715 | } # ac_fn_c_try_compile |
| 1716 | |
| 1717 | # ac_fn_c_try_cpp LINENO |
| 1718 | # ---------------------- |
| 1719 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1720 | ac_fn_c_try_cpp () |
| 1721 | { |
| 1722 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1723 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1724 | case "(($ac_try" in |
| 1725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1726 | *) ac_try_echo=$ac_try;; |
| 1727 | esac |
| 1728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1729 | printf "%s\n" "$ac_try_echo"; } >&5 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1730 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1731 | ac_status=$? |
| 1732 | if test -s conftest.err; then |
| 1733 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1734 | cat conftest.er1 >&5 |
| 1735 | mv -f conftest.er1 conftest.err |
| 1736 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1737 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1738 | test $ac_status = 0; } > conftest.i && { |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1739 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1740 | test ! -s conftest.err |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1741 | } |
| 1742 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1743 | ac_retval=0 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1744 | else case e in #( |
| 1745 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1747 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1748 | ac_retval=1 ;; |
| 1749 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1750 | fi |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1751 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1752 | as_fn_set_status $ac_retval |
| 1753 | |
| 1754 | } # ac_fn_c_try_cpp |
| 1755 | |
| 1756 | # ac_fn_c_try_link LINENO |
| 1757 | # ----------------------- |
| 1758 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1759 | ac_fn_c_try_link () |
| 1760 | { |
| 1761 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1762 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1763 | if { { ac_try="$ac_link" |
| 1764 | case "(($ac_try" in |
| 1765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1766 | *) ac_try_echo=$ac_try;; |
| 1767 | esac |
| 1768 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1769 | printf "%s\n" "$ac_try_echo"; } >&5 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1770 | (eval "$ac_link") 2>conftest.err |
| 1771 | ac_status=$? |
| 1772 | if test -s conftest.err; then |
| 1773 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1774 | cat conftest.er1 >&5 |
| 1775 | mv -f conftest.er1 conftest.err |
| 1776 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1777 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1778 | test $ac_status = 0; } && { |
| 1779 | test -z "$ac_c_werror_flag" || |
| 1780 | test ! -s conftest.err |
| 1781 | } && test -s conftest$ac_exeext && { |
| 1782 | test "$cross_compiling" = yes || |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1783 | test -x conftest$ac_exeext |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1784 | } |
| 1785 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1786 | ac_retval=0 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1787 | else case e in #( |
| 1788 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1790 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1791 | ac_retval=1 ;; |
| 1792 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1793 | fi |
| 1794 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1795 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1796 | # interfere with the next link command; also delete a directory that is |
| 1797 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1798 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1799 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1800 | as_fn_set_status $ac_retval |
| 1801 | |
| 1802 | } # ac_fn_c_try_link |
| 1803 | |
Illia Bobyr | 0e82b59 | 2023-08-29 21:16:29 +0200 | [diff] [blame] | 1804 | # ac_fn_c_try_run LINENO |
| 1805 | # ---------------------- |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1806 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 1807 | # executables *can* be run. |
Illia Bobyr | 0e82b59 | 2023-08-29 21:16:29 +0200 | [diff] [blame] | 1808 | ac_fn_c_try_run () |
| 1809 | { |
| 1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1811 | if { { ac_try="$ac_link" |
| 1812 | case "(($ac_try" in |
| 1813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1814 | *) ac_try_echo=$ac_try;; |
| 1815 | esac |
| 1816 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1817 | printf "%s\n" "$ac_try_echo"; } >&5 |
Illia Bobyr | 0e82b59 | 2023-08-29 21:16:29 +0200 | [diff] [blame] | 1818 | (eval "$ac_link") 2>&5 |
| 1819 | ac_status=$? |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1820 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Illia Bobyr | 0e82b59 | 2023-08-29 21:16:29 +0200 | [diff] [blame] | 1821 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1822 | { { case "(($ac_try" in |
| 1823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1824 | *) ac_try_echo=$ac_try;; |
| 1825 | esac |
| 1826 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1827 | printf "%s\n" "$ac_try_echo"; } >&5 |
Illia Bobyr | 0e82b59 | 2023-08-29 21:16:29 +0200 | [diff] [blame] | 1828 | (eval "$ac_try") 2>&5 |
| 1829 | ac_status=$? |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1830 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1831 | test $ac_status = 0; }; } |
| 1832 | then : |
Illia Bobyr | 0e82b59 | 2023-08-29 21:16:29 +0200 | [diff] [blame] | 1833 | ac_retval=0 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1834 | else case e in #( |
| 1835 | e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1836 | printf "%s\n" "$as_me: failed program was:" >&5 |
Illia Bobyr | 0e82b59 | 2023-08-29 21:16:29 +0200 | [diff] [blame] | 1837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1838 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1839 | ac_retval=$ac_status ;; |
| 1840 | esac |
Illia Bobyr | 0e82b59 | 2023-08-29 21:16:29 +0200 | [diff] [blame] | 1841 | fi |
| 1842 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1843 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1844 | as_fn_set_status $ac_retval |
| 1845 | |
| 1846 | } # ac_fn_c_try_run |
| 1847 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1848 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1849 | # ------------------------------------------------------- |
| 1850 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1851 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1852 | ac_fn_c_check_header_compile () |
| 1853 | { |
| 1854 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1856 | printf %s "checking for $2... " >&6; } |
| 1857 | if eval test \${$3+y} |
| 1858 | then : |
| 1859 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1860 | else case e in #( |
| 1861 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1862 | /* end confdefs.h. */ |
| 1863 | $4 |
| 1864 | #include <$2> |
| 1865 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1866 | if ac_fn_c_try_compile "$LINENO" |
| 1867 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1868 | eval "$3=yes" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1869 | else case e in #( |
| 1870 | e) eval "$3=no" ;; |
| 1871 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1872 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1873 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1874 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1875 | fi |
| 1876 | eval ac_res=\$$3 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1878 | printf "%s\n" "$ac_res" >&6; } |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1879 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1880 | |
| 1881 | } # ac_fn_c_check_header_compile |
| 1882 | |
| 1883 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1884 | # ---------------------------------- |
| 1885 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1886 | ac_fn_c_check_func () |
| 1887 | { |
| 1888 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1890 | printf %s "checking for $2... " >&6; } |
| 1891 | if eval test \${$3+y} |
| 1892 | then : |
| 1893 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1894 | else case e in #( |
| 1895 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1896 | /* end confdefs.h. */ |
| 1897 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1898 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1899 | #define $2 innocuous_$2 |
| 1900 | |
| 1901 | /* System header to define __stub macros and hopefully few prototypes, |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1902 | which can conflict with char $2 (void); below. */ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1903 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1904 | #include <limits.h> |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1905 | #undef $2 |
| 1906 | |
| 1907 | /* Override any GCC internal prototype to avoid an error. |
| 1908 | Use char because int might match the return type of a GCC |
| 1909 | builtin and then its argument prototype would still apply. */ |
| 1910 | #ifdef __cplusplus |
| 1911 | extern "C" |
| 1912 | #endif |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1913 | char $2 (void); |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1914 | /* The GNU C library defines this for functions which it implements |
| 1915 | to always fail with ENOSYS. Some functions are actually named |
| 1916 | something starting with __ and the normal name is an alias. */ |
| 1917 | #if defined __stub_$2 || defined __stub___$2 |
| 1918 | choke me |
| 1919 | #endif |
| 1920 | |
| 1921 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1922 | main (void) |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1923 | { |
| 1924 | return $2 (); |
| 1925 | ; |
| 1926 | return 0; |
| 1927 | } |
| 1928 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1929 | if ac_fn_c_try_link "$LINENO" |
| 1930 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1931 | eval "$3=yes" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1932 | else case e in #( |
| 1933 | e) eval "$3=no" ;; |
| 1934 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1935 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1936 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1937 | conftest$ac_exeext conftest.$ac_ext ;; |
| 1938 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1939 | fi |
| 1940 | eval ac_res=\$$3 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1941 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1942 | printf "%s\n" "$ac_res" >&6; } |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1943 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 1944 | |
| 1945 | } # ac_fn_c_check_func |
| 1946 | |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 1947 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1948 | # -------------------------------------------- |
| 1949 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1950 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1951 | # computed |
| 1952 | ac_fn_c_compute_int () |
| 1953 | { |
| 1954 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1955 | if test "$cross_compiling" = yes; then |
| 1956 | # Depending upon the size, compute the lo and hi bounds. |
| 1957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1958 | /* end confdefs.h. */ |
| 1959 | $4 |
| 1960 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1961 | main (void) |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 1962 | { |
| 1963 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1964 | test_array [0] = 0; |
| 1965 | return test_array [0]; |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 1966 | |
| 1967 | ; |
| 1968 | return 0; |
| 1969 | } |
| 1970 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1971 | if ac_fn_c_try_compile "$LINENO" |
| 1972 | then : |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 1973 | ac_lo=0 ac_mid=0 |
| 1974 | while :; do |
| 1975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1976 | /* end confdefs.h. */ |
| 1977 | $4 |
| 1978 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1979 | main (void) |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 1980 | { |
| 1981 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 1982 | test_array [0] = 0; |
| 1983 | return test_array [0]; |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 1984 | |
| 1985 | ; |
| 1986 | return 0; |
| 1987 | } |
| 1988 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 1989 | if ac_fn_c_try_compile "$LINENO" |
| 1990 | then : |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 1991 | ac_hi=$ac_mid; break |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1992 | else case e in #( |
| 1993 | e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 1994 | if test $ac_lo -le $ac_mid; then |
| 1995 | ac_lo= ac_hi= |
| 1996 | break |
| 1997 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 1998 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; |
| 1999 | esac |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2000 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2001 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2002 | done |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2003 | else case e in #( |
| 2004 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2005 | /* end confdefs.h. */ |
| 2006 | $4 |
| 2007 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2008 | main (void) |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2009 | { |
| 2010 | static int test_array [1 - 2 * !(($2) < 0)]; |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 2011 | test_array [0] = 0; |
| 2012 | return test_array [0]; |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2013 | |
| 2014 | ; |
| 2015 | return 0; |
| 2016 | } |
| 2017 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2018 | if ac_fn_c_try_compile "$LINENO" |
| 2019 | then : |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2020 | ac_hi=-1 ac_mid=-1 |
| 2021 | while :; do |
| 2022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2023 | /* end confdefs.h. */ |
| 2024 | $4 |
| 2025 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2026 | main (void) |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2027 | { |
| 2028 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 2029 | test_array [0] = 0; |
| 2030 | return test_array [0]; |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2031 | |
| 2032 | ; |
| 2033 | return 0; |
| 2034 | } |
| 2035 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2036 | if ac_fn_c_try_compile "$LINENO" |
| 2037 | then : |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2038 | ac_lo=$ac_mid; break |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2039 | else case e in #( |
| 2040 | e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2041 | if test $ac_mid -le $ac_hi; then |
| 2042 | ac_lo= ac_hi= |
| 2043 | break |
| 2044 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2045 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; |
| 2046 | esac |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2047 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2048 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2049 | done |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2050 | else case e in #( |
| 2051 | e) ac_lo= ac_hi= ;; |
| 2052 | esac |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2053 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2054 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2055 | esac |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2056 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2057 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2058 | # Binary search between lo and hi bounds. |
| 2059 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2060 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2062 | /* end confdefs.h. */ |
| 2063 | $4 |
| 2064 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2065 | main (void) |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2066 | { |
| 2067 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 2068 | test_array [0] = 0; |
| 2069 | return test_array [0]; |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2070 | |
| 2071 | ; |
| 2072 | return 0; |
| 2073 | } |
| 2074 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2075 | if ac_fn_c_try_compile "$LINENO" |
| 2076 | then : |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2077 | ac_hi=$ac_mid |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2078 | else case e in #( |
| 2079 | e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; |
| 2080 | esac |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2081 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2082 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2083 | done |
| 2084 | case $ac_lo in #(( |
| 2085 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2086 | '') ac_retval=1 ;; |
| 2087 | esac |
| 2088 | else |
| 2089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2090 | /* end confdefs.h. */ |
| 2091 | $4 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2092 | static long int longval (void) { return $2; } |
| 2093 | static unsigned long int ulongval (void) { return $2; } |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2094 | #include <stdio.h> |
| 2095 | #include <stdlib.h> |
| 2096 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2097 | main (void) |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2098 | { |
| 2099 | |
| 2100 | FILE *f = fopen ("conftest.val", "w"); |
| 2101 | if (! f) |
| 2102 | return 1; |
| 2103 | if (($2) < 0) |
| 2104 | { |
| 2105 | long int i = longval (); |
| 2106 | if (i != ($2)) |
| 2107 | return 1; |
| 2108 | fprintf (f, "%ld", i); |
| 2109 | } |
| 2110 | else |
| 2111 | { |
| 2112 | unsigned long int i = ulongval (); |
| 2113 | if (i != ($2)) |
| 2114 | return 1; |
| 2115 | fprintf (f, "%lu", i); |
| 2116 | } |
| 2117 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2118 | on some platforms. */ |
| 2119 | return ferror (f) || fclose (f) != 0; |
| 2120 | |
| 2121 | ; |
| 2122 | return 0; |
| 2123 | } |
| 2124 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2125 | if ac_fn_c_try_run "$LINENO" |
| 2126 | then : |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2127 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2128 | else case e in #( |
| 2129 | e) ac_retval=1 ;; |
| 2130 | esac |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2131 | fi |
| 2132 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2133 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2134 | rm -f conftest.val |
| 2135 | |
| 2136 | fi |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 2137 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 2138 | as_fn_set_status $ac_retval |
| 2139 | |
| 2140 | } # ac_fn_c_compute_int |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2141 | |
| 2142 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2143 | # ------------------------------------------- |
| 2144 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2145 | # variable VAR accordingly. |
| 2146 | ac_fn_c_check_type () |
| 2147 | { |
| 2148 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2150 | printf %s "checking for $2... " >&6; } |
| 2151 | if eval test \${$3+y} |
| 2152 | then : |
| 2153 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2154 | else case e in #( |
| 2155 | e) eval "$3=no" |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2157 | /* end confdefs.h. */ |
| 2158 | $4 |
| 2159 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2160 | main (void) |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2161 | { |
| 2162 | if (sizeof ($2)) |
| 2163 | return 0; |
| 2164 | ; |
| 2165 | return 0; |
| 2166 | } |
| 2167 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2168 | if ac_fn_c_try_compile "$LINENO" |
| 2169 | then : |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2171 | /* end confdefs.h. */ |
| 2172 | $4 |
| 2173 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2174 | main (void) |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2175 | { |
| 2176 | if (sizeof (($2))) |
| 2177 | return 0; |
| 2178 | ; |
| 2179 | return 0; |
| 2180 | } |
| 2181 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2182 | if ac_fn_c_try_compile "$LINENO" |
| 2183 | then : |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2184 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2185 | else case e in #( |
| 2186 | e) eval "$3=yes" ;; |
| 2187 | esac |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2188 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2189 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2190 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2191 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2192 | esac |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2193 | fi |
| 2194 | eval ac_res=\$$3 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2196 | printf "%s\n" "$ac_res" >&6; } |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2197 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2198 | |
| 2199 | } # ac_fn_c_check_type |
| 2200 | |
| 2201 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 2202 | # ------------------------------------ |
| 2203 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 2204 | # accordingly. |
| 2205 | ac_fn_c_find_uintX_t () |
| 2206 | { |
| 2207 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2208 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 2209 | printf %s "checking for uint$2_t... " >&6; } |
| 2210 | if eval test \${$3+y} |
| 2211 | then : |
| 2212 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2213 | else case e in #( |
| 2214 | e) eval "$3=no" |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2215 | # Order is important - never check a type that is potentially smaller |
| 2216 | # than half of the expected target width. |
| 2217 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 2218 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 2219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2220 | /* end confdefs.h. */ |
| 2221 | $ac_includes_default |
| 2222 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2223 | main (void) |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2224 | { |
| 2225 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 2226 | test_array [0] = 0; |
| 2227 | return test_array [0]; |
| 2228 | |
| 2229 | ; |
| 2230 | return 0; |
| 2231 | } |
| 2232 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2233 | if ac_fn_c_try_compile "$LINENO" |
| 2234 | then : |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2235 | case $ac_type in #( |
| 2236 | uint$2_t) : |
| 2237 | eval "$3=yes" ;; #( |
| 2238 | *) : |
| 2239 | eval "$3=\$ac_type" ;; |
| 2240 | esac |
| 2241 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2242 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2243 | if eval test \"x\$"$3"\" = x"no" |
| 2244 | then : |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2245 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2246 | else case e in #( |
| 2247 | e) break ;; |
| 2248 | esac |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2249 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2250 | done ;; |
| 2251 | esac |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2252 | fi |
| 2253 | eval ac_res=\$$3 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2255 | printf "%s\n" "$ac_res" >&6; } |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 2256 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2257 | |
| 2258 | } # ac_fn_c_find_uintX_t |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2259 | ac_configure_args_raw= |
| 2260 | for ac_arg |
| 2261 | do |
| 2262 | case $ac_arg in |
| 2263 | *\'*) |
| 2264 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2265 | esac |
| 2266 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2267 | done |
| 2268 | |
| 2269 | case $ac_configure_args_raw in |
| 2270 | *$as_nl*) |
| 2271 | ac_safe_unquote= ;; |
| 2272 | *) |
| 2273 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2274 | ac_unsafe_a="$ac_unsafe_z#~" |
| 2275 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2276 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2277 | esac |
| 2278 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2279 | cat >auto/config.log <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2280 | This file contains any messages produced by compilers while |
| 2281 | running configure, to aid debugging if configure makes a mistake. |
| 2282 | |
| 2283 | It was created by $as_me, which was |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2284 | generated by GNU Autoconf 2.72. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2285 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2286 | $ $0$ac_configure_args_raw |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2287 | |
| 2288 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2289 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2290 | { |
| 2291 | cat <<_ASUNAME |
| 2292 | ## --------- ## |
| 2293 | ## Platform. ## |
| 2294 | ## --------- ## |
| 2295 | |
| 2296 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2297 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2298 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2299 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2300 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2301 | |
| 2302 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2303 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2304 | |
| 2305 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2306 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2307 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2308 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2309 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2310 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2311 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2312 | |
| 2313 | _ASUNAME |
| 2314 | |
| 2315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2316 | for as_dir in $PATH |
| 2317 | do |
| 2318 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2319 | case $as_dir in #((( |
| 2320 | '') as_dir=./ ;; |
| 2321 | */) ;; |
| 2322 | *) as_dir=$as_dir/ ;; |
| 2323 | esac |
| 2324 | printf "%s\n" "PATH: $as_dir" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 2325 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2326 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2327 | |
| 2328 | } >&5 |
| 2329 | |
| 2330 | cat >&5 <<_ACEOF |
| 2331 | |
| 2332 | |
| 2333 | ## ----------- ## |
| 2334 | ## Core tests. ## |
| 2335 | ## ----------- ## |
| 2336 | |
| 2337 | _ACEOF |
| 2338 | |
| 2339 | |
| 2340 | # Keep a trace of the command line. |
| 2341 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2342 | # Strip out --silent because we don't want to record it for future runs. |
| 2343 | # Also quote any args containing shell meta-characters. |
| 2344 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2345 | ac_configure_args= |
| 2346 | ac_configure_args0= |
| 2347 | ac_configure_args1= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2348 | ac_must_keep_next=false |
| 2349 | for ac_pass in 1 2 |
| 2350 | do |
| 2351 | for ac_arg |
| 2352 | do |
| 2353 | case $ac_arg in |
| 2354 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2355 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2356 | | -silent | --silent | --silen | --sile | --sil) |
| 2357 | continue ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2358 | *\'*) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2359 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2360 | esac |
| 2361 | case $ac_pass in |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 2362 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2363 | 2) |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 2364 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2365 | if test $ac_must_keep_next = true; then |
| 2366 | ac_must_keep_next=false # Got value, back to normal. |
| 2367 | else |
| 2368 | case $ac_arg in |
| 2369 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2370 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2371 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2372 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2373 | case "$ac_configure_args0 " in |
| 2374 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2375 | esac |
| 2376 | ;; |
| 2377 | -* ) ac_must_keep_next=true ;; |
| 2378 | esac |
| 2379 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 2380 | as_fn_append ac_configure_args " '$ac_arg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2381 | ;; |
| 2382 | esac |
| 2383 | done |
| 2384 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 2385 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2386 | { ac_configure_args1=; unset ac_configure_args1;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2387 | |
| 2388 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2389 | # config.log. We remove comments because anyway the quotes in there |
| 2390 | # would cause problems or look ugly. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2391 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2392 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2393 | trap 'exit_status=$? |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2394 | # Sanitize IFS. |
| 2395 | IFS=" "" $as_nl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2396 | # Save into config.log some information that might help in debugging. |
| 2397 | { |
| 2398 | echo |
| 2399 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2400 | printf "%s\n" "## ---------------- ## |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2401 | ## Cache variables. ## |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 2402 | ## ---------------- ##" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2403 | echo |
| 2404 | # The following way of writing the cache mishandles newlines in values, |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2405 | ( |
| 2406 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2407 | eval ac_val=\$$ac_var |
| 2408 | case $ac_val in #( |
| 2409 | *${as_nl}*) |
| 2410 | case $ac_var in #( |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2411 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2412 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2413 | esac |
| 2414 | case $ac_var in #( |
| 2415 | _ | IFS | as_nl) ;; #( |
| 2416 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 2417 | *) { eval $ac_var=; unset $ac_var;} ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2418 | esac ;; |
| 2419 | esac |
| 2420 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2421 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2422 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2423 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2424 | sed -n \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2425 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2426 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2427 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2428 | *) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2429 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2430 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2431 | esac | |
| 2432 | sort |
| 2433 | ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2434 | echo |
| 2435 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2436 | printf "%s\n" "## ----------------- ## |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2437 | ## Output variables. ## |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 2438 | ## ----------------- ##" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2439 | echo |
| 2440 | for ac_var in $ac_subst_vars |
| 2441 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2442 | eval ac_val=\$$ac_var |
| 2443 | case $ac_val in |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2444 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2445 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2446 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2447 | done | sort |
| 2448 | echo |
| 2449 | |
| 2450 | if test -n "$ac_subst_files"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2451 | printf "%s\n" "## ------------------- ## |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2452 | ## File substitutions. ## |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 2453 | ## ------------------- ##" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2454 | echo |
| 2455 | for ac_var in $ac_subst_files |
| 2456 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2457 | eval ac_val=\$$ac_var |
| 2458 | case $ac_val in |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2459 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2460 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2461 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2462 | done | sort |
| 2463 | echo |
| 2464 | fi |
| 2465 | |
| 2466 | if test -s confdefs.h; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2467 | printf "%s\n" "## ----------- ## |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2468 | ## confdefs.h. ## |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 2469 | ## ----------- ##" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2470 | echo |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2471 | cat confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2472 | echo |
| 2473 | fi |
| 2474 | test "$ac_signal" != 0 && |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2475 | printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2476 | printf "%s\n" "$as_me: exit $exit_status" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2477 | } >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2478 | rm -f core *.core core.conftest.* && |
| 2479 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2480 | exit $exit_status |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2481 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2482 | for ac_signal in 1 2 13 15; do |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 2483 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2484 | done |
| 2485 | ac_signal=0 |
| 2486 | |
| 2487 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2488 | rm -f -r conftest* confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2489 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2490 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 2491 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2492 | # Predefined preprocessor variables. |
| 2493 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2494 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2495 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2496 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2497 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2498 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2499 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2500 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2501 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2502 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2503 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2504 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 2505 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2506 | |
| 2507 | # Let the site file select an alternate cache file if it wants to. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2508 | # Prefer an explicitly selected file to automatically selected ones. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2509 | if test -n "$CONFIG_SITE"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2510 | ac_site_files="$CONFIG_SITE" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2511 | elif test "x$prefix" != xNONE; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2512 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2513 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2514 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2515 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2516 | |
| 2517 | for ac_site_file in $ac_site_files |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2518 | do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2519 | case $ac_site_file in #( |
| 2520 | */*) : |
| 2521 | ;; #( |
| 2522 | *) : |
| 2523 | ac_site_file=./$ac_site_file ;; |
| 2524 | esac |
| 2525 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2527 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2528 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 2529 | . "$ac_site_file" \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2530 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2531 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 2532 | as_fn_error $? "failed to load site script $ac_site_file |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2533 | See 'config.log' for more details" "$LINENO" 5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2534 | fi |
| 2535 | done |
| 2536 | |
| 2537 | if test -r "$cache_file"; then |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 2538 | # Some versions of bash will fail to source /dev/null (special files |
| 2539 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2540 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2542 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2543 | case $cache_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2544 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2545 | *) . "./$cache_file";; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2546 | esac |
| 2547 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2548 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2549 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2550 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2551 | >$cache_file |
| 2552 | fi |
| 2553 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2554 | # Test code for whether the C compiler supports C89 (global declarations) |
| 2555 | ac_c_conftest_c89_globals=' |
| 2556 | /* Does the compiler advertise C89 conformance? |
| 2557 | Do not test the value of __STDC__, because some compilers set it to 0 |
| 2558 | while being otherwise adequately conformant. */ |
| 2559 | #if !defined __STDC__ |
| 2560 | # error "Compiler does not advertise C89 conformance" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2561 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2562 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2563 | #include <stddef.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2564 | #include <stdarg.h> |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 2565 | struct stat; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2566 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2567 | struct buf { int x; }; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2568 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2569 | static char *e (char **p, int i) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2570 | { |
| 2571 | return p[i]; |
| 2572 | } |
| 2573 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2574 | { |
| 2575 | char *s; |
| 2576 | va_list v; |
| 2577 | va_start (v,p); |
| 2578 | s = g (p, va_arg (v,int)); |
| 2579 | va_end (v); |
| 2580 | return s; |
| 2581 | } |
| 2582 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2583 | /* C89 style stringification. */ |
| 2584 | #define noexpand_stringify(a) #a |
| 2585 | const char *stringified = noexpand_stringify(arbitrary+token=sequence); |
| 2586 | |
| 2587 | /* C89 style token pasting. Exercises some of the corner cases that |
| 2588 | e.g. old MSVC gets wrong, but not very hard. */ |
| 2589 | #define noexpand_concat(a,b) a##b |
| 2590 | #define expand_concat(a,b) noexpand_concat(a,b) |
| 2591 | extern int vA; |
| 2592 | extern int vbee; |
| 2593 | #define aye A |
| 2594 | #define bee B |
| 2595 | int *pvA = &expand_concat(v,aye); |
| 2596 | int *pvbee = &noexpand_concat(v,bee); |
| 2597 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2598 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2599 | function prototypes and stuff, but not \xHH hex character constants. |
| 2600 | These do not provoke an error unfortunately, instead are silently treated |
| 2601 | as an "x". The following induces an error, until -std is added to get |
| 2602 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2603 | array size at least. It is necessary to write \x00 == 0 to get something |
| 2604 | that is true only with -std. */ |
| 2605 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2606 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2607 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2608 | inside strings and character constants. */ |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2609 | #define FOO(x) '\''x'\'' |
| 2610 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2611 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2612 | int test (int i, double x); |
| 2613 | struct s1 {int (*f) (int a);}; |
| 2614 | struct s2 {int (*f) (double a);}; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2615 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2616 | int, int);' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2617 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2618 | # Test code for whether the C compiler supports C89 (body of main). |
| 2619 | ac_c_conftest_c89_main=' |
| 2620 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2621 | ' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2622 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2623 | # Test code for whether the C compiler supports C99 (global declarations) |
| 2624 | ac_c_conftest_c99_globals=' |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2625 | /* Does the compiler advertise C99 conformance? */ |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2626 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2627 | # error "Compiler does not advertise C99 conformance" |
| 2628 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2629 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2630 | // See if C++-style comments work. |
| 2631 | |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2632 | #include <stdbool.h> |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2633 | extern int puts (const char *); |
| 2634 | extern int printf (const char *, ...); |
| 2635 | extern int dprintf (int, const char *, ...); |
| 2636 | extern void *malloc (size_t); |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2637 | extern void free (void *); |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2638 | |
| 2639 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2640 | // dprintf is used instead of fprintf to avoid needing to declare |
| 2641 | // FILE and stderr. |
| 2642 | #define debug(...) dprintf (2, __VA_ARGS__) |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2643 | #define showlist(...) puts (#__VA_ARGS__) |
| 2644 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2645 | static void |
| 2646 | test_varargs_macros (void) |
Bram Moolenaar | 2e32495 | 2018-04-14 14:37:07 +0200 | [diff] [blame] | 2647 | { |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2648 | int x = 1234; |
| 2649 | int y = 5678; |
| 2650 | debug ("Flag"); |
| 2651 | debug ("X = %d\n", x); |
| 2652 | showlist (The first, second, and third items.); |
| 2653 | report (x>y, "x is %d but y is %d", x, y); |
Bram Moolenaar | 2e32495 | 2018-04-14 14:37:07 +0200 | [diff] [blame] | 2654 | } |
| 2655 | |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2656 | // Check long long types. |
| 2657 | #define BIG64 18446744073709551615ull |
| 2658 | #define BIG32 4294967295ul |
| 2659 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2660 | #if !BIG_OK |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2661 | #error "your preprocessor is broken" |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2662 | #endif |
| 2663 | #if BIG_OK |
| 2664 | #else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2665 | #error "your preprocessor is broken" |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2666 | #endif |
| 2667 | static long long int bignum = -9223372036854775807LL; |
| 2668 | static unsigned long long int ubignum = BIG64; |
Bram Moolenaar | 2e32495 | 2018-04-14 14:37:07 +0200 | [diff] [blame] | 2669 | |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2670 | struct incomplete_array |
| 2671 | { |
| 2672 | int datasize; |
| 2673 | double data[]; |
| 2674 | }; |
Bram Moolenaar | 2e32495 | 2018-04-14 14:37:07 +0200 | [diff] [blame] | 2675 | |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2676 | struct named_init { |
| 2677 | int number; |
| 2678 | const wchar_t *name; |
| 2679 | double average; |
| 2680 | }; |
| 2681 | |
| 2682 | typedef const char *ccp; |
| 2683 | |
| 2684 | static inline int |
| 2685 | test_restrict (ccp restrict text) |
| 2686 | { |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2687 | // Iterate through items via the restricted pointer. |
| 2688 | // Also check for declarations in for loops. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2689 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2690 | continue; |
| 2691 | return 0; |
| 2692 | } |
| 2693 | |
| 2694 | // Check varargs and va_copy. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2695 | static bool |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2696 | test_varargs (const char *format, ...) |
| 2697 | { |
| 2698 | va_list args; |
| 2699 | va_start (args, format); |
| 2700 | va_list args_copy; |
| 2701 | va_copy (args_copy, args); |
| 2702 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2703 | const char *str = ""; |
| 2704 | int number = 0; |
| 2705 | float fnumber = 0; |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2706 | |
| 2707 | while (*format) |
| 2708 | { |
| 2709 | switch (*format++) |
| 2710 | { |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2711 | case '\''s'\'': // string |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2712 | str = va_arg (args_copy, const char *); |
| 2713 | break; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2714 | case '\''d'\'': // int |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2715 | number = va_arg (args_copy, int); |
| 2716 | break; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2717 | case '\''f'\'': // float |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2718 | fnumber = va_arg (args_copy, double); |
| 2719 | break; |
| 2720 | default: |
| 2721 | break; |
| 2722 | } |
| 2723 | } |
| 2724 | va_end (args_copy); |
| 2725 | va_end (args); |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2726 | |
| 2727 | return *str && number && fnumber; |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2728 | } |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2729 | ' |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2730 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2731 | # Test code for whether the C compiler supports C99 (body of main). |
| 2732 | ac_c_conftest_c99_main=' |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2733 | // Check bool. |
| 2734 | _Bool success = false; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2735 | success |= (argc != 0); |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2736 | |
| 2737 | // Check restrict. |
| 2738 | if (test_restrict ("String literal") == 0) |
| 2739 | success = true; |
| 2740 | char *restrict newvar = "Another string"; |
| 2741 | |
| 2742 | // Check varargs. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2743 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2744 | test_varargs_macros (); |
| 2745 | |
| 2746 | // Check flexible array members. |
| 2747 | struct incomplete_array *ia = |
| 2748 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2749 | ia->datasize = 10; |
| 2750 | for (int i = 0; i < ia->datasize; ++i) |
| 2751 | ia->data[i] = i * 1.234; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2752 | // Work around memory leak warnings. |
| 2753 | free (ia); |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2754 | |
| 2755 | // Check named initializers. |
| 2756 | struct named_init ni = { |
| 2757 | .number = 34, |
| 2758 | .name = L"Test wide string", |
| 2759 | .average = 543.34343, |
| 2760 | }; |
| 2761 | |
| 2762 | ni.number = 58; |
| 2763 | |
| 2764 | int dynamic_array[ni.number]; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2765 | dynamic_array[0] = argv[0][0]; |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 2766 | dynamic_array[ni.number - 1] = 543; |
| 2767 | |
| 2768 | // work around unused variable warnings |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2769 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2770 | || dynamic_array[ni.number - 1] != 543); |
| 2771 | ' |
| 2772 | |
| 2773 | # Test code for whether the C compiler supports C11 (global declarations) |
| 2774 | ac_c_conftest_c11_globals=' |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2775 | /* Does the compiler advertise C11 conformance? */ |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2776 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2777 | # error "Compiler does not advertise C11 conformance" |
| 2778 | #endif |
| 2779 | |
| 2780 | // Check _Alignas. |
| 2781 | char _Alignas (double) aligned_as_double; |
| 2782 | char _Alignas (0) no_special_alignment; |
| 2783 | extern char aligned_as_int; |
| 2784 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2785 | |
| 2786 | // Check _Alignof. |
| 2787 | enum |
| 2788 | { |
| 2789 | int_alignment = _Alignof (int), |
| 2790 | int_array_alignment = _Alignof (int[100]), |
| 2791 | char_alignment = _Alignof (char) |
| 2792 | }; |
| 2793 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2794 | |
| 2795 | // Check _Noreturn. |
| 2796 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2797 | |
| 2798 | // Check _Static_assert. |
| 2799 | struct test_static_assert |
| 2800 | { |
| 2801 | int x; |
| 2802 | _Static_assert (sizeof (int) <= sizeof (long int), |
| 2803 | "_Static_assert does not work in struct"); |
| 2804 | long int y; |
| 2805 | }; |
| 2806 | |
| 2807 | // Check UTF-8 literals. |
| 2808 | #define u8 syntax error! |
| 2809 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2810 | |
| 2811 | // Check duplicate typedefs. |
| 2812 | typedef long *long_ptr; |
| 2813 | typedef long int *long_ptr; |
| 2814 | typedef long_ptr long_ptr; |
| 2815 | |
| 2816 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2817 | struct anonymous |
| 2818 | { |
| 2819 | union { |
| 2820 | struct { int i; int j; }; |
| 2821 | struct { int k; long int l; } w; |
| 2822 | }; |
| 2823 | int m; |
| 2824 | } v1; |
| 2825 | ' |
| 2826 | |
| 2827 | # Test code for whether the C compiler supports C11 (body of main). |
| 2828 | ac_c_conftest_c11_main=' |
| 2829 | _Static_assert ((offsetof (struct anonymous, i) |
| 2830 | == offsetof (struct anonymous, w.k)), |
| 2831 | "Anonymous union alignment botch"); |
| 2832 | v1.i = 2; |
| 2833 | v1.w.k = 5; |
| 2834 | ok |= v1.i != 5; |
| 2835 | ' |
| 2836 | |
| 2837 | # Test code for whether the C compiler supports C11 (complete). |
| 2838 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2839 | ${ac_c_conftest_c99_globals} |
| 2840 | ${ac_c_conftest_c11_globals} |
| 2841 | |
| 2842 | int |
| 2843 | main (int argc, char **argv) |
| 2844 | { |
| 2845 | int ok = 0; |
| 2846 | ${ac_c_conftest_c89_main} |
| 2847 | ${ac_c_conftest_c99_main} |
| 2848 | ${ac_c_conftest_c11_main} |
| 2849 | return ok; |
| 2850 | } |
| 2851 | " |
| 2852 | |
| 2853 | # Test code for whether the C compiler supports C99 (complete). |
| 2854 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2855 | ${ac_c_conftest_c99_globals} |
| 2856 | |
| 2857 | int |
| 2858 | main (int argc, char **argv) |
| 2859 | { |
| 2860 | int ok = 0; |
| 2861 | ${ac_c_conftest_c89_main} |
| 2862 | ${ac_c_conftest_c99_main} |
| 2863 | return ok; |
| 2864 | } |
| 2865 | " |
| 2866 | |
| 2867 | # Test code for whether the C compiler supports C89 (complete). |
| 2868 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2869 | |
| 2870 | int |
| 2871 | main (int argc, char **argv) |
| 2872 | { |
| 2873 | int ok = 0; |
| 2874 | ${ac_c_conftest_c89_main} |
| 2875 | return ok; |
| 2876 | } |
| 2877 | " |
| 2878 | |
| 2879 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 2880 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 2881 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 2882 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 2883 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 2884 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 2885 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 2886 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 2887 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 2888 | as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" |
| 2889 | as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H" |
| 2890 | as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H" |
| 2891 | # Check that the precious variables saved in the cache have kept the same |
| 2892 | # value. |
| 2893 | ac_cache_corrupted=false |
| 2894 | for ac_var in $ac_precious_vars; do |
| 2895 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2896 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2897 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2898 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2899 | case $ac_old_set,$ac_new_set in |
| 2900 | set,) |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 |
| 2902 | printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2903 | ac_cache_corrupted=: ;; |
| 2904 | ,set) |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 |
| 2906 | printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2907 | ac_cache_corrupted=: ;; |
| 2908 | ,);; |
| 2909 | *) |
| 2910 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2911 | # differences in whitespace do not lead to failure. |
| 2912 | ac_old_val_w=`echo x $ac_old_val` |
| 2913 | ac_new_val_w=`echo x $ac_new_val` |
| 2914 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 |
| 2916 | printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2917 | ac_cache_corrupted=: |
| 2918 | else |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 |
| 2920 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2921 | eval $ac_var=\$ac_old_val |
| 2922 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2923 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 |
| 2924 | printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} |
| 2925 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 |
| 2926 | printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2927 | fi;; |
| 2928 | esac |
| 2929 | # Pass precious variables to config.status. |
| 2930 | if test "$ac_new_set" = set; then |
| 2931 | case $ac_new_val in |
| 2932 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2933 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2934 | esac |
| 2935 | case " $ac_configure_args " in |
| 2936 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2937 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2938 | esac |
| 2939 | fi |
| 2940 | done |
| 2941 | if $ac_cache_corrupted; then |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2943 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2945 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2946 | as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2947 | and start over" "$LINENO" 5 |
| 2948 | fi |
| 2949 | ## -------------------- ## |
| 2950 | ## Main body of script. ## |
| 2951 | ## -------------------- ## |
| 2952 | |
| 2953 | ac_ext=c |
| 2954 | ac_cpp='$CPP $CPPFLAGS' |
| 2955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2958 | |
| 2959 | |
| 2960 | |
| 2961 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
| 2962 | |
| 2963 | |
| 2964 | printf "%s\n" "#define UNIX 1" >>confdefs.h |
| 2965 | |
| 2966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2967 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2968 | set x ${MAKE-make} |
| 2969 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2970 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 2971 | then : |
| 2972 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2973 | else case e in #( |
| 2974 | e) cat >conftest.make <<\_ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2975 | SHELL = /bin/sh |
| 2976 | all: |
| 2977 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2978 | _ACEOF |
| 2979 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 2980 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2981 | *@@@%%%=?*=@@@%%%*) |
| 2982 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2983 | *) |
| 2984 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2985 | esac |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 2986 | rm -f conftest.make ;; |
| 2987 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 2988 | fi |
| 2989 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2991 | printf "%s\n" "yes" >&6; } |
| 2992 | SET_MAKE= |
| 2993 | else |
| 2994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2995 | printf "%s\n" "no" >&6; } |
| 2996 | SET_MAKE="MAKE=${MAKE-make}" |
| 2997 | fi |
| 2998 | |
| 2999 | |
| 3000 | |
| 3001 | |
| 3002 | |
| 3003 | |
| 3004 | |
| 3005 | |
| 3006 | |
| 3007 | |
| 3008 | |
| 3009 | ac_ext=c |
| 3010 | ac_cpp='$CPP $CPPFLAGS' |
| 3011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3014 | if test -n "$ac_tool_prefix"; then |
| 3015 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3016 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3018 | printf %s "checking for $ac_word... " >&6; } |
| 3019 | if test ${ac_cv_prog_CC+y} |
| 3020 | then : |
| 3021 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3022 | else case e in #( |
| 3023 | e) if test -n "$CC"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3024 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3025 | else |
| 3026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3027 | for as_dir in $PATH |
| 3028 | do |
| 3029 | IFS=$as_save_IFS |
| 3030 | case $as_dir in #((( |
| 3031 | '') as_dir=./ ;; |
| 3032 | */) ;; |
| 3033 | *) as_dir=$as_dir/ ;; |
| 3034 | esac |
| 3035 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3036 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3037 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3038 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3039 | break 2 |
| 3040 | fi |
| 3041 | done |
| 3042 | done |
| 3043 | IFS=$as_save_IFS |
| 3044 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3045 | fi ;; |
| 3046 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3047 | fi |
| 3048 | CC=$ac_cv_prog_CC |
| 3049 | if test -n "$CC"; then |
| 3050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3051 | printf "%s\n" "$CC" >&6; } |
| 3052 | else |
| 3053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3054 | printf "%s\n" "no" >&6; } |
| 3055 | fi |
| 3056 | |
| 3057 | |
| 3058 | fi |
| 3059 | if test -z "$ac_cv_prog_CC"; then |
| 3060 | ac_ct_CC=$CC |
| 3061 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3062 | set dummy gcc; ac_word=$2 |
| 3063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3064 | printf %s "checking for $ac_word... " >&6; } |
| 3065 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3066 | then : |
| 3067 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3068 | else case e in #( |
| 3069 | e) if test -n "$ac_ct_CC"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3070 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3071 | else |
| 3072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3073 | for as_dir in $PATH |
| 3074 | do |
| 3075 | IFS=$as_save_IFS |
| 3076 | case $as_dir in #((( |
| 3077 | '') as_dir=./ ;; |
| 3078 | */) ;; |
| 3079 | *) as_dir=$as_dir/ ;; |
| 3080 | esac |
| 3081 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3082 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3083 | ac_cv_prog_ac_ct_CC="gcc" |
| 3084 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3085 | break 2 |
| 3086 | fi |
| 3087 | done |
| 3088 | done |
| 3089 | IFS=$as_save_IFS |
| 3090 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3091 | fi ;; |
| 3092 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3093 | fi |
| 3094 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3095 | if test -n "$ac_ct_CC"; then |
| 3096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3097 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3098 | else |
| 3099 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3100 | printf "%s\n" "no" >&6; } |
| 3101 | fi |
| 3102 | |
| 3103 | if test "x$ac_ct_CC" = x; then |
| 3104 | CC="" |
| 3105 | else |
| 3106 | case $cross_compiling:$ac_tool_warned in |
| 3107 | yes:) |
| 3108 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3109 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3110 | ac_tool_warned=yes ;; |
| 3111 | esac |
| 3112 | CC=$ac_ct_CC |
| 3113 | fi |
| 3114 | else |
| 3115 | CC="$ac_cv_prog_CC" |
| 3116 | fi |
| 3117 | |
| 3118 | if test -z "$CC"; then |
| 3119 | if test -n "$ac_tool_prefix"; then |
| 3120 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3121 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3122 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3123 | printf %s "checking for $ac_word... " >&6; } |
| 3124 | if test ${ac_cv_prog_CC+y} |
| 3125 | then : |
| 3126 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3127 | else case e in #( |
| 3128 | e) if test -n "$CC"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3129 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3130 | else |
| 3131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3132 | for as_dir in $PATH |
| 3133 | do |
| 3134 | IFS=$as_save_IFS |
| 3135 | case $as_dir in #((( |
| 3136 | '') as_dir=./ ;; |
| 3137 | */) ;; |
| 3138 | *) as_dir=$as_dir/ ;; |
| 3139 | esac |
| 3140 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3141 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3142 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3143 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3144 | break 2 |
| 3145 | fi |
| 3146 | done |
| 3147 | done |
| 3148 | IFS=$as_save_IFS |
| 3149 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3150 | fi ;; |
| 3151 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3152 | fi |
| 3153 | CC=$ac_cv_prog_CC |
| 3154 | if test -n "$CC"; then |
| 3155 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3156 | printf "%s\n" "$CC" >&6; } |
| 3157 | else |
| 3158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3159 | printf "%s\n" "no" >&6; } |
| 3160 | fi |
| 3161 | |
| 3162 | |
| 3163 | fi |
| 3164 | fi |
| 3165 | if test -z "$CC"; then |
| 3166 | # Extract the first word of "cc", so it can be a program name with args. |
| 3167 | set dummy cc; ac_word=$2 |
| 3168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3169 | printf %s "checking for $ac_word... " >&6; } |
| 3170 | if test ${ac_cv_prog_CC+y} |
| 3171 | then : |
| 3172 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3173 | else case e in #( |
| 3174 | e) if test -n "$CC"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3175 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3176 | else |
| 3177 | ac_prog_rejected=no |
| 3178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3179 | for as_dir in $PATH |
| 3180 | do |
| 3181 | IFS=$as_save_IFS |
| 3182 | case $as_dir in #((( |
| 3183 | '') as_dir=./ ;; |
| 3184 | */) ;; |
| 3185 | *) as_dir=$as_dir/ ;; |
| 3186 | esac |
| 3187 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3188 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3189 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3190 | ac_prog_rejected=yes |
| 3191 | continue |
| 3192 | fi |
| 3193 | ac_cv_prog_CC="cc" |
| 3194 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3195 | break 2 |
| 3196 | fi |
| 3197 | done |
| 3198 | done |
| 3199 | IFS=$as_save_IFS |
| 3200 | |
| 3201 | if test $ac_prog_rejected = yes; then |
| 3202 | # We found a bogon in the path, so make sure we never use it. |
| 3203 | set dummy $ac_cv_prog_CC |
| 3204 | shift |
| 3205 | if test $# != 0; then |
| 3206 | # We chose a different compiler from the bogus one. |
| 3207 | # However, it has the same basename, so the bogon will be chosen |
| 3208 | # first if we set CC to just the basename; use the full file name. |
| 3209 | shift |
| 3210 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 3211 | fi |
| 3212 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3213 | fi ;; |
| 3214 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3215 | fi |
| 3216 | CC=$ac_cv_prog_CC |
| 3217 | if test -n "$CC"; then |
| 3218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3219 | printf "%s\n" "$CC" >&6; } |
| 3220 | else |
| 3221 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3222 | printf "%s\n" "no" >&6; } |
| 3223 | fi |
| 3224 | |
| 3225 | |
| 3226 | fi |
| 3227 | if test -z "$CC"; then |
| 3228 | if test -n "$ac_tool_prefix"; then |
| 3229 | for ac_prog in cl.exe |
| 3230 | do |
| 3231 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3232 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3234 | printf %s "checking for $ac_word... " >&6; } |
| 3235 | if test ${ac_cv_prog_CC+y} |
| 3236 | then : |
| 3237 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3238 | else case e in #( |
| 3239 | e) if test -n "$CC"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3240 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3241 | else |
| 3242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3243 | for as_dir in $PATH |
| 3244 | do |
| 3245 | IFS=$as_save_IFS |
| 3246 | case $as_dir in #((( |
| 3247 | '') as_dir=./ ;; |
| 3248 | */) ;; |
| 3249 | *) as_dir=$as_dir/ ;; |
| 3250 | esac |
| 3251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3252 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3253 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3254 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3255 | break 2 |
| 3256 | fi |
| 3257 | done |
| 3258 | done |
| 3259 | IFS=$as_save_IFS |
| 3260 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3261 | fi ;; |
| 3262 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3263 | fi |
| 3264 | CC=$ac_cv_prog_CC |
| 3265 | if test -n "$CC"; then |
| 3266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3267 | printf "%s\n" "$CC" >&6; } |
| 3268 | else |
| 3269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3270 | printf "%s\n" "no" >&6; } |
| 3271 | fi |
| 3272 | |
| 3273 | |
| 3274 | test -n "$CC" && break |
| 3275 | done |
| 3276 | fi |
| 3277 | if test -z "$CC"; then |
| 3278 | ac_ct_CC=$CC |
| 3279 | for ac_prog in cl.exe |
| 3280 | do |
| 3281 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3282 | set dummy $ac_prog; ac_word=$2 |
| 3283 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3284 | printf %s "checking for $ac_word... " >&6; } |
| 3285 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3286 | then : |
| 3287 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3288 | else case e in #( |
| 3289 | e) if test -n "$ac_ct_CC"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3290 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3291 | else |
| 3292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3293 | for as_dir in $PATH |
| 3294 | do |
| 3295 | IFS=$as_save_IFS |
| 3296 | case $as_dir in #((( |
| 3297 | '') as_dir=./ ;; |
| 3298 | */) ;; |
| 3299 | *) as_dir=$as_dir/ ;; |
| 3300 | esac |
| 3301 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3302 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3303 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3304 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3305 | break 2 |
| 3306 | fi |
| 3307 | done |
| 3308 | done |
| 3309 | IFS=$as_save_IFS |
| 3310 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3311 | fi ;; |
| 3312 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3313 | fi |
| 3314 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3315 | if test -n "$ac_ct_CC"; then |
| 3316 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3317 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3318 | else |
| 3319 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3320 | printf "%s\n" "no" >&6; } |
| 3321 | fi |
| 3322 | |
| 3323 | |
| 3324 | test -n "$ac_ct_CC" && break |
| 3325 | done |
| 3326 | |
| 3327 | if test "x$ac_ct_CC" = x; then |
| 3328 | CC="" |
| 3329 | else |
| 3330 | case $cross_compiling:$ac_tool_warned in |
| 3331 | yes:) |
| 3332 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3333 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3334 | ac_tool_warned=yes ;; |
| 3335 | esac |
| 3336 | CC=$ac_ct_CC |
| 3337 | fi |
| 3338 | fi |
| 3339 | |
| 3340 | fi |
| 3341 | if test -z "$CC"; then |
| 3342 | if test -n "$ac_tool_prefix"; then |
| 3343 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 3344 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 3345 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3346 | printf %s "checking for $ac_word... " >&6; } |
| 3347 | if test ${ac_cv_prog_CC+y} |
| 3348 | then : |
| 3349 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3350 | else case e in #( |
| 3351 | e) if test -n "$CC"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3352 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3353 | else |
| 3354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3355 | for as_dir in $PATH |
| 3356 | do |
| 3357 | IFS=$as_save_IFS |
| 3358 | case $as_dir in #((( |
| 3359 | '') as_dir=./ ;; |
| 3360 | */) ;; |
| 3361 | *) as_dir=$as_dir/ ;; |
| 3362 | esac |
| 3363 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3364 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3365 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 3366 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3367 | break 2 |
| 3368 | fi |
| 3369 | done |
| 3370 | done |
| 3371 | IFS=$as_save_IFS |
| 3372 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3373 | fi ;; |
| 3374 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3375 | fi |
| 3376 | CC=$ac_cv_prog_CC |
| 3377 | if test -n "$CC"; then |
| 3378 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3379 | printf "%s\n" "$CC" >&6; } |
| 3380 | else |
| 3381 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3382 | printf "%s\n" "no" >&6; } |
| 3383 | fi |
| 3384 | |
| 3385 | |
| 3386 | fi |
| 3387 | if test -z "$ac_cv_prog_CC"; then |
| 3388 | ac_ct_CC=$CC |
| 3389 | # Extract the first word of "clang", so it can be a program name with args. |
| 3390 | set dummy clang; ac_word=$2 |
| 3391 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3392 | printf %s "checking for $ac_word... " >&6; } |
| 3393 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3394 | then : |
| 3395 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3396 | else case e in #( |
| 3397 | e) if test -n "$ac_ct_CC"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3398 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3399 | else |
| 3400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3401 | for as_dir in $PATH |
| 3402 | do |
| 3403 | IFS=$as_save_IFS |
| 3404 | case $as_dir in #((( |
| 3405 | '') as_dir=./ ;; |
| 3406 | */) ;; |
| 3407 | *) as_dir=$as_dir/ ;; |
| 3408 | esac |
| 3409 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3410 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3411 | ac_cv_prog_ac_ct_CC="clang" |
| 3412 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3413 | break 2 |
| 3414 | fi |
| 3415 | done |
| 3416 | done |
| 3417 | IFS=$as_save_IFS |
| 3418 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3419 | fi ;; |
| 3420 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3421 | fi |
| 3422 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3423 | if test -n "$ac_ct_CC"; then |
| 3424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3425 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3426 | else |
| 3427 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3428 | printf "%s\n" "no" >&6; } |
| 3429 | fi |
| 3430 | |
| 3431 | if test "x$ac_ct_CC" = x; then |
| 3432 | CC="" |
| 3433 | else |
| 3434 | case $cross_compiling:$ac_tool_warned in |
| 3435 | yes:) |
| 3436 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3437 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3438 | ac_tool_warned=yes ;; |
| 3439 | esac |
| 3440 | CC=$ac_ct_CC |
| 3441 | fi |
| 3442 | else |
| 3443 | CC="$ac_cv_prog_CC" |
| 3444 | fi |
| 3445 | |
| 3446 | fi |
| 3447 | |
| 3448 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3449 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3450 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3451 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3452 | See 'config.log' for more details" "$LINENO" 5; } |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3453 | |
| 3454 | # Provide some information about the compiler. |
| 3455 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3456 | set X $ac_compile |
| 3457 | ac_compiler=$2 |
| 3458 | for ac_option in --version -v -V -qversion -version; do |
| 3459 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3460 | case "(($ac_try" in |
| 3461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3462 | *) ac_try_echo=$ac_try;; |
| 3463 | esac |
| 3464 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3465 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3466 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3467 | ac_status=$? |
| 3468 | if test -s conftest.err; then |
| 3469 | sed '10a\ |
| 3470 | ... rest of stderr output deleted ... |
| 3471 | 10q' conftest.err >conftest.er1 |
| 3472 | cat conftest.er1 >&5 |
| 3473 | fi |
| 3474 | rm -f conftest.er1 conftest.err |
| 3475 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3476 | test $ac_status = 0; } |
| 3477 | done |
| 3478 | |
| 3479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3480 | /* end confdefs.h. */ |
| 3481 | |
| 3482 | int |
| 3483 | main (void) |
| 3484 | { |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 3485 | |
Bram Moolenaar | 2e32495 | 2018-04-14 14:37:07 +0200 | [diff] [blame] | 3486 | ; |
| 3487 | return 0; |
| 3488 | } |
| 3489 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3490 | ac_clean_files_save=$ac_clean_files |
| 3491 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3492 | # Try to create an executable without -o first, disregard a.out. |
| 3493 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3494 | # of exeext. |
| 3495 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3496 | printf %s "checking whether the C compiler works... " >&6; } |
| 3497 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3498 | |
| 3499 | # The possible output files: |
| 3500 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3501 | |
| 3502 | ac_rmfiles= |
| 3503 | for ac_file in $ac_files |
| 3504 | do |
| 3505 | case $ac_file in |
| 3506 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3507 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3508 | esac |
| 3509 | done |
| 3510 | rm -f $ac_rmfiles |
| 3511 | |
| 3512 | if { { ac_try="$ac_link_default" |
| 3513 | case "(($ac_try" in |
| 3514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3515 | *) ac_try_echo=$ac_try;; |
| 3516 | esac |
| 3517 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3518 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3519 | (eval "$ac_link_default") 2>&5 |
| 3520 | ac_status=$? |
| 3521 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3522 | test $ac_status = 0; } |
| 3523 | then : |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3524 | # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. |
| 3525 | # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3526 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3527 | # so that the user can short-circuit this test for compilers unknown to |
| 3528 | # Autoconf. |
| 3529 | for ac_file in $ac_files '' |
| 3530 | do |
| 3531 | test -f "$ac_file" || continue |
| 3532 | case $ac_file in |
| 3533 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3534 | ;; |
| 3535 | [ab].out ) |
| 3536 | # We found the default executable, but exeext='' is most |
| 3537 | # certainly right. |
| 3538 | break;; |
| 3539 | *.* ) |
| 3540 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 3541 | then :; else |
| 3542 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3543 | fi |
| 3544 | # We set ac_cv_exeext here because the later test for it is not |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3545 | # safe: cross compilers may not add the suffix if given an '-o' |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3546 | # argument, so we may need to know it at that point already. |
| 3547 | # Even if this section looks crufty: it has the advantage of |
| 3548 | # actually working. |
| 3549 | break;; |
| 3550 | * ) |
| 3551 | break;; |
| 3552 | esac |
| 3553 | done |
| 3554 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3555 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3556 | else case e in #( |
| 3557 | e) ac_file='' ;; |
| 3558 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3559 | fi |
| 3560 | if test -z "$ac_file" |
| 3561 | then : |
| 3562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3563 | printf "%s\n" "no" >&6; } |
| 3564 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 3565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3566 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3567 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3568 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3569 | as_fn_error 77 "C compiler cannot create executables |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3570 | See 'config.log' for more details" "$LINENO" 5; } |
| 3571 | else case e in #( |
| 3572 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3573 | printf "%s\n" "yes" >&6; } ;; |
| 3574 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3575 | fi |
| 3576 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3577 | printf %s "checking for C compiler default output file name... " >&6; } |
| 3578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3579 | printf "%s\n" "$ac_file" >&6; } |
| 3580 | ac_exeext=$ac_cv_exeext |
| 3581 | |
| 3582 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3583 | ac_clean_files=$ac_clean_files_save |
| 3584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3585 | printf %s "checking for suffix of executables... " >&6; } |
| 3586 | if { { ac_try="$ac_link" |
| 3587 | case "(($ac_try" in |
| 3588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3589 | *) ac_try_echo=$ac_try;; |
| 3590 | esac |
| 3591 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3592 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3593 | (eval "$ac_link") 2>&5 |
| 3594 | ac_status=$? |
| 3595 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3596 | test $ac_status = 0; } |
| 3597 | then : |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3598 | # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) |
| 3599 | # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will |
| 3600 | # work properly (i.e., refer to 'conftest.exe'), while it won't with |
| 3601 | # 'rm'. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3602 | for ac_file in conftest.exe conftest conftest.*; do |
| 3603 | test -f "$ac_file" || continue |
| 3604 | case $ac_file in |
| 3605 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3606 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3607 | break;; |
| 3608 | * ) break;; |
| 3609 | esac |
| 3610 | done |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3611 | else case e in #( |
| 3612 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3613 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3614 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3615 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 3616 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3617 | fi |
| 3618 | rm -f conftest conftest$ac_cv_exeext |
| 3619 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3620 | printf "%s\n" "$ac_cv_exeext" >&6; } |
| 3621 | |
| 3622 | rm -f conftest.$ac_ext |
| 3623 | EXEEXT=$ac_cv_exeext |
| 3624 | ac_exeext=$EXEEXT |
| 3625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3626 | /* end confdefs.h. */ |
| 3627 | #include <stdio.h> |
| 3628 | int |
| 3629 | main (void) |
| 3630 | { |
| 3631 | FILE *f = fopen ("conftest.out", "w"); |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3632 | if (!f) |
| 3633 | return 1; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3634 | return ferror (f) || fclose (f) != 0; |
| 3635 | |
| 3636 | ; |
| 3637 | return 0; |
| 3638 | } |
| 3639 | _ACEOF |
| 3640 | ac_clean_files="$ac_clean_files conftest.out" |
| 3641 | # Check that the compiler produces executables we can run. If not, either |
| 3642 | # the compiler is broken, or we cross compile. |
| 3643 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3644 | printf %s "checking whether we are cross compiling... " >&6; } |
| 3645 | if test "$cross_compiling" != yes; then |
| 3646 | { { ac_try="$ac_link" |
| 3647 | case "(($ac_try" in |
| 3648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3649 | *) ac_try_echo=$ac_try;; |
| 3650 | esac |
| 3651 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3652 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3653 | (eval "$ac_link") 2>&5 |
| 3654 | ac_status=$? |
| 3655 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3656 | test $ac_status = 0; } |
| 3657 | if { ac_try='./conftest$ac_cv_exeext' |
| 3658 | { { case "(($ac_try" in |
| 3659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3660 | *) ac_try_echo=$ac_try;; |
| 3661 | esac |
| 3662 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3663 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3664 | (eval "$ac_try") 2>&5 |
| 3665 | ac_status=$? |
| 3666 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3667 | test $ac_status = 0; }; }; then |
| 3668 | cross_compiling=no |
| 3669 | else |
| 3670 | if test "$cross_compiling" = maybe; then |
| 3671 | cross_compiling=yes |
| 3672 | else |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3673 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3674 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3675 | as_fn_error 77 "cannot run C compiled programs. |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3676 | If you meant to cross compile, use '--host'. |
| 3677 | See 'config.log' for more details" "$LINENO" 5; } |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3678 | fi |
| 3679 | fi |
| 3680 | fi |
| 3681 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3682 | printf "%s\n" "$cross_compiling" >&6; } |
| 3683 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3684 | rm -f conftest.$ac_ext conftest$ac_cv_exeext \ |
| 3685 | conftest.o conftest.obj conftest.out |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3686 | ac_clean_files=$ac_clean_files_save |
| 3687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3688 | printf %s "checking for suffix of object files... " >&6; } |
| 3689 | if test ${ac_cv_objext+y} |
| 3690 | then : |
| 3691 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3692 | else case e in #( |
| 3693 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3694 | /* end confdefs.h. */ |
| 3695 | |
| 3696 | int |
| 3697 | main (void) |
| 3698 | { |
| 3699 | |
| 3700 | ; |
| 3701 | return 0; |
| 3702 | } |
| 3703 | _ACEOF |
| 3704 | rm -f conftest.o conftest.obj |
| 3705 | if { { ac_try="$ac_compile" |
| 3706 | case "(($ac_try" in |
| 3707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3708 | *) ac_try_echo=$ac_try;; |
| 3709 | esac |
| 3710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3711 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3712 | (eval "$ac_compile") 2>&5 |
| 3713 | ac_status=$? |
| 3714 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3715 | test $ac_status = 0; } |
| 3716 | then : |
| 3717 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3718 | test -f "$ac_file" || continue; |
| 3719 | case $ac_file in |
| 3720 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3721 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3722 | break;; |
| 3723 | esac |
| 3724 | done |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3725 | else case e in #( |
| 3726 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3728 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3729 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3730 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3731 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3732 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 3733 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3734 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3735 | rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; |
| 3736 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3737 | fi |
| 3738 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3739 | printf "%s\n" "$ac_cv_objext" >&6; } |
| 3740 | OBJEXT=$ac_cv_objext |
| 3741 | ac_objext=$OBJEXT |
| 3742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 3743 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 3744 | if test ${ac_cv_c_compiler_gnu+y} |
| 3745 | then : |
| 3746 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3747 | else case e in #( |
| 3748 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3749 | /* end confdefs.h. */ |
| 3750 | |
| 3751 | int |
| 3752 | main (void) |
| 3753 | { |
| 3754 | #ifndef __GNUC__ |
| 3755 | choke me |
| 3756 | #endif |
| 3757 | |
| 3758 | ; |
| 3759 | return 0; |
| 3760 | } |
| 3761 | _ACEOF |
| 3762 | if ac_fn_c_try_compile "$LINENO" |
| 3763 | then : |
| 3764 | ac_compiler_gnu=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3765 | else case e in #( |
| 3766 | e) ac_compiler_gnu=no ;; |
| 3767 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3768 | fi |
| 3769 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3770 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3771 | ;; |
| 3772 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3773 | fi |
| 3774 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3775 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 3776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3777 | |
| 3778 | if test $ac_compiler_gnu = yes; then |
| 3779 | GCC=yes |
| 3780 | else |
| 3781 | GCC= |
| 3782 | fi |
| 3783 | ac_test_CFLAGS=${CFLAGS+y} |
| 3784 | ac_save_CFLAGS=$CFLAGS |
| 3785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3786 | printf %s "checking whether $CC accepts -g... " >&6; } |
| 3787 | if test ${ac_cv_prog_cc_g+y} |
| 3788 | then : |
| 3789 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3790 | else case e in #( |
| 3791 | e) ac_save_c_werror_flag=$ac_c_werror_flag |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3792 | ac_c_werror_flag=yes |
| 3793 | ac_cv_prog_cc_g=no |
| 3794 | CFLAGS="-g" |
| 3795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3796 | /* end confdefs.h. */ |
| 3797 | |
| 3798 | int |
| 3799 | main (void) |
| 3800 | { |
| 3801 | |
| 3802 | ; |
| 3803 | return 0; |
| 3804 | } |
| 3805 | _ACEOF |
| 3806 | if ac_fn_c_try_compile "$LINENO" |
| 3807 | then : |
| 3808 | ac_cv_prog_cc_g=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3809 | else case e in #( |
| 3810 | e) CFLAGS="" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3812 | /* end confdefs.h. */ |
| 3813 | |
| 3814 | int |
| 3815 | main (void) |
| 3816 | { |
| 3817 | |
| 3818 | ; |
| 3819 | return 0; |
| 3820 | } |
| 3821 | _ACEOF |
| 3822 | if ac_fn_c_try_compile "$LINENO" |
| 3823 | then : |
| 3824 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3825 | else case e in #( |
| 3826 | e) ac_c_werror_flag=$ac_save_c_werror_flag |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3827 | CFLAGS="-g" |
| 3828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3829 | /* end confdefs.h. */ |
| 3830 | |
| 3831 | int |
| 3832 | main (void) |
| 3833 | { |
| 3834 | |
| 3835 | ; |
| 3836 | return 0; |
| 3837 | } |
| 3838 | _ACEOF |
| 3839 | if ac_fn_c_try_compile "$LINENO" |
| 3840 | then : |
| 3841 | ac_cv_prog_cc_g=yes |
| 3842 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3843 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 3844 | esac |
| 3845 | fi |
| 3846 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 3847 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3848 | fi |
| 3849 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3850 | ac_c_werror_flag=$ac_save_c_werror_flag ;; |
| 3851 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3852 | fi |
| 3853 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3854 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 3855 | if test $ac_test_CFLAGS; then |
| 3856 | CFLAGS=$ac_save_CFLAGS |
| 3857 | elif test $ac_cv_prog_cc_g = yes; then |
| 3858 | if test "$GCC" = yes; then |
| 3859 | CFLAGS="-g -O2" |
| 3860 | else |
| 3861 | CFLAGS="-g" |
| 3862 | fi |
| 3863 | else |
| 3864 | if test "$GCC" = yes; then |
| 3865 | CFLAGS="-O2" |
| 3866 | else |
| 3867 | CFLAGS= |
| 3868 | fi |
| 3869 | fi |
| 3870 | ac_prog_cc_stdc=no |
| 3871 | if test x$ac_prog_cc_stdc = xno |
| 3872 | then : |
| 3873 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 3874 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 3875 | if test ${ac_cv_prog_cc_c11+y} |
| 3876 | then : |
| 3877 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3878 | else case e in #( |
| 3879 | e) ac_cv_prog_cc_c11=no |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3880 | ac_save_CC=$CC |
| 3881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3882 | /* end confdefs.h. */ |
| 3883 | $ac_c_conftest_c11_program |
| 3884 | _ACEOF |
| 3885 | for ac_arg in '' -std=gnu11 |
Bram Moolenaar | 2e32495 | 2018-04-14 14:37:07 +0200 | [diff] [blame] | 3886 | do |
| 3887 | CC="$ac_save_CC $ac_arg" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3888 | if ac_fn_c_try_compile "$LINENO" |
| 3889 | then : |
| 3890 | ac_cv_prog_cc_c11=$ac_arg |
| 3891 | fi |
| 3892 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3893 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 3894 | done |
| 3895 | rm -f conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3896 | CC=$ac_save_CC ;; |
| 3897 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3898 | fi |
| 3899 | |
| 3900 | if test "x$ac_cv_prog_cc_c11" = xno |
| 3901 | then : |
| 3902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3903 | printf "%s\n" "unsupported" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3904 | else case e in #( |
| 3905 | e) if test "x$ac_cv_prog_cc_c11" = x |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3906 | then : |
| 3907 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3908 | printf "%s\n" "none needed" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3909 | else case e in #( |
| 3910 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3911 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3912 | CC="$CC $ac_cv_prog_cc_c11" ;; |
| 3913 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3914 | fi |
| 3915 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3916 | ac_prog_cc_stdc=c11 ;; |
| 3917 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3918 | fi |
| 3919 | fi |
| 3920 | if test x$ac_prog_cc_stdc = xno |
| 3921 | then : |
| 3922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 3923 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 3924 | if test ${ac_cv_prog_cc_c99+y} |
| 3925 | then : |
| 3926 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3927 | else case e in #( |
| 3928 | e) ac_cv_prog_cc_c99=no |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3929 | ac_save_CC=$CC |
| 3930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3931 | /* end confdefs.h. */ |
| 3932 | $ac_c_conftest_c99_program |
| 3933 | _ACEOF |
| 3934 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 3935 | do |
| 3936 | CC="$ac_save_CC $ac_arg" |
| 3937 | if ac_fn_c_try_compile "$LINENO" |
| 3938 | then : |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 3939 | ac_cv_prog_cc_c99=$ac_arg |
Bram Moolenaar | 2e32495 | 2018-04-14 14:37:07 +0200 | [diff] [blame] | 3940 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3941 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 3942 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
Bram Moolenaar | 2e32495 | 2018-04-14 14:37:07 +0200 | [diff] [blame] | 3943 | done |
| 3944 | rm -f conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3945 | CC=$ac_save_CC ;; |
| 3946 | esac |
Bram Moolenaar | 2e32495 | 2018-04-14 14:37:07 +0200 | [diff] [blame] | 3947 | fi |
| 3948 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3949 | if test "x$ac_cv_prog_cc_c99" = xno |
| 3950 | then : |
| 3951 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3952 | printf "%s\n" "unsupported" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3953 | else case e in #( |
| 3954 | e) if test "x$ac_cv_prog_cc_c99" = x |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3955 | then : |
| 3956 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3957 | printf "%s\n" "none needed" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3958 | else case e in #( |
| 3959 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3960 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3961 | CC="$CC $ac_cv_prog_cc_c99" ;; |
| 3962 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3963 | fi |
| 3964 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3965 | ac_prog_cc_stdc=c99 ;; |
| 3966 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3967 | fi |
| 3968 | fi |
| 3969 | if test x$ac_prog_cc_stdc = xno |
| 3970 | then : |
| 3971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 3972 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 3973 | if test ${ac_cv_prog_cc_c89+y} |
| 3974 | then : |
| 3975 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3976 | else case e in #( |
| 3977 | e) ac_cv_prog_cc_c89=no |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3978 | ac_save_CC=$CC |
| 3979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3980 | /* end confdefs.h. */ |
| 3981 | $ac_c_conftest_c89_program |
| 3982 | _ACEOF |
| 3983 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3984 | do |
| 3985 | CC="$ac_save_CC $ac_arg" |
| 3986 | if ac_fn_c_try_compile "$LINENO" |
| 3987 | then : |
| 3988 | ac_cv_prog_cc_c89=$ac_arg |
| 3989 | fi |
| 3990 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3991 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3992 | done |
| 3993 | rm -f conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 3994 | CC=$ac_save_CC ;; |
| 3995 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 3996 | fi |
| 3997 | |
| 3998 | if test "x$ac_cv_prog_cc_c89" = xno |
| 3999 | then : |
| 4000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4001 | printf "%s\n" "unsupported" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4002 | else case e in #( |
| 4003 | e) if test "x$ac_cv_prog_cc_c89" = x |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4004 | then : |
| 4005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4006 | printf "%s\n" "none needed" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4007 | else case e in #( |
| 4008 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4009 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4010 | CC="$CC $ac_cv_prog_cc_c89" ;; |
| 4011 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4012 | fi |
| 4013 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4014 | ac_prog_cc_stdc=c89 ;; |
| 4015 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4016 | fi |
| 4017 | fi |
| 4018 | |
| 4019 | ac_ext=c |
| 4020 | ac_cpp='$CPP $CPPFLAGS' |
| 4021 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4022 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4023 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | c039441 | 2017-04-20 20:20:23 +0200 | [diff] [blame] | 4024 | ac_ext=c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4025 | ac_cpp='$CPP $CPPFLAGS' |
| 4026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4030 | printf %s "checking how to run the C preprocessor... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4031 | # On Suns, sometimes $CPP names a directory. |
| 4032 | if test -n "$CPP" && test -d "$CPP"; then |
| 4033 | CPP= |
| 4034 | fi |
| 4035 | if test -z "$CPP"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4036 | if test ${ac_cv_prog_CPP+y} |
| 4037 | then : |
| 4038 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4039 | else case e in #( |
| 4040 | e) # Double quotes because $CC needs to be expanded |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4041 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4042 | do |
| 4043 | ac_preproc_ok=false |
| 4044 | for ac_c_preproc_warn_flag in '' yes |
| 4045 | do |
| 4046 | # Use a header file that comes with gcc, so configuring glibc |
| 4047 | # with a fresh cross-compiler works. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4048 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4049 | # not just through cpp. "Syntax error" is here to catch this case. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4051 | /* end confdefs.h. */ |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4052 | #include <limits.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4053 | Syntax error |
| 4054 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4055 | if ac_fn_c_try_cpp "$LINENO" |
| 4056 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4057 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4058 | else case e in #( |
| 4059 | e) # Broken: fails on valid input. |
| 4060 | continue ;; |
| 4061 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4062 | fi |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 4063 | rm -f conftest.err conftest.i conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4064 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4065 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4066 | # can be detected and how. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4068 | /* end confdefs.h. */ |
| 4069 | #include <ac_nonexistent.h> |
| 4070 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4071 | if ac_fn_c_try_cpp "$LINENO" |
| 4072 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4073 | # Broken: success on invalid input. |
| 4074 | continue |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4075 | else case e in #( |
| 4076 | e) # Passes both tests. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4077 | ac_preproc_ok=: |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4078 | break ;; |
| 4079 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4080 | fi |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 4081 | rm -f conftest.err conftest.i conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4082 | |
| 4083 | done |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4084 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 4085 | rm -f conftest.i conftest.err conftest.$ac_ext |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4086 | if $ac_preproc_ok |
| 4087 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4088 | break |
| 4089 | fi |
| 4090 | |
| 4091 | done |
| 4092 | ac_cv_prog_CPP=$CPP |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4093 | ;; |
| 4094 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4095 | fi |
| 4096 | CPP=$ac_cv_prog_CPP |
| 4097 | else |
| 4098 | ac_cv_prog_CPP=$CPP |
| 4099 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4101 | printf "%s\n" "$CPP" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4102 | ac_preproc_ok=false |
| 4103 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4104 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4105 | # Use a header file that comes with gcc, so configuring glibc |
| 4106 | # with a fresh cross-compiler works. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4107 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4108 | # not just through cpp. "Syntax error" is here to catch this case. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4110 | /* end confdefs.h. */ |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4111 | #include <limits.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4112 | Syntax error |
| 4113 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4114 | if ac_fn_c_try_cpp "$LINENO" |
| 4115 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4116 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4117 | else case e in #( |
| 4118 | e) # Broken: fails on valid input. |
| 4119 | continue ;; |
| 4120 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4121 | fi |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 4122 | rm -f conftest.err conftest.i conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4123 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4124 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4125 | # can be detected and how. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4127 | /* end confdefs.h. */ |
| 4128 | #include <ac_nonexistent.h> |
| 4129 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4130 | if ac_fn_c_try_cpp "$LINENO" |
| 4131 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4132 | # Broken: success on invalid input. |
| 4133 | continue |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4134 | else case e in #( |
| 4135 | e) # Passes both tests. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4136 | ac_preproc_ok=: |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4137 | break ;; |
| 4138 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4139 | fi |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 4140 | rm -f conftest.err conftest.i conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4141 | |
| 4142 | done |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4143 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 4144 | rm -f conftest.i conftest.err conftest.$ac_ext |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4145 | if $ac_preproc_ok |
| 4146 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4147 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4148 | else case e in #( |
| 4149 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4150 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 4151 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4152 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 4153 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4154 | fi |
| 4155 | |
| 4156 | ac_ext=c |
| 4157 | ac_cpp='$CPP $CPPFLAGS' |
| 4158 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4159 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4160 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4162 | printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 4163 | if test ${ac_cv_path_GREP+y} |
| 4164 | then : |
| 4165 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4166 | else case e in #( |
| 4167 | e) if test -z "$GREP"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4168 | ac_path_GREP_found=false |
| 4169 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4171 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4172 | do |
| 4173 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4174 | case $as_dir in #((( |
| 4175 | '') as_dir=./ ;; |
| 4176 | */) ;; |
| 4177 | *) as_dir=$as_dir/ ;; |
| 4178 | esac |
| 4179 | for ac_prog in grep ggrep |
| 4180 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4181 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4182 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 4183 | as_fn_executable_p "$ac_path_GREP" || continue |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4184 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4185 | # Check for GNU $ac_path_GREP |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4186 | case `"$ac_path_GREP" --version 2>&1` in #( |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4187 | *GNU*) |
| 4188 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4189 | #( |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4190 | *) |
| 4191 | ac_count=0 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4192 | printf %s 0123456789 >"conftest.in" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4193 | while : |
| 4194 | do |
| 4195 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4196 | mv "conftest.tmp" "conftest.in" |
| 4197 | cp "conftest.in" "conftest.nl" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4198 | printf "%s\n" 'GREP' >> "conftest.nl" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4199 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4200 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4201 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4202 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4203 | # Best one so far, save it but keep looking for a better one |
| 4204 | ac_cv_path_GREP="$ac_path_GREP" |
| 4205 | ac_path_GREP_max=$ac_count |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4206 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4207 | # 10*(2^10) chars as input seems more than enough |
| 4208 | test $ac_count -gt 10 && break |
| 4209 | done |
| 4210 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4211 | esac |
| 4212 | |
| 4213 | $ac_path_GREP_found && break 3 |
| 4214 | done |
| 4215 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4216 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4217 | IFS=$as_save_IFS |
| 4218 | if test -z "$ac_cv_path_GREP"; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 4219 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4220 | fi |
| 4221 | else |
| 4222 | ac_cv_path_GREP=$GREP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4223 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4224 | ;; |
| 4225 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4226 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4228 | printf "%s\n" "$ac_cv_path_GREP" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4229 | GREP="$ac_cv_path_GREP" |
| 4230 | |
| 4231 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4232 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4233 | printf %s "checking for egrep... " >&6; } |
| 4234 | if test ${ac_cv_path_EGREP+y} |
| 4235 | then : |
| 4236 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4237 | else case e in #( |
| 4238 | e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4239 | then ac_cv_path_EGREP="$GREP -E" |
| 4240 | else |
| 4241 | if test -z "$EGREP"; then |
| 4242 | ac_path_EGREP_found=false |
| 4243 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4245 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4246 | do |
| 4247 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4248 | case $as_dir in #((( |
| 4249 | '') as_dir=./ ;; |
| 4250 | */) ;; |
| 4251 | *) as_dir=$as_dir/ ;; |
| 4252 | esac |
| 4253 | for ac_prog in egrep |
| 4254 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4255 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4256 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 4257 | as_fn_executable_p "$ac_path_EGREP" || continue |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4258 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4259 | # Check for GNU $ac_path_EGREP |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4260 | case `"$ac_path_EGREP" --version 2>&1` in #( |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4261 | *GNU*) |
| 4262 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4263 | #( |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4264 | *) |
| 4265 | ac_count=0 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4266 | printf %s 0123456789 >"conftest.in" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4267 | while : |
| 4268 | do |
| 4269 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4270 | mv "conftest.tmp" "conftest.in" |
| 4271 | cp "conftest.in" "conftest.nl" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4272 | printf "%s\n" 'EGREP' >> "conftest.nl" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4273 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4274 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4275 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4276 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4277 | # Best one so far, save it but keep looking for a better one |
| 4278 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4279 | ac_path_EGREP_max=$ac_count |
| 4280 | fi |
| 4281 | # 10*(2^10) chars as input seems more than enough |
| 4282 | test $ac_count -gt 10 && break |
| 4283 | done |
| 4284 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4285 | esac |
| 4286 | |
| 4287 | $ac_path_EGREP_found && break 3 |
| 4288 | done |
| 4289 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4290 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4291 | IFS=$as_save_IFS |
| 4292 | if test -z "$ac_cv_path_EGREP"; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 4293 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4294 | fi |
| 4295 | else |
| 4296 | ac_cv_path_EGREP=$EGREP |
| 4297 | fi |
| 4298 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4299 | fi ;; |
| 4300 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4301 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4303 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4304 | EGREP="$ac_cv_path_EGREP" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4305 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4306 | EGREP_TRADITIONAL=$EGREP |
| 4307 | ac_cv_path_EGREP_TRADITIONAL=$EGREP |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4309 | printf %s "checking for fgrep... " >&6; } |
| 4310 | if test ${ac_cv_path_FGREP+y} |
| 4311 | then : |
| 4312 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4313 | else case e in #( |
| 4314 | e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
Bram Moolenaar | 2bcaec3 | 2014-03-27 18:51:11 +0100 | [diff] [blame] | 4315 | then ac_cv_path_FGREP="$GREP -F" |
| 4316 | else |
| 4317 | if test -z "$FGREP"; then |
| 4318 | ac_path_FGREP_found=false |
| 4319 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4321 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4322 | do |
| 4323 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4324 | case $as_dir in #((( |
| 4325 | '') as_dir=./ ;; |
| 4326 | */) ;; |
| 4327 | *) as_dir=$as_dir/ ;; |
| 4328 | esac |
| 4329 | for ac_prog in fgrep |
| 4330 | do |
Bram Moolenaar | 2bcaec3 | 2014-03-27 18:51:11 +0100 | [diff] [blame] | 4331 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4332 | ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" |
Bram Moolenaar | 2bcaec3 | 2014-03-27 18:51:11 +0100 | [diff] [blame] | 4333 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 4334 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4335 | # Check for GNU $ac_path_FGREP |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4336 | case `"$ac_path_FGREP" --version 2>&1` in #( |
Bram Moolenaar | 2bcaec3 | 2014-03-27 18:51:11 +0100 | [diff] [blame] | 4337 | *GNU*) |
| 4338 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4339 | #( |
Bram Moolenaar | 2bcaec3 | 2014-03-27 18:51:11 +0100 | [diff] [blame] | 4340 | *) |
| 4341 | ac_count=0 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4342 | printf %s 0123456789 >"conftest.in" |
Bram Moolenaar | 2bcaec3 | 2014-03-27 18:51:11 +0100 | [diff] [blame] | 4343 | while : |
| 4344 | do |
| 4345 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4346 | mv "conftest.tmp" "conftest.in" |
| 4347 | cp "conftest.in" "conftest.nl" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4348 | printf "%s\n" 'FGREP' >> "conftest.nl" |
Bram Moolenaar | 2bcaec3 | 2014-03-27 18:51:11 +0100 | [diff] [blame] | 4349 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4350 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4351 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4352 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4353 | # Best one so far, save it but keep looking for a better one |
| 4354 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4355 | ac_path_FGREP_max=$ac_count |
| 4356 | fi |
| 4357 | # 10*(2^10) chars as input seems more than enough |
| 4358 | test $ac_count -gt 10 && break |
| 4359 | done |
| 4360 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4361 | esac |
| 4362 | |
| 4363 | $ac_path_FGREP_found && break 3 |
| 4364 | done |
| 4365 | done |
| 4366 | done |
| 4367 | IFS=$as_save_IFS |
| 4368 | if test -z "$ac_cv_path_FGREP"; then |
| 4369 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4370 | fi |
| 4371 | else |
| 4372 | ac_cv_path_FGREP=$FGREP |
| 4373 | fi |
| 4374 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4375 | fi ;; |
| 4376 | esac |
Bram Moolenaar | 2bcaec3 | 2014-03-27 18:51:11 +0100 | [diff] [blame] | 4377 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4378 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4379 | printf "%s\n" "$ac_cv_path_FGREP" >&6; } |
Bram Moolenaar | 2bcaec3 | 2014-03-27 18:51:11 +0100 | [diff] [blame] | 4380 | FGREP="$ac_cv_path_FGREP" |
| 4381 | |
Bram Moolenaar | c039441 | 2017-04-20 20:20:23 +0200 | [diff] [blame] | 4382 | for ac_prog in gawk mawk nawk awk |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4383 | do |
| 4384 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4385 | set dummy $ac_prog; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4387 | printf %s "checking for $ac_word... " >&6; } |
| 4388 | if test ${ac_cv_prog_AWK+y} |
| 4389 | then : |
| 4390 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4391 | else case e in #( |
| 4392 | e) if test -n "$AWK"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4393 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4394 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4396 | for as_dir in $PATH |
| 4397 | do |
| 4398 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4399 | case $as_dir in #((( |
| 4400 | '') as_dir=./ ;; |
| 4401 | */) ;; |
| 4402 | *) as_dir=$as_dir/ ;; |
| 4403 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4404 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4405 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4406 | ac_cv_prog_AWK="$ac_prog" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4407 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4408 | break 2 |
| 4409 | fi |
| 4410 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4411 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4412 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4413 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4414 | fi ;; |
| 4415 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4416 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4417 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4418 | if test -n "$AWK"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4419 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 4420 | printf "%s\n" "$AWK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4421 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4423 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4424 | fi |
| 4425 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4426 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4427 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4428 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4429 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4430 | # Extract the first word of "strip", so it can be a program name with args. |
| 4431 | set dummy strip; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4432 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4433 | printf %s "checking for $ac_word... " >&6; } |
| 4434 | if test ${ac_cv_prog_STRIP+y} |
| 4435 | then : |
| 4436 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4437 | else case e in #( |
| 4438 | e) if test -n "$STRIP"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4439 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4440 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4442 | for as_dir in $PATH |
| 4443 | do |
| 4444 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4445 | case $as_dir in #((( |
| 4446 | '') as_dir=./ ;; |
| 4447 | */) ;; |
| 4448 | *) as_dir=$as_dir/ ;; |
| 4449 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4450 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4451 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4452 | ac_cv_prog_STRIP="strip" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4453 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4454 | break 2 |
| 4455 | fi |
| 4456 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4457 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4458 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4459 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4460 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4461 | fi ;; |
| 4462 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4463 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4464 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4465 | if test -n "$STRIP"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 4467 | printf "%s\n" "$STRIP" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4468 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4469 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4470 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4471 | fi |
| 4472 | |
| 4473 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4474 | |
| 4475 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4476 | |
Illia Bobyr | f39842f | 2023-08-27 18:21:23 +0200 | [diff] [blame] | 4477 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4478 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 4479 | printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 4480 | if test ${ac_cv_header_sys_wait_h+y} |
| 4481 | then : |
| 4482 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4483 | else case e in #( |
| 4484 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4485 | /* end confdefs.h. */ |
| 4486 | #include <sys/types.h> |
| 4487 | #include <sys/wait.h> |
| 4488 | #ifndef WEXITSTATUS |
| 4489 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 4490 | #endif |
| 4491 | #ifndef WIFEXITED |
| 4492 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 4493 | #endif |
| 4494 | |
| 4495 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4496 | main (void) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4497 | { |
| 4498 | int s; |
| 4499 | wait (&s); |
| 4500 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 4501 | ; |
| 4502 | return 0; |
| 4503 | } |
| 4504 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4505 | if ac_fn_c_try_compile "$LINENO" |
| 4506 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4507 | ac_cv_header_sys_wait_h=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4508 | else case e in #( |
| 4509 | e) ac_cv_header_sys_wait_h=no ;; |
| 4510 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4511 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4512 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4513 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4514 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4515 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
| 4516 | printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4517 | if test $ac_cv_header_sys_wait_h = yes; then |
| 4518 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4519 | printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4520 | |
| 4521 | fi |
| 4522 | |
| 4523 | |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4524 | if test x"$ac_cv_prog_cc_c99" != xno; then |
| 4525 | |
| 4526 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4527 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 4528 | printf %s "checking for unsigned long long int... " >&6; } |
| 4529 | if test ${ac_cv_type_unsigned_long_long_int+y} |
| 4530 | then : |
| 4531 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4532 | else case e in #( |
| 4533 | e) ac_cv_type_unsigned_long_long_int=yes |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4534 | case $ac_prog_cc_stdc in |
| 4535 | no | c89) ;; |
| 4536 | *) |
| 4537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 561f8a5 | 2018-04-17 22:02:45 +0200 | [diff] [blame] | 4538 | /* end confdefs.h. */ |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4539 | |
| 4540 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 4541 | implementations with broken preprocessors. Perhaps this can |
| 4542 | be revisited in 2012. In the meantime, code should not expect |
| 4543 | #if to work with literals wider than 32 bits. */ |
| 4544 | /* Test literals. */ |
| 4545 | long long int ll = 9223372036854775807ll; |
| 4546 | long long int nll = -9223372036854775807LL; |
| 4547 | unsigned long long int ull = 18446744073709551615ULL; |
| 4548 | /* Test constant expressions. */ |
| 4549 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 4550 | ? 1 : -1)]; |
| 4551 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 4552 | ? 1 : -1)]; |
| 4553 | int i = 63; |
| 4554 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4555 | main (void) |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4556 | { |
| 4557 | /* Test availability of runtime routines for shift and division. */ |
| 4558 | long long int llmax = 9223372036854775807ll; |
| 4559 | unsigned long long int ullmax = 18446744073709551615ull; |
| 4560 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 4561 | | (llmax / ll) | (llmax % ll) |
| 4562 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 4563 | | (ullmax / ull) | (ullmax % ull)); |
| 4564 | ; |
| 4565 | return 0; |
| 4566 | } |
| 4567 | |
| 4568 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4569 | if ac_fn_c_try_link "$LINENO" |
| 4570 | then : |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4571 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4572 | else case e in #( |
| 4573 | e) ac_cv_type_unsigned_long_long_int=no ;; |
| 4574 | esac |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4575 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4576 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4577 | conftest$ac_exeext conftest.$ac_ext;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4578 | esac ;; |
| 4579 | esac |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4580 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 4582 | printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; } |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4583 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 4584 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4585 | printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4586 | |
| 4587 | fi |
| 4588 | |
| 4589 | |
| 4590 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 4592 | printf %s "checking for long long int... " >&6; } |
| 4593 | if test ${ac_cv_type_long_long_int+y} |
| 4594 | then : |
| 4595 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4596 | else case e in #( |
| 4597 | e) ac_cv_type_long_long_int=yes |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4598 | case $ac_prog_cc_stdc in |
| 4599 | no | c89) ;; |
| 4600 | *) |
| 4601 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 4602 | if test $ac_cv_type_long_long_int = yes; then |
| 4603 | if test "$cross_compiling" = yes |
| 4604 | then : |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4605 | : |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4606 | else case e in #( |
| 4607 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4608 | /* end confdefs.h. */ |
| 4609 | #include <limits.h> |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4610 | #ifndef LLONG_MAX |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4611 | # define HALF \\ |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4612 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 4613 | # define LLONG_MAX (HALF - 1 + HALF) |
| 4614 | #endif |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4615 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4616 | main (void) |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4617 | { |
| 4618 | long long int n = 1; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4619 | int i; |
| 4620 | for (i = 0; ; i++) |
| 4621 | { |
| 4622 | long long int m = n << i; |
| 4623 | if (m >> i != n) |
| 4624 | return 1; |
| 4625 | if (LLONG_MAX / 2 < m) |
| 4626 | break; |
| 4627 | } |
| 4628 | return 0; |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4629 | ; |
| 4630 | return 0; |
| 4631 | } |
| 4632 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4633 | if ac_fn_c_try_run "$LINENO" |
| 4634 | then : |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4635 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4636 | else case e in #( |
| 4637 | e) ac_cv_type_long_long_int=no ;; |
| 4638 | esac |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4639 | fi |
| 4640 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4641 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4642 | esac |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4643 | fi |
| 4644 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4645 | fi;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4646 | esac ;; |
| 4647 | esac |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4648 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 4650 | printf "%s\n" "$ac_cv_type_long_long_int" >&6; } |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4651 | if test $ac_cv_type_long_long_int = yes; then |
| 4652 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4653 | printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4654 | |
| 4655 | fi |
| 4656 | |
| 4657 | if test "$ac_cv_type_long_long_int" = no; then |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4658 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4659 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4660 | as_fn_error $? "Compiler does not support long long int |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4661 | See 'config.log' for more details" "$LINENO" 5; } |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4662 | fi |
| 4663 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4664 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5 |
| 4665 | printf %s "checking if the compiler supports trailing commas... " >&6; } |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4666 | trailing_commas=no |
| 4667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4668 | /* end confdefs.h. */ |
| 4669 | |
Bram Moolenaar | 561f8a5 | 2018-04-17 22:02:45 +0200 | [diff] [blame] | 4670 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4671 | main (void) |
Bram Moolenaar | 561f8a5 | 2018-04-17 22:02:45 +0200 | [diff] [blame] | 4672 | { |
| 4673 | |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4674 | enum { |
| 4675 | one, |
| 4676 | }; |
Bram Moolenaar | 561f8a5 | 2018-04-17 22:02:45 +0200 | [diff] [blame] | 4677 | ; |
| 4678 | return 0; |
| 4679 | } |
| 4680 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4681 | if ac_fn_c_try_compile "$LINENO" |
| 4682 | then : |
| 4683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4684 | printf "%s\n" "yes" >&6; }; trailing_commas=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4685 | else case e in #( |
| 4686 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4687 | printf "%s\n" "no" >&6; } ;; |
| 4688 | esac |
Bram Moolenaar | 561f8a5 | 2018-04-17 22:02:45 +0200 | [diff] [blame] | 4689 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4690 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4691 | if test "$trailing_commas" = no; then |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4692 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4693 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4694 | as_fn_error $? "Compiler does not support trailing comma in enum |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4695 | See 'config.log' for more details" "$LINENO" 5; } |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4696 | fi |
| 4697 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5 |
| 4699 | printf %s "checking if the compiler supports C++ comments... " >&6; } |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4700 | slash_comments=no |
| 4701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4702 | /* end confdefs.h. */ |
| 4703 | |
| 4704 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4705 | main (void) |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4706 | { |
| 4707 | // C++ comments? |
| 4708 | ; |
| 4709 | return 0; |
| 4710 | } |
| 4711 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4712 | if ac_fn_c_try_compile "$LINENO" |
| 4713 | then : |
| 4714 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4715 | printf "%s\n" "yes" >&6; }; slash_comments=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4716 | else case e in #( |
| 4717 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4718 | printf "%s\n" "no" >&6; } ;; |
| 4719 | esac |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4720 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4721 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4722 | if test "$slash_comments" = no; then |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4723 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4724 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4725 | as_fn_error $? "Compiler does not support C++ comments |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4726 | See 'config.log' for more details" "$LINENO" 5; } |
Bram Moolenaar | 2264008 | 2018-04-19 20:39:41 +0200 | [diff] [blame] | 4727 | fi |
| 4728 | fi |
Bram Moolenaar | 561f8a5 | 2018-04-17 22:02:45 +0200 | [diff] [blame] | 4729 | |
Bram Moolenaar | 8f1dde5 | 2020-06-05 23:16:29 +0200 | [diff] [blame] | 4730 | if test -n "$SOURCE_DATE_EPOCH"; then |
| 4731 | DATE_FMT="%b %d %Y %H:%M:%S" |
| 4732 | BUILD_DATE=$(LC_ALL=C date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u "+$DATE_FMT") |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4733 | printf "%s\n" "#define BUILD_DATE \"$BUILD_DATE\"" >>confdefs.h |
Bram Moolenaar | 8f1dde5 | 2020-06-05 23:16:29 +0200 | [diff] [blame] | 4734 | |
| 4735 | BUILD_DATE_MSG=-"echo -e '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nNOTE: build date/time is fixed: $BUILD_DATE\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='" |
| 4736 | |
| 4737 | fi |
| 4738 | |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 4739 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4740 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 |
| 4741 | printf %s "checking --enable-fail-if-missing argument... " >&6; } |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 4742 | # Check whether --enable-fail_if_missing was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4743 | if test ${enable_fail_if_missing+y} |
| 4744 | then : |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 4745 | enableval=$enable_fail_if_missing; fail_if_missing="yes" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4746 | else case e in #( |
| 4747 | e) fail_if_missing="no" ;; |
| 4748 | esac |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 4749 | fi |
| 4750 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 |
| 4752 | printf "%s\n" "$fail_if_missing" >&6; } |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 4753 | |
Bram Moolenaar | d2a0549 | 2018-07-27 22:35:15 +0200 | [diff] [blame] | 4754 | with_x_arg="$with_x" |
| 4755 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4756 | if test -z "$CFLAGS"; then |
| 4757 | CFLAGS="-O" |
Bram Moolenaar | 4d8479b | 2021-01-31 14:36:06 +0100 | [diff] [blame] | 4758 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall -Wno-deprecated-declarations" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4759 | fi |
Rose | 00d07e7 | 2023-05-06 18:07:14 +0100 | [diff] [blame] | 4760 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4761 | if test "$GCC" = yes; then |
Bram Moolenaar | c8836f7 | 2014-04-12 13:12:24 +0200 | [diff] [blame] | 4762 | gccversion=`$CC -dumpversion` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4763 | if test "x$gccversion" = "x"; then |
Bram Moolenaar | c8836f7 | 2014-04-12 13:12:24 +0200 | [diff] [blame] | 4764 | gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4765 | fi |
Rose | 00d07e7 | 2023-05-06 18:07:14 +0100 | [diff] [blame] | 4766 | |
| 4767 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4768 | echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' |
| 4769 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 4770 | else |
| 4771 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 4772 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 4773 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 4774 | fi |
| 4775 | fi |
| 4776 | fi |
| 4777 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5 |
| 4779 | printf %s "checking for clang version... " >&6; } |
Bram Moolenaar | 5f69fee | 2017-03-09 11:58:40 +0100 | [diff] [blame] | 4780 | CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed -n -e 's/^.*clang[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'` |
Bram Moolenaar | 0c6ccfd | 2013-10-02 18:23:07 +0200 | [diff] [blame] | 4781 | if test x"$CLANG_VERSION_STRING" != x"" ; then |
| 4782 | CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` |
| 4783 | CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` |
| 4784 | CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` |
| 4785 | CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 |
| 4787 | printf "%s\n" "$CLANG_VERSION" >&6; } |
| 4788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 |
| 4789 | printf %s "checking if clang supports -fno-strength-reduce... " >&6; } |
Bram Moolenaar | ebd211c | 2021-01-30 19:33:36 +0100 | [diff] [blame] | 4790 | if test "$CLANG_MAJOR" -ge 10 -o "$CLANG_VERSION" -ge 500002075 ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4792 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 5f69fee | 2017-03-09 11:58:40 +0100 | [diff] [blame] | 4793 | CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` |
| 4794 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4795 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4796 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 0c6ccfd | 2013-10-02 18:23:07 +0200 | [diff] [blame] | 4797 | fi |
| 4798 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4799 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 |
| 4800 | printf "%s\n" "N/A" >&6; } |
Bram Moolenaar | 0c6ccfd | 2013-10-02 18:23:07 +0200 | [diff] [blame] | 4801 | fi |
| 4802 | |
Bram Moolenaar | 839e954 | 2016-04-14 16:46:02 +0200 | [diff] [blame] | 4803 | CROSS_COMPILING= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4804 | if test "$cross_compiling" = yes; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 |
| 4806 | printf "%s\n" "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } |
Bram Moolenaar | 839e954 | 2016-04-14 16:46:02 +0200 | [diff] [blame] | 4807 | CROSS_COMPILING=1 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4808 | fi |
| 4809 | |
Bram Moolenaar | 839e954 | 2016-04-14 16:46:02 +0200 | [diff] [blame] | 4810 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4811 | test "$GCC" = yes && CPP_MM=M; |
| 4812 | |
| 4813 | if test -f ./toolcheck; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4814 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for buggy tools" >&5 |
| 4815 | printf %s "checking for buggy tools... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4816 | sh ./toolcheck 1>&6 |
| 4817 | fi |
| 4818 | |
| 4819 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 4820 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking uname" >&5 |
| 4822 | printf %s "checking uname... " >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 4823 | if test "x$vim_cv_uname_output" = "x" ; then |
| 4824 | vim_cv_uname_output=`(uname) 2>/dev/null` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_uname_output" >&5 |
| 4826 | printf "%s\n" "$vim_cv_uname_output" >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 4827 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4828 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_uname_output (cached)" >&5 |
| 4829 | printf "%s\n" "$vim_cv_uname_output (cached)" >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 4830 | fi |
| 4831 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4832 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking uname -r" >&5 |
| 4833 | printf %s "checking uname -r... " >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 4834 | if test "x$vim_cv_uname_r_output" = "x" ; then |
| 4835 | vim_cv_uname_r_output=`(uname -r) 2>/dev/null` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_uname_r_output" >&5 |
| 4837 | printf "%s\n" "$vim_cv_uname_r_output" >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 4838 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_uname_r_output (cached)" >&5 |
| 4840 | printf "%s\n" "$vim_cv_uname_r_output (cached)" >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 4841 | fi |
| 4842 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4843 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking uname -m" >&5 |
| 4844 | printf %s "checking uname -m... " >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 4845 | if test "x$vim_cv_uname_m_output" = "x" ; then |
| 4846 | vim_cv_uname_m_output=`(uname -m) 2>/dev/null` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4847 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_uname_m_output" >&5 |
| 4848 | printf "%s\n" "$vim_cv_uname_m_output" >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 4849 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_uname_m_output (cached)" >&5 |
| 4851 | printf "%s\n" "$vim_cv_uname_m_output (cached)" >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 4852 | fi |
| 4853 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4854 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Haiku" >&5 |
| 4855 | printf %s "checking for Haiku... " >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 4856 | case $vim_cv_uname_output in |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4857 | Haiku) HAIKU=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4858 | printf "%s\n" "yes" >&6; };; |
| 4859 | *) HAIKU=no; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4860 | printf "%s\n" "no" >&6; };; |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 4861 | esac |
| 4862 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4863 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 |
| 4864 | printf %s "checking for QNX... " >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 4865 | case $vim_cv_uname_output in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4866 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 4867 | test -z "$with_x" && with_x=no |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4868 | QNX=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4869 | printf "%s\n" "yes" >&6; };; |
| 4870 | *) QNX=no; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4871 | printf "%s\n" "no" >&6; };; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4872 | esac |
| 4873 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 |
| 4875 | printf %s "checking for Darwin (Mac OS X)... " >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 4876 | if test "$vim_cv_uname_output" = Darwin; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4878 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 4879 | MACOS_X=yes |
Bram Moolenaar | 52ecaaa | 2018-05-12 21:38:13 +0200 | [diff] [blame] | 4880 | CPPFLAGS="$CPPFLAGS -DMACOS_X" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4881 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4882 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 |
| 4883 | printf %s "checking --disable-darwin argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4884 | # Check whether --enable-darwin was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4885 | if test ${enable_darwin+y} |
| 4886 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4887 | enableval=$enable_darwin; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4888 | else case e in #( |
| 4889 | e) enable_darwin="yes" ;; |
| 4890 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4891 | fi |
| 4892 | |
| 4893 | if test "$enable_darwin" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4895 | printf "%s\n" "no" >&6; } |
| 4896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 |
| 4897 | printf %s "checking if Darwin files are there... " >&6; } |
Bram Moolenaar | 164fca3 | 2010-07-14 13:58:07 +0200 | [diff] [blame] | 4898 | if test -f os_macosx.m; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4900 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4901 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 |
| 4903 | printf "%s\n" "no, Darwin support disabled" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4904 | enable_darwin=no |
| 4905 | fi |
| 4906 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4907 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 |
| 4908 | printf "%s\n" "yes, Darwin support excluded" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4909 | fi |
| 4910 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4911 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 |
| 4912 | printf %s "checking --with-mac-arch argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4913 | |
| 4914 | # Check whether --with-mac-arch was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4915 | if test ${with_mac_arch+y} |
| 4916 | then : |
| 4917 | withval=$with_mac_arch; MACARCH="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 |
| 4918 | printf "%s\n" "$MACARCH" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4919 | else case e in #( |
| 4920 | e) MACARCH="current"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 |
| 4921 | printf "%s\n" "defaulting to $MACARCH" >&6; } ;; |
| 4922 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4923 | fi |
| 4924 | |
| 4925 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 |
| 4927 | printf %s "checking --with-developer-dir argument... " >&6; } |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 4928 | |
| 4929 | # Check whether --with-developer-dir was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4930 | if test ${with_developer_dir+y} |
| 4931 | then : |
| 4932 | withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 |
| 4933 | printf "%s\n" "$DEVELOPER_DIR" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4934 | else case e in #( |
| 4935 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present" >&5 |
| 4936 | printf "%s\n" "not present" >&6; } ;; |
| 4937 | esac |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 4938 | fi |
| 4939 | |
| 4940 | |
| 4941 | if test "x$DEVELOPER_DIR" = "x"; then |
| 4942 | # Extract the first word of "xcode-select", so it can be a program name with args. |
| 4943 | set dummy xcode-select; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4945 | printf %s "checking for $ac_word... " >&6; } |
| 4946 | if test ${ac_cv_path_XCODE_SELECT+y} |
| 4947 | then : |
| 4948 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4949 | else case e in #( |
| 4950 | e) case $XCODE_SELECT in |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 4951 | [\\/]* | ?:[\\/]*) |
| 4952 | ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. |
| 4953 | ;; |
| 4954 | *) |
| 4955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4956 | for as_dir in $PATH |
| 4957 | do |
| 4958 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4959 | case $as_dir in #((( |
| 4960 | '') as_dir=./ ;; |
| 4961 | */) ;; |
| 4962 | *) as_dir=$as_dir/ ;; |
| 4963 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4964 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4965 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4966 | ac_cv_path_XCODE_SELECT="$as_dir$ac_word$ac_exec_ext" |
| 4967 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 4968 | break 2 |
| 4969 | fi |
| 4970 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 4971 | done |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 4972 | IFS=$as_save_IFS |
| 4973 | |
| 4974 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 4975 | esac ;; |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 4976 | esac |
| 4977 | fi |
| 4978 | XCODE_SELECT=$ac_cv_path_XCODE_SELECT |
| 4979 | if test -n "$XCODE_SELECT"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 |
| 4981 | printf "%s\n" "$XCODE_SELECT" >&6; } |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 4982 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4984 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 4985 | fi |
| 4986 | |
| 4987 | |
| 4988 | if test "x$XCODE_SELECT" != "x"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 |
| 4990 | printf %s "checking for developer dir using xcode-select... " >&6; } |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 4991 | DEVELOPER_DIR=`$XCODE_SELECT -print-path` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 4992 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 |
| 4993 | printf "%s\n" "$DEVELOPER_DIR" >&6; } |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 4994 | else |
| 4995 | DEVELOPER_DIR=/Developer |
| 4996 | fi |
| 4997 | fi |
| 4998 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4999 | if test "x$MACARCH" = "xboth"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 |
| 5001 | printf %s "checking for 10.4 universal SDK... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5002 | save_cppflags="$CPPFLAGS" |
| 5003 | save_cflags="$CFLAGS" |
| 5004 | save_ldflags="$LDFLAGS" |
Bram Moolenaar | 595a7be | 2010-03-10 16:28:12 +0100 | [diff] [blame] | 5005 | CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 5006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5007 | /* end confdefs.h. */ |
| 5008 | |
| 5009 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5010 | main (void) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5011 | { |
| 5012 | |
| 5013 | ; |
| 5014 | return 0; |
| 5015 | } |
| 5016 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5017 | if ac_fn_c_try_link "$LINENO" |
| 5018 | then : |
| 5019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 5020 | printf "%s\n" "found" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5021 | else case e in #( |
| 5022 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5023 | printf "%s\n" "not found" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5024 | CFLAGS="$save_cflags" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 |
| 5026 | printf %s "checking if Intel architecture is supported... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5027 | CPPFLAGS="$CPPFLAGS -arch i386" |
| 5028 | LDFLAGS="$save_ldflags -arch i386" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 5029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5030 | /* end confdefs.h. */ |
| 5031 | |
| 5032 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5033 | main (void) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5034 | { |
| 5035 | |
| 5036 | ; |
| 5037 | return 0; |
| 5038 | } |
| 5039 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5040 | if ac_fn_c_try_link "$LINENO" |
| 5041 | then : |
| 5042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5043 | printf "%s\n" "yes" >&6; }; MACARCH="intel" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5044 | else case e in #( |
| 5045 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5046 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5047 | MACARCH="ppc" |
| 5048 | CPPFLAGS="$save_cppflags -arch ppc" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5049 | LDFLAGS="$save_ldflags -arch ppc" ;; |
| 5050 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5051 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5052 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5053 | conftest$ac_exeext conftest.$ac_ext ;; |
| 5054 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5055 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5056 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 5057 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5058 | elif test "x$MACARCH" = "xintel"; then |
| 5059 | CPPFLAGS="$CPPFLAGS -arch intel" |
| 5060 | LDFLAGS="$LDFLAGS -arch intel" |
| 5061 | elif test "x$MACARCH" = "xppc"; then |
| 5062 | CPPFLAGS="$CPPFLAGS -arch ppc" |
| 5063 | LDFLAGS="$LDFLAGS -arch ppc" |
| 5064 | fi |
| 5065 | |
| 5066 | if test "$enable_darwin" = "yes"; then |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 5067 | MACOS_X_DARWIN=yes |
Bram Moolenaar | 164fca3 | 2010-07-14 13:58:07 +0200 | [diff] [blame] | 5068 | OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5069 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5070 | printf "%s\n" "#define HAVE_TIMER_CREATE 1" >>confdefs.h |
Bram Moolenaar | e530395 | 2022-06-19 17:05:47 +0100 | [diff] [blame] | 5071 | |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 5072 | CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN" |
Bram Moolenaar | 040f975 | 2020-08-11 23:08:48 +0200 | [diff] [blame] | 5073 | |
Bram Moolenaar | 0b40d08 | 2022-03-08 13:32:37 +0000 | [diff] [blame] | 5074 | if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then |
Bram Moolenaar | 040f975 | 2020-08-11 23:08:48 +0200 | [diff] [blame] | 5075 | with_x=no |
| 5076 | fi |
Bram Moolenaar | 097148e | 2020-08-11 21:58:20 +0200 | [diff] [blame] | 5077 | fi |
Bram Moolenaar | 097148e | 2020-08-11 21:58:20 +0200 | [diff] [blame] | 5078 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5079 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5080 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 097148e | 2020-08-11 21:58:20 +0200 | [diff] [blame] | 5081 | fi |
| 5082 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5083 | ac_header= ac_cache= |
| 5084 | for ac_item in $ac_header_c_list |
| 5085 | do |
| 5086 | if test $ac_cache; then |
| 5087 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 5088 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 5089 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 5090 | fi |
| 5091 | ac_header= ac_cache= |
| 5092 | elif test $ac_header; then |
| 5093 | ac_cache=$ac_item |
| 5094 | else |
| 5095 | ac_header=$ac_item |
| 5096 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5097 | done |
| 5098 | |
| 5099 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5100 | |
| 5101 | |
| 5102 | |
| 5103 | |
| 5104 | |
| 5105 | |
| 5106 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 5107 | then : |
| 5108 | |
| 5109 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
Bram Moolenaar | 18e5469 | 2013-11-03 20:26:31 +0100 | [diff] [blame] | 5110 | |
Bram Moolenaar | 39766a7 | 2013-11-03 00:41:00 +0100 | [diff] [blame] | 5111 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5112 | ac_fn_c_check_header_compile "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" |
| 5113 | if test "x$ac_cv_header_AvailabilityMacros_h" = xyes |
| 5114 | then : |
| 5115 | printf "%s\n" "#define HAVE_AVAILABILITYMACROS_H 1" >>confdefs.h |
Bram Moolenaar | 39766a7 | 2013-11-03 00:41:00 +0100 | [diff] [blame] | 5116 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5117 | fi |
Bram Moolenaar | 39766a7 | 2013-11-03 00:41:00 +0100 | [diff] [blame] | 5118 | |
Evan Miller | 2544807 | 2022-12-30 10:42:23 +0000 | [diff] [blame] | 5119 | # 10.5 and earlier lack dispatch |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5120 | ac_fn_c_check_header_compile "$LINENO" "dispatch/dispatch.h" "ac_cv_header_dispatch_dispatch_h" "$ac_includes_default" |
| 5121 | if test "x$ac_cv_header_dispatch_dispatch_h" = xyes |
| 5122 | then : |
| 5123 | printf "%s\n" "#define HAVE_DISPATCH_DISPATCH_H 1" >>confdefs.h |
Evan Miller | 2544807 | 2022-12-30 10:42:23 +0000 | [diff] [blame] | 5124 | |
| 5125 | fi |
| 5126 | |
Bram Moolenaar | 39766a7 | 2013-11-03 00:41:00 +0100 | [diff] [blame] | 5127 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5128 | |
| 5129 | |
| 5130 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5131 | if test "$cross_compiling" = no; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 |
| 5133 | printf %s "checking --with-local-dir argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5134 | have_local_include='' |
| 5135 | have_local_lib='' |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 5136 | |
| 5137 | # Check whether --with-local-dir was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5138 | if test ${with_local_dir+y} |
| 5139 | then : |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 5140 | withval=$with_local_dir; |
| 5141 | local_dir="$withval" |
| 5142 | case "$withval" in |
| 5143 | */*) ;; |
| 5144 | no) |
| 5145 | # avoid adding local dir to LDFLAGS and CPPFLAGS |
Bram Moolenaar | e06c188 | 2010-07-21 22:05:20 +0200 | [diff] [blame] | 5146 | have_local_include=yes |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 5147 | have_local_lib=yes |
| 5148 | ;; |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 5149 | *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 5150 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 |
| 5152 | printf "%s\n" "$local_dir" >&6; } |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 5153 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5154 | else case e in #( |
| 5155 | e) |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 5156 | local_dir=/usr/local |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5157 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 |
| 5158 | printf "%s\n" "Defaulting to $local_dir" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5159 | ;; |
| 5160 | esac |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 5161 | fi |
| 5162 | |
| 5163 | if test "$GCC" = yes -a "$local_dir" != no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5164 | echo 'void f(){}' > conftest.c |
Bram Moolenaar | 0958e0f | 2013-11-04 04:57:50 +0100 | [diff] [blame] | 5165 | have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 5166 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5167 | rm -f conftest.c conftest.o |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5168 | fi |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 5169 | if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then |
| 5170 | tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5171 | if test "$tt" = "$LDFLAGS"; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 5172 | LDFLAGS="$LDFLAGS -L${local_dir}/lib" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5173 | fi |
| 5174 | fi |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 5175 | if test -z "$have_local_include" -a -d "${local_dir}/include"; then |
| 5176 | tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5177 | if test "$tt" = "$CPPFLAGS"; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 5178 | CPPFLAGS="$CPPFLAGS -I${local_dir}/include" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5179 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5180 | fi |
| 5181 | fi |
| 5182 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 |
| 5184 | printf %s "checking --with-vim-name argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5185 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5186 | # Check whether --with-vim-name was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5187 | if test ${with_vim_name+y} |
| 5188 | then : |
| 5189 | withval=$with_vim_name; VIMNAME="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 |
| 5190 | printf "%s\n" "$VIMNAME" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5191 | else case e in #( |
| 5192 | e) VIMNAME="vim"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 |
| 5193 | printf "%s\n" "Defaulting to $VIMNAME" >&6; } ;; |
| 5194 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5195 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5196 | |
| 5197 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 |
| 5199 | printf %s "checking --with-ex-name argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5200 | |
| 5201 | # Check whether --with-ex-name was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5202 | if test ${with_ex_name+y} |
| 5203 | then : |
| 5204 | withval=$with_ex_name; EXNAME="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 |
| 5205 | printf "%s\n" "$EXNAME" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5206 | else case e in #( |
| 5207 | e) EXNAME="ex"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 |
| 5208 | printf "%s\n" "Defaulting to ex" >&6; } ;; |
| 5209 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5210 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5211 | |
| 5212 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 |
| 5214 | printf %s "checking --with-view-name argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5215 | |
| 5216 | # Check whether --with-view-name was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5217 | if test ${with_view_name+y} |
| 5218 | then : |
| 5219 | withval=$with_view_name; VIEWNAME="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 |
| 5220 | printf "%s\n" "$VIEWNAME" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5221 | else case e in #( |
| 5222 | e) VIEWNAME="view"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 |
| 5223 | printf "%s\n" "Defaulting to view" >&6; } ;; |
| 5224 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5225 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5226 | |
| 5227 | |
| 5228 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 |
| 5230 | printf %s "checking --with-global-runtime argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5231 | |
| 5232 | # Check whether --with-global-runtime was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5233 | if test ${with_global_runtime+y} |
| 5234 | then : |
| 5235 | withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 5236 | printf "%s\n" "$withval" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5237 | else case e in #( |
| 5238 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5239 | printf "%s\n" "no" >&6; } ;; |
| 5240 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5241 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5242 | |
| 5243 | |
Bram Moolenaar | 9d302ad | 2018-12-21 11:48:51 +0100 | [diff] [blame] | 5244 | if test "X$RUNTIME_GLOBAL" != "X"; then |
| 5245 | RUNTIME_GLOBAL_AFTER=$(printf -- "$RUNTIME_GLOBAL\\n" | $AWK -F, 'BEGIN { comma=0 } { for (i = NF; i > 0; i--) { if (comma) { printf ",%s/after", $i } else { printf "%s/after", $i; comma=1 } } } END { printf "\n" }') |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5246 | printf "%s\n" "#define RUNTIME_GLOBAL \"$RUNTIME_GLOBAL\"" >>confdefs.h |
Bram Moolenaar | 9d302ad | 2018-12-21 11:48:51 +0100 | [diff] [blame] | 5247 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5248 | printf "%s\n" "#define RUNTIME_GLOBAL_AFTER \"$RUNTIME_GLOBAL_AFTER\"" >>confdefs.h |
Bram Moolenaar | 9d302ad | 2018-12-21 11:48:51 +0100 | [diff] [blame] | 5249 | |
| 5250 | fi |
| 5251 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5252 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 |
| 5253 | printf %s "checking --with-modified-by argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5254 | |
| 5255 | # Check whether --with-modified-by was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5256 | if test ${with_modified_by+y} |
| 5257 | then : |
| 5258 | withval=$with_modified_by; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 5259 | printf "%s\n" "$withval" >&6; }; printf "%s\n" "#define MODIFIED_BY \"$withval\"" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5260 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5261 | else case e in #( |
| 5262 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5263 | printf "%s\n" "no" >&6; } ;; |
| 5264 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5265 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5266 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5267 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 |
| 5269 | printf %s "checking if character set is EBCDIC... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 5270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5271 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5272 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5273 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5274 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5275 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5276 | /* TryCompile function for CharSet. |
| 5277 | Treat any failure as ASCII for compatibility with existing art. |
| 5278 | Use compile-time rather than run-time tests for cross-compiler |
| 5279 | tolerance. */ |
| 5280 | #if '0'!=240 |
| 5281 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5282 | #endif |
| 5283 | ; |
| 5284 | return 0; |
| 5285 | } |
| 5286 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5287 | if ac_fn_c_try_compile "$LINENO" |
| 5288 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5289 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5290 | cf_cv_ebcdic=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5291 | else case e in #( |
| 5292 | e) # TryCompile action if false |
| 5293 | cf_cv_ebcdic=no ;; |
| 5294 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5295 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5296 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5297 | # end of TryCompile ]) |
| 5298 | # end of CacheVal CvEbcdic |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5299 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 |
| 5300 | printf "%s\n" "$cf_cv_ebcdic" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5301 | case "$cf_cv_ebcdic" in #(vi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5302 | yes) printf "%s\n" "#define EBCDIC 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5303 | |
| 5304 | line_break='"\\n"' |
| 5305 | ;; |
| 5306 | *) line_break='"\\012"';; |
| 5307 | esac |
| 5308 | |
| 5309 | |
| 5310 | if test "$cf_cv_ebcdic" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5311 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 |
| 5312 | printf %s "checking for z/OS Unix... " >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 5313 | case $vim_cv_uname_output in |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 5314 | OS/390) zOSUnix="yes"; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5315 | if test "$CC" = "cc"; then |
| 5316 | ccm="$_CC_CCMODE" |
| 5317 | ccn="CC" |
| 5318 | else |
| 5319 | if test "$CC" = "c89"; then |
| 5320 | ccm="$_CC_C89MODE" |
| 5321 | ccn="C89" |
| 5322 | else |
| 5323 | ccm=1 |
| 5324 | fi |
| 5325 | fi |
| 5326 | if test "$ccm" != "1"; then |
| 5327 | echo "" |
| 5328 | echo "------------------------------------------" |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 5329 | echo " On z/OS Unix, the environment variable" |
Bram Moolenaar | 77c1935 | 2012-06-13 19:19:41 +0200 | [diff] [blame] | 5330 | echo " _CC_${ccn}MODE must be set to \"1\"!" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5331 | echo " Do:" |
| 5332 | echo " export _CC_${ccn}MODE=1" |
| 5333 | echo " and then call configure again." |
| 5334 | echo "------------------------------------------" |
| 5335 | exit 1 |
| 5336 | fi |
Bram Moolenaar | 77c1935 | 2012-06-13 19:19:41 +0200 | [diff] [blame] | 5337 | # Set CFLAGS for configure process. |
| 5338 | # This will be reset later for config.mk. |
| 5339 | # Use haltonmsg to force error for missing H files. |
| 5340 | CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; |
| 5341 | LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5342 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5343 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5344 | ;; |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 5345 | *) zOSUnix="no"; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5347 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5348 | ;; |
| 5349 | esac |
| 5350 | fi |
| 5351 | |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 5352 | if test "$zOSUnix" = "yes"; then |
Bram Moolenaar | abcbb0e | 2020-12-23 12:33:42 +0100 | [diff] [blame] | 5353 | QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/' -e 's/ */ /g'" |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 5354 | else |
Bram Moolenaar | abcbb0e | 2020-12-23 12:33:42 +0100 | [diff] [blame] | 5355 | QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/' -e 's/ */ /g'" |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 5356 | fi |
| 5357 | |
| 5358 | |
| 5359 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5360 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 |
| 5361 | printf %s "checking --disable-smack argument... " >&6; } |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5362 | # Check whether --enable-smack was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5363 | if test ${enable_smack+y} |
| 5364 | then : |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5365 | enableval=$enable_smack; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5366 | else case e in #( |
| 5367 | e) enable_smack="yes" ;; |
| 5368 | esac |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5369 | fi |
| 5370 | |
| 5371 | if test "$enable_smack" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5372 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5373 | printf "%s\n" "no" >&6; } |
| 5374 | ac_fn_c_check_header_compile "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" |
| 5375 | if test "x$ac_cv_header_linux_xattr_h" = xyes |
| 5376 | then : |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5377 | true |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5378 | else case e in #( |
| 5379 | e) enable_smack="no" ;; |
| 5380 | esac |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5381 | fi |
| 5382 | |
Bram Moolenaar | 4ed89cd | 2014-04-05 12:02:25 +0200 | [diff] [blame] | 5383 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5385 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5386 | fi |
| 5387 | if test "$enable_smack" = "yes"; then |
Illia Bobyr | 8c358e0 | 2023-09-30 22:57:19 +0200 | [diff] [blame] | 5388 | ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" |
| 5389 | if test "x$ac_cv_header_sys_xattr_h" = xyes |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5390 | then : |
Bram Moolenaar | c09551a | 2014-04-10 11:09:17 +0200 | [diff] [blame] | 5391 | true |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5392 | else case e in #( |
| 5393 | e) enable_smack="no" ;; |
| 5394 | esac |
Bram Moolenaar | c09551a | 2014-04-10 11:09:17 +0200 | [diff] [blame] | 5395 | fi |
| 5396 | |
Bram Moolenaar | c09551a | 2014-04-10 11:09:17 +0200 | [diff] [blame] | 5397 | fi |
| 5398 | if test "$enable_smack" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 |
| 5400 | printf %s "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } |
| 5401 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 |
| 5403 | printf %s "checking for egrep -e... " >&6; } |
| 5404 | if test ${ac_cv_path_EGREP_TRADITIONAL+y} |
| 5405 | then : |
| 5406 | printf %s "(cached) " >&6 |
| 5407 | else case e in #( |
| 5408 | e) if test -z "$EGREP_TRADITIONAL"; then |
| 5409 | ac_path_EGREP_TRADITIONAL_found=false |
| 5410 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5412 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5413 | do |
| 5414 | IFS=$as_save_IFS |
| 5415 | case $as_dir in #((( |
| 5416 | '') as_dir=./ ;; |
| 5417 | */) ;; |
| 5418 | *) as_dir=$as_dir/ ;; |
| 5419 | esac |
| 5420 | for ac_prog in grep ggrep |
| 5421 | do |
| 5422 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5423 | ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 5424 | as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 5425 | # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 5426 | # Check for GNU $ac_path_EGREP_TRADITIONAL |
| 5427 | case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 5428 | *GNU*) |
| 5429 | ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 5430 | #( |
| 5431 | *) |
| 5432 | ac_count=0 |
| 5433 | printf %s 0123456789 >"conftest.in" |
| 5434 | while : |
| 5435 | do |
| 5436 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5437 | mv "conftest.tmp" "conftest.in" |
| 5438 | cp "conftest.in" "conftest.nl" |
| 5439 | printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 5440 | "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5441 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5442 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5443 | if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 5444 | # Best one so far, save it but keep looking for a better one |
| 5445 | ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 5446 | ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 5447 | fi |
| 5448 | # 10*(2^10) chars as input seems more than enough |
| 5449 | test $ac_count -gt 10 && break |
| 5450 | done |
| 5451 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5452 | esac |
| 5453 | |
| 5454 | $ac_path_EGREP_TRADITIONAL_found && break 3 |
| 5455 | done |
| 5456 | done |
| 5457 | done |
| 5458 | IFS=$as_save_IFS |
| 5459 | if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 5460 | : |
| 5461 | fi |
| 5462 | else |
| 5463 | ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 5464 | fi |
| 5465 | |
| 5466 | if test "$ac_cv_path_EGREP_TRADITIONAL" |
| 5467 | then : |
| 5468 | ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" |
| 5469 | else case e in #( |
| 5470 | e) if test -z "$EGREP_TRADITIONAL"; then |
| 5471 | ac_path_EGREP_TRADITIONAL_found=false |
| 5472 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5474 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5475 | do |
| 5476 | IFS=$as_save_IFS |
| 5477 | case $as_dir in #((( |
| 5478 | '') as_dir=./ ;; |
| 5479 | */) ;; |
| 5480 | *) as_dir=$as_dir/ ;; |
| 5481 | esac |
| 5482 | for ac_prog in egrep |
| 5483 | do |
| 5484 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5485 | ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 5486 | as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 5487 | # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 5488 | # Check for GNU $ac_path_EGREP_TRADITIONAL |
| 5489 | case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 5490 | *GNU*) |
| 5491 | ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 5492 | #( |
| 5493 | *) |
| 5494 | ac_count=0 |
| 5495 | printf %s 0123456789 >"conftest.in" |
| 5496 | while : |
| 5497 | do |
| 5498 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5499 | mv "conftest.tmp" "conftest.in" |
| 5500 | cp "conftest.in" "conftest.nl" |
| 5501 | printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 5502 | "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5503 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5504 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5505 | if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 5506 | # Best one so far, save it but keep looking for a better one |
| 5507 | ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 5508 | ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 5509 | fi |
| 5510 | # 10*(2^10) chars as input seems more than enough |
| 5511 | test $ac_count -gt 10 && break |
| 5512 | done |
| 5513 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5514 | esac |
| 5515 | |
| 5516 | $ac_path_EGREP_TRADITIONAL_found && break 3 |
| 5517 | done |
| 5518 | done |
| 5519 | done |
| 5520 | IFS=$as_save_IFS |
| 5521 | if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 5522 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5523 | fi |
| 5524 | else |
| 5525 | ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 5526 | fi |
| 5527 | ;; |
| 5528 | esac |
| 5529 | fi ;; |
| 5530 | esac |
| 5531 | fi |
| 5532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 |
| 5533 | printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } |
| 5534 | EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL |
| 5535 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | c09551a | 2014-04-10 11:09:17 +0200 | [diff] [blame] | 5537 | /* end confdefs.h. */ |
| 5538 | #include <linux/xattr.h> |
| 5539 | _ACEOF |
| 5540 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5541 | $EGREP_TRADITIONAL "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5542 | then : |
| 5543 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5544 | printf "%s\n" "yes" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5545 | else case e in #( |
| 5546 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5547 | printf "%s\n" "no" >&6; }; enable_smack="no" ;; |
| 5548 | esac |
Bram Moolenaar | c09551a | 2014-04-10 11:09:17 +0200 | [diff] [blame] | 5549 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5550 | rm -rf conftest* |
Bram Moolenaar | c09551a | 2014-04-10 11:09:17 +0200 | [diff] [blame] | 5551 | |
| 5552 | fi |
| 5553 | if test "$enable_smack" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 |
| 5555 | printf %s "checking for setxattr in -lattr... " >&6; } |
| 5556 | if test ${ac_cv_lib_attr_setxattr+y} |
| 5557 | then : |
| 5558 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5559 | else case e in #( |
| 5560 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5561 | LIBS="-lattr $LIBS" |
| 5562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5563 | /* end confdefs.h. */ |
| 5564 | |
| 5565 | /* Override any GCC internal prototype to avoid an error. |
| 5566 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5567 | builtin and then its argument prototype would still apply. |
| 5568 | The 'extern "C"' is for builds by C++ compilers; |
| 5569 | although this is not generally supported in C code supporting it here |
| 5570 | has little cost and some practical benefit (sr 110532). */ |
| 5571 | #ifdef __cplusplus |
| 5572 | extern "C" |
| 5573 | #endif |
| 5574 | char setxattr (void); |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5575 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5576 | main (void) |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5577 | { |
Bram Moolenaar | c09551a | 2014-04-10 11:09:17 +0200 | [diff] [blame] | 5578 | return setxattr (); |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5579 | ; |
| 5580 | return 0; |
| 5581 | } |
| 5582 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5583 | if ac_fn_c_try_link "$LINENO" |
| 5584 | then : |
Bram Moolenaar | c09551a | 2014-04-10 11:09:17 +0200 | [diff] [blame] | 5585 | ac_cv_lib_attr_setxattr=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5586 | else case e in #( |
| 5587 | e) ac_cv_lib_attr_setxattr=no ;; |
| 5588 | esac |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5589 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5590 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5591 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5592 | LIBS=$ac_check_lib_save_LIBS ;; |
| 5593 | esac |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5594 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 |
| 5596 | printf "%s\n" "$ac_cv_lib_attr_setxattr" >&6; } |
| 5597 | if test "x$ac_cv_lib_attr_setxattr" = xyes |
| 5598 | then : |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5599 | LIBS="$LIBS -lattr" |
| 5600 | found_smack="yes" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5601 | printf "%s\n" "#define HAVE_SMACK 1" >>confdefs.h |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5602 | |
| 5603 | fi |
| 5604 | |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5605 | fi |
| 5606 | |
| 5607 | if test "x$found_smack" = "x"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5608 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 |
| 5609 | printf %s "checking --disable-selinux argument... " >&6; } |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5610 | # Check whether --enable-selinux was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5611 | if test ${enable_selinux+y} |
| 5612 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5613 | enableval=$enable_selinux; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5614 | else case e in #( |
| 5615 | e) enable_selinux="yes" ;; |
| 5616 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5617 | fi |
| 5618 | |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5619 | if test "$enable_selinux" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5621 | printf "%s\n" "no" >&6; } |
| 5622 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 |
| 5623 | printf %s "checking for is_selinux_enabled in -lselinux... " >&6; } |
| 5624 | if test ${ac_cv_lib_selinux_is_selinux_enabled+y} |
| 5625 | then : |
| 5626 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5627 | else case e in #( |
| 5628 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 5629 | LIBS="-lselinux $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 5630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 5631 | /* end confdefs.h. */ |
| 5632 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5633 | /* Override any GCC internal prototype to avoid an error. |
| 5634 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5635 | builtin and then its argument prototype would still apply. |
| 5636 | The 'extern "C"' is for builds by C++ compilers; |
| 5637 | although this is not generally supported in C code supporting it here |
| 5638 | has little cost and some practical benefit (sr 110532). */ |
| 5639 | #ifdef __cplusplus |
| 5640 | extern "C" |
| 5641 | #endif |
| 5642 | char is_selinux_enabled (void); |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 5643 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5644 | main (void) |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 5645 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5646 | return is_selinux_enabled (); |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 5647 | ; |
| 5648 | return 0; |
| 5649 | } |
| 5650 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5651 | if ac_fn_c_try_link "$LINENO" |
| 5652 | then : |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 5653 | ac_cv_lib_selinux_is_selinux_enabled=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5654 | else case e in #( |
| 5655 | e) ac_cv_lib_selinux_is_selinux_enabled=no ;; |
| 5656 | esac |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 5657 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5658 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 5659 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5660 | LIBS=$ac_check_lib_save_LIBS ;; |
| 5661 | esac |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 5662 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
| 5664 | printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } |
| 5665 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes |
| 5666 | then : |
| 5667 | ac_fn_c_check_header_compile "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" |
| 5668 | if test "x$ac_cv_header_selinux_selinux_h" = xyes |
| 5669 | then : |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 5670 | LIBS="$LIBS -lselinux" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5671 | printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h |
Bram Moolenaar | e4b78e2 | 2017-12-07 22:29:11 +0100 | [diff] [blame] | 5672 | |
| 5673 | fi |
| 5674 | |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 5675 | fi |
| 5676 | |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5677 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5679 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 5bd32f4 | 2014-04-02 14:05:38 +0200 | [diff] [blame] | 5680 | fi |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 5681 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5682 | |
Christian Brabandt | e085dfd | 2023-09-30 12:49:18 +0200 | [diff] [blame] | 5683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-xattr argument" >&5 |
| 5684 | printf %s "checking --enable-xattr argument... " >&6; } |
| 5685 | # Check whether --enable-xattr was given. |
| 5686 | if test ${enable_xattr+y} |
| 5687 | then : |
| 5688 | enableval=$enable_xattr; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5689 | else case e in #( |
| 5690 | e) enable_xattr="yes" ;; |
| 5691 | esac |
Christian Brabandt | e085dfd | 2023-09-30 12:49:18 +0200 | [diff] [blame] | 5692 | fi |
| 5693 | |
| 5694 | if test "$enable_xattr" = "yes"; then |
| 5695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5696 | printf "%s\n" "yes" >&6; } |
Illia Bobyr | 8c358e0 | 2023-09-30 22:57:19 +0200 | [diff] [blame] | 5697 | ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" |
| 5698 | if test "x$ac_cv_header_sys_xattr_h" = xyes |
Christian Brabandt | e085dfd | 2023-09-30 12:49:18 +0200 | [diff] [blame] | 5699 | then : |
| 5700 | printf "%s\n" "#define HAVE_XATTR 1" >>confdefs.h |
| 5701 | |
| 5702 | fi |
| 5703 | |
| 5704 | else |
| 5705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5706 | printf "%s\n" "no" >&6; } |
| 5707 | fi |
| 5708 | |
| 5709 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5710 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 |
| 5711 | printf %s "checking --with-features argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5712 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5713 | # Check whether --with-features was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5714 | if test ${with_features+y} |
| 5715 | then : |
| 5716 | withval=$with_features; features="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $features" >&5 |
| 5717 | printf "%s\n" "$features" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5718 | else case e in #( |
| 5719 | e) features="huge"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 |
| 5720 | printf "%s\n" "Defaulting to huge" >&6; } ;; |
| 5721 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5722 | fi |
| 5723 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5724 | |
Martin Tournoij | 7904fa4 | 2022-10-04 16:28:45 +0100 | [diff] [blame] | 5725 | case "$features" in |
Martin Tournoij | 25f3a14 | 2022-10-08 19:26:41 +0100 | [diff] [blame] | 5726 | small) features="tiny" ;; |
| 5727 | big) features="normal" ;; |
Martin Tournoij | 7904fa4 | 2022-10-04 16:28:45 +0100 | [diff] [blame] | 5728 | esac |
| 5729 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5730 | dovimdiff="" |
| 5731 | dogvimdiff="" |
| 5732 | case "$features" in |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5733 | tiny) printf "%s\n" "#define FEAT_TINY 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5734 | ;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5735 | normal) printf "%s\n" "#define FEAT_NORMAL 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5736 | dovimdiff="installvimdiff"; |
| 5737 | dogvimdiff="installgvimdiff" ;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5738 | huge) printf "%s\n" "#define FEAT_HUGE 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5739 | dovimdiff="installvimdiff"; |
| 5740 | dogvimdiff="installgvimdiff" ;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5741 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 |
| 5742 | printf "%s\n" "Sorry, $features is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5743 | esac |
| 5744 | |
| 5745 | |
| 5746 | |
| 5747 | |
Martin Tournoij | 7904fa4 | 2022-10-04 16:28:45 +0100 | [diff] [blame] | 5748 | if test "x$features" = "xtiny"; then |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 5749 | has_eval=no |
| 5750 | else |
| 5751 | has_eval=yes |
| 5752 | fi |
| 5753 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 |
| 5755 | printf %s "checking --with-compiledby argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5756 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5757 | # Check whether --with-compiledby was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5758 | if test ${with_compiledby+y} |
| 5759 | then : |
| 5760 | withval=$with_compiledby; compiledby="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 5761 | printf "%s\n" "$withval" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5762 | else case e in #( |
| 5763 | e) compiledby=""; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5764 | printf "%s\n" "no" >&6; } ;; |
| 5765 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5766 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5767 | |
| 5768 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5769 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 |
| 5771 | printf %s "checking --disable-xsmp argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5772 | # Check whether --enable-xsmp was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5773 | if test ${enable_xsmp+y} |
| 5774 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5775 | enableval=$enable_xsmp; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5776 | else case e in #( |
| 5777 | e) enable_xsmp="yes" ;; |
| 5778 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5779 | fi |
| 5780 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5781 | |
| 5782 | if test "$enable_xsmp" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5783 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5784 | printf "%s\n" "no" >&6; } |
| 5785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 |
| 5786 | printf %s "checking --disable-xsmp-interact argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5787 | # Check whether --enable-xsmp-interact was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5788 | if test ${enable_xsmp_interact+y} |
| 5789 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5790 | enableval=$enable_xsmp_interact; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5791 | else case e in #( |
| 5792 | e) enable_xsmp_interact="yes" ;; |
| 5793 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5794 | fi |
| 5795 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5796 | if test "$enable_xsmp_interact" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5798 | printf "%s\n" "no" >&6; } |
| 5799 | printf "%s\n" "#define USE_XSMP_INTERACT 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5800 | |
| 5801 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5803 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5804 | fi |
| 5805 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5806 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5807 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5808 | fi |
| 5809 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking diff feature" >&5 |
| 5811 | printf %s "checking diff feature... " >&6; } |
Martin Tournoij | 7904fa4 | 2022-10-04 16:28:45 +0100 | [diff] [blame] | 5812 | if test "x$features" = "xtiny"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5813 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled in $features version" >&5 |
| 5814 | printf "%s\n" "disabled in $features version" >&6; } |
Bram Moolenaar | 67ffb41 | 2022-01-08 13:36:57 +0000 | [diff] [blame] | 5815 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 |
| 5817 | printf "%s\n" "enabled" >&6; } |
| 5818 | printf "%s\n" "#define FEAT_DIFF 1" >>confdefs.h |
Bram Moolenaar | 67ffb41 | 2022-01-08 13:36:57 +0000 | [diff] [blame] | 5819 | |
| 5820 | XDIFF_OBJS_USED="\$(XDIFF_OBJS)" |
| 5821 | |
| 5822 | fi |
| 5823 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 |
| 5825 | printf %s "checking --enable-luainterp argument... " >&6; } |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5826 | # Check whether --enable-luainterp was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5827 | if test ${enable_luainterp+y} |
| 5828 | then : |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5829 | enableval=$enable_luainterp; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5830 | else case e in #( |
| 5831 | e) enable_luainterp="no" ;; |
| 5832 | esac |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5833 | fi |
| 5834 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5835 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 |
| 5836 | printf "%s\n" "$enable_luainterp" >&6; } |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5837 | |
Bram Moolenaar | 2334b6d | 2010-07-22 21:32:16 +0200 | [diff] [blame] | 5838 | if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 5839 | if test "$has_eval" = "no"; then |
Martin Tournoij | 7904fa4 | 2022-10-04 16:28:45 +0100 | [diff] [blame] | 5840 | as_fn_error $? "cannot use Lua with tiny features" "$LINENO" 5 |
Bram Moolenaar | 3c124e3 | 2016-01-31 14:36:58 +0100 | [diff] [blame] | 5841 | fi |
| 5842 | |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5843 | |
| 5844 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 |
| 5846 | printf %s "checking --with-lua-prefix argument... " >&6; } |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5847 | |
| 5848 | # Check whether --with-lua_prefix was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5849 | if test ${with_lua_prefix+y} |
| 5850 | then : |
| 5851 | withval=$with_lua_prefix; with_lua_prefix="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 |
| 5852 | printf "%s\n" "$with_lua_prefix" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5853 | else case e in #( |
| 5854 | e) with_lua_prefix="";{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5855 | printf "%s\n" "no" >&6; } ;; |
| 5856 | esac |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5857 | fi |
| 5858 | |
| 5859 | |
| 5860 | if test "X$with_lua_prefix" != "X"; then |
| 5861 | vi_cv_path_lua_pfx="$with_lua_prefix" |
| 5862 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5863 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 |
| 5864 | printf %s "checking LUA_PREFIX environment var... " >&6; } |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5865 | if test "X$LUA_PREFIX" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 |
| 5867 | printf "%s\n" "\"$LUA_PREFIX\"" >&6; } |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5868 | vi_cv_path_lua_pfx="$LUA_PREFIX" |
| 5869 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5870 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 |
| 5871 | printf "%s\n" "not set, default to /usr" >&6; } |
Bram Moolenaar | 0d2e4fc | 2010-07-18 12:35:47 +0200 | [diff] [blame] | 5872 | vi_cv_path_lua_pfx="/usr" |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5873 | fi |
| 5874 | fi |
| 5875 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5876 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 |
| 5877 | printf %s "checking --with-luajit... " >&6; } |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5878 | |
| 5879 | # Check whether --with-luajit was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5880 | if test ${with_luajit+y} |
| 5881 | then : |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5882 | withval=$with_luajit; vi_cv_with_luajit="$withval" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5883 | else case e in #( |
| 5884 | e) vi_cv_with_luajit="no" ;; |
| 5885 | esac |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5886 | fi |
| 5887 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5888 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 |
| 5889 | printf "%s\n" "$vi_cv_with_luajit" >&6; } |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5890 | |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5891 | LUA_INC= |
| 5892 | if test "X$vi_cv_path_lua_pfx" != "X"; then |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5893 | if test "x$vi_cv_with_luajit" != "xno"; then |
| 5894 | # Extract the first word of "luajit", so it can be a program name with args. |
| 5895 | set dummy luajit; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5897 | printf %s "checking for $ac_word... " >&6; } |
| 5898 | if test ${ac_cv_path_vi_cv_path_luajit+y} |
| 5899 | then : |
| 5900 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5901 | else case e in #( |
| 5902 | e) case $vi_cv_path_luajit in |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5903 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5904 | ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5905 | ;; |
| 5906 | *) |
| 5907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5908 | for as_dir in $PATH |
| 5909 | do |
| 5910 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5911 | case $as_dir in #((( |
| 5912 | '') as_dir=./ ;; |
| 5913 | */) ;; |
| 5914 | *) as_dir=$as_dir/ ;; |
| 5915 | esac |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5916 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5917 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5918 | ac_cv_path_vi_cv_path_luajit="$as_dir$ac_word$ac_exec_ext" |
| 5919 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5920 | break 2 |
| 5921 | fi |
| 5922 | done |
| 5923 | done |
| 5924 | IFS=$as_save_IFS |
| 5925 | |
| 5926 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5927 | esac ;; |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5928 | esac |
| 5929 | fi |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5930 | vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit |
| 5931 | if test -n "$vi_cv_path_luajit"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5932 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 |
| 5933 | printf "%s\n" "$vi_cv_path_luajit" >&6; } |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5934 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5936 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5937 | fi |
| 5938 | |
| 5939 | |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5940 | if test "X$vi_cv_path_luajit" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5941 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 |
| 5942 | printf %s "checking LuaJIT version... " >&6; } |
| 5943 | if test ${vi_cv_version_luajit+y} |
| 5944 | then : |
| 5945 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5946 | else case e in #( |
| 5947 | e) vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-*[a-z0-9]*\)* .*/\1/'` ;; |
| 5948 | esac |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 5949 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 |
| 5951 | printf "%s\n" "$vi_cv_version_luajit" >&6; } |
| 5952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 |
| 5953 | printf %s "checking Lua version of LuaJIT... " >&6; } |
| 5954 | if test ${vi_cv_version_lua_luajit+y} |
| 5955 | then : |
| 5956 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5957 | else case e in #( |
| 5958 | e) vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` ;; |
| 5959 | esac |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5960 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5961 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 |
| 5962 | printf "%s\n" "$vi_cv_version_lua_luajit" >&6; } |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5963 | vi_cv_path_lua="$vi_cv_path_luajit" |
| 5964 | vi_cv_version_lua="$vi_cv_version_lua_luajit" |
| 5965 | fi |
Bram Moolenaar | 1e91f26 | 2012-10-03 14:48:08 +0200 | [diff] [blame] | 5966 | else |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5967 | # Extract the first word of "lua", so it can be a program name with args. |
| 5968 | set dummy lua; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5969 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5970 | printf %s "checking for $ac_word... " >&6; } |
| 5971 | if test ${ac_cv_path_vi_cv_path_plain_lua+y} |
| 5972 | then : |
| 5973 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 5974 | else case e in #( |
| 5975 | e) case $vi_cv_path_plain_lua in |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5976 | [\\/]* | ?:[\\/]*) |
| 5977 | ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. |
| 5978 | ;; |
| 5979 | *) |
| 5980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5981 | for as_dir in $PATH |
| 5982 | do |
| 5983 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5984 | case $as_dir in #((( |
| 5985 | '') as_dir=./ ;; |
| 5986 | */) ;; |
| 5987 | *) as_dir=$as_dir/ ;; |
| 5988 | esac |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5989 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 5990 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5991 | ac_cv_path_vi_cv_path_plain_lua="$as_dir$ac_word$ac_exec_ext" |
| 5992 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 5993 | break 2 |
| 5994 | fi |
| 5995 | done |
| 5996 | done |
| 5997 | IFS=$as_save_IFS |
| 5998 | |
| 5999 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6000 | esac ;; |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6001 | esac |
| 6002 | fi |
| 6003 | vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua |
| 6004 | if test -n "$vi_cv_path_plain_lua"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 |
| 6006 | printf "%s\n" "$vi_cv_path_plain_lua" >&6; } |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6007 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6009 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6010 | fi |
| 6011 | |
| 6012 | |
| 6013 | if test "X$vi_cv_path_plain_lua" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 |
| 6015 | printf %s "checking Lua version... " >&6; } |
| 6016 | if test ${vi_cv_version_plain_lua+y} |
| 6017 | then : |
| 6018 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6019 | else case e in #( |
| 6020 | e) vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` ;; |
| 6021 | esac |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6022 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 |
| 6024 | printf "%s\n" "$vi_cv_version_plain_lua" >&6; } |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6025 | fi |
| 6026 | vi_cv_path_lua="$vi_cv_path_plain_lua" |
| 6027 | vi_cv_version_lua="$vi_cv_version_plain_lua" |
| 6028 | fi |
| 6029 | if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6030 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit" >&5 |
| 6031 | printf %s "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } |
Bram Moolenaar | 49222be | 2015-12-11 18:11:30 +0100 | [diff] [blame] | 6032 | if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6034 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6035 | LUA_INC=/luajit-$vi_cv_version_luajit |
| 6036 | fi |
| 6037 | fi |
| 6038 | if test "X$LUA_INC" = "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 |
| 6040 | printf %s "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } |
Bram Moolenaar | 49222be | 2015-12-11 18:11:30 +0100 | [diff] [blame] | 6041 | if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6043 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 1e91f26 | 2012-10-03 14:48:08 +0200 | [diff] [blame] | 6044 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6046 | printf "%s\n" "no" >&6; } |
| 6047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua" >&5 |
| 6048 | printf %s "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } |
Bram Moolenaar | 49222be | 2015-12-11 18:11:30 +0100 | [diff] [blame] | 6049 | if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6051 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6052 | LUA_INC=/lua$vi_cv_version_lua |
| 6053 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6055 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | f49e564 | 2020-04-19 17:46:53 +0200 | [diff] [blame] | 6056 | |
| 6057 | # Detect moonjit: |
| 6058 | # https://groups.google.com/forum/#!topic/vim_use/O0vek60WuTk |
| 6059 | lua_suf=/moonjit-2.3 |
| 6060 | inc_path="$vi_cv_path_lua_pfx/include" |
Bram Moolenaar | ad4dc83 | 2020-04-20 16:21:53 +0200 | [diff] [blame] | 6061 | for dir in "$inc_path"/moonjit-[0-9]* ; do |
Bram Moolenaar | f49e564 | 2020-04-19 17:46:53 +0200 | [diff] [blame] | 6062 | if test -d "$dir" ; then |
Bram Moolenaar | a79a894 | 2020-12-17 20:50:25 +0100 | [diff] [blame] | 6063 | lua_suf=`basename "$dir"` |
Bram Moolenaar | f49e564 | 2020-04-19 17:46:53 +0200 | [diff] [blame] | 6064 | lua_suf="/$lua_suf" |
| 6065 | break |
| 6066 | fi |
| 6067 | done |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6068 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $inc_path$lua_suf" >&5 |
| 6069 | printf %s "checking if lua.h can be found in $inc_path$lua_suf... " >&6; } |
Bram Moolenaar | f49e564 | 2020-04-19 17:46:53 +0200 | [diff] [blame] | 6070 | if test -f "$inc_path$lua_suf/lua.h"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6071 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6072 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | f49e564 | 2020-04-19 17:46:53 +0200 | [diff] [blame] | 6073 | LUA_INC=$lua_suf |
| 6074 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6075 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6076 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | f49e564 | 2020-04-19 17:46:53 +0200 | [diff] [blame] | 6077 | vi_cv_path_lua_pfx= |
| 6078 | fi |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6079 | fi |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 6080 | fi |
| 6081 | fi |
| 6082 | fi |
| 6083 | |
| 6084 | if test "X$vi_cv_path_lua_pfx" != "X"; then |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6085 | if test "x$vi_cv_with_luajit" != "xno"; then |
| 6086 | multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` |
| 6087 | if test "X$multiarch" != "X"; then |
| 6088 | lib_multiarch="lib/${multiarch}" |
| 6089 | else |
| 6090 | lib_multiarch="lib" |
| 6091 | fi |
| 6092 | if test "X$vi_cv_version_lua" = "X"; then |
| 6093 | LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" |
| 6094 | else |
| 6095 | LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" |
| 6096 | fi |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 6097 | else |
Bram Moolenaar | 869113f | 2023-03-31 21:29:00 +0100 | [diff] [blame] | 6098 | if test -d "${vi_cv_path_lua_pfx}/lib/lua$vi_cv_version_lua"; then |
| 6099 | LUALIBDIR="lib/lua$vi_cv_version_lua" |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6100 | else |
Bram Moolenaar | 869113f | 2023-03-31 21:29:00 +0100 | [diff] [blame] | 6101 | LUALIBDIR=lib |
| 6102 | fi |
| 6103 | if test "X$LUA_INC" != "X"; then |
| 6104 | LUA_LIBS="-L${vi_cv_path_lua_pfx}/${LUALIBDIR} -llua$vi_cv_version_lua" |
| 6105 | else |
| 6106 | LUA_LIBS="-L${vi_cv_path_lua_pfx}/${LUALIBDIR} -llua" |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6107 | fi |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 6108 | fi |
Bram Moolenaar | 2334b6d | 2010-07-22 21:32:16 +0200 | [diff] [blame] | 6109 | if test "$enable_luainterp" = "dynamic"; then |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6110 | lua_ok="yes" |
| 6111 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 |
| 6113 | printf %s "checking if link with ${LUA_LIBS} is sane... " >&6; } |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6114 | libs_save=$LIBS |
| 6115 | LIBS="$LIBS $LUA_LIBS" |
| 6116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6117 | /* end confdefs.h. */ |
| 6118 | |
| 6119 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6120 | main (void) |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6121 | { |
| 6122 | |
| 6123 | ; |
| 6124 | return 0; |
| 6125 | } |
| 6126 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6127 | if ac_fn_c_try_link "$LINENO" |
| 6128 | then : |
| 6129 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6130 | printf "%s\n" "yes" >&6; }; lua_ok="yes" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6131 | else case e in #( |
| 6132 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6133 | printf "%s\n" "no" >&6; }; lua_ok="no"; LUA_LIBS="" ;; |
| 6134 | esac |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6135 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6136 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6137 | conftest$ac_exeext conftest.$ac_ext |
| 6138 | LIBS=$libs_save |
| 6139 | fi |
| 6140 | if test "x$lua_ok" = "xyes"; then |
| 6141 | LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" |
| 6142 | LUA_SRC="if_lua.c" |
| 6143 | LUA_OBJ="objects/if_lua.o" |
| 6144 | LUA_PRO="if_lua.pro" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6145 | printf "%s\n" "#define FEAT_LUA 1" >>confdefs.h |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6146 | |
| 6147 | fi |
| 6148 | if test "$enable_luainterp" = "dynamic"; then |
| 6149 | if test "x$vi_cv_with_luajit" != "xno"; then |
| 6150 | luajit="jit" |
| 6151 | fi |
Bram Moolenaar | 1e91f26 | 2012-10-03 14:48:08 +0200 | [diff] [blame] | 6152 | if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then |
| 6153 | vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" |
| 6154 | else |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 6155 | if test "x$MACOS_X" = "xyes"; then |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6156 | ext="dylib" |
| 6157 | indexes="" |
| 6158 | else |
| 6159 | ext="so" |
| 6160 | indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" |
| 6161 | multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` |
| 6162 | if test "X$multiarch" != "X"; then |
| 6163 | lib_multiarch="lib/${multiarch}" |
| 6164 | fi |
Bram Moolenaar | 768baac | 2013-04-15 14:44:57 +0200 | [diff] [blame] | 6165 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 |
| 6167 | printf %s "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6168 | for subdir in "${lib_multiarch}" lib64 lib; do |
Bram Moolenaar | 768baac | 2013-04-15 14:44:57 +0200 | [diff] [blame] | 6169 | if test -z "$subdir"; then |
| 6170 | continue |
| 6171 | fi |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6172 | for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ |
| 6173 | ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do |
| 6174 | for i in $indexes ""; do |
| 6175 | if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then |
Bram Moolenaar | 768baac | 2013-04-15 14:44:57 +0200 | [diff] [blame] | 6176 | sover2="$i" |
| 6177 | break 3 |
| 6178 | fi |
| 6179 | done |
Bram Moolenaar | 07e1da6 | 2013-02-06 19:49:43 +0100 | [diff] [blame] | 6180 | done |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6181 | sover="" |
Bram Moolenaar | 1e91f26 | 2012-10-03 14:48:08 +0200 | [diff] [blame] | 6182 | done |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6183 | if test "X$sover" = "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6184 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6185 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6186 | lua_ok="no" |
| 6187 | vi_cv_dll_name_lua="liblua${luajit}.${ext}" |
| 6188 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6190 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6191 | lua_ok="yes" |
| 6192 | vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" |
| 6193 | fi |
Bram Moolenaar | 1e91f26 | 2012-10-03 14:48:08 +0200 | [diff] [blame] | 6194 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6195 | printf "%s\n" "#define DYNAMIC_LUA 1" >>confdefs.h |
Bram Moolenaar | 2334b6d | 2010-07-22 21:32:16 +0200 | [diff] [blame] | 6196 | |
| 6197 | LUA_LIBS="" |
Bram Moolenaar | 1e91f26 | 2012-10-03 14:48:08 +0200 | [diff] [blame] | 6198 | LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" |
Bram Moolenaar | 2334b6d | 2010-07-22 21:32:16 +0200 | [diff] [blame] | 6199 | fi |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6200 | if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 6201 | test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 6202 | test "$vim_cv_uname_m_output" = "x86_64"; then |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6203 | LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" |
| 6204 | fi |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 6205 | fi |
Bram Moolenaar | e855ccf | 2013-07-28 13:32:15 +0200 | [diff] [blame] | 6206 | if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 6207 | as_fn_error $? "could not configure lua" "$LINENO" 5 |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 6208 | fi |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 6209 | |
| 6210 | |
| 6211 | |
| 6212 | |
| 6213 | |
ichizok | 8bb3fe4 | 2021-12-28 15:51:45 +0000 | [diff] [blame] | 6214 | |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 6215 | fi |
| 6216 | |
| 6217 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 |
| 6219 | printf %s "checking --enable-mzschemeinterp argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6220 | # Check whether --enable-mzschemeinterp was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6221 | if test ${enable_mzschemeinterp+y} |
| 6222 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6223 | enableval=$enable_mzschemeinterp; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6224 | else case e in #( |
| 6225 | e) enable_mzschemeinterp="no" ;; |
| 6226 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6227 | fi |
| 6228 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 |
| 6230 | printf "%s\n" "$enable_mzschemeinterp" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6231 | |
| 6232 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6233 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6234 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6235 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 |
| 6236 | printf %s "checking --with-plthome argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6237 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6238 | # Check whether --with-plthome was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6239 | if test ${with_plthome+y} |
| 6240 | then : |
| 6241 | withval=$with_plthome; with_plthome="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 |
| 6242 | printf "%s\n" "$with_plthome" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6243 | else case e in #( |
| 6244 | e) with_plthome="";{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 |
| 6245 | printf "%s\n" "\"no\"" >&6; } ;; |
| 6246 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6247 | fi |
| 6248 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6249 | |
| 6250 | if test "X$with_plthome" != "X"; then |
| 6251 | vi_cv_path_mzscheme_pfx="$with_plthome" |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6252 | vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6253 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 |
| 6255 | printf %s "checking PLTHOME environment var... " >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6256 | if test "X$PLTHOME" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 |
| 6258 | printf "%s\n" "\"$PLTHOME\"" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 6259 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6260 | vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6261 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6262 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 6263 | printf "%s\n" "not set" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 6264 | # Extract the first word of "mzscheme", so it can be a program name with args. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6265 | set dummy mzscheme; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6267 | printf %s "checking for $ac_word... " >&6; } |
| 6268 | if test ${ac_cv_path_vi_cv_path_mzscheme+y} |
| 6269 | then : |
| 6270 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6271 | else case e in #( |
| 6272 | e) case $vi_cv_path_mzscheme in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6273 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6274 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 6275 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6276 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6278 | for as_dir in $PATH |
| 6279 | do |
| 6280 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6281 | case $as_dir in #((( |
| 6282 | '') as_dir=./ ;; |
| 6283 | */) ;; |
| 6284 | *) as_dir=$as_dir/ ;; |
| 6285 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 6286 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6287 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6288 | ac_cv_path_vi_cv_path_mzscheme="$as_dir$ac_word$ac_exec_ext" |
| 6289 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6290 | break 2 |
| 6291 | fi |
| 6292 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 6293 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6294 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6295 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6296 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6297 | esac ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6298 | esac |
| 6299 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6300 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6301 | if test -n "$vi_cv_path_mzscheme"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 |
| 6303 | printf "%s\n" "$vi_cv_path_mzscheme" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6304 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6305 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6306 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6307 | fi |
| 6308 | |
| 6309 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6310 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 6311 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6312 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 6313 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 6314 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 6315 | fi |
| 6316 | fi |
| 6317 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 6318 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6319 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 |
| 6320 | printf %s "checking MzScheme install prefix... " >&6; } |
| 6321 | if test ${vi_cv_path_mzscheme_pfx+y} |
| 6322 | then : |
| 6323 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6324 | else case e in #( |
| 6325 | e) echo "(display (simplify-path \ |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 6326 | (build-path (call-with-values \ |
| 6327 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 6328 | (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm |
| 6329 | vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6330 | sed -e 's+/$++'` ;; |
| 6331 | esac |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6332 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6333 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 6334 | printf "%s\n" "$vi_cv_path_mzscheme_pfx" >&6; } |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 6335 | rm -f mzdirs.scm |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 6336 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6337 | fi |
| 6338 | fi |
| 6339 | |
| 6340 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 |
| 6342 | printf %s "checking for racket include directory... " >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6343 | SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` |
| 6344 | if test "X$SCHEME_INC" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6345 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 |
| 6346 | printf "%s\n" "${SCHEME_INC}" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6347 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6348 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 6349 | printf "%s\n" "not found" >&6; } |
| 6350 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 6351 | printf %s "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6352 | if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then |
| 6353 | SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6355 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 6356 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6357 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6358 | printf "%s\n" "no" >&6; } |
| 6359 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 |
| 6360 | printf %s "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6361 | if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6363 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6364 | SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 6365 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6366 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6367 | printf "%s\n" "no" >&6; } |
| 6368 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 |
| 6369 | printf %s "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6370 | if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6372 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6373 | SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket |
Bram Moolenaar | 2d0860d | 2010-11-03 21:59:30 +0100 | [diff] [blame] | 6374 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6376 | printf "%s\n" "no" >&6; } |
| 6377 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 |
| 6378 | printf %s "checking if scheme.h can be found in /usr/include/plt/... " >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6379 | if test -f /usr/include/plt/scheme.h; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6380 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6381 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6382 | SCHEME_INC=/usr/include/plt |
Bram Moolenaar | 2d0860d | 2010-11-03 21:59:30 +0100 | [diff] [blame] | 6383 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6385 | printf "%s\n" "no" >&6; } |
| 6386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 |
| 6387 | printf %s "checking if scheme.h can be found in /usr/include/racket/... " >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6388 | if test -f /usr/include/racket/scheme.h; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6390 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6391 | SCHEME_INC=/usr/include/racket |
| 6392 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6394 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6395 | vi_cv_path_mzscheme_pfx= |
| 6396 | fi |
Bram Moolenaar | 2d0860d | 2010-11-03 21:59:30 +0100 | [diff] [blame] | 6397 | fi |
| 6398 | fi |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 6399 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 6400 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6401 | fi |
| 6402 | fi |
| 6403 | |
| 6404 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6405 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6406 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 |
| 6407 | printf %s "checking for racket lib directory... " >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6408 | SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` |
| 6409 | if test "X$SCHEME_LIB" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6410 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 |
| 6411 | printf "%s\n" "${SCHEME_LIB}" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6412 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6413 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 6414 | printf "%s\n" "not found" >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6415 | fi |
| 6416 | |
| 6417 | for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do |
| 6418 | if test "X$path" != "X"; then |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 6419 | if test "x$MACOS_X" = "xyes"; then |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6420 | MZSCHEME_LIBS="-framework Racket" |
| 6421 | MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 6422 | elif test -f "${path}/libmzscheme3m.a"; then |
| 6423 | MZSCHEME_LIBS="${path}/libmzscheme3m.a" |
| 6424 | MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 6425 | elif test -f "${path}/libracket3m.a"; then |
| 6426 | MZSCHEME_LIBS="${path}/libracket3m.a" |
Bram Moolenaar | 588d241 | 2020-10-03 14:24:19 +0200 | [diff] [blame] | 6427 | if test -f "${path}/librktio.a"; then |
| 6428 | MZSCHEME_LIBS="${MZSCHEME_LIBS} ${path}/librktio.a" |
| 6429 | fi |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6430 | MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 6431 | elif test -f "${path}/libracket.a"; then |
| 6432 | MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" |
| 6433 | elif test -f "${path}/libmzscheme.a"; then |
| 6434 | MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" |
| 6435 | else |
| 6436 | if test -f "${path}/libmzscheme3m.so"; then |
| 6437 | MZSCHEME_LIBS="-L${path} -lmzscheme3m" |
| 6438 | MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 6439 | elif test -f "${path}/libracket3m.so"; then |
| 6440 | MZSCHEME_LIBS="-L${path} -lracket3m" |
| 6441 | MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
| 6442 | elif test -f "${path}/libracket.so"; then |
| 6443 | MZSCHEME_LIBS="-L${path} -lracket -lmzgc" |
| 6444 | else |
| 6445 | if test "$path" != "$SCHEME_LIB"; then |
| 6446 | continue |
| 6447 | fi |
| 6448 | MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" |
| 6449 | fi |
| 6450 | if test "$GCC" = yes; then |
| 6451 | MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 6452 | elif test "$vim_cv_uname_output" = SunOS && |
| 6453 | echo $vim_cv_uname_r_output | grep '^5' >/dev/null; then |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6454 | MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" |
| 6455 | fi |
| 6456 | fi |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 6457 | fi |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6458 | if test "X$MZSCHEME_LIBS" != "X"; then |
| 6459 | break |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 6460 | fi |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6461 | done |
| 6462 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6463 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 |
| 6464 | printf %s "checking if racket requires -pthread... " >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6465 | if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6467 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6468 | MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" |
| 6469 | MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" |
| 6470 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6471 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6472 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6473 | fi |
| 6474 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 |
| 6476 | printf %s "checking for racket config directory... " >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6477 | SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` |
| 6478 | if test "X$SCHEME_CONFIGDIR" != "X"; then |
| 6479 | MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6480 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 |
| 6481 | printf "%s\n" "${SCHEME_CONFIGDIR}" >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6482 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6483 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 6484 | printf "%s\n" "not found" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6485 | fi |
Bram Moolenaar | fe9fb92 | 2012-11-23 21:54:48 +0100 | [diff] [blame] | 6486 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6487 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 |
| 6488 | printf %s "checking for racket collects directory... " >&6; } |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6489 | SCHEME_COLLECTS=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-collects-dir))) (when (path? p) (let-values (((base _1 _2) (split-path p))) (display base))))'` |
| 6490 | if test "X$SCHEME_COLLECTS" = "X"; then |
| 6491 | if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then |
| 6492 | SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ |
Bram Moolenaar | fe9fb92 | 2012-11-23 21:54:48 +0100 | [diff] [blame] | 6493 | else |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6494 | if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then |
| 6495 | SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ |
Bram Moolenaar | 7567646 | 2013-01-30 14:55:42 +0100 | [diff] [blame] | 6496 | else |
Bram Moolenaar | 4e640bd | 2016-01-16 16:20:38 +0100 | [diff] [blame] | 6497 | if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then |
| 6498 | SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ |
| 6499 | else |
| 6500 | if test -d "$vi_cv_path_mzscheme_pfx/collects"; then |
| 6501 | SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ |
| 6502 | fi |
Bram Moolenaar | 7567646 | 2013-01-30 14:55:42 +0100 | [diff] [blame] | 6503 | fi |
Bram Moolenaar | fe9fb92 | 2012-11-23 21:54:48 +0100 | [diff] [blame] | 6504 | fi |
Bram Moolenaar | 2d0860d | 2010-11-03 21:59:30 +0100 | [diff] [blame] | 6505 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 6506 | fi |
Bram Moolenaar | fe9fb92 | 2012-11-23 21:54:48 +0100 | [diff] [blame] | 6507 | if test "X$SCHEME_COLLECTS" != "X" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6508 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 |
| 6509 | printf "%s\n" "${SCHEME_COLLECTS}" >&6; } |
Bram Moolenaar | fe9fb92 | 2012-11-23 21:54:48 +0100 | [diff] [blame] | 6510 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 6512 | printf "%s\n" "not found" >&6; } |
Bram Moolenaar | fe9fb92 | 2012-11-23 21:54:48 +0100 | [diff] [blame] | 6513 | fi |
| 6514 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6515 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 |
| 6516 | printf %s "checking for mzscheme_base.c... " >&6; } |
Bram Moolenaar | fe9fb92 | 2012-11-23 21:54:48 +0100 | [diff] [blame] | 6517 | if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then |
Bram Moolenaar | 2d0860d | 2010-11-03 21:59:30 +0100 | [diff] [blame] | 6518 | MZSCHEME_EXTRA="mzscheme_base.c" |
Bram Moolenaar | a2aa31a | 2014-02-23 22:52:40 +0100 | [diff] [blame] | 6519 | MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" |
| 6520 | MZSCHEME_MOD="++lib scheme/base" |
Bram Moolenaar | 2d0860d | 2010-11-03 21:59:30 +0100 | [diff] [blame] | 6521 | else |
Bram Moolenaar | fe9fb92 | 2012-11-23 21:54:48 +0100 | [diff] [blame] | 6522 | if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then |
Bram Moolenaar | 2d0860d | 2010-11-03 21:59:30 +0100 | [diff] [blame] | 6523 | MZSCHEME_EXTRA="mzscheme_base.c" |
Bram Moolenaar | a2aa31a | 2014-02-23 22:52:40 +0100 | [diff] [blame] | 6524 | MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" |
| 6525 | MZSCHEME_MOD="++lib scheme/base" |
| 6526 | else |
| 6527 | if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then |
| 6528 | MZSCHEME_EXTRA="mzscheme_base.c" |
| 6529 | MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" |
| 6530 | MZSCHEME_MOD="" |
| 6531 | fi |
Bram Moolenaar | 2d0860d | 2010-11-03 21:59:30 +0100 | [diff] [blame] | 6532 | fi |
| 6533 | fi |
| 6534 | if test "X$MZSCHEME_EXTRA" != "X" ; then |
| 6535 | MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6536 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: needed" >&5 |
| 6537 | printf "%s\n" "needed" >&6; } |
Bram Moolenaar | fe9fb92 | 2012-11-23 21:54:48 +0100 | [diff] [blame] | 6538 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 |
| 6540 | printf "%s\n" "not needed" >&6; } |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 6541 | fi |
Bram Moolenaar | fe9fb92 | 2012-11-23 21:54:48 +0100 | [diff] [blame] | 6542 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6543 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 |
| 6544 | printf %s "checking for ffi_type_void in -lffi... " >&6; } |
| 6545 | if test ${ac_cv_lib_ffi_ffi_type_void+y} |
| 6546 | then : |
| 6547 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6548 | else case e in #( |
| 6549 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6550 | LIBS="-lffi $LIBS" |
| 6551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6552 | /* end confdefs.h. */ |
| 6553 | |
| 6554 | /* Override any GCC internal prototype to avoid an error. |
| 6555 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6556 | builtin and then its argument prototype would still apply. |
| 6557 | The 'extern "C"' is for builds by C++ compilers; |
| 6558 | although this is not generally supported in C code supporting it here |
| 6559 | has little cost and some practical benefit (sr 110532). */ |
| 6560 | #ifdef __cplusplus |
| 6561 | extern "C" |
| 6562 | #endif |
| 6563 | char ffi_type_void (void); |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6564 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6565 | main (void) |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6566 | { |
| 6567 | return ffi_type_void (); |
| 6568 | ; |
| 6569 | return 0; |
| 6570 | } |
| 6571 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6572 | if ac_fn_c_try_link "$LINENO" |
| 6573 | then : |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6574 | ac_cv_lib_ffi_ffi_type_void=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6575 | else case e in #( |
| 6576 | e) ac_cv_lib_ffi_ffi_type_void=no ;; |
| 6577 | esac |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6578 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6579 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6580 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6581 | LIBS=$ac_check_lib_save_LIBS ;; |
| 6582 | esac |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6583 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 |
| 6585 | printf "%s\n" "$ac_cv_lib_ffi_ffi_type_void" >&6; } |
| 6586 | if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes |
| 6587 | then : |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6588 | MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" |
| 6589 | fi |
| 6590 | |
| 6591 | |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 6592 | MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ |
Bram Moolenaar | fe9fb92 | 2012-11-23 21:54:48 +0100 | [diff] [blame] | 6593 | -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6594 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 |
| 6596 | printf %s "checking if compile and link flags for MzScheme are sane... " >&6; } |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6597 | cflags_save=$CFLAGS |
| 6598 | libs_save=$LIBS |
| 6599 | CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" |
| 6600 | LIBS="$LIBS $MZSCHEME_LIBS" |
| 6601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6602 | /* end confdefs.h. */ |
| 6603 | |
| 6604 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6605 | main (void) |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6606 | { |
| 6607 | |
| 6608 | ; |
| 6609 | return 0; |
| 6610 | } |
| 6611 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6612 | if ac_fn_c_try_link "$LINENO" |
| 6613 | then : |
| 6614 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6615 | printf "%s\n" "yes" >&6; }; mzs_ok=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6616 | else case e in #( |
| 6617 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 |
| 6618 | printf "%s\n" "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no ;; |
| 6619 | esac |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6620 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6621 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6622 | conftest$ac_exeext conftest.$ac_ext |
| 6623 | CFLAGS=$cflags_save |
| 6624 | LIBS=$libs_save |
| 6625 | if test $mzs_ok = yes; then |
| 6626 | MZSCHEME_SRC="if_mzsch.c" |
| 6627 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 6628 | MZSCHEME_PRO="if_mzsch.pro" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6629 | printf "%s\n" "#define FEAT_MZSCHEME 1" >>confdefs.h |
Bram Moolenaar | 9e90219 | 2013-07-17 18:58:11 +0200 | [diff] [blame] | 6630 | |
| 6631 | else |
| 6632 | MZSCHEME_CFLAGS= |
| 6633 | MZSCHEME_LIBS= |
| 6634 | MZSCHEME_EXTRA= |
| 6635 | MZSCHEME_MZC= |
| 6636 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6637 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6638 | |
| 6639 | |
| 6640 | |
| 6641 | |
| 6642 | |
Bram Moolenaar | 9e70cf1 | 2009-05-26 20:59:55 +0000 | [diff] [blame] | 6643 | |
| 6644 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 6645 | fi |
| 6646 | |
| 6647 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6648 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 |
| 6649 | printf %s "checking --enable-perlinterp argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6650 | # Check whether --enable-perlinterp was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6651 | if test ${enable_perlinterp+y} |
| 6652 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6653 | enableval=$enable_perlinterp; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6654 | else case e in #( |
| 6655 | e) enable_perlinterp="no" ;; |
| 6656 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6657 | fi |
| 6658 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 |
| 6660 | printf "%s\n" "$enable_perlinterp" >&6; } |
Bram Moolenaar | e06c188 | 2010-07-21 22:05:20 +0200 | [diff] [blame] | 6661 | if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 6662 | if test "$has_eval" = "no"; then |
Martin Tournoij | 7904fa4 | 2022-10-04 16:28:45 +0100 | [diff] [blame] | 6663 | as_fn_error $? "cannot use Perl with tiny features" "$LINENO" 5 |
Bram Moolenaar | 3c124e3 | 2016-01-31 14:36:58 +0100 | [diff] [blame] | 6664 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6665 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6666 | # Extract the first word of "perl", so it can be a program name with args. |
| 6667 | set dummy perl; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6669 | printf %s "checking for $ac_word... " >&6; } |
| 6670 | if test ${ac_cv_path_vi_cv_path_perl+y} |
| 6671 | then : |
| 6672 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6673 | else case e in #( |
| 6674 | e) case $vi_cv_path_perl in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6675 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6676 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 6677 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6678 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6680 | for as_dir in $PATH |
| 6681 | do |
| 6682 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6683 | case $as_dir in #((( |
| 6684 | '') as_dir=./ ;; |
| 6685 | */) ;; |
| 6686 | *) as_dir=$as_dir/ ;; |
| 6687 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 6688 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6689 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6690 | ac_cv_path_vi_cv_path_perl="$as_dir$ac_word$ac_exec_ext" |
| 6691 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6692 | break 2 |
| 6693 | fi |
| 6694 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 6695 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6696 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6697 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6698 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6699 | esac ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6700 | esac |
| 6701 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6702 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6703 | if test -n "$vi_cv_path_perl"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 |
| 6705 | printf "%s\n" "$vi_cv_path_perl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6706 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6707 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6708 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6709 | fi |
| 6710 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6711 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6712 | if test "X$vi_cv_path_perl" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 |
| 6714 | printf %s "checking Perl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6715 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 6716 | eval `$vi_cv_path_perl -V:usethreads` |
Bram Moolenaar | e06c188 | 2010-07-21 22:05:20 +0200 | [diff] [blame] | 6717 | eval `$vi_cv_path_perl -V:libperl` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6718 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 6719 | badthreads=no |
| 6720 | else |
| 6721 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 6722 | eval `$vi_cv_path_perl -V:use5005threads` |
| 6723 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 6724 | badthreads=no |
| 6725 | else |
| 6726 | badthreads=yes |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 6728 | printf "%s\n" ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6729 | fi |
| 6730 | else |
| 6731 | badthreads=yes |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6732 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 6733 | printf "%s\n" ">>> Perl 5.5 with threads cannot be used <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6734 | fi |
| 6735 | fi |
| 6736 | if test $badthreads = no; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5 |
| 6738 | printf "%s\n" "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6739 | eval `$vi_cv_path_perl -V:shrpenv` |
| 6740 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 6741 | shrpenv="" |
| 6742 | fi |
| 6743 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6744 | |
Bram Moolenaar | d5f62b1 | 2014-08-17 17:05:44 +0200 | [diff] [blame] | 6745 | vi_cv_perl_extutils=unknown_perl_extutils_path |
Zdenek Dohnal | 1b1c9f2 | 2023-11-02 20:19:06 +0100 | [diff] [blame] | 6746 | |
| 6747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-xsubpp path" >&5 |
| 6748 | printf %s "checking --with-xsubpp path... " >&6; } |
| 6749 | vi_cv_perl_xsubpp= |
| 6750 | |
| 6751 | # Check whether --with-xsubpp was given. |
| 6752 | if test ${with_xsubpp+y} |
| 6753 | then : |
| 6754 | withval=$with_xsubpp; |
| 6755 | if test -f "$withval" |
| 6756 | then |
| 6757 | vi_cv_perl_xsubpp="$withval" |
| 6758 | fi |
| 6759 | |
| 6760 | fi |
| 6761 | |
| 6762 | |
| 6763 | if test "x$vi_cv_perl_xsubpp" = "x" |
| 6764 | then |
| 6765 | for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do |
| 6766 | xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" |
| 6767 | if test -f "$xsubpp_path"; then |
| 6768 | vi_cv_perl_xsubpp="$xsubpp_path" |
| 6769 | fi |
| 6770 | done |
| 6771 | fi |
| 6772 | |
| 6773 | if test "x$vi_cv_perl_xsubpp" = "x" |
| 6774 | then |
| 6775 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: empty" >&5 |
| 6776 | printf "%s\n" "empty" >&6; } |
| 6777 | else |
| 6778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_perl_xsubpp" >&5 |
| 6779 | printf "%s\n" "$vi_cv_perl_xsubpp" >&6; } |
| 6780 | fi |
| 6781 | |
Bram Moolenaar | d5f62b1 | 2014-08-17 17:05:44 +0200 | [diff] [blame] | 6782 | |
Christian Brabandt | 2f9aef4 | 2024-02-12 23:12:26 +0100 | [diff] [blame] | 6783 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
Bram Moolenaar | e8ff56b | 2017-09-14 23:06:23 +0200 | [diff] [blame] | 6784 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ |
| 6785 | -e 's/-fdebug-prefix-map[^ ]*//g' \ |
Bram Moolenaar | 1ec96c9 | 2017-09-27 21:42:08 +0200 | [diff] [blame] | 6786 | -e 's/-pipe //' \ |
Christian Brabandt | 2f9aef4 | 2024-02-12 23:12:26 +0100 | [diff] [blame] | 6787 | -e 's/-flto\(=auto\)\? //' \ |
Bram Moolenaar | 1ec96c9 | 2017-09-27 21:42:08 +0200 | [diff] [blame] | 6788 | -e 's/-W[^ ]*//g' \ |
Bram Moolenaar | 9202162 | 2017-10-12 12:33:43 +0200 | [diff] [blame] | 6789 | -e 's/-D_FORTIFY_SOURCE=.//g'` |
Christian Brabandt | 9c0ff47 | 2024-05-11 20:18:21 +0200 | [diff] [blame] | 6790 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6791 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
Christian Brabandt | 9c0ff47 | 2024-05-11 20:18:21 +0200 | [diff] [blame] | 6792 | -e 's/-specs=[^ ]*//g' \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6793 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
Christian Brabandt | 9c0ff47 | 2024-05-11 20:18:21 +0200 | [diff] [blame] | 6794 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 6795 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//' \ |
| 6796 | -e 's/-specs=[^ ]*//g' ` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6797 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 |
| 6799 | printf %s "checking if compile and link flags for Perl are sane... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6800 | cflags_save=$CFLAGS |
| 6801 | libs_save=$LIBS |
| 6802 | ldflags_save=$LDFLAGS |
| 6803 | CFLAGS="$CFLAGS $perlcppflags" |
| 6804 | LIBS="$LIBS $perllibs" |
Bram Moolenaar | a6cc031 | 2013-06-18 23:31:55 +0200 | [diff] [blame] | 6805 | perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6806 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 6807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6808 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6809 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6810 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6811 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6812 | { |
| 6813 | |
| 6814 | ; |
| 6815 | return 0; |
| 6816 | } |
| 6817 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6818 | if ac_fn_c_try_link "$LINENO" |
| 6819 | then : |
| 6820 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6821 | printf "%s\n" "yes" >&6; }; perl_ok=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6822 | else case e in #( |
| 6823 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 |
| 6824 | printf "%s\n" "no: PERL DISABLED" >&6; }; perl_ok=no ;; |
| 6825 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6826 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6827 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 6828 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6829 | CFLAGS=$cflags_save |
| 6830 | LIBS=$libs_save |
| 6831 | LDFLAGS=$ldflags_save |
| 6832 | if test $perl_ok = yes; then |
| 6833 | if test "X$perlcppflags" != "X"; then |
Bram Moolenaar | 1ec96c9 | 2017-09-27 21:42:08 +0200 | [diff] [blame] | 6834 | PERL_CFLAGS=$perlcppflags |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6835 | fi |
| 6836 | if test "X$perlldflags" != "X"; then |
Bram Moolenaar | 2bcaec3 | 2014-03-27 18:51:11 +0100 | [diff] [blame] | 6837 | if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then |
Bram Moolenaar | a6cc031 | 2013-06-18 23:31:55 +0200 | [diff] [blame] | 6838 | LDFLAGS="$perlldflags $LDFLAGS" |
| 6839 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6840 | fi |
| 6841 | PERL_LIBS=$perllibs |
| 6842 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 6843 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 6844 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6845 | printf "%s\n" "#define FEAT_PERL 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6846 | |
| 6847 | fi |
| 6848 | fi |
| 6849 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 6851 | printf "%s\n" ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6852 | fi |
| 6853 | fi |
| 6854 | |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 6855 | if test "x$MACOS_X" = "xyes"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6856 | dir=/System/Library/Perl |
| 6857 | darwindir=$dir/darwin |
| 6858 | if test -d $darwindir; then |
| 6859 | PERL=/usr/bin/perl |
| 6860 | else |
| 6861 | dir=/System/Library/Perl/5.8.1 |
| 6862 | darwindir=$dir/darwin-thread-multi-2level |
| 6863 | if test -d $darwindir; then |
| 6864 | PERL=/usr/bin/perl |
| 6865 | fi |
| 6866 | fi |
| 6867 | if test -n "$PERL"; then |
| 6868 | PERL_DIR="$dir" |
| 6869 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 6870 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 6871 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 6872 | fi |
Bram Moolenaar | 5dff57d | 2010-07-24 16:19:44 +0200 | [diff] [blame] | 6873 | PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` |
| 6874 | PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6875 | fi |
Bram Moolenaar | e06c188 | 2010-07-21 22:05:20 +0200 | [diff] [blame] | 6876 | if test "$enable_perlinterp" = "dynamic"; then |
| 6877 | if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6878 | printf "%s\n" "#define DYNAMIC_PERL 1" >>confdefs.h |
Bram Moolenaar | e06c188 | 2010-07-21 22:05:20 +0200 | [diff] [blame] | 6879 | |
| 6880 | PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" |
Christian Brabandt | 55460da | 2023-08-29 21:31:28 +0200 | [diff] [blame] | 6881 | PERL_LIBS="" |
Bram Moolenaar | e06c188 | 2010-07-21 22:05:20 +0200 | [diff] [blame] | 6882 | fi |
| 6883 | fi |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 6884 | |
| 6885 | if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 6886 | as_fn_error $? "could not configure perl" "$LINENO" 5 |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 6887 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6888 | fi |
| 6889 | |
| 6890 | |
| 6891 | |
| 6892 | |
| 6893 | |
| 6894 | |
| 6895 | |
ichizok | 8bb3fe4 | 2021-12-28 15:51:45 +0000 | [diff] [blame] | 6896 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6897 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 |
| 6898 | printf %s "checking --enable-pythoninterp argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6899 | # Check whether --enable-pythoninterp was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6900 | if test ${enable_pythoninterp+y} |
| 6901 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6902 | enableval=$enable_pythoninterp; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6903 | else case e in #( |
| 6904 | e) enable_pythoninterp="no" ;; |
| 6905 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6906 | fi |
| 6907 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 |
| 6909 | printf "%s\n" "$enable_pythoninterp" >&6; } |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 6910 | if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 6911 | if test "$has_eval" = "no"; then |
Martin Tournoij | 7904fa4 | 2022-10-04 16:28:45 +0100 | [diff] [blame] | 6912 | as_fn_error $? "cannot use Python with tiny features" "$LINENO" 5 |
Bram Moolenaar | 0b10541 | 2014-11-30 13:34:23 +0100 | [diff] [blame] | 6913 | fi |
| 6914 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5 |
| 6916 | printf %s "checking --with-python-command argument... " >&6; } |
Bram Moolenaar | e1a3231 | 2018-04-15 16:03:25 +0200 | [diff] [blame] | 6917 | |
| 6918 | |
| 6919 | # Check whether --with-python-command was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6920 | if test ${with_python_command+y} |
| 6921 | then : |
| 6922 | withval=$with_python_command; vi_cv_path_python="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 |
| 6923 | printf "%s\n" "$vi_cv_path_python" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6924 | else case e in #( |
| 6925 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6926 | printf "%s\n" "no" >&6; } ;; |
| 6927 | esac |
Bram Moolenaar | e1a3231 | 2018-04-15 16:03:25 +0200 | [diff] [blame] | 6928 | fi |
| 6929 | |
| 6930 | |
| 6931 | if test "X$vi_cv_path_python" = "X"; then |
Bram Moolenaar | 09ba6d7 | 2012-12-12 14:25:05 +0100 | [diff] [blame] | 6932 | for ac_prog in python2 python |
| 6933 | do |
| 6934 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6935 | set dummy $ac_prog; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6937 | printf %s "checking for $ac_word... " >&6; } |
| 6938 | if test ${ac_cv_path_vi_cv_path_python+y} |
| 6939 | then : |
| 6940 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6941 | else case e in #( |
| 6942 | e) case $vi_cv_path_python in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6943 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6944 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 6945 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6946 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6948 | for as_dir in $PATH |
| 6949 | do |
| 6950 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6951 | case $as_dir in #((( |
| 6952 | '') as_dir=./ ;; |
| 6953 | */) ;; |
| 6954 | *) as_dir=$as_dir/ ;; |
| 6955 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 6956 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6957 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6958 | ac_cv_path_vi_cv_path_python="$as_dir$ac_word$ac_exec_ext" |
| 6959 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6960 | break 2 |
| 6961 | fi |
| 6962 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 6963 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6964 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6965 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6966 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6967 | esac ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6968 | esac |
| 6969 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6970 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6971 | if test -n "$vi_cv_path_python"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 |
| 6973 | printf "%s\n" "$vi_cv_path_python" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6974 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6976 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6977 | fi |
| 6978 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6979 | |
Bram Moolenaar | 09ba6d7 | 2012-12-12 14:25:05 +0100 | [diff] [blame] | 6980 | test -n "$vi_cv_path_python" && break |
| 6981 | done |
| 6982 | |
Bram Moolenaar | e1a3231 | 2018-04-15 16:03:25 +0200 | [diff] [blame] | 6983 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6984 | if test "X$vi_cv_path_python" != "X"; then |
| 6985 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 |
| 6987 | printf %s "checking Python version... " >&6; } |
| 6988 | if test ${vi_cv_var_python_version+y} |
| 6989 | then : |
| 6990 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6991 | else case e in #( |
| 6992 | e) vi_cv_var_python_version=` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6993 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 6994 | ;; |
| 6995 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6996 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 6997 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 |
| 6998 | printf "%s\n" "$vi_cv_var_python_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6999 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 |
| 7001 | printf %s "checking Python is 2.3 or better... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7002 | if ${vi_cv_path_python} -c \ |
Bram Moolenaar | c09a6d6 | 2013-06-10 21:27:29 +0200 | [diff] [blame] | 7003 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7004 | then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yep" >&5 |
| 7006 | printf "%s\n" "yep" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7007 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 |
| 7009 | printf %s "checking Python's install prefix... " >&6; } |
| 7010 | if test ${vi_cv_path_python_pfx+y} |
| 7011 | then : |
| 7012 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7013 | else case e in #( |
| 7014 | e) vi_cv_path_python_pfx=` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7015 | ${vi_cv_path_python} -c \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7016 | "import sys; print sys.prefix"` ;; |
| 7017 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7018 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 |
| 7020 | printf "%s\n" "$vi_cv_path_python_pfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7021 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7022 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 |
| 7023 | printf %s "checking Python's execution prefix... " >&6; } |
| 7024 | if test ${vi_cv_path_python_epfx+y} |
| 7025 | then : |
| 7026 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7027 | else case e in #( |
| 7028 | e) vi_cv_path_python_epfx=` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7029 | ${vi_cv_path_python} -c \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7030 | "import sys; print sys.exec_prefix"` ;; |
| 7031 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7032 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 |
| 7034 | printf "%s\n" "$vi_cv_path_python_epfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7035 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7036 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7037 | if test ${vi_cv_path_pythonpath+y} |
| 7038 | then : |
| 7039 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7040 | else case e in #( |
| 7041 | e) vi_cv_path_pythonpath=` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7042 | unset PYTHONPATH; |
| 7043 | ${vi_cv_path_python} -c \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7044 | "import sys, string; print string.join(sys.path,':')"` ;; |
| 7045 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7046 | fi |
| 7047 | |
| 7048 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7049 | |
| 7050 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7051 | # Check whether --with-python-config-dir was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7052 | if test ${with_python_config_dir+y} |
| 7053 | then : |
Bram Moolenaar | d088240 | 2018-04-10 18:13:05 +0200 | [diff] [blame] | 7054 | withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"; have_python_config_dir=1 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7055 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7056 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7057 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 |
| 7059 | printf %s "checking Python's configuration directory... " >&6; } |
| 7060 | if test ${vi_cv_path_python_conf+y} |
| 7061 | then : |
| 7062 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7063 | else case e in #( |
| 7064 | e) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7065 | vi_cv_path_python_conf= |
Bram Moolenaar | ac499e3 | 2013-06-02 19:14:17 +0200 | [diff] [blame] | 7066 | d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` |
| 7067 | if test -d "$d" && test -f "$d/config.c"; then |
| 7068 | vi_cv_path_python_conf="$d" |
| 7069 | else |
| 7070 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 7071 | for subdir in lib64 lib share; do |
| 7072 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 7073 | if test -d "$d" && test -f "$d/config.c"; then |
| 7074 | vi_cv_path_python_conf="$d" |
| 7075 | fi |
| 7076 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7077 | done |
Bram Moolenaar | ac499e3 | 2013-06-02 19:14:17 +0200 | [diff] [blame] | 7078 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7079 | ;; |
| 7080 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7081 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7082 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 |
| 7083 | printf "%s\n" "$vi_cv_path_python_conf" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7084 | |
| 7085 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 7086 | |
| 7087 | if test "X$PYTHON_CONFDIR" = "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7088 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 |
| 7089 | printf "%s\n" "can't find it!" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7090 | else |
| 7091 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7092 | if test ${vi_cv_path_python_plibs+y} |
| 7093 | then : |
| 7094 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7095 | else case e in #( |
| 7096 | e) |
Bram Moolenaar | 01dd60c | 2008-07-24 14:24:48 +0000 | [diff] [blame] | 7097 | pwd=`pwd` |
| 7098 | tmp_mkf="$pwd/config-PyMake$$" |
| 7099 | cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7100 | __: |
Bram Moolenaar | 218116c | 2010-05-20 21:46:00 +0200 | [diff] [blame] | 7101 | @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7102 | @echo "python_LIBS='$(LIBS)'" |
| 7103 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 7104 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
Bram Moolenaar | f94a13c | 2012-09-21 13:26:49 +0200 | [diff] [blame] | 7105 | @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" |
Bram Moolenaar | 2a7e2a6 | 2010-07-24 15:19:11 +0200 | [diff] [blame] | 7106 | @echo "python_INSTSONAME='$(INSTSONAME)'" |
Bram Moolenaar | 6c92755 | 2015-03-24 12:21:33 +0100 | [diff] [blame] | 7107 | @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" |
| 7108 | @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" |
| 7109 | @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7110 | eof |
Bram Moolenaar | 01dd60c | 2008-07-24 14:24:48 +0000 | [diff] [blame] | 7111 | eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" |
| 7112 | rm -f -- "${tmp_mkf}" |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 7113 | if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7114 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 7115 | vi_cv_path_python_plibs="-framework Python" |
Bram Moolenaar | 6c92755 | 2015-03-24 12:21:33 +0100 | [diff] [blame] | 7116 | if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then |
| 7117 | vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" |
| 7118 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7119 | else |
Bram Moolenaar | 9ce4213 | 2018-04-11 22:19:36 +0200 | [diff] [blame] | 7120 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
Bram Moolenaar | a161e26 | 2015-03-24 15:14:27 +0100 | [diff] [blame] | 7121 | if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then |
Bram Moolenaar | 6c92755 | 2015-03-24 12:21:33 +0100 | [diff] [blame] | 7122 | python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` |
| 7123 | python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` |
| 7124 | if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then |
| 7125 | python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" |
| 7126 | if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then |
| 7127 | python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" |
| 7128 | fi |
| 7129 | python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" |
| 7130 | fi |
| 7131 | fi |
Bram Moolenaar | 218116c | 2010-05-20 21:46:00 +0200 | [diff] [blame] | 7132 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7133 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 7134 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7135 | ;; |
| 7136 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7137 | fi |
| 7138 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7139 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 |
| 7140 | printf %s "checking Python's dll name... " >&6; } |
| 7141 | if test ${vi_cv_dll_name_python+y} |
| 7142 | then : |
| 7143 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7144 | else case e in #( |
| 7145 | e) |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7146 | if test "X$python_DLLLIBRARY" != "X"; then |
| 7147 | vi_cv_dll_name_python="$python_DLLLIBRARY" |
| 7148 | else |
| 7149 | vi_cv_dll_name_python="$python_INSTSONAME" |
| 7150 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7151 | ;; |
| 7152 | esac |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7153 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7154 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 |
| 7155 | printf "%s\n" "$vi_cv_dll_name_python" >&6; } |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7156 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7157 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 7158 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
Bram Moolenaar | 0424958 | 2018-04-10 13:29:34 +0200 | [diff] [blame] | 7159 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7160 | else |
Bram Moolenaar | 0424958 | 2018-04-10 13:29:34 +0200 | [diff] [blame] | 7161 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7162 | fi |
Bram Moolenaar | 3a21d9c | 2018-04-10 20:26:20 +0200 | [diff] [blame] | 7163 | if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then |
Bram Moolenaar | d088240 | 2018-04-10 18:13:05 +0200 | [diff] [blame] | 7164 | PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" |
| 7165 | |
| 7166 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7167 | PYTHON_SRC="if_python.c" |
Bram Moolenaar | 9bdb9a0 | 2012-07-25 16:32:08 +0200 | [diff] [blame] | 7168 | PYTHON_OBJ="objects/if_python.o" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7169 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7170 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 |
| 7171 | printf %s "checking if -pthread should be used... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7172 | threadsafe_flag= |
| 7173 | thread_lib= |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 7174 | if test "$vim_cv_uname_output" != Darwin; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7175 | test "$GCC" = yes && threadsafe_flag="-pthread" |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 7176 | if test "$vim_cv_uname_output" = FreeBSD; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7177 | threadsafe_flag="-D_THREAD_SAFE" |
| 7178 | thread_lib="-pthread" |
| 7179 | fi |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 7180 | if test "$vim_cv_uname_output" = SunOS; then |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7181 | threadsafe_flag="-pthreads" |
| 7182 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7183 | fi |
| 7184 | libs_save_old=$LIBS |
| 7185 | if test -n "$threadsafe_flag"; then |
| 7186 | cflags_save=$CFLAGS |
| 7187 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 7188 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 7189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7190 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7191 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7192 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7193 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7194 | { |
| 7195 | |
| 7196 | ; |
| 7197 | return 0; |
| 7198 | } |
| 7199 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7200 | if ac_fn_c_try_link "$LINENO" |
| 7201 | then : |
| 7202 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7203 | printf "%s\n" "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7204 | else case e in #( |
| 7205 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7206 | printf "%s\n" "no" >&6; }; LIBS=$libs_save_old |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7207 | ;; |
| 7208 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7209 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7210 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 7211 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7212 | CFLAGS=$cflags_save |
| 7213 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7214 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7215 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7216 | fi |
| 7217 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 |
| 7219 | printf %s "checking if compile and link flags for Python are sane... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7220 | cflags_save=$CFLAGS |
| 7221 | libs_save=$LIBS |
Bram Moolenaar | 69f787a | 2010-07-11 20:52:58 +0200 | [diff] [blame] | 7222 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7223 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 7224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7225 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7226 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7227 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7228 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7229 | { |
| 7230 | |
| 7231 | ; |
| 7232 | return 0; |
| 7233 | } |
| 7234 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7235 | if ac_fn_c_try_link "$LINENO" |
| 7236 | then : |
| 7237 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7238 | printf "%s\n" "yes" >&6; }; python_ok=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7239 | else case e in #( |
| 7240 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 |
| 7241 | printf "%s\n" "no: PYTHON DISABLED" >&6; }; python_ok=no ;; |
| 7242 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7243 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7244 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 7245 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7246 | CFLAGS=$cflags_save |
| 7247 | LIBS=$libs_save |
| 7248 | if test $python_ok = yes; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7249 | printf "%s\n" "#define FEAT_PYTHON 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7250 | |
| 7251 | else |
| 7252 | LIBS=$libs_save_old |
| 7253 | PYTHON_SRC= |
| 7254 | PYTHON_OBJ= |
| 7255 | PYTHON_LIBS= |
| 7256 | PYTHON_CFLAGS= |
| 7257 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7258 | fi |
| 7259 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old" >&5 |
| 7261 | printf "%s\n" "too old" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7262 | fi |
| 7263 | fi |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 7264 | |
| 7265 | if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 7266 | as_fn_error $? "could not configure python" "$LINENO" 5 |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 7267 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7268 | fi |
| 7269 | |
| 7270 | |
| 7271 | |
| 7272 | |
| 7273 | |
| 7274 | |
| 7275 | |
ichizok | 8bb3fe4 | 2021-12-28 15:51:45 +0000 | [diff] [blame] | 7276 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 |
| 7278 | printf %s "checking --enable-python3interp argument... " >&6; } |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7279 | # Check whether --enable-python3interp was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7280 | if test ${enable_python3interp+y} |
| 7281 | then : |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7282 | enableval=$enable_python3interp; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7283 | else case e in #( |
| 7284 | e) enable_python3interp="no" ;; |
| 7285 | esac |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7286 | fi |
| 7287 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7288 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 |
| 7289 | printf "%s\n" "$enable_python3interp" >&6; } |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7290 | if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 7291 | if test "$has_eval" = "no"; then |
Martin Tournoij | 7904fa4 | 2022-10-04 16:28:45 +0100 | [diff] [blame] | 7292 | as_fn_error $? "cannot use Python with tiny features" "$LINENO" 5 |
Bram Moolenaar | 0b10541 | 2014-11-30 13:34:23 +0100 | [diff] [blame] | 7293 | fi |
| 7294 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7295 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5 |
| 7296 | printf %s "checking --with-python3-command argument... " >&6; } |
Bram Moolenaar | e1a3231 | 2018-04-15 16:03:25 +0200 | [diff] [blame] | 7297 | |
| 7298 | |
| 7299 | # Check whether --with-python3-command was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7300 | if test ${with_python3_command+y} |
| 7301 | then : |
| 7302 | withval=$with_python3_command; vi_cv_path_python3="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 |
| 7303 | printf "%s\n" "$vi_cv_path_python3" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7304 | else case e in #( |
| 7305 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7306 | printf "%s\n" "no" >&6; } ;; |
| 7307 | esac |
Bram Moolenaar | e1a3231 | 2018-04-15 16:03:25 +0200 | [diff] [blame] | 7308 | fi |
| 7309 | |
| 7310 | |
| 7311 | if test "X$vi_cv_path_python3" = "X"; then |
Bram Moolenaar | 09ba6d7 | 2012-12-12 14:25:05 +0100 | [diff] [blame] | 7312 | for ac_prog in python3 python |
| 7313 | do |
| 7314 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7315 | set dummy $ac_prog; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7316 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7317 | printf %s "checking for $ac_word... " >&6; } |
| 7318 | if test ${ac_cv_path_vi_cv_path_python3+y} |
| 7319 | then : |
| 7320 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7321 | else case e in #( |
| 7322 | e) case $vi_cv_path_python3 in |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7323 | [\\/]* | ?:[\\/]*) |
| 7324 | ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. |
| 7325 | ;; |
| 7326 | *) |
| 7327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7328 | for as_dir in $PATH |
| 7329 | do |
| 7330 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7331 | case $as_dir in #((( |
| 7332 | '') as_dir=./ ;; |
| 7333 | */) ;; |
| 7334 | *) as_dir=$as_dir/ ;; |
| 7335 | esac |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7336 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7337 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7338 | ac_cv_path_vi_cv_path_python3="$as_dir$ac_word$ac_exec_ext" |
| 7339 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7340 | break 2 |
| 7341 | fi |
| 7342 | done |
| 7343 | done |
| 7344 | IFS=$as_save_IFS |
| 7345 | |
| 7346 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7347 | esac ;; |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7348 | esac |
| 7349 | fi |
| 7350 | vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 |
| 7351 | if test -n "$vi_cv_path_python3"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 |
| 7353 | printf "%s\n" "$vi_cv_path_python3" >&6; } |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7354 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7355 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7356 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7357 | fi |
| 7358 | |
| 7359 | |
Bram Moolenaar | 09ba6d7 | 2012-12-12 14:25:05 +0100 | [diff] [blame] | 7360 | test -n "$vi_cv_path_python3" && break |
| 7361 | done |
| 7362 | |
Bram Moolenaar | e1a3231 | 2018-04-15 16:03:25 +0200 | [diff] [blame] | 7363 | fi |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7364 | if test "X$vi_cv_path_python3" != "X"; then |
| 7365 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7366 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 |
| 7367 | printf %s "checking Python version... " >&6; } |
| 7368 | if test ${vi_cv_var_python3_version+y} |
| 7369 | then : |
| 7370 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7371 | else case e in #( |
| 7372 | e) vi_cv_var_python3_version=` |
Bram Moolenaar | 23c0192 | 2021-05-21 11:43:58 +0200 | [diff] [blame] | 7373 | ${vi_cv_path_python3} -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))'` |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7374 | ;; |
| 7375 | esac |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7376 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7377 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 |
| 7378 | printf "%s\n" "$vi_cv_var_python3_version" >&6; } |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7379 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7380 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 |
| 7381 | printf %s "checking Python is 3.0 or better... " >&6; } |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7382 | if ${vi_cv_path_python3} -c \ |
| 7383 | "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" |
| 7384 | then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yep" >&5 |
| 7386 | printf "%s\n" "yep" >&6; } |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7387 | |
Ken Takata | 1c032e3 | 2024-08-11 18:41:41 +0200 | [diff] [blame] | 7388 | python3_stable_abi_default=3.8 |
| 7389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-python3-stable-abi argument" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7390 | printf %s "checking --with-python3-stable-abi argument... " >&6; } |
Yee Cheng Chin | c13b3d1 | 2023-08-20 21:18:38 +0200 | [diff] [blame] | 7391 | |
| 7392 | |
| 7393 | # Check whether --with-python3-stable-abi was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7394 | if test ${with_python3_stable_abi+y} |
| 7395 | then : |
Ken Takata | 1c032e3 | 2024-08-11 18:41:41 +0200 | [diff] [blame] | 7396 | withval=$with_python3_stable_abi; |
Christian Brabandt | 3f7024c | 2024-08-23 18:39:08 +0200 | [diff] [blame] | 7397 | if test "X$withval" = "Xyes"; then |
| 7398 | vi_cv_var_python3_stable_abi=$python3_stable_abi_default |
| 7399 | else |
| 7400 | vi_cv_var_python3_stable_abi="$withval" |
| 7401 | fi |
| 7402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_stable_abi" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7403 | printf "%s\n" "$vi_cv_var_python3_stable_abi" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7404 | else case e in #( |
| 7405 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7406 | printf "%s\n" "no" >&6; } ;; |
| 7407 | esac |
Yee Cheng Chin | c13b3d1 | 2023-08-20 21:18:38 +0200 | [diff] [blame] | 7408 | fi |
| 7409 | |
Christian Brabandt | 3f7024c | 2024-08-23 18:39:08 +0200 | [diff] [blame] | 7410 | if test "X$vi_cv_var_python3_stable_abi" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7411 | if test ${vi_cv_var_python3_stable_abi_hex+y} |
| 7412 | then : |
| 7413 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7414 | else case e in #( |
| 7415 | e) |
Yee Cheng Chin | c13b3d1 | 2023-08-20 21:18:38 +0200 | [diff] [blame] | 7416 | vi_cv_var_python3_stable_abi_hex=` |
| 7417 | ${vi_cv_path_python3} -c \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7418 | "major_minor='${vi_cv_var_python3_stable_abi}'.split('.'); print('0x{0:X}'.format( (int(major_minor.__getitem__(0))<<24) + (int(major_minor.__getitem__(1))<<16) ))"` ;; |
| 7419 | esac |
Yee Cheng Chin | c13b3d1 | 2023-08-20 21:18:38 +0200 | [diff] [blame] | 7420 | fi |
| 7421 | |
Yee Cheng Chin | e7d79eb | 2023-09-16 13:38:26 +0200 | [diff] [blame] | 7422 | if test "X$vi_cv_var_python3_stable_abi_hex" = "X"; then |
Yee Cheng Chin | c13b3d1 | 2023-08-20 21:18:38 +0200 | [diff] [blame] | 7423 | as_fn_error $? "can't parse Python 3 stable ABI version. It should be \"<major>.<minor>\"" "$LINENO" 5 |
| 7424 | fi |
| 7425 | fi |
| 7426 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7427 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 |
| 7428 | printf %s "checking Python's abiflags... " >&6; } |
| 7429 | if test ${vi_cv_var_python3_abiflags+y} |
| 7430 | then : |
| 7431 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7432 | else case e in #( |
| 7433 | e) |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7434 | vi_cv_var_python3_abiflags= |
| 7435 | if ${vi_cv_path_python3} -c \ |
| 7436 | "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" |
| 7437 | then |
| 7438 | vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ |
| 7439 | "import sys; print(sys.abiflags)"` |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7440 | fi ;; |
| 7441 | esac |
Bram Moolenaar | 456f2bb | 2011-06-12 21:37:13 +0200 | [diff] [blame] | 7442 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 |
| 7444 | printf "%s\n" "$vi_cv_var_python3_abiflags" >&6; } |
Bram Moolenaar | 456f2bb | 2011-06-12 21:37:13 +0200 | [diff] [blame] | 7445 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7446 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 |
| 7447 | printf %s "checking Python's install prefix... " >&6; } |
| 7448 | if test ${vi_cv_path_python3_pfx+y} |
| 7449 | then : |
| 7450 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7451 | else case e in #( |
| 7452 | e) vi_cv_path_python3_pfx=` |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7453 | ${vi_cv_path_python3} -c \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7454 | "import sys; print(sys.prefix)"` ;; |
| 7455 | esac |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7456 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 |
| 7458 | printf "%s\n" "$vi_cv_path_python3_pfx" >&6; } |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7459 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7460 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 |
| 7461 | printf %s "checking Python's execution prefix... " >&6; } |
| 7462 | if test ${vi_cv_path_python3_epfx+y} |
| 7463 | then : |
| 7464 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7465 | else case e in #( |
| 7466 | e) vi_cv_path_python3_epfx=` |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7467 | ${vi_cv_path_python3} -c \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7468 | "import sys; print(sys.exec_prefix)"` ;; |
| 7469 | esac |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7470 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7471 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 |
| 7472 | printf "%s\n" "$vi_cv_path_python3_epfx" >&6; } |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7473 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's include path" >&5 |
| 7475 | printf %s "checking Python's include path... " >&6; } |
| 7476 | if test ${vi_cv_path_python3_include+y} |
| 7477 | then : |
| 7478 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7479 | else case e in #( |
| 7480 | e) vi_cv_path_python3_include=` |
Illia Bobyr | 74e1dad | 2023-08-27 18:26:54 +0200 | [diff] [blame] | 7481 | ${vi_cv_path_python3} -c \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7482 | "import sysconfig; print(sysconfig.get_path(\"include\"))"` ;; |
| 7483 | esac |
Illia Bobyr | 74e1dad | 2023-08-27 18:26:54 +0200 | [diff] [blame] | 7484 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_include" >&5 |
| 7486 | printf "%s\n" "$vi_cv_path_python3_include" >&6; } |
Illia Bobyr | 74e1dad | 2023-08-27 18:26:54 +0200 | [diff] [blame] | 7487 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's include path" >&5 |
| 7489 | printf %s "checking Python's include path... " >&6; } |
| 7490 | if test ${vi_cv_path_python3_platinclude+y} |
| 7491 | then : |
| 7492 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7493 | else case e in #( |
| 7494 | e) vi_cv_path_python3_platinclude=` |
Illia Bobyr | 74e1dad | 2023-08-27 18:26:54 +0200 | [diff] [blame] | 7495 | ${vi_cv_path_python3} -c \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7496 | "import sysconfig; print(sysconfig.get_path(\"platinclude\"))"` ;; |
| 7497 | esac |
Illia Bobyr | 74e1dad | 2023-08-27 18:26:54 +0200 | [diff] [blame] | 7498 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_platinclude" >&5 |
| 7500 | printf "%s\n" "$vi_cv_path_python3_platinclude" >&6; } |
Illia Bobyr | 74e1dad | 2023-08-27 18:26:54 +0200 | [diff] [blame] | 7501 | |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7502 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7503 | if test ${vi_cv_path_python3path+y} |
| 7504 | then : |
| 7505 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7506 | else case e in #( |
| 7507 | e) vi_cv_path_python3path=` |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7508 | unset PYTHONPATH; |
| 7509 | ${vi_cv_path_python3} -c \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7510 | "import sys, string; print(':'.join(sys.path))"` ;; |
| 7511 | esac |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7512 | fi |
| 7513 | |
| 7514 | |
| 7515 | |
| 7516 | |
| 7517 | # Check whether --with-python3-config-dir was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7518 | if test ${with_python3_config_dir+y} |
| 7519 | then : |
Bram Moolenaar | d088240 | 2018-04-10 18:13:05 +0200 | [diff] [blame] | 7520 | withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1 |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7521 | fi |
| 7522 | |
| 7523 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 |
| 7525 | printf %s "checking Python's configuration directory... " >&6; } |
| 7526 | if test ${vi_cv_path_python3_conf+y} |
| 7527 | then : |
| 7528 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7529 | else case e in #( |
| 7530 | e) |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7531 | vi_cv_path_python3_conf= |
Bram Moolenaar | fee496d | 2013-07-12 20:07:24 +0200 | [diff] [blame] | 7532 | config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" |
Zdenek Dohnal | 31e299c | 2021-06-10 18:50:55 +0200 | [diff] [blame] | 7533 | d=`${vi_cv_path_python3} -c "import sysconfig; print(sysconfig.get_config_var('LIBPL'))" 2> /dev/null` |
| 7534 | if test "x$d" = "x"; then |
| 7535 | d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` |
| 7536 | fi |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7537 | if test -d "$d" && test -f "$d/config.c"; then |
| 7538 | vi_cv_path_python3_conf="$d" |
| 7539 | else |
| 7540 | for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do |
| 7541 | for subdir in lib64 lib share; do |
| 7542 | d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" |
| 7543 | if test -d "$d" && test -f "$d/config.c"; then |
| 7544 | vi_cv_path_python3_conf="$d" |
| 7545 | fi |
| 7546 | done |
| 7547 | done |
| 7548 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7549 | ;; |
| 7550 | esac |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7551 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7552 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 |
| 7553 | printf "%s\n" "$vi_cv_path_python3_conf" >&6; } |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7554 | |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7555 | PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7556 | |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7557 | if test "X$PYTHON3_CONFDIR" = "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 |
| 7559 | printf "%s\n" "can't find it!" >&6; } |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7560 | else |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7561 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7562 | if test ${vi_cv_path_python3_plibs+y} |
| 7563 | then : |
| 7564 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7565 | else case e in #( |
| 7566 | e) |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7567 | pwd=`pwd` |
| 7568 | tmp_mkf="$pwd/config-PyMake$$" |
| 7569 | cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7570 | __: |
Bram Moolenaar | 3804aeb | 2010-07-19 21:18:54 +0200 | [diff] [blame] | 7571 | @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7572 | @echo "python3_LIBS='$(LIBS)'" |
| 7573 | @echo "python3_SYSLIBS='$(SYSLIBS)'" |
Bram Moolenaar | f94a13c | 2012-09-21 13:26:49 +0200 | [diff] [blame] | 7574 | @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" |
Bram Moolenaar | 2a7e2a6 | 2010-07-24 15:19:11 +0200 | [diff] [blame] | 7575 | @echo "python3_INSTSONAME='$(INSTSONAME)'" |
Yee Cheng Chin | b6ebe5a | 2023-04-05 18:24:50 +0100 | [diff] [blame] | 7576 | @echo "python3_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7577 | eof |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7578 | eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" |
| 7579 | rm -f -- "${tmp_mkf}" |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7580 | vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7581 | vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" |
| 7582 | vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` |
| 7583 | vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7584 | ;; |
| 7585 | esac |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7586 | fi |
| 7587 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7588 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 |
| 7589 | printf %s "checking Python3's dll name... " >&6; } |
| 7590 | if test ${vi_cv_dll_name_python3+y} |
| 7591 | then : |
| 7592 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7593 | else case e in #( |
| 7594 | e) |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7595 | if test "X$python3_DLLLIBRARY" != "X"; then |
| 7596 | vi_cv_dll_name_python3="$python3_DLLLIBRARY" |
Yee Cheng Chin | b6ebe5a | 2023-04-05 18:24:50 +0100 | [diff] [blame] | 7597 | elif test "X$python3_PYTHONFRAMEWORKPREFIX" != "X"; then |
| 7598 | vi_cv_dll_name_python3="${python3_PYTHONFRAMEWORKPREFIX}/${python3_INSTSONAME}" |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7599 | else |
| 7600 | vi_cv_dll_name_python3="$python3_INSTSONAME" |
| 7601 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7602 | ;; |
| 7603 | esac |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7604 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 |
| 7606 | printf "%s\n" "$vi_cv_dll_name_python3" >&6; } |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7607 | |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7608 | PYTHON3_LIBS="${vi_cv_path_python3_plibs}" |
Illia Bobyr | 74e1dad | 2023-08-27 18:26:54 +0200 | [diff] [blame] | 7609 | if test "${vi_cv_path_python3_include}" = "${vi_cv_path_python3_platinclude}"; then |
| 7610 | PYTHON3_CFLAGS="-I${vi_cv_path_python3_include}" |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7611 | else |
Illia Bobyr | 74e1dad | 2023-08-27 18:26:54 +0200 | [diff] [blame] | 7612 | PYTHON3_CFLAGS="-I${vi_cv_path_python3_include} -I${vi_cv_path_python3_platinclude}" |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7613 | fi |
Yee Cheng Chin | c13b3d1 | 2023-08-20 21:18:38 +0200 | [diff] [blame] | 7614 | if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then |
| 7615 | PYTHON3_CFLAGS="${PYTHON3_CFLAGS} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" |
| 7616 | fi |
| 7617 | if test "X$vi_cv_var_python3_stable_abi_hex" != "X"; then |
| 7618 | PYTHON3_CFLAGS="${PYTHON3_CFLAGS} -DPy_LIMITED_API=${vi_cv_var_python3_stable_abi_hex}" |
| 7619 | fi |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7620 | PYTHON3_SRC="if_python3.c" |
| 7621 | PYTHON3_OBJ="objects/if_python3.o" |
| 7622 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 |
| 7624 | printf %s "checking if -pthread should be used... " >&6; } |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7625 | threadsafe_flag= |
| 7626 | thread_lib= |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 7627 | if test "$vim_cv_uname_output" != Darwin; then |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7628 | test "$GCC" = yes && threadsafe_flag="-pthread" |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 7629 | if test "$vim_cv_uname_output" = FreeBSD; then |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7630 | threadsafe_flag="-D_THREAD_SAFE" |
| 7631 | thread_lib="-pthread" |
| 7632 | fi |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 7633 | if test "$vim_cv_uname_output" = SunOS; then |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7634 | threadsafe_flag="-pthreads" |
| 7635 | fi |
| 7636 | fi |
| 7637 | libs_save_old=$LIBS |
| 7638 | if test -n "$threadsafe_flag"; then |
| 7639 | cflags_save=$CFLAGS |
| 7640 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 7641 | LIBS="$LIBS $thread_lib" |
| 7642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7643 | /* end confdefs.h. */ |
| 7644 | |
| 7645 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7646 | main (void) |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7647 | { |
| 7648 | |
| 7649 | ; |
| 7650 | return 0; |
| 7651 | } |
| 7652 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7653 | if ac_fn_c_try_link "$LINENO" |
| 7654 | then : |
| 7655 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7656 | printf "%s\n" "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7657 | else case e in #( |
| 7658 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7659 | printf "%s\n" "no" >&6; }; LIBS=$libs_save_old |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7660 | ;; |
| 7661 | esac |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7662 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7663 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7664 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7665 | CFLAGS=$cflags_save |
| 7666 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7668 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7669 | fi |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7670 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7671 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 |
| 7672 | printf %s "checking if compile and link flags for Python 3 are sane... " >&6; } |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7673 | cflags_save=$CFLAGS |
| 7674 | libs_save=$LIBS |
| 7675 | CFLAGS="$CFLAGS $PYTHON3_CFLAGS" |
| 7676 | LIBS="$LIBS $PYTHON3_LIBS" |
| 7677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7678 | /* end confdefs.h. */ |
| 7679 | |
| 7680 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7681 | main (void) |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7682 | { |
| 7683 | |
| 7684 | ; |
| 7685 | return 0; |
| 7686 | } |
| 7687 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7688 | if ac_fn_c_try_link "$LINENO" |
| 7689 | then : |
| 7690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7691 | printf "%s\n" "yes" >&6; }; python3_ok=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7692 | else case e in #( |
| 7693 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 |
| 7694 | printf "%s\n" "no: PYTHON3 DISABLED" >&6; }; python3_ok=no ;; |
| 7695 | esac |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7696 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7697 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7698 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7699 | CFLAGS=$cflags_save |
| 7700 | LIBS=$libs_save |
| 7701 | if test "$python3_ok" = yes; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7702 | printf "%s\n" "#define FEAT_PYTHON3 1" >>confdefs.h |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7703 | |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7704 | else |
| 7705 | LIBS=$libs_save_old |
| 7706 | PYTHON3_SRC= |
| 7707 | PYTHON3_OBJ= |
| 7708 | PYTHON3_LIBS= |
| 7709 | PYTHON3_CFLAGS= |
| 7710 | fi |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7711 | fi |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 7712 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old" >&5 |
| 7714 | printf "%s\n" "too old" >&6; } |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7715 | fi |
| 7716 | fi |
Bram Moolenaar | 1612b1a | 2013-06-14 21:22:39 +0200 | [diff] [blame] | 7717 | if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 7718 | as_fn_error $? "could not configure python3" "$LINENO" 5 |
Bram Moolenaar | 1612b1a | 2013-06-14 21:22:39 +0200 | [diff] [blame] | 7719 | fi |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7720 | fi |
| 7721 | |
| 7722 | |
| 7723 | |
| 7724 | |
| 7725 | |
| 7726 | |
ichizok | 8bb3fe4 | 2021-12-28 15:51:45 +0000 | [diff] [blame] | 7727 | |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7728 | if test "$python_ok" = yes && test "$python3_ok" = yes; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7729 | printf "%s\n" "#define DYNAMIC_PYTHON 1" >>confdefs.h |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7730 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7731 | printf "%s\n" "#define DYNAMIC_PYTHON3 1" >>confdefs.h |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7732 | |
Yee Cheng Chin | c13b3d1 | 2023-08-20 21:18:38 +0200 | [diff] [blame] | 7733 | if test "X$vi_cv_var_python3_stable_abi_hex" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7734 | printf "%s\n" "#define DYNAMIC_PYTHON3_STABLE_ABI 1" >>confdefs.h |
Yee Cheng Chin | c13b3d1 | 2023-08-20 21:18:38 +0200 | [diff] [blame] | 7735 | |
| 7736 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 |
| 7738 | printf %s "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7739 | cflags_save=$CFLAGS |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7740 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
Bram Moolenaar | 5d3fbf3 | 2015-03-05 16:47:20 +0100 | [diff] [blame] | 7741 | libs_save=$LIBS |
| 7742 | LIBS="-ldl $LIBS" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7743 | if test "$cross_compiling" = yes |
| 7744 | then : |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7745 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 7746 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 7747 | as_fn_error $? "cannot run test program while cross compiling |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7748 | See 'config.log' for more details" "$LINENO" 5; } |
| 7749 | else case e in #( |
| 7750 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7751 | /* end confdefs.h. */ |
| 7752 | |
| 7753 | #include <dlfcn.h> |
| 7754 | /* If this program fails, then RTLD_GLOBAL is needed. |
| 7755 | * RTLD_GLOBAL will be used and then it is not possible to |
| 7756 | * have both python versions enabled in the same vim instance. |
Bram Moolenaar | 84a05ac | 2013-05-06 04:24:17 +0200 | [diff] [blame] | 7757 | * Only the first python version used will be switched on. |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7758 | */ |
| 7759 | |
Bram Moolenaar | 0f0d3a7 | 2022-06-19 18:02:05 +0100 | [diff] [blame] | 7760 | static int no_rtl_global_needed_for(char *python_instsoname, char *prefix) |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7761 | { |
| 7762 | int needed = 0; |
Bram Moolenaar | ba59ddb | 2016-01-28 15:34:25 +0100 | [diff] [blame] | 7763 | void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7764 | if (pylib != 0) |
| 7765 | { |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7766 | void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7767 | void (*init)(void) = dlsym(pylib, "Py_Initialize"); |
| 7768 | int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); |
| 7769 | void (*final)(void) = dlsym(pylib, "Py_Finalize"); |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7770 | (*pfx)(prefix); |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7771 | (*init)(); |
| 7772 | needed = (*simple)("import termios") == -1; |
| 7773 | (*final)(); |
| 7774 | dlclose(pylib); |
| 7775 | } |
| 7776 | return !needed; |
| 7777 | } |
| 7778 | |
Bram Moolenaar | 0f0d3a7 | 2022-06-19 18:02:05 +0100 | [diff] [blame] | 7779 | int main() |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7780 | { |
| 7781 | int not_needed = 0; |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7782 | if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7783 | not_needed = 1; |
| 7784 | return !not_needed; |
| 7785 | } |
| 7786 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7787 | if ac_fn_c_try_run "$LINENO" |
| 7788 | then : |
| 7789 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7790 | printf "%s\n" "yes" >&6; };printf "%s\n" "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7791 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7792 | else case e in #( |
| 7793 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7794 | printf "%s\n" "no" >&6; } ;; |
| 7795 | esac |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7796 | fi |
| 7797 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7798 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7799 | esac |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7800 | fi |
| 7801 | |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7802 | |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7803 | CFLAGS=$cflags_save |
Bram Moolenaar | 5d3fbf3 | 2015-03-05 16:47:20 +0100 | [diff] [blame] | 7804 | LIBS=$libs_save |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7805 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7806 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 |
| 7807 | printf %s "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7808 | cflags_save=$CFLAGS |
| 7809 | CFLAGS="$CFLAGS $PYTHON3_CFLAGS" |
Bram Moolenaar | 5d3fbf3 | 2015-03-05 16:47:20 +0100 | [diff] [blame] | 7810 | libs_save=$LIBS |
| 7811 | LIBS="-ldl $LIBS" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7812 | if test "$cross_compiling" = yes |
| 7813 | then : |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7814 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 7815 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 7816 | as_fn_error $? "cannot run test program while cross compiling |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7817 | See 'config.log' for more details" "$LINENO" 5; } |
| 7818 | else case e in #( |
| 7819 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7820 | /* end confdefs.h. */ |
| 7821 | |
| 7822 | #include <dlfcn.h> |
| 7823 | #include <wchar.h> |
| 7824 | /* If this program fails, then RTLD_GLOBAL is needed. |
| 7825 | * RTLD_GLOBAL will be used and then it is not possible to |
| 7826 | * have both python versions enabled in the same vim instance. |
Bram Moolenaar | 84a05ac | 2013-05-06 04:24:17 +0200 | [diff] [blame] | 7827 | * Only the first python version used will be switched on. |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7828 | */ |
| 7829 | |
Bram Moolenaar | 0f0d3a7 | 2022-06-19 18:02:05 +0100 | [diff] [blame] | 7830 | static int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7831 | { |
| 7832 | int needed = 0; |
Bram Moolenaar | ba59ddb | 2016-01-28 15:34:25 +0100 | [diff] [blame] | 7833 | void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7834 | if (pylib != 0) |
| 7835 | { |
| 7836 | void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); |
| 7837 | void (*init)(void) = dlsym(pylib, "Py_Initialize"); |
| 7838 | int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); |
| 7839 | void (*final)(void) = dlsym(pylib, "Py_Finalize"); |
| 7840 | (*pfx)(prefix); |
| 7841 | (*init)(); |
| 7842 | needed = (*simple)("import termios") == -1; |
| 7843 | (*final)(); |
| 7844 | dlclose(pylib); |
| 7845 | } |
| 7846 | return !needed; |
| 7847 | } |
| 7848 | |
Bram Moolenaar | 0f0d3a7 | 2022-06-19 18:02:05 +0100 | [diff] [blame] | 7849 | int main() |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7850 | { |
| 7851 | int not_needed = 0; |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7852 | if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7853 | not_needed = 1; |
| 7854 | return !not_needed; |
| 7855 | } |
| 7856 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7857 | if ac_fn_c_try_run "$LINENO" |
| 7858 | then : |
| 7859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7860 | printf "%s\n" "yes" >&6; };printf "%s\n" "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7861 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7862 | else case e in #( |
| 7863 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7864 | printf "%s\n" "no" >&6; } ;; |
| 7865 | esac |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7866 | fi |
| 7867 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7868 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7869 | esac |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7870 | fi |
| 7871 | |
| 7872 | |
| 7873 | CFLAGS=$cflags_save |
Bram Moolenaar | 5d3fbf3 | 2015-03-05 16:47:20 +0100 | [diff] [blame] | 7874 | LIBS=$libs_save |
Bram Moolenaar | 644d37b | 2010-11-16 19:26:02 +0100 | [diff] [blame] | 7875 | |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7876 | PYTHON_SRC="if_python.c" |
| 7877 | PYTHON_OBJ="objects/if_python.o" |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7878 | PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7879 | PYTHON_LIBS= |
| 7880 | PYTHON3_SRC="if_python3.c" |
| 7881 | PYTHON3_OBJ="objects/if_python3.o" |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7882 | PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7883 | PYTHON3_LIBS= |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7884 | elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7885 | printf "%s\n" "#define DYNAMIC_PYTHON 1" >>confdefs.h |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7886 | |
| 7887 | PYTHON_SRC="if_python.c" |
| 7888 | PYTHON_OBJ="objects/if_python.o" |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7889 | PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7890 | PYTHON_LIBS= |
Bram Moolenaar | e741f27 | 2013-07-09 21:57:52 +0200 | [diff] [blame] | 7891 | elif test "$python_ok" = yes; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 |
| 7893 | printf %s "checking if -fPIE can be added for Python... " >&6; } |
Bram Moolenaar | e741f27 | 2013-07-09 21:57:52 +0200 | [diff] [blame] | 7894 | cflags_save=$CFLAGS |
| 7895 | libs_save=$LIBS |
| 7896 | CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" |
| 7897 | LIBS="$LIBS $PYTHON_LIBS" |
| 7898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7899 | /* end confdefs.h. */ |
| 7900 | |
| 7901 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7902 | main (void) |
Bram Moolenaar | e741f27 | 2013-07-09 21:57:52 +0200 | [diff] [blame] | 7903 | { |
| 7904 | |
| 7905 | ; |
| 7906 | return 0; |
| 7907 | } |
| 7908 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7909 | if ac_fn_c_try_link "$LINENO" |
| 7910 | then : |
| 7911 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7912 | printf "%s\n" "yes" >&6; }; fpie_ok=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7913 | else case e in #( |
| 7914 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7915 | printf "%s\n" "no" >&6; }; fpie_ok=no ;; |
| 7916 | esac |
Bram Moolenaar | e741f27 | 2013-07-09 21:57:52 +0200 | [diff] [blame] | 7917 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7918 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | e741f27 | 2013-07-09 21:57:52 +0200 | [diff] [blame] | 7919 | conftest$ac_exeext conftest.$ac_ext |
| 7920 | CFLAGS=$cflags_save |
| 7921 | LIBS=$libs_save |
| 7922 | if test $fpie_ok = yes; then |
| 7923 | PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" |
| 7924 | fi |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7925 | elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7926 | printf "%s\n" "#define DYNAMIC_PYTHON3 1" >>confdefs.h |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7927 | |
Yee Cheng Chin | c13b3d1 | 2023-08-20 21:18:38 +0200 | [diff] [blame] | 7928 | if test "X$vi_cv_var_python3_stable_abi_hex" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7929 | printf "%s\n" "#define DYNAMIC_PYTHON3_STABLE_ABI 1" >>confdefs.h |
Yee Cheng Chin | c13b3d1 | 2023-08-20 21:18:38 +0200 | [diff] [blame] | 7930 | |
| 7931 | fi |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7932 | PYTHON3_SRC="if_python3.c" |
| 7933 | PYTHON3_OBJ="objects/if_python3.o" |
Bram Moolenaar | cf1b057 | 2014-05-22 14:44:22 +0200 | [diff] [blame] | 7934 | PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" |
Bram Moolenaar | b744b2f | 2010-08-13 16:22:57 +0200 | [diff] [blame] | 7935 | PYTHON3_LIBS= |
Bram Moolenaar | e741f27 | 2013-07-09 21:57:52 +0200 | [diff] [blame] | 7936 | elif test "$python3_ok" = yes; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7937 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 |
| 7938 | printf %s "checking if -fPIE can be added for Python3... " >&6; } |
Bram Moolenaar | e741f27 | 2013-07-09 21:57:52 +0200 | [diff] [blame] | 7939 | cflags_save=$CFLAGS |
| 7940 | libs_save=$LIBS |
| 7941 | CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" |
| 7942 | LIBS="$LIBS $PYTHON3_LIBS" |
| 7943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7944 | /* end confdefs.h. */ |
| 7945 | |
| 7946 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7947 | main (void) |
Bram Moolenaar | e741f27 | 2013-07-09 21:57:52 +0200 | [diff] [blame] | 7948 | { |
| 7949 | |
| 7950 | ; |
| 7951 | return 0; |
| 7952 | } |
| 7953 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7954 | if ac_fn_c_try_link "$LINENO" |
| 7955 | then : |
| 7956 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7957 | printf "%s\n" "yes" >&6; }; fpie_ok=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7958 | else case e in #( |
| 7959 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7960 | printf "%s\n" "no" >&6; }; fpie_ok=no ;; |
| 7961 | esac |
Bram Moolenaar | e741f27 | 2013-07-09 21:57:52 +0200 | [diff] [blame] | 7962 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7963 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | e741f27 | 2013-07-09 21:57:52 +0200 | [diff] [blame] | 7964 | conftest$ac_exeext conftest.$ac_ext |
| 7965 | CFLAGS=$cflags_save |
| 7966 | LIBS=$libs_save |
| 7967 | if test $fpie_ok = yes; then |
| 7968 | PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" |
| 7969 | fi |
Bram Moolenaar | bd5e15f | 2010-07-17 21:19:38 +0200 | [diff] [blame] | 7970 | fi |
| 7971 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 |
| 7973 | printf %s "checking --enable-tclinterp argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7974 | # Check whether --enable-tclinterp was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7975 | if test ${enable_tclinterp+y} |
| 7976 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7977 | enableval=$enable_tclinterp; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7978 | else case e in #( |
| 7979 | e) enable_tclinterp="no" ;; |
| 7980 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7981 | fi |
| 7982 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 |
| 7984 | printf "%s\n" "$enable_tclinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7985 | |
Bram Moolenaar | 8a5115c | 2016-01-09 19:41:11 +0100 | [diff] [blame] | 7986 | if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7987 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 |
| 7989 | printf %s "checking --with-tclsh argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7990 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7991 | # Check whether --with-tclsh was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 7992 | if test ${with_tclsh+y} |
| 7993 | then : |
| 7994 | withval=$with_tclsh; tclsh_name="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 |
| 7995 | printf "%s\n" "$tclsh_name" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 7996 | else case e in #( |
| 7997 | e) tclsh_name="tclsh8.5"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7998 | printf "%s\n" "no" >&6; } ;; |
| 7999 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8000 | fi |
| 8001 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8002 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 8003 | set dummy $tclsh_name; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8004 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8005 | printf %s "checking for $ac_word... " >&6; } |
| 8006 | if test ${ac_cv_path_vi_cv_path_tcl+y} |
| 8007 | then : |
| 8008 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8009 | else case e in #( |
| 8010 | e) case $vi_cv_path_tcl in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8011 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8012 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 8013 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8014 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8016 | for as_dir in $PATH |
| 8017 | do |
| 8018 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8019 | case $as_dir in #((( |
| 8020 | '') as_dir=./ ;; |
| 8021 | */) ;; |
| 8022 | *) as_dir=$as_dir/ ;; |
| 8023 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8024 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8025 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8026 | ac_cv_path_vi_cv_path_tcl="$as_dir$ac_word$ac_exec_ext" |
| 8027 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8028 | break 2 |
| 8029 | fi |
| 8030 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8031 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8032 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8033 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8034 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8035 | esac ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8036 | esac |
| 8037 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8038 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8039 | if test -n "$vi_cv_path_tcl"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 |
| 8041 | printf "%s\n" "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8042 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8043 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8044 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8045 | fi |
| 8046 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8047 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8048 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8049 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 8050 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then |
| 8051 | tclsh_name="tclsh8.4" |
| 8052 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 8053 | set dummy $tclsh_name; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8055 | printf %s "checking for $ac_word... " >&6; } |
| 8056 | if test ${ac_cv_path_vi_cv_path_tcl+y} |
| 8057 | then : |
| 8058 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8059 | else case e in #( |
| 8060 | e) case $vi_cv_path_tcl in |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 8061 | [\\/]* | ?:[\\/]*) |
| 8062 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 8063 | ;; |
| 8064 | *) |
| 8065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8066 | for as_dir in $PATH |
| 8067 | do |
| 8068 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8069 | case $as_dir in #((( |
| 8070 | '') as_dir=./ ;; |
| 8071 | */) ;; |
| 8072 | *) as_dir=$as_dir/ ;; |
| 8073 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8074 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8075 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8076 | ac_cv_path_vi_cv_path_tcl="$as_dir$ac_word$ac_exec_ext" |
| 8077 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 8078 | break 2 |
| 8079 | fi |
| 8080 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8081 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8082 | IFS=$as_save_IFS |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 8083 | |
| 8084 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8085 | esac ;; |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 8086 | esac |
| 8087 | fi |
| 8088 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 8089 | if test -n "$vi_cv_path_tcl"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 |
| 8091 | printf "%s\n" "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 8092 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8093 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8094 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 8095 | fi |
| 8096 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8097 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 8098 | fi |
| 8099 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8100 | tclsh_name="tclsh8.2" |
| 8101 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 8102 | set dummy $tclsh_name; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8104 | printf %s "checking for $ac_word... " >&6; } |
| 8105 | if test ${ac_cv_path_vi_cv_path_tcl+y} |
| 8106 | then : |
| 8107 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8108 | else case e in #( |
| 8109 | e) case $vi_cv_path_tcl in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8110 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8111 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 8112 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8113 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8115 | for as_dir in $PATH |
| 8116 | do |
| 8117 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8118 | case $as_dir in #((( |
| 8119 | '') as_dir=./ ;; |
| 8120 | */) ;; |
| 8121 | *) as_dir=$as_dir/ ;; |
| 8122 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8123 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8124 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8125 | ac_cv_path_vi_cv_path_tcl="$as_dir$ac_word$ac_exec_ext" |
| 8126 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8127 | break 2 |
| 8128 | fi |
| 8129 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8130 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8131 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8132 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8133 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8134 | esac ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8135 | esac |
| 8136 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8137 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8138 | if test -n "$vi_cv_path_tcl"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8139 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 |
| 8140 | printf "%s\n" "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8141 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8143 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8144 | fi |
| 8145 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8146 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8147 | fi |
| 8148 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 8149 | tclsh_name="tclsh8.0" |
| 8150 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 8151 | set dummy $tclsh_name; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8152 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8153 | printf %s "checking for $ac_word... " >&6; } |
| 8154 | if test ${ac_cv_path_vi_cv_path_tcl+y} |
| 8155 | then : |
| 8156 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8157 | else case e in #( |
| 8158 | e) case $vi_cv_path_tcl in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8159 | [\\/]* | ?:[\\/]*) |
| 8160 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 8161 | ;; |
| 8162 | *) |
| 8163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8164 | for as_dir in $PATH |
| 8165 | do |
| 8166 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8167 | case $as_dir in #((( |
| 8168 | '') as_dir=./ ;; |
| 8169 | */) ;; |
| 8170 | *) as_dir=$as_dir/ ;; |
| 8171 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8172 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8173 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8174 | ac_cv_path_vi_cv_path_tcl="$as_dir$ac_word$ac_exec_ext" |
| 8175 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8176 | break 2 |
| 8177 | fi |
| 8178 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8179 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8180 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8181 | |
| 8182 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8183 | esac ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8184 | esac |
| 8185 | fi |
| 8186 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8187 | if test -n "$vi_cv_path_tcl"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 |
| 8189 | printf "%s\n" "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8190 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8191 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8192 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8193 | fi |
| 8194 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8195 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8196 | fi |
| 8197 | if test "X$vi_cv_path_tcl" = "X"; then |
| 8198 | tclsh_name="tclsh" |
| 8199 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 8200 | set dummy $tclsh_name; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8202 | printf %s "checking for $ac_word... " >&6; } |
| 8203 | if test ${ac_cv_path_vi_cv_path_tcl+y} |
| 8204 | then : |
| 8205 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8206 | else case e in #( |
| 8207 | e) case $vi_cv_path_tcl in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8208 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8209 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 8210 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8211 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8213 | for as_dir in $PATH |
| 8214 | do |
| 8215 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8216 | case $as_dir in #((( |
| 8217 | '') as_dir=./ ;; |
| 8218 | */) ;; |
| 8219 | *) as_dir=$as_dir/ ;; |
| 8220 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8221 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8222 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8223 | ac_cv_path_vi_cv_path_tcl="$as_dir$ac_word$ac_exec_ext" |
| 8224 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8225 | break 2 |
| 8226 | fi |
| 8227 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8228 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8229 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8230 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8231 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8232 | esac ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8233 | esac |
| 8234 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8235 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8236 | if test -n "$vi_cv_path_tcl"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8237 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 |
| 8238 | printf "%s\n" "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8239 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8240 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8241 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8242 | fi |
| 8243 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8244 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8245 | fi |
| 8246 | if test "X$vi_cv_path_tcl" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 |
| 8248 | printf %s "checking Tcl version... " >&6; } |
Bram Moolenaar | 49222be | 2015-12-11 18:11:30 +0100 | [diff] [blame] | 8249 | if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8250 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 |
| 8252 | printf "%s\n" "$tclver - OK" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8253 | tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 8a5115c | 2016-01-09 19:41:11 +0100 | [diff] [blame] | 8254 | tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8255 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8256 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 |
| 8257 | printf %s "checking for location of Tcl include... " >&6; } |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 8258 | if test "x$MACOS_X" != "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8259 | tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8260 | else |
Bram Moolenaar | f4ee528 | 2020-07-30 20:18:08 +0200 | [diff] [blame] | 8261 | tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /System/Library/Frameworks/Tcl.framework/Headers `xcrun --show-sdk-path`/System/Library/Frameworks/Tcl.framework/Versions/Current/Headers" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8262 | fi |
Bram Moolenaar | 0ff8f60 | 2008-02-20 11:44:03 +0000 | [diff] [blame] | 8263 | TCL_INC= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8264 | for try in $tclinc; do |
| 8265 | if test -f "$try/tcl.h"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 |
| 8267 | printf "%s\n" "$try/tcl.h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8268 | TCL_INC=$try |
| 8269 | break |
| 8270 | fi |
| 8271 | done |
| 8272 | if test -z "$TCL_INC"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8273 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 |
| 8274 | printf "%s\n" "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8275 | SKIP_TCL=YES |
| 8276 | fi |
| 8277 | if test -z "$SKIP_TCL"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 |
| 8279 | printf %s "checking for location of tclConfig.sh script... " >&6; } |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 8280 | if test "x$MACOS_X" != "xyes"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8281 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 8282 | tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8283 | else |
Bram Moolenaar | f4ee528 | 2020-07-30 20:18:08 +0200 | [diff] [blame] | 8284 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
| 8285 | tclcnf="$tclcnf /System/Library/Frameworks/Tcl.framework `xcrun --show-sdk-path`/System/Library/Frameworks/Tcl.framework" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8286 | fi |
| 8287 | for try in $tclcnf; do |
Bram Moolenaar | 49222be | 2015-12-11 18:11:30 +0100 | [diff] [blame] | 8288 | if test -f "$try/tclConfig.sh"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8289 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 |
| 8290 | printf "%s\n" "$try/tclConfig.sh" >&6; } |
Bram Moolenaar | 49222be | 2015-12-11 18:11:30 +0100 | [diff] [blame] | 8291 | . "$try/tclConfig.sh" |
Bram Moolenaar | 8a5115c | 2016-01-09 19:41:11 +0100 | [diff] [blame] | 8292 | if test "$enable_tclinterp" = "dynamic"; then |
| 8293 | TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` |
| 8294 | else |
| 8295 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
| 8296 | fi |
Bram Moolenaar | 4394bff | 2008-07-24 11:21:31 +0000 | [diff] [blame] | 8297 | TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8298 | break |
| 8299 | fi |
| 8300 | done |
| 8301 | if test -z "$TCL_LIBS"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 |
| 8303 | printf "%s\n" "<not found>" >&6; } |
| 8304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 |
| 8305 | printf %s "checking for Tcl library by myself... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8306 | tcllib=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 8307 | tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8308 | for ext in .so .a ; do |
| 8309 | for ver in "" $tclver ; do |
| 8310 | for try in $tcllib ; do |
| 8311 | trylib=tcl$ver$ext |
Bram Moolenaar | 49222be | 2015-12-11 18:11:30 +0100 | [diff] [blame] | 8312 | if test -f "$try/lib$trylib" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 |
| 8314 | printf "%s\n" "$try/lib$trylib" >&6; } |
Bram Moolenaar | 49222be | 2015-12-11 18:11:30 +0100 | [diff] [blame] | 8315 | TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 8316 | if test "$vim_cv_uname_output" = SunOS && |
| 8317 | echo $vim_cv_uname_r_output | grep '^5' >/dev/null; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8318 | TCL_LIBS="$TCL_LIBS -R $try" |
| 8319 | fi |
| 8320 | break 3 |
| 8321 | fi |
| 8322 | done |
| 8323 | done |
| 8324 | done |
| 8325 | if test -z "$TCL_LIBS"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 |
| 8327 | printf "%s\n" "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8328 | SKIP_TCL=YES |
| 8329 | fi |
| 8330 | fi |
| 8331 | if test -z "$SKIP_TCL"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8332 | printf "%s\n" "#define FEAT_TCL 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8333 | |
| 8334 | TCL_SRC=if_tcl.c |
| 8335 | TCL_OBJ=objects/if_tcl.o |
| 8336 | TCL_PRO=if_tcl.pro |
| 8337 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 8338 | fi |
| 8339 | fi |
| 8340 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 |
| 8342 | printf "%s\n" "too old; need Tcl version 8.0 or later" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8343 | fi |
| 8344 | fi |
Bram Moolenaar | 8a5115c | 2016-01-09 19:41:11 +0100 | [diff] [blame] | 8345 | if test "$enable_tclinterp" = "dynamic"; then |
| 8346 | if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8347 | printf "%s\n" "#define DYNAMIC_TCL 1" >>confdefs.h |
Bram Moolenaar | 8a5115c | 2016-01-09 19:41:11 +0100 | [diff] [blame] | 8348 | |
| 8349 | TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" |
| 8350 | fi |
| 8351 | fi |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 8352 | if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 8353 | as_fn_error $? "could not configure Tcl" "$LINENO" 5 |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 8354 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8355 | fi |
| 8356 | |
| 8357 | |
| 8358 | |
| 8359 | |
| 8360 | |
| 8361 | |
ichizok | 8bb3fe4 | 2021-12-28 15:51:45 +0000 | [diff] [blame] | 8362 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8363 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 |
| 8364 | printf %s "checking --enable-rubyinterp argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8365 | # Check whether --enable-rubyinterp was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8366 | if test ${enable_rubyinterp+y} |
| 8367 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8368 | enableval=$enable_rubyinterp; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8369 | else case e in #( |
| 8370 | e) enable_rubyinterp="no" ;; |
| 8371 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8372 | fi |
| 8373 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8374 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 |
| 8375 | printf "%s\n" "$enable_rubyinterp" >&6; } |
Bram Moolenaar | 3ca71f1 | 2010-10-27 16:49:47 +0200 | [diff] [blame] | 8376 | if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 8377 | if test "$has_eval" = "no"; then |
Martin Tournoij | 7904fa4 | 2022-10-04 16:28:45 +0100 | [diff] [blame] | 8378 | as_fn_error $? "cannot use Ruby with tiny features" "$LINENO" 5 |
Bram Moolenaar | 0b10541 | 2014-11-30 13:34:23 +0100 | [diff] [blame] | 8379 | fi |
| 8380 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8381 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 |
| 8382 | printf %s "checking --with-ruby-command argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8383 | |
Bram Moolenaar | 948733a | 2011-05-05 18:10:16 +0200 | [diff] [blame] | 8384 | |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 8385 | # Check whether --with-ruby-command was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8386 | if test ${with_ruby_command+y} |
| 8387 | then : |
| 8388 | withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 |
| 8389 | printf "%s\n" "$RUBY_CMD" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8390 | else case e in #( |
| 8391 | e) RUBY_CMD="ruby"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 |
| 8392 | printf "%s\n" "defaulting to $RUBY_CMD" >&6; } ;; |
| 8393 | esac |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 8394 | fi |
| 8395 | |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 8396 | # Extract the first word of "$RUBY_CMD", so it can be a program name with args. |
| 8397 | set dummy $RUBY_CMD; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8399 | printf %s "checking for $ac_word... " >&6; } |
| 8400 | if test ${ac_cv_path_vi_cv_path_ruby+y} |
| 8401 | then : |
| 8402 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8403 | else case e in #( |
| 8404 | e) case $vi_cv_path_ruby in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8405 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8406 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 8407 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8408 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8410 | for as_dir in $PATH |
| 8411 | do |
| 8412 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8413 | case $as_dir in #((( |
| 8414 | '') as_dir=./ ;; |
| 8415 | */) ;; |
| 8416 | *) as_dir=$as_dir/ ;; |
| 8417 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8418 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8419 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8420 | ac_cv_path_vi_cv_path_ruby="$as_dir$ac_word$ac_exec_ext" |
| 8421 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8422 | break 2 |
| 8423 | fi |
| 8424 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8425 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8426 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8427 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8428 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8429 | esac ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8430 | esac |
| 8431 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8432 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8433 | if test -n "$vi_cv_path_ruby"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 |
| 8435 | printf "%s\n" "$vi_cv_path_ruby" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8436 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8438 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8439 | fi |
| 8440 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8441 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8442 | if test "X$vi_cv_path_ruby" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 |
| 8444 | printf %s "checking Ruby version... " >&6; } |
K.Takata | 236ccbf | 2022-09-22 16:12:06 +0100 | [diff] [blame] | 8445 | if $vi_cv_path_ruby -e 'RUBY_VERSION >= "1.9.1" or exit 1' >/dev/null 2>/dev/null; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8446 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5 |
| 8447 | printf "%s\n" "OK" >&6; } |
| 8448 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 |
| 8449 | printf %s "checking Ruby rbconfig... " >&6; } |
Bram Moolenaar | 8139889 | 2012-10-03 21:09:35 +0200 | [diff] [blame] | 8450 | ruby_rbconfig="RbConfig" |
| 8451 | if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then |
| 8452 | ruby_rbconfig="Config" |
| 8453 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 |
| 8455 | printf "%s\n" "$ruby_rbconfig" >&6; } |
| 8456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 |
| 8457 | printf %s "checking Ruby header files... " >&6; } |
Bram Moolenaar | 8139889 | 2012-10-03 21:09:35 +0200 | [diff] [blame] | 8458 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8459 | if test "X$rubyhdrdir" != "X"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8460 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 |
| 8461 | printf "%s\n" "$rubyhdrdir" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8462 | RUBY_CFLAGS="-I$rubyhdrdir" |
Bram Moolenaar | a6fd37b | 2014-03-27 17:19:09 +0100 | [diff] [blame] | 8463 | rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` |
| 8464 | if test -d "$rubyarchdir"; then |
| 8465 | RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 8466 | fi |
Bram Moolenaar | 8139889 | 2012-10-03 21:09:35 +0200 | [diff] [blame] | 8467 | rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` |
Bram Moolenaar | 026a445 | 2013-08-07 15:22:23 +0200 | [diff] [blame] | 8468 | if test "X$rubyversion" = "X"; then |
K.Takata | 236ccbf | 2022-09-22 16:12:06 +0100 | [diff] [blame] | 8469 | rubyversion=`$vi_cv_path_ruby -e "print RUBY_VERSION.gsub(/\./, '')[0,2]"` |
Bram Moolenaar | 026a445 | 2013-08-07 15:22:23 +0200 | [diff] [blame] | 8470 | fi |
Bram Moolenaar | 165641d | 2010-02-17 16:23:09 +0100 | [diff] [blame] | 8471 | RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" |
Bram Moolenaar | 8139889 | 2012-10-03 21:09:35 +0200 | [diff] [blame] | 8472 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8473 | if test "X$rubylibs" != "X"; then |
| 8474 | RUBY_LIBS="$rubylibs" |
| 8475 | fi |
Bram Moolenaar | 8139889 | 2012-10-03 21:09:35 +0200 | [diff] [blame] | 8476 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` |
| 8477 | librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` |
Bram Moolenaar | ac499e3 | 2013-06-02 19:14:17 +0200 | [diff] [blame] | 8478 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` |
Illia Bobyr | e379e21 | 2023-09-30 22:59:27 +0200 | [diff] [blame] | 8479 | if test -f "$rubylibdir/$librubya" || expr "$librubyarg" : "-lruby" >/dev/null; then |
Bram Moolenaar | ac499e3 | 2013-06-02 19:14:17 +0200 | [diff] [blame] | 8480 | RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" |
| 8481 | elif test "$librubyarg" = "libruby.a"; then |
| 8482 | librubyarg="-lruby" |
| 8483 | RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8484 | fi |
| 8485 | |
| 8486 | if test "X$librubyarg" != "X"; then |
| 8487 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 8488 | fi |
Zdenek Dohnal | 1d822af | 2022-11-23 12:06:08 +0000 | [diff] [blame] | 8489 | |
| 8490 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8491 | RUBY_SRC="if_ruby.c" |
| 8492 | RUBY_OBJ="objects/if_ruby.o" |
| 8493 | RUBY_PRO="if_ruby.pro" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8494 | printf "%s\n" "#define FEAT_RUBY 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8495 | |
Bram Moolenaar | 3ca71f1 | 2010-10-27 16:49:47 +0200 | [diff] [blame] | 8496 | if test "$enable_rubyinterp" = "dynamic"; then |
Bram Moolenaar | 9202162 | 2017-10-12 12:33:43 +0200 | [diff] [blame] | 8497 | libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"` |
Bram Moolenaar | 87ea64c | 2018-08-04 15:13:34 +0200 | [diff] [blame] | 8498 | if test -z "$libruby_soname"; then |
| 8499 | libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"` |
| 8500 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8501 | printf "%s\n" "#define DYNAMIC_RUBY 1" >>confdefs.h |
Bram Moolenaar | 3ca71f1 | 2010-10-27 16:49:47 +0200 | [diff] [blame] | 8502 | |
Bram Moolenaar | 41a4141 | 2020-01-07 21:32:19 +0100 | [diff] [blame] | 8503 | RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" $RUBY_CFLAGS" |
Bram Moolenaar | 3ca71f1 | 2010-10-27 16:49:47 +0200 | [diff] [blame] | 8504 | RUBY_LIBS= |
| 8505 | fi |
Bram Moolenaar | 864a28b | 2020-12-28 21:36:56 +0100 | [diff] [blame] | 8506 | if test "X$CLANG_VERSION" != "X" -a "$rubyversion" -ge 30; then |
| 8507 | RUBY_CFLAGS="$RUBY_CFLAGS -fdeclspec" |
| 8508 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8509 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8510 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 |
| 8511 | printf "%s\n" "not found; disabling Ruby" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8512 | fi |
| 8513 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.9.1 or later" >&5 |
| 8515 | printf "%s\n" "too old; need Ruby version 1.9.1 or later" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8516 | fi |
| 8517 | fi |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 8518 | |
| 8519 | if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 8520 | as_fn_error $? "could not configure Ruby" "$LINENO" 5 |
Bram Moolenaar | f788a06 | 2011-12-14 20:51:25 +0100 | [diff] [blame] | 8521 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8522 | fi |
| 8523 | |
| 8524 | |
| 8525 | |
| 8526 | |
| 8527 | |
| 8528 | |
ichizok | 8bb3fe4 | 2021-12-28 15:51:45 +0000 | [diff] [blame] | 8529 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8530 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 |
| 8531 | printf %s "checking --enable-cscope argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8532 | # Check whether --enable-cscope was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8533 | if test ${enable_cscope+y} |
| 8534 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8535 | enableval=$enable_cscope; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8536 | else case e in #( |
| 8537 | e) enable_cscope="no" ;; |
| 8538 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8539 | fi |
| 8540 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 |
| 8542 | printf "%s\n" "$enable_cscope" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8543 | if test "$enable_cscope" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8544 | printf "%s\n" "#define FEAT_CSCOPE 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8545 | |
| 8546 | fi |
| 8547 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 |
| 8549 | printf %s "checking --disable-netbeans argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8550 | # Check whether --enable-netbeans was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8551 | if test ${enable_netbeans+y} |
| 8552 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8553 | enableval=$enable_netbeans; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8554 | else case e in #( |
| 8555 | e) enable_netbeans="yes" ;; |
| 8556 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8557 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8558 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8559 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 8560 | if test "$has_eval" = "no"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny features" >&5 |
| 8562 | printf "%s\n" "cannot use NetBeans with tiny features" >&6; } |
Bram Moolenaar | 3c124e3 | 2016-01-31 14:36:58 +0100 | [diff] [blame] | 8563 | enable_netbeans="no" |
| 8564 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8566 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 3c124e3 | 2016-01-31 14:36:58 +0100 | [diff] [blame] | 8567 | fi |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 8568 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8570 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 8571 | fi |
| 8572 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8573 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 |
| 8574 | printf %s "checking --disable-channel argument... " >&6; } |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 8575 | # Check whether --enable-channel was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8576 | if test ${enable_channel+y} |
| 8577 | then : |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 8578 | enableval=$enable_channel; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8579 | else case e in #( |
| 8580 | e) enable_channel="yes" ;; |
| 8581 | esac |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 8582 | fi |
| 8583 | |
| 8584 | if test "$enable_channel" = "yes"; then |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 8585 | if test "$has_eval" = "no"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8586 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny features" >&5 |
| 8587 | printf "%s\n" "cannot use channels with tiny features" >&6; } |
Bram Moolenaar | 3c124e3 | 2016-01-31 14:36:58 +0100 | [diff] [blame] | 8588 | enable_channel="no" |
| 8589 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8591 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 3c124e3 | 2016-01-31 14:36:58 +0100 | [diff] [blame] | 8592 | fi |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 8593 | else |
Bram Moolenaar | 1643548 | 2016-01-24 21:31:54 +0100 | [diff] [blame] | 8594 | if test "$enable_netbeans" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 |
| 8596 | printf "%s\n" "yes, netbeans also disabled" >&6; } |
Bram Moolenaar | 1643548 | 2016-01-24 21:31:54 +0100 | [diff] [blame] | 8597 | enable_netbeans="no" |
| 8598 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8600 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 1643548 | 2016-01-24 21:31:54 +0100 | [diff] [blame] | 8601 | fi |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 8602 | fi |
| 8603 | |
Bram Moolenaar | 1643548 | 2016-01-24 21:31:54 +0100 | [diff] [blame] | 8604 | if test "$enable_channel" = "yes"; then |
Bram Moolenaar | bfe13cc | 2020-04-12 17:53:12 +0200 | [diff] [blame] | 8605 | if test "x$HAIKU" = "xyes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 |
| 8607 | printf %s "checking for socket in -lnetwork... " >&6; } |
| 8608 | if test ${ac_cv_lib_network_socket+y} |
| 8609 | then : |
| 8610 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8611 | else case e in #( |
| 8612 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 8613 | LIBS="-lnetwork $LIBS" |
| 8614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8615 | /* end confdefs.h. */ |
| 8616 | |
| 8617 | /* Override any GCC internal prototype to avoid an error. |
| 8618 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8619 | builtin and then its argument prototype would still apply. |
| 8620 | The 'extern "C"' is for builds by C++ compilers; |
| 8621 | although this is not generally supported in C code supporting it here |
| 8622 | has little cost and some practical benefit (sr 110532). */ |
| 8623 | #ifdef __cplusplus |
| 8624 | extern "C" |
| 8625 | #endif |
| 8626 | char socket (void); |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 8627 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8628 | main (void) |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 8629 | { |
| 8630 | return socket (); |
| 8631 | ; |
| 8632 | return 0; |
| 8633 | } |
| 8634 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8635 | if ac_fn_c_try_link "$LINENO" |
| 8636 | then : |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 8637 | ac_cv_lib_network_socket=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8638 | else case e in #( |
| 8639 | e) ac_cv_lib_network_socket=no ;; |
| 8640 | esac |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 8641 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8642 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 8643 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8644 | LIBS=$ac_check_lib_save_LIBS ;; |
| 8645 | esac |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 8646 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 |
| 8648 | printf "%s\n" "$ac_cv_lib_network_socket" >&6; } |
| 8649 | if test "x$ac_cv_lib_network_socket" = xyes |
| 8650 | then : |
| 8651 | printf "%s\n" "#define HAVE_LIBNETWORK 1" >>confdefs.h |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 8652 | |
| 8653 | LIBS="-lnetwork $LIBS" |
| 8654 | |
| 8655 | fi |
| 8656 | |
| 8657 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 8659 | printf %s "checking for socket in -lsocket... " >&6; } |
| 8660 | if test ${ac_cv_lib_socket_socket+y} |
| 8661 | then : |
| 8662 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8663 | else case e in #( |
| 8664 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8665 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8667 | /* end confdefs.h. */ |
| 8668 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8669 | /* Override any GCC internal prototype to avoid an error. |
| 8670 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8671 | builtin and then its argument prototype would still apply. |
| 8672 | The 'extern "C"' is for builds by C++ compilers; |
| 8673 | although this is not generally supported in C code supporting it here |
| 8674 | has little cost and some practical benefit (sr 110532). */ |
| 8675 | #ifdef __cplusplus |
| 8676 | extern "C" |
| 8677 | #endif |
| 8678 | char socket (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8679 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8680 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8681 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8682 | return socket (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8683 | ; |
| 8684 | return 0; |
| 8685 | } |
| 8686 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8687 | if ac_fn_c_try_link "$LINENO" |
| 8688 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8689 | ac_cv_lib_socket_socket=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8690 | else case e in #( |
| 8691 | e) ac_cv_lib_socket_socket=no ;; |
| 8692 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8693 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8694 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8695 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8696 | LIBS=$ac_check_lib_save_LIBS ;; |
| 8697 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8698 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8699 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 8700 | printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } |
| 8701 | if test "x$ac_cv_lib_socket_socket" = xyes |
| 8702 | then : |
| 8703 | printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8704 | |
| 8705 | LIBS="-lsocket $LIBS" |
| 8706 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8707 | fi |
| 8708 | |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 8709 | fi |
| 8710 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8711 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv6 networking is possible" >&5 |
| 8712 | printf %s "checking whether compiling with IPv6 networking is possible... " >&6; } |
| 8713 | if test ${vim_cv_ipv6_networking+y} |
| 8714 | then : |
| 8715 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8716 | else case e in #( |
| 8717 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | bfe13cc | 2020-04-12 17:53:12 +0200 | [diff] [blame] | 8718 | /* end confdefs.h. */ |
| 8719 | |
| 8720 | #include <stdio.h> |
| 8721 | #include <stdlib.h> |
| 8722 | #include <stdarg.h> |
| 8723 | #include <fcntl.h> |
| 8724 | #include <netdb.h> |
| 8725 | #include <netinet/in.h> |
| 8726 | #include <errno.h> |
| 8727 | #include <sys/types.h> |
| 8728 | #include <sys/socket.h> |
| 8729 | /* Check bitfields */ |
| 8730 | struct nbbuf { |
| 8731 | unsigned int initDone:1; |
| 8732 | unsigned short signmaplen; |
| 8733 | }; |
| 8734 | |
| 8735 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8736 | main (void) |
Bram Moolenaar | bfe13cc | 2020-04-12 17:53:12 +0200 | [diff] [blame] | 8737 | { |
| 8738 | |
| 8739 | /* Check creating a socket. */ |
| 8740 | struct sockaddr_in server; |
| 8741 | struct addrinfo *res; |
| 8742 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 8743 | (void)htons(100); |
| 8744 | (void)getaddrinfo("microsoft.com", NULL, NULL, &res); |
| 8745 | if (errno == ECONNREFUSED) |
| 8746 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
| 8747 | (void)freeaddrinfo(res); |
| 8748 | |
| 8749 | ; |
| 8750 | return 0; |
| 8751 | } |
| 8752 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8753 | if ac_fn_c_try_link "$LINENO" |
| 8754 | then : |
Bram Moolenaar | bfe13cc | 2020-04-12 17:53:12 +0200 | [diff] [blame] | 8755 | vim_cv_ipv6_networking="yes" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8756 | else case e in #( |
| 8757 | e) vim_cv_ipv6_networking="no" ;; |
| 8758 | esac |
Bram Moolenaar | bfe13cc | 2020-04-12 17:53:12 +0200 | [diff] [blame] | 8759 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8760 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8761 | conftest$ac_exeext conftest.$ac_ext ;; |
| 8762 | esac |
Bram Moolenaar | bfe13cc | 2020-04-12 17:53:12 +0200 | [diff] [blame] | 8763 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv6_networking" >&5 |
| 8765 | printf "%s\n" "$vim_cv_ipv6_networking" >&6; } |
Bram Moolenaar | bfe13cc | 2020-04-12 17:53:12 +0200 | [diff] [blame] | 8766 | |
| 8767 | if test "x$vim_cv_ipv6_networking" = "xyes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8768 | printf "%s\n" "#define FEAT_IPV6 1" >>confdefs.h |
Bram Moolenaar | bfe13cc | 2020-04-12 17:53:12 +0200 | [diff] [blame] | 8769 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8770 | ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" |
| 8771 | if test "x$ac_cv_func_inet_ntop" = xyes |
| 8772 | then : |
| 8773 | printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h |
Bram Moolenaar | b6fb051 | 2020-04-18 18:24:18 +0200 | [diff] [blame] | 8774 | |
| 8775 | fi |
Bram Moolenaar | b6fb051 | 2020-04-18 18:24:18 +0200 | [diff] [blame] | 8776 | |
Bram Moolenaar | bfe13cc | 2020-04-12 17:53:12 +0200 | [diff] [blame] | 8777 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| 8779 | printf %s "checking for gethostbyname in -lnsl... " >&6; } |
| 8780 | if test ${ac_cv_lib_nsl_gethostbyname+y} |
| 8781 | then : |
| 8782 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8783 | else case e in #( |
| 8784 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8785 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8787 | /* end confdefs.h. */ |
| 8788 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8789 | /* Override any GCC internal prototype to avoid an error. |
| 8790 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8791 | builtin and then its argument prototype would still apply. |
| 8792 | The 'extern "C"' is for builds by C++ compilers; |
| 8793 | although this is not generally supported in C code supporting it here |
| 8794 | has little cost and some practical benefit (sr 110532). */ |
| 8795 | #ifdef __cplusplus |
| 8796 | extern "C" |
| 8797 | #endif |
| 8798 | char gethostbyname (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8799 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8800 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8801 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8802 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8803 | ; |
| 8804 | return 0; |
| 8805 | } |
| 8806 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8807 | if ac_fn_c_try_link "$LINENO" |
| 8808 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8809 | ac_cv_lib_nsl_gethostbyname=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8810 | else case e in #( |
| 8811 | e) ac_cv_lib_nsl_gethostbyname=no ;; |
| 8812 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8813 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8814 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 8815 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8816 | LIBS=$ac_check_lib_save_LIBS ;; |
| 8817 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8818 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8819 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 8820 | printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 8821 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
| 8822 | then : |
| 8823 | printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8824 | |
| 8825 | LIBS="-lnsl $LIBS" |
| 8826 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8827 | fi |
| 8828 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv4 networking is possible" >&5 |
| 8830 | printf %s "checking whether compiling with IPv4 networking is possible... " >&6; } |
| 8831 | if test ${vim_cv_ipv4_networking+y} |
| 8832 | then : |
| 8833 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8834 | else case e in #( |
| 8835 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8836 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8837 | |
| 8838 | #include <stdio.h> |
| 8839 | #include <stdlib.h> |
| 8840 | #include <stdarg.h> |
| 8841 | #include <fcntl.h> |
| 8842 | #include <netdb.h> |
| 8843 | #include <netinet/in.h> |
| 8844 | #include <errno.h> |
| 8845 | #include <sys/types.h> |
| 8846 | #include <sys/socket.h> |
| 8847 | /* Check bitfields */ |
| 8848 | struct nbbuf { |
| 8849 | unsigned int initDone:1; |
Bram Moolenaar | 63de19e | 2016-12-09 20:11:26 +0100 | [diff] [blame] | 8850 | unsigned short signmaplen; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8851 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8852 | |
| 8853 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8854 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8855 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8856 | |
| 8857 | /* Check creating a socket. */ |
| 8858 | struct sockaddr_in server; |
| 8859 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 8860 | (void)htons(100); |
| 8861 | (void)gethostbyname("microsoft.com"); |
| 8862 | if (errno == ECONNREFUSED) |
| 8863 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8864 | |
| 8865 | ; |
| 8866 | return 0; |
| 8867 | } |
| 8868 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8869 | if ac_fn_c_try_link "$LINENO" |
| 8870 | then : |
Bram Moolenaar | bfe13cc | 2020-04-12 17:53:12 +0200 | [diff] [blame] | 8871 | vim_cv_ipv4_networking="yes" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8872 | else case e in #( |
| 8873 | e) vim_cv_ipv4_networking="no"; enable_netbeans="no"; enable_channel="no" ;; |
| 8874 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8875 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8876 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8877 | conftest$ac_exeext conftest.$ac_ext ;; |
| 8878 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8879 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8880 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv4_networking" >&5 |
| 8881 | printf "%s\n" "$vim_cv_ipv4_networking" >&6; } |
Bram Moolenaar | bfe13cc | 2020-04-12 17:53:12 +0200 | [diff] [blame] | 8882 | fi |
| 8883 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8884 | if test "$enable_netbeans" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8885 | printf "%s\n" "#define FEAT_NETBEANS_INTG 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8886 | |
| 8887 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8888 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8889 | NETBEANS_OBJ="objects/netbeans.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8890 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8891 | fi |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 8892 | if test "$enable_channel" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8893 | printf "%s\n" "#define FEAT_JOB_CHANNEL 1" >>confdefs.h |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 8894 | |
Bram Moolenaar | 8b5866d | 2020-09-05 15:48:51 +0200 | [diff] [blame] | 8895 | CHANNEL_SRC="job.c channel.c" |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 8896 | |
Bram Moolenaar | 8b5866d | 2020-09-05 15:48:51 +0200 | [diff] [blame] | 8897 | CHANNEL_OBJ="objects/job.o objects/channel.o" |
Bram Moolenaar | e0874f8 | 2016-01-24 20:36:41 +0100 | [diff] [blame] | 8898 | |
| 8899 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8900 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5 |
| 8902 | printf %s "checking --enable-terminal argument... " >&6; } |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 8903 | # Check whether --enable-terminal was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8904 | if test ${enable_terminal+y} |
| 8905 | then : |
Bram Moolenaar | ef83956 | 2017-10-28 20:28:23 +0200 | [diff] [blame] | 8906 | enableval=$enable_terminal; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8907 | else case e in #( |
| 8908 | e) enable_terminal="auto" ;; |
| 8909 | esac |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 8910 | fi |
| 8911 | |
Bram Moolenaar | 595a402 | 2017-09-03 19:15:57 +0200 | [diff] [blame] | 8912 | if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 8913 | if test "$has_eval" = "no"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8914 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny features" >&5 |
| 8915 | printf "%s\n" "cannot use terminal emulator with tiny features" >&6; } |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 8916 | enable_terminal="no" |
| 8917 | else |
Bram Moolenaar | 595a402 | 2017-09-03 19:15:57 +0200 | [diff] [blame] | 8918 | if test "$enable_terminal" = "auto"; then |
| 8919 | enable_terminal="yes" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8920 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5 |
| 8921 | printf "%s\n" "defaulting to yes" >&6; } |
Bram Moolenaar | 595a402 | 2017-09-03 19:15:57 +0200 | [diff] [blame] | 8922 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8923 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8924 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 595a402 | 2017-09-03 19:15:57 +0200 | [diff] [blame] | 8925 | fi |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 8926 | fi |
| 8927 | else |
Bram Moolenaar | 595a402 | 2017-09-03 19:15:57 +0200 | [diff] [blame] | 8928 | if test "$enable_terminal" = "auto"; then |
| 8929 | enable_terminal="no" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8930 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5 |
| 8931 | printf "%s\n" "defaulting to no" >&6; } |
Bram Moolenaar | 595a402 | 2017-09-03 19:15:57 +0200 | [diff] [blame] | 8932 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8933 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8934 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 595a402 | 2017-09-03 19:15:57 +0200 | [diff] [blame] | 8935 | fi |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 8936 | fi |
Bram Moolenaar | 8b42328 | 2017-12-16 14:37:06 +0100 | [diff] [blame] | 8937 | if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8938 | printf "%s\n" "#define FEAT_TERMINAL 1" >>confdefs.h |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 8939 | |
Bram Moolenaar | 9326805 | 2019-10-10 13:22:54 +0200 | [diff] [blame] | 8940 | TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/creen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c" |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 8941 | |
Bram Moolenaar | 9326805 | 2019-10-10 13:22:54 +0200 | [diff] [blame] | 8942 | TERM_OBJ="objects/vterm_encoding.o objects/vterm_keyboard.o objects/vterm_mouse.o objects/vterm_parser.o objects/vterm_pen.o objects/vterm_screen.o objects/vterm_state.o objects/vterm_unicode.o objects/vterm_vterm.o" |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 8943 | |
Bram Moolenaar | 823edd1 | 2019-10-23 22:35:36 +0200 | [diff] [blame] | 8944 | TERM_TEST="test_libvterm" |
| 8945 | |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 8946 | fi |
| 8947 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5 |
| 8949 | printf %s "checking --enable-autoservername argument... " >&6; } |
Bram Moolenaar | e42a6d2 | 2017-11-12 19:21:51 +0100 | [diff] [blame] | 8950 | # Check whether --enable-autoservername was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8951 | if test ${enable_autoservername+y} |
| 8952 | then : |
Bram Moolenaar | e42a6d2 | 2017-11-12 19:21:51 +0100 | [diff] [blame] | 8953 | enableval=$enable_autoservername; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8954 | else case e in #( |
| 8955 | e) enable_autoservername="no" ;; |
| 8956 | esac |
Bram Moolenaar | e42a6d2 | 2017-11-12 19:21:51 +0100 | [diff] [blame] | 8957 | fi |
| 8958 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8959 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5 |
| 8960 | printf "%s\n" "$enable_autoservername" >&6; } |
Bram Moolenaar | e42a6d2 | 2017-11-12 19:21:51 +0100 | [diff] [blame] | 8961 | if test "$enable_autoservername" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8962 | printf "%s\n" "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h |
Bram Moolenaar | e42a6d2 | 2017-11-12 19:21:51 +0100 | [diff] [blame] | 8963 | |
| 8964 | fi |
| 8965 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 |
| 8967 | printf %s "checking --enable-multibyte argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8968 | # Check whether --enable-multibyte was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8969 | if test ${enable_multibyte+y} |
| 8970 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8971 | enableval=$enable_multibyte; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8972 | else case e in #( |
| 8973 | e) enable_multibyte="yes" ;; |
| 8974 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8975 | fi |
| 8976 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 |
| 8978 | printf "%s\n" "$enable_multibyte" >&6; } |
Bram Moolenaar | 30276f2 | 2019-01-24 17:59:39 +0100 | [diff] [blame] | 8979 | if test "$enable_multibyte" != "yes"; then |
Bram Moolenaar | 2be7cb7 | 2019-01-12 16:10:51 +0100 | [diff] [blame] | 8980 | as_fn_error $? "The multi-byte feature can no longer be disabled. If you have |
| 8981 | a problem with this, discuss on the Vim mailing list." "$LINENO" 5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8982 | fi |
| 8983 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8984 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5 |
| 8985 | printf %s "checking --disable-rightleft argument... " >&6; } |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 8986 | # Check whether --enable-rightleft was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8987 | if test ${enable_rightleft+y} |
| 8988 | then : |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 8989 | enableval=$enable_rightleft; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 8990 | else case e in #( |
| 8991 | e) enable_rightleft="yes" ;; |
| 8992 | esac |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 8993 | fi |
| 8994 | |
| 8995 | if test "$enable_rightleft" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8996 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8997 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 8998 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 8999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9000 | printf "%s\n" "yes" >&6; } |
| 9001 | printf "%s\n" "#define DISABLE_RIGHTLEFT 1" >>confdefs.h |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 9002 | |
| 9003 | fi |
| 9004 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5 |
| 9006 | printf %s "checking --disable-arabic argument... " >&6; } |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 9007 | # Check whether --enable-arabic was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9008 | if test ${enable_arabic+y} |
| 9009 | then : |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 9010 | enableval=$enable_arabic; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9011 | else case e in #( |
| 9012 | e) enable_arabic="yes" ;; |
| 9013 | esac |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 9014 | fi |
| 9015 | |
| 9016 | if test "$enable_arabic" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9018 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 9019 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9020 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9021 | printf "%s\n" "yes" >&6; } |
| 9022 | printf "%s\n" "#define DISABLE_ARABIC 1" >>confdefs.h |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 9023 | |
| 9024 | fi |
| 9025 | |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 9026 | # Check whether --enable-farsi was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9027 | if test ${enable_farsi+y} |
| 9028 | then : |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 9029 | enableval=$enable_farsi; |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 9030 | fi |
| 9031 | |
Bram Moolenaar | 5c5697f | 2018-12-12 20:34:09 +0100 | [diff] [blame] | 9032 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 |
| 9034 | printf %s "checking --enable-xim argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9035 | # Check whether --enable-xim was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9036 | if test ${enable_xim+y} |
| 9037 | then : |
| 9038 | enableval=$enable_xim; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 |
| 9039 | printf "%s\n" "$enable_xim" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9040 | else case e in #( |
| 9041 | e) enable_xim="auto"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 |
| 9042 | printf "%s\n" "defaulting to auto" >&6; } ;; |
| 9043 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9044 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9045 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9046 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 |
| 9048 | printf %s "checking --enable-fontset argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9049 | # Check whether --enable-fontset was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9050 | if test ${enable_fontset+y} |
| 9051 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9052 | enableval=$enable_fontset; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9053 | else case e in #( |
| 9054 | e) enable_fontset="no" ;; |
| 9055 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9056 | fi |
| 9057 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 |
| 9059 | printf "%s\n" "$enable_fontset" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9060 | |
| 9061 | test -z "$with_x" && with_x=yes |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 9062 | test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9063 | if test "$with_x" = no; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 |
| 9065 | printf "%s\n" "defaulting to: don't HAVE_X11" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9066 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9067 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9068 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 9069 | set dummy xmkmf; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9070 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9071 | printf %s "checking for $ac_word... " >&6; } |
| 9072 | if test ${ac_cv_path_xmkmfpath+y} |
| 9073 | then : |
| 9074 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9075 | else case e in #( |
| 9076 | e) case $xmkmfpath in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9077 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9078 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 9079 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9080 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9082 | for as_dir in $PATH |
| 9083 | do |
| 9084 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9085 | case $as_dir in #((( |
| 9086 | '') as_dir=./ ;; |
| 9087 | */) ;; |
| 9088 | *) as_dir=$as_dir/ ;; |
| 9089 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9090 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9091 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9092 | ac_cv_path_xmkmfpath="$as_dir$ac_word$ac_exec_ext" |
| 9093 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9094 | break 2 |
| 9095 | fi |
| 9096 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9097 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9098 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9099 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9100 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9101 | esac ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9102 | esac |
| 9103 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9104 | xmkmfpath=$ac_cv_path_xmkmfpath |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9105 | if test -n "$xmkmfpath"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9106 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 |
| 9107 | printf "%s\n" "$xmkmfpath" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9108 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9109 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9110 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9111 | fi |
| 9112 | |
| 9113 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9114 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9115 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| 9116 | printf %s "checking for X... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9117 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9118 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9119 | # Check whether --with-x was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9120 | if test ${with_x+y} |
| 9121 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9122 | withval=$with_x; |
| 9123 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9124 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9125 | # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9126 | if test "x$with_x" = xno; then |
| 9127 | # The user explicitly disabled X. |
| 9128 | have_x=disabled |
| 9129 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9130 | case $x_includes,$x_libraries in #( |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 9131 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9132 | *,NONE | NONE,*) if test ${ac_cv_have_x+y} |
| 9133 | then : |
| 9134 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9135 | else case e in #( |
| 9136 | e) # One or both of the vars are not set, and there is no cached value. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9137 | ac_x_includes=no |
| 9138 | ac_x_libraries=no |
| 9139 | # Do we need to do anything special at all? |
| 9140 | ac_save_LIBS=$LIBS |
| 9141 | LIBS="-lX11 $LIBS" |
| 9142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9143 | /* end confdefs.h. */ |
| 9144 | #include <X11/Xlib.h> |
| 9145 | int |
| 9146 | main (void) |
| 9147 | { |
| 9148 | XrmInitialize () |
| 9149 | ; |
| 9150 | return 0; |
| 9151 | } |
| 9152 | _ACEOF |
| 9153 | if ac_fn_c_try_link "$LINENO" |
| 9154 | then : |
| 9155 | # We can compile and link X programs with no special options. |
| 9156 | ac_x_includes= |
| 9157 | ac_x_libraries= |
| 9158 | fi |
| 9159 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9160 | conftest$ac_exeext conftest.$ac_ext |
| 9161 | LIBS="$ac_save_LIBS" |
| 9162 | # If that didn't work, only try xmkmf and file system searches |
| 9163 | # for native compilation. |
| 9164 | if test x"$ac_x_includes" = xno && test "$cross_compiling" = no |
| 9165 | then : |
| 9166 | rm -f -r conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9167 | if mkdir conftest.dir; then |
| 9168 | cd conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9169 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9170 | incroot: |
| 9171 | @echo incroot='${INCROOT}' |
| 9172 | usrlibdir: |
| 9173 | @echo usrlibdir='${USRLIBDIR}' |
| 9174 | libdir: |
| 9175 | @echo libdir='${LIBDIR}' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9176 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9177 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 9178 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9179 | for ac_var in incroot usrlibdir libdir; do |
| 9180 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 9181 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9182 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9183 | for ac_extension in a so sl dylib la dll; do |
| 9184 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 9185 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9186 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9187 | fi |
| 9188 | done |
| 9189 | # Screen out bogus values from the imake configuration. They are |
| 9190 | # bogus both because they are the default anyway, and because |
| 9191 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9192 | case $ac_im_incroot in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9193 | /usr/include) ac_x_includes= ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9194 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9195 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9196 | case $ac_im_usrlibdir in |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 9197 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9198 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9199 | esac |
| 9200 | fi |
| 9201 | cd .. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9202 | rm -f -r conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9203 | fi |
| 9204 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9205 | # Standard set of common directories for X headers. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9206 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 9207 | ac_x_header_dirs=' |
| 9208 | /usr/X11/include |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9209 | /usr/X11R7/include |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9210 | /usr/X11R6/include |
| 9211 | /usr/X11R5/include |
| 9212 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9213 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9214 | /usr/include/X11 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9215 | /usr/include/X11R7 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9216 | /usr/include/X11R6 |
| 9217 | /usr/include/X11R5 |
| 9218 | /usr/include/X11R4 |
| 9219 | |
| 9220 | /usr/local/X11/include |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9221 | /usr/local/X11R7/include |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9222 | /usr/local/X11R6/include |
| 9223 | /usr/local/X11R5/include |
| 9224 | /usr/local/X11R4/include |
| 9225 | |
| 9226 | /usr/local/include/X11 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9227 | /usr/local/include/X11R7 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9228 | /usr/local/include/X11R6 |
| 9229 | /usr/local/include/X11R5 |
| 9230 | /usr/local/include/X11R4 |
| 9231 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9232 | /opt/X11/include |
| 9233 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9234 | /usr/X386/include |
| 9235 | /usr/x386/include |
| 9236 | /usr/XFree86/include/X11 |
| 9237 | |
| 9238 | /usr/include |
| 9239 | /usr/local/include |
| 9240 | /usr/unsupported/include |
| 9241 | /usr/athena/include |
| 9242 | /usr/local/x11r5/include |
| 9243 | /usr/lpp/Xamples/include |
| 9244 | |
| 9245 | /usr/openwin/include |
| 9246 | /usr/openwin/share/include' |
| 9247 | |
| 9248 | if test "$ac_x_includes" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9249 | # Guess where to find include files, by looking for Xlib.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9250 | # First, try using that file with no special directory specified. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9252 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9253 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9254 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9255 | if ac_fn_c_try_cpp "$LINENO" |
| 9256 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9257 | # We can compile using X headers with no special include directory. |
| 9258 | ac_x_includes= |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9259 | else case e in #( |
| 9260 | e) for ac_dir in $ac_x_header_dirs; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9261 | if test -r "$ac_dir/X11/Xlib.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9262 | ac_x_includes=$ac_dir |
| 9263 | break |
| 9264 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9265 | done ;; |
| 9266 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9267 | fi |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 9268 | rm -f conftest.err conftest.i conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9269 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9270 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9271 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9272 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9273 | # See if we find them without any special options. |
| 9274 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9275 | ac_save_LIBS=$LIBS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9276 | LIBS="-lX11 $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9278 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9279 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9280 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9281 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9282 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9283 | XrmInitialize () |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9284 | ; |
| 9285 | return 0; |
| 9286 | } |
| 9287 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9288 | if ac_fn_c_try_link "$LINENO" |
| 9289 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9290 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9291 | # We can link X programs with no special library path. |
| 9292 | ac_x_libraries= |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9293 | else case e in #( |
| 9294 | e) LIBS=$ac_save_LIBS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9295 | for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9296 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9297 | # Don't even attempt the hair of trying to link an X program! |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9298 | for ac_extension in a so sl dylib la dll; do |
| 9299 | if test -r "$ac_dir/libX11.$ac_extension"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9300 | ac_x_libraries=$ac_dir |
| 9301 | break 2 |
| 9302 | fi |
| 9303 | done |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9304 | done ;; |
| 9305 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9306 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9307 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9308 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9309 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9310 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9311 | fi |
| 9312 | # Record the results. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9313 | case $ac_x_includes,$ac_x_libraries in #( |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9314 | no,* | *,no | *\'*) : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9315 | # Didn't find X, or a directory has "'" in its name. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9316 | ac_cv_have_x="have_x=no" ;; #( |
| 9317 | *) : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9318 | # Record where we found X for the cache. |
| 9319 | ac_cv_have_x="have_x=yes\ |
| 9320 | ac_x_includes='$ac_x_includes'\ |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9321 | ac_x_libraries='$ac_x_libraries'" ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9322 | esac ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9323 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9324 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9325 | ;; #( |
| 9326 | *) have_x=yes;; |
| 9327 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9328 | eval "$ac_cv_have_x" |
| 9329 | fi # $with_x != no |
| 9330 | |
| 9331 | if test "$have_x" != yes; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9332 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| 9333 | printf "%s\n" "$have_x" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9334 | no_x=yes |
| 9335 | else |
| 9336 | # If each of the values was on the command line, it overrides each guess. |
| 9337 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 9338 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 9339 | # Update the cache value to reflect the command line values. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9340 | ac_cv_have_x="have_x=yes\ |
| 9341 | ac_x_includes='$x_includes'\ |
| 9342 | ac_x_libraries='$x_libraries'" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
| 9344 | printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9345 | fi |
| 9346 | |
| 9347 | if test "$no_x" = yes; then |
| 9348 | # Not all programs may use this symbol, but it does not hurt to define it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9349 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9350 | printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9351 | |
| 9352 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 9353 | else |
| 9354 | if test -n "$x_includes"; then |
| 9355 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 9356 | fi |
| 9357 | |
| 9358 | # It would also be nice to do this for all -L options, not just this one. |
| 9359 | if test -n "$x_libraries"; then |
| 9360 | X_LIBS="$X_LIBS -L$x_libraries" |
| 9361 | # For Solaris; some versions of Sun CC require a space after -R and |
| 9362 | # others require no space. Words are not sufficient . . . . |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9363 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
| 9364 | printf %s "checking whether -R must be followed by a space... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9365 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 9366 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 9367 | ac_c_werror_flag=yes |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9369 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9370 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9371 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9372 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9373 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9374 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9375 | ; |
| 9376 | return 0; |
| 9377 | } |
| 9378 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9379 | if ac_fn_c_try_link "$LINENO" |
| 9380 | then : |
| 9381 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9382 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9383 | X_LIBS="$X_LIBS -R$x_libraries" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9384 | else case e in #( |
| 9385 | e) LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9387 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9388 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9389 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9390 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9391 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9392 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9393 | ; |
| 9394 | return 0; |
| 9395 | } |
| 9396 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9397 | if ac_fn_c_try_link "$LINENO" |
| 9398 | then : |
| 9399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9400 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9401 | X_LIBS="$X_LIBS -R $x_libraries" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9402 | else case e in #( |
| 9403 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
| 9404 | printf "%s\n" "neither works" >&6; } ;; |
| 9405 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9406 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9407 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9408 | conftest$ac_exeext conftest.$ac_ext ;; |
| 9409 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9410 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9411 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9412 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9413 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 9414 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9415 | fi |
| 9416 | |
| 9417 | # Check for system-dependent libraries X programs must link with. |
| 9418 | # Do this before checking for the system-independent R6 libraries |
| 9419 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 9420 | |
| 9421 | if test "$ISC" = yes; then |
| 9422 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 9423 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9424 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 9425 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9426 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9427 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9429 | /* end confdefs.h. */ |
| 9430 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9431 | /* Override any GCC internal prototype to avoid an error. |
| 9432 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9433 | builtin and then its argument prototype would still apply. |
| 9434 | The 'extern "C"' is for builds by C++ compilers; |
| 9435 | although this is not generally supported in C code supporting it here |
| 9436 | has little cost and some practical benefit (sr 110532). */ |
| 9437 | #ifdef __cplusplus |
| 9438 | extern "C" |
| 9439 | #endif |
| 9440 | char XOpenDisplay (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9441 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9442 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9443 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9444 | return XOpenDisplay (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9445 | ; |
| 9446 | return 0; |
| 9447 | } |
| 9448 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9449 | if ac_fn_c_try_link "$LINENO" |
| 9450 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9451 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9452 | else case e in #( |
| 9453 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9454 | printf %s "checking for dnet_ntoa in -ldnet... " >&6; } |
| 9455 | if test ${ac_cv_lib_dnet_dnet_ntoa+y} |
| 9456 | then : |
| 9457 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9458 | else case e in #( |
| 9459 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9460 | LIBS="-ldnet $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9462 | /* end confdefs.h. */ |
| 9463 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9464 | /* Override any GCC internal prototype to avoid an error. |
| 9465 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9466 | builtin and then its argument prototype would still apply. |
| 9467 | The 'extern "C"' is for builds by C++ compilers; |
| 9468 | although this is not generally supported in C code supporting it here |
| 9469 | has little cost and some practical benefit (sr 110532). */ |
| 9470 | #ifdef __cplusplus |
| 9471 | extern "C" |
| 9472 | #endif |
| 9473 | char dnet_ntoa (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9474 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9475 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9476 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9477 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9478 | ; |
| 9479 | return 0; |
| 9480 | } |
| 9481 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9482 | if ac_fn_c_try_link "$LINENO" |
| 9483 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9484 | ac_cv_lib_dnet_dnet_ntoa=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9485 | else case e in #( |
| 9486 | e) ac_cv_lib_dnet_dnet_ntoa=no ;; |
| 9487 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9488 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9489 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9490 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9491 | LIBS=$ac_check_lib_save_LIBS ;; |
| 9492 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9493 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 9495 | printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| 9496 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes |
| 9497 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9498 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9499 | fi |
| 9500 | |
| 9501 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 9503 | printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
| 9504 | if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y} |
| 9505 | then : |
| 9506 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9507 | else case e in #( |
| 9508 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9509 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9511 | /* end confdefs.h. */ |
| 9512 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9513 | /* Override any GCC internal prototype to avoid an error. |
| 9514 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9515 | builtin and then its argument prototype would still apply. |
| 9516 | The 'extern "C"' is for builds by C++ compilers; |
| 9517 | although this is not generally supported in C code supporting it here |
| 9518 | has little cost and some practical benefit (sr 110532). */ |
| 9519 | #ifdef __cplusplus |
| 9520 | extern "C" |
| 9521 | #endif |
| 9522 | char dnet_ntoa (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9523 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9524 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9525 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9526 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9527 | ; |
| 9528 | return 0; |
| 9529 | } |
| 9530 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9531 | if ac_fn_c_try_link "$LINENO" |
| 9532 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9533 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9534 | else case e in #( |
| 9535 | e) ac_cv_lib_dnet_stub_dnet_ntoa=no ;; |
| 9536 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9537 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9538 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9539 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9540 | LIBS=$ac_check_lib_save_LIBS ;; |
| 9541 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9542 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9543 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 9544 | printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| 9545 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes |
| 9546 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9547 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9548 | fi |
| 9549 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9550 | fi ;; |
| 9551 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9552 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9553 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9554 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9555 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9556 | |
| 9557 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 9558 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9559 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9560 | # needs -lnsl. |
| 9561 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9562 | # on Irix 5.2, according to T.E. Dickey. |
| 9563 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 9564 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9565 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9566 | if test "x$ac_cv_func_gethostbyname" = xyes |
| 9567 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9568 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9569 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9570 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9571 | if test $ac_cv_func_gethostbyname = no; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9572 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| 9573 | printf %s "checking for gethostbyname in -lnsl... " >&6; } |
| 9574 | if test ${ac_cv_lib_nsl_gethostbyname+y} |
| 9575 | then : |
| 9576 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9577 | else case e in #( |
| 9578 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9579 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9581 | /* end confdefs.h. */ |
| 9582 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9583 | /* Override any GCC internal prototype to avoid an error. |
| 9584 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9585 | builtin and then its argument prototype would still apply. |
| 9586 | The 'extern "C"' is for builds by C++ compilers; |
| 9587 | although this is not generally supported in C code supporting it here |
| 9588 | has little cost and some practical benefit (sr 110532). */ |
| 9589 | #ifdef __cplusplus |
| 9590 | extern "C" |
| 9591 | #endif |
| 9592 | char gethostbyname (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9593 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9594 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9595 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9596 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9597 | ; |
| 9598 | return 0; |
| 9599 | } |
| 9600 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9601 | if ac_fn_c_try_link "$LINENO" |
| 9602 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9603 | ac_cv_lib_nsl_gethostbyname=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9604 | else case e in #( |
| 9605 | e) ac_cv_lib_nsl_gethostbyname=no ;; |
| 9606 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9607 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9608 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9609 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9610 | LIBS=$ac_check_lib_save_LIBS ;; |
| 9611 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9612 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9613 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 9614 | printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 9615 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
| 9616 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9617 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9618 | fi |
| 9619 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9620 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9621 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
| 9622 | printf %s "checking for gethostbyname in -lbsd... " >&6; } |
| 9623 | if test ${ac_cv_lib_bsd_gethostbyname+y} |
| 9624 | then : |
| 9625 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9626 | else case e in #( |
| 9627 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9628 | LIBS="-lbsd $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9630 | /* end confdefs.h. */ |
| 9631 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9632 | /* Override any GCC internal prototype to avoid an error. |
| 9633 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9634 | builtin and then its argument prototype would still apply. |
| 9635 | The 'extern "C"' is for builds by C++ compilers; |
| 9636 | although this is not generally supported in C code supporting it here |
| 9637 | has little cost and some practical benefit (sr 110532). */ |
| 9638 | #ifdef __cplusplus |
| 9639 | extern "C" |
| 9640 | #endif |
| 9641 | char gethostbyname (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9642 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9643 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9644 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9645 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9646 | ; |
| 9647 | return 0; |
| 9648 | } |
| 9649 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9650 | if ac_fn_c_try_link "$LINENO" |
| 9651 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9652 | ac_cv_lib_bsd_gethostbyname=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9653 | else case e in #( |
| 9654 | e) ac_cv_lib_bsd_gethostbyname=no ;; |
| 9655 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9656 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9657 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9658 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9659 | LIBS=$ac_check_lib_save_LIBS ;; |
| 9660 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9661 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9662 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 9663 | printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; } |
| 9664 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes |
| 9665 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9666 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 9667 | fi |
| 9668 | |
| 9669 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9670 | fi |
| 9671 | |
| 9672 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 9673 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 9674 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9675 | # on later versions), says Simon Leinen: it contains gethostby* |
| 9676 | # variants that don't use the name server (or something). -lsocket |
| 9677 | # must be given before -lnsl if both are needed. We assume that |
| 9678 | # if connect needs -lnsl, so does gethostbyname. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9679 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9680 | if test "x$ac_cv_func_connect" = xyes |
| 9681 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9682 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9683 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9684 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9685 | if test $ac_cv_func_connect = no; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9686 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
| 9687 | printf %s "checking for connect in -lsocket... " >&6; } |
| 9688 | if test ${ac_cv_lib_socket_connect+y} |
| 9689 | then : |
| 9690 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9691 | else case e in #( |
| 9692 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9693 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9695 | /* end confdefs.h. */ |
| 9696 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9697 | /* Override any GCC internal prototype to avoid an error. |
| 9698 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9699 | builtin and then its argument prototype would still apply. |
| 9700 | The 'extern "C"' is for builds by C++ compilers; |
| 9701 | although this is not generally supported in C code supporting it here |
| 9702 | has little cost and some practical benefit (sr 110532). */ |
| 9703 | #ifdef __cplusplus |
| 9704 | extern "C" |
| 9705 | #endif |
| 9706 | char connect (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9707 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9708 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9709 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9710 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9711 | ; |
| 9712 | return 0; |
| 9713 | } |
| 9714 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9715 | if ac_fn_c_try_link "$LINENO" |
| 9716 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9717 | ac_cv_lib_socket_connect=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9718 | else case e in #( |
| 9719 | e) ac_cv_lib_socket_connect=no ;; |
| 9720 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9721 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9722 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9723 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9724 | LIBS=$ac_check_lib_save_LIBS ;; |
| 9725 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9726 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
| 9728 | printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } |
| 9729 | if test "x$ac_cv_lib_socket_connect" = xyes |
| 9730 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9731 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9732 | fi |
| 9733 | |
| 9734 | fi |
| 9735 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9736 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9737 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9738 | if test "x$ac_cv_func_remove" = xyes |
| 9739 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9740 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9741 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9742 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9743 | if test $ac_cv_func_remove = no; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9744 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
| 9745 | printf %s "checking for remove in -lposix... " >&6; } |
| 9746 | if test ${ac_cv_lib_posix_remove+y} |
| 9747 | then : |
| 9748 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9749 | else case e in #( |
| 9750 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9751 | LIBS="-lposix $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9753 | /* end confdefs.h. */ |
| 9754 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9755 | /* Override any GCC internal prototype to avoid an error. |
| 9756 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9757 | builtin and then its argument prototype would still apply. |
| 9758 | The 'extern "C"' is for builds by C++ compilers; |
| 9759 | although this is not generally supported in C code supporting it here |
| 9760 | has little cost and some practical benefit (sr 110532). */ |
| 9761 | #ifdef __cplusplus |
| 9762 | extern "C" |
| 9763 | #endif |
| 9764 | char remove (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9765 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9766 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9767 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9768 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9769 | ; |
| 9770 | return 0; |
| 9771 | } |
| 9772 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9773 | if ac_fn_c_try_link "$LINENO" |
| 9774 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9775 | ac_cv_lib_posix_remove=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9776 | else case e in #( |
| 9777 | e) ac_cv_lib_posix_remove=no ;; |
| 9778 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9779 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9780 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9781 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9782 | LIBS=$ac_check_lib_save_LIBS ;; |
| 9783 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9784 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
| 9786 | printf "%s\n" "$ac_cv_lib_posix_remove" >&6; } |
| 9787 | if test "x$ac_cv_lib_posix_remove" = xyes |
| 9788 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9789 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9790 | fi |
| 9791 | |
| 9792 | fi |
| 9793 | |
| 9794 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9795 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9796 | if test "x$ac_cv_func_shmat" = xyes |
| 9797 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9798 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9799 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9800 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9801 | if test $ac_cv_func_shmat = no; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
| 9803 | printf %s "checking for shmat in -lipc... " >&6; } |
| 9804 | if test ${ac_cv_lib_ipc_shmat+y} |
| 9805 | then : |
| 9806 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9807 | else case e in #( |
| 9808 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9809 | LIBS="-lipc $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9811 | /* end confdefs.h. */ |
| 9812 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9813 | /* Override any GCC internal prototype to avoid an error. |
| 9814 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9815 | builtin and then its argument prototype would still apply. |
| 9816 | The 'extern "C"' is for builds by C++ compilers; |
| 9817 | although this is not generally supported in C code supporting it here |
| 9818 | has little cost and some practical benefit (sr 110532). */ |
| 9819 | #ifdef __cplusplus |
| 9820 | extern "C" |
| 9821 | #endif |
| 9822 | char shmat (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9823 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9824 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9825 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9826 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9827 | ; |
| 9828 | return 0; |
| 9829 | } |
| 9830 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9831 | if ac_fn_c_try_link "$LINENO" |
| 9832 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9833 | ac_cv_lib_ipc_shmat=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9834 | else case e in #( |
| 9835 | e) ac_cv_lib_ipc_shmat=no ;; |
| 9836 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9837 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9838 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9839 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9840 | LIBS=$ac_check_lib_save_LIBS ;; |
| 9841 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9842 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9843 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
| 9844 | printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; } |
| 9845 | if test "x$ac_cv_lib_ipc_shmat" = xyes |
| 9846 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9847 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9848 | fi |
| 9849 | |
| 9850 | fi |
| 9851 | fi |
| 9852 | |
| 9853 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9854 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9855 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 9856 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 9857 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 9858 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 9859 | # These have to be linked with before -lX11, unlike the other |
| 9860 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9861 | # John Interrante, Karl Berry |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9862 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
| 9863 | printf %s "checking for IceConnectionNumber in -lICE... " >&6; } |
| 9864 | if test ${ac_cv_lib_ICE_IceConnectionNumber+y} |
| 9865 | then : |
| 9866 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9867 | else case e in #( |
| 9868 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9869 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9871 | /* end confdefs.h. */ |
| 9872 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9873 | /* Override any GCC internal prototype to avoid an error. |
| 9874 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9875 | builtin and then its argument prototype would still apply. |
| 9876 | The 'extern "C"' is for builds by C++ compilers; |
| 9877 | although this is not generally supported in C code supporting it here |
| 9878 | has little cost and some practical benefit (sr 110532). */ |
| 9879 | #ifdef __cplusplus |
| 9880 | extern "C" |
| 9881 | #endif |
| 9882 | char IceConnectionNumber (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9883 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9884 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9885 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9886 | return IceConnectionNumber (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9887 | ; |
| 9888 | return 0; |
| 9889 | } |
| 9890 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9891 | if ac_fn_c_try_link "$LINENO" |
| 9892 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9893 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9894 | else case e in #( |
| 9895 | e) ac_cv_lib_ICE_IceConnectionNumber=no ;; |
| 9896 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9897 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9898 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9899 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9900 | LIBS=$ac_check_lib_save_LIBS ;; |
| 9901 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9902 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9903 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 9904 | printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| 9905 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes |
| 9906 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9907 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9908 | fi |
| 9909 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9910 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9911 | |
| 9912 | fi |
| 9913 | |
| 9914 | |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 9915 | if test "$zOSUnix" = "yes"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9916 | CFLAGS="$CFLAGS -W c,dll" |
| 9917 | LDFLAGS="$LDFLAGS -W l,dll" |
| 9918 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 9919 | fi |
| 9920 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9921 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9922 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 9923 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 |
| 9925 | printf "%s\n" "Corrected X libraries to $x_libraries" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9926 | X_LIBS="$X_LIBS -L$x_libraries" |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 9927 | if test "$vim_cv_uname_output" = SunOS && |
| 9928 | echo $vim_cv_uname_r_output | grep '^5' >/dev/null; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9929 | X_LIBS="$X_LIBS -R $x_libraries" |
| 9930 | fi |
| 9931 | fi |
| 9932 | |
| 9933 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 9934 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 |
| 9936 | printf "%s\n" "Corrected X includes to $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9937 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 9938 | fi |
| 9939 | |
| 9940 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 9941 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 9942 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 9943 | |
| 9944 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 |
| 9946 | printf %s "checking if X11 header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9947 | cflags_save=$CFLAGS |
| 9948 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9950 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9951 | #include <X11/Xlib.h> |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 9952 | #include <X11/Intrinsic.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9953 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9954 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9955 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9956 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9957 | ; |
| 9958 | return 0; |
| 9959 | } |
| 9960 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9961 | if ac_fn_c_try_compile "$LINENO" |
| 9962 | then : |
| 9963 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9964 | printf "%s\n" "yes" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9965 | else case e in #( |
| 9966 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9967 | printf "%s\n" "no" >&6; }; no_x=yes ;; |
| 9968 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9969 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9970 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9971 | CFLAGS=$cflags_save |
| 9972 | |
| 9973 | if test "${no_x-no}" = yes; then |
| 9974 | with_x=no |
| 9975 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9976 | printf "%s\n" "#define HAVE_X11 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9977 | |
| 9978 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9979 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9980 | |
| 9981 | ac_save_LDFLAGS="$LDFLAGS" |
| 9982 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 9983 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 9984 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 9985 | printf %s "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } |
| 9986 | if test ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+y} |
| 9987 | then : |
| 9988 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9989 | else case e in #( |
| 9990 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9991 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 9992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9993 | /* end confdefs.h. */ |
| 9994 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9995 | /* Override any GCC internal prototype to avoid an error. |
| 9996 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 9997 | builtin and then its argument prototype would still apply. |
| 9998 | The 'extern "C"' is for builds by C++ compilers; |
| 9999 | although this is not generally supported in C code supporting it here |
| 10000 | has little cost and some practical benefit (sr 110532). */ |
| 10001 | #ifdef __cplusplus |
| 10002 | extern "C" |
| 10003 | #endif |
| 10004 | char _XdmcpAuthDoIt (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10005 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10006 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10007 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10008 | return _XdmcpAuthDoIt (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10009 | ; |
| 10010 | return 0; |
| 10011 | } |
| 10012 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10013 | if ac_fn_c_try_link "$LINENO" |
| 10014 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10015 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10016 | else case e in #( |
| 10017 | e) ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no ;; |
| 10018 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10019 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10020 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 10021 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10022 | LIBS=$ac_check_lib_save_LIBS ;; |
| 10023 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10024 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 10026 | printf "%s\n" "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } |
| 10027 | if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes |
| 10028 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10029 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10030 | fi |
| 10031 | |
| 10032 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 |
| 10034 | printf %s "checking for IceOpenConnection in -lICE... " >&6; } |
| 10035 | if test ${ac_cv_lib_ICE_IceOpenConnection+y} |
| 10036 | then : |
| 10037 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10038 | else case e in #( |
| 10039 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10040 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 10041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10042 | /* end confdefs.h. */ |
| 10043 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10044 | /* Override any GCC internal prototype to avoid an error. |
| 10045 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10046 | builtin and then its argument prototype would still apply. |
| 10047 | The 'extern "C"' is for builds by C++ compilers; |
| 10048 | although this is not generally supported in C code supporting it here |
| 10049 | has little cost and some practical benefit (sr 110532). */ |
| 10050 | #ifdef __cplusplus |
| 10051 | extern "C" |
| 10052 | #endif |
| 10053 | char IceOpenConnection (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10054 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10055 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10056 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10057 | return IceOpenConnection (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10058 | ; |
| 10059 | return 0; |
| 10060 | } |
| 10061 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10062 | if ac_fn_c_try_link "$LINENO" |
| 10063 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10064 | ac_cv_lib_ICE_IceOpenConnection=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10065 | else case e in #( |
| 10066 | e) ac_cv_lib_ICE_IceOpenConnection=no ;; |
| 10067 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10068 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10069 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 10070 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10071 | LIBS=$ac_check_lib_save_LIBS ;; |
| 10072 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10073 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 10075 | printf "%s\n" "$ac_cv_lib_ICE_IceOpenConnection" >&6; } |
| 10076 | if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes |
| 10077 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10078 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10079 | fi |
| 10080 | |
| 10081 | |
| 10082 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10083 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 10084 | printf %s "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } |
| 10085 | if test ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+y} |
| 10086 | then : |
| 10087 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10088 | else case e in #( |
| 10089 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10090 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 10091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10092 | /* end confdefs.h. */ |
| 10093 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10094 | /* Override any GCC internal prototype to avoid an error. |
| 10095 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10096 | builtin and then its argument prototype would still apply. |
| 10097 | The 'extern "C"' is for builds by C++ compilers; |
| 10098 | although this is not generally supported in C code supporting it here |
| 10099 | has little cost and some practical benefit (sr 110532). */ |
| 10100 | #ifdef __cplusplus |
| 10101 | extern "C" |
| 10102 | #endif |
| 10103 | char XpmCreatePixmapFromData (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10104 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10105 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10106 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10107 | return XpmCreatePixmapFromData (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10108 | ; |
| 10109 | return 0; |
| 10110 | } |
| 10111 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10112 | if ac_fn_c_try_link "$LINENO" |
| 10113 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10114 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10115 | else case e in #( |
| 10116 | e) ac_cv_lib_Xpm_XpmCreatePixmapFromData=no ;; |
| 10117 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10118 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10119 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 10120 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10121 | LIBS=$ac_check_lib_save_LIBS ;; |
| 10122 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10123 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10124 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 10125 | printf "%s\n" "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } |
| 10126 | if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes |
| 10127 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10128 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10129 | fi |
| 10130 | |
| 10131 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 |
| 10133 | printf %s "checking if X11 header files implicitly declare return values... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10134 | cflags_save=$CFLAGS |
Bram Moolenaar | d186459 | 2013-05-04 04:40:15 +0200 | [diff] [blame] | 10135 | if test "$GCC" = yes; then |
| 10136 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
| 10137 | else |
| 10138 | CFLAGS="$CFLAGS $X_CFLAGS" |
| 10139 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 10140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10141 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10142 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10143 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10144 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10145 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10146 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10147 | ; |
| 10148 | return 0; |
| 10149 | } |
| 10150 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10151 | if ac_fn_c_try_compile "$LINENO" |
| 10152 | then : |
| 10153 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10154 | printf "%s\n" "no" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10155 | else case e in #( |
| 10156 | e) CFLAGS="$CFLAGS -Wno-implicit-int" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 10157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10158 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10159 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10160 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10161 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10162 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10163 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10164 | ; |
| 10165 | return 0; |
| 10166 | } |
| 10167 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10168 | if ac_fn_c_try_compile "$LINENO" |
| 10169 | then : |
| 10170 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10171 | printf "%s\n" "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10172 | else case e in #( |
| 10173 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10174 | printf "%s\n" "test failed" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10175 | ;; |
| 10176 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10177 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10178 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10179 | ;; |
| 10180 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10181 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10182 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10183 | CFLAGS=$cflags_save |
| 10184 | |
| 10185 | LDFLAGS="$ac_save_LDFLAGS" |
| 10186 | |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 10187 | # The cast to long int works around a bug in the HP C Compiler |
| 10188 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10189 | # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 10190 | # This bug is HP SR number 8606223364. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10191 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 10192 | printf %s "checking size of wchar_t... " >&6; } |
| 10193 | if test ${ac_cv_sizeof_wchar_t+y} |
| 10194 | then : |
| 10195 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10196 | else case e in #( |
| 10197 | e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10198 | then : |
Bram Moolenaar | 4bdbbf7 | 2009-05-21 21:27:43 +0000 | [diff] [blame] | 10199 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10200 | else case e in #( |
| 10201 | e) if test "$ac_cv_type_wchar_t" = yes; then |
| 10202 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 10203 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 10204 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10205 | See 'config.log' for more details" "$LINENO" 5; } |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 10206 | else |
| 10207 | ac_cv_sizeof_wchar_t=0 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10208 | fi ;; |
| 10209 | esac |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 10210 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10211 | ;; |
| 10212 | esac |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 10213 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10214 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 10215 | printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; } |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 10216 | |
| 10217 | |
| 10218 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10219 | printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h |
Bram Moolenaar | 4bdbbf7 | 2009-05-21 21:27:43 +0000 | [diff] [blame] | 10220 | |
Bram Moolenaar | 4bdbbf7 | 2009-05-21 21:27:43 +0000 | [diff] [blame] | 10221 | |
Mike Gilbert | a055b44 | 2023-08-20 19:01:41 +0200 | [diff] [blame] | 10222 | if test "$ac_cv_sizeof_wchar_t" -le 2; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10223 | printf "%s\n" "#define SMALL_WCHAR_T 1" >>confdefs.h |
Bram Moolenaar | 4bdbbf7 | 2009-05-21 21:27:43 +0000 | [diff] [blame] | 10224 | |
| 10225 | fi |
| 10226 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10227 | fi |
| 10228 | fi |
| 10229 | |
Bram Moolenaar | d2a0549 | 2018-07-27 22:35:15 +0200 | [diff] [blame] | 10230 | if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then |
| 10231 | as_fn_error $? "could not configure X" "$LINENO" 5 |
| 10232 | fi |
| 10233 | |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 10234 | test "x$with_x" = xno -a "x$HAIKU" != "xyes" -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10235 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10236 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 |
| 10237 | printf %s "checking --enable-gui argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10238 | # Check whether --enable-gui was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10239 | if test ${enable_gui+y} |
| 10240 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10241 | enableval=$enable_gui; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10242 | else case e in #( |
| 10243 | e) enable_gui="auto" ;; |
| 10244 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10245 | fi |
| 10246 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10247 | |
| 10248 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 10249 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 10250 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10251 | SKIP_GTK2=YES |
Bram Moolenaar | 1858a84 | 2016-02-23 22:30:31 +0100 | [diff] [blame] | 10252 | SKIP_GTK3=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10253 | SKIP_GNOME=YES |
| 10254 | SKIP_MOTIF=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10255 | SKIP_PHOTON=YES |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 10256 | SKIP_HAIKU=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10257 | GUITYPE=NONE |
| 10258 | |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 10259 | if test "x$HAIKU" = "xyes"; then |
| 10260 | SKIP_HAIKU= |
| 10261 | case "$enable_gui_canon" in |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10262 | no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 |
| 10263 | printf "%s\n" "no GUI support" >&6; } |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 10264 | SKIP_HAIKU=YES ;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10265 | yes|"") { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 |
| 10266 | printf "%s\n" "yes - automatic GUI support" >&6; } ;; |
| 10267 | auto) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 |
| 10268 | printf "%s\n" "auto - automatic GUI support" >&6; } ;; |
| 10269 | haiku) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Haiku GUI support" >&5 |
| 10270 | printf "%s\n" "Haiku GUI support" >&6; } ;; |
| 10271 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 10272 | printf "%s\n" "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 10273 | SKIP_HAIKU=YES ;; |
| 10274 | esac |
| 10275 | elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10276 | SKIP_PHOTON= |
| 10277 | case "$enable_gui_canon" in |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10278 | no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 |
| 10279 | printf "%s\n" "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10280 | SKIP_PHOTON=YES ;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10281 | yes|""|auto) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5 |
| 10282 | printf "%s\n" "automatic GUI support" >&6; } |
Bram Moolenaar | af0839a | 2018-12-30 22:55:47 +0100 | [diff] [blame] | 10283 | gui_auto=yes ;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10284 | photon) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 |
| 10285 | printf "%s\n" "Photon GUI support" >&6; } ;; |
| 10286 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 10287 | printf "%s\n" "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10288 | SKIP_PHOTON=YES ;; |
| 10289 | esac |
| 10290 | |
Bram Moolenaar | 040f975 | 2020-08-11 23:08:48 +0200 | [diff] [blame] | 10291 | elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then |
| 10292 | case "$enable_gui_canon" in |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10293 | no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 |
| 10294 | printf "%s\n" "no GUI support" >&6; } ;; |
| 10295 | yes|"") { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 |
| 10296 | printf "%s\n" "yes - automatic GUI support" >&6; } |
Bram Moolenaar | 040f975 | 2020-08-11 23:08:48 +0200 | [diff] [blame] | 10297 | gui_auto=yes ;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10298 | auto) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto - disable GUI support for Mac OS" >&5 |
| 10299 | printf "%s\n" "auto - disable GUI support for Mac OS" >&6; } ;; |
| 10300 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 10301 | printf "%s\n" "Sorry, $enable_gui GUI is not supported" >&6; } ;; |
Bram Moolenaar | 040f975 | 2020-08-11 23:08:48 +0200 | [diff] [blame] | 10302 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10303 | else |
| 10304 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10305 | case "$enable_gui_canon" in |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10306 | no|none) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 |
| 10307 | printf "%s\n" "no GUI support" >&6; } ;; |
| 10308 | yes|""|auto) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 |
| 10309 | printf "%s\n" "yes/auto - automatic GUI support" >&6; } |
Bram Moolenaar | af0839a | 2018-12-30 22:55:47 +0100 | [diff] [blame] | 10310 | gui_auto=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10311 | SKIP_GTK2= |
Bram Moolenaar | f272ae1 | 2021-01-31 19:52:50 +0100 | [diff] [blame] | 10312 | SKIP_GTK3= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10313 | SKIP_GNOME= |
Bram Moolenaar | f52fac2 | 2022-03-11 16:01:26 +0000 | [diff] [blame] | 10314 | SKIP_MOTIF=;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10315 | gtk2) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 |
| 10316 | printf "%s\n" "GTK+ 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10317 | SKIP_GTK2=;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10318 | gnome2) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 |
| 10319 | printf "%s\n" "GNOME 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10320 | SKIP_GNOME= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10321 | SKIP_GTK2=;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10322 | gtk3) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 |
| 10323 | printf "%s\n" "GTK+ 3.x GUI support" >&6; } |
Bram Moolenaar | 9892189 | 2016-02-23 17:14:37 +0100 | [diff] [blame] | 10324 | SKIP_GTK3=;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10325 | motif) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 |
| 10326 | printf "%s\n" "Motif GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10327 | SKIP_MOTIF=;; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10328 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 10329 | printf "%s\n" "Sorry, $enable_gui GUI is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10330 | esac |
| 10331 | |
| 10332 | fi |
| 10333 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10334 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 10335 | -a "$enable_gui_canon" != "gnome2"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 |
| 10337 | printf %s "checking whether or not to look for GTK+ 2... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10338 | # Check whether --enable-gtk2-check was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10339 | if test ${enable_gtk2_check+y} |
| 10340 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10341 | enableval=$enable_gtk2_check; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10342 | else case e in #( |
| 10343 | e) enable_gtk2_check="yes" ;; |
| 10344 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10345 | fi |
| 10346 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 |
| 10348 | printf "%s\n" "$enable_gtk2_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10349 | if test "x$enable_gtk2_check" = "xno"; then |
| 10350 | SKIP_GTK2=YES |
Bram Moolenaar | 182c5be | 2010-06-25 05:37:59 +0200 | [diff] [blame] | 10351 | SKIP_GNOME=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10352 | fi |
| 10353 | fi |
| 10354 | |
Bram Moolenaar | 182c5be | 2010-06-25 05:37:59 +0200 | [diff] [blame] | 10355 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 |
| 10357 | printf %s "checking whether or not to look for GNOME... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10358 | # Check whether --enable-gnome-check was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10359 | if test ${enable_gnome_check+y} |
| 10360 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10361 | enableval=$enable_gnome_check; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10362 | else case e in #( |
| 10363 | e) enable_gnome_check="no" ;; |
| 10364 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10365 | fi |
| 10366 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10367 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 |
| 10368 | printf "%s\n" "$enable_gnome_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10369 | if test "x$enable_gnome_check" = "xno"; then |
| 10370 | SKIP_GNOME=YES |
| 10371 | fi |
| 10372 | fi |
| 10373 | |
Bram Moolenaar | 9892189 | 2016-02-23 17:14:37 +0100 | [diff] [blame] | 10374 | if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 |
| 10376 | printf %s "checking whether or not to look for GTK+ 3... " >&6; } |
Bram Moolenaar | 9892189 | 2016-02-23 17:14:37 +0100 | [diff] [blame] | 10377 | # Check whether --enable-gtk3-check was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10378 | if test ${enable_gtk3_check+y} |
| 10379 | then : |
Bram Moolenaar | 9892189 | 2016-02-23 17:14:37 +0100 | [diff] [blame] | 10380 | enableval=$enable_gtk3_check; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10381 | else case e in #( |
| 10382 | e) enable_gtk3_check="yes" ;; |
| 10383 | esac |
Bram Moolenaar | 9892189 | 2016-02-23 17:14:37 +0100 | [diff] [blame] | 10384 | fi |
| 10385 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 |
| 10387 | printf "%s\n" "$enable_gtk3_check" >&6; } |
Bram Moolenaar | 9892189 | 2016-02-23 17:14:37 +0100 | [diff] [blame] | 10388 | if test "x$enable_gtk3_check" = "xno"; then |
| 10389 | SKIP_GTK3=YES |
| 10390 | fi |
| 10391 | fi |
| 10392 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10393 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10394 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 |
| 10395 | printf %s "checking whether or not to look for Motif... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10396 | # Check whether --enable-motif-check was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10397 | if test ${enable_motif_check+y} |
| 10398 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10399 | enableval=$enable_motif_check; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10400 | else case e in #( |
| 10401 | e) enable_motif_check="yes" ;; |
| 10402 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10403 | fi |
| 10404 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10405 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 |
| 10406 | printf "%s\n" "$enable_motif_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10407 | if test "x$enable_motif_check" = "xno"; then |
| 10408 | SKIP_MOTIF=YES |
| 10409 | fi |
| 10410 | fi |
| 10411 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10412 | |
| 10413 | |
| 10414 | |
| 10415 | |
| 10416 | |
| 10417 | |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10418 | if test -z "$PKG_CONFIG"; then |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 10419 | if test -n "$ac_tool_prefix"; then |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 10420 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 10421 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10423 | printf %s "checking for $ac_word... " >&6; } |
| 10424 | if test ${ac_cv_path_PKG_CONFIG+y} |
| 10425 | then : |
| 10426 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10427 | else case e in #( |
| 10428 | e) case $PKG_CONFIG in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10429 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10430 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 10431 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10432 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10434 | for as_dir in $PATH |
| 10435 | do |
| 10436 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10437 | case $as_dir in #((( |
| 10438 | '') as_dir=./ ;; |
| 10439 | */) ;; |
| 10440 | *) as_dir=$as_dir/ ;; |
| 10441 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 10442 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10443 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10444 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 10445 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10446 | break 2 |
| 10447 | fi |
| 10448 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 10449 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10450 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10451 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10452 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10453 | esac ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10454 | esac |
| 10455 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10456 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10457 | if test -n "$PKG_CONFIG"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 10459 | printf "%s\n" "$PKG_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10460 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10461 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10462 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10463 | fi |
| 10464 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10465 | |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 10466 | fi |
| 10467 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 10468 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 10469 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 10470 | set dummy pkg-config; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10471 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10472 | printf %s "checking for $ac_word... " >&6; } |
| 10473 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
| 10474 | then : |
| 10475 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10476 | else case e in #( |
| 10477 | e) case $ac_pt_PKG_CONFIG in |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 10478 | [\\/]* | ?:[\\/]*) |
| 10479 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 10480 | ;; |
| 10481 | *) |
| 10482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10483 | for as_dir in $PATH |
| 10484 | do |
| 10485 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10486 | case $as_dir in #((( |
| 10487 | '') as_dir=./ ;; |
| 10488 | */) ;; |
| 10489 | *) as_dir=$as_dir/ ;; |
| 10490 | esac |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 10491 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10492 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10493 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 10494 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 10495 | break 2 |
| 10496 | fi |
| 10497 | done |
| 10498 | done |
| 10499 | IFS=$as_save_IFS |
| 10500 | |
| 10501 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10502 | esac ;; |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 10503 | esac |
| 10504 | fi |
| 10505 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 10506 | if test -n "$ac_pt_PKG_CONFIG"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10507 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 10508 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 10509 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10510 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10511 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 10512 | fi |
| 10513 | |
| 10514 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 10515 | PKG_CONFIG="no" |
| 10516 | else |
| 10517 | case $cross_compiling:$ac_tool_warned in |
| 10518 | yes:) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10519 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10520 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 10521 | ac_tool_warned=yes ;; |
| 10522 | esac |
| 10523 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 10524 | fi |
| 10525 | else |
| 10526 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 10527 | fi |
| 10528 | |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 10529 | fi |
| 10530 | |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10531 | if test -z "$SKIP_GTK3"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 |
| 10533 | printf %s "checking --disable-gtktest argument... " >&6; } |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 10534 | # Check whether --enable-gtktest was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10535 | if test ${enable_gtktest+y} |
| 10536 | then : |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 10537 | enableval=$enable_gtktest; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10538 | else case e in #( |
| 10539 | e) enable_gtktest=yes ;; |
| 10540 | esac |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 10541 | fi |
| 10542 | |
| 10543 | if test "x$enable_gtktest" = "xyes" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10544 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 |
| 10545 | printf "%s\n" "gtk test enabled" >&6; } |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 10546 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10547 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 |
| 10548 | printf "%s\n" "gtk test disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10549 | fi |
| 10550 | |
Bram Moolenaar | 182c5be | 2010-06-25 05:37:59 +0200 | [diff] [blame] | 10551 | if test "x$PKG_CONFIG" != "xno"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10552 | |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10553 | min_gtk_version="3.0.0" |
| 10554 | |
| 10555 | if test "$PKG_CONFIG" != "no"; then |
| 10556 | case $min_gtk_version in #( |
| 10557 | 2.*) : |
| 10558 | gtk_pkg_name="gtk+-2.0" ;; #( |
| 10559 | 3.*) : |
| 10560 | gtk_pkg_name="gtk+-3.0" ;; #( |
| 10561 | *) : |
| 10562 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 10563 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 10564 | as_fn_error $? "The configure script does not know which pkg-config name to use for GTK $min_gtk_version\" |
| 10565 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 10566 | esac |
| 10567 | |
| 10568 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config $gtk_pkg_name" >&5 |
| 10569 | printf %s "checking for pkg-config $gtk_pkg_name... " >&6; } |
| 10570 | if "$PKG_CONFIG" --exists "$gtk_pkg_name" |
| 10571 | then : |
| 10572 | |
| 10573 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 10574 | printf "%s\n" "found" >&6; } |
| 10575 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 |
| 10576 | printf %s "checking for GTK - version >= $min_gtk_version... " >&6; } |
| 10577 | GTK_CFLAGS=`$PKG_CONFIG --cflags $gtk_pkg_name` |
| 10578 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L $gtk_pkg_name` |
| 10579 | GTK_LIBS=`$PKG_CONFIG --libs $gtk_pkg_name` |
| 10580 | gtk_major_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 10581 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 10582 | gtk_minor_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 10583 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 10584 | gtk_micro_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 10585 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 10586 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 10587 | printf "%s\n" "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } |
| 10588 | |
| 10589 | else case e in #( |
| 10590 | e) |
| 10591 | GTK_CFLAGS="" |
| 10592 | GTK_LIBDIR="" |
| 10593 | GTK_LIBS="" |
| 10594 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no; consider installing your distro GTK -dev package" >&5 |
| 10595 | printf "%s\n" "no; consider installing your distro GTK -dev package" >&6; } |
| 10596 | if test "$fail_if_missing" = "yes" -a "$gui_auto" != "yes"; then |
| 10597 | as_fn_error $? "pkg-config could not find $gtk_pkg_name" "$LINENO" 5 |
| 10598 | fi |
| 10599 | ;; |
| 10600 | esac |
| 10601 | fi |
| 10602 | fi |
| 10603 | |
| 10604 | gtktest_success="yes" |
| 10605 | if test "$enable_gtktest" = "yes"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10606 | { |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10607 | ac_save_CFLAGS="$CFLAGS" |
| 10608 | ac_save_LIBS="$LIBS" |
| 10609 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 10610 | LIBS="$LIBS $GTK_LIBS" |
Bram Moolenaar | 9892189 | 2016-02-23 17:14:37 +0100 | [diff] [blame] | 10611 | |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ability to compile GTK test program" >&5 |
| 10613 | printf %s "checking ability to compile GTK test program... " >&6; } |
| 10614 | if test "$cross_compiling" = yes |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10615 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10616 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10617 | else case e in #( |
| 10618 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10619 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10620 | |
| 10621 | #include <gtk/gtk.h> |
| 10622 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10623 | #if STDC_HEADERS |
| 10624 | # include <stdlib.h> |
| 10625 | # include <stddef.h> |
| 10626 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10627 | |
| 10628 | int |
| 10629 | main () |
| 10630 | { |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10631 | int ex_major = $gtk_major_version; |
| 10632 | int ex_minor = $gtk_minor_version; |
| 10633 | int ex_micro = $gtk_micro_version; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10634 | |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10635 | #if $gtk_major_version == 2 |
| 10636 | guint ob_major = gtk_major_version; |
| 10637 | guint ob_minor = gtk_minor_version; |
| 10638 | guint ob_micro = gtk_micro_version; |
| 10639 | #else |
| 10640 | guint ob_major = gtk_get_major_version(); |
| 10641 | guint ob_minor = gtk_get_minor_version(); |
| 10642 | guint ob_micro = gtk_get_micro_version(); |
| 10643 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10644 | |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10645 | if ((ob_major > ex_major) || |
| 10646 | ((ob_major == ex_major) |
| 10647 | && (ob_minor > ex_minor)) || |
| 10648 | ((ob_major == ex_major) |
| 10649 | && (ob_minor == ex_minor) |
| 10650 | && (ob_micro >= ex_micro))) |
| 10651 | return 0; |
| 10652 | else |
| 10653 | return 1; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10654 | } |
| 10655 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10656 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10657 | if ac_fn_c_try_run "$LINENO" |
| 10658 | then : |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10659 | gtktest_success="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10660 | printf "%s\n" "yes" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10661 | else case e in #( |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10662 | e) gtktest_success="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10663 | printf "%s\n" "no" >&6; } ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10664 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10665 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 10666 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10667 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 10668 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10669 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10670 | |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10671 | CFLAGS="$ac_save_CFLAGS" |
| 10672 | LIBS="$ac_save_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10673 | } |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10674 | fi |
| 10675 | |
| 10676 | if test "$gtktest_success" = "yes"; then |
| 10677 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 10678 | GTK_LIBNAME="$GTK_LIBS" |
| 10679 | GUI_INC_LOC="$GTK_CFLAGS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10680 | else |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10681 | GTK_CFLAGS="" |
| 10682 | GTK_LIBDIR="" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10683 | GTK_LIBS="" |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10684 | if test "$fail_if_missing" = "yes" -a "$gui_auto" != "yes"; then |
| 10685 | as_fn_error $? "Failed to compile GTK test program." "$LINENO" 5 |
| 10686 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10687 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10688 | |
| 10689 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10690 | |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10691 | |
| 10692 | if test -n "$GTK_CFLAGS"; then |
| 10693 | SKIP_GTK2=YES |
| 10694 | SKIP_GNOME=YES |
Bram Moolenaar | 182c5be | 2010-06-25 05:37:59 +0200 | [diff] [blame] | 10695 | SKIP_MOTIF=YES |
| 10696 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10697 | |
Drew Vogel | 5199567 | 2025-05-28 21:13:52 +0200 | [diff] [blame] | 10698 | printf "%s\n" "#define USE_GTK3 1" >>confdefs.h |
| 10699 | |
| 10700 | fi |
| 10701 | fi |
| 10702 | fi |
| 10703 | |
| 10704 | if test -z "$SKIP_GTK2"; then |
| 10705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 |
| 10706 | printf %s "checking --disable-gtktest argument... " >&6; } |
| 10707 | # Check whether --enable-gtktest was given. |
| 10708 | if test ${enable_gtktest+y} |
| 10709 | then : |
| 10710 | enableval=$enable_gtktest; |
| 10711 | else case e in #( |
| 10712 | e) enable_gtktest=yes ;; |
| 10713 | esac |
| 10714 | fi |
| 10715 | |
| 10716 | if test "x$enable_gtktest" = "xyes" ; then |
| 10717 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 |
| 10718 | printf "%s\n" "gtk test enabled" >&6; } |
| 10719 | else |
| 10720 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 |
| 10721 | printf "%s\n" "gtk test disabled" >&6; } |
| 10722 | fi |
| 10723 | |
| 10724 | if test "x$PKG_CONFIG" != "xno"; then |
| 10725 | |
| 10726 | min_gtk_version="2.2.0" |
| 10727 | |
| 10728 | if test "$PKG_CONFIG" != "no"; then |
| 10729 | case $min_gtk_version in #( |
| 10730 | 2.*) : |
| 10731 | gtk_pkg_name="gtk+-2.0" ;; #( |
| 10732 | 3.*) : |
| 10733 | gtk_pkg_name="gtk+-3.0" ;; #( |
| 10734 | *) : |
| 10735 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 10736 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 10737 | as_fn_error $? "The configure script does not know which pkg-config name to use for GTK $min_gtk_version\" |
| 10738 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 10739 | esac |
| 10740 | |
| 10741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config $gtk_pkg_name" >&5 |
| 10742 | printf %s "checking for pkg-config $gtk_pkg_name... " >&6; } |
| 10743 | if "$PKG_CONFIG" --exists "$gtk_pkg_name" |
| 10744 | then : |
| 10745 | |
| 10746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 10747 | printf "%s\n" "found" >&6; } |
| 10748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 |
| 10749 | printf %s "checking for GTK - version >= $min_gtk_version... " >&6; } |
| 10750 | GTK_CFLAGS=`$PKG_CONFIG --cflags $gtk_pkg_name` |
| 10751 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L $gtk_pkg_name` |
| 10752 | GTK_LIBS=`$PKG_CONFIG --libs $gtk_pkg_name` |
| 10753 | gtk_major_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 10754 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 10755 | gtk_minor_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 10756 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 10757 | gtk_micro_version=`$PKG_CONFIG --modversion $gtk_pkg_name | \ |
| 10758 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 10759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 10760 | printf "%s\n" "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } |
| 10761 | |
| 10762 | else case e in #( |
| 10763 | e) |
| 10764 | GTK_CFLAGS="" |
| 10765 | GTK_LIBDIR="" |
| 10766 | GTK_LIBS="" |
| 10767 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no; consider installing your distro GTK -dev package" >&5 |
| 10768 | printf "%s\n" "no; consider installing your distro GTK -dev package" >&6; } |
| 10769 | if test "$fail_if_missing" = "yes" -a "$gui_auto" != "yes"; then |
| 10770 | as_fn_error $? "pkg-config could not find $gtk_pkg_name" "$LINENO" 5 |
| 10771 | fi |
| 10772 | ;; |
| 10773 | esac |
| 10774 | fi |
| 10775 | fi |
| 10776 | |
| 10777 | gtktest_success="yes" |
| 10778 | if test "$enable_gtktest" = "yes"; then |
| 10779 | { |
| 10780 | ac_save_CFLAGS="$CFLAGS" |
| 10781 | ac_save_LIBS="$LIBS" |
| 10782 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 10783 | LIBS="$LIBS $GTK_LIBS" |
| 10784 | |
| 10785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ability to compile GTK test program" >&5 |
| 10786 | printf %s "checking ability to compile GTK test program... " >&6; } |
| 10787 | if test "$cross_compiling" = yes |
| 10788 | then : |
| 10789 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 10790 | else case e in #( |
| 10791 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10792 | /* end confdefs.h. */ |
| 10793 | |
| 10794 | #include <gtk/gtk.h> |
| 10795 | #include <stdio.h> |
| 10796 | #if STDC_HEADERS |
| 10797 | # include <stdlib.h> |
| 10798 | # include <stddef.h> |
| 10799 | #endif |
| 10800 | |
| 10801 | int |
| 10802 | main () |
| 10803 | { |
| 10804 | int ex_major = $gtk_major_version; |
| 10805 | int ex_minor = $gtk_minor_version; |
| 10806 | int ex_micro = $gtk_micro_version; |
| 10807 | |
| 10808 | #if $gtk_major_version == 2 |
| 10809 | guint ob_major = gtk_major_version; |
| 10810 | guint ob_minor = gtk_minor_version; |
| 10811 | guint ob_micro = gtk_micro_version; |
| 10812 | #else |
| 10813 | guint ob_major = gtk_get_major_version(); |
| 10814 | guint ob_minor = gtk_get_minor_version(); |
| 10815 | guint ob_micro = gtk_get_micro_version(); |
| 10816 | #endif |
| 10817 | |
| 10818 | if ((ob_major > ex_major) || |
| 10819 | ((ob_major == ex_major) |
| 10820 | && (ob_minor > ex_minor)) || |
| 10821 | ((ob_major == ex_major) |
| 10822 | && (ob_minor == ex_minor) |
| 10823 | && (ob_micro >= ex_micro))) |
| 10824 | return 0; |
| 10825 | else |
| 10826 | return 1; |
| 10827 | } |
| 10828 | |
| 10829 | _ACEOF |
| 10830 | if ac_fn_c_try_run "$LINENO" |
| 10831 | then : |
| 10832 | gtktest_success="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10833 | printf "%s\n" "yes" >&6; } |
| 10834 | else case e in #( |
| 10835 | e) gtktest_success="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10836 | printf "%s\n" "no" >&6; } ;; |
| 10837 | esac |
| 10838 | fi |
| 10839 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10840 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 10841 | esac |
| 10842 | fi |
| 10843 | |
| 10844 | CFLAGS="$ac_save_CFLAGS" |
| 10845 | LIBS="$ac_save_LIBS" |
| 10846 | } |
| 10847 | fi |
| 10848 | |
| 10849 | if test "$gtktest_success" = "yes"; then |
| 10850 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 10851 | GTK_LIBNAME="$GTK_LIBS" |
| 10852 | GUI_INC_LOC="$GTK_CFLAGS" |
| 10853 | else |
| 10854 | GTK_CFLAGS="" |
| 10855 | GTK_LIBDIR="" |
| 10856 | GTK_LIBS="" |
| 10857 | if test "$fail_if_missing" = "yes" -a "$gui_auto" != "yes"; then |
| 10858 | as_fn_error $? "Failed to compile GTK test program." "$LINENO" 5 |
| 10859 | fi |
| 10860 | fi |
| 10861 | |
| 10862 | |
| 10863 | |
| 10864 | |
| 10865 | if test -n "$GTK_CFLAGS"; then |
| 10866 | SKIP_MOTIF=YES |
| 10867 | GUITYPE=GTK |
| 10868 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10869 | fi |
| 10870 | fi |
Bram Moolenaar | 182c5be | 2010-06-25 05:37:59 +0200 | [diff] [blame] | 10871 | if test "x$GUITYPE" = "xGTK"; then |
Bram Moolenaar | 182c5be | 2010-06-25 05:37:59 +0200 | [diff] [blame] | 10872 | if test -z "$SKIP_GNOME"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10873 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10874 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10875 | |
| 10876 | |
| 10877 | |
| 10878 | |
| 10879 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10880 | # Check whether --with-gnome-includes was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10881 | if test ${with_gnome_includes+y} |
| 10882 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10883 | withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10884 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10885 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10886 | |
| 10887 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10888 | |
| 10889 | # Check whether --with-gnome-libs was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10890 | if test ${with_gnome_libs+y} |
| 10891 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10892 | withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10893 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10894 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10895 | |
| 10896 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10897 | |
| 10898 | # Check whether --with-gnome was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10899 | if test ${with_gnome+y} |
| 10900 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10901 | withval=$with_gnome; if test x$withval = xyes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10902 | want_gnome=yes |
| 10903 | have_gnome=yes |
| 10904 | else |
| 10905 | if test "x$withval" = xno; then |
| 10906 | want_gnome=no |
| 10907 | else |
| 10908 | want_gnome=yes |
| 10909 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 10910 | CFLAGS="$CFLAGS -I$withval/include" |
| 10911 | gnome_prefix=$withval/lib |
| 10912 | fi |
| 10913 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10914 | else case e in #( |
| 10915 | e) want_gnome=yes ;; |
| 10916 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10917 | fi |
| 10918 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10919 | |
Bram Moolenaar | 182c5be | 2010-06-25 05:37:59 +0200 | [diff] [blame] | 10920 | if test "x$want_gnome" = xyes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10921 | { |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 |
| 10923 | printf %s "checking for libgnomeui-2.0... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10924 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10925 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10926 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10927 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 10928 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 10929 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 10930 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 |
| 10932 | printf %s "checking for FreeBSD... " >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 10933 | if test "$vim_cv_uname_output" = FreeBSD; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10935 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 10936 | GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 10937 | GNOME_LIBS="$GNOME_LIBS -pthread" |
| 10938 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10940 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 10941 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10942 | have_gnome=yes |
| 10943 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 10945 | printf "%s\n" "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10946 | if test "x" = xfail; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 10947 | as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10948 | fi |
| 10949 | fi |
| 10950 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10951 | fi |
| 10952 | |
Bram Moolenaar | 182c5be | 2010-06-25 05:37:59 +0200 | [diff] [blame] | 10953 | if test "x$have_gnome" = xyes ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10954 | printf "%s\n" "#define FEAT_GUI_GNOME 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10955 | |
Bram Moolenaar | 182c5be | 2010-06-25 05:37:59 +0200 | [diff] [blame] | 10956 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 10957 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10958 | fi |
| 10959 | } |
| 10960 | fi |
| 10961 | fi |
| 10962 | fi |
| 10963 | |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 10964 | if test "x$GUITYPE" = "xGTK"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10965 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 |
| 10966 | printf %s "checking version of Gdk-Pixbuf... " >&6; } |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 10967 | gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` |
| 10968 | if test "x$gdk_pixbuf_version" != x ; then |
| 10969 | gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ |
| 10970 | sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` |
| 10971 | if test "x$gdk_pixbuf_version_minor" != x -a \ |
Bram Moolenaar | 33c31d5 | 2016-02-22 21:07:06 +0100 | [diff] [blame] | 10972 | $gdk_pixbuf_version_minor -ge 31 ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK." >&5 |
| 10974 | printf "%s\n" "OK." >&6; } |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 10975 | # Extract the first word of "glib-compile-resources", so it can be a program name with args. |
| 10976 | set dummy glib-compile-resources; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10978 | printf %s "checking for $ac_word... " >&6; } |
| 10979 | if test ${ac_cv_path_GLIB_COMPILE_RESOURCES+y} |
| 10980 | then : |
| 10981 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 10982 | else case e in #( |
| 10983 | e) case $GLIB_COMPILE_RESOURCES in |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 10984 | [\\/]* | ?:[\\/]*) |
| 10985 | ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. |
| 10986 | ;; |
| 10987 | *) |
| 10988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10989 | for as_dir in $PATH |
| 10990 | do |
| 10991 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10992 | case $as_dir in #((( |
| 10993 | '') as_dir=./ ;; |
| 10994 | */) ;; |
| 10995 | *) as_dir=$as_dir/ ;; |
| 10996 | esac |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 10997 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 10998 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10999 | ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir$ac_word$ac_exec_ext" |
| 11000 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 11001 | break 2 |
| 11002 | fi |
| 11003 | done |
| 11004 | done |
| 11005 | IFS=$as_save_IFS |
| 11006 | |
| 11007 | test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" |
| 11008 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11009 | esac ;; |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 11010 | esac |
| 11011 | fi |
| 11012 | GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES |
| 11013 | if test -n "$GLIB_COMPILE_RESOURCES"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 |
| 11015 | printf "%s\n" "$GLIB_COMPILE_RESOURCES" >&6; } |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 11016 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11018 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 11019 | fi |
| 11020 | |
| 11021 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11022 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 |
| 11023 | printf %s "checking glib-compile-resources... " >&6; } |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 11024 | if test "x$GLIB_COMPILE_RESOURCES" = xno ; then |
Bram Moolenaar | 33c31d5 | 2016-02-22 21:07:06 +0100 | [diff] [blame] | 11025 | GLIB_COMPILE_RESOURCES="" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 |
| 11027 | printf "%s\n" "cannot be found in PATH." >&6; } |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 11028 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: usable." >&5 |
| 11030 | printf "%s\n" "usable." >&6; } |
| 11031 | printf "%s\n" "#define USE_GRESOURCE 1" >>confdefs.h |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 11032 | |
Bram Moolenaar | 33c31d5 | 2016-02-22 21:07:06 +0100 | [diff] [blame] | 11033 | GRESOURCE_SRC="auto/gui_gtk_gresources.c" |
| 11034 | GRESOURCE_OBJ="objects/gui_gtk_gresources.o" |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 11035 | fi |
| 11036 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11037 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 |
| 11038 | printf "%s\n" "not usable." >&6; } |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 11039 | fi |
| 11040 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11041 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 |
| 11042 | printf "%s\n" "cannot obtain from pkg_config." >&6; } |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 11043 | fi |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11044 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5 |
| 11046 | printf %s "checking --disable-icon-cache-update argument... " >&6; } |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11047 | # Check whether --enable-icon_cache_update was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11048 | if test ${enable_icon_cache_update+y} |
| 11049 | then : |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11050 | enableval=$enable_icon_cache_update; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11051 | else case e in #( |
| 11052 | e) enable_icon_cache_update="yes" ;; |
| 11053 | esac |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 11054 | fi |
| 11055 | |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11056 | if test "$enable_icon_cache_update" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11057 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 11058 | printf "%s\n" "not set" >&6; } |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11059 | # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args. |
| 11060 | set dummy gtk-update-icon-cache; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11062 | printf %s "checking for $ac_word... " >&6; } |
| 11063 | if test ${ac_cv_path_GTK_UPDATE_ICON_CACHE+y} |
| 11064 | then : |
| 11065 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11066 | else case e in #( |
| 11067 | e) case $GTK_UPDATE_ICON_CACHE in |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11068 | [\\/]* | ?:[\\/]*) |
| 11069 | ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path. |
| 11070 | ;; |
| 11071 | *) |
| 11072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11073 | for as_dir in $PATH |
| 11074 | do |
| 11075 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11076 | case $as_dir in #((( |
| 11077 | '') as_dir=./ ;; |
| 11078 | */) ;; |
| 11079 | *) as_dir=$as_dir/ ;; |
| 11080 | esac |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11081 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11082 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11083 | ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir$ac_word$ac_exec_ext" |
| 11084 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11085 | break 2 |
| 11086 | fi |
| 11087 | done |
| 11088 | done |
| 11089 | IFS=$as_save_IFS |
| 11090 | |
| 11091 | test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no" |
| 11092 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11093 | esac ;; |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11094 | esac |
| 11095 | fi |
| 11096 | GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE |
| 11097 | if test -n "$GTK_UPDATE_ICON_CACHE"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5 |
| 11099 | printf "%s\n" "$GTK_UPDATE_ICON_CACHE" >&6; } |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11100 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11102 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11103 | fi |
| 11104 | |
| 11105 | |
| 11106 | if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 |
| 11108 | printf "%s\n" "not found in PATH." >&6; } |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11109 | fi |
| 11110 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 |
| 11112 | printf "%s\n" "update disabled" >&6; } |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11113 | fi |
| 11114 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11115 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5 |
| 11116 | printf %s "checking --disable-desktop-database-update argument... " >&6; } |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11117 | # Check whether --enable-desktop_database_update was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11118 | if test ${enable_desktop_database_update+y} |
| 11119 | then : |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11120 | enableval=$enable_desktop_database_update; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11121 | else case e in #( |
| 11122 | e) enable_desktop_database_update="yes" ;; |
| 11123 | esac |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11124 | fi |
| 11125 | |
| 11126 | if test "$enable_desktop_database_update" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 11128 | printf "%s\n" "not set" >&6; } |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11129 | # Extract the first word of "update-desktop-database", so it can be a program name with args. |
| 11130 | set dummy update-desktop-database; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11131 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11132 | printf %s "checking for $ac_word... " >&6; } |
| 11133 | if test ${ac_cv_path_UPDATE_DESKTOP_DATABASE+y} |
| 11134 | then : |
| 11135 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11136 | else case e in #( |
| 11137 | e) case $UPDATE_DESKTOP_DATABASE in |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11138 | [\\/]* | ?:[\\/]*) |
| 11139 | ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. |
| 11140 | ;; |
| 11141 | *) |
| 11142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11143 | for as_dir in $PATH |
| 11144 | do |
| 11145 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11146 | case $as_dir in #((( |
| 11147 | '') as_dir=./ ;; |
| 11148 | */) ;; |
| 11149 | *) as_dir=$as_dir/ ;; |
| 11150 | esac |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11151 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11152 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11153 | ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir$ac_word$ac_exec_ext" |
| 11154 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11155 | break 2 |
| 11156 | fi |
| 11157 | done |
| 11158 | done |
| 11159 | IFS=$as_save_IFS |
| 11160 | |
| 11161 | test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" |
| 11162 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11163 | esac ;; |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11164 | esac |
| 11165 | fi |
| 11166 | UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE |
| 11167 | if test -n "$UPDATE_DESKTOP_DATABASE"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 |
| 11169 | printf "%s\n" "$UPDATE_DESKTOP_DATABASE" >&6; } |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11170 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11171 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11172 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11173 | fi |
| 11174 | |
| 11175 | |
| 11176 | if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 |
| 11178 | printf "%s\n" "not found in PATH." >&6; } |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11179 | fi |
| 11180 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11181 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 |
| 11182 | printf "%s\n" "update disabled" >&6; } |
Bram Moolenaar | 4adfaab | 2016-04-21 18:20:11 +0200 | [diff] [blame] | 11183 | fi |
| 11184 | fi |
| 11185 | |
| 11186 | |
| 11187 | |
Bram Moolenaar | 36e294c | 2015-12-29 18:55:46 +0100 | [diff] [blame] | 11188 | |
| 11189 | |
| 11190 | |
| 11191 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11192 | if test -z "$SKIP_MOTIF"; then |
| 11193 | gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX" |
| 11194 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 11195 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 |
| 11197 | printf %s "checking for location of Motif GUI includes... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11198 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 11199 | GUI_INC_LOC= |
| 11200 | for try in $gui_includes; do |
| 11201 | if test -f "$try/Xm/Xm.h"; then |
| 11202 | GUI_INC_LOC=$try |
| 11203 | fi |
| 11204 | done |
| 11205 | if test -n "$GUI_INC_LOC"; then |
| 11206 | if test "$GUI_INC_LOC" = /usr/include; then |
| 11207 | GUI_INC_LOC= |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11208 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 |
| 11209 | printf "%s\n" "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11210 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 |
| 11212 | printf "%s\n" "$GUI_INC_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11213 | fi |
| 11214 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11215 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 |
| 11216 | printf "%s\n" "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11217 | SKIP_MOTIF=YES |
| 11218 | fi |
| 11219 | fi |
| 11220 | |
| 11221 | |
| 11222 | if test -z "$SKIP_MOTIF"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 |
| 11224 | printf %s "checking --with-motif-lib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11225 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11226 | # Check whether --with-motif-lib was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11227 | if test ${with_motif_lib+y} |
| 11228 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11229 | withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" |
| 11230 | fi |
| 11231 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11232 | |
| 11233 | if test -n "$MOTIF_LIBNAME"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 |
| 11235 | printf "%s\n" "$MOTIF_LIBNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11236 | GUI_LIB_LOC= |
| 11237 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11239 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11240 | |
| 11241 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 11242 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 |
| 11244 | printf %s "checking for location of Motif GUI libs... " >&6; } |
Bram Moolenaar | 01967f5 | 2023-04-12 16:24:03 +0100 | [diff] [blame] | 11245 | gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib64 /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11246 | GUI_LIB_LOC= |
| 11247 | for try in $gui_libs; do |
Kelvin Lee | b471690 | 2022-04-04 17:20:01 +0100 | [diff] [blame] | 11248 | for libtry in "$try"/libXm.a "$try"/libXm.dll.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11249 | if test -f "$libtry"; then |
| 11250 | GUI_LIB_LOC=$try |
| 11251 | fi |
| 11252 | done |
| 11253 | done |
| 11254 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 01967f5 | 2023-04-12 16:24:03 +0100 | [diff] [blame] | 11255 | if test "$GUI_LIB_LOC" = /usr/lib \ |
| 11256 | -o "$GUI_LIB_LOC" = /usr/lib64 \ |
Bram Moolenaar | 6324c3b | 2013-06-17 20:27:18 +0200 | [diff] [blame] | 11257 | -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ |
| 11258 | -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11259 | GUI_LIB_LOC= |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 |
| 11261 | printf "%s\n" "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11262 | else |
| 11263 | if test -n "$GUI_LIB_LOC"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11264 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 |
| 11265 | printf "%s\n" "$GUI_LIB_LOC" >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 11266 | if test "$vim_cv_uname_output" = SunOS && |
| 11267 | echo $vim_cv_uname_r_output | grep '^5' >/dev/null; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11268 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 11269 | fi |
| 11270 | fi |
| 11271 | fi |
| 11272 | MOTIF_LIBNAME=-lXm |
| 11273 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11274 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 |
| 11275 | printf "%s\n" "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11276 | SKIP_MOTIF=YES |
| 11277 | fi |
| 11278 | fi |
| 11279 | fi |
| 11280 | |
| 11281 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11282 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11283 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11284 | fi |
| 11285 | |
Bram Moolenaar | e2adcf3 | 2022-03-12 11:57:25 +0000 | [diff] [blame] | 11286 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11287 | if test -n "$GUI_INC_LOC"; then |
| 11288 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 11289 | fi |
| 11290 | if test -n "$GUI_LIB_LOC"; then |
| 11291 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 11292 | fi |
| 11293 | |
| 11294 | ldflags_save=$LDFLAGS |
| 11295 | LDFLAGS="$X_LIBS $LDFLAGS" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11296 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 |
| 11297 | printf %s "checking for XShapeQueryExtension in -lXext... " >&6; } |
| 11298 | if test ${ac_cv_lib_Xext_XShapeQueryExtension+y} |
| 11299 | then : |
| 11300 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11301 | else case e in #( |
| 11302 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11303 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11305 | /* end confdefs.h. */ |
| 11306 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11307 | /* Override any GCC internal prototype to avoid an error. |
| 11308 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11309 | builtin and then its argument prototype would still apply. |
| 11310 | The 'extern "C"' is for builds by C++ compilers; |
| 11311 | although this is not generally supported in C code supporting it here |
| 11312 | has little cost and some practical benefit (sr 110532). */ |
| 11313 | #ifdef __cplusplus |
| 11314 | extern "C" |
| 11315 | #endif |
| 11316 | char XShapeQueryExtension (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11317 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11318 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11319 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11320 | return XShapeQueryExtension (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11321 | ; |
| 11322 | return 0; |
| 11323 | } |
| 11324 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11325 | if ac_fn_c_try_link "$LINENO" |
| 11326 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11327 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11328 | else case e in #( |
| 11329 | e) ac_cv_lib_Xext_XShapeQueryExtension=no ;; |
| 11330 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11331 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11332 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11333 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11334 | LIBS=$ac_check_lib_save_LIBS ;; |
| 11335 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11336 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11337 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 11338 | printf "%s\n" "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
| 11339 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes |
| 11340 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11341 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11342 | fi |
| 11343 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 |
| 11345 | printf %s "checking for wslen in -lw... " >&6; } |
| 11346 | if test ${ac_cv_lib_w_wslen+y} |
| 11347 | then : |
| 11348 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11349 | else case e in #( |
| 11350 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11351 | LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11353 | /* end confdefs.h. */ |
| 11354 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11355 | /* Override any GCC internal prototype to avoid an error. |
| 11356 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11357 | builtin and then its argument prototype would still apply. |
| 11358 | The 'extern "C"' is for builds by C++ compilers; |
| 11359 | although this is not generally supported in C code supporting it here |
| 11360 | has little cost and some practical benefit (sr 110532). */ |
| 11361 | #ifdef __cplusplus |
| 11362 | extern "C" |
| 11363 | #endif |
| 11364 | char wslen (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11365 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11366 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11367 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11368 | return wslen (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11369 | ; |
| 11370 | return 0; |
| 11371 | } |
| 11372 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11373 | if ac_fn_c_try_link "$LINENO" |
| 11374 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11375 | ac_cv_lib_w_wslen=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11376 | else case e in #( |
| 11377 | e) ac_cv_lib_w_wslen=no ;; |
| 11378 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11379 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11380 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11381 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11382 | LIBS=$ac_check_lib_save_LIBS ;; |
| 11383 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11384 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 |
| 11386 | printf "%s\n" "$ac_cv_lib_w_wslen" >&6; } |
| 11387 | if test "x$ac_cv_lib_w_wslen" = xyes |
| 11388 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11389 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11390 | fi |
| 11391 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11392 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 |
| 11393 | printf %s "checking for dlsym in -ldl... " >&6; } |
| 11394 | if test ${ac_cv_lib_dl_dlsym+y} |
| 11395 | then : |
| 11396 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11397 | else case e in #( |
| 11398 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11399 | LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11401 | /* end confdefs.h. */ |
| 11402 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11403 | /* Override any GCC internal prototype to avoid an error. |
| 11404 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11405 | builtin and then its argument prototype would still apply. |
| 11406 | The 'extern "C"' is for builds by C++ compilers; |
| 11407 | although this is not generally supported in C code supporting it here |
| 11408 | has little cost and some practical benefit (sr 110532). */ |
| 11409 | #ifdef __cplusplus |
| 11410 | extern "C" |
| 11411 | #endif |
| 11412 | char dlsym (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11413 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11414 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11415 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11416 | return dlsym (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11417 | ; |
| 11418 | return 0; |
| 11419 | } |
| 11420 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11421 | if ac_fn_c_try_link "$LINENO" |
| 11422 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11423 | ac_cv_lib_dl_dlsym=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11424 | else case e in #( |
| 11425 | e) ac_cv_lib_dl_dlsym=no ;; |
| 11426 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11427 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11428 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11429 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11430 | LIBS=$ac_check_lib_save_LIBS ;; |
| 11431 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11432 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 |
| 11434 | printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; } |
| 11435 | if test "x$ac_cv_lib_dl_dlsym" = xyes |
| 11436 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11437 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11438 | fi |
| 11439 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 11441 | printf %s "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } |
| 11442 | if test ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+y} |
| 11443 | then : |
| 11444 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11445 | else case e in #( |
| 11446 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11447 | LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11449 | /* end confdefs.h. */ |
| 11450 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11451 | /* Override any GCC internal prototype to avoid an error. |
| 11452 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11453 | builtin and then its argument prototype would still apply. |
| 11454 | The 'extern "C"' is for builds by C++ compilers; |
| 11455 | although this is not generally supported in C code supporting it here |
| 11456 | has little cost and some practical benefit (sr 110532). */ |
| 11457 | #ifdef __cplusplus |
| 11458 | extern "C" |
| 11459 | #endif |
| 11460 | char XmuCreateStippledPixmap (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11461 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11462 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11463 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11464 | return XmuCreateStippledPixmap (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11465 | ; |
| 11466 | return 0; |
| 11467 | } |
| 11468 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11469 | if ac_fn_c_try_link "$LINENO" |
| 11470 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11471 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11472 | else case e in #( |
| 11473 | e) ac_cv_lib_Xmu_XmuCreateStippledPixmap=no ;; |
| 11474 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11475 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11476 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11477 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11478 | LIBS=$ac_check_lib_save_LIBS ;; |
| 11479 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11480 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11481 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 11482 | printf "%s\n" "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } |
| 11483 | if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes |
| 11484 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11485 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11486 | fi |
| 11487 | |
| 11488 | if test -z "$SKIP_MOTIF"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11489 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 |
| 11490 | printf %s "checking for XpEndJob in -lXp... " >&6; } |
| 11491 | if test ${ac_cv_lib_Xp_XpEndJob+y} |
| 11492 | then : |
| 11493 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11494 | else case e in #( |
| 11495 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11496 | LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11498 | /* end confdefs.h. */ |
| 11499 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11500 | /* Override any GCC internal prototype to avoid an error. |
| 11501 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11502 | builtin and then its argument prototype would still apply. |
| 11503 | The 'extern "C"' is for builds by C++ compilers; |
| 11504 | although this is not generally supported in C code supporting it here |
| 11505 | has little cost and some practical benefit (sr 110532). */ |
| 11506 | #ifdef __cplusplus |
| 11507 | extern "C" |
| 11508 | #endif |
| 11509 | char XpEndJob (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11510 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11511 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11512 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11513 | return XpEndJob (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11514 | ; |
| 11515 | return 0; |
| 11516 | } |
| 11517 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11518 | if ac_fn_c_try_link "$LINENO" |
| 11519 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11520 | ac_cv_lib_Xp_XpEndJob=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11521 | else case e in #( |
| 11522 | e) ac_cv_lib_Xp_XpEndJob=no ;; |
| 11523 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11524 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11525 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11526 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11527 | LIBS=$ac_check_lib_save_LIBS ;; |
| 11528 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11529 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11530 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 11531 | printf "%s\n" "$ac_cv_lib_Xp_XpEndJob" >&6; } |
| 11532 | if test "x$ac_cv_lib_Xp_XpEndJob" = xyes |
| 11533 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11534 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11535 | fi |
| 11536 | |
| 11537 | fi |
| 11538 | LDFLAGS=$ldflags_save |
| 11539 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11540 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 |
| 11541 | printf %s "checking for extra X11 defines... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11542 | NARROW_PROTO= |
| 11543 | rm -fr conftestdir |
| 11544 | if mkdir conftestdir; then |
| 11545 | cd conftestdir |
| 11546 | cat > Imakefile <<'EOF' |
| 11547 | acfindx: |
| 11548 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 11549 | EOF |
| 11550 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 11551 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 11552 | fi |
| 11553 | cd .. |
| 11554 | rm -fr conftestdir |
| 11555 | fi |
| 11556 | if test -z "$NARROW_PROTO"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11558 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11559 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11560 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 |
| 11561 | printf "%s\n" "$NARROW_PROTO" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11562 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11563 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11564 | fi |
| 11565 | |
| 11566 | if test "$enable_xsmp" = "yes"; then |
| 11567 | cppflags_save=$CPPFLAGS |
| 11568 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11569 | ac_fn_c_check_header_compile "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" |
| 11570 | if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes |
| 11571 | then : |
| 11572 | printf "%s\n" "#define HAVE_X11_SM_SMLIB_H 1" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11573 | |
| 11574 | fi |
| 11575 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11576 | CPPFLAGS=$cppflags_save |
| 11577 | fi |
| 11578 | |
| 11579 | |
Bram Moolenaar | f52fac2 | 2022-03-11 16:01:26 +0000 | [diff] [blame] | 11580 | if test -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11581 | cppflags_save=$CPPFLAGS |
| 11582 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11583 | ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" |
| 11584 | if test "x$ac_cv_header_X11_xpm_h" = xyes |
| 11585 | then : |
| 11586 | printf "%s\n" "#define HAVE_X11_XPM_H 1" >>confdefs.h |
| 11587 | |
| 11588 | fi |
| 11589 | ac_fn_c_check_header_compile "$LINENO" "X11/Sunkeysym.h" "ac_cv_header_X11_Sunkeysym_h" "$ac_includes_default" |
| 11590 | if test "x$ac_cv_header_X11_Sunkeysym_h" = xyes |
| 11591 | then : |
| 11592 | printf "%s\n" "#define HAVE_X11_SUNKEYSYM_H 1" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11593 | |
| 11594 | fi |
| 11595 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11596 | |
| 11597 | if test ! "$enable_xim" = "no"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11598 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 |
| 11599 | printf %s "checking for XIMText in X11/Xlib.h... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11601 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11602 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11603 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11605 | $EGREP_TRADITIONAL "XIMText" >/dev/null 2>&1 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11606 | then : |
| 11607 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11608 | printf "%s\n" "yes" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11609 | else case e in #( |
| 11610 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 |
| 11611 | printf "%s\n" "no; xim has been disabled" >&6; }; enable_xim="no" ;; |
| 11612 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11613 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11614 | rm -rf conftest* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11615 | |
| 11616 | fi |
| 11617 | CPPFLAGS=$cppflags_save |
| 11618 | |
Bram Moolenaar | 5461258 | 2019-11-21 17:13:31 +0100 | [diff] [blame] | 11619 | if test "$enable_xim" = "auto" -a "x$GUITYPE" != "xNONE" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 |
| 11621 | printf "%s\n" "X GUI selected; xim has been enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11622 | enable_xim="yes" |
| 11623 | fi |
| 11624 | fi |
| 11625 | |
Bram Moolenaar | f52fac2 | 2022-03-11 16:01:26 +0000 | [diff] [blame] | 11626 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11627 | cppflags_save=$CPPFLAGS |
| 11628 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11629 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 |
| 11630 | printf %s "checking for X11/Xmu/Editres.h... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11632 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 11633 | |
| 11634 | #include <X11/Intrinsic.h> |
| 11635 | #include <X11/Xmu/Editres.h> |
| 11636 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11637 | main (void) |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 11638 | { |
| 11639 | int i; i = 0; |
| 11640 | ; |
| 11641 | return 0; |
| 11642 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11643 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11644 | if ac_fn_c_try_compile "$LINENO" |
| 11645 | then : |
| 11646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11647 | printf "%s\n" "yes" >&6; } |
| 11648 | printf "%s\n" "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 11649 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11650 | else case e in #( |
| 11651 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11652 | printf "%s\n" "no" >&6; } ;; |
| 11653 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11654 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11655 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11656 | CPPFLAGS=$cppflags_save |
| 11657 | fi |
| 11658 | |
| 11659 | if test -z "$SKIP_MOTIF"; then |
| 11660 | cppflags_save=$CPPFLAGS |
| 11661 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 77c1935 | 2012-06-13 19:19:41 +0200 | [diff] [blame] | 11662 | if test "$zOSUnix" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11663 | ac_fn_c_check_header_compile "$LINENO" "Xm/Xm.h" "ac_cv_header_Xm_Xm_h" "$ac_includes_default" |
| 11664 | if test "x$ac_cv_header_Xm_Xm_h" = xyes |
| 11665 | then : |
| 11666 | printf "%s\n" "#define HAVE_XM_XM_H 1" >>confdefs.h |
Bram Moolenaar | 1004b3d | 2022-06-05 19:51:55 +0100 | [diff] [blame] | 11667 | |
| 11668 | fi |
| 11669 | |
Bram Moolenaar | 77c1935 | 2012-06-13 19:19:41 +0200 | [diff] [blame] | 11670 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11671 | ac_fn_c_check_header_compile "$LINENO" "Xm/Xm.h" "ac_cv_header_Xm_Xm_h" "$ac_includes_default" |
| 11672 | if test "x$ac_cv_header_Xm_Xm_h" = xyes |
| 11673 | then : |
| 11674 | printf "%s\n" "#define HAVE_XM_XM_H 1" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11675 | |
| 11676 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11677 | ac_fn_c_check_header_compile "$LINENO" "Xm/XpmP.h" "ac_cv_header_Xm_XpmP_h" "$ac_includes_default" |
| 11678 | if test "x$ac_cv_header_Xm_XpmP_h" = xyes |
| 11679 | then : |
| 11680 | printf "%s\n" "#define HAVE_XM_XPMP_H 1" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11681 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11682 | fi |
| 11683 | ac_fn_c_check_header_compile "$LINENO" "Xm/JoinSideT.h" "ac_cv_header_Xm_JoinSideT_h" "$ac_includes_default" |
| 11684 | if test "x$ac_cv_header_Xm_JoinSideT_h" = xyes |
| 11685 | then : |
| 11686 | printf "%s\n" "#define HAVE_XM_JOINSIDET_H 1" >>confdefs.h |
| 11687 | |
| 11688 | fi |
| 11689 | ac_fn_c_check_header_compile "$LINENO" "Xm/TraitP.h" "ac_cv_header_Xm_TraitP_h" "$ac_includes_default" |
| 11690 | if test "x$ac_cv_header_Xm_TraitP_h" = xyes |
| 11691 | then : |
| 11692 | printf "%s\n" "#define HAVE_XM_TRAITP_H 1" >>confdefs.h |
| 11693 | |
| 11694 | fi |
| 11695 | ac_fn_c_check_header_compile "$LINENO" "Xm/Manager.h" "ac_cv_header_Xm_Manager_h" "$ac_includes_default" |
| 11696 | if test "x$ac_cv_header_Xm_Manager_h" = xyes |
| 11697 | then : |
| 11698 | printf "%s\n" "#define HAVE_XM_MANAGER_H 1" >>confdefs.h |
| 11699 | |
| 11700 | fi |
| 11701 | ac_fn_c_check_header_compile "$LINENO" "Xm/UnhighlightT.h" "ac_cv_header_Xm_UnhighlightT_h" "$ac_includes_default" |
| 11702 | if test "x$ac_cv_header_Xm_UnhighlightT_h" = xyes |
| 11703 | then : |
| 11704 | printf "%s\n" "#define HAVE_XM_UNHIGHLIGHTT_H 1" >>confdefs.h |
| 11705 | |
| 11706 | fi |
| 11707 | ac_fn_c_check_header_compile "$LINENO" "Xm/Notebook.h" "ac_cv_header_Xm_Notebook_h" "$ac_includes_default" |
| 11708 | if test "x$ac_cv_header_Xm_Notebook_h" = xyes |
| 11709 | then : |
| 11710 | printf "%s\n" "#define HAVE_XM_NOTEBOOK_H 1" >>confdefs.h |
| 11711 | |
| 11712 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11713 | |
Bram Moolenaar | 1004b3d | 2022-06-05 19:51:55 +0100 | [diff] [blame] | 11714 | fi |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 11715 | |
Bram Moolenaar | 77c1935 | 2012-06-13 19:19:41 +0200 | [diff] [blame] | 11716 | if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11717 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 |
| 11718 | printf %s "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 11720 | /* end confdefs.h. */ |
| 11721 | #include <Xm/XpmP.h> |
| 11722 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11723 | main (void) |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 11724 | { |
| 11725 | XpmAttributes_21 attr; |
| 11726 | ; |
| 11727 | return 0; |
| 11728 | } |
| 11729 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11730 | if ac_fn_c_try_compile "$LINENO" |
| 11731 | then : |
| 11732 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11733 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 11734 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11735 | else case e in #( |
| 11736 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11737 | printf "%s\n" "no" >&6; }; printf "%s\n" "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 11738 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11739 | ;; |
| 11740 | esac |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 11741 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11742 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 11743 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11744 | printf "%s\n" "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 11745 | |
| 11746 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11747 | CPPFLAGS=$cppflags_save |
| 11748 | fi |
| 11749 | |
| 11750 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 |
| 11752 | printf "%s\n" "no GUI selected; xim has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11753 | enable_xim="no" |
| 11754 | fi |
| 11755 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 |
| 11757 | printf "%s\n" "no GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11758 | enable_fontset="no" |
| 11759 | fi |
Bram Moolenaar | 182c5be | 2010-06-25 05:37:59 +0200 | [diff] [blame] | 11760 | if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11761 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 11762 | printf "%s\n" "GTK+ 2 GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11763 | enable_fontset="no" |
| 11764 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11765 | |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 11766 | if test -z "$SKIP_HAIKU"; then |
| 11767 | GUITYPE=HAIKUGUI |
| 11768 | fi |
| 11769 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11770 | if test -z "$SKIP_PHOTON"; then |
| 11771 | GUITYPE=PHOTONGUI |
| 11772 | fi |
| 11773 | |
| 11774 | |
| 11775 | |
| 11776 | |
| 11777 | |
| 11778 | |
| 11779 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 11780 | as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11781 | fi |
| 11782 | |
| 11783 | if test "$enable_xim" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11784 | printf "%s\n" "#define FEAT_XIM 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11785 | |
| 11786 | fi |
| 11787 | if test "$enable_fontset" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11788 | printf "%s\n" "#define FEAT_XFONTSET 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11789 | |
| 11790 | fi |
| 11791 | |
| 11792 | |
| 11793 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5 |
| 11795 | printf %s "checking for /proc link to executable... " >&6; } |
Bram Moolenaar | 5f69fee | 2017-03-09 11:58:40 +0100 | [diff] [blame] | 11796 | if test -L "/proc/self/exe"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5 |
| 11798 | printf "%s\n" "/proc/self/exe" >&6; } |
| 11799 | printf "%s\n" "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h |
Bram Moolenaar | f3757f0 | 2017-03-16 15:13:45 +0100 | [diff] [blame] | 11800 | |
| 11801 | elif test -L "/proc/self/path/a.out"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5 |
| 11803 | printf "%s\n" "/proc/self/path/a.out" >&6; } |
| 11804 | printf "%s\n" "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h |
Bram Moolenaar | f3757f0 | 2017-03-16 15:13:45 +0100 | [diff] [blame] | 11805 | |
| 11806 | elif test -L "/proc/curproc/file"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5 |
| 11808 | printf "%s\n" "/proc/curproc/file" >&6; } |
| 11809 | printf "%s\n" "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h |
Bram Moolenaar | 5f69fee | 2017-03-09 11:58:40 +0100 | [diff] [blame] | 11810 | |
| 11811 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11812 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11813 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 5f69fee | 2017-03-09 11:58:40 +0100 | [diff] [blame] | 11814 | fi |
| 11815 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 |
| 11817 | printf %s "checking for CYGWIN or MSYS environment... " >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 11818 | case $vim_cv_uname_output in |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11819 | CYGWIN*|MSYS*) CYGWIN=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11820 | printf "%s\n" "yes" >&6; } |
| 11821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 |
| 11822 | printf %s "checking for CYGWIN clipboard support... " >&6; } |
Bram Moolenaar | 693e40c | 2013-02-26 14:56:42 +0100 | [diff] [blame] | 11823 | if test "x$with_x" = "xno" ; then |
| 11824 | OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11826 | printf "%s\n" "yes" >&6; } |
| 11827 | printf "%s\n" "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h |
Bram Moolenaar | 693e40c | 2013-02-26 14:56:42 +0100 | [diff] [blame] | 11828 | |
| 11829 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11830 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 |
| 11831 | printf "%s\n" "no - using X11" >&6; } |
Bram Moolenaar | 693e40c | 2013-02-26 14:56:42 +0100 | [diff] [blame] | 11832 | fi ;; |
| 11833 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11834 | *) CYGWIN=no; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11835 | printf "%s\n" "no" >&6; };; |
Bram Moolenaar | 693e40c | 2013-02-26 14:56:42 +0100 | [diff] [blame] | 11836 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11837 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11838 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 |
| 11840 | printf %s "checking whether toupper is broken... " >&6; } |
| 11841 | if test ${vim_cv_toupper_broken+y} |
| 11842 | then : |
| 11843 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11844 | else case e in #( |
| 11845 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11846 | if test "$cross_compiling" = yes |
| 11847 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11848 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 11849 | vim_cv_toupper_broken=no |
| 11850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_toupper_broken'" >&5 |
| 11851 | printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_toupper_broken'" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11852 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11853 | else case e in #( |
| 11854 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11855 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11856 | |
| 11857 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11858 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11859 | #if STDC_HEADERS |
| 11860 | # include <stdlib.h> |
| 11861 | # include <stddef.h> |
| 11862 | #endif |
Bram Moolenaar | 0f0d3a7 | 2022-06-19 18:02:05 +0100 | [diff] [blame] | 11863 | int main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11864 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11865 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11866 | if ac_fn_c_try_run "$LINENO" |
| 11867 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11868 | |
| 11869 | vim_cv_toupper_broken=yes |
| 11870 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11871 | else case e in #( |
| 11872 | e) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11873 | vim_cv_toupper_broken=no |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11874 | ;; |
| 11875 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11876 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11877 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11878 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 11879 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11880 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11881 | ;; |
| 11882 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11883 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 |
| 11885 | printf "%s\n" "$vim_cv_toupper_broken" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11886 | |
| 11887 | if test "x$vim_cv_toupper_broken" = "xyes" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11888 | printf "%s\n" "#define BROKEN_TOUPPER 1" >>confdefs.h |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11889 | |
| 11890 | fi |
| 11891 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 |
| 11893 | printf %s "checking whether __DATE__ and __TIME__ work... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11895 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11896 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11897 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11898 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11899 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11900 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11901 | ; |
| 11902 | return 0; |
| 11903 | } |
| 11904 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11905 | if ac_fn_c_try_compile "$LINENO" |
| 11906 | then : |
| 11907 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11908 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_DATE_TIME 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11909 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11910 | else case e in #( |
| 11911 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11912 | printf "%s\n" "no" >&6; } ;; |
| 11913 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11914 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11915 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11916 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11917 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 |
| 11918 | printf %s "checking whether __attribute__((unused)) is allowed... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 0c094b9 | 2009-05-14 20:20:33 +0000 | [diff] [blame] | 11920 | /* end confdefs.h. */ |
| 11921 | #include <stdio.h> |
| 11922 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11923 | main (void) |
Bram Moolenaar | 0c094b9 | 2009-05-14 20:20:33 +0000 | [diff] [blame] | 11924 | { |
| 11925 | int x __attribute__((unused)); |
| 11926 | ; |
| 11927 | return 0; |
| 11928 | } |
| 11929 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11930 | if ac_fn_c_try_compile "$LINENO" |
| 11931 | then : |
| 11932 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11933 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h |
Bram Moolenaar | 0c094b9 | 2009-05-14 20:20:33 +0000 | [diff] [blame] | 11934 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11935 | else case e in #( |
| 11936 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11937 | printf "%s\n" "no" >&6; } ;; |
| 11938 | esac |
Bram Moolenaar | 0c094b9 | 2009-05-14 20:20:33 +0000 | [diff] [blame] | 11939 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11940 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 0c094b9 | 2009-05-14 20:20:33 +0000 | [diff] [blame] | 11941 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11942 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11943 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11944 | as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 11946 | printf %s "checking for $ac_hdr that defines DIR... " >&6; } |
| 11947 | if eval test \${$as_ac_Header+y} |
| 11948 | then : |
| 11949 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11950 | else case e in #( |
| 11951 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11952 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11953 | #include <sys/types.h> |
| 11954 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11955 | |
| 11956 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11957 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11958 | { |
| 11959 | if ((DIR *) 0) |
| 11960 | return 0; |
| 11961 | ; |
| 11962 | return 0; |
| 11963 | } |
| 11964 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11965 | if ac_fn_c_try_compile "$LINENO" |
| 11966 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11967 | eval "$as_ac_Header=yes" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11968 | else case e in #( |
| 11969 | e) eval "$as_ac_Header=no" ;; |
| 11970 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11971 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11972 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 11973 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11974 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11975 | eval ac_res=\$$as_ac_Header |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 11977 | printf "%s\n" "$ac_res" >&6; } |
| 11978 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
| 11979 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11980 | cat >>confdefs.h <<_ACEOF |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11981 | #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11982 | _ACEOF |
| 11983 | |
| 11984 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11985 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11986 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11987 | done |
| 11988 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 11989 | if test $ac_header_dirent = dirent.h; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 11990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 11991 | printf %s "checking for library containing opendir... " >&6; } |
| 11992 | if test ${ac_cv_search_opendir+y} |
| 11993 | then : |
| 11994 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 11995 | else case e in #( |
| 11996 | e) ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 11997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11998 | /* end confdefs.h. */ |
| 11999 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12000 | /* Override any GCC internal prototype to avoid an error. |
| 12001 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12002 | builtin and then its argument prototype would still apply. |
| 12003 | The 'extern "C"' is for builds by C++ compilers; |
| 12004 | although this is not generally supported in C code supporting it here |
| 12005 | has little cost and some practical benefit (sr 110532). */ |
| 12006 | #ifdef __cplusplus |
| 12007 | extern "C" |
| 12008 | #endif |
| 12009 | char opendir (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12010 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12011 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12012 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12013 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12014 | ; |
| 12015 | return 0; |
| 12016 | } |
| 12017 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12018 | for ac_lib in '' dir |
| 12019 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12020 | if test -z "$ac_lib"; then |
| 12021 | ac_res="none required" |
| 12022 | else |
| 12023 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12024 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12025 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12026 | if ac_fn_c_try_link "$LINENO" |
| 12027 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12028 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12029 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12030 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12031 | conftest$ac_exeext |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12032 | if test ${ac_cv_search_opendir+y} |
| 12033 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12034 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12035 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12036 | done |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12037 | if test ${ac_cv_search_opendir+y} |
| 12038 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12039 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12040 | else case e in #( |
| 12041 | e) ac_cv_search_opendir=no ;; |
| 12042 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12043 | fi |
| 12044 | rm conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12045 | LIBS=$ac_func_search_save_LIBS ;; |
| 12046 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12047 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 12049 | printf "%s\n" "$ac_cv_search_opendir" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12050 | ac_res=$ac_cv_search_opendir |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12051 | if test "$ac_res" != no |
| 12052 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12053 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12054 | |
| 12055 | fi |
| 12056 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12057 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 12059 | printf %s "checking for library containing opendir... " >&6; } |
| 12060 | if test ${ac_cv_search_opendir+y} |
| 12061 | then : |
| 12062 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12063 | else case e in #( |
| 12064 | e) ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12066 | /* end confdefs.h. */ |
| 12067 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12068 | /* Override any GCC internal prototype to avoid an error. |
| 12069 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12070 | builtin and then its argument prototype would still apply. |
| 12071 | The 'extern "C"' is for builds by C++ compilers; |
| 12072 | although this is not generally supported in C code supporting it here |
| 12073 | has little cost and some practical benefit (sr 110532). */ |
| 12074 | #ifdef __cplusplus |
| 12075 | extern "C" |
| 12076 | #endif |
| 12077 | char opendir (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12078 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12079 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12080 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12081 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12082 | ; |
| 12083 | return 0; |
| 12084 | } |
| 12085 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12086 | for ac_lib in '' x |
| 12087 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12088 | if test -z "$ac_lib"; then |
| 12089 | ac_res="none required" |
| 12090 | else |
| 12091 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12092 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12093 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12094 | if ac_fn_c_try_link "$LINENO" |
| 12095 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12096 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12097 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12098 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12099 | conftest$ac_exeext |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12100 | if test ${ac_cv_search_opendir+y} |
| 12101 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12102 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12103 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12104 | done |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12105 | if test ${ac_cv_search_opendir+y} |
| 12106 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12107 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12108 | else case e in #( |
| 12109 | e) ac_cv_search_opendir=no ;; |
| 12110 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12111 | fi |
| 12112 | rm conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12113 | LIBS=$ac_func_search_save_LIBS ;; |
| 12114 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12115 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 12117 | printf "%s\n" "$ac_cv_search_opendir" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12118 | ac_res=$ac_cv_search_opendir |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12119 | if test "$ac_res" != no |
| 12120 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12121 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12122 | |
| 12123 | fi |
| 12124 | |
| 12125 | fi |
| 12126 | |
| 12127 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12128 | if test $ac_cv_header_sys_wait_h = no; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12129 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 |
| 12130 | printf %s "checking for sys/wait.h that defines union wait... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12132 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12133 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12134 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12135 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12136 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12137 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12138 | ; |
| 12139 | return 0; |
| 12140 | } |
| 12141 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12142 | if ac_fn_c_try_compile "$LINENO" |
| 12143 | then : |
| 12144 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12145 | printf "%s\n" "yes" >&6; } |
| 12146 | printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12147 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12148 | printf "%s\n" "#define HAVE_UNION_WAIT 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12149 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12150 | else case e in #( |
| 12151 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12152 | printf "%s\n" "no" >&6; } ;; |
| 12153 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12154 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12155 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12156 | fi |
| 12157 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12158 | ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 12159 | if test "x$ac_cv_header_stdint_h" = xyes |
| 12160 | then : |
| 12161 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
| 12162 | |
| 12163 | fi |
| 12164 | ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 12165 | if test "x$ac_cv_header_stdlib_h" = xyes |
| 12166 | then : |
| 12167 | printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h |
| 12168 | |
| 12169 | fi |
| 12170 | ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
| 12171 | if test "x$ac_cv_header_string_h" = xyes |
| 12172 | then : |
| 12173 | printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h |
| 12174 | |
| 12175 | fi |
| 12176 | ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
| 12177 | if test "x$ac_cv_header_sys_select_h" = xyes |
| 12178 | then : |
| 12179 | printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
| 12180 | |
| 12181 | fi |
| 12182 | ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" |
| 12183 | if test "x$ac_cv_header_sys_utsname_h" = xyes |
| 12184 | then : |
| 12185 | printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h |
| 12186 | |
| 12187 | fi |
| 12188 | ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default" |
| 12189 | if test "x$ac_cv_header_termcap_h" = xyes |
| 12190 | then : |
| 12191 | printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h |
| 12192 | |
| 12193 | fi |
| 12194 | ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 12195 | if test "x$ac_cv_header_fcntl_h" = xyes |
| 12196 | then : |
| 12197 | printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h |
| 12198 | |
| 12199 | fi |
| 12200 | ac_fn_c_check_header_compile "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default" |
| 12201 | if test "x$ac_cv_header_sgtty_h" = xyes |
| 12202 | then : |
| 12203 | printf "%s\n" "#define HAVE_SGTTY_H 1" >>confdefs.h |
| 12204 | |
| 12205 | fi |
| 12206 | ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 12207 | if test "x$ac_cv_header_sys_ioctl_h" = xyes |
| 12208 | then : |
| 12209 | printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
| 12210 | |
| 12211 | fi |
| 12212 | ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 12213 | if test "x$ac_cv_header_sys_time_h" = xyes |
| 12214 | then : |
| 12215 | printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 12216 | |
| 12217 | fi |
| 12218 | ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 12219 | if test "x$ac_cv_header_sys_types_h" = xyes |
| 12220 | then : |
| 12221 | printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h |
| 12222 | |
| 12223 | fi |
| 12224 | ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default" |
| 12225 | if test "x$ac_cv_header_termio_h" = xyes |
| 12226 | then : |
| 12227 | printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h |
| 12228 | |
| 12229 | fi |
| 12230 | ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" |
| 12231 | if test "x$ac_cv_header_iconv_h" = xyes |
| 12232 | then : |
| 12233 | printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h |
| 12234 | |
| 12235 | fi |
| 12236 | ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 12237 | if test "x$ac_cv_header_inttypes_h" = xyes |
| 12238 | then : |
| 12239 | printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h |
| 12240 | |
| 12241 | fi |
| 12242 | ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" |
| 12243 | if test "x$ac_cv_header_langinfo_h" = xyes |
| 12244 | then : |
| 12245 | printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h |
| 12246 | |
| 12247 | fi |
| 12248 | ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" |
| 12249 | if test "x$ac_cv_header_math_h" = xyes |
| 12250 | then : |
| 12251 | printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h |
| 12252 | |
| 12253 | fi |
| 12254 | ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 12255 | if test "x$ac_cv_header_unistd_h" = xyes |
| 12256 | then : |
| 12257 | printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h |
| 12258 | |
| 12259 | fi |
| 12260 | ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" |
| 12261 | if test "x$ac_cv_header_stropts_h" = xyes |
| 12262 | then : |
| 12263 | printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h |
| 12264 | |
| 12265 | fi |
| 12266 | ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
| 12267 | if test "x$ac_cv_header_errno_h" = xyes |
| 12268 | then : |
| 12269 | printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h |
| 12270 | |
| 12271 | fi |
| 12272 | ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" |
| 12273 | if test "x$ac_cv_header_sys_resource_h" = xyes |
| 12274 | then : |
| 12275 | printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h |
| 12276 | |
| 12277 | fi |
| 12278 | ac_fn_c_check_header_compile "$LINENO" "sys/systeminfo.h" "ac_cv_header_sys_systeminfo_h" "$ac_includes_default" |
| 12279 | if test "x$ac_cv_header_sys_systeminfo_h" = xyes |
| 12280 | then : |
| 12281 | printf "%s\n" "#define HAVE_SYS_SYSTEMINFO_H 1" >>confdefs.h |
| 12282 | |
| 12283 | fi |
| 12284 | ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" |
| 12285 | if test "x$ac_cv_header_locale_h" = xyes |
| 12286 | then : |
| 12287 | printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h |
| 12288 | |
| 12289 | fi |
| 12290 | ac_fn_c_check_header_compile "$LINENO" "sys/stream.h" "ac_cv_header_sys_stream_h" "$ac_includes_default" |
| 12291 | if test "x$ac_cv_header_sys_stream_h" = xyes |
| 12292 | then : |
| 12293 | printf "%s\n" "#define HAVE_SYS_STREAM_H 1" >>confdefs.h |
| 12294 | |
| 12295 | fi |
| 12296 | ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" |
| 12297 | if test "x$ac_cv_header_termios_h" = xyes |
| 12298 | then : |
| 12299 | printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h |
| 12300 | |
| 12301 | fi |
| 12302 | ac_fn_c_check_header_compile "$LINENO" "libc.h" "ac_cv_header_libc_h" "$ac_includes_default" |
| 12303 | if test "x$ac_cv_header_libc_h" = xyes |
| 12304 | then : |
| 12305 | printf "%s\n" "#define HAVE_LIBC_H 1" >>confdefs.h |
| 12306 | |
| 12307 | fi |
| 12308 | ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" |
| 12309 | if test "x$ac_cv_header_sys_statfs_h" = xyes |
| 12310 | then : |
| 12311 | printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h |
| 12312 | |
| 12313 | fi |
| 12314 | ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" |
| 12315 | if test "x$ac_cv_header_poll_h" = xyes |
| 12316 | then : |
| 12317 | printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h |
| 12318 | |
| 12319 | fi |
| 12320 | ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" |
| 12321 | if test "x$ac_cv_header_sys_poll_h" = xyes |
| 12322 | then : |
| 12323 | printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h |
| 12324 | |
| 12325 | fi |
| 12326 | ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" |
| 12327 | if test "x$ac_cv_header_pwd_h" = xyes |
| 12328 | then : |
| 12329 | printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h |
| 12330 | |
| 12331 | fi |
| 12332 | ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" |
| 12333 | if test "x$ac_cv_header_utime_h" = xyes |
| 12334 | then : |
| 12335 | printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h |
| 12336 | |
| 12337 | fi |
| 12338 | ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 12339 | if test "x$ac_cv_header_sys_param_h" = xyes |
| 12340 | then : |
| 12341 | printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| 12342 | |
| 12343 | fi |
| 12344 | ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "$ac_includes_default" |
| 12345 | if test "x$ac_cv_header_sys_ptms_h" = xyes |
| 12346 | then : |
| 12347 | printf "%s\n" "#define HAVE_SYS_PTMS_H 1" >>confdefs.h |
| 12348 | |
| 12349 | fi |
| 12350 | ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" |
| 12351 | if test "x$ac_cv_header_libintl_h" = xyes |
| 12352 | then : |
| 12353 | printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h |
| 12354 | |
| 12355 | fi |
| 12356 | ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" |
| 12357 | if test "x$ac_cv_header_libgen_h" = xyes |
| 12358 | then : |
| 12359 | printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h |
| 12360 | |
| 12361 | fi |
| 12362 | ac_fn_c_check_header_compile "$LINENO" "util/debug.h" "ac_cv_header_util_debug_h" "$ac_includes_default" |
| 12363 | if test "x$ac_cv_header_util_debug_h" = xyes |
| 12364 | then : |
| 12365 | printf "%s\n" "#define HAVE_UTIL_DEBUG_H 1" >>confdefs.h |
| 12366 | |
| 12367 | fi |
| 12368 | ac_fn_c_check_header_compile "$LINENO" "util/msg18n.h" "ac_cv_header_util_msg18n_h" "$ac_includes_default" |
| 12369 | if test "x$ac_cv_header_util_msg18n_h" = xyes |
| 12370 | then : |
| 12371 | printf "%s\n" "#define HAVE_UTIL_MSG18N_H 1" >>confdefs.h |
| 12372 | |
| 12373 | fi |
| 12374 | ac_fn_c_check_header_compile "$LINENO" "frame.h" "ac_cv_header_frame_h" "$ac_includes_default" |
| 12375 | if test "x$ac_cv_header_frame_h" = xyes |
| 12376 | then : |
| 12377 | printf "%s\n" "#define HAVE_FRAME_H 1" >>confdefs.h |
| 12378 | |
| 12379 | fi |
| 12380 | ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default" |
| 12381 | if test "x$ac_cv_header_sys_acl_h" = xyes |
| 12382 | then : |
| 12383 | printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h |
| 12384 | |
| 12385 | fi |
| 12386 | ac_fn_c_check_header_compile "$LINENO" "sys/access.h" "ac_cv_header_sys_access_h" "$ac_includes_default" |
| 12387 | if test "x$ac_cv_header_sys_access_h" = xyes |
| 12388 | then : |
| 12389 | printf "%s\n" "#define HAVE_SYS_ACCESS_H 1" >>confdefs.h |
| 12390 | |
| 12391 | fi |
| 12392 | ac_fn_c_check_header_compile "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default" |
| 12393 | if test "x$ac_cv_header_sys_sysinfo_h" = xyes |
| 12394 | then : |
| 12395 | printf "%s\n" "#define HAVE_SYS_SYSINFO_H 1" >>confdefs.h |
| 12396 | |
| 12397 | fi |
| 12398 | ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
| 12399 | if test "x$ac_cv_header_wchar_h" = xyes |
| 12400 | then : |
| 12401 | printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h |
| 12402 | |
| 12403 | fi |
| 12404 | ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" |
| 12405 | if test "x$ac_cv_header_wctype_h" = xyes |
| 12406 | then : |
| 12407 | printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12408 | |
| 12409 | fi |
| 12410 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12411 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12412 | ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 12413 | # include <sys/stream.h> |
| 12414 | #endif |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12415 | " |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12416 | if test "x$ac_cv_header_sys_ptem_h" = xyes |
| 12417 | then : |
| 12418 | printf "%s\n" "#define HAVE_SYS_PTEM_H 1" >>confdefs.h |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12419 | |
| 12420 | fi |
| 12421 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12422 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12423 | ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 12424 | # include <sys/param.h> |
| 12425 | #endif |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12426 | " |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12427 | if test "x$ac_cv_header_sys_sysctl_h" = xyes |
| 12428 | then : |
| 12429 | printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 12430 | |
| 12431 | fi |
| 12432 | |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 12433 | |
| 12434 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 |
| 12436 | printf %s "checking for pthread_np.h... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12438 | /* end confdefs.h. */ |
| 12439 | |
| 12440 | #include <pthread.h> |
| 12441 | #include <pthread_np.h> |
| 12442 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12443 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12444 | { |
| 12445 | int i; i = 0; |
| 12446 | ; |
| 12447 | return 0; |
| 12448 | } |
| 12449 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12450 | if ac_fn_c_try_compile "$LINENO" |
| 12451 | then : |
| 12452 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12453 | printf "%s\n" "yes" >&6; } |
| 12454 | printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12455 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12456 | else case e in #( |
| 12457 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12458 | printf "%s\n" "no" >&6; } ;; |
| 12459 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12460 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12461 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12462 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12463 | ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" |
| 12464 | if test "x$ac_cv_header_strings_h" = xyes |
| 12465 | then : |
| 12466 | printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12467 | |
| 12468 | fi |
| 12469 | |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 12470 | if test "x$MACOS_X" = "xyes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12471 | printf "%s\n" "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 12472 | |
| 12473 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12474 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 |
| 12476 | printf %s "checking if strings.h can be included after string.h... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12477 | cppflags_save=$CPPFLAGS |
| 12478 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12480 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12481 | |
| 12482 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 12483 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 12484 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 12485 | #endif |
| 12486 | #ifdef HAVE_XM_XM_H |
| 12487 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 12488 | #endif |
| 12489 | #ifdef HAVE_STRING_H |
| 12490 | # include <string.h> |
| 12491 | #endif |
| 12492 | #if defined(HAVE_STRINGS_H) |
| 12493 | # include <strings.h> |
| 12494 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12495 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12496 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12497 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12498 | { |
| 12499 | int i; i = 0; |
| 12500 | ; |
| 12501 | return 0; |
| 12502 | } |
| 12503 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12504 | if ac_fn_c_try_compile "$LINENO" |
| 12505 | then : |
| 12506 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12507 | printf "%s\n" "yes" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12508 | else case e in #( |
| 12509 | e) printf "%s\n" "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12510 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12512 | printf "%s\n" "no" >&6; } ;; |
| 12513 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12514 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12515 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12516 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 12517 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12518 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12519 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12520 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 12521 | printf %s "checking for an ANSI C-conforming const... " >&6; } |
| 12522 | if test ${ac_cv_c_const+y} |
| 12523 | then : |
| 12524 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12525 | else case e in #( |
| 12526 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12527 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12528 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12529 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12530 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12531 | { |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 12532 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12533 | #ifndef __cplusplus |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 12534 | /* Ultrix mips cc rejects this sort of thing. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12535 | typedef int charset[2]; |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 12536 | const charset cs = { 0, 0 }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12537 | /* SunOS 4.1.1 cc rejects this. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12538 | char const *const *pcpcc; |
| 12539 | char **ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12540 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 12541 | struct point {int x, y;}; |
| 12542 | static struct point const zero = {0,0}; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12543 | /* IBM XL C 1.02.0.0 rejects this. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12544 | It does not let you subtract one const X* pointer from another in |
| 12545 | an arm of an if-expression whose if-part is not a constant |
| 12546 | expression */ |
| 12547 | const char *g = "string"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12548 | pcpcc = &g + (g ? g-g : 0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12549 | /* HPUX 7.0 cc rejects these. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12550 | ++pcpcc; |
| 12551 | ppc = (char**) pcpcc; |
| 12552 | pcpcc = (char const *const *) ppc; |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 12553 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 12554 | char tx; |
| 12555 | char *t = &tx; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12556 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12557 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12558 | *t++ = 0; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12559 | if (s) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12560 | } |
| 12561 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 12562 | int x[] = {25, 17}; |
| 12563 | const int *foo = &x[0]; |
| 12564 | ++foo; |
| 12565 | } |
| 12566 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 12567 | typedef const int *iptr; |
| 12568 | iptr p = 0; |
| 12569 | ++p; |
| 12570 | } |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12571 | { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12572 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 12573 | struct s { int j; const int *ap[3]; } bx; |
| 12574 | struct s *b = &bx; b->j = 5; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12575 | } |
| 12576 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 12577 | const int foo = 10; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12578 | if (!foo) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12579 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12580 | return !cs[0] && !zero.x; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12581 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12582 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12583 | ; |
| 12584 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12585 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12586 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12587 | if ac_fn_c_try_compile "$LINENO" |
| 12588 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12589 | ac_cv_c_const=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12590 | else case e in #( |
| 12591 | e) ac_cv_c_const=no ;; |
| 12592 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12593 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12594 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 12595 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12596 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 12598 | printf "%s\n" "$ac_cv_c_const" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12599 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12600 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12601 | printf "%s\n" "#define const /**/" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12602 | |
| 12603 | fi |
| 12604 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 12606 | printf %s "checking for working volatile... " >&6; } |
| 12607 | if test ${ac_cv_c_volatile+y} |
| 12608 | then : |
| 12609 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12610 | else case e in #( |
| 12611 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 76243bd | 2009-03-02 01:47:02 +0000 | [diff] [blame] | 12612 | /* end confdefs.h. */ |
| 12613 | |
| 12614 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12615 | main (void) |
Bram Moolenaar | 76243bd | 2009-03-02 01:47:02 +0000 | [diff] [blame] | 12616 | { |
| 12617 | |
| 12618 | volatile int x; |
| 12619 | int * volatile y = (int *) 0; |
| 12620 | return !x && !y; |
| 12621 | ; |
| 12622 | return 0; |
| 12623 | } |
| 12624 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12625 | if ac_fn_c_try_compile "$LINENO" |
| 12626 | then : |
Bram Moolenaar | 76243bd | 2009-03-02 01:47:02 +0000 | [diff] [blame] | 12627 | ac_cv_c_volatile=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12628 | else case e in #( |
| 12629 | e) ac_cv_c_volatile=no ;; |
| 12630 | esac |
Bram Moolenaar | 76243bd | 2009-03-02 01:47:02 +0000 | [diff] [blame] | 12631 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12632 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 12633 | esac |
Bram Moolenaar | 76243bd | 2009-03-02 01:47:02 +0000 | [diff] [blame] | 12634 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12635 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
| 12636 | printf "%s\n" "$ac_cv_c_volatile" >&6; } |
Bram Moolenaar | 76243bd | 2009-03-02 01:47:02 +0000 | [diff] [blame] | 12637 | if test $ac_cv_c_volatile = no; then |
| 12638 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12639 | printf "%s\n" "#define volatile /**/" >>confdefs.h |
Bram Moolenaar | 76243bd | 2009-03-02 01:47:02 +0000 | [diff] [blame] | 12640 | |
| 12641 | fi |
| 12642 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12643 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12644 | if test "x$ac_cv_type_mode_t" = xyes |
| 12645 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12646 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12647 | else case e in #( |
| 12648 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12649 | printf "%s\n" "#define mode_t int" >>confdefs.h |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12650 | ;; |
| 12651 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12652 | fi |
| 12653 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12654 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12655 | if test "x$ac_cv_type_off_t" = xyes |
| 12656 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12657 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12658 | else case e in #( |
| 12659 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12660 | printf "%s\n" "#define off_t long int" >>confdefs.h |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12661 | ;; |
| 12662 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12663 | fi |
| 12664 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12665 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12666 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
| 12667 | " |
| 12668 | if test "x$ac_cv_type_pid_t" = xyes |
| 12669 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12670 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12671 | else case e in #( |
| 12672 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12673 | /* end confdefs.h. */ |
| 12674 | |
| 12675 | #if defined _WIN64 && !defined __CYGWIN__ |
| 12676 | LLP64 |
| 12677 | #endif |
| 12678 | |
| 12679 | int |
| 12680 | main (void) |
| 12681 | { |
| 12682 | |
| 12683 | ; |
| 12684 | return 0; |
| 12685 | } |
| 12686 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12687 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12688 | if ac_fn_c_try_compile "$LINENO" |
| 12689 | then : |
| 12690 | ac_pid_type='int' |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12691 | else case e in #( |
| 12692 | e) ac_pid_type='__int64' ;; |
| 12693 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12694 | fi |
| 12695 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12696 | |
| 12697 | printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
| 12698 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12699 | ;; |
| 12700 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12701 | fi |
| 12702 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12703 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12704 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12705 | if test "x$ac_cv_type_size_t" = xyes |
| 12706 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12707 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12708 | else case e in #( |
| 12709 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12710 | printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12711 | ;; |
| 12712 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12713 | fi |
| 12714 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12715 | ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" |
| 12716 | if test "x$ac_cv_type_uid_t" = xyes |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12717 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12718 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12719 | else case e in #( |
| 12720 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12721 | printf "%s\n" "#define uid_t int" >>confdefs.h |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12722 | ;; |
| 12723 | esac |
| 12724 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12725 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12726 | ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" |
| 12727 | if test "x$ac_cv_type_gid_t" = xyes |
| 12728 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12729 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12730 | else case e in #( |
| 12731 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12732 | printf "%s\n" "#define gid_t int" >>confdefs.h |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12733 | ;; |
| 12734 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12735 | fi |
| 12736 | |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12737 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 12738 | case $ac_cv_c_uint32_t in #( |
| 12739 | no|yes) ;; #( |
| 12740 | *) |
| 12741 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12742 | printf "%s\n" "#define _UINT32_T 1" >>confdefs.h |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12743 | |
| 12744 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12745 | printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12746 | ;; |
| 12747 | esac |
| 12748 | |
Bram Moolenaar | fa7584c | 2010-05-19 21:57:45 +0200 | [diff] [blame] | 12749 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12750 | |
Illia Bobyr | f39842f | 2023-08-27 18:21:23 +0200 | [diff] [blame] | 12751 | |
| 12752 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12753 | ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12754 | if test "x$ac_cv_type_ino_t" = xyes |
| 12755 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12756 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12757 | else case e in #( |
| 12758 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12759 | printf "%s\n" "#define ino_t long" >>confdefs.h |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12760 | ;; |
| 12761 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12762 | fi |
| 12763 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 12764 | ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12765 | if test "x$ac_cv_type_dev_t" = xyes |
| 12766 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12767 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12768 | else case e in #( |
| 12769 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12770 | printf "%s\n" "#define dev_t unsigned" >>confdefs.h |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12771 | ;; |
| 12772 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12773 | fi |
| 12774 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12775 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 12776 | printf %s "checking whether byte ordering is bigendian... " >&6; } |
| 12777 | if test ${ac_cv_c_bigendian+y} |
| 12778 | then : |
| 12779 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12780 | else case e in #( |
| 12781 | e) ac_cv_c_bigendian=unknown |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12782 | # See if we're dealing with a universal compiler. |
| 12783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12784 | /* end confdefs.h. */ |
| 12785 | #ifndef __APPLE_CC__ |
| 12786 | not a universal capable compiler |
| 12787 | #endif |
| 12788 | typedef int dummy; |
| 12789 | |
| 12790 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12791 | if ac_fn_c_try_compile "$LINENO" |
| 12792 | then : |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12793 | |
| 12794 | # Check for potential -arch flags. It is not universal unless |
| 12795 | # there are at least two -arch flags with different values. |
| 12796 | ac_arch= |
| 12797 | ac_prev= |
| 12798 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12799 | if test -n "$ac_prev"; then |
| 12800 | case $ac_word in |
| 12801 | i?86 | x86_64 | ppc | ppc64) |
| 12802 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12803 | ac_arch=$ac_word |
| 12804 | else |
| 12805 | ac_cv_c_bigendian=universal |
| 12806 | break |
| 12807 | fi |
| 12808 | ;; |
| 12809 | esac |
| 12810 | ac_prev= |
| 12811 | elif test "x$ac_word" = "x-arch"; then |
| 12812 | ac_prev=arch |
| 12813 | fi |
| 12814 | done |
| 12815 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12816 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12817 | if test $ac_cv_c_bigendian = unknown; then |
| 12818 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 12819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12820 | /* end confdefs.h. */ |
| 12821 | #include <sys/types.h> |
| 12822 | #include <sys/param.h> |
| 12823 | |
| 12824 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12825 | main (void) |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12826 | { |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12827 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ |
| 12828 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12829 | && LITTLE_ENDIAN) |
| 12830 | bogus endian macros |
| 12831 | #endif |
| 12832 | |
| 12833 | ; |
| 12834 | return 0; |
| 12835 | } |
| 12836 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12837 | if ac_fn_c_try_compile "$LINENO" |
| 12838 | then : |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12839 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 12840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12841 | /* end confdefs.h. */ |
| 12842 | #include <sys/types.h> |
| 12843 | #include <sys/param.h> |
| 12844 | |
| 12845 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12846 | main (void) |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12847 | { |
| 12848 | #if BYTE_ORDER != BIG_ENDIAN |
| 12849 | not big endian |
| 12850 | #endif |
| 12851 | |
| 12852 | ; |
| 12853 | return 0; |
| 12854 | } |
| 12855 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12856 | if ac_fn_c_try_compile "$LINENO" |
| 12857 | then : |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12858 | ac_cv_c_bigendian=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12859 | else case e in #( |
| 12860 | e) ac_cv_c_bigendian=no ;; |
| 12861 | esac |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12862 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12863 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12864 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12865 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12866 | fi |
| 12867 | if test $ac_cv_c_bigendian = unknown; then |
| 12868 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 12869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12870 | /* end confdefs.h. */ |
| 12871 | #include <limits.h> |
| 12872 | |
| 12873 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12874 | main (void) |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12875 | { |
| 12876 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12877 | bogus endian macros |
| 12878 | #endif |
| 12879 | |
| 12880 | ; |
| 12881 | return 0; |
| 12882 | } |
| 12883 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12884 | if ac_fn_c_try_compile "$LINENO" |
| 12885 | then : |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12886 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 12887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12888 | /* end confdefs.h. */ |
| 12889 | #include <limits.h> |
| 12890 | |
| 12891 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12892 | main (void) |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12893 | { |
| 12894 | #ifndef _BIG_ENDIAN |
| 12895 | not big endian |
| 12896 | #endif |
| 12897 | |
| 12898 | ; |
| 12899 | return 0; |
| 12900 | } |
| 12901 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12902 | if ac_fn_c_try_compile "$LINENO" |
| 12903 | then : |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12904 | ac_cv_c_bigendian=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12905 | else case e in #( |
| 12906 | e) ac_cv_c_bigendian=no ;; |
| 12907 | esac |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12908 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12909 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12910 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12911 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12912 | fi |
| 12913 | if test $ac_cv_c_bigendian = unknown; then |
| 12914 | # Compile a test program. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12915 | if test "$cross_compiling" = yes |
| 12916 | then : |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12917 | # Try to guess by grepping values from an object file. |
| 12918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12919 | /* end confdefs.h. */ |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12920 | unsigned short int ascii_mm[] = |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12921 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12922 | unsigned short int ascii_ii[] = |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12923 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12924 | int use_ascii (int i) { |
| 12925 | return ascii_mm[i] + ascii_ii[i]; |
| 12926 | } |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12927 | unsigned short int ebcdic_ii[] = |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12928 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12929 | unsigned short int ebcdic_mm[] = |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12930 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12931 | int use_ebcdic (int i) { |
| 12932 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12933 | } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12934 | int |
| 12935 | main (int argc, char **argv) |
| 12936 | { |
| 12937 | /* Intimidate the compiler so that it does not |
| 12938 | optimize the arrays away. */ |
| 12939 | char *p = argv[0]; |
| 12940 | ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; |
| 12941 | ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; |
| 12942 | return use_ascii (argc) == use_ebcdic (*p); |
| 12943 | } |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12944 | _ACEOF |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12945 | if ac_fn_c_try_link "$LINENO" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12946 | then : |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12947 | if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12948 | ac_cv_c_bigendian=yes |
| 12949 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12950 | if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12951 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12952 | ac_cv_c_bigendian=no |
| 12953 | else |
| 12954 | # finding both strings is unlikely to happen, but who knows? |
| 12955 | ac_cv_c_bigendian=unknown |
| 12956 | fi |
| 12957 | fi |
| 12958 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12959 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12960 | conftest$ac_exeext conftest.$ac_ext |
| 12961 | else case e in #( |
| 12962 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12963 | /* end confdefs.h. */ |
| 12964 | $ac_includes_default |
| 12965 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12966 | main (void) |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12967 | { |
| 12968 | |
| 12969 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12970 | union |
| 12971 | { |
| 12972 | long int l; |
| 12973 | char c[sizeof (long int)]; |
| 12974 | } u; |
| 12975 | u.l = 1; |
| 12976 | return u.c[sizeof (long int) - 1] == 1; |
| 12977 | |
| 12978 | ; |
| 12979 | return 0; |
| 12980 | } |
| 12981 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12982 | if ac_fn_c_try_run "$LINENO" |
| 12983 | then : |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12984 | ac_cv_c_bigendian=no |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12985 | else case e in #( |
| 12986 | e) ac_cv_c_bigendian=yes ;; |
| 12987 | esac |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12988 | fi |
| 12989 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12990 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 12991 | esac |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12992 | fi |
| 12993 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 12994 | fi ;; |
| 12995 | esac |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12996 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 12997 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 12998 | printf "%s\n" "$ac_cv_c_bigendian" >&6; } |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 12999 | case $ac_cv_c_bigendian in #( |
| 13000 | yes) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13001 | printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 13002 | ;; #( |
| 13003 | no) |
| 13004 | ;; #( |
| 13005 | universal) |
| 13006 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13007 | printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 13008 | |
| 13009 | ;; #( |
| 13010 | *) |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 13011 | as_fn_error $? "unknown endianness |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 13012 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 13013 | esac |
| 13014 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 13016 | printf %s "checking for inline... " >&6; } |
| 13017 | if test ${ac_cv_c_inline+y} |
| 13018 | then : |
| 13019 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13020 | else case e in #( |
| 13021 | e) ac_cv_c_inline=no |
Bram Moolenaar | 136f29a | 2016-02-27 20:14:15 +0100 | [diff] [blame] | 13022 | for ac_kw in inline __inline__ __inline; do |
| 13023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13024 | /* end confdefs.h. */ |
| 13025 | #ifndef __cplusplus |
| 13026 | typedef int foo_t; |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13027 | static $ac_kw foo_t static_foo (void) {return 0; } |
| 13028 | $ac_kw foo_t foo (void) {return 0; } |
Bram Moolenaar | 136f29a | 2016-02-27 20:14:15 +0100 | [diff] [blame] | 13029 | #endif |
| 13030 | |
| 13031 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13032 | if ac_fn_c_try_compile "$LINENO" |
| 13033 | then : |
Bram Moolenaar | 136f29a | 2016-02-27 20:14:15 +0100 | [diff] [blame] | 13034 | ac_cv_c_inline=$ac_kw |
| 13035 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13036 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 136f29a | 2016-02-27 20:14:15 +0100 | [diff] [blame] | 13037 | test "$ac_cv_c_inline" != no && break |
| 13038 | done |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13039 | ;; |
| 13040 | esac |
Bram Moolenaar | 136f29a | 2016-02-27 20:14:15 +0100 | [diff] [blame] | 13041 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 13043 | printf "%s\n" "$ac_cv_c_inline" >&6; } |
Bram Moolenaar | 136f29a | 2016-02-27 20:14:15 +0100 | [diff] [blame] | 13044 | |
| 13045 | case $ac_cv_c_inline in |
| 13046 | inline | yes) ;; |
| 13047 | *) |
| 13048 | case $ac_cv_c_inline in |
| 13049 | no) ac_val=;; |
| 13050 | *) ac_val=$ac_cv_c_inline;; |
| 13051 | esac |
| 13052 | cat >>confdefs.h <<_ACEOF |
| 13053 | #ifndef __cplusplus |
| 13054 | #define inline $ac_val |
| 13055 | #endif |
| 13056 | _ACEOF |
| 13057 | ;; |
| 13058 | esac |
| 13059 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13060 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 |
| 13062 | printf %s "checking for rlim_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13063 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 13065 | printf "%s\n" "(cached) $ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13066 | else |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13068 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13069 | |
| 13070 | #include <sys/types.h> |
| 13071 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13072 | # include <stdlib.h> |
| 13073 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13074 | #endif |
| 13075 | #ifdef HAVE_SYS_RESOURCE_H |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13076 | # include <sys/resource.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13077 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13078 | |
| 13079 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13080 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13081 | $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13082 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13083 | ac_cv_type_rlim_t=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13084 | else case e in #( |
| 13085 | e) ac_cv_type_rlim_t=no ;; |
| 13086 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13087 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13088 | rm -rf conftest* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13089 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 |
| 13091 | printf "%s\n" "$ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13092 | fi |
| 13093 | if test $ac_cv_type_rlim_t = no; then |
| 13094 | cat >> confdefs.h <<\EOF |
| 13095 | #define rlim_t unsigned long |
| 13096 | EOF |
| 13097 | fi |
| 13098 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13099 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 |
| 13100 | printf %s "checking for stack_t... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13101 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 |
| 13103 | printf "%s\n" "(cached) $ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13104 | else |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13106 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13107 | |
| 13108 | #include <sys/types.h> |
| 13109 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13110 | # include <stdlib.h> |
| 13111 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13112 | #endif |
| 13113 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13114 | |
| 13115 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13116 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13117 | $EGREP_TRADITIONAL "stack_t" >/dev/null 2>&1 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13118 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13119 | ac_cv_type_stack_t=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13120 | else case e in #( |
| 13121 | e) ac_cv_type_stack_t=no ;; |
| 13122 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13123 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13124 | rm -rf conftest* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13125 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13126 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 |
| 13127 | printf "%s\n" "$ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13128 | fi |
| 13129 | if test $ac_cv_type_stack_t = no; then |
| 13130 | cat >> confdefs.h <<\EOF |
| 13131 | #define stack_t struct sigaltstack |
| 13132 | EOF |
| 13133 | fi |
| 13134 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 |
| 13136 | printf %s "checking whether stack_t has an ss_base field... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13138 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13139 | |
| 13140 | #include <sys/types.h> |
| 13141 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13142 | # include <stdlib.h> |
| 13143 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13144 | #endif |
| 13145 | #include <signal.h> |
| 13146 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13147 | |
| 13148 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13149 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13150 | { |
| 13151 | stack_t sigstk; sigstk.ss_base = 0; |
| 13152 | ; |
| 13153 | return 0; |
| 13154 | } |
| 13155 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13156 | if ac_fn_c_try_compile "$LINENO" |
| 13157 | then : |
| 13158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13159 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SS_BASE 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13160 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13161 | else case e in #( |
| 13162 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13163 | printf "%s\n" "no" >&6; } ;; |
| 13164 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13165 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13166 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13167 | |
| 13168 | olibs="$LIBS" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 |
| 13170 | printf %s "checking --with-tlib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13171 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13172 | # Check whether --with-tlib was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13173 | if test ${with_tlib+y} |
| 13174 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13175 | withval=$with_tlib; |
| 13176 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13177 | |
| 13178 | if test -n "$with_tlib"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 |
| 13180 | printf "%s\n" "$with_tlib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13181 | LIBS="$LIBS -l$with_tlib" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 |
| 13183 | printf %s "checking for linking with $with_tlib library... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13185 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13186 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13187 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13188 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13189 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13190 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13191 | ; |
| 13192 | return 0; |
| 13193 | } |
| 13194 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13195 | if ac_fn_c_try_link "$LINENO" |
| 13196 | then : |
| 13197 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5 |
| 13198 | printf "%s\n" "OK" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13199 | else case e in #( |
| 13200 | e) as_fn_error $? "FAILED" "$LINENO" 5 ;; |
| 13201 | esac |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13202 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13203 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13204 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13205 | olibs="$LIBS" |
| 13206 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 |
| 13208 | printf "%s\n" "empty: automatic terminal library selection" >&6; } |
Bram Moolenaar | 6840a0f | 2021-12-13 20:37:59 +0000 | [diff] [blame] | 13209 | case "$vim_cv_uname_output" in |
Bram Moolenaar | 4e509b6 | 2011-02-09 17:42:57 +0100 | [diff] [blame] | 13210 | OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; |
| 13211 | *) tlibs="tinfo ncurses termlib termcap curses";; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13212 | esac |
| 13213 | for libname in $tlibs; do |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13214 | as_ac_Lib=`printf "%s\n" "ac_cv_lib_${libname}""_tgetent" | sed "$as_sed_sh"` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13215 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 |
| 13216 | printf %s "checking for tgetent in -l${libname}... " >&6; } |
| 13217 | if eval test \${$as_ac_Lib+y} |
| 13218 | then : |
| 13219 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13220 | else case e in #( |
| 13221 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13222 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13224 | /* end confdefs.h. */ |
| 13225 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13226 | /* Override any GCC internal prototype to avoid an error. |
| 13227 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13228 | builtin and then its argument prototype would still apply. |
| 13229 | The 'extern "C"' is for builds by C++ compilers; |
| 13230 | although this is not generally supported in C code supporting it here |
| 13231 | has little cost and some practical benefit (sr 110532). */ |
| 13232 | #ifdef __cplusplus |
| 13233 | extern "C" |
| 13234 | #endif |
| 13235 | char tgetent (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13236 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13237 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13238 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13239 | return tgetent (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13240 | ; |
| 13241 | return 0; |
| 13242 | } |
| 13243 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13244 | if ac_fn_c_try_link "$LINENO" |
| 13245 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13246 | eval "$as_ac_Lib=yes" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13247 | else case e in #( |
| 13248 | e) eval "$as_ac_Lib=no" ;; |
| 13249 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13250 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13251 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13252 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13253 | LIBS=$ac_check_lib_save_LIBS ;; |
| 13254 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13255 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13256 | eval ac_res=\$$as_ac_Lib |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 13258 | printf "%s\n" "$ac_res" >&6; } |
| 13259 | if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 13260 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13261 | cat >>confdefs.h <<_ACEOF |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13262 | #define `printf "%s\n" "HAVE_LIB${libname}" | sed "$as_sed_cpp"` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13263 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13264 | |
| 13265 | LIBS="-l${libname} $LIBS" |
| 13266 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13267 | fi |
| 13268 | |
| 13269 | if test "x$olibs" != "x$LIBS"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13270 | if test "$cross_compiling" = yes |
| 13271 | then : |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 13272 | res="OK" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13273 | else case e in #( |
| 13274 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13275 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13276 | |
| 13277 | #ifdef HAVE_TERMCAP_H |
| 13278 | # include <termcap.h> |
| 13279 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13280 | #if STDC_HEADERS |
| 13281 | # include <stdlib.h> |
| 13282 | # include <stddef.h> |
| 13283 | #endif |
Bram Moolenaar | 0f0d3a7 | 2022-06-19 18:02:05 +0100 | [diff] [blame] | 13284 | int main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13285 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13286 | if ac_fn_c_try_run "$LINENO" |
| 13287 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13288 | res="OK" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13289 | else case e in #( |
| 13290 | e) res="FAIL" ;; |
| 13291 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13292 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13293 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13294 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 13295 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13296 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13297 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13298 | if test "$res" = "OK"; then |
| 13299 | break |
| 13300 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 |
| 13302 | printf "%s\n" "$libname library is not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13303 | LIBS="$olibs" |
| 13304 | fi |
| 13305 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13306 | if test "x$olibs" = "x$LIBS"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 |
| 13308 | printf "%s\n" "no terminal library found" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13309 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13310 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13311 | |
| 13312 | if test "x$olibs" = "x$LIBS"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 |
| 13314 | printf %s "checking for tgetent()... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13316 | /* end confdefs.h. */ |
Bram Moolenaar | bd7f7c1 | 2020-07-28 21:03:37 +0200 | [diff] [blame] | 13317 | int tgetent(char *, const char *); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13318 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13319 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13320 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13321 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13322 | ; |
| 13323 | return 0; |
| 13324 | } |
| 13325 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13326 | if ac_fn_c_try_link "$LINENO" |
| 13327 | then : |
| 13328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13329 | printf "%s\n" "yes" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13330 | else case e in #( |
| 13331 | e) as_fn_error $? "NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13332 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 16678eb | 2021-04-21 11:57:59 +0200 | [diff] [blame] | 13333 | On Linux that would be the libncurses-dev package. |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13334 | Or specify the name of the library with --with-tlib." "$LINENO" 5 ;; |
| 13335 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13336 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13337 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13338 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 13339 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13340 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 |
| 13342 | printf %s "checking whether we talk terminfo... " >&6; } |
| 13343 | if test ${vim_cv_terminfo+y} |
| 13344 | then : |
| 13345 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13346 | else case e in #( |
| 13347 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13348 | if test "$cross_compiling" = yes |
| 13349 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13350 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 13351 | vim_cv_terminfo=yes |
| 13352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_terminfo'" >&5 |
| 13353 | printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_terminfo'" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13354 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13355 | else case e in #( |
| 13356 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13357 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13358 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13359 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13360 | #ifdef HAVE_TERMCAP_H |
| 13361 | # include <termcap.h> |
| 13362 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13363 | #ifdef HAVE_STRING_H |
| 13364 | # include <string.h> |
| 13365 | #endif |
| 13366 | #if STDC_HEADERS |
| 13367 | # include <stdlib.h> |
| 13368 | # include <stddef.h> |
| 13369 | #endif |
Bram Moolenaar | 0f0d3a7 | 2022-06-19 18:02:05 +0100 | [diff] [blame] | 13370 | int main() |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 13371 | {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!!strcmp(s==0 ? "" : s, "1")); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13372 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13373 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13374 | if ac_fn_c_try_run "$LINENO" |
| 13375 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13376 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 13377 | vim_cv_terminfo=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13378 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13379 | else case e in #( |
| 13380 | e) |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 13381 | vim_cv_terminfo=no |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13382 | ;; |
| 13383 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13384 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13385 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13386 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 13387 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13388 | fi |
| 13389 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13390 | ;; |
| 13391 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13392 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 |
| 13394 | printf "%s\n" "$vim_cv_terminfo" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13395 | |
| 13396 | if test "x$vim_cv_terminfo" = "xyes" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13397 | printf "%s\n" "#define TERMINFO 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13398 | |
| 13399 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13400 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 |
| 13402 | printf %s "checking what tgetent() returns for an unknown terminal... " >&6; } |
| 13403 | if test ${vim_cv_tgetent+y} |
| 13404 | then : |
| 13405 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13406 | else case e in #( |
| 13407 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13408 | if test "$cross_compiling" = yes |
| 13409 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13410 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 13411 | vim_cv_tgetent=zero |
| 13412 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_tgetent'" >&5 |
| 13413 | printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_tgetent'" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13414 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13415 | else case e in #( |
| 13416 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13417 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13418 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13419 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13420 | #ifdef HAVE_TERMCAP_H |
| 13421 | # include <termcap.h> |
| 13422 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13423 | #if STDC_HEADERS |
| 13424 | # include <stdlib.h> |
| 13425 | # include <stddef.h> |
| 13426 | #endif |
Bram Moolenaar | 0f0d3a7 | 2022-06-19 18:02:05 +0100 | [diff] [blame] | 13427 | int main() |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13428 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13429 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13430 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13431 | if ac_fn_c_try_run "$LINENO" |
| 13432 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13433 | |
Bram Moolenaar | a88254f | 2017-11-02 23:04:14 +0100 | [diff] [blame] | 13434 | vim_cv_tgetent=zero |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13435 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13436 | else case e in #( |
| 13437 | e) |
Bram Moolenaar | a88254f | 2017-11-02 23:04:14 +0100 | [diff] [blame] | 13438 | vim_cv_tgetent=non-zero |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13439 | ;; |
| 13440 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13441 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13442 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13443 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 13444 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13445 | fi |
| 13446 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13447 | ;; |
| 13448 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13449 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5 |
| 13451 | printf "%s\n" "$vim_cv_tgetent" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13452 | |
Bram Moolenaar | a88254f | 2017-11-02 23:04:14 +0100 | [diff] [blame] | 13453 | if test "x$vim_cv_tgetent" = "xzero" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13454 | printf "%s\n" "#define TGETENT_ZERO_ERR 0" >>confdefs.h |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13455 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13456 | fi |
| 13457 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 |
| 13459 | printf %s "checking whether termcap.h contains ospeed... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13461 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13462 | |
| 13463 | #ifdef HAVE_TERMCAP_H |
| 13464 | # include <termcap.h> |
| 13465 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13466 | |
| 13467 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13468 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13469 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13470 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13471 | ; |
| 13472 | return 0; |
| 13473 | } |
| 13474 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13475 | if ac_fn_c_try_link "$LINENO" |
| 13476 | then : |
| 13477 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13478 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_OSPEED 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13479 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13480 | else case e in #( |
| 13481 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13482 | printf "%s\n" "no" >&6; } |
| 13483 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 |
| 13484 | printf %s "checking whether ospeed can be extern... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13486 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13487 | |
| 13488 | #ifdef HAVE_TERMCAP_H |
| 13489 | # include <termcap.h> |
| 13490 | #endif |
| 13491 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13492 | |
| 13493 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13494 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13495 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13496 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13497 | ; |
| 13498 | return 0; |
| 13499 | } |
| 13500 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13501 | if ac_fn_c_try_link "$LINENO" |
| 13502 | then : |
| 13503 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13504 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define OSPEED_EXTERN 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13505 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13506 | else case e in #( |
| 13507 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13508 | printf "%s\n" "no" >&6; } ;; |
| 13509 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13510 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13511 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13512 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13513 | ;; |
| 13514 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13515 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13516 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13517 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13518 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13519 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 |
| 13520 | printf %s "checking whether termcap.h contains UP, BC and PC... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13522 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13523 | |
| 13524 | #ifdef HAVE_TERMCAP_H |
| 13525 | # include <termcap.h> |
| 13526 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13527 | |
| 13528 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13529 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13530 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13531 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13532 | ; |
| 13533 | return 0; |
| 13534 | } |
| 13535 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13536 | if ac_fn_c_try_link "$LINENO" |
| 13537 | then : |
| 13538 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13539 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_UP_BC_PC 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13540 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13541 | else case e in #( |
| 13542 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13543 | printf "%s\n" "no" >&6; } |
| 13544 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 |
| 13545 | printf %s "checking whether UP, BC and PC can be extern... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13547 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13548 | |
| 13549 | #ifdef HAVE_TERMCAP_H |
| 13550 | # include <termcap.h> |
| 13551 | #endif |
| 13552 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13553 | |
| 13554 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13555 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13556 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13557 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13558 | ; |
| 13559 | return 0; |
| 13560 | } |
| 13561 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13562 | if ac_fn_c_try_link "$LINENO" |
| 13563 | then : |
| 13564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13565 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define UP_BC_PC_EXTERN 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13566 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13567 | else case e in #( |
| 13568 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13569 | printf "%s\n" "no" >&6; } ;; |
| 13570 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13571 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13572 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13573 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13574 | ;; |
| 13575 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13576 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13577 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13578 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13579 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13580 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 |
| 13581 | printf %s "checking whether tputs() uses outfuntype... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13583 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13584 | |
| 13585 | #ifdef HAVE_TERMCAP_H |
| 13586 | # include <termcap.h> |
| 13587 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13588 | |
| 13589 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13590 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13591 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13592 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13593 | ; |
| 13594 | return 0; |
| 13595 | } |
| 13596 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13597 | if ac_fn_c_try_compile "$LINENO" |
| 13598 | then : |
| 13599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13600 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_OUTFUNTYPE 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13601 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13602 | else case e in #( |
| 13603 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13604 | printf "%s\n" "no" >&6; } ;; |
| 13605 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13606 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13607 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13608 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13609 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether del_curterm() can be used" >&5 |
| 13610 | printf %s "checking whether del_curterm() can be used... " >&6; } |
Bram Moolenaar | b3a2955 | 2021-11-19 11:28:04 +0000 | [diff] [blame] | 13611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13612 | /* end confdefs.h. */ |
| 13613 | |
| 13614 | #ifdef HAVE_TERMCAP_H |
| 13615 | # include <termcap.h> |
| 13616 | #endif |
| 13617 | #include <term.h> |
| 13618 | |
| 13619 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13620 | main (void) |
Bram Moolenaar | b3a2955 | 2021-11-19 11:28:04 +0000 | [diff] [blame] | 13621 | { |
| 13622 | if (cur_term) del_curterm(cur_term); |
| 13623 | ; |
| 13624 | return 0; |
| 13625 | } |
| 13626 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13627 | if ac_fn_c_try_link "$LINENO" |
| 13628 | then : |
| 13629 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13630 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_DEL_CURTERM 1" >>confdefs.h |
Bram Moolenaar | b3a2955 | 2021-11-19 11:28:04 +0000 | [diff] [blame] | 13631 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13632 | else case e in #( |
| 13633 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13634 | printf "%s\n" "no" >&6; } ;; |
| 13635 | esac |
Bram Moolenaar | b3a2955 | 2021-11-19 11:28:04 +0000 | [diff] [blame] | 13636 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13637 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | b3a2955 | 2021-11-19 11:28:04 +0000 | [diff] [blame] | 13638 | conftest$ac_exeext conftest.$ac_ext |
| 13639 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13640 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13641 | printf %s "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13643 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13644 | |
| 13645 | #include <sys/types.h> |
| 13646 | #include <sys/time.h> |
| 13647 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13648 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13649 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13650 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13651 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13652 | ; |
| 13653 | return 0; |
| 13654 | } |
| 13655 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13656 | if ac_fn_c_try_compile "$LINENO" |
| 13657 | then : |
| 13658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13659 | printf "%s\n" "yes" >&6; } |
| 13660 | printf "%s\n" "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13661 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13662 | else case e in #( |
| 13663 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13664 | printf "%s\n" "no" >&6; } ;; |
| 13665 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13666 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13667 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13668 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 13670 | printf %s "checking for /dev/ptc... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13671 | if test -r /dev/ptc; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13672 | printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13673 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13675 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13676 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13678 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13679 | fi |
| 13680 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13681 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 |
| 13682 | printf %s "checking for SVR4 ptys... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13683 | if test -c /dev/ptmx ; then |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13685 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13686 | |
Bram Moolenaar | ce7be3a | 2020-11-26 20:11:11 +0100 | [diff] [blame] | 13687 | // These should be in stdlib.h, but it depends on _XOPEN_SOURCE. |
| 13688 | char *ptsname(int); |
| 13689 | int unlockpt(int); |
| 13690 | int grantpt(int); |
| 13691 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13692 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13693 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13694 | { |
Bram Moolenaar | ce7be3a | 2020-11-26 20:11:11 +0100 | [diff] [blame] | 13695 | |
| 13696 | ptsname(0); |
| 13697 | grantpt(0); |
| 13698 | unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13699 | ; |
| 13700 | return 0; |
| 13701 | } |
| 13702 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13703 | if ac_fn_c_try_link "$LINENO" |
| 13704 | then : |
| 13705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13706 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SVR4_PTYS 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13707 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13708 | else case e in #( |
| 13709 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13710 | printf "%s\n" "no" >&6; } ;; |
| 13711 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13712 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13713 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13714 | conftest$ac_exeext conftest.$ac_ext |
| 13715 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13716 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13717 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13718 | fi |
| 13719 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13720 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 |
| 13721 | printf %s "checking for ptyranges... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13722 | if test -d /dev/ptym ; then |
| 13723 | pdir='/dev/ptym' |
| 13724 | else |
| 13725 | pdir='/dev' |
| 13726 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13728 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13729 | #ifdef M_UNIX |
| 13730 | yes; |
| 13731 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13732 | |
| 13733 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13734 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13735 | $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13736 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13737 | ptys=`echo /dev/ptyp??` |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13738 | else case e in #( |
| 13739 | e) ptys=`echo $pdir/pty??` ;; |
| 13740 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13741 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13742 | rm -rf conftest* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13743 | |
| 13744 | if test "$ptys" != "$pdir/pty??" ; then |
| 13745 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 13746 | p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13747 | printf "%s\n" "#define PTYRANGE0 \"$p0\"" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13748 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13749 | printf "%s\n" "#define PTYRANGE1 \"$p1\"" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13750 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 |
| 13752 | printf "%s\n" "$p0 / $p1" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13753 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 |
| 13755 | printf "%s\n" "don't know" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13756 | fi |
| 13757 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13758 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 |
| 13760 | printf %s "checking for struct sigcontext... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13762 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13763 | |
| 13764 | #include <signal.h> |
Sam James | f8ea106 | 2022-11-05 15:13:50 +0000 | [diff] [blame] | 13765 | int test_sig() |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13766 | { |
| 13767 | struct sigcontext *scont; |
| 13768 | scont = (struct sigcontext *)0; |
| 13769 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13770 | } |
| 13771 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13772 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13773 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13774 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13775 | ; |
| 13776 | return 0; |
| 13777 | } |
| 13778 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13779 | if ac_fn_c_try_compile "$LINENO" |
| 13780 | then : |
| 13781 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13782 | printf "%s\n" "yes" >&6; } |
| 13783 | printf "%s\n" "#define HAVE_SIGCONTEXT 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13784 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13785 | else case e in #( |
| 13786 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13787 | printf "%s\n" "no" >&6; } ;; |
| 13788 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13789 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13790 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13791 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13792 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 |
| 13793 | printf %s "checking getcwd implementation is broken... " >&6; } |
| 13794 | if test ${vim_cv_getcwd_broken+y} |
| 13795 | then : |
| 13796 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13797 | else case e in #( |
| 13798 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13799 | if test "$cross_compiling" = yes |
| 13800 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13801 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 13802 | vim_cv_getcwd_broken=no |
| 13803 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_getcwd_broken'" >&5 |
| 13804 | printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_getcwd_broken'" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13805 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13806 | else case e in #( |
| 13807 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13808 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13809 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13810 | #include "confdefs.h" |
| 13811 | #ifdef HAVE_UNISTD_H |
| 13812 | #include <unistd.h> |
| 13813 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13814 | char *dagger[] = { "IFS=pwd", 0 }; |
Bram Moolenaar | 0f0d3a7 | 2022-06-19 18:02:05 +0100 | [diff] [blame] | 13815 | int main() |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13816 | { |
| 13817 | char buffer[500]; |
| 13818 | extern char **environ; |
| 13819 | environ = dagger; |
| 13820 | return getcwd(buffer, 500) ? 0 : 1; |
| 13821 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13822 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13823 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13824 | if ac_fn_c_try_run "$LINENO" |
| 13825 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13826 | |
| 13827 | vim_cv_getcwd_broken=no |
| 13828 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13829 | else case e in #( |
| 13830 | e) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13831 | vim_cv_getcwd_broken=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13832 | ;; |
| 13833 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13834 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 13835 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13836 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 13837 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13838 | fi |
| 13839 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 13840 | ;; |
| 13841 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13842 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13843 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 |
| 13844 | printf "%s\n" "$vim_cv_getcwd_broken" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13845 | |
| 13846 | if test "x$vim_cv_getcwd_broken" = "xyes" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13847 | printf "%s\n" "#define BAD_GETCWD 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13848 | |
Bram Moolenaar | 63d2555 | 2019-05-10 21:28:38 +0200 | [diff] [blame] | 13849 | ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13850 | if test "x$ac_cv_func_getwd" = xyes |
| 13851 | then : |
| 13852 | printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h |
Bram Moolenaar | 63d2555 | 2019-05-10 21:28:38 +0200 | [diff] [blame] | 13853 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13854 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13855 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13856 | fi |
| 13857 | |
| 13858 | ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir" |
| 13859 | if test "x$ac_cv_func_fchdir" = xyes |
| 13860 | then : |
| 13861 | printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13862 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13863 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13864 | ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" |
| 13865 | if test "x$ac_cv_func_fchown" = xyes |
| 13866 | then : |
| 13867 | printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13868 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 13869 | fi |
| 13870 | ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod" |
| 13871 | if test "x$ac_cv_func_fchmod" = xyes |
| 13872 | then : |
| 13873 | printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h |
| 13874 | |
| 13875 | fi |
| 13876 | ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync" |
| 13877 | if test "x$ac_cv_func_fsync" = xyes |
| 13878 | then : |
| 13879 | printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h |
| 13880 | |
| 13881 | fi |
| 13882 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
| 13883 | if test "x$ac_cv_func_getcwd" = xyes |
| 13884 | then : |
| 13885 | printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h |
| 13886 | |
| 13887 | fi |
| 13888 | ac_fn_c_check_func "$LINENO" "getpseudotty" "ac_cv_func_getpseudotty" |
| 13889 | if test "x$ac_cv_func_getpseudotty" = xyes |
| 13890 | then : |
| 13891 | printf "%s\n" "#define HAVE_GETPSEUDOTTY 1" >>confdefs.h |
| 13892 | |
| 13893 | fi |
| 13894 | ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent" |
| 13895 | if test "x$ac_cv_func_getpwent" = xyes |
| 13896 | then : |
| 13897 | printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h |
| 13898 | |
| 13899 | fi |
| 13900 | ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam" |
| 13901 | if test "x$ac_cv_func_getpwnam" = xyes |
| 13902 | then : |
| 13903 | printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h |
| 13904 | |
| 13905 | fi |
| 13906 | ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" |
| 13907 | if test "x$ac_cv_func_getpwuid" = xyes |
| 13908 | then : |
| 13909 | printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h |
| 13910 | |
| 13911 | fi |
| 13912 | ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" |
| 13913 | if test "x$ac_cv_func_getrlimit" = xyes |
| 13914 | then : |
| 13915 | printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h |
| 13916 | |
| 13917 | fi |
| 13918 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
| 13919 | if test "x$ac_cv_func_gettimeofday" = xyes |
| 13920 | then : |
| 13921 | printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h |
| 13922 | |
| 13923 | fi |
| 13924 | ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" |
| 13925 | if test "x$ac_cv_func_localtime_r" = xyes |
| 13926 | then : |
| 13927 | printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h |
| 13928 | |
| 13929 | fi |
| 13930 | ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" |
| 13931 | if test "x$ac_cv_func_lstat" = xyes |
| 13932 | then : |
| 13933 | printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h |
| 13934 | |
| 13935 | fi |
| 13936 | ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" |
| 13937 | if test "x$ac_cv_func_memset" = xyes |
| 13938 | then : |
| 13939 | printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h |
| 13940 | |
| 13941 | fi |
| 13942 | ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" |
| 13943 | if test "x$ac_cv_func_mkdtemp" = xyes |
| 13944 | then : |
| 13945 | printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h |
| 13946 | |
| 13947 | fi |
| 13948 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
| 13949 | if test "x$ac_cv_func_nanosleep" = xyes |
| 13950 | then : |
| 13951 | printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
| 13952 | |
| 13953 | fi |
| 13954 | ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir" |
| 13955 | if test "x$ac_cv_func_opendir" = xyes |
| 13956 | then : |
| 13957 | printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h |
| 13958 | |
| 13959 | fi |
| 13960 | ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" |
| 13961 | if test "x$ac_cv_func_putenv" = xyes |
| 13962 | then : |
| 13963 | printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h |
| 13964 | |
| 13965 | fi |
| 13966 | ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort" |
| 13967 | if test "x$ac_cv_func_qsort" = xyes |
| 13968 | then : |
| 13969 | printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h |
| 13970 | |
| 13971 | fi |
| 13972 | ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink" |
| 13973 | if test "x$ac_cv_func_readlink" = xyes |
| 13974 | then : |
| 13975 | printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h |
| 13976 | |
| 13977 | fi |
| 13978 | ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" |
| 13979 | if test "x$ac_cv_func_select" = xyes |
| 13980 | then : |
| 13981 | printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h |
| 13982 | |
| 13983 | fi |
| 13984 | ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" |
| 13985 | if test "x$ac_cv_func_setenv" = xyes |
| 13986 | then : |
| 13987 | printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h |
| 13988 | |
| 13989 | fi |
| 13990 | ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid" |
| 13991 | if test "x$ac_cv_func_getpgid" = xyes |
| 13992 | then : |
| 13993 | printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h |
| 13994 | |
| 13995 | fi |
| 13996 | ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" |
| 13997 | if test "x$ac_cv_func_setpgid" = xyes |
| 13998 | then : |
| 13999 | printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h |
| 14000 | |
| 14001 | fi |
| 14002 | ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" |
| 14003 | if test "x$ac_cv_func_setsid" = xyes |
| 14004 | then : |
| 14005 | printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h |
| 14006 | |
| 14007 | fi |
| 14008 | ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack" |
| 14009 | if test "x$ac_cv_func_sigaltstack" = xyes |
| 14010 | then : |
| 14011 | printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h |
| 14012 | |
| 14013 | fi |
| 14014 | ac_fn_c_check_func "$LINENO" "sigstack" "ac_cv_func_sigstack" |
| 14015 | if test "x$ac_cv_func_sigstack" = xyes |
| 14016 | then : |
| 14017 | printf "%s\n" "#define HAVE_SIGSTACK 1" >>confdefs.h |
| 14018 | |
| 14019 | fi |
| 14020 | ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset" |
| 14021 | if test "x$ac_cv_func_sigset" = xyes |
| 14022 | then : |
| 14023 | printf "%s\n" "#define HAVE_SIGSET 1" >>confdefs.h |
| 14024 | |
| 14025 | fi |
| 14026 | ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp" |
| 14027 | if test "x$ac_cv_func_sigsetjmp" = xyes |
| 14028 | then : |
| 14029 | printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h |
| 14030 | |
| 14031 | fi |
| 14032 | ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" |
| 14033 | if test "x$ac_cv_func_sigaction" = xyes |
| 14034 | then : |
| 14035 | printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h |
| 14036 | |
| 14037 | fi |
| 14038 | ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" |
| 14039 | if test "x$ac_cv_func_sigprocmask" = xyes |
| 14040 | then : |
| 14041 | printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h |
| 14042 | |
| 14043 | fi |
| 14044 | ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec" |
| 14045 | if test "x$ac_cv_func_sigvec" = xyes |
| 14046 | then : |
| 14047 | printf "%s\n" "#define HAVE_SIGVEC 1" >>confdefs.h |
| 14048 | |
| 14049 | fi |
| 14050 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
| 14051 | if test "x$ac_cv_func_strcasecmp" = xyes |
| 14052 | then : |
| 14053 | printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h |
| 14054 | |
| 14055 | fi |
| 14056 | ac_fn_c_check_func "$LINENO" "strcoll" "ac_cv_func_strcoll" |
| 14057 | if test "x$ac_cv_func_strcoll" = xyes |
| 14058 | then : |
| 14059 | printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h |
| 14060 | |
| 14061 | fi |
| 14062 | ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" |
| 14063 | if test "x$ac_cv_func_strerror" = xyes |
| 14064 | then : |
| 14065 | printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h |
| 14066 | |
| 14067 | fi |
| 14068 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" |
| 14069 | if test "x$ac_cv_func_strftime" = xyes |
| 14070 | then : |
| 14071 | printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h |
| 14072 | |
| 14073 | fi |
| 14074 | ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp" |
| 14075 | if test "x$ac_cv_func_stricmp" = xyes |
| 14076 | then : |
| 14077 | printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h |
| 14078 | |
| 14079 | fi |
| 14080 | ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" |
| 14081 | if test "x$ac_cv_func_strncasecmp" = xyes |
| 14082 | then : |
| 14083 | printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h |
| 14084 | |
| 14085 | fi |
| 14086 | ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp" |
| 14087 | if test "x$ac_cv_func_strnicmp" = xyes |
| 14088 | then : |
| 14089 | printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h |
| 14090 | |
| 14091 | fi |
| 14092 | ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk" |
| 14093 | if test "x$ac_cv_func_strpbrk" = xyes |
| 14094 | then : |
| 14095 | printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h |
| 14096 | |
| 14097 | fi |
| 14098 | ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" |
| 14099 | if test "x$ac_cv_func_strptime" = xyes |
| 14100 | then : |
| 14101 | printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h |
| 14102 | |
| 14103 | fi |
| 14104 | ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" |
| 14105 | if test "x$ac_cv_func_strtol" = xyes |
| 14106 | then : |
| 14107 | printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h |
| 14108 | |
| 14109 | fi |
| 14110 | ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" |
| 14111 | if test "x$ac_cv_func_tgetent" = xyes |
| 14112 | then : |
| 14113 | printf "%s\n" "#define HAVE_TGETENT 1" >>confdefs.h |
| 14114 | |
| 14115 | fi |
| 14116 | ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" |
| 14117 | if test "x$ac_cv_func_towlower" = xyes |
| 14118 | then : |
| 14119 | printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h |
| 14120 | |
| 14121 | fi |
| 14122 | ac_fn_c_check_func "$LINENO" "towupper" "ac_cv_func_towupper" |
| 14123 | if test "x$ac_cv_func_towupper" = xyes |
| 14124 | then : |
| 14125 | printf "%s\n" "#define HAVE_TOWUPPER 1" >>confdefs.h |
| 14126 | |
| 14127 | fi |
| 14128 | ac_fn_c_check_func "$LINENO" "iswupper" "ac_cv_func_iswupper" |
| 14129 | if test "x$ac_cv_func_iswupper" = xyes |
| 14130 | then : |
| 14131 | printf "%s\n" "#define HAVE_ISWUPPER 1" >>confdefs.h |
| 14132 | |
| 14133 | fi |
| 14134 | ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" |
| 14135 | if test "x$ac_cv_func_tzset" = xyes |
| 14136 | then : |
| 14137 | printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h |
| 14138 | |
| 14139 | fi |
| 14140 | ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" |
| 14141 | if test "x$ac_cv_func_usleep" = xyes |
| 14142 | then : |
| 14143 | printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h |
| 14144 | |
| 14145 | fi |
| 14146 | ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" |
| 14147 | if test "x$ac_cv_func_utime" = xyes |
| 14148 | then : |
| 14149 | printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h |
| 14150 | |
| 14151 | fi |
| 14152 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" |
| 14153 | if test "x$ac_cv_func_utimes" = xyes |
| 14154 | then : |
| 14155 | printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h |
| 14156 | |
| 14157 | fi |
| 14158 | ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen" |
| 14159 | if test "x$ac_cv_func_mblen" = xyes |
| 14160 | then : |
| 14161 | printf "%s\n" "#define HAVE_MBLEN 1" >>confdefs.h |
| 14162 | |
| 14163 | fi |
| 14164 | ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" |
| 14165 | if test "x$ac_cv_func_ftruncate" = xyes |
| 14166 | then : |
| 14167 | printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h |
| 14168 | |
| 14169 | fi |
| 14170 | ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
| 14171 | if test "x$ac_cv_func_unsetenv" = xyes |
| 14172 | then : |
| 14173 | printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h |
| 14174 | |
| 14175 | fi |
| 14176 | ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt" |
| 14177 | if test "x$ac_cv_func_posix_openpt" = xyes |
| 14178 | then : |
| 14179 | printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h |
| 14180 | |
| 14181 | fi |
| 14182 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
| 14183 | if test "x$ac_cv_func_clock_gettime" = xyes |
| 14184 | then : |
| 14185 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14186 | |
| 14187 | fi |
Jonas Sortie Termansen | 8bb5eaf | 2024-11-04 20:32:27 +0100 | [diff] [blame] | 14188 | ac_fn_c_check_func "$LINENO" "sync" "ac_cv_func_sync" |
| 14189 | if test "x$ac_cv_func_sync" = xyes |
| 14190 | then : |
| 14191 | printf "%s\n" "#define HAVE_SYNC 1" >>confdefs.h |
| 14192 | |
| 14193 | fi |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14194 | |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14195 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14196 | |
| 14197 | |
| 14198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
| 14199 | printf %s "checking types of arguments for select... " >&6; } |
| 14200 | if test ${ac_cv_func_select_args+y} |
| 14201 | then : |
| 14202 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14203 | else case e in #( |
| 14204 | e) ac_cv_func_select_args='int,int *,struct timeval *' |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14205 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14206 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
| 14207 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
| 14208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14209 | /* end confdefs.h. */ |
| 14210 | $ac_includes_default |
| 14211 | #ifdef HAVE_SYS_SELECT_H |
| 14212 | # include <sys/select.h> |
| 14213 | #endif |
| 14214 | #ifdef HAVE_SYS_SOCKET_H |
| 14215 | # include <sys/socket.h> |
| 14216 | #endif |
| 14217 | |
| 14218 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14219 | main (void) |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14220 | { |
| 14221 | extern int select ($ac_arg1, |
| 14222 | $ac_arg234, $ac_arg234, $ac_arg234, |
| 14223 | $ac_arg5); |
| 14224 | ; |
| 14225 | return 0; |
| 14226 | } |
| 14227 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14228 | if ac_fn_c_try_compile "$LINENO" |
| 14229 | then : |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14230 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
| 14231 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14232 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14233 | done |
| 14234 | done |
| 14235 | done |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14236 | ;; |
| 14237 | esac |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14238 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
| 14240 | printf "%s\n" "$ac_cv_func_select_args" >&6; } |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14241 | ac_save_IFS=$IFS; IFS=',' |
| 14242 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
| 14243 | IFS=$ac_save_IFS |
| 14244 | shift |
| 14245 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14246 | printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14247 | |
| 14248 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14249 | printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14250 | |
| 14251 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14252 | printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14253 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14254 | rm -rf conftest* |
Bram Moolenaar | 643b614 | 2018-09-12 20:29:09 +0200 | [diff] [blame] | 14255 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14256 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5 |
| 14257 | printf %s "checking for declarations of fseeko and ftello... " >&6; } |
| 14258 | if test ${ac_cv_func_fseeko_ftello+y} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14259 | then : |
| 14260 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14261 | else case e in #( |
| 14262 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 25153e1 | 2010-02-24 14:47:08 +0100 | [diff] [blame] | 14263 | /* end confdefs.h. */ |
Bram Moolenaar | 25153e1 | 2010-02-24 14:47:08 +0100 | [diff] [blame] | 14264 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14265 | #if defined __hpux && !defined _LARGEFILE_SOURCE |
| 14266 | # include <limits.h> |
| 14267 | # if LONG_MAX >> 31 == 0 |
| 14268 | # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" |
| 14269 | # endif |
| 14270 | #endif |
| 14271 | #include <sys/types.h> /* for off_t */ |
| 14272 | #include <stdio.h> |
| 14273 | |
| 14274 | int |
| 14275 | main (void) |
| 14276 | { |
| 14277 | |
| 14278 | int (*fp1) (FILE *, off_t, int) = fseeko; |
| 14279 | off_t (*fp2) (FILE *) = ftello; |
| 14280 | return fseeko (stdin, 0, 0) |
| 14281 | && fp1 (stdin, 0, 0) |
| 14282 | && ftello (stdin) >= 0 |
| 14283 | && fp2 (stdin) >= 0; |
| 14284 | |
| 14285 | ; |
| 14286 | return 0; |
| 14287 | } |
| 14288 | _ACEOF |
| 14289 | if ac_fn_c_try_compile "$LINENO" |
| 14290 | then : |
| 14291 | ac_cv_func_fseeko_ftello=yes |
| 14292 | else case e in #( |
| 14293 | e) ac_save_CPPFLAGS="$CPPFLAGS" |
| 14294 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1" |
| 14295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14296 | /* end confdefs.h. */ |
| 14297 | |
| 14298 | #if defined __hpux && !defined _LARGEFILE_SOURCE |
| 14299 | # include <limits.h> |
| 14300 | # if LONG_MAX >> 31 == 0 |
| 14301 | # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" |
| 14302 | # endif |
| 14303 | #endif |
| 14304 | #include <sys/types.h> /* for off_t */ |
| 14305 | #include <stdio.h> |
| 14306 | |
| 14307 | int |
| 14308 | main (void) |
| 14309 | { |
| 14310 | |
| 14311 | int (*fp1) (FILE *, off_t, int) = fseeko; |
| 14312 | off_t (*fp2) (FILE *) = ftello; |
| 14313 | return fseeko (stdin, 0, 0) |
| 14314 | && fp1 (stdin, 0, 0) |
| 14315 | && ftello (stdin) >= 0 |
| 14316 | && fp2 (stdin) >= 0; |
| 14317 | |
| 14318 | ; |
| 14319 | return 0; |
| 14320 | } |
| 14321 | _ACEOF |
| 14322 | if ac_fn_c_try_compile "$LINENO" |
| 14323 | then : |
| 14324 | ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE" |
| 14325 | else case e in #( |
| 14326 | e) ac_cv_func_fseeko_ftello=no ;; |
| 14327 | esac |
| 14328 | fi |
| 14329 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 14330 | esac |
| 14331 | fi |
| 14332 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 14333 | esac |
| 14334 | fi |
| 14335 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5 |
| 14336 | printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; } |
| 14337 | if test "$ac_cv_func_fseeko_ftello" != no |
| 14338 | then : |
Bram Moolenaar | 25153e1 | 2010-02-24 14:47:08 +0100 | [diff] [blame] | 14339 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14340 | printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h |
Bram Moolenaar | 25153e1 | 2010-02-24 14:47:08 +0100 | [diff] [blame] | 14341 | |
| 14342 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14343 | if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE" |
| 14344 | then : |
| 14345 | |
| 14346 | printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
| 14347 | |
| 14348 | fi |
Bram Moolenaar | 25153e1 | 2010-02-24 14:47:08 +0100 | [diff] [blame] | 14349 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14350 | |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14351 | # Check whether --enable-largefile was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14352 | if test ${enable_largefile+y} |
| 14353 | then : |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14354 | enableval=$enable_largefile; |
| 14355 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14356 | if test "$enable_largefile,$enable_year2038" != no,no |
| 14357 | then : |
| 14358 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 |
| 14359 | printf %s "checking for $CC option to enable large file support... " >&6; } |
| 14360 | if test ${ac_cv_sys_largefile_opts+y} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14361 | then : |
| 14362 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14363 | else case e in #( |
| 14364 | e) ac_save_CC="$CC" |
| 14365 | ac_opt_found=no |
| 14366 | for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do |
| 14367 | if test x"$ac_opt" != x"none needed" |
| 14368 | then : |
| 14369 | CC="$ac_save_CC $ac_opt" |
| 14370 | fi |
| 14371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14372 | /* end confdefs.h. */ |
| 14373 | #include <sys/types.h> |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14374 | #ifndef FTYPE |
| 14375 | # define FTYPE off_t |
| 14376 | #endif |
| 14377 | /* Check that FTYPE can represent 2**63 - 1 correctly. |
| 14378 | We can't simply define LARGE_FTYPE to be 9223372036854775807, |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14379 | since some C++ compilers masquerading as C compilers |
| 14380 | incorrectly reject 9223372036854775807. */ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14381 | #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) |
| 14382 | int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 |
| 14383 | && LARGE_FTYPE % 2147483647 == 1) |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14384 | ? 1 : -1]; |
| 14385 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14386 | main (void) |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14387 | { |
| 14388 | |
| 14389 | ; |
| 14390 | return 0; |
| 14391 | } |
| 14392 | _ACEOF |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14393 | if ac_fn_c_try_compile "$LINENO" |
| 14394 | then : |
| 14395 | if test x"$ac_opt" = x"none needed" |
| 14396 | then : |
| 14397 | # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. |
| 14398 | CC="$CC -DFTYPE=ino_t" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14399 | if ac_fn_c_try_compile "$LINENO" |
| 14400 | then : |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14401 | |
| 14402 | else case e in #( |
| 14403 | e) CC="$CC -D_FILE_OFFSET_BITS=64" |
| 14404 | if ac_fn_c_try_compile "$LINENO" |
| 14405 | then : |
| 14406 | ac_opt='-D_FILE_OFFSET_BITS=64' |
| 14407 | fi |
| 14408 | rm -f core conftest.err conftest.$ac_objext conftest.beam ;; |
| 14409 | esac |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14410 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14411 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14412 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14413 | ac_cv_sys_largefile_opts=$ac_opt |
| 14414 | ac_opt_found=yes |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14415 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14416 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14417 | test $ac_opt_found = no || break |
| 14418 | done |
| 14419 | CC="$ac_save_CC" |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14420 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14421 | test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; |
| 14422 | esac |
| 14423 | fi |
| 14424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 |
| 14425 | printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } |
| 14426 | |
| 14427 | ac_have_largefile=yes |
| 14428 | case $ac_cv_sys_largefile_opts in #( |
| 14429 | "none needed") : |
| 14430 | ;; #( |
| 14431 | "supported through gnulib") : |
| 14432 | ;; #( |
| 14433 | "support not detected") : |
| 14434 | ac_have_largefile=no ;; #( |
| 14435 | "-D_FILE_OFFSET_BITS=64") : |
| 14436 | |
| 14437 | printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
| 14438 | ;; #( |
| 14439 | "-D_LARGE_FILES=1") : |
| 14440 | |
| 14441 | printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h |
| 14442 | ;; #( |
| 14443 | "-n32") : |
| 14444 | CC="$CC -n32" ;; #( |
| 14445 | *) : |
| 14446 | as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; |
| 14447 | esac |
| 14448 | |
| 14449 | if test "$enable_year2038" != no |
| 14450 | then : |
| 14451 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 |
| 14452 | printf %s "checking for $CC option for timestamps after 2038... " >&6; } |
| 14453 | if test ${ac_cv_sys_year2038_opts+y} |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14454 | then : |
| 14455 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14456 | else case e in #( |
| 14457 | e) ac_save_CPPFLAGS="$CPPFLAGS" |
| 14458 | ac_opt_found=no |
| 14459 | for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do |
| 14460 | if test x"$ac_opt" != x"none needed" |
| 14461 | then : |
| 14462 | CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" |
| 14463 | fi |
| 14464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14465 | /* end confdefs.h. */ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14466 | |
| 14467 | #include <time.h> |
| 14468 | /* Check that time_t can represent 2**32 - 1 correctly. */ |
| 14469 | #define LARGE_TIME_T \\ |
| 14470 | ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) |
| 14471 | int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 |
| 14472 | && LARGE_TIME_T % 65537 == 0) |
| 14473 | ? 1 : -1]; |
| 14474 | |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14475 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14476 | main (void) |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14477 | { |
| 14478 | |
| 14479 | ; |
| 14480 | return 0; |
| 14481 | } |
| 14482 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14483 | if ac_fn_c_try_compile "$LINENO" |
| 14484 | then : |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14485 | ac_cv_sys_year2038_opts="$ac_opt" |
| 14486 | ac_opt_found=yes |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14487 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14488 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14489 | test $ac_opt_found = no || break |
| 14490 | done |
| 14491 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 14492 | test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14493 | esac |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14494 | fi |
| 14495 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 |
| 14496 | printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14497 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14498 | ac_have_year2038=yes |
| 14499 | case $ac_cv_sys_year2038_opts in #( |
| 14500 | "none needed") : |
| 14501 | ;; #( |
| 14502 | "support not detected") : |
| 14503 | ac_have_year2038=no ;; #( |
| 14504 | "-D_TIME_BITS=64") : |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14505 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14506 | printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h |
| 14507 | ;; #( |
| 14508 | "-D__MINGW_USE_VC2005_COMPAT") : |
| 14509 | |
| 14510 | printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h |
| 14511 | ;; #( |
| 14512 | "-U_USE_32_BIT_TIME_T"*) : |
| 14513 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 14514 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 14515 | as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It |
| 14516 | will stop working after mid-January 2038. Remove |
| 14517 | _USE_32BIT_TIME_T from the compiler flags. |
| 14518 | See 'config.log' for more details" "$LINENO" 5; } ;; #( |
| 14519 | *) : |
| 14520 | as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14521 | esac |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14522 | |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14523 | fi |
| 14524 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14525 | fi |
Bram Moolenaar | 317fd3a | 2010-05-07 16:05:55 +0200 | [diff] [blame] | 14526 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14527 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-canberra argument" >&5 |
| 14528 | printf %s "checking --enable-canberra argument... " >&6; } |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 14529 | # Check whether --enable-canberra was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14530 | if test ${enable_canberra+y} |
| 14531 | then : |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 14532 | enableval=$enable_canberra; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14533 | else case e in #( |
| 14534 | e) enable_canberra="maybe" ;; |
| 14535 | esac |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 14536 | fi |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 14537 | |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 14538 | |
| 14539 | if test "$enable_canberra" = "maybe"; then |
Martin Tournoij | 25f3a14 | 2022-10-08 19:26:41 +0100 | [diff] [blame] | 14540 | if test "$features" = "huge"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to yes" >&5 |
| 14542 | printf "%s\n" "Defaulting to yes" >&6; } |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 14543 | enable_canberra="yes" |
| 14544 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14545 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to no" >&5 |
| 14546 | printf "%s\n" "Defaulting to no" >&6; } |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 14547 | enable_canberra="no" |
| 14548 | fi |
| 14549 | else |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 14550 | if test "$enable_canberra" = "yes" -a "$has_eval" = "no"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot use sound with tiny features" >&5 |
| 14552 | printf "%s\n" "cannot use sound with tiny features" >&6; } |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 14553 | enable_canberra="no" |
| 14554 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14555 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_canberra" >&5 |
| 14556 | printf "%s\n" "$enable_canberra" >&6; } |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 14557 | fi |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 14558 | fi |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 14559 | if test "$enable_canberra" = "yes"; then |
| 14560 | if test "x$PKG_CONFIG" != "xno"; then |
| 14561 | canberra_lib=`$PKG_CONFIG --libs libcanberra 2>/dev/null` |
| 14562 | canberra_cflags=`$PKG_CONFIG --cflags libcanberra 2>/dev/null` |
| 14563 | fi |
| 14564 | if test "x$canberra_lib" = "x"; then |
| 14565 | canberra_lib=-lcanberra |
| 14566 | canberra_cflags=-D_REENTRANT |
| 14567 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14568 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcanberra" >&5 |
| 14569 | printf %s "checking for libcanberra... " >&6; } |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 14570 | ac_save_CFLAGS="$CFLAGS" |
| 14571 | ac_save_LIBS="$LIBS" |
Bram Moolenaar | 1247126 | 2022-01-18 11:11:25 +0000 | [diff] [blame] | 14572 | if `echo "$CFLAGS" | grep -v "$canberra_cflags" 2>/dev/null`; then |
Christian Brabandt | 6b9efdd | 2021-09-09 17:14:50 +0200 | [diff] [blame] | 14573 | CFLAGS="$CFLAGS $canberra_cflags" |
| 14574 | fi |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 14575 | LIBS="$LIBS $canberra_lib" |
| 14576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 14577 | /* end confdefs.h. */ |
| 14578 | |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 14579 | # include <canberra.h> |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 14580 | |
| 14581 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14582 | main (void) |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 14583 | { |
| 14584 | |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 14585 | ca_context *hello; |
| 14586 | ca_context_create(&hello); |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 14587 | ; |
| 14588 | return 0; |
| 14589 | } |
| 14590 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14591 | if ac_fn_c_try_link "$LINENO" |
| 14592 | then : |
| 14593 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14594 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_CANBERRA 1" >>confdefs.h |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 14595 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14596 | else case e in #( |
| 14597 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no; try installing libcanberra-dev" >&5 |
| 14598 | printf "%s\n" "no; try installing libcanberra-dev" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS" ;; |
| 14599 | esac |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 14600 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14601 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 14602 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 2160667 | 2019-06-14 20:40:58 +0200 | [diff] [blame] | 14603 | fi |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 14604 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-libsodium argument" >&5 |
| 14606 | printf %s "checking --enable-libsodium argument... " >&6; } |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 14607 | # Check whether --enable-libsodium was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14608 | if test ${enable_libsodium+y} |
| 14609 | then : |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 14610 | enableval=$enable_libsodium; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14611 | else case e in #( |
| 14612 | e) enable_libsodium="maybe" ;; |
| 14613 | esac |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 14614 | fi |
| 14615 | |
| 14616 | |
| 14617 | if test "$enable_libsodium" = "maybe"; then |
Martin Tournoij | 25f3a14 | 2022-10-08 19:26:41 +0100 | [diff] [blame] | 14618 | if test "$features" = "huge"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14619 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to yes" >&5 |
| 14620 | printf "%s\n" "Defaulting to yes" >&6; } |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 14621 | enable_libsodium="yes" |
| 14622 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Defaulting to no" >&5 |
| 14624 | printf "%s\n" "Defaulting to no" >&6; } |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 14625 | enable_libsodium="no" |
| 14626 | fi |
| 14627 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14628 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libsodium" >&5 |
| 14629 | printf "%s\n" "$enable_libsodium" >&6; } |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 14630 | fi |
| 14631 | if test "$enable_libsodium" = "yes"; then |
| 14632 | if test "x$PKG_CONFIG" != "xno"; then |
| 14633 | libsodium_lib=`$PKG_CONFIG --libs libsodium 2>/dev/null` |
| 14634 | libsodium_cflags=`$PKG_CONFIG --cflags libsodium 2>/dev/null` |
| 14635 | fi |
| 14636 | if test "x$libsodium_lib" = "x"; then |
| 14637 | libsodium_lib=-lsodium |
| 14638 | libsodium_cflags= |
| 14639 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14640 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsodium" >&5 |
| 14641 | printf %s "checking for libsodium... " >&6; } |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 14642 | ac_save_CFLAGS="$CFLAGS" |
| 14643 | ac_save_LIBS="$LIBS" |
| 14644 | CFLAGS="$CFLAGS $libsodium_cflags" |
| 14645 | LIBS="$LIBS $libsodium_lib" |
| 14646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14647 | /* end confdefs.h. */ |
| 14648 | |
| 14649 | # include <sodium.h> |
| 14650 | |
| 14651 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14652 | main (void) |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 14653 | { |
| 14654 | |
| 14655 | printf("%d", sodium_init()); |
| 14656 | ; |
| 14657 | return 0; |
| 14658 | } |
| 14659 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14660 | if ac_fn_c_try_link "$LINENO" |
| 14661 | then : |
| 14662 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14663 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SODIUM 1" >>confdefs.h |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 14664 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14665 | else case e in #( |
| 14666 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no; try installing libsodium-dev" >&5 |
| 14667 | printf "%s\n" "no; try installing libsodium-dev" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS" ;; |
| 14668 | esac |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 14669 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14670 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Brabandt | f573c6e | 2021-06-20 14:02:16 +0200 | [diff] [blame] | 14671 | conftest$ac_exeext conftest.$ac_ext |
| 14672 | fi |
Bram Moolenaar | 427f5b6 | 2019-06-09 13:43:51 +0200 | [diff] [blame] | 14673 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 |
| 14675 | printf %s "checking for st_blksize... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 14676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14677 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14678 | #include <sys/types.h> |
| 14679 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14680 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14681 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14682 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14683 | struct stat st; |
| 14684 | int n; |
| 14685 | |
| 14686 | stat("/", &st); |
| 14687 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14688 | ; |
| 14689 | return 0; |
| 14690 | } |
| 14691 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14692 | if ac_fn_c_try_compile "$LINENO" |
| 14693 | then : |
| 14694 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14695 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_ST_BLKSIZE 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14696 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14697 | else case e in #( |
| 14698 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14699 | printf "%s\n" "no" >&6; } ;; |
| 14700 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14701 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14702 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14703 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timer_create without -lrt" >&5 |
| 14705 | printf %s "checking for timer_create without -lrt... " >&6; } |
| 14706 | if test ${vim_cv_timer_create+y} |
| 14707 | then : |
| 14708 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14709 | else case e in #( |
| 14710 | e) |
Bram Moolenaar | f2ce76a | 2022-07-02 11:40:40 +0100 | [diff] [blame] | 14711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Paul Ollis | 6574577 | 2022-06-05 16:55:54 +0100 | [diff] [blame] | 14712 | /* end confdefs.h. */ |
| 14713 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14714 | #include <time.h> |
Paul Ollis | 6574577 | 2022-06-05 16:55:54 +0100 | [diff] [blame] | 14715 | |
| 14716 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14717 | main (void) |
Paul Ollis | 6574577 | 2022-06-05 16:55:54 +0100 | [diff] [blame] | 14718 | { |
| 14719 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14720 | timer_create(CLOCK_MONOTONIC, NULL, NULL); |
Paul Ollis | 6574577 | 2022-06-05 16:55:54 +0100 | [diff] [blame] | 14721 | |
| 14722 | ; |
| 14723 | return 0; |
| 14724 | } |
| 14725 | _ACEOF |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14726 | if ac_fn_c_try_compile "$LINENO" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14727 | then : |
Richard Purdie | 509695c | 2022-07-24 20:48:00 +0100 | [diff] [blame] | 14728 | vim_cv_timer_create=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14729 | else case e in #( |
| 14730 | e) vim_cv_timer_create=no |
| 14731 | ;; |
| 14732 | esac |
Bram Moolenaar | f2ce76a | 2022-07-02 11:40:40 +0100 | [diff] [blame] | 14733 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14734 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 14735 | esac |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14736 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_timer_create" >&5 |
| 14738 | printf "%s\n" "$vim_cv_timer_create" >&6; } |
Bram Moolenaar | efffa53 | 2022-07-28 22:39:54 +0100 | [diff] [blame] | 14739 | |
| 14740 | if test "x$vim_cv_timer_create" = "xno" ; then |
| 14741 | save_LIBS="$LIBS" |
| 14742 | LIBS="$LIBS -lrt" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timer_create with -lrt" >&5 |
| 14744 | printf %s "checking for timer_create with -lrt... " >&6; } |
| 14745 | if test ${vim_cv_timer_create_with_lrt+y} |
| 14746 | then : |
| 14747 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14748 | else case e in #( |
| 14749 | e) |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14751 | /* end confdefs.h. */ |
| 14752 | |
| 14753 | #include <time.h> |
| 14754 | |
| 14755 | int |
| 14756 | main (void) |
| 14757 | { |
| 14758 | |
| 14759 | timer_create(CLOCK_MONOTONIC, NULL, NULL); |
| 14760 | |
| 14761 | ; |
| 14762 | return 0; |
| 14763 | } |
| 14764 | _ACEOF |
| 14765 | if ac_fn_c_try_compile "$LINENO" |
| 14766 | then : |
| 14767 | vim_cv_timer_create_with_lrt=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14768 | else case e in #( |
| 14769 | e) vim_cv_timer_create_with_lrt=no |
| 14770 | ;; |
| 14771 | esac |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14772 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14773 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 14774 | esac |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14775 | fi |
| 14776 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_timer_create_with_lrt" >&5 |
| 14777 | printf "%s\n" "$vim_cv_timer_create_with_lrt" >&6; } |
| 14778 | LIBS="$save_LIBS" |
| 14779 | else |
| 14780 | vim_cv_timer_create_with_lrt=no |
| 14781 | fi |
| 14782 | |
| 14783 | if test "x$vim_cv_timer_create" = "xyes" || |
| 14784 | test "x$vim_cv_timer_create_with_lrt" = "xyes"; then |
| 14785 | save_LIBS="$LIBS" |
Brandon Maier | cbdc3c1 | 2024-12-18 21:18:01 +0100 | [diff] [blame] | 14786 | if test "x$vim_cv_timer_create_with_lrt" = "xyes" ; then |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14787 | LIBS="$LIBS -lrt" |
| 14788 | fi |
| 14789 | |
| 14790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if timer_create works" >&5 |
| 14791 | printf %s "checking if timer_create works... " >&6; } |
| 14792 | if test ${vim_cv_timer_create_works+y} |
| 14793 | then : |
| 14794 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14795 | else case e in #( |
| 14796 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14797 | if test "$cross_compiling" = yes |
| 14798 | then : |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14799 | vim_cv_timer_create_works=yes |
| 14800 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_timer_create_works'" >&5 |
| 14801 | printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_timer_create_works'" >&2;} |
Bram Moolenaar | efffa53 | 2022-07-28 22:39:54 +0100 | [diff] [blame] | 14802 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14803 | else case e in #( |
| 14804 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | efffa53 | 2022-07-28 22:39:54 +0100 | [diff] [blame] | 14805 | /* end confdefs.h. */ |
| 14806 | |
| 14807 | #if STDC_HEADERS |
| 14808 | # include <stdlib.h> |
| 14809 | # include <stddef.h> |
| 14810 | #endif |
| 14811 | #include <signal.h> |
| 14812 | #include <time.h> |
| 14813 | static void set_flag(union sigval sv) {} |
| 14814 | |
| 14815 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14816 | main (void) |
Bram Moolenaar | efffa53 | 2022-07-28 22:39:54 +0100 | [diff] [blame] | 14817 | { |
| 14818 | |
| 14819 | struct timespec ts; |
| 14820 | struct sigevent action = {0}; |
| 14821 | timer_t timer_id; |
| 14822 | |
| 14823 | action.sigev_notify = SIGEV_THREAD; |
| 14824 | action.sigev_notify_function = set_flag; |
| 14825 | if (timer_create(CLOCK_MONOTONIC, &action, &timer_id) < 0) |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14826 | exit(1); // cannot create a monotonic timer |
Bram Moolenaar | efffa53 | 2022-07-28 22:39:54 +0100 | [diff] [blame] | 14827 | |
| 14828 | ; |
| 14829 | return 0; |
| 14830 | } |
| 14831 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14832 | if ac_fn_c_try_run "$LINENO" |
| 14833 | then : |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14834 | vim_cv_timer_create_works=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14835 | else case e in #( |
| 14836 | e) vim_cv_timer_create_works=no ;; |
| 14837 | esac |
Bram Moolenaar | efffa53 | 2022-07-28 22:39:54 +0100 | [diff] [blame] | 14838 | fi |
Bram Moolenaar | f2ce76a | 2022-07-02 11:40:40 +0100 | [diff] [blame] | 14839 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14840 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 14841 | esac |
Bram Moolenaar | f2ce76a | 2022-07-02 11:40:40 +0100 | [diff] [blame] | 14842 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14843 | ;; |
| 14844 | esac |
Richard Purdie | 509695c | 2022-07-24 20:48:00 +0100 | [diff] [blame] | 14845 | fi |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_timer_create_works" >&5 |
| 14847 | printf "%s\n" "$vim_cv_timer_create_works" >&6; } |
Richard Purdie | 509695c | 2022-07-24 20:48:00 +0100 | [diff] [blame] | 14848 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14849 | if test "x$vim_cv_timer_create_works" = "xyes" ; then |
| 14850 | printf "%s\n" "#define HAVE_TIMER_CREATE 1" >>confdefs.h |
Richard Purdie | 509695c | 2022-07-24 20:48:00 +0100 | [diff] [blame] | 14851 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14852 | else |
| 14853 | LIBS="$save_LIBS" |
| 14854 | fi |
Bram Moolenaar | efffa53 | 2022-07-28 22:39:54 +0100 | [diff] [blame] | 14855 | fi |
Richard Purdie | 509695c | 2022-07-24 20:48:00 +0100 | [diff] [blame] | 14856 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14857 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 |
| 14858 | printf %s "checking whether stat() ignores a trailing slash... " >&6; } |
| 14859 | if test ${vim_cv_stat_ignores_slash+y} |
| 14860 | then : |
| 14861 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14862 | else case e in #( |
| 14863 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14864 | if test "$cross_compiling" = yes |
| 14865 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14866 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 14867 | vim_cv_stat_ignores_slash=yes |
| 14868 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_stat_ignores_slash'" >&5 |
| 14869 | printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_stat_ignores_slash'" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14870 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14871 | else case e in #( |
| 14872 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 14873 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14874 | |
| 14875 | #include "confdefs.h" |
| 14876 | #if STDC_HEADERS |
| 14877 | # include <stdlib.h> |
| 14878 | # include <stddef.h> |
| 14879 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14880 | #include <sys/types.h> |
| 14881 | #include <sys/stat.h> |
Bram Moolenaar | 0f0d3a7 | 2022-06-19 18:02:05 +0100 | [diff] [blame] | 14882 | int main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14883 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14884 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14885 | if ac_fn_c_try_run "$LINENO" |
| 14886 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14887 | |
| 14888 | vim_cv_stat_ignores_slash=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14889 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14890 | else case e in #( |
| 14891 | e) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14892 | vim_cv_stat_ignores_slash=no |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14893 | ;; |
| 14894 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14895 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 14896 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14897 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 14898 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14899 | fi |
| 14900 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14901 | ;; |
| 14902 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14903 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14904 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 |
| 14905 | printf "%s\n" "$vim_cv_stat_ignores_slash" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14906 | |
| 14907 | if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14908 | printf "%s\n" "#define STAT_IGNORES_SLASH 1" >>confdefs.h |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14909 | |
| 14910 | fi |
| 14911 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14912 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5 |
| 14913 | printf %s "checking for nanoseconds field of struct stat... " >&6; } |
| 14914 | if test ${ac_cv_struct_st_mtim_nsec+y} |
| 14915 | then : |
| 14916 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14917 | else case e in #( |
| 14918 | e) ac_save_CPPFLAGS="$CPPFLAGS" |
Leah Neukirchen | 0a7984a | 2021-10-14 21:27:55 +0100 | [diff] [blame] | 14919 | ac_cv_struct_st_mtim_nsec=no |
| 14920 | # st_mtim.tv_nsec -- the usual case |
| 14921 | # st_mtim._tv_nsec -- Solaris 2.6, if |
| 14922 | # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1 |
| 14923 | # && !defined __EXTENSIONS__) |
| 14924 | # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2 |
| 14925 | # st_mtime_n -- AIX 5.2 and above |
| 14926 | # st_mtimespec.tv_nsec -- Darwin (Mac OSX) |
| 14927 | for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do |
| 14928 | CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val" |
| 14929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14930 | /* end confdefs.h. */ |
| 14931 | #include <sys/types.h> |
| 14932 | #include <sys/stat.h> |
| 14933 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14934 | main (void) |
Leah Neukirchen | 0a7984a | 2021-10-14 21:27:55 +0100 | [diff] [blame] | 14935 | { |
| 14936 | struct stat s; s.ST_MTIM_NSEC; |
| 14937 | ; |
| 14938 | return 0; |
| 14939 | } |
| 14940 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14941 | if ac_fn_c_try_compile "$LINENO" |
| 14942 | then : |
Leah Neukirchen | 0a7984a | 2021-10-14 21:27:55 +0100 | [diff] [blame] | 14943 | ac_cv_struct_st_mtim_nsec=$ac_val; break |
| 14944 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14945 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Leah Neukirchen | 0a7984a | 2021-10-14 21:27:55 +0100 | [diff] [blame] | 14946 | done |
| 14947 | CPPFLAGS="$ac_save_CPPFLAGS" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14948 | ;; |
| 14949 | esac |
Leah Neukirchen | 0a7984a | 2021-10-14 21:27:55 +0100 | [diff] [blame] | 14950 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14951 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5 |
| 14952 | printf "%s\n" "$ac_cv_struct_st_mtim_nsec" >&6; } |
Leah Neukirchen | 0a7984a | 2021-10-14 21:27:55 +0100 | [diff] [blame] | 14953 | if test $ac_cv_struct_st_mtim_nsec != no; then |
| 14954 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14955 | printf "%s\n" "#define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec" >>confdefs.h |
Leah Neukirchen | 0a7984a | 2021-10-14 21:27:55 +0100 | [diff] [blame] | 14956 | |
| 14957 | fi |
| 14958 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14959 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 |
| 14960 | printf %s "checking for iconv_open()... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14961 | save_LIBS="$LIBS" |
| 14962 | LIBS="$LIBS -liconv" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 14963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14964 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14965 | |
| 14966 | #ifdef HAVE_ICONV_H |
| 14967 | # include <iconv.h> |
| 14968 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14969 | |
| 14970 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14971 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14972 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14973 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14974 | ; |
| 14975 | return 0; |
| 14976 | } |
| 14977 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14978 | if ac_fn_c_try_link "$LINENO" |
| 14979 | then : |
| 14980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 |
| 14981 | printf "%s\n" "yes; with -liconv" >&6; }; printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14982 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 14983 | else case e in #( |
| 14984 | e) LIBS="$save_LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 14985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14986 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14987 | |
| 14988 | #ifdef HAVE_ICONV_H |
| 14989 | # include <iconv.h> |
| 14990 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14991 | |
| 14992 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 14993 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14994 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14995 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14996 | ; |
| 14997 | return 0; |
| 14998 | } |
| 14999 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15000 | if ac_fn_c_try_link "$LINENO" |
| 15001 | then : |
| 15002 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15003 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15004 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15005 | else case e in #( |
| 15006 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15007 | printf "%s\n" "no" >&6; } ;; |
| 15008 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15009 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15010 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15011 | conftest$ac_exeext conftest.$ac_ext ;; |
| 15012 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15013 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15014 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15015 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15016 | |
| 15017 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15018 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 |
| 15019 | printf %s "checking for nl_langinfo(CODESET)... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15021 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15022 | |
| 15023 | #ifdef HAVE_LANGINFO_H |
| 15024 | # include <langinfo.h> |
| 15025 | #endif |
| 15026 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15027 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15028 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15029 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15030 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15031 | ; |
| 15032 | return 0; |
| 15033 | } |
| 15034 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15035 | if ac_fn_c_try_link "$LINENO" |
| 15036 | then : |
| 15037 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15038 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15039 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15040 | else case e in #( |
| 15041 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15042 | printf "%s\n" "no" >&6; } ;; |
| 15043 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15044 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15045 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15046 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15047 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 |
| 15049 | printf %s "checking for strtod in -lm... " >&6; } |
| 15050 | if test ${ac_cv_lib_m_strtod+y} |
| 15051 | then : |
| 15052 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15053 | else case e in #( |
| 15054 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15055 | LIBS="-lm $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15057 | /* end confdefs.h. */ |
| 15058 | |
| 15059 | /* Override any GCC internal prototype to avoid an error. |
| 15060 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15061 | builtin and then its argument prototype would still apply. |
| 15062 | The 'extern "C"' is for builds by C++ compilers; |
| 15063 | although this is not generally supported in C code supporting it here |
| 15064 | has little cost and some practical benefit (sr 110532). */ |
| 15065 | #ifdef __cplusplus |
| 15066 | extern "C" |
| 15067 | #endif |
| 15068 | char strtod (void); |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15069 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15070 | main (void) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15071 | { |
| 15072 | return strtod (); |
| 15073 | ; |
| 15074 | return 0; |
| 15075 | } |
| 15076 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15077 | if ac_fn_c_try_link "$LINENO" |
| 15078 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15079 | ac_cv_lib_m_strtod=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15080 | else case e in #( |
| 15081 | e) ac_cv_lib_m_strtod=no ;; |
| 15082 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15083 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15084 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15085 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15086 | LIBS=$ac_check_lib_save_LIBS ;; |
| 15087 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15088 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 |
| 15090 | printf "%s\n" "$ac_cv_lib_m_strtod" >&6; } |
| 15091 | if test "x$ac_cv_lib_m_strtod" = xyes |
| 15092 | then : |
| 15093 | printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15094 | |
| 15095 | LIBS="-lm $LIBS" |
| 15096 | |
| 15097 | fi |
| 15098 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15099 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 |
| 15101 | printf %s "checking for isinf()... " >&6; } |
Bram Moolenaar | a6b8976 | 2016-02-29 21:38:26 +0100 | [diff] [blame] | 15102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15103 | /* end confdefs.h. */ |
| 15104 | |
| 15105 | #ifdef HAVE_MATH_H |
| 15106 | # include <math.h> |
| 15107 | #endif |
| 15108 | #if STDC_HEADERS |
| 15109 | # include <stdlib.h> |
| 15110 | # include <stddef.h> |
| 15111 | #endif |
| 15112 | |
| 15113 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15114 | main (void) |
Bram Moolenaar | a6b8976 | 2016-02-29 21:38:26 +0100 | [diff] [blame] | 15115 | { |
| 15116 | int r = isinf(1.11); |
| 15117 | ; |
| 15118 | return 0; |
| 15119 | } |
| 15120 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15121 | if ac_fn_c_try_link "$LINENO" |
| 15122 | then : |
| 15123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15124 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_ISINF 1" >>confdefs.h |
Bram Moolenaar | a6b8976 | 2016-02-29 21:38:26 +0100 | [diff] [blame] | 15125 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15126 | else case e in #( |
| 15127 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15128 | printf "%s\n" "no" >&6; } ;; |
| 15129 | esac |
Bram Moolenaar | a6b8976 | 2016-02-29 21:38:26 +0100 | [diff] [blame] | 15130 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15131 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | a6b8976 | 2016-02-29 21:38:26 +0100 | [diff] [blame] | 15132 | conftest$ac_exeext conftest.$ac_ext |
| 15133 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15134 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 |
| 15135 | printf %s "checking for isnan()... " >&6; } |
Bram Moolenaar | a6b8976 | 2016-02-29 21:38:26 +0100 | [diff] [blame] | 15136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15137 | /* end confdefs.h. */ |
| 15138 | |
| 15139 | #ifdef HAVE_MATH_H |
| 15140 | # include <math.h> |
| 15141 | #endif |
| 15142 | #if STDC_HEADERS |
| 15143 | # include <stdlib.h> |
| 15144 | # include <stddef.h> |
| 15145 | #endif |
| 15146 | |
| 15147 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15148 | main (void) |
Bram Moolenaar | a6b8976 | 2016-02-29 21:38:26 +0100 | [diff] [blame] | 15149 | { |
| 15150 | int r = isnan(1.11); |
| 15151 | ; |
| 15152 | return 0; |
| 15153 | } |
| 15154 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15155 | if ac_fn_c_try_link "$LINENO" |
| 15156 | then : |
| 15157 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15158 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h |
Bram Moolenaar | a6b8976 | 2016-02-29 21:38:26 +0100 | [diff] [blame] | 15159 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15160 | else case e in #( |
| 15161 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15162 | printf "%s\n" "no" >&6; } ;; |
| 15163 | esac |
Bram Moolenaar | a6b8976 | 2016-02-29 21:38:26 +0100 | [diff] [blame] | 15164 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15165 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | a6b8976 | 2016-02-29 21:38:26 +0100 | [diff] [blame] | 15166 | conftest$ac_exeext conftest.$ac_ext |
| 15167 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 |
| 15169 | printf %s "checking --disable-acl argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15170 | # Check whether --enable-acl was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15171 | if test ${enable_acl+y} |
| 15172 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15173 | enableval=$enable_acl; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15174 | else case e in #( |
| 15175 | e) enable_acl="yes" ;; |
| 15176 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15177 | fi |
| 15178 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15179 | if test "$enable_acl" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15180 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15181 | printf "%s\n" "no" >&6; } |
| 15182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 |
| 15183 | printf %s "checking for acl_get_file in -lposix1e... " >&6; } |
| 15184 | if test ${ac_cv_lib_posix1e_acl_get_file+y} |
| 15185 | then : |
| 15186 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15187 | else case e in #( |
| 15188 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15189 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15191 | /* end confdefs.h. */ |
| 15192 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15193 | /* Override any GCC internal prototype to avoid an error. |
| 15194 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15195 | builtin and then its argument prototype would still apply. |
| 15196 | The 'extern "C"' is for builds by C++ compilers; |
| 15197 | although this is not generally supported in C code supporting it here |
| 15198 | has little cost and some practical benefit (sr 110532). */ |
| 15199 | #ifdef __cplusplus |
| 15200 | extern "C" |
| 15201 | #endif |
| 15202 | char acl_get_file (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15203 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15204 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15205 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15206 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15207 | ; |
| 15208 | return 0; |
| 15209 | } |
| 15210 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15211 | if ac_fn_c_try_link "$LINENO" |
| 15212 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15213 | ac_cv_lib_posix1e_acl_get_file=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15214 | else case e in #( |
| 15215 | e) ac_cv_lib_posix1e_acl_get_file=no ;; |
| 15216 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15217 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15218 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15219 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15220 | LIBS=$ac_check_lib_save_LIBS ;; |
| 15221 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15222 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 15224 | printf "%s\n" "$ac_cv_lib_posix1e_acl_get_file" >&6; } |
| 15225 | if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes |
| 15226 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15227 | LIBS="$LIBS -lposix1e" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15228 | else case e in #( |
| 15229 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15230 | printf %s "checking for acl_get_file in -lacl... " >&6; } |
| 15231 | if test ${ac_cv_lib_acl_acl_get_file+y} |
| 15232 | then : |
| 15233 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15234 | else case e in #( |
| 15235 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15236 | LIBS="-lacl $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15238 | /* end confdefs.h. */ |
| 15239 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15240 | /* Override any GCC internal prototype to avoid an error. |
| 15241 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15242 | builtin and then its argument prototype would still apply. |
| 15243 | The 'extern "C"' is for builds by C++ compilers; |
| 15244 | although this is not generally supported in C code supporting it here |
| 15245 | has little cost and some practical benefit (sr 110532). */ |
| 15246 | #ifdef __cplusplus |
| 15247 | extern "C" |
| 15248 | #endif |
| 15249 | char acl_get_file (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15250 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15251 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15252 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15253 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15254 | ; |
| 15255 | return 0; |
| 15256 | } |
| 15257 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15258 | if ac_fn_c_try_link "$LINENO" |
| 15259 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15260 | ac_cv_lib_acl_acl_get_file=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15261 | else case e in #( |
| 15262 | e) ac_cv_lib_acl_acl_get_file=no ;; |
| 15263 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15264 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15265 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15266 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15267 | LIBS=$ac_check_lib_save_LIBS ;; |
| 15268 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15269 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15270 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 15271 | printf "%s\n" "$ac_cv_lib_acl_acl_get_file" >&6; } |
| 15272 | if test "x$ac_cv_lib_acl_acl_get_file" = xyes |
| 15273 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15274 | LIBS="$LIBS -lacl" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 |
| 15276 | printf %s "checking for fgetxattr in -lattr... " >&6; } |
| 15277 | if test ${ac_cv_lib_attr_fgetxattr+y} |
| 15278 | then : |
| 15279 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15280 | else case e in #( |
| 15281 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15282 | LIBS="-lattr $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15284 | /* end confdefs.h. */ |
| 15285 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15286 | /* Override any GCC internal prototype to avoid an error. |
| 15287 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15288 | builtin and then its argument prototype would still apply. |
| 15289 | The 'extern "C"' is for builds by C++ compilers; |
| 15290 | although this is not generally supported in C code supporting it here |
| 15291 | has little cost and some practical benefit (sr 110532). */ |
| 15292 | #ifdef __cplusplus |
| 15293 | extern "C" |
| 15294 | #endif |
| 15295 | char fgetxattr (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15296 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15297 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15298 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15299 | return fgetxattr (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15300 | ; |
| 15301 | return 0; |
| 15302 | } |
| 15303 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15304 | if ac_fn_c_try_link "$LINENO" |
| 15305 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15306 | ac_cv_lib_attr_fgetxattr=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15307 | else case e in #( |
| 15308 | e) ac_cv_lib_attr_fgetxattr=no ;; |
| 15309 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15310 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15311 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15312 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15313 | LIBS=$ac_check_lib_save_LIBS ;; |
| 15314 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15315 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15316 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 15317 | printf "%s\n" "$ac_cv_lib_attr_fgetxattr" >&6; } |
| 15318 | if test "x$ac_cv_lib_attr_fgetxattr" = xyes |
| 15319 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15320 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15321 | fi |
| 15322 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15323 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15324 | ;; |
| 15325 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15326 | fi |
| 15327 | |
| 15328 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15329 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 |
| 15330 | printf %s "checking for POSIX ACL support... " >&6; } |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 15331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15332 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15333 | |
| 15334 | #include <sys/types.h> |
| 15335 | #ifdef HAVE_SYS_ACL_H |
| 15336 | # include <sys/acl.h> |
| 15337 | #endif |
| 15338 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15339 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15340 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15341 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15342 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 15343 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 15344 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15345 | ; |
| 15346 | return 0; |
| 15347 | } |
| 15348 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15349 | if ac_fn_c_try_link "$LINENO" |
| 15350 | then : |
| 15351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15352 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_POSIX_ACL 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15353 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15354 | else case e in #( |
| 15355 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15356 | printf "%s\n" "no" >&6; } ;; |
| 15357 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15358 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15359 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15360 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15361 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 |
| 15363 | printf %s "checking for acl_get in -lsec... " >&6; } |
| 15364 | if test ${ac_cv_lib_sec_acl_get+y} |
| 15365 | then : |
| 15366 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15367 | else case e in #( |
| 15368 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 8d462f9 | 2012-02-05 22:51:33 +0100 | [diff] [blame] | 15369 | LIBS="-lsec $LIBS" |
| 15370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15371 | /* end confdefs.h. */ |
| 15372 | |
| 15373 | /* Override any GCC internal prototype to avoid an error. |
| 15374 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15375 | builtin and then its argument prototype would still apply. |
| 15376 | The 'extern "C"' is for builds by C++ compilers; |
| 15377 | although this is not generally supported in C code supporting it here |
| 15378 | has little cost and some practical benefit (sr 110532). */ |
| 15379 | #ifdef __cplusplus |
| 15380 | extern "C" |
| 15381 | #endif |
| 15382 | char acl_get (void); |
Bram Moolenaar | 8d462f9 | 2012-02-05 22:51:33 +0100 | [diff] [blame] | 15383 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15384 | main (void) |
Bram Moolenaar | 8d462f9 | 2012-02-05 22:51:33 +0100 | [diff] [blame] | 15385 | { |
| 15386 | return acl_get (); |
| 15387 | ; |
| 15388 | return 0; |
| 15389 | } |
| 15390 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15391 | if ac_fn_c_try_link "$LINENO" |
| 15392 | then : |
Bram Moolenaar | 8d462f9 | 2012-02-05 22:51:33 +0100 | [diff] [blame] | 15393 | ac_cv_lib_sec_acl_get=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15394 | else case e in #( |
| 15395 | e) ac_cv_lib_sec_acl_get=no ;; |
| 15396 | esac |
Bram Moolenaar | 8d462f9 | 2012-02-05 22:51:33 +0100 | [diff] [blame] | 15397 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15398 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | 8d462f9 | 2012-02-05 22:51:33 +0100 | [diff] [blame] | 15399 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15400 | LIBS=$ac_check_lib_save_LIBS ;; |
| 15401 | esac |
Bram Moolenaar | 8d462f9 | 2012-02-05 22:51:33 +0100 | [diff] [blame] | 15402 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 |
| 15404 | printf "%s\n" "$ac_cv_lib_sec_acl_get" >&6; } |
| 15405 | if test "x$ac_cv_lib_sec_acl_get" = xyes |
| 15406 | then : |
| 15407 | LIBS="$LIBS -lsec"; printf "%s\n" "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h |
Bram Moolenaar | 8d462f9 | 2012-02-05 22:51:33 +0100 | [diff] [blame] | 15408 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15409 | else case e in #( |
| 15410 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15411 | printf %s "checking for Solaris ACL support... " >&6; } |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 15412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15413 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15414 | |
| 15415 | #ifdef HAVE_SYS_ACL_H |
| 15416 | # include <sys/acl.h> |
| 15417 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15418 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15419 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15420 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15421 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15422 | |
| 15423 | ; |
| 15424 | return 0; |
| 15425 | } |
| 15426 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15427 | if ac_fn_c_try_link "$LINENO" |
| 15428 | then : |
| 15429 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15430 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SOLARIS_ACL 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15431 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15432 | else case e in #( |
| 15433 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15434 | printf "%s\n" "no" >&6; } ;; |
| 15435 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15436 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15437 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15438 | conftest$ac_exeext conftest.$ac_ext ;; |
| 15439 | esac |
Bram Moolenaar | 8d462f9 | 2012-02-05 22:51:33 +0100 | [diff] [blame] | 15440 | fi |
| 15441 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15442 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 |
| 15444 | printf %s "checking for AIX ACL support... " >&6; } |
Bram Moolenaar | d6d3042 | 2018-01-28 22:48:55 +0100 | [diff] [blame] | 15445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15446 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15447 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15448 | #if STDC_HEADERS |
| 15449 | # include <stdlib.h> |
| 15450 | # include <stddef.h> |
| 15451 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15452 | #ifdef HAVE_SYS_ACL_H |
| 15453 | # include <sys/acl.h> |
| 15454 | #endif |
| 15455 | #ifdef HAVE_SYS_ACCESS_H |
| 15456 | # include <sys/access.h> |
| 15457 | #endif |
| 15458 | #define _ALL_SOURCE |
| 15459 | |
| 15460 | #include <sys/stat.h> |
| 15461 | |
| 15462 | int aclsize; |
| 15463 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15464 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15465 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15466 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15467 | aclsize = sizeof(struct acl); |
| 15468 | aclent = (void *)malloc(aclsize); |
| 15469 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15470 | |
| 15471 | ; |
| 15472 | return 0; |
| 15473 | } |
| 15474 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15475 | if ac_fn_c_try_link "$LINENO" |
| 15476 | then : |
| 15477 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15478 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_AIX_ACL 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15479 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15480 | else case e in #( |
| 15481 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15482 | printf "%s\n" "no" >&6; } ;; |
| 15483 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15484 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15485 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15486 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15487 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15489 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15490 | fi |
| 15491 | |
Bram Moolenaar | 3cbe0c0 | 2015-09-08 20:00:22 +0200 | [diff] [blame] | 15492 | if test "x$GTK_CFLAGS" != "x"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15493 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 |
| 15494 | printf %s "checking for pango_shape_full... " >&6; } |
Bram Moolenaar | 3cbe0c0 | 2015-09-08 20:00:22 +0200 | [diff] [blame] | 15495 | ac_save_CFLAGS="$CFLAGS" |
| 15496 | ac_save_LIBS="$LIBS" |
| 15497 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 15498 | LIBS="$LIBS $GTK_LIBS" |
| 15499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15500 | /* end confdefs.h. */ |
| 15501 | #include <gtk/gtk.h> |
| 15502 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15503 | main (void) |
Bram Moolenaar | 3cbe0c0 | 2015-09-08 20:00:22 +0200 | [diff] [blame] | 15504 | { |
| 15505 | pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); |
| 15506 | ; |
| 15507 | return 0; |
| 15508 | } |
| 15509 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15510 | if ac_fn_c_try_link "$LINENO" |
| 15511 | then : |
| 15512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15513 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h |
Bram Moolenaar | 3cbe0c0 | 2015-09-08 20:00:22 +0200 | [diff] [blame] | 15514 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15515 | else case e in #( |
| 15516 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15517 | printf "%s\n" "no" >&6; } ;; |
| 15518 | esac |
Bram Moolenaar | 3cbe0c0 | 2015-09-08 20:00:22 +0200 | [diff] [blame] | 15519 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15520 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | 5325b9b | 2015-09-09 20:27:02 +0200 | [diff] [blame] | 15521 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 3cbe0c0 | 2015-09-08 20:00:22 +0200 | [diff] [blame] | 15522 | CFLAGS="$ac_save_CFLAGS" |
| 15523 | LIBS="$ac_save_LIBS" |
| 15524 | fi |
| 15525 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --enable-gpm argument" >&5 |
| 15527 | printf %s "checking --enable-gpm argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15528 | # Check whether --enable-gpm was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15529 | if test ${enable_gpm+y} |
| 15530 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15531 | enableval=$enable_gpm; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15532 | else case e in #( |
| 15533 | e) enable_gpm="yes" ;; |
| 15534 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15535 | fi |
| 15536 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15537 | |
Bram Moolenaar | 0b40d08 | 2022-03-08 13:32:37 +0000 | [diff] [blame] | 15538 | if test "$enable_gpm" = "yes" -o "$enable_gpm" = "dynamic"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gpm" >&5 |
| 15540 | printf "%s\n" "$enable_gpm" >&6; } |
| 15541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 |
| 15542 | printf %s "checking for gpm... " >&6; } |
| 15543 | if test ${vi_cv_have_gpm+y} |
| 15544 | then : |
| 15545 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15546 | else case e in #( |
| 15547 | e) olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15549 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15550 | #include <gpm.h> |
| 15551 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15552 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15553 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15554 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15555 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15556 | ; |
| 15557 | return 0; |
| 15558 | } |
| 15559 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15560 | if ac_fn_c_try_link "$LINENO" |
| 15561 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15562 | vi_cv_have_gpm=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15563 | else case e in #( |
| 15564 | e) vi_cv_have_gpm=no ;; |
| 15565 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15566 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15567 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15568 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15569 | LIBS="$olibs" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15570 | ;; |
| 15571 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15572 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15573 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 |
| 15574 | printf "%s\n" "$vi_cv_have_gpm" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15575 | if test $vi_cv_have_gpm = yes; then |
Bram Moolenaar | 0b40d08 | 2022-03-08 13:32:37 +0000 | [diff] [blame] | 15576 | if test "$enable_gpm" = "yes"; then |
| 15577 | LIBS="$LIBS -lgpm" |
| 15578 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15579 | printf "%s\n" "#define DYNAMIC_GPM 1" >>confdefs.h |
Bram Moolenaar | 0b40d08 | 2022-03-08 13:32:37 +0000 | [diff] [blame] | 15580 | |
| 15581 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15582 | printf "%s\n" "#define HAVE_GPM 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15583 | |
| 15584 | fi |
| 15585 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15586 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15587 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15588 | fi |
| 15589 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 |
| 15591 | printf %s "checking --disable-sysmouse argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15592 | # Check whether --enable-sysmouse was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15593 | if test ${enable_sysmouse+y} |
| 15594 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15595 | enableval=$enable_sysmouse; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15596 | else case e in #( |
| 15597 | e) enable_sysmouse="yes" ;; |
| 15598 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15599 | fi |
| 15600 | |
| 15601 | |
| 15602 | if test "$enable_sysmouse" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15603 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15604 | printf "%s\n" "no" >&6; } |
| 15605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 |
| 15606 | printf %s "checking for sysmouse... " >&6; } |
| 15607 | if test ${vi_cv_have_sysmouse+y} |
| 15608 | then : |
| 15609 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15610 | else case e in #( |
| 15611 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15612 | /* end confdefs.h. */ |
| 15613 | #include <sys/consio.h> |
| 15614 | #include <signal.h> |
| 15615 | #include <sys/fbio.h> |
| 15616 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15617 | main (void) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15618 | { |
| 15619 | struct mouse_info mouse; |
| 15620 | mouse.operation = MOUSE_MODE; |
| 15621 | mouse.operation = MOUSE_SHOW; |
| 15622 | mouse.u.mode.mode = 0; |
| 15623 | mouse.u.mode.signal = SIGUSR2; |
| 15624 | ; |
| 15625 | return 0; |
| 15626 | } |
| 15627 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15628 | if ac_fn_c_try_link "$LINENO" |
| 15629 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15630 | vi_cv_have_sysmouse=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15631 | else case e in #( |
| 15632 | e) vi_cv_have_sysmouse=no ;; |
| 15633 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15634 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15635 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15636 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15637 | ;; |
| 15638 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15639 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15640 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 |
| 15641 | printf "%s\n" "$vi_cv_have_sysmouse" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15642 | if test $vi_cv_have_sysmouse = yes; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15643 | printf "%s\n" "#define HAVE_SYSMOUSE 1" >>confdefs.h |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15644 | |
| 15645 | fi |
| 15646 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15648 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15649 | fi |
| 15650 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 |
| 15652 | printf %s "checking for FD_CLOEXEC... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | f05da21 | 2009-11-17 16:13:15 +0000 | [diff] [blame] | 15654 | /* end confdefs.h. */ |
| 15655 | #if HAVE_FCNTL_H |
| 15656 | # include <fcntl.h> |
| 15657 | #endif |
| 15658 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15659 | main (void) |
Bram Moolenaar | f05da21 | 2009-11-17 16:13:15 +0000 | [diff] [blame] | 15660 | { |
| 15661 | int flag = FD_CLOEXEC; |
| 15662 | ; |
| 15663 | return 0; |
| 15664 | } |
| 15665 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15666 | if ac_fn_c_try_compile "$LINENO" |
| 15667 | then : |
| 15668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15669 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_FD_CLOEXEC 1" >>confdefs.h |
Bram Moolenaar | f05da21 | 2009-11-17 16:13:15 +0000 | [diff] [blame] | 15670 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15671 | else case e in #( |
| 15672 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 15673 | printf "%s\n" "not usable" >&6; } ;; |
| 15674 | esac |
Bram Moolenaar | f05da21 | 2009-11-17 16:13:15 +0000 | [diff] [blame] | 15675 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15676 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | f05da21 | 2009-11-17 16:13:15 +0000 | [diff] [blame] | 15677 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 |
| 15679 | printf %s "checking for rename... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15681 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15682 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15683 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15684 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15685 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15686 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15687 | ; |
| 15688 | return 0; |
| 15689 | } |
| 15690 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15691 | if ac_fn_c_try_link "$LINENO" |
| 15692 | then : |
| 15693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15694 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_RENAME 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15695 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15696 | else case e in #( |
| 15697 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15698 | printf "%s\n" "no" >&6; } ;; |
| 15699 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15700 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15701 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15702 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15703 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5 |
| 15705 | printf %s "checking for dirfd... " >&6; } |
Bram Moolenaar | b2d0e51 | 2020-05-07 18:37:03 +0200 | [diff] [blame] | 15706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15707 | /* end confdefs.h. */ |
| 15708 | #include <sys/types.h> |
| 15709 | #include <dirent.h> |
| 15710 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15711 | main (void) |
Bram Moolenaar | b2d0e51 | 2020-05-07 18:37:03 +0200 | [diff] [blame] | 15712 | { |
| 15713 | DIR * dir=opendir("dirname"); dirfd(dir); |
| 15714 | ; |
| 15715 | return 0; |
| 15716 | } |
| 15717 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15718 | if ac_fn_c_try_link "$LINENO" |
| 15719 | then : |
| 15720 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15721 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h |
Bram Moolenaar | b2d0e51 | 2020-05-07 18:37:03 +0200 | [diff] [blame] | 15722 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15723 | else case e in #( |
| 15724 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 15725 | printf "%s\n" "not usable" >&6; } ;; |
| 15726 | esac |
Bram Moolenaar | b2d0e51 | 2020-05-07 18:37:03 +0200 | [diff] [blame] | 15727 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15728 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | 9d8bfae | 2020-09-02 21:21:35 +0200 | [diff] [blame] | 15729 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | b2d0e51 | 2020-05-07 18:37:03 +0200 | [diff] [blame] | 15730 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock" >&5 |
| 15732 | printf %s "checking for flock... " >&6; } |
Bram Moolenaar | b2d0e51 | 2020-05-07 18:37:03 +0200 | [diff] [blame] | 15733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15734 | /* end confdefs.h. */ |
| 15735 | #include <sys/file.h> |
| 15736 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15737 | main (void) |
Bram Moolenaar | b2d0e51 | 2020-05-07 18:37:03 +0200 | [diff] [blame] | 15738 | { |
| 15739 | flock(10, LOCK_SH); |
| 15740 | ; |
| 15741 | return 0; |
| 15742 | } |
| 15743 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15744 | if ac_fn_c_try_link "$LINENO" |
| 15745 | then : |
| 15746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15747 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h |
Bram Moolenaar | b2d0e51 | 2020-05-07 18:37:03 +0200 | [diff] [blame] | 15748 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15749 | else case e in #( |
| 15750 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 15751 | printf "%s\n" "not usable" >&6; } ;; |
| 15752 | esac |
Bram Moolenaar | b2d0e51 | 2020-05-07 18:37:03 +0200 | [diff] [blame] | 15753 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15754 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | 9d8bfae | 2020-09-02 21:21:35 +0200 | [diff] [blame] | 15755 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | b2d0e51 | 2020-05-07 18:37:03 +0200 | [diff] [blame] | 15756 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15757 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 |
| 15758 | printf %s "checking for sysctl... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15760 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15761 | #include <sys/types.h> |
| 15762 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15763 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15764 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15765 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15766 | int mib[2], r; |
| 15767 | size_t len; |
| 15768 | |
| 15769 | mib[0] = CTL_HW; |
| 15770 | mib[1] = HW_USERMEM; |
| 15771 | len = sizeof(r); |
| 15772 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15773 | |
| 15774 | ; |
| 15775 | return 0; |
| 15776 | } |
| 15777 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15778 | if ac_fn_c_try_compile "$LINENO" |
| 15779 | then : |
| 15780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15781 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15782 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15783 | else case e in #( |
| 15784 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 15785 | printf "%s\n" "not usable" >&6; } ;; |
| 15786 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15787 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15788 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15789 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 |
| 15791 | printf %s "checking for sysinfo... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15793 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15794 | #include <sys/types.h> |
| 15795 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15796 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15797 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15798 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15799 | struct sysinfo sinfo; |
| 15800 | int t; |
| 15801 | |
| 15802 | (void)sysinfo(&sinfo); |
| 15803 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15804 | |
| 15805 | ; |
| 15806 | return 0; |
| 15807 | } |
| 15808 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15809 | if ac_fn_c_try_link "$LINENO" |
| 15810 | then : |
| 15811 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15812 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYSINFO 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15813 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15814 | else case e in #( |
| 15815 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 15816 | printf "%s\n" "not usable" >&6; } ;; |
| 15817 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15818 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15819 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | e2982d6 | 2021-10-06 11:27:21 +0100 | [diff] [blame] | 15820 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15821 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 |
| 15823 | printf %s "checking for sysinfo.mem_unit... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15825 | /* end confdefs.h. */ |
| 15826 | #include <sys/types.h> |
| 15827 | #include <sys/sysinfo.h> |
| 15828 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15829 | main (void) |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15830 | { |
| 15831 | struct sysinfo sinfo; |
Bram Moolenaar | 3c7ad01 | 2013-06-11 19:53:45 +0200 | [diff] [blame] | 15832 | sinfo.mem_unit = 1; |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15833 | |
| 15834 | ; |
| 15835 | return 0; |
| 15836 | } |
| 15837 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15838 | if ac_fn_c_try_compile "$LINENO" |
| 15839 | then : |
| 15840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15841 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15842 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15843 | else case e in #( |
| 15844 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15845 | printf "%s\n" "no" >&6; } ;; |
| 15846 | esac |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15847 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15848 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15849 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysinfo.uptime" >&5 |
| 15851 | printf %s "checking for sysinfo.uptime... " >&6; } |
Bram Moolenaar | f52f060 | 2021-03-10 21:26:37 +0100 | [diff] [blame] | 15852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15853 | /* end confdefs.h. */ |
| 15854 | #include <sys/types.h> |
| 15855 | #include <sys/sysinfo.h> |
| 15856 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15857 | main (void) |
Bram Moolenaar | f52f060 | 2021-03-10 21:26:37 +0100 | [diff] [blame] | 15858 | { |
| 15859 | struct sysinfo sinfo; |
| 15860 | long ut; |
| 15861 | |
| 15862 | (void)sysinfo(&sinfo); |
| 15863 | ut = sinfo.uptime; |
| 15864 | |
| 15865 | ; |
| 15866 | return 0; |
| 15867 | } |
| 15868 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15869 | if ac_fn_c_try_compile "$LINENO" |
| 15870 | then : |
| 15871 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15872 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYSINFO_UPTIME 1" >>confdefs.h |
Bram Moolenaar | f52f060 | 2021-03-10 21:26:37 +0100 | [diff] [blame] | 15873 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15874 | else case e in #( |
| 15875 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15876 | printf "%s\n" "no" >&6; } ;; |
| 15877 | esac |
Bram Moolenaar | f52f060 | 2021-03-10 21:26:37 +0100 | [diff] [blame] | 15878 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15879 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | f52f060 | 2021-03-10 21:26:37 +0100 | [diff] [blame] | 15880 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15881 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 |
| 15882 | printf %s "checking for sysconf... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 15883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15884 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15885 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15886 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15887 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15888 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15889 | (void)sysconf(_SC_PAGESIZE); |
| 15890 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15891 | |
| 15892 | ; |
| 15893 | return 0; |
| 15894 | } |
| 15895 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15896 | if ac_fn_c_try_compile "$LINENO" |
| 15897 | then : |
| 15898 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15899 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15900 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15901 | else case e in #( |
| 15902 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 15903 | printf "%s\n" "not usable" >&6; } ;; |
| 15904 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15905 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15906 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15907 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _SC_SIGSTKSZ via sysconf()" >&5 |
| 15909 | printf %s "checking for _SC_SIGSTKSZ via sysconf()... " >&6; } |
Bram Moolenaar | 0e62a67 | 2021-02-25 17:17:56 +0100 | [diff] [blame] | 15910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15911 | /* end confdefs.h. */ |
| 15912 | #include <unistd.h> |
| 15913 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15914 | main (void) |
Bram Moolenaar | 0e62a67 | 2021-02-25 17:17:56 +0100 | [diff] [blame] | 15915 | { |
| 15916 | (void)sysconf(_SC_SIGSTKSZ); |
| 15917 | |
| 15918 | ; |
| 15919 | return 0; |
| 15920 | } |
| 15921 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15922 | if ac_fn_c_try_compile "$LINENO" |
| 15923 | then : |
| 15924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15925 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SYSCONF_SIGSTKSZ 1" >>confdefs.h |
Bram Moolenaar | 0e62a67 | 2021-02-25 17:17:56 +0100 | [diff] [blame] | 15926 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15927 | else case e in #( |
| 15928 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 |
| 15929 | printf "%s\n" "not usable" >&6; } ;; |
| 15930 | esac |
Bram Moolenaar | 0e62a67 | 2021-02-25 17:17:56 +0100 | [diff] [blame] | 15931 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15932 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | 0e62a67 | 2021-02-25 17:17:56 +0100 | [diff] [blame] | 15933 | |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 15934 | # The cast to long int works around a bug in the HP C Compiler |
| 15935 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15936 | # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 15937 | # This bug is HP SR number 8606223364. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 15939 | printf %s "checking size of int... " >&6; } |
| 15940 | if test ${ac_cv_sizeof_int+y} |
| 15941 | then : |
| 15942 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15943 | else case e in #( |
| 15944 | e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15945 | then : |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 15946 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15947 | else case e in #( |
| 15948 | e) if test "$ac_cv_type_int" = yes; then |
| 15949 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 15950 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 15951 | as_fn_error 77 "cannot compute sizeof (int) |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15952 | See 'config.log' for more details" "$LINENO" 5; } |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 15953 | else |
| 15954 | ac_cv_sizeof_int=0 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15955 | fi ;; |
| 15956 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15957 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15958 | ;; |
| 15959 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15960 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15961 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 15962 | printf "%s\n" "$ac_cv_sizeof_int" >&6; } |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 15963 | |
| 15964 | |
| 15965 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15966 | printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15967 | |
| 15968 | |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 15969 | # The cast to long int works around a bug in the HP C Compiler |
| 15970 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15971 | # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 15972 | # This bug is HP SR number 8606223364. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 15974 | printf %s "checking size of long... " >&6; } |
| 15975 | if test ${ac_cv_sizeof_long+y} |
| 15976 | then : |
| 15977 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15978 | else case e in #( |
| 15979 | e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15980 | then : |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 15981 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15982 | else case e in #( |
| 15983 | e) if test "$ac_cv_type_long" = yes; then |
| 15984 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 15985 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 15986 | as_fn_error 77 "cannot compute sizeof (long) |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15987 | See 'config.log' for more details" "$LINENO" 5; } |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 15988 | else |
| 15989 | ac_cv_sizeof_long=0 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15990 | fi ;; |
| 15991 | esac |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 15992 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 15993 | ;; |
| 15994 | esac |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 15995 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 15996 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 15997 | printf "%s\n" "$ac_cv_sizeof_long" >&6; } |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 15998 | |
| 15999 | |
| 16000 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16001 | printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16002 | |
| 16003 | |
| 16004 | # The cast to long int works around a bug in the HP C Compiler |
| 16005 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16006 | # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16007 | # This bug is HP SR number 8606223364. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 16009 | printf %s "checking size of time_t... " >&6; } |
| 16010 | if test ${ac_cv_sizeof_time_t+y} |
| 16011 | then : |
| 16012 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16013 | else case e in #( |
| 16014 | e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16015 | then : |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16016 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16017 | else case e in #( |
| 16018 | e) if test "$ac_cv_type_time_t" = yes; then |
| 16019 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 16020 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 16021 | as_fn_error 77 "cannot compute sizeof (time_t) |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16022 | See 'config.log' for more details" "$LINENO" 5; } |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16023 | else |
| 16024 | ac_cv_sizeof_time_t=0 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16025 | fi ;; |
| 16026 | esac |
Bram Moolenaar | 644fdff | 2010-05-30 13:26:21 +0200 | [diff] [blame] | 16027 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16028 | ;; |
| 16029 | esac |
Bram Moolenaar | 644fdff | 2010-05-30 13:26:21 +0200 | [diff] [blame] | 16030 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16031 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 16032 | printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16033 | |
| 16034 | |
| 16035 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16036 | printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h |
Bram Moolenaar | 644fdff | 2010-05-30 13:26:21 +0200 | [diff] [blame] | 16037 | |
| 16038 | |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16039 | # The cast to long int works around a bug in the HP C Compiler |
| 16040 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16041 | # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16042 | # This bug is HP SR number 8606223364. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16043 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 16044 | printf %s "checking size of off_t... " >&6; } |
| 16045 | if test ${ac_cv_sizeof_off_t+y} |
| 16046 | then : |
| 16047 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16048 | else case e in #( |
| 16049 | e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16050 | then : |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16051 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16052 | else case e in #( |
| 16053 | e) if test "$ac_cv_type_off_t" = yes; then |
| 16054 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 16055 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 16056 | as_fn_error 77 "cannot compute sizeof (off_t) |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16057 | See 'config.log' for more details" "$LINENO" 5; } |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16058 | else |
| 16059 | ac_cv_sizeof_off_t=0 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16060 | fi ;; |
| 16061 | esac |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16062 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16063 | ;; |
| 16064 | esac |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16065 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16066 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 16067 | printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16068 | |
| 16069 | |
| 16070 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16071 | printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h |
Bram Moolenaar | 914703b | 2010-05-31 21:59:46 +0200 | [diff] [blame] | 16072 | |
| 16073 | |
| 16074 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16075 | printf "%s\n" "#define VIM_SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
Bram Moolenaar | a2aa31a | 2014-02-23 22:52:40 +0100 | [diff] [blame] | 16076 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16077 | printf "%s\n" "#define VIM_SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
Bram Moolenaar | a2aa31a | 2014-02-23 22:52:40 +0100 | [diff] [blame] | 16078 | |
| 16079 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16080 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 |
| 16081 | printf %s "checking uint32_t is 32 bits... " >&6; } |
| 16082 | if test "$cross_compiling" = yes |
| 16083 | then : |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 16084 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: assuming uint32_t is correct when cross-compiling" >&5 |
| 16085 | printf "%s\n" "$as_me: WARNING: assuming uint32_t is correct when cross-compiling" >&2;} |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16086 | else case e in #( |
| 16087 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | fa7584c | 2010-05-19 21:57:45 +0200 | [diff] [blame] | 16088 | /* end confdefs.h. */ |
| 16089 | |
| 16090 | #ifdef HAVE_STDINT_H |
| 16091 | # include <stdint.h> |
| 16092 | #endif |
| 16093 | #ifdef HAVE_INTTYPES_H |
| 16094 | # include <inttypes.h> |
| 16095 | #endif |
Bram Moolenaar | 0f0d3a7 | 2022-06-19 18:02:05 +0100 | [diff] [blame] | 16096 | int main() { |
Bram Moolenaar | fa7584c | 2010-05-19 21:57:45 +0200 | [diff] [blame] | 16097 | uint32_t nr1 = (uint32_t)-1; |
| 16098 | uint32_t nr2 = (uint32_t)0xffffffffUL; |
Bram Moolenaar | 5289783 | 2020-07-02 22:50:37 +0200 | [diff] [blame] | 16099 | if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1; |
| 16100 | return 0; |
Bram Moolenaar | fa7584c | 2010-05-19 21:57:45 +0200 | [diff] [blame] | 16101 | } |
| 16102 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16103 | if ac_fn_c_try_run "$LINENO" |
| 16104 | then : |
| 16105 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 16106 | printf "%s\n" "ok" >&6; } |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16107 | else case e in #( |
| 16108 | e) as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 ;; |
| 16109 | esac |
Bram Moolenaar | fa7584c | 2010-05-19 21:57:45 +0200 | [diff] [blame] | 16110 | fi |
| 16111 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16112 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16113 | esac |
Bram Moolenaar | fa7584c | 2010-05-19 21:57:45 +0200 | [diff] [blame] | 16114 | fi |
| 16115 | |
| 16116 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16117 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16118 | bcopy_test_prog=' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16119 | #include "confdefs.h" |
| 16120 | #ifdef HAVE_STRING_H |
| 16121 | # include <string.h> |
| 16122 | #endif |
| 16123 | #if STDC_HEADERS |
| 16124 | # include <stdlib.h> |
| 16125 | # include <stddef.h> |
| 16126 | #endif |
Bram Moolenaar | 0f0d3a7 | 2022-06-19 18:02:05 +0100 | [diff] [blame] | 16127 | int main() { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16128 | char buf[10]; |
| 16129 | strcpy(buf, "abcdefghi"); |
| 16130 | mch_memmove(buf, buf + 2, 3); |
| 16131 | if (strncmp(buf, "ababcf", 6)) |
| 16132 | exit(1); |
| 16133 | strcpy(buf, "abcdefghi"); |
| 16134 | mch_memmove(buf + 2, buf, 3); |
| 16135 | if (strncmp(buf, "cdedef", 6)) |
| 16136 | exit(1); |
| 16137 | exit(0); /* libc version works properly. */ |
| 16138 | }' |
| 16139 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16140 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 |
| 16141 | printf %s "checking whether memmove handles overlaps... " >&6; } |
| 16142 | if test ${vim_cv_memmove_handles_overlap+y} |
| 16143 | then : |
| 16144 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16145 | else case e in #( |
| 16146 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16147 | if test "$cross_compiling" = yes |
| 16148 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16149 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 16150 | vim_cv_memmove_handles_overlap=yes |
| 16151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_memmove_handles_overlap'" >&5 |
| 16152 | printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_memmove_handles_overlap'" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16153 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16154 | else case e in #( |
| 16155 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16156 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16157 | #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16158 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16159 | if ac_fn_c_try_run "$LINENO" |
| 16160 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16161 | |
| 16162 | vim_cv_memmove_handles_overlap=yes |
| 16163 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16164 | else case e in #( |
| 16165 | e) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16166 | vim_cv_memmove_handles_overlap=no |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16167 | ;; |
| 16168 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16169 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16170 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16171 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16172 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16173 | fi |
| 16174 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16175 | ;; |
| 16176 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16177 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16178 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 |
| 16179 | printf "%s\n" "$vim_cv_memmove_handles_overlap" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16180 | |
| 16181 | if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16182 | printf "%s\n" "#define USEMEMMOVE 1" >>confdefs.h |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16183 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16184 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 |
| 16186 | printf %s "checking whether bcopy handles overlaps... " >&6; } |
| 16187 | if test ${vim_cv_bcopy_handles_overlap+y} |
| 16188 | then : |
| 16189 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16190 | else case e in #( |
| 16191 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16192 | if test "$cross_compiling" = yes |
| 16193 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16194 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 16195 | vim_cv_bcopy_handles_overlap=yes |
| 16196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_bcopy_handles_overlap'" >&5 |
| 16197 | printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_bcopy_handles_overlap'" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16198 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16199 | else case e in #( |
| 16200 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16201 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16202 | #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
| 16203 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16204 | if ac_fn_c_try_run "$LINENO" |
| 16205 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16206 | |
| 16207 | vim_cv_bcopy_handles_overlap=yes |
| 16208 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16209 | else case e in #( |
| 16210 | e) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16211 | vim_cv_bcopy_handles_overlap=no |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16212 | ;; |
| 16213 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16214 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16215 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16216 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16217 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16218 | fi |
| 16219 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16220 | ;; |
| 16221 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16222 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 |
| 16224 | printf "%s\n" "$vim_cv_bcopy_handles_overlap" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16225 | |
| 16226 | if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16227 | printf "%s\n" "#define USEBCOPY 1" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16228 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16229 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 |
| 16231 | printf %s "checking whether memcpy handles overlaps... " >&6; } |
| 16232 | if test ${vim_cv_memcpy_handles_overlap+y} |
| 16233 | then : |
| 16234 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16235 | else case e in #( |
| 16236 | e) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16237 | if test "$cross_compiling" = yes |
| 16238 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16239 | |
Jonas Sortie Termansen | 2cf145b | 2024-11-03 20:58:21 +0100 | [diff] [blame] | 16240 | vim_cv_memcpy_handles_overlap=yes |
| 16241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: consider setting 'vim_cv_memcpy_handles_overlap'" >&5 |
| 16242 | printf "%s\n" "$as_me: WARNING: cross-compiling: consider setting 'vim_cv_memcpy_handles_overlap'" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16243 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16244 | else case e in #( |
| 16245 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16246 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16247 | #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16248 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16249 | if ac_fn_c_try_run "$LINENO" |
| 16250 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16251 | |
| 16252 | vim_cv_memcpy_handles_overlap=yes |
| 16253 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16254 | else case e in #( |
| 16255 | e) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16256 | vim_cv_memcpy_handles_overlap=no |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16257 | ;; |
| 16258 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16259 | fi |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16260 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16261 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 16262 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16263 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16264 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16265 | ;; |
| 16266 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16267 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 |
| 16269 | printf "%s\n" "$vim_cv_memcpy_handles_overlap" >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16270 | |
| 16271 | if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16272 | printf "%s\n" "#define USEMEMCPY 1" >>confdefs.h |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16273 | |
| 16274 | fi |
| 16275 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16276 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16277 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16278 | |
Bram Moolenaar | cbc246a | 2014-10-11 14:47:26 +0200 | [diff] [blame] | 16279 | if test "x$with_x" = "xyes"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16280 | cflags_save=$CFLAGS |
Bram Moolenaar | cbc246a | 2014-10-11 14:47:26 +0200 | [diff] [blame] | 16281 | libs_save=$LIBS |
| 16282 | LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" |
| 16283 | CFLAGS="$CFLAGS $X_CFLAGS" |
| 16284 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 |
| 16286 | printf %s "checking whether X_LOCALE needed... " >&6; } |
Bram Moolenaar | cbc246a | 2014-10-11 14:47:26 +0200 | [diff] [blame] | 16287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16288 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16289 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16290 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16291 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16292 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16293 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16294 | ; |
| 16295 | return 0; |
| 16296 | } |
| 16297 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16298 | if ac_fn_c_try_compile "$LINENO" |
| 16299 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16301 | /* end confdefs.h. */ |
| 16302 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16303 | /* Override any GCC internal prototype to avoid an error. |
| 16304 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16305 | builtin and then its argument prototype would still apply. |
| 16306 | The 'extern "C"' is for builds by C++ compilers; |
| 16307 | although this is not generally supported in C code supporting it here |
| 16308 | has little cost and some practical benefit (sr 110532). */ |
| 16309 | #ifdef __cplusplus |
| 16310 | extern "C" |
| 16311 | #endif |
| 16312 | char _Xsetlocale (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16313 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16314 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16315 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16316 | return _Xsetlocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16317 | ; |
| 16318 | return 0; |
| 16319 | } |
| 16320 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16321 | if ac_fn_c_try_link "$LINENO" |
| 16322 | then : |
| 16323 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16324 | printf "%s\n" "yes" >&6; } |
| 16325 | printf "%s\n" "#define X_LOCALE 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16326 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16327 | else case e in #( |
| 16328 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16329 | printf "%s\n" "no" >&6; } ;; |
| 16330 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16331 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16332 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16333 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16334 | else case e in #( |
| 16335 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16336 | printf "%s\n" "no" >&6; } ;; |
| 16337 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16338 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16339 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
Bram Moolenaar | cbc246a | 2014-10-11 14:47:26 +0200 | [diff] [blame] | 16340 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 |
| 16342 | printf %s "checking whether Xutf8SetWMProperties() can be used... " >&6; } |
Bram Moolenaar | cbc246a | 2014-10-11 14:47:26 +0200 | [diff] [blame] | 16343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16344 | /* end confdefs.h. */ |
| 16345 | |
| 16346 | /* Override any GCC internal prototype to avoid an error. |
| 16347 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16348 | builtin and then its argument prototype would still apply. |
| 16349 | The 'extern "C"' is for builds by C++ compilers; |
| 16350 | although this is not generally supported in C code supporting it here |
| 16351 | has little cost and some practical benefit (sr 110532). */ |
| 16352 | #ifdef __cplusplus |
| 16353 | extern "C" |
| 16354 | #endif |
| 16355 | char Xutf8SetWMProperties (void); |
Bram Moolenaar | cbc246a | 2014-10-11 14:47:26 +0200 | [diff] [blame] | 16356 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16357 | main (void) |
Bram Moolenaar | cbc246a | 2014-10-11 14:47:26 +0200 | [diff] [blame] | 16358 | { |
| 16359 | return Xutf8SetWMProperties (); |
| 16360 | ; |
| 16361 | return 0; |
| 16362 | } |
| 16363 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16364 | if ac_fn_c_try_link "$LINENO" |
| 16365 | then : |
| 16366 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16367 | printf "%s\n" "yes" >&6; } |
| 16368 | printf "%s\n" "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h |
Bram Moolenaar | cbc246a | 2014-10-11 14:47:26 +0200 | [diff] [blame] | 16369 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16370 | else case e in #( |
| 16371 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16372 | printf "%s\n" "no" >&6; } ;; |
| 16373 | esac |
Bram Moolenaar | cbc246a | 2014-10-11 14:47:26 +0200 | [diff] [blame] | 16374 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16375 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | cbc246a | 2014-10-11 14:47:26 +0200 | [diff] [blame] | 16376 | conftest$ac_exeext conftest.$ac_ext |
| 16377 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16378 | CFLAGS=$cflags_save |
Bram Moolenaar | cbc246a | 2014-10-11 14:47:26 +0200 | [diff] [blame] | 16379 | LIBS=$libs_save |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16380 | fi |
| 16381 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 16383 | printf %s "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } |
| 16384 | if test ${ac_cv_lib_xpg4__xpg4_setrunelocale+y} |
| 16385 | then : |
| 16386 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16387 | else case e in #( |
| 16388 | e) ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16389 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16391 | /* end confdefs.h. */ |
| 16392 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16393 | /* Override any GCC internal prototype to avoid an error. |
| 16394 | Use char because int might match the return type of a GCC |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16395 | builtin and then its argument prototype would still apply. |
| 16396 | The 'extern "C"' is for builds by C++ compilers; |
| 16397 | although this is not generally supported in C code supporting it here |
| 16398 | has little cost and some practical benefit (sr 110532). */ |
| 16399 | #ifdef __cplusplus |
| 16400 | extern "C" |
| 16401 | #endif |
| 16402 | char _xpg4_setrunelocale (void); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16403 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16404 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16405 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16406 | return _xpg4_setrunelocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16407 | ; |
| 16408 | return 0; |
| 16409 | } |
| 16410 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16411 | if ac_fn_c_try_link "$LINENO" |
| 16412 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16413 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16414 | else case e in #( |
| 16415 | e) ac_cv_lib_xpg4__xpg4_setrunelocale=no ;; |
| 16416 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16417 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16418 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16419 | conftest$ac_exeext conftest.$ac_ext |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16420 | LIBS=$ac_check_lib_save_LIBS ;; |
| 16421 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16422 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 16424 | printf "%s\n" "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } |
| 16425 | if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes |
| 16426 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16427 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16428 | fi |
| 16429 | |
| 16430 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 |
| 16432 | printf %s "checking how to create tags... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16433 | test -f tags && mv tags tags.save |
Bram Moolenaar | 5897e0c | 2011-05-10 15:42:03 +0200 | [diff] [blame] | 16434 | if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
Bram Moolenaar | 509ff06 | 2020-01-02 22:38:49 +0100 | [diff] [blame] | 16435 | TAGPRG="ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S" |
Bram Moolenaar | 5897e0c | 2011-05-10 15:42:03 +0200 | [diff] [blame] | 16436 | elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
Bram Moolenaar | 509ff06 | 2020-01-02 22:38:49 +0100 | [diff] [blame] | 16437 | TAGPRG="exctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S" |
Bram Moolenaar | 5897e0c | 2011-05-10 15:42:03 +0200 | [diff] [blame] | 16438 | elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
Bram Moolenaar | 509ff06 | 2020-01-02 22:38:49 +0100 | [diff] [blame] | 16439 | TAGPRG="exuberant-ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16440 | else |
Bram Moolenaar | 0c7ce77 | 2009-05-13 12:49:39 +0000 | [diff] [blame] | 16441 | TAGPRG="ctags" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16442 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 16443 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 16444 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 16445 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 16446 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 16447 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 16448 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 16449 | fi |
| 16450 | test -f tags.save && mv tags.save tags |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16451 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 |
| 16452 | printf "%s\n" "$TAGPRG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16453 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 |
| 16455 | printf %s "checking how to run man with a section nr... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16456 | MANDEF="man" |
Bram Moolenaar | 8b13150 | 2008-02-13 09:28:19 +0000 | [diff] [blame] | 16457 | (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 |
| 16459 | printf "%s\n" "$MANDEF" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16460 | if test "$MANDEF" = "man -s"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16461 | printf "%s\n" "#define USEMAN_S 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16462 | |
| 16463 | fi |
| 16464 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16465 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 |
| 16466 | printf %s "checking --disable-nls argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16467 | # Check whether --enable-nls was given. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16468 | if test ${enable_nls+y} |
| 16469 | then : |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16470 | enableval=$enable_nls; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16471 | else case e in #( |
| 16472 | e) enable_nls="yes" ;; |
| 16473 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16474 | fi |
| 16475 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16476 | |
| 16477 | if test "$enable_nls" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16478 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16479 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 16480 | |
| 16481 | INSTALL_LANGS=install-languages |
| 16482 | |
| 16483 | INSTALL_TOOL_LANGS=install-tool-languages |
| 16484 | |
| 16485 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16486 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 16487 | set dummy msgfmt; ac_word=$2 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16489 | printf %s "checking for $ac_word... " >&6; } |
| 16490 | if test ${ac_cv_prog_MSGFMT+y} |
| 16491 | then : |
| 16492 | printf %s "(cached) " >&6 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16493 | else case e in #( |
| 16494 | e) if test -n "$MSGFMT"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16495 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 16496 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16498 | for as_dir in $PATH |
| 16499 | do |
| 16500 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16501 | case $as_dir in #((( |
| 16502 | '') as_dir=./ ;; |
| 16503 | */) ;; |
| 16504 | *) as_dir=$as_dir/ ;; |
| 16505 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16506 | for ac_exec_ext in '' $ac_executable_extensions; do |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16507 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16508 | ac_cv_prog_MSGFMT="msgfmt" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16509 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16510 | break 2 |
| 16511 | fi |
| 16512 | done |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16513 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16514 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16515 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16516 | fi ;; |
| 16517 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16518 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16519 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16520 | if test -n "$MSGFMT"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16521 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
| 16522 | printf "%s\n" "$MSGFMT" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16523 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16525 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16526 | fi |
| 16527 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16528 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 |
| 16530 | printf %s "checking for NLS... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16531 | if test -f po/Makefile; then |
| 16532 | have_gettext="no" |
| 16533 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 49b6a57 | 2013-11-17 20:32:54 +0100 | [diff] [blame] | 16534 | olibs=$LIBS |
| 16535 | LIBS="" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16537 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16538 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16539 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16540 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16541 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16542 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16543 | ; |
| 16544 | return 0; |
| 16545 | } |
| 16546 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16547 | if ac_fn_c_try_link "$LINENO" |
| 16548 | then : |
| 16549 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 |
| 16550 | printf "%s\n" "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16551 | else case e in #( |
| 16552 | e) LIBS="-lintl" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16554 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16555 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16556 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16557 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16558 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16559 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16560 | ; |
| 16561 | return 0; |
| 16562 | } |
| 16563 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16564 | if ac_fn_c_try_link "$LINENO" |
| 16565 | then : |
| 16566 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 |
| 16567 | printf "%s\n" "gettext() works with -lintl" >&6; }; have_gettext="yes"; |
Bram Moolenaar | 49b6a57 | 2013-11-17 20:32:54 +0100 | [diff] [blame] | 16568 | LIBS="$olibs -lintl" |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16569 | else case e in #( |
| 16570 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16571 | printf "%s\n" "gettext() doesn't work" >&6; }; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16572 | LIBS=$olibs ;; |
| 16573 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16574 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16575 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16576 | conftest$ac_exeext conftest.$ac_ext ;; |
| 16577 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16578 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16579 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16580 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16581 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16582 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 |
| 16583 | printf "%s\n" "msgfmt not found - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16584 | fi |
Martin Tournoij | 7904fa4 | 2022-10-04 16:28:45 +0100 | [diff] [blame] | 16585 | if test $have_gettext = "yes" -a "x$features" != "xtiny"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16586 | printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16587 | |
| 16588 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16589 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16590 | ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" |
| 16591 | if test "x$ac_cv_func_bind_textdomain_codeset" = xyes |
| 16592 | then : |
| 16593 | printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16594 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16595 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16596 | |
Christ van Willegen | ce0ef91 | 2024-06-20 23:41:59 +0200 | [diff] [blame] | 16597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dgettext" >&5 |
| 16598 | printf %s "checking for dgettext... " >&6; } |
| 16599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16600 | /* end confdefs.h. */ |
| 16601 | #include <libintl.h> |
| 16602 | int |
| 16603 | main (void) |
| 16604 | { |
| 16605 | dgettext("Test", "Test"); |
| 16606 | ; |
| 16607 | return 0; |
| 16608 | } |
| 16609 | _ACEOF |
| 16610 | if ac_fn_c_try_link "$LINENO" |
| 16611 | then : |
| 16612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16613 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_DGETTEXT 1" >>confdefs.h |
| 16614 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16615 | else case e in #( |
| 16616 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dngettext" >&5 |
Christ van Willegen | c078675 | 2025-02-01 15:42:16 +0100 | [diff] [blame] | 16617 | printf %s "checking for dngettext... " >&6; } |
| 16618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16619 | printf "%s\n" "no" >&6; } ;; |
| 16620 | esac |
Christ van Willegen | c078675 | 2025-02-01 15:42:16 +0100 | [diff] [blame] | 16621 | fi |
| 16622 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16623 | conftest$ac_exeext conftest.$ac_ext |
| 16624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16625 | /* end confdefs.h. */ |
| 16626 | #include <libintl.h> |
| 16627 | int |
| 16628 | main (void) |
| 16629 | { |
| 16630 | dngettext("DOMAIN", "Test single", "Test plural", 1); |
| 16631 | ; |
| 16632 | return 0; |
| 16633 | } |
| 16634 | _ACEOF |
| 16635 | if ac_fn_c_try_link "$LINENO" |
| 16636 | then : |
| 16637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16638 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_DNGETTEXT 1" >>confdefs.h |
| 16639 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16640 | else case e in #( |
| 16641 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16642 | printf "%s\n" "no" >&6; } ;; |
| 16643 | esac |
Christ van Willegen | ce0ef91 | 2024-06-20 23:41:59 +0200 | [diff] [blame] | 16644 | fi |
| 16645 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16646 | conftest$ac_exeext conftest.$ac_ext |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 |
| 16648 | printf %s "checking for _nl_msg_cat_cntr... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16650 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16651 | #include <libintl.h> |
| 16652 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16653 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16654 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16655 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16656 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16657 | ; |
| 16658 | return 0; |
| 16659 | } |
| 16660 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16661 | if ac_fn_c_try_link "$LINENO" |
| 16662 | then : |
| 16663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16664 | printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16665 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16666 | else case e in #( |
| 16667 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16668 | printf "%s\n" "no" >&6; } ;; |
| 16669 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16670 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16671 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16672 | conftest$ac_exeext conftest.$ac_ext |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16673 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if msgfmt supports --desktop" >&5 |
| 16674 | printf %s "checking if msgfmt supports --desktop... " >&6; } |
Bram Moolenaar | 26096cc | 2019-04-11 15:25:40 +0200 | [diff] [blame] | 16675 | MSGFMT_DESKTOP= |
| 16676 | if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then |
Bram Moolenaar | 62a88f4 | 2019-06-07 20:44:40 +0200 | [diff] [blame] | 16677 | if "$MSGFMT" --version | grep '0.19.[3-7]$' >/dev/null; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: broken" >&5 |
| 16679 | printf "%s\n" "broken" >&6; } |
Bram Moolenaar | 62a88f4 | 2019-06-07 20:44:40 +0200 | [diff] [blame] | 16680 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16681 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16682 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 62a88f4 | 2019-06-07 20:44:40 +0200 | [diff] [blame] | 16683 | MSGFMT_DESKTOP="gvim.desktop vim.desktop" |
| 16684 | fi |
Bram Moolenaar | 26096cc | 2019-04-11 15:25:40 +0200 | [diff] [blame] | 16685 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16686 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16687 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 26096cc | 2019-04-11 15:25:40 +0200 | [diff] [blame] | 16688 | fi |
| 16689 | |
VladimÃr Marek | 8731917 | 2024-04-11 21:54:34 +0200 | [diff] [blame] | 16690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MSGFMT supports --no-convert" >&5 |
| 16691 | printf %s "checking if $MSGFMT supports --no-convert... " >&6; } |
RestorerZ | e498caf | 2024-03-12 22:11:36 +0100 | [diff] [blame] | 16692 | if "$MSGFMT" --help | grep -q -- '--no-convert' >/dev/null; then |
| 16693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16694 | printf "%s\n" "yes" >&6; } |
VladimÃr Marek | 8731917 | 2024-04-11 21:54:34 +0200 | [diff] [blame] | 16695 | MSGFMTCMD="OLD_PO_FILE_INPUT=yes $MSGFMT --no-convert -v" |
RestorerZ | e498caf | 2024-03-12 22:11:36 +0100 | [diff] [blame] | 16696 | else |
| 16697 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16698 | printf "%s\n" "no" >&6; } |
VladimÃr Marek | 8731917 | 2024-04-11 21:54:34 +0200 | [diff] [blame] | 16699 | MSGFMTCMD="OLD_PO_FILE_INPUT=yes $MSGFMT -v" |
RestorerZ | e498caf | 2024-03-12 22:11:36 +0100 | [diff] [blame] | 16700 | fi |
| 16701 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16702 | fi |
| 16703 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 |
| 16705 | printf "%s\n" "no \"po/Makefile\" - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16706 | fi |
| 16707 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16709 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16710 | fi |
| 16711 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16712 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
| 16713 | if test "x$ac_cv_header_dlfcn_h" = xyes |
| 16714 | then : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16715 | DLL=dlfcn.h |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16716 | else case e in #( |
| 16717 | e) ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16718 | if test "x$ac_cv_header_dl_h" = xyes |
| 16719 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16720 | DLL=dl.h |
| 16721 | fi |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16722 | ;; |
| 16723 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16724 | fi |
| 16725 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16726 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16727 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16728 | printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16729 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 |
| 16731 | printf %s "checking for dlopen()... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16733 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16734 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16735 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16736 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16737 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16738 | |
| 16739 | extern void* dlopen(); |
| 16740 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16741 | |
| 16742 | ; |
| 16743 | return 0; |
| 16744 | } |
| 16745 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16746 | if ac_fn_c_try_link "$LINENO" |
| 16747 | then : |
| 16748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16749 | printf "%s\n" "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16750 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16751 | printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16752 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16753 | else case e in #( |
| 16754 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16755 | printf "%s\n" "no" >&6; }; |
| 16756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 |
| 16757 | printf %s "checking for dlopen() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16758 | olibs=$LIBS |
| 16759 | LIBS="$LIBS -ldl" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16761 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16762 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16763 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16764 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16765 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16766 | |
| 16767 | extern void* dlopen(); |
| 16768 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16769 | |
| 16770 | ; |
| 16771 | return 0; |
| 16772 | } |
| 16773 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16774 | if ac_fn_c_try_link "$LINENO" |
| 16775 | then : |
| 16776 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16777 | printf "%s\n" "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16778 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16779 | printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16780 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16781 | else case e in #( |
| 16782 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16783 | printf "%s\n" "no" >&6; }; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16784 | LIBS=$olibs ;; |
| 16785 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16786 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16787 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16788 | conftest$ac_exeext conftest.$ac_ext ;; |
| 16789 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16790 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16791 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16792 | conftest$ac_exeext conftest.$ac_ext |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16793 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 |
| 16794 | printf %s "checking for dlsym()... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16796 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16797 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16798 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16799 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16800 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16801 | |
| 16802 | extern void* dlsym(); |
| 16803 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16804 | |
| 16805 | ; |
| 16806 | return 0; |
| 16807 | } |
| 16808 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16809 | if ac_fn_c_try_link "$LINENO" |
| 16810 | then : |
| 16811 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16812 | printf "%s\n" "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16813 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16814 | printf "%s\n" "#define HAVE_DLSYM 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16815 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16816 | else case e in #( |
| 16817 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16818 | printf "%s\n" "no" >&6; }; |
| 16819 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 |
| 16820 | printf %s "checking for dlsym() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16821 | olibs=$LIBS |
| 16822 | LIBS="$LIBS -ldl" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16824 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16825 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16826 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16827 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16828 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16829 | |
| 16830 | extern void* dlsym(); |
| 16831 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16832 | |
| 16833 | ; |
| 16834 | return 0; |
| 16835 | } |
| 16836 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16837 | if ac_fn_c_try_link "$LINENO" |
| 16838 | then : |
| 16839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16840 | printf "%s\n" "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16841 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16842 | printf "%s\n" "#define HAVE_DLSYM 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16843 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16844 | else case e in #( |
| 16845 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16846 | printf "%s\n" "no" >&6; }; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16847 | LIBS=$olibs ;; |
| 16848 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16849 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16850 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16851 | conftest$ac_exeext conftest.$ac_ext ;; |
| 16852 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16853 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16854 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16855 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16856 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16857 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16858 | printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16859 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16860 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 |
| 16861 | printf %s "checking for shl_load()... " >&6; } |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16863 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16864 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16865 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16866 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16867 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16868 | |
| 16869 | extern void* shl_load(); |
| 16870 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16871 | |
| 16872 | ; |
| 16873 | return 0; |
| 16874 | } |
| 16875 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16876 | if ac_fn_c_try_link "$LINENO" |
| 16877 | then : |
| 16878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16879 | printf "%s\n" "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16880 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16881 | printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16882 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16883 | else case e in #( |
| 16884 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16885 | printf "%s\n" "no" >&6; }; |
| 16886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 |
| 16887 | printf %s "checking for shl_load() in -ldld... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16888 | olibs=$LIBS |
| 16889 | LIBS="$LIBS -ldld" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16891 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16892 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16893 | int |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16894 | main (void) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16895 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16896 | |
| 16897 | extern void* shl_load(); |
| 16898 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16899 | |
| 16900 | ; |
| 16901 | return 0; |
| 16902 | } |
| 16903 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16904 | if ac_fn_c_try_link "$LINENO" |
| 16905 | then : |
| 16906 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16907 | printf "%s\n" "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16908 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16909 | printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16910 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16911 | else case e in #( |
| 16912 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16913 | printf "%s\n" "no" >&6; }; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16914 | LIBS=$olibs ;; |
| 16915 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16916 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16917 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 16918 | conftest$ac_exeext conftest.$ac_ext ;; |
| 16919 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16920 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16921 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 16922 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16923 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16924 | ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" |
| 16925 | if test "x$ac_cv_header_setjmp_h" = xyes |
| 16926 | then : |
| 16927 | printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16928 | |
| 16929 | fi |
| 16930 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16931 | |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 16932 | if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16933 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 16934 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 16935 | PERL_LIBS="$PERL_LIBS -ldl" |
| 16936 | fi |
| 16937 | fi |
| 16938 | |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 16939 | if test "$MACOS_X" = "yes"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16940 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5 |
| 16941 | printf %s "checking whether we need macOS frameworks... " >&6; } |
Bram Moolenaar | 097148e | 2020-08-11 21:58:20 +0200 | [diff] [blame] | 16942 | if test "$MACOS_X_DARWIN" = "yes"; then |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 16943 | if test "$features" = "tiny"; then |
| 16944 | OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` |
| 16945 | OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5 |
| 16947 | printf "%s\n" "yes, we need CoreServices" >&6; } |
Bram Moolenaar | 2be7cb7 | 2019-01-12 16:10:51 +0100 | [diff] [blame] | 16948 | LIBS="$LIBS -framework CoreServices" |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 16949 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5 |
| 16951 | printf "%s\n" "yes, we need AppKit" >&6; } |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 16952 | LIBS="$LIBS -framework AppKit" |
Bram Moolenaar | d057301 | 2017-10-28 21:11:06 +0200 | [diff] [blame] | 16953 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16954 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16955 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16956 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16957 | fi |
| 16958 | fi |
| 16959 | |
Christian Brabandt | 6b9efdd | 2021-09-09 17:14:50 +0200 | [diff] [blame] | 16960 | if `echo "$CFLAGS" | grep -v D_REENTRANT >/dev/null`; then |
Bram Moolenaar | 3ae5fc9 | 2021-09-06 18:57:30 +0200 | [diff] [blame] | 16961 | CFLAGS="$CFLAGS -D_REENTRANT" |
| 16962 | fi |
| 16963 | |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16964 | DEPEND_CFLAGS_FILTER= |
| 16965 | if test "$GCC" = yes; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 |
| 16967 | printf %s "checking for GCC 3 or later... " >&6; } |
Bram Moolenaar | 348808f | 2020-02-07 20:50:07 +0100 | [diff] [blame] | 16968 | gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9][0-9]*\)\..*$/\1/g'` |
Bram Moolenaar | f740b29 | 2006-02-16 22:11:02 +0000 | [diff] [blame] | 16969 | if test "$gccmajor" -gt "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16970 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16972 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 16973 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16975 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 16976 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 |
| 16978 | printf %s "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 16979 | if test "$gccmajor" -gt "3"; then |
Zdenek Dohnal | 4219698 | 2023-01-18 16:09:51 +0000 | [diff] [blame] | 16980 | CFLAGS=`echo "$CFLAGS" | sed -e 's/-D_FORTIFY_SOURCE=.,//g' -e 's/ *-Wp,-D_FORTIFY_SOURCE=. / /g' -e 's/,-D_FORTIFY_SOURCE=. //g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-Wp,-U_FORTIFY_SOURCE/ /g' -e 's/ *-U_FORTIFY_SOURCE//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'` |
| 16981 | CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-D_FORTIFY_SOURCE=.,//g' -e 's/ *-Wp,-D_FORTIFY_SOURCE=. / /g' -e 's/,-D_FORTIFY_SOURCE=. //g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-Wp,-U_FORTIFY_SOURCE/ /g' -e 's/ *-U_FORTIFY_SOURCE//g'` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16982 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16983 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 16984 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16985 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16986 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 0cd4930 | 2008-11-20 09:37:01 +0000 | [diff] [blame] | 16987 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16988 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16989 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16990 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5 |
| 16992 | printf %s "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; } |
Bram Moolenaar | 9ce4213 | 2018-04-11 22:19:36 +0200 | [diff] [blame] | 16993 | if echo "$CFLAGS $LUA_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_CFLAGS $PYTHON3_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $GTK_CFLAGS" | grep -q D_FILE_OFFSET_BITS 2>/dev/null; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16995 | printf "%s\n" "yes" >&6; } |
| 16996 | printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Bram Moolenaar | ec0557f | 2018-01-31 14:41:37 +0100 | [diff] [blame] | 16997 | |
| 16998 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 16999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17000 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | ec0557f | 2018-01-31 14:41:37 +0100 | [diff] [blame] | 17001 | fi |
| 17002 | |
Bram Moolenaar | 6cd42db | 2020-12-04 18:09:54 +0100 | [diff] [blame] | 17003 | LDFLAGS=`echo "$LDFLAGS" | sed -e 's/-L /-L/g'` |
| 17004 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 |
| 17006 | printf %s "checking linker --as-needed support... " >&6; } |
Bram Moolenaar | 22e193d | 2010-11-03 22:32:24 +0100 | [diff] [blame] | 17007 | LINK_AS_NEEDED= |
| 17008 | # Check if linker supports --as-needed and --no-as-needed options |
| 17009 | if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then |
Natanael Copa | 761ead4 | 2021-05-15 14:25:37 +0200 | [diff] [blame] | 17010 | if ! echo "$LDFLAGS" | grep -q -- '-Wl,[^[:space:]]*--as-needed'; then |
| 17011 | LDFLAGS="$LDFLAGS -Wl,--as-needed" |
| 17012 | fi |
Bram Moolenaar | 22e193d | 2010-11-03 22:32:24 +0100 | [diff] [blame] | 17013 | LINK_AS_NEEDED=yes |
| 17014 | fi |
| 17015 | if test "$LINK_AS_NEEDED" = yes; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17016 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17017 | printf "%s\n" "yes" >&6; } |
Bram Moolenaar | 22e193d | 2010-11-03 22:32:24 +0100 | [diff] [blame] | 17018 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17020 | printf "%s\n" "no" >&6; } |
Bram Moolenaar | 22e193d | 2010-11-03 22:32:24 +0100 | [diff] [blame] | 17021 | fi |
| 17022 | |
| 17023 | |
Bram Moolenaar | 77c1935 | 2012-06-13 19:19:41 +0200 | [diff] [blame] | 17024 | # IBM z/OS reset CFLAGS for config.mk |
| 17025 | if test "$zOSUnix" = "yes"; then |
| 17026 | CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" |
| 17027 | fi |
| 17028 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17029 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 17030 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17031 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17032 | # This file is a shell script that caches the results of configure |
| 17033 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17034 | # scripts and configure runs, see configure's option --config-cache. |
| 17035 | # It is not useful on other systems. If it contains results you don't |
| 17036 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17037 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17038 | # config.status only pays attention to the cache file if you give it |
| 17039 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17040 | # |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17041 | # 'ac_cv_env_foo' variables (set or unset) will be overridden when |
| 17042 | # loading this file, other *unset* 'ac_cv_foo' will be assigned the |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17043 | # following values. |
| 17044 | |
| 17045 | _ACEOF |
| 17046 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17047 | # The following way of writing the cache mishandles newlines in values, |
| 17048 | # but we know of no workaround that is simple, portable, and efficient. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17049 | # So, we kill variables containing newlines. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17050 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 17051 | # and sets the high bit in the cache file unless we assign to the vars. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17052 | ( |
| 17053 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 17054 | eval ac_val=\$$ac_var |
| 17055 | case $ac_val in #( |
| 17056 | *${as_nl}*) |
| 17057 | case $ac_var in #( |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17058 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 17059 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17060 | esac |
| 17061 | case $ac_var in #( |
| 17062 | _ | IFS | as_nl) ;; #( |
| 17063 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17064 | *) { eval $ac_var=; unset $ac_var;} ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17065 | esac ;; |
| 17066 | esac |
| 17067 | done |
| 17068 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17069 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17070 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 17071 | *${as_nl}ac_space=\ *) |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17072 | # 'set' does not quote correctly, so add quotes: double-quote |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17073 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17074 | sed -n \ |
| 17075 | "s/'/'\\\\''/g; |
| 17076 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17077 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17078 | *) |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17079 | # 'set' quotes correctly as required by POSIX, so do not add quotes. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17080 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17081 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17082 | esac | |
| 17083 | sort |
| 17084 | ) | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17085 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17086 | /^ac_cv_env_/b end |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17087 | t clear |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17088 | :clear |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17089 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17090 | t end |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17091 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17092 | :end' >>confcache |
| 17093 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 17094 | if test -w "$cache_file"; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17095 | if test "x$cache_file" != "x/dev/null"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 17097 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17098 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 17099 | cat confcache >"$cache_file" |
| 17100 | else |
| 17101 | case $cache_file in #( |
| 17102 | */* | ?:*) |
| 17103 | mv -f confcache "$cache_file"$$ && |
| 17104 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 17105 | *) |
| 17106 | mv -f confcache "$cache_file" ;; |
| 17107 | esac |
| 17108 | fi |
| 17109 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17110 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 17112 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17113 | fi |
| 17114 | fi |
| 17115 | rm -f confcache |
| 17116 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17117 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17118 | # Let make expand exec_prefix. |
| 17119 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 17120 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17121 | DEFS=-DHAVE_CONFIG_H |
| 17122 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17123 | ac_libobjs= |
| 17124 | ac_ltlibobjs= |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17125 | U= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17126 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 17127 | # 1. Remove the extension, and $U if already installed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17128 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17129 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17130 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 17131 | # will be set to the directory where LIBOBJS objects are built. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17132 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 17133 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17134 | done |
| 17135 | LIBOBJS=$ac_libobjs |
| 17136 | |
| 17137 | LTLIBOBJS=$ac_ltlibobjs |
| 17138 | |
| 17139 | |
| 17140 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17141 | # Check whether --enable-year2038 was given. |
| 17142 | if test ${enable_year2038+y} |
| 17143 | then : |
| 17144 | enableval=$enable_year2038; |
| 17145 | fi |
| 17146 | |
Bram Moolenaar | 0bbabe8 | 2010-05-17 20:32:55 +0200 | [diff] [blame] | 17147 | |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17148 | : "${CONFIG_STATUS=./config.status}" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17149 | ac_write_fail=0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17150 | ac_clean_files_save=$ac_clean_files |
| 17151 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17152 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 17153 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17154 | as_write_fail=0 |
| 17155 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17156 | #! $SHELL |
| 17157 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17158 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17159 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17160 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17161 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17162 | debug=false |
| 17163 | ac_cs_recheck=false |
| 17164 | ac_cs_silent=false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17165 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17166 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 17167 | export SHELL |
| 17168 | _ASEOF |
| 17169 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 17170 | ## -------------------- ## |
| 17171 | ## M4sh Initialization. ## |
| 17172 | ## -------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17173 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17174 | # Be more Bourne compatible |
| 17175 | DUALCASE=1; export DUALCASE # for MKS sh |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17176 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 17177 | then : |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17178 | emulate sh |
| 17179 | NULLCMD=: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17180 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17181 | # is contrary to our usage. Disable this feature. |
| 17182 | alias -g '${1+"$@"}'='"$@"' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17183 | setopt NO_GLOB_SUBST |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17184 | else case e in #( |
| 17185 | e) case `(set -o) 2>/dev/null` in #( |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17186 | *posix*) : |
| 17187 | set -o posix ;; #( |
| 17188 | *) : |
| 17189 | ;; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17190 | esac ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17191 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17192 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17193 | |
| 17194 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17195 | |
| 17196 | # Reset variables that may have inherited troublesome values from |
| 17197 | # the environment. |
| 17198 | |
| 17199 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 17200 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 17201 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 17202 | # Quoting is to prevent editors from complaining about space-tab. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17203 | as_nl=' |
| 17204 | ' |
| 17205 | export as_nl |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17206 | IFS=" "" $as_nl" |
| 17207 | |
| 17208 | PS1='$ ' |
| 17209 | PS2='> ' |
| 17210 | PS4='+ ' |
| 17211 | |
| 17212 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 17213 | LC_ALL=C |
| 17214 | export LC_ALL |
| 17215 | LANGUAGE=C |
| 17216 | export LANGUAGE |
| 17217 | |
| 17218 | # We cannot yet rely on "unset" to work, but we need these variables |
| 17219 | # to be unset--not just set to an empty or harmless value--now, to |
| 17220 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 17221 | # also avoids known problems related to "unset" and subshell syntax |
| 17222 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 17223 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 17224 | do eval test \${$as_var+y} \ |
| 17225 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 17226 | done |
| 17227 | |
| 17228 | # Ensure that fds 0, 1, and 2 are open. |
| 17229 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 17230 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 17231 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17232 | |
| 17233 | # The user is always right. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17234 | if ${PATH_SEPARATOR+false} :; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17235 | PATH_SEPARATOR=: |
| 17236 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 17237 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 17238 | PATH_SEPARATOR=';' |
| 17239 | } |
| 17240 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17241 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17242 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17243 | # Find who we are. Look in the path if we contain no directory separator. |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17244 | as_myself= |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17245 | case $0 in #(( |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17246 | *[\\/]* ) as_myself=$0 ;; |
| 17247 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17248 | for as_dir in $PATH |
| 17249 | do |
| 17250 | IFS=$as_save_IFS |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17251 | case $as_dir in #((( |
| 17252 | '') as_dir=./ ;; |
| 17253 | */) ;; |
| 17254 | *) as_dir=$as_dir/ ;; |
| 17255 | esac |
| 17256 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17257 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17258 | IFS=$as_save_IFS |
| 17259 | |
| 17260 | ;; |
| 17261 | esac |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17262 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17263 | # in which case we are not to be found in the path. |
| 17264 | if test "x$as_myself" = x; then |
| 17265 | as_myself=$0 |
| 17266 | fi |
| 17267 | if test ! -f "$as_myself"; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17268 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17269 | exit 1 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17270 | fi |
| 17271 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17272 | |
| 17273 | |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17274 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 17275 | # ---------------------------------------- |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17276 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 17277 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17278 | # script with STATUS, using 1 if that was 0. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17279 | as_fn_error () |
| 17280 | { |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17281 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 17282 | if test "$4"; then |
| 17283 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17284 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17285 | fi |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17286 | printf "%s\n" "$as_me: error: $2" >&2 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17287 | as_fn_exit $as_status |
| 17288 | } # as_fn_error |
| 17289 | |
| 17290 | |
| 17291 | # as_fn_set_status STATUS |
| 17292 | # ----------------------- |
| 17293 | # Set $? to STATUS, without forking. |
| 17294 | as_fn_set_status () |
| 17295 | { |
| 17296 | return $1 |
| 17297 | } # as_fn_set_status |
| 17298 | |
| 17299 | # as_fn_exit STATUS |
| 17300 | # ----------------- |
| 17301 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 17302 | as_fn_exit () |
| 17303 | { |
| 17304 | set +e |
| 17305 | as_fn_set_status $1 |
| 17306 | exit $1 |
| 17307 | } # as_fn_exit |
| 17308 | |
| 17309 | # as_fn_unset VAR |
| 17310 | # --------------- |
| 17311 | # Portably unset VAR. |
| 17312 | as_fn_unset () |
| 17313 | { |
| 17314 | { eval $1=; unset $1;} |
| 17315 | } |
| 17316 | as_unset=as_fn_unset |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17317 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17318 | # as_fn_append VAR VALUE |
| 17319 | # ---------------------- |
| 17320 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 17321 | # advantage of any shell optimizations that allow amortized linear growth over |
| 17322 | # repeated appends, instead of the typical quadratic growth present in naive |
| 17323 | # implementations. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17324 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 17325 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17326 | eval 'as_fn_append () |
| 17327 | { |
| 17328 | eval $1+=\$2 |
| 17329 | }' |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17330 | else case e in #( |
| 17331 | e) as_fn_append () |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17332 | { |
| 17333 | eval $1=\$$1\$2 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17334 | } ;; |
| 17335 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17336 | fi # as_fn_append |
| 17337 | |
| 17338 | # as_fn_arith ARG... |
| 17339 | # ------------------ |
| 17340 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 17341 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 17342 | # must be portable across $(()) and expr. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17343 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 17344 | then : |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17345 | eval 'as_fn_arith () |
| 17346 | { |
| 17347 | as_val=$(( $* )) |
| 17348 | }' |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17349 | else case e in #( |
| 17350 | e) as_fn_arith () |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17351 | { |
| 17352 | as_val=`expr "$@" || test $? -eq 1` |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17353 | } ;; |
| 17354 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17355 | fi # as_fn_arith |
| 17356 | |
| 17357 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17358 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17359 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17360 | as_expr=expr |
| 17361 | else |
| 17362 | as_expr=false |
| 17363 | fi |
| 17364 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17365 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17366 | as_basename=basename |
| 17367 | else |
| 17368 | as_basename=false |
| 17369 | fi |
| 17370 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17371 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 17372 | as_dirname=dirname |
| 17373 | else |
| 17374 | as_dirname=false |
| 17375 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17376 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17377 | as_me=`$as_basename -- "$0" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17378 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17379 | X"$0" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17380 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17381 | printf "%s\n" X/"$0" | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17382 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 17383 | s//\1/ |
| 17384 | q |
| 17385 | } |
| 17386 | /^X\/\(\/\/\)$/{ |
| 17387 | s//\1/ |
| 17388 | q |
| 17389 | } |
| 17390 | /^X\/\(\/\).*/{ |
| 17391 | s//\1/ |
| 17392 | q |
| 17393 | } |
| 17394 | s/.*/./; q'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17395 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17396 | # Avoid depending upon Character Ranges. |
| 17397 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17398 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17399 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17400 | as_cr_digits='0123456789' |
| 17401 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17402 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17403 | |
| 17404 | # Determine whether it's possible to make 'echo' print without a newline. |
| 17405 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 17406 | # for compatibility with existing Makefiles. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17407 | ECHO_C= ECHO_N= ECHO_T= |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17408 | case `echo -n x` in #((((( |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17409 | -n*) |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17410 | case `echo 'xy\c'` in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17411 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17412 | xy) ECHO_C='\c';; |
| 17413 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 17414 | ECHO_T=' ';; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17415 | esac;; |
| 17416 | *) |
| 17417 | ECHO_N='-n';; |
| 17418 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17419 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17420 | # For backward compatibility with old third-party macros, we provide |
| 17421 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 17422 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 17423 | as_echo='printf %s\n' |
| 17424 | as_echo_n='printf %s' |
| 17425 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17426 | rm -f conf$$ conf$$.exe conf$$.file |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17427 | if test -d conf$$.dir; then |
| 17428 | rm -f conf$$.dir/conf$$.file |
| 17429 | else |
| 17430 | rm -f conf$$.dir |
| 17431 | mkdir conf$$.dir 2>/dev/null |
| 17432 | fi |
| 17433 | if (echo >conf$$.file) 2>/dev/null; then |
| 17434 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17435 | as_ln_s='ln -s' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17436 | # ... but there are two gotchas: |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17437 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 17438 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 17439 | # In both cases, we have to default to 'cp -pR'. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17440 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17441 | as_ln_s='cp -pR' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17442 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17443 | as_ln_s=ln |
| 17444 | else |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17445 | as_ln_s='cp -pR' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17446 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17447 | else |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17448 | as_ln_s='cp -pR' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17449 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17450 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 17451 | rmdir conf$$.dir 2>/dev/null |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17452 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17453 | |
| 17454 | # as_fn_mkdir_p |
| 17455 | # ------------- |
| 17456 | # Create "$as_dir" as a directory, including parents if necessary. |
| 17457 | as_fn_mkdir_p () |
| 17458 | { |
| 17459 | |
| 17460 | case $as_dir in #( |
| 17461 | -*) as_dir=./$as_dir;; |
| 17462 | esac |
| 17463 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 17464 | as_dirs= |
| 17465 | while :; do |
| 17466 | case $as_dir in #( |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17467 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17468 | *) as_qdir=$as_dir;; |
| 17469 | esac |
| 17470 | as_dirs="'$as_qdir' $as_dirs" |
| 17471 | as_dir=`$as_dirname -- "$as_dir" || |
| 17472 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17473 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17474 | X"$as_dir" : 'X\(//\)$' \| \ |
| 17475 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17476 | printf "%s\n" X"$as_dir" | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17477 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17478 | s//\1/ |
| 17479 | q |
| 17480 | } |
| 17481 | /^X\(\/\/\)[^/].*/{ |
| 17482 | s//\1/ |
| 17483 | q |
| 17484 | } |
| 17485 | /^X\(\/\/\)$/{ |
| 17486 | s//\1/ |
| 17487 | q |
| 17488 | } |
| 17489 | /^X\(\/\).*/{ |
| 17490 | s//\1/ |
| 17491 | q |
| 17492 | } |
| 17493 | s/.*/./; q'` |
| 17494 | test -d "$as_dir" && break |
| 17495 | done |
| 17496 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17497 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17498 | |
| 17499 | |
| 17500 | } # as_fn_mkdir_p |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17501 | if mkdir -p . 2>/dev/null; then |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17502 | as_mkdir_p='mkdir -p "$as_dir"' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17503 | else |
| 17504 | test -d ./-p && rmdir ./-p |
| 17505 | as_mkdir_p=false |
| 17506 | fi |
| 17507 | |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17508 | |
| 17509 | # as_fn_executable_p FILE |
| 17510 | # ----------------------- |
| 17511 | # Test if FILE is an executable regular file. |
| 17512 | as_fn_executable_p () |
| 17513 | { |
| 17514 | test -f "$1" && test -x "$1" |
| 17515 | } # as_fn_executable_p |
| 17516 | as_test_x='test -x' |
| 17517 | as_executable_p=as_fn_executable_p |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17518 | |
| 17519 | # Sed expression to map a string onto a valid CPP name. |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17520 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 17521 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17522 | |
| 17523 | # Sed expression to map a string onto a valid variable name. |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17524 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 17525 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17526 | |
| 17527 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17528 | exec 6>&1 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17529 | ## ----------------------------------- ## |
| 17530 | ## Main body of $CONFIG_STATUS script. ## |
| 17531 | ## ----------------------------------- ## |
| 17532 | _ASEOF |
| 17533 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17534 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17535 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17536 | # Save the log message, to keep $0 and so on meaningful, and to |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17537 | # report actual input values of CONFIG_FILES etc. instead of their |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17538 | # values after options handling. |
| 17539 | ac_log=" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17540 | This file was extended by $as_me, which was |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17541 | generated by GNU Autoconf 2.72. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17542 | |
| 17543 | CONFIG_FILES = $CONFIG_FILES |
| 17544 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17545 | CONFIG_LINKS = $CONFIG_LINKS |
| 17546 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17547 | $ $0 $@ |
| 17548 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17549 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17550 | " |
| 17551 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17552 | _ACEOF |
| 17553 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17554 | case $ac_config_files in *" |
| 17555 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 17556 | esac |
| 17557 | |
| 17558 | case $ac_config_headers in *" |
| 17559 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 17560 | esac |
| 17561 | |
| 17562 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17563 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17564 | # Files that config.status was made for. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17565 | config_files="$ac_config_files" |
| 17566 | config_headers="$ac_config_headers" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17567 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17568 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17569 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17570 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17571 | ac_cs_usage="\ |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17572 | '$as_me' instantiates files and other configuration actions |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17573 | from templates according to the current configuration. Unless the files |
| 17574 | and actions are specified as TAGs, all are instantiated by default. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17575 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17576 | Usage: $0 [OPTION]... [TAG]... |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17577 | |
| 17578 | -h, --help print this help, then exit |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17579 | -V, --version print version number and configuration settings, then exit |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17580 | --config print configuration, then exit |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17581 | -q, --quiet, --silent |
| 17582 | do not print progress messages |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17583 | -d, --debug don't remove temporary files |
| 17584 | --recheck update $as_me by reconfiguring in the same conditions |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17585 | --file=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17586 | instantiate the configuration file FILE |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17587 | --header=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17588 | instantiate the configuration header FILE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17589 | |
| 17590 | Configuration files: |
| 17591 | $config_files |
| 17592 | |
| 17593 | Configuration headers: |
| 17594 | $config_headers |
| 17595 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17596 | Report bugs to the package provider." |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17597 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17598 | _ACEOF |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17599 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 17600 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17601 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17602 | ac_cs_config='$ac_cs_config_escaped' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17603 | ac_cs_version="\\ |
| 17604 | config.status |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17605 | configured by $0, generated by GNU Autoconf 2.72, |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17606 | with options \\"\$ac_cs_config\\" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17607 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17608 | Copyright (C) 2023 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17609 | This config.status script is free software; the Free Software Foundation |
| 17610 | gives unlimited permission to copy, distribute and modify it." |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17611 | |
| 17612 | ac_pwd='$ac_pwd' |
| 17613 | srcdir='$srcdir' |
| 17614 | AWK='$AWK' |
| 17615 | test -n "\$AWK" || AWK=awk |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17616 | _ACEOF |
| 17617 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17618 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17619 | # The default lists apply if the user does not specify any file. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17620 | ac_need_defaults=: |
| 17621 | while test $# != 0 |
| 17622 | do |
| 17623 | case $1 in |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17624 | --*=?*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17625 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17626 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17627 | ac_shift=: |
| 17628 | ;; |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17629 | --*=) |
| 17630 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17631 | ac_optarg= |
| 17632 | ac_shift=: |
| 17633 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17634 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17635 | ac_option=$1 |
| 17636 | ac_optarg=$2 |
| 17637 | ac_shift=shift |
| 17638 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17639 | esac |
| 17640 | |
| 17641 | case $ac_option in |
| 17642 | # Handling of the options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17643 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17644 | ac_cs_recheck=: ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17645 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17646 | printf "%s\n" "$ac_cs_version"; exit ;; |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17647 | --config | --confi | --conf | --con | --co | --c ) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17648 | printf "%s\n" "$ac_cs_config"; exit ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17649 | --debug | --debu | --deb | --de | --d | -d ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17650 | debug=: ;; |
| 17651 | --file | --fil | --fi | --f ) |
| 17652 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17653 | case $ac_optarg in |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17654 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17655 | '') as_fn_error $? "missing file argument" ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17656 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17657 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17658 | ac_need_defaults=false;; |
| 17659 | --header | --heade | --head | --hea ) |
| 17660 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17661 | case $ac_optarg in |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17662 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17663 | esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17664 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17665 | ac_need_defaults=false;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17666 | --he | --h) |
| 17667 | # Conflict between --help and --header |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17668 | as_fn_error $? "ambiguous option: '$1' |
| 17669 | Try '$0 --help' for more information.";; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17670 | --help | --hel | -h ) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17671 | printf "%s\n" "$ac_cs_usage"; exit ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17672 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 17673 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 17674 | ac_cs_silent=: ;; |
| 17675 | |
| 17676 | # This is an error. |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17677 | -*) as_fn_error $? "unrecognized option: '$1' |
| 17678 | Try '$0 --help' for more information." ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17679 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17680 | *) as_fn_append ac_config_targets " $1" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17681 | ac_need_defaults=false ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17682 | |
| 17683 | esac |
| 17684 | shift |
| 17685 | done |
| 17686 | |
| 17687 | ac_configure_extra_args= |
| 17688 | |
| 17689 | if $ac_cs_silent; then |
| 17690 | exec 6>/dev/null |
| 17691 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17692 | fi |
| 17693 | |
| 17694 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17695 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17696 | if \$ac_cs_recheck; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17697 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17698 | shift |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17699 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17700 | CONFIG_SHELL='$SHELL' |
| 17701 | export CONFIG_SHELL |
| 17702 | exec "\$@" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17703 | fi |
| 17704 | |
| 17705 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17706 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17707 | exec 5>>auto/config.log |
| 17708 | { |
| 17709 | echo |
| 17710 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17711 | ## Running $as_me. ## |
| 17712 | _ASBOX |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17713 | printf "%s\n" "$ac_log" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17714 | } >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17715 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17716 | _ACEOF |
| 17717 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17718 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17719 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17720 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17721 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17722 | # Handling of arguments. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17723 | for ac_config_target in $ac_config_targets |
| 17724 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17725 | case $ac_config_target in |
| 17726 | "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 17727 | "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 17728 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17729 | *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17730 | esac |
| 17731 | done |
| 17732 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17733 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17734 | # If the user did not use the arguments to specify the items to instantiate, |
| 17735 | # then the envvar interface is used. Set only those that are not. |
| 17736 | # We use the long form for the default assignment because of an extremely |
| 17737 | # bizarre bug on SunOS 4.1.3. |
| 17738 | if $ac_need_defaults; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 17739 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 17740 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17741 | fi |
| 17742 | |
| 17743 | # Have a temporary directory for convenience. Make it in the build tree |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17744 | # simply because there is no reason against having it here, and in addition, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17745 | # creating and moving files from /tmp can sometimes cause problems. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17746 | # Hook for its removal unless debugging. |
| 17747 | # Note that there is a small window in which the directory will not be cleaned: |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17748 | # after its creation but before its name has been assigned to '$tmp'. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17749 | $debug || |
| 17750 | { |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17751 | tmp= ac_tmp= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17752 | trap 'exit_status=$? |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17753 | : "${ac_tmp:=$tmp}" |
| 17754 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17755 | ' 0 |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17756 | trap 'as_fn_exit 1' 1 2 13 15 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17757 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17758 | # Create a (secure) tmp directory for tmp files. |
| 17759 | |
| 17760 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17761 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17762 | test -d "$tmp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17763 | } || |
| 17764 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17765 | tmp=./conf$$-$RANDOM |
| 17766 | (umask 077 && mkdir "$tmp") |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17767 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 17768 | ac_tmp=$tmp |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17769 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17770 | # Set up the scripts for CONFIG_FILES section. |
| 17771 | # No need to generate them if there are no CONFIG_FILES. |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17772 | # This happens for instance with './config.status config.h'. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17773 | if test -n "$CONFIG_FILES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17774 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17775 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17776 | ac_cr=`echo X | tr X '\015'` |
| 17777 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 17778 | # But we know of no other shell where ac_cr would be empty at this |
| 17779 | # point, so we can use a bashism as a fallback. |
| 17780 | if test "x$ac_cr" = x; then |
| 17781 | eval ac_cr=\$\'\\r\' |
| 17782 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17783 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 17784 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17785 | ac_cs_awk_cr='\\r' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17786 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17787 | ac_cs_awk_cr=$ac_cr |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17788 | fi |
| 17789 | |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17790 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17791 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17792 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17793 | |
| 17794 | { |
| 17795 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 17796 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 17797 | echo "_ACEOF" |
| 17798 | } >conf$$subs.sh || |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17799 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 17800 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17801 | ac_delim='%!_!# ' |
| 17802 | for ac_last_try in false false false false false :; do |
| 17803 | . ./conf$$subs.sh || |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17804 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17805 | |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 17806 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 17807 | if test $ac_delim_n = $ac_delim_num; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17808 | break |
| 17809 | elif $ac_last_try; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17810 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17811 | else |
| 17812 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17813 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17814 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17815 | rm -f conf$$subs.sh |
| 17816 | |
| 17817 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17818 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17819 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17820 | sed -n ' |
| 17821 | h |
| 17822 | s/^/S["/; s/!.*/"]=/ |
| 17823 | p |
| 17824 | g |
| 17825 | s/^[^!]*!// |
| 17826 | :repl |
| 17827 | t repl |
| 17828 | s/'"$ac_delim"'$// |
| 17829 | t delim |
| 17830 | :nl |
| 17831 | h |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17832 | s/\(.\{148\}\)..*/\1/ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17833 | t more1 |
| 17834 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 17835 | p |
| 17836 | n |
| 17837 | b repl |
| 17838 | :more1 |
| 17839 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17840 | p |
| 17841 | g |
| 17842 | s/.\{148\}// |
| 17843 | t nl |
| 17844 | :delim |
| 17845 | h |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 17846 | s/\(.\{148\}\)..*/\1/ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17847 | t more2 |
| 17848 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 17849 | p |
| 17850 | b |
| 17851 | :more2 |
| 17852 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17853 | p |
| 17854 | g |
| 17855 | s/.\{148\}// |
| 17856 | t delim |
| 17857 | ' <conf$$subs.awk | sed ' |
| 17858 | /^[^""]/{ |
| 17859 | N |
| 17860 | s/\n// |
| 17861 | } |
| 17862 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17863 | rm -f conf$$subs.awk |
| 17864 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17865 | _ACAWK |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17866 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17867 | for (key in S) S_is_set[key] = 1 |
| 17868 | FS = "" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17869 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17870 | } |
| 17871 | { |
| 17872 | line = $ 0 |
| 17873 | nfields = split(line, field, "@") |
| 17874 | substed = 0 |
| 17875 | len = length(field[1]) |
| 17876 | for (i = 2; i < nfields; i++) { |
| 17877 | key = field[i] |
| 17878 | keylen = length(key) |
| 17879 | if (S_is_set[key]) { |
| 17880 | value = S[key] |
| 17881 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17882 | len += length(value) + length(field[++i]) |
| 17883 | substed = 1 |
| 17884 | } else |
| 17885 | len += 1 + keylen |
| 17886 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17887 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17888 | print line |
| 17889 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17890 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17891 | _ACAWK |
| 17892 | _ACEOF |
| 17893 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17894 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17895 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17896 | else |
| 17897 | cat |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17898 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 17899 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17900 | _ACEOF |
| 17901 | |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17902 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 17903 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17904 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17905 | # (actually we leave an empty line to preserve line numbers). |
| 17906 | if test "x$srcdir" = x.; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17907 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 17908 | h |
| 17909 | s/// |
| 17910 | s/^/:/ |
| 17911 | s/[ ]*$/:/ |
| 17912 | s/:\$(srcdir):/:/g |
| 17913 | s/:\${srcdir}:/:/g |
| 17914 | s/:@srcdir@:/:/g |
| 17915 | s/^:*// |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17916 | s/:*$// |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17917 | x |
| 17918 | s/\(=[ ]*\).*/\1/ |
| 17919 | G |
| 17920 | s/\n// |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17921 | s/^[^=]*=[ ]*$// |
| 17922 | }' |
| 17923 | fi |
| 17924 | |
| 17925 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17926 | fi # test -n "$CONFIG_FILES" |
| 17927 | |
| 17928 | # Set up the scripts for CONFIG_HEADERS section. |
| 17929 | # No need to generate them if there are no CONFIG_HEADERS. |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17930 | # This happens for instance with './config.status Makefile'. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17931 | if test -n "$CONFIG_HEADERS"; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17932 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17933 | BEGIN { |
| 17934 | _ACEOF |
| 17935 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 17936 | # Transform confdefs.h into an awk script 'defines.awk', embedded as |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17937 | # here-document in config.status, that substitutes the proper values into |
| 17938 | # config.h.in to produce config.h. |
| 17939 | |
| 17940 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 17941 | # handling of long lines. |
| 17942 | ac_delim='%!_!# ' |
| 17943 | for ac_last_try in false false :; do |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17944 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 17945 | if test -z "$ac_tt"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17946 | break |
| 17947 | elif $ac_last_try; then |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 17948 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17949 | else |
| 17950 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17951 | fi |
| 17952 | done |
| 17953 | |
| 17954 | # For the awk script, D is an array of macro values keyed by name, |
| 17955 | # likewise P contains macro parameters if any. Preserve backslash |
| 17956 | # newline sequences. |
| 17957 | |
| 17958 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 17959 | sed -n ' |
| 17960 | s/.\{148\}/&'"$ac_delim"'/g |
| 17961 | t rset |
| 17962 | :rset |
| 17963 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 17964 | t def |
| 17965 | d |
| 17966 | :def |
| 17967 | s/\\$// |
| 17968 | t bsnl |
| 17969 | s/["\\]/\\&/g |
| 17970 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17971 | D["\1"]=" \3"/p |
| 17972 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 17973 | d |
| 17974 | :bsnl |
| 17975 | s/["\\]/\\&/g |
| 17976 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17977 | D["\1"]=" \3\\\\\\n"\\/p |
| 17978 | t cont |
| 17979 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 17980 | t cont |
| 17981 | d |
| 17982 | :cont |
| 17983 | n |
| 17984 | s/.\{148\}/&'"$ac_delim"'/g |
| 17985 | t clear |
| 17986 | :clear |
| 17987 | s/\\$// |
| 17988 | t bsnlc |
| 17989 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 17990 | d |
| 17991 | :bsnlc |
| 17992 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 17993 | b cont |
| 17994 | ' <confdefs.h | sed ' |
| 17995 | s/'"$ac_delim"'/"\\\ |
| 17996 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17997 | |
| 17998 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17999 | for (key in D) D_is_set[key] = 1 |
| 18000 | FS = "" |
| 18001 | } |
| 18002 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 18003 | line = \$ 0 |
| 18004 | split(line, arg, " ") |
| 18005 | if (arg[1] == "#") { |
| 18006 | defundef = arg[2] |
| 18007 | mac1 = arg[3] |
| 18008 | } else { |
| 18009 | defundef = substr(arg[1], 2) |
| 18010 | mac1 = arg[2] |
| 18011 | } |
| 18012 | split(mac1, mac2, "(") #) |
| 18013 | macro = mac2[1] |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18014 | prefix = substr(line, 1, index(line, defundef) - 1) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18015 | if (D_is_set[macro]) { |
| 18016 | # Preserve the white space surrounding the "#". |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18017 | print prefix "define", macro P[macro] D[macro] |
| 18018 | next |
| 18019 | } else { |
| 18020 | # Replace #undef with comments. This is necessary, for example, |
| 18021 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 18022 | # on some systems where configure will not decide to define it. |
| 18023 | if (defundef == "undef") { |
Bram Moolenaar | 32f31b1 | 2009-05-21 13:20:59 +0000 | [diff] [blame] | 18024 | print "/*", prefix defundef, macro, "*/" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18025 | next |
| 18026 | } |
| 18027 | } |
| 18028 | } |
| 18029 | { print } |
| 18030 | _ACAWK |
| 18031 | _ACEOF |
| 18032 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18033 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18034 | fi # test -n "$CONFIG_HEADERS" |
| 18035 | |
| 18036 | |
| 18037 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 18038 | shift |
| 18039 | for ac_tag |
| 18040 | do |
| 18041 | case $ac_tag in |
| 18042 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 18043 | esac |
| 18044 | case $ac_mode$ac_tag in |
| 18045 | :[FHL]*:*);; |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 18046 | :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18047 | :[FH]-) ac_tag=-:-;; |
| 18048 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 18049 | esac |
| 18050 | ac_save_IFS=$IFS |
| 18051 | IFS=: |
| 18052 | set x $ac_tag |
| 18053 | IFS=$ac_save_IFS |
| 18054 | shift |
| 18055 | ac_file=$1 |
| 18056 | shift |
| 18057 | |
| 18058 | case $ac_mode in |
| 18059 | :L) ac_source=$1;; |
| 18060 | :[FH]) |
| 18061 | ac_file_inputs= |
| 18062 | for ac_f |
| 18063 | do |
| 18064 | case $ac_f in |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18065 | -) ac_f="$ac_tmp/stdin";; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18066 | *) # Look for the file first in the build tree, then in the source tree |
| 18067 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 18068 | # because $ac_f cannot contain ':'. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18069 | test -f "$ac_f" || |
| 18070 | case $ac_f in |
| 18071 | [\\/$]*) false;; |
| 18072 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 18073 | esac || |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 18074 | as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18075 | esac |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18076 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 18077 | as_fn_append ac_file_inputs " '$ac_f'" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18078 | done |
| 18079 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 18080 | # Let's still pretend it is 'configure' which instantiates (i.e., don't |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18081 | # use $as_me), people would be surprised to read: |
| 18082 | # /* config.h. Generated by config.status. */ |
| 18083 | configure_input='Generated from '` |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18084 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18085 | `' by configure.' |
| 18086 | if test x"$ac_file" != x-; then |
| 18087 | configure_input="$ac_file. $configure_input" |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18088 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 18089 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18090 | fi |
| 18091 | # Neutralize special characters interpreted by sed in replacement strings. |
| 18092 | case $configure_input in #( |
| 18093 | *\&* | *\|* | *\\* ) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18094 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18095 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 18096 | *) ac_sed_conf_input=$configure_input;; |
| 18097 | esac |
| 18098 | |
| 18099 | case $ac_tag in |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18100 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 18101 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18102 | esac |
| 18103 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18104 | esac |
| 18105 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18106 | ac_dir=`$as_dirname -- "$ac_file" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18107 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18108 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18109 | X"$ac_file" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18110 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18111 | printf "%s\n" X"$ac_file" | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18112 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18113 | s//\1/ |
| 18114 | q |
| 18115 | } |
| 18116 | /^X\(\/\/\)[^/].*/{ |
| 18117 | s//\1/ |
| 18118 | q |
| 18119 | } |
| 18120 | /^X\(\/\/\)$/{ |
| 18121 | s//\1/ |
| 18122 | q |
| 18123 | } |
| 18124 | /^X\(\/\).*/{ |
| 18125 | s//\1/ |
| 18126 | q |
| 18127 | } |
| 18128 | s/.*/./; q'` |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 18129 | as_dir="$ac_dir"; as_fn_mkdir_p |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18130 | ac_builddir=. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18131 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18132 | case "$ac_dir" in |
| 18133 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18134 | *) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18135 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18136 | # A ".." for each directory in $ac_dir_suffix. |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18137 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18138 | case $ac_top_builddir_sub in |
| 18139 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18140 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 18141 | esac ;; |
| 18142 | esac |
| 18143 | ac_abs_top_builddir=$ac_pwd |
| 18144 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 18145 | # for backward compatibility: |
| 18146 | ac_top_builddir=$ac_top_build_prefix |
| 18147 | |
| 18148 | case $srcdir in |
| 18149 | .) # We are building in place. |
| 18150 | ac_srcdir=. |
| 18151 | ac_top_srcdir=$ac_top_builddir_sub |
| 18152 | ac_abs_top_srcdir=$ac_pwd ;; |
| 18153 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 18154 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 18155 | ac_top_srcdir=$srcdir |
| 18156 | ac_abs_top_srcdir=$srcdir ;; |
| 18157 | *) # Relative name. |
| 18158 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 18159 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 18160 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 18161 | esac |
| 18162 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 18163 | |
| 18164 | |
| 18165 | case $ac_mode in |
| 18166 | :F) |
| 18167 | # |
| 18168 | # CONFIG_FILE |
| 18169 | # |
| 18170 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18171 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18172 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18173 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18174 | # If the template does not know about datarootdir, expand it. |
| 18175 | # FIXME: This hack should be removed a few years after 2.60. |
| 18176 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18177 | ac_sed_dataroot=' |
| 18178 | /datarootdir/ { |
| 18179 | p |
| 18180 | q |
| 18181 | } |
| 18182 | /@datadir@/p |
| 18183 | /@docdir@/p |
| 18184 | /@infodir@/p |
| 18185 | /@localedir@/p |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 18186 | /@mandir@/p' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18187 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 18188 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 18189 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18190 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 18191 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18192 | _ACEOF |
| 18193 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18194 | ac_datarootdir_hack=' |
| 18195 | s&@datadir@&$datadir&g |
| 18196 | s&@docdir@&$docdir&g |
| 18197 | s&@infodir@&$infodir&g |
| 18198 | s&@localedir@&$localedir&g |
| 18199 | s&@mandir@&$mandir&g |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 18200 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18201 | esac |
| 18202 | _ACEOF |
| 18203 | |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 18204 | # Neutralize VPATH when '$srcdir' = '.'. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18205 | # Shell code in configure.ac might set extrasub. |
| 18206 | # FIXME: do we really want to maintain this feature? |
| 18207 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18208 | ac_sed_extra="$ac_vpsub |
| 18209 | $extrasub |
| 18210 | _ACEOF |
| 18211 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18212 | :t |
| 18213 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 18214 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 18215 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 18216 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 18217 | s&@srcdir@&$ac_srcdir&;t t |
| 18218 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 18219 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 18220 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 18221 | s&@builddir@&$ac_builddir&;t t |
| 18222 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 18223 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 18224 | $ac_datarootdir_hack |
| 18225 | " |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18226 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 18227 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18228 | |
| 18229 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18230 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 18231 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 18232 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 18233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18234 | which seems to be undefined. Please make sure it is defined" >&5 |
Christian Brabandt | 9670f61 | 2025-05-07 21:44:33 +0200 | [diff] [blame] | 18235 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18236 | which seems to be undefined. Please make sure it is defined" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18237 | |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18238 | rm -f "$ac_tmp/stdin" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18239 | case $ac_file in |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18240 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 18241 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18242 | esac \ |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18243 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18244 | ;; |
| 18245 | :H) |
| 18246 | # |
| 18247 | # CONFIG_HEADER |
| 18248 | # |
| 18249 | if test x"$ac_file" != x-; then |
| 18250 | { |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18251 | printf "%s\n" "/* $configure_input */" >&1 \ |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18252 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 18253 | } >"$ac_tmp/config.h" \ |
| 18254 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 18255 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18256 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 18257 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18258 | else |
| 18259 | rm -f "$ac_file" |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18260 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 18261 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18262 | fi |
| 18263 | else |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18264 | printf "%s\n" "/* $configure_input */" >&1 \ |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18265 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 18266 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18267 | fi |
| 18268 | ;; |
| 18269 | |
| 18270 | |
| 18271 | esac |
| 18272 | |
| 18273 | done # for ac_tag |
| 18274 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18275 | |
Bram Moolenaar | abb8d0b | 2010-05-15 15:04:53 +0200 | [diff] [blame] | 18276 | as_fn_exit 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18277 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18278 | ac_clean_files=$ac_clean_files_save |
| 18279 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18280 | test $ac_write_fail = 0 || |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18281 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18282 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18283 | |
| 18284 | # configure is writing to config.log, and then calls config.status. |
| 18285 | # config.status does its own redirection, appending to config.log. |
| 18286 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18287 | # by configure, so config.status won't be able to write to it; its |
| 18288 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18289 | # effectively closing config.log, so it can be properly (re)opened and |
| 18290 | # appended to by config.status. When coming back to configure, we |
| 18291 | # need to make the FD available again. |
| 18292 | if test "$no_create" != yes; then |
| 18293 | ac_cs_success=: |
| 18294 | ac_config_status_args= |
| 18295 | test "$silent" = yes && |
| 18296 | ac_config_status_args="$ac_config_status_args --quiet" |
| 18297 | exec 5>/dev/null |
| 18298 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 18299 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18300 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18301 | # would make configure fail if this is the last instruction. |
Bram Moolenaar | 7db7784 | 2014-03-27 17:40:59 +0100 | [diff] [blame] | 18302 | $ac_cs_success || as_fn_exit 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18303 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18304 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18305 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 18306 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18307 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18308 | |
| 18309 | |
Illia Bobyr | a96d544 | 2023-08-30 16:30:15 +0200 | [diff] [blame] | 18310 | |