Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Pascal Bühler | 34acba6 | 2017-01-19 10:57:30 +0100 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for libsrtp2 2.1.0-pre. |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <https://github.com/cisco/libsrtp/issues>. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6 | # |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 9 | # |
| 10 | # |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 16 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 26 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 33 | fi |
| 34 | |
| 35 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
| 92 | as_myself= |
| 93 | case $0 in #(( |
| 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
| 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 123 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 133 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
| 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
| 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
| 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
| 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 201 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 202 | if (eval "$as_required") 2>/dev/null; then : |
| 203 | as_have_required=yes |
| 204 | else |
| 205 | as_have_required=no |
| 206 | fi |
| 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 208 | |
| 209 | else |
| 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 211 | as_found=false |
| 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 213 | do |
| 214 | IFS=$as_save_IFS |
| 215 | test -z "$as_dir" && as_dir=. |
| 216 | as_found=: |
| 217 | case $as_dir in #( |
| 218 | /*) |
| 219 | for as_base in sh bash ksh sh5; do |
| 220 | # Try only shells that exist, to save several forks. |
| 221 | as_shell=$as_dir/$as_base |
| 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 226 | break 2 |
| 227 | fi |
| 228 | fi |
| 229 | done;; |
| 230 | esac |
| 231 | as_found=false |
| 232 | done |
| 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 236 | fi; } |
| 237 | IFS=$as_save_IFS |
| 238 | |
| 239 | |
| 240 | if test "x$CONFIG_SHELL" != x; then : |
| 241 | export CONFIG_SHELL |
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
| 243 | # neutralization value for shells without unset; and this also |
| 244 | # works around shells that cannot unset nonexistent variables. |
| 245 | # Preserve -v and -x to the replacement shell. |
| 246 | BASH_ENV=/dev/null |
| 247 | ENV=/dev/null |
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 249 | case $- in # (((( |
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 251 | *v* ) as_opts=-v ;; |
| 252 | *x* ) as_opts=-x ;; |
| 253 | * ) as_opts= ;; |
| 254 | esac |
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 257 | # out after a failed `exec'. |
| 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 259 | exit 255 |
| 260 | fi |
| 261 | |
| 262 | if test x$as_have_required = xno; then : |
| 263 | $as_echo "$0: This script requires a shell more modern than all" |
| 264 | $as_echo "$0: the shells that I found on your system." |
| 265 | if test x${ZSH_VERSION+set} = xset ; then |
| 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 268 | else |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 270 | $0: https://github.com/cisco/libsrtp/issues about your |
| 271 | $0: system, including any error possibly output before this |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 272 | $0: message. Then install a modern shell, or manually run |
| 273 | $0: the script under such a shell if you do have one." |
| 274 | fi |
| 275 | exit 1 |
| 276 | fi |
| 277 | fi |
| 278 | fi |
| 279 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 280 | export SHELL |
| 281 | # Unset more variables known to interfere with behavior of common tools. |
| 282 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 284 | |
| 285 | ## --------------------- ## |
| 286 | ## M4sh Shell Functions. ## |
| 287 | ## --------------------- ## |
| 288 | # as_fn_unset VAR |
| 289 | # --------------- |
| 290 | # Portably unset VAR. |
| 291 | as_fn_unset () |
| 292 | { |
| 293 | { eval $1=; unset $1;} |
| 294 | } |
| 295 | as_unset=as_fn_unset |
| 296 | |
| 297 | # as_fn_set_status STATUS |
| 298 | # ----------------------- |
| 299 | # Set $? to STATUS, without forking. |
| 300 | as_fn_set_status () |
| 301 | { |
| 302 | return $1 |
| 303 | } # as_fn_set_status |
| 304 | |
| 305 | # as_fn_exit STATUS |
| 306 | # ----------------- |
| 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 308 | as_fn_exit () |
| 309 | { |
| 310 | set +e |
| 311 | as_fn_set_status $1 |
| 312 | exit $1 |
| 313 | } # as_fn_exit |
| 314 | |
| 315 | # as_fn_mkdir_p |
| 316 | # ------------- |
| 317 | # Create "$as_dir" as a directory, including parents if necessary. |
| 318 | as_fn_mkdir_p () |
| 319 | { |
| 320 | |
| 321 | case $as_dir in #( |
| 322 | -*) as_dir=./$as_dir;; |
| 323 | esac |
| 324 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 325 | as_dirs= |
| 326 | while :; do |
| 327 | case $as_dir in #( |
| 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 329 | *) as_qdir=$as_dir;; |
| 330 | esac |
| 331 | as_dirs="'$as_qdir' $as_dirs" |
| 332 | as_dir=`$as_dirname -- "$as_dir" || |
| 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 335 | X"$as_dir" : 'X\(//\)$' \| \ |
| 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 337 | $as_echo X"$as_dir" | |
| 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 339 | s//\1/ |
| 340 | q |
| 341 | } |
| 342 | /^X\(\/\/\)[^/].*/{ |
| 343 | s//\1/ |
| 344 | q |
| 345 | } |
| 346 | /^X\(\/\/\)$/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | /^X\(\/\).*/{ |
| 351 | s//\1/ |
| 352 | q |
| 353 | } |
| 354 | s/.*/./; q'` |
| 355 | test -d "$as_dir" && break |
| 356 | done |
| 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 359 | |
| 360 | |
| 361 | } # as_fn_mkdir_p |
| 362 | |
| 363 | # as_fn_executable_p FILE |
| 364 | # ----------------------- |
| 365 | # Test if FILE is an executable regular file. |
| 366 | as_fn_executable_p () |
| 367 | { |
| 368 | test -f "$1" && test -x "$1" |
| 369 | } # as_fn_executable_p |
| 370 | # as_fn_append VAR VALUE |
| 371 | # ---------------------- |
| 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 373 | # advantage of any shell optimizations that allow amortized linear growth over |
| 374 | # repeated appends, instead of the typical quadratic growth present in naive |
| 375 | # implementations. |
| 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 377 | eval 'as_fn_append () |
| 378 | { |
| 379 | eval $1+=\$2 |
| 380 | }' |
| 381 | else |
| 382 | as_fn_append () |
| 383 | { |
| 384 | eval $1=\$$1\$2 |
| 385 | } |
| 386 | fi # as_fn_append |
| 387 | |
| 388 | # as_fn_arith ARG... |
| 389 | # ------------------ |
| 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 392 | # must be portable across $(()) and expr. |
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 394 | eval 'as_fn_arith () |
| 395 | { |
| 396 | as_val=$(( $* )) |
| 397 | }' |
| 398 | else |
| 399 | as_fn_arith () |
| 400 | { |
| 401 | as_val=`expr "$@" || test $? -eq 1` |
| 402 | } |
| 403 | fi # as_fn_arith |
| 404 | |
| 405 | |
| 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 407 | # ---------------------------------------- |
| 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 410 | # script with STATUS, using 1 if that was 0. |
| 411 | as_fn_error () |
| 412 | { |
| 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 414 | if test "$4"; then |
| 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 417 | fi |
| 418 | $as_echo "$as_me: error: $2" >&2 |
| 419 | as_fn_exit $as_status |
| 420 | } # as_fn_error |
| 421 | |
| 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 424 | as_expr=expr |
| 425 | else |
| 426 | as_expr=false |
| 427 | fi |
| 428 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 430 | as_basename=basename |
| 431 | else |
| 432 | as_basename=false |
| 433 | fi |
| 434 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 436 | as_dirname=dirname |
| 437 | else |
| 438 | as_dirname=false |
| 439 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 440 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 443 | X"$0" : 'X\(//\)$' \| \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 445 | $as_echo X/"$0" | |
| 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 447 | s//\1/ |
| 448 | q |
| 449 | } |
| 450 | /^X\/\(\/\/\)$/{ |
| 451 | s//\1/ |
| 452 | q |
| 453 | } |
| 454 | /^X\/\(\/\).*/{ |
| 455 | s//\1/ |
| 456 | q |
| 457 | } |
| 458 | s/.*/./; q'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 459 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. |
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 464 | as_cr_digits='0123456789' |
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 466 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 467 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 473 | sed -n ' |
| 474 | p |
| 475 | /[$]LINENO/= |
| 476 | ' <$as_myself | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 477 | sed ' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 478 | s/[$]LINENO.*/&-/ |
| 479 | t lineno |
| 480 | b |
| 481 | :lineno |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 482 | N |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 483 | :loop |
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 485 | t loop |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 486 | s/-\n.*// |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 487 | ' >$as_me.lineno && |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 488 | chmod +x "$as_me.lineno" || |
| 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 490 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 492 | # already done that, so ensure we don't try to do so again and fall |
| 493 | # in an infinite loop. This has already happened in practice. |
| 494 | _as_can_reexec=no; export _as_can_reexec |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 496 | # (the dirname of $[0] is not the place where we might find the |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 497 | # original and so on. Autoconf is especially sensitive to this). |
| 498 | . "./$as_me.lineno" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 499 | # Exit status is that of the last command. |
| 500 | exit |
| 501 | } |
| 502 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= |
| 504 | case `echo -n x` in #((((( |
| 505 | -n*) |
| 506 | case `echo 'xy\c'` in |
| 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 508 | xy) ECHO_C='\c';; |
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 510 | ECHO_T=' ';; |
| 511 | esac;; |
| 512 | *) |
| 513 | ECHO_N='-n';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 514 | esac |
| 515 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 517 | if test -d conf$$.dir; then |
| 518 | rm -f conf$$.dir/conf$$.file |
| 519 | else |
| 520 | rm -f conf$$.dir |
| 521 | mkdir conf$$.dir 2>/dev/null |
| 522 | fi |
| 523 | if (echo >conf$$.file) 2>/dev/null; then |
| 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 525 | as_ln_s='ln -s' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 526 | # ... but there are two gotchas: |
| 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 529 | # In both cases, we have to default to `cp -pR'. |
| 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 531 | as_ln_s='cp -pR' |
| 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 533 | as_ln_s=ln |
| 534 | else |
| 535 | as_ln_s='cp -pR' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 536 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 537 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 538 | as_ln_s='cp -pR' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 539 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 541 | rmdir conf$$.dir 2>/dev/null |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 542 | |
| 543 | if mkdir -p . 2>/dev/null; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 545 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 546 | test -d ./-p && rmdir ./-p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 547 | as_mkdir_p=false |
| 548 | fi |
| 549 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 550 | as_test_x='test -x' |
| 551 | as_executable_p=as_fn_executable_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 552 | |
| 553 | # Sed expression to map a string onto a valid CPP name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 555 | |
| 556 | # Sed expression to map a string onto a valid variable name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 558 | |
| 559 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 561 | exec 6>&1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 562 | |
| 563 | # Name of the host. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 565 | # so uname gets run too. |
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 567 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 568 | # |
| 569 | # Initializations. |
| 570 | # |
| 571 | ac_default_prefix=/usr/local |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 572 | ac_clean_files= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 573 | ac_config_libobj_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 574 | LIBOBJS= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 575 | cross_compiling=no |
| 576 | subdirs= |
| 577 | MFLAGS= |
| 578 | MAKEFLAGS= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 579 | |
| 580 | # Identity of this package. |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 581 | PACKAGE_NAME='libsrtp2' |
| 582 | PACKAGE_TARNAME='libsrtp2' |
Pascal Bühler | 34acba6 | 2017-01-19 10:57:30 +0100 | [diff] [blame] | 583 | PACKAGE_VERSION='2.1.0-pre' |
| 584 | PACKAGE_STRING='libsrtp2 2.1.0-pre' |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues' |
| 586 | PACKAGE_URL='' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 587 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 588 | # Factoring default headers for most tests. |
| 589 | ac_includes_default="\ |
| 590 | #include <stdio.h> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 591 | #ifdef HAVE_SYS_TYPES_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 592 | # include <sys/types.h> |
| 593 | #endif |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 594 | #ifdef HAVE_SYS_STAT_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 595 | # include <sys/stat.h> |
| 596 | #endif |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 597 | #ifdef STDC_HEADERS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 598 | # include <stdlib.h> |
| 599 | # include <stddef.h> |
| 600 | #else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 601 | # ifdef HAVE_STDLIB_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 602 | # include <stdlib.h> |
| 603 | # endif |
| 604 | #endif |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 605 | #ifdef HAVE_STRING_H |
| 606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 607 | # include <memory.h> |
| 608 | # endif |
| 609 | # include <string.h> |
| 610 | #endif |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 611 | #ifdef HAVE_STRINGS_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 612 | # include <strings.h> |
| 613 | #endif |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 614 | #ifdef HAVE_INTTYPES_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 615 | # include <inttypes.h> |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 616 | #endif |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 617 | #ifdef HAVE_STDINT_H |
| 618 | # include <stdint.h> |
| 619 | #endif |
| 620 | #ifdef HAVE_UNISTD_H |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 621 | # include <unistd.h> |
| 622 | #endif" |
| 623 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 624 | ac_subst_vars='LTLIBOBJS |
| 625 | LIBOBJS |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 626 | HAVE_PKG_CONFIG |
| 627 | PKG_CONFIG |
Bernardo Torres | b3c5142 | 2014-10-14 12:40:09 -0300 | [diff] [blame] | 628 | HAVE_PCAP |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 629 | HMAC_OBJS |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 630 | AES_ICM_OBJS |
| 631 | USE_OPENSSL |
| 632 | EXE |
| 633 | host_os |
| 634 | host_vendor |
| 635 | host_cpu |
| 636 | host |
| 637 | build_os |
| 638 | build_vendor |
| 639 | build_cpu |
| 640 | build |
| 641 | EGREP |
| 642 | GREP |
| 643 | CPP |
| 644 | INSTALL_DATA |
| 645 | INSTALL_SCRIPT |
| 646 | INSTALL_PROGRAM |
jfigus | 1ce6a74 | 2015-04-06 08:54:01 -0400 | [diff] [blame] | 647 | RANLIB |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 648 | OBJEXT |
| 649 | EXEEXT |
| 650 | ac_ct_CC |
| 651 | CPPFLAGS |
| 652 | LDFLAGS |
| 653 | CFLAGS |
| 654 | CC |
jfigus | 1ce6a74 | 2015-04-06 08:54:01 -0400 | [diff] [blame] | 655 | ac_ct_AR |
| 656 | AR |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 657 | target_alias |
| 658 | host_alias |
| 659 | build_alias |
| 660 | LIBS |
| 661 | ECHO_T |
| 662 | ECHO_N |
| 663 | ECHO_C |
| 664 | DEFS |
| 665 | mandir |
| 666 | localedir |
| 667 | libdir |
| 668 | psdir |
| 669 | pdfdir |
| 670 | dvidir |
| 671 | htmldir |
| 672 | infodir |
| 673 | docdir |
| 674 | oldincludedir |
| 675 | includedir |
| 676 | localstatedir |
| 677 | sharedstatedir |
| 678 | sysconfdir |
| 679 | datadir |
| 680 | datarootdir |
| 681 | libexecdir |
| 682 | sbindir |
| 683 | bindir |
| 684 | program_transform_name |
| 685 | prefix |
| 686 | exec_prefix |
| 687 | PACKAGE_URL |
| 688 | PACKAGE_BUGREPORT |
| 689 | PACKAGE_STRING |
| 690 | PACKAGE_VERSION |
| 691 | PACKAGE_TARNAME |
| 692 | PACKAGE_NAME |
| 693 | PATH_SEPARATOR |
| 694 | SHELL' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 695 | ac_subst_files='' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 696 | ac_user_opts=' |
| 697 | enable_option_checking |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 698 | enable_debug |
| 699 | enable_generic_aesicm |
| 700 | enable_openssl |
jfigus | 038d2cf | 2015-05-11 14:10:11 -0400 | [diff] [blame] | 701 | with_openssl_dir |
| 702 | enable_openssl_kdf |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 703 | enable_stdout |
| 704 | enable_console |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 705 | ' |
| 706 | ac_precious_vars='build_alias |
| 707 | host_alias |
| 708 | target_alias |
| 709 | CC |
| 710 | CFLAGS |
| 711 | LDFLAGS |
| 712 | LIBS |
| 713 | CPPFLAGS |
| 714 | CPP' |
| 715 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 716 | |
| 717 | # Initialize some variables set by options. |
| 718 | ac_init_help= |
| 719 | ac_init_version=false |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 720 | ac_unrecognized_opts= |
| 721 | ac_unrecognized_sep= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 722 | # The variables have the same names as the options, with |
| 723 | # dashes changed to underlines. |
| 724 | cache_file=/dev/null |
| 725 | exec_prefix=NONE |
| 726 | no_create= |
| 727 | no_recursion= |
| 728 | prefix=NONE |
| 729 | program_prefix=NONE |
| 730 | program_suffix=NONE |
| 731 | program_transform_name=s,x,x, |
| 732 | silent= |
| 733 | site= |
| 734 | srcdir= |
| 735 | verbose= |
| 736 | x_includes=NONE |
| 737 | x_libraries=NONE |
| 738 | |
| 739 | # Installation directory options. |
| 740 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 741 | # and all the variables that are supposed to be based on exec_prefix |
| 742 | # by default will actually change. |
| 743 | # Use braces instead of parens because sh, perl, etc. also accept them. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 744 | # (The list follows the same order as the GNU Coding Standards.) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 745 | bindir='${exec_prefix}/bin' |
| 746 | sbindir='${exec_prefix}/sbin' |
| 747 | libexecdir='${exec_prefix}/libexec' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 748 | datarootdir='${prefix}/share' |
| 749 | datadir='${datarootdir}' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 750 | sysconfdir='${prefix}/etc' |
| 751 | sharedstatedir='${prefix}/com' |
| 752 | localstatedir='${prefix}/var' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 753 | includedir='${prefix}/include' |
| 754 | oldincludedir='/usr/include' |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 755 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 756 | infodir='${datarootdir}/info' |
| 757 | htmldir='${docdir}' |
| 758 | dvidir='${docdir}' |
| 759 | pdfdir='${docdir}' |
| 760 | psdir='${docdir}' |
| 761 | libdir='${exec_prefix}/lib' |
| 762 | localedir='${datarootdir}/locale' |
| 763 | mandir='${datarootdir}/man' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 764 | |
| 765 | ac_prev= |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 766 | ac_dashdash= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 767 | for ac_option |
| 768 | do |
| 769 | # If the previous option needs an argument, assign it. |
| 770 | if test -n "$ac_prev"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 771 | eval $ac_prev=\$ac_option |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 772 | ac_prev= |
| 773 | continue |
| 774 | fi |
| 775 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 776 | case $ac_option in |
| 777 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 778 | *=) ac_optarg= ;; |
| 779 | *) ac_optarg=yes ;; |
| 780 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 781 | |
| 782 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 783 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 784 | case $ac_dashdash$ac_option in |
| 785 | --) |
| 786 | ac_dashdash=yes ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 787 | |
| 788 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 789 | ac_prev=bindir ;; |
| 790 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 791 | bindir=$ac_optarg ;; |
| 792 | |
| 793 | -build | --build | --buil | --bui | --bu) |
| 794 | ac_prev=build_alias ;; |
| 795 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 796 | build_alias=$ac_optarg ;; |
| 797 | |
| 798 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 799 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 800 | ac_prev=cache_file ;; |
| 801 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 802 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 803 | cache_file=$ac_optarg ;; |
| 804 | |
| 805 | --config-cache | -C) |
| 806 | cache_file=config.cache ;; |
| 807 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 808 | -datadir | --datadir | --datadi | --datad) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 809 | ac_prev=datadir ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 810 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 811 | datadir=$ac_optarg ;; |
| 812 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 813 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 814 | | --dataroo | --dataro | --datar) |
| 815 | ac_prev=datarootdir ;; |
| 816 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 817 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 818 | datarootdir=$ac_optarg ;; |
| 819 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 820 | -disable-* | --disable-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 821 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 822 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 823 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 824 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 825 | ac_useropt_orig=$ac_useropt |
| 826 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 827 | case $ac_user_opts in |
| 828 | *" |
| 829 | "enable_$ac_useropt" |
| 830 | "*) ;; |
| 831 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 832 | ac_unrecognized_sep=', ';; |
| 833 | esac |
| 834 | eval enable_$ac_useropt=no ;; |
| 835 | |
| 836 | -docdir | --docdir | --docdi | --doc | --do) |
| 837 | ac_prev=docdir ;; |
| 838 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 839 | docdir=$ac_optarg ;; |
| 840 | |
| 841 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 842 | ac_prev=dvidir ;; |
| 843 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 844 | dvidir=$ac_optarg ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 845 | |
| 846 | -enable-* | --enable-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 847 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 848 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 849 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 850 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 851 | ac_useropt_orig=$ac_useropt |
| 852 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 853 | case $ac_user_opts in |
| 854 | *" |
| 855 | "enable_$ac_useropt" |
| 856 | "*) ;; |
| 857 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 858 | ac_unrecognized_sep=', ';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 859 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 860 | eval enable_$ac_useropt=\$ac_optarg ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 861 | |
| 862 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 863 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 864 | | --exec | --exe | --ex) |
| 865 | ac_prev=exec_prefix ;; |
| 866 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 867 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 868 | | --exec=* | --exe=* | --ex=*) |
| 869 | exec_prefix=$ac_optarg ;; |
| 870 | |
| 871 | -gas | --gas | --ga | --g) |
| 872 | # Obsolete; use --with-gas. |
| 873 | with_gas=yes ;; |
| 874 | |
| 875 | -help | --help | --hel | --he | -h) |
| 876 | ac_init_help=long ;; |
| 877 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 878 | ac_init_help=recursive ;; |
| 879 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 880 | ac_init_help=short ;; |
| 881 | |
| 882 | -host | --host | --hos | --ho) |
| 883 | ac_prev=host_alias ;; |
| 884 | -host=* | --host=* | --hos=* | --ho=*) |
| 885 | host_alias=$ac_optarg ;; |
| 886 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 887 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 888 | ac_prev=htmldir ;; |
| 889 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 890 | | --ht=*) |
| 891 | htmldir=$ac_optarg ;; |
| 892 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 893 | -includedir | --includedir | --includedi | --included | --include \ |
| 894 | | --includ | --inclu | --incl | --inc) |
| 895 | ac_prev=includedir ;; |
| 896 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 897 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 898 | includedir=$ac_optarg ;; |
| 899 | |
| 900 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 901 | ac_prev=infodir ;; |
| 902 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 903 | infodir=$ac_optarg ;; |
| 904 | |
| 905 | -libdir | --libdir | --libdi | --libd) |
| 906 | ac_prev=libdir ;; |
| 907 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 908 | libdir=$ac_optarg ;; |
| 909 | |
| 910 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 911 | | --libexe | --libex | --libe) |
| 912 | ac_prev=libexecdir ;; |
| 913 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 914 | | --libexe=* | --libex=* | --libe=*) |
| 915 | libexecdir=$ac_optarg ;; |
| 916 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 917 | -localedir | --localedir | --localedi | --localed | --locale) |
| 918 | ac_prev=localedir ;; |
| 919 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 920 | localedir=$ac_optarg ;; |
| 921 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 922 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 923 | | --localstate | --localstat | --localsta | --localst | --locals) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 924 | ac_prev=localstatedir ;; |
| 925 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 926 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 927 | localstatedir=$ac_optarg ;; |
| 928 | |
| 929 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 930 | ac_prev=mandir ;; |
| 931 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 932 | mandir=$ac_optarg ;; |
| 933 | |
| 934 | -nfp | --nfp | --nf) |
| 935 | # Obsolete; use --without-fp. |
| 936 | with_fp=no ;; |
| 937 | |
| 938 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 939 | | --no-cr | --no-c | -n) |
| 940 | no_create=yes ;; |
| 941 | |
| 942 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 943 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 944 | no_recursion=yes ;; |
| 945 | |
| 946 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 947 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 948 | | --oldin | --oldi | --old | --ol | --o) |
| 949 | ac_prev=oldincludedir ;; |
| 950 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 951 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 952 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 953 | oldincludedir=$ac_optarg ;; |
| 954 | |
| 955 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 956 | ac_prev=prefix ;; |
| 957 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 958 | prefix=$ac_optarg ;; |
| 959 | |
| 960 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 961 | | --program-pre | --program-pr | --program-p) |
| 962 | ac_prev=program_prefix ;; |
| 963 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 964 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 965 | program_prefix=$ac_optarg ;; |
| 966 | |
| 967 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 968 | | --program-suf | --program-su | --program-s) |
| 969 | ac_prev=program_suffix ;; |
| 970 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 971 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 972 | program_suffix=$ac_optarg ;; |
| 973 | |
| 974 | -program-transform-name | --program-transform-name \ |
| 975 | | --program-transform-nam | --program-transform-na \ |
| 976 | | --program-transform-n | --program-transform- \ |
| 977 | | --program-transform | --program-transfor \ |
| 978 | | --program-transfo | --program-transf \ |
| 979 | | --program-trans | --program-tran \ |
| 980 | | --progr-tra | --program-tr | --program-t) |
| 981 | ac_prev=program_transform_name ;; |
| 982 | -program-transform-name=* | --program-transform-name=* \ |
| 983 | | --program-transform-nam=* | --program-transform-na=* \ |
| 984 | | --program-transform-n=* | --program-transform-=* \ |
| 985 | | --program-transform=* | --program-transfor=* \ |
| 986 | | --program-transfo=* | --program-transf=* \ |
| 987 | | --program-trans=* | --program-tran=* \ |
| 988 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 989 | program_transform_name=$ac_optarg ;; |
| 990 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 991 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 992 | ac_prev=pdfdir ;; |
| 993 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 994 | pdfdir=$ac_optarg ;; |
| 995 | |
| 996 | -psdir | --psdir | --psdi | --psd | --ps) |
| 997 | ac_prev=psdir ;; |
| 998 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 999 | psdir=$ac_optarg ;; |
| 1000 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1001 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1002 | | -silent | --silent | --silen | --sile | --sil) |
| 1003 | silent=yes ;; |
| 1004 | |
| 1005 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1006 | ac_prev=sbindir ;; |
| 1007 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1008 | | --sbi=* | --sb=*) |
| 1009 | sbindir=$ac_optarg ;; |
| 1010 | |
| 1011 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1012 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1013 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1014 | | --sha | --sh) |
| 1015 | ac_prev=sharedstatedir ;; |
| 1016 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1017 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1018 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1019 | | --sha=* | --sh=*) |
| 1020 | sharedstatedir=$ac_optarg ;; |
| 1021 | |
| 1022 | -site | --site | --sit) |
| 1023 | ac_prev=site ;; |
| 1024 | -site=* | --site=* | --sit=*) |
| 1025 | site=$ac_optarg ;; |
| 1026 | |
| 1027 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1028 | ac_prev=srcdir ;; |
| 1029 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1030 | srcdir=$ac_optarg ;; |
| 1031 | |
| 1032 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1033 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1034 | ac_prev=sysconfdir ;; |
| 1035 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1036 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1037 | sysconfdir=$ac_optarg ;; |
| 1038 | |
| 1039 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1040 | ac_prev=target_alias ;; |
| 1041 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1042 | target_alias=$ac_optarg ;; |
| 1043 | |
| 1044 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1045 | verbose=yes ;; |
| 1046 | |
| 1047 | -version | --version | --versio | --versi | --vers | -V) |
| 1048 | ac_init_version=: ;; |
| 1049 | |
| 1050 | -with-* | --with-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1051 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1052 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1053 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1054 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1055 | ac_useropt_orig=$ac_useropt |
| 1056 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1057 | case $ac_user_opts in |
| 1058 | *" |
| 1059 | "with_$ac_useropt" |
| 1060 | "*) ;; |
| 1061 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1062 | ac_unrecognized_sep=', ';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1063 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1064 | eval with_$ac_useropt=\$ac_optarg ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1065 | |
| 1066 | -without-* | --without-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1067 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1068 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1069 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1070 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1071 | ac_useropt_orig=$ac_useropt |
| 1072 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1073 | case $ac_user_opts in |
| 1074 | *" |
| 1075 | "with_$ac_useropt" |
| 1076 | "*) ;; |
| 1077 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1078 | ac_unrecognized_sep=', ';; |
| 1079 | esac |
| 1080 | eval with_$ac_useropt=no ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1081 | |
| 1082 | --x) |
| 1083 | # Obsolete; use --with-x. |
| 1084 | with_x=yes ;; |
| 1085 | |
| 1086 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1087 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1088 | ac_prev=x_includes ;; |
| 1089 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1090 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1091 | x_includes=$ac_optarg ;; |
| 1092 | |
| 1093 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1094 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1095 | ac_prev=x_libraries ;; |
| 1096 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1097 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1098 | x_libraries=$ac_optarg ;; |
| 1099 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1100 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1101 | Try \`$0 --help' for more information" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1102 | ;; |
| 1103 | |
| 1104 | *=*) |
| 1105 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1106 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1107 | case $ac_envvar in #( |
| 1108 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1109 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1110 | esac |
| 1111 | eval $ac_envvar=\$ac_optarg |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1112 | export $ac_envvar ;; |
| 1113 | |
| 1114 | *) |
| 1115 | # FIXME: should be removed in autoconf 3.0. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1116 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1117 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1118 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1119 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1120 | ;; |
| 1121 | |
| 1122 | esac |
| 1123 | done |
| 1124 | |
| 1125 | if test -n "$ac_prev"; then |
| 1126 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1127 | as_fn_error $? "missing argument to $ac_option" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1128 | fi |
| 1129 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1130 | if test -n "$ac_unrecognized_opts"; then |
| 1131 | case $enable_option_checking in |
| 1132 | no) ;; |
| 1133 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1134 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1135 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1136 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1137 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1138 | # Check all directory arguments for consistency. |
| 1139 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1140 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1141 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1142 | libdir localedir mandir |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1143 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1144 | eval ac_val=\$$ac_var |
| 1145 | # Remove trailing slashes. |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 1146 | case $ac_val in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1147 | */ ) |
| 1148 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1149 | eval $ac_var=\$ac_val;; |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 1150 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1151 | # Be sure to have absolute directory names. |
| 1152 | case $ac_val in |
| 1153 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1154 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1155 | esac |
| 1156 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1157 | done |
| 1158 | |
| 1159 | # There might be people who depend on the old broken behavior: `$host' |
| 1160 | # used to hold the argument of --host etc. |
| 1161 | # FIXME: To remove some day. |
| 1162 | build=$build_alias |
| 1163 | host=$host_alias |
| 1164 | target=$target_alias |
| 1165 | |
| 1166 | # FIXME: To remove some day. |
| 1167 | if test "x$host_alias" != x; then |
| 1168 | if test "x$build_alias" = x; then |
| 1169 | cross_compiling=maybe |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1170 | elif test "x$build_alias" != "x$host_alias"; then |
| 1171 | cross_compiling=yes |
| 1172 | fi |
| 1173 | fi |
| 1174 | |
| 1175 | ac_tool_prefix= |
| 1176 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1177 | |
| 1178 | test "$silent" = yes && exec 6>/dev/null |
| 1179 | |
| 1180 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1181 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1182 | ac_ls_di=`ls -di .` && |
| 1183 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1184 | as_fn_error $? "working directory cannot be determined" |
| 1185 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1186 | as_fn_error $? "pwd does not report name of working directory" |
| 1187 | |
| 1188 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1189 | # Find the source files, if location was not specified. |
| 1190 | if test -z "$srcdir"; then |
| 1191 | ac_srcdir_defaulted=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1192 | # Try the directory containing this script, then the parent directory. |
| 1193 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1194 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1195 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1196 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1197 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1198 | $as_echo X"$as_myself" | |
| 1199 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1200 | s//\1/ |
| 1201 | q |
| 1202 | } |
| 1203 | /^X\(\/\/\)[^/].*/{ |
| 1204 | s//\1/ |
| 1205 | q |
| 1206 | } |
| 1207 | /^X\(\/\/\)$/{ |
| 1208 | s//\1/ |
| 1209 | q |
| 1210 | } |
| 1211 | /^X\(\/\).*/{ |
| 1212 | s//\1/ |
| 1213 | q |
| 1214 | } |
| 1215 | s/.*/./; q'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1216 | srcdir=$ac_confdir |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1217 | if test ! -r "$srcdir/$ac_unique_file"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1218 | srcdir=.. |
| 1219 | fi |
| 1220 | else |
| 1221 | ac_srcdir_defaulted=no |
| 1222 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1223 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1224 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1225 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1226 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1227 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1228 | ac_abs_confdir=`( |
| 1229 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1230 | pwd)` |
| 1231 | # When building in place, set srcdir=. |
| 1232 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1233 | srcdir=. |
| 1234 | fi |
| 1235 | # Remove unnecessary trailing slashes from srcdir. |
| 1236 | # Double slashes in file names in object file debugging info |
| 1237 | # mess up M-x gdb in Emacs. |
| 1238 | case $srcdir in |
| 1239 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1240 | esac |
| 1241 | for ac_var in $ac_precious_vars; do |
| 1242 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1243 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1244 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1245 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1246 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1247 | |
| 1248 | # |
| 1249 | # Report the --help message. |
| 1250 | # |
| 1251 | if test "$ac_init_help" = "long"; then |
| 1252 | # Omit some internal or obsolete options to make the list less imposing. |
| 1253 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1254 | cat <<_ACEOF |
Pascal Bühler | 34acba6 | 2017-01-19 10:57:30 +0100 | [diff] [blame] | 1255 | \`configure' configures libsrtp2 2.1.0-pre to adapt to many kinds of systems. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1256 | |
| 1257 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1258 | |
| 1259 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1260 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1261 | |
| 1262 | Defaults for the options are specified in brackets. |
| 1263 | |
| 1264 | Configuration: |
| 1265 | -h, --help display this help and exit |
| 1266 | --help=short display options specific to this package |
| 1267 | --help=recursive display the short help of all the included packages |
| 1268 | -V, --version display version information and exit |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1269 | -q, --quiet, --silent do not print \`checking ...' messages |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1270 | --cache-file=FILE cache test results in FILE [disabled] |
| 1271 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1272 | -n, --no-create do not create output files |
| 1273 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1274 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1275 | Installation directories: |
| 1276 | --prefix=PREFIX install architecture-independent files in PREFIX |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1277 | [$ac_default_prefix] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1278 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1279 | [PREFIX] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1280 | |
| 1281 | By default, \`make install' will install all the files in |
| 1282 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1283 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1284 | for instance \`--prefix=\$HOME'. |
| 1285 | |
| 1286 | For better control, use the options below. |
| 1287 | |
| 1288 | Fine tuning of the installation directories: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1289 | --bindir=DIR user executables [EPREFIX/bin] |
| 1290 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1291 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1292 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1293 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1294 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1295 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1296 | --includedir=DIR C header files [PREFIX/include] |
| 1297 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1298 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1299 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1300 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1301 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1302 | --mandir=DIR man documentation [DATAROOTDIR/man] |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 1303 | --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2] |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1304 | --htmldir=DIR html documentation [DOCDIR] |
| 1305 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1306 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1307 | --psdir=DIR ps documentation [DOCDIR] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1308 | _ACEOF |
| 1309 | |
| 1310 | cat <<\_ACEOF |
| 1311 | |
| 1312 | System types: |
| 1313 | --build=BUILD configure for building on BUILD [guessed] |
| 1314 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1315 | _ACEOF |
| 1316 | fi |
| 1317 | |
| 1318 | if test -n "$ac_init_help"; then |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 1319 | case $ac_init_help in |
Pascal Bühler | 34acba6 | 2017-01-19 10:57:30 +0100 | [diff] [blame] | 1320 | short | recursive ) echo "Configuration of libsrtp2 2.1.0-pre:";; |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 1321 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1322 | cat <<\_ACEOF |
| 1323 | |
| 1324 | Optional Features: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1325 | --disable-option-checking ignore unrecognized --enable/--with options |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1326 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1327 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 1328 | --disable-debug do not compile in dynamic debugging system |
| 1329 | --enable-generic-aesicm compile in changes for ISMAcryp |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1330 | --enable-openssl compile in OpenSSL crypto engine |
jfigus | 038d2cf | 2015-05-11 14:10:11 -0400 | [diff] [blame] | 1331 | --enable-openssl-kdf Use OpenSSL KDF algorithm |
jfigus | 97a80f4 | 2014-11-04 14:15:40 -0500 | [diff] [blame] | 1332 | --enable-stdout use stdout for debug/error reporting |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 1333 | --enable-console use /dev/console for error reporting |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1334 | |
jfigus | 038d2cf | 2015-05-11 14:10:11 -0400 | [diff] [blame] | 1335 | Optional Packages: |
| 1336 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1337 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1338 | --with-openssl-dir Location of OpenSSL installation |
| 1339 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1340 | Some influential environment variables: |
| 1341 | CC C compiler command |
| 1342 | CFLAGS C compiler flags |
| 1343 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1344 | nonstandard directory <lib dir> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1345 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1346 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1347 | you have headers in a nonstandard directory <include dir> |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1348 | CPP C preprocessor |
| 1349 | |
| 1350 | Use these variables to override the choices made by `configure' or to help |
| 1351 | it to find libraries and programs with nonstandard names/locations. |
| 1352 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 1353 | Report bugs to <https://github.com/cisco/libsrtp/issues>. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1354 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1355 | ac_status=$? |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1356 | fi |
| 1357 | |
| 1358 | if test "$ac_init_help" = "recursive"; then |
| 1359 | # If there are subdirs, report their specific --help. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1360 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1361 | test -d "$ac_dir" || |
| 1362 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1363 | continue |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1364 | ac_builddir=. |
| 1365 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1366 | case "$ac_dir" in |
| 1367 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1368 | *) |
| 1369 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1370 | # A ".." for each directory in $ac_dir_suffix. |
| 1371 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1372 | case $ac_top_builddir_sub in |
| 1373 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1374 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1375 | esac ;; |
| 1376 | esac |
| 1377 | ac_abs_top_builddir=$ac_pwd |
| 1378 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1379 | # for backward compatibility: |
| 1380 | ac_top_builddir=$ac_top_build_prefix |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1381 | |
| 1382 | case $srcdir in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1383 | .) # We are building in place. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1384 | ac_srcdir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1385 | ac_top_srcdir=$ac_top_builddir_sub |
| 1386 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1387 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1388 | ac_srcdir=$srcdir$ac_dir_suffix; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1389 | ac_top_srcdir=$srcdir |
| 1390 | ac_abs_top_srcdir=$srcdir ;; |
| 1391 | *) # Relative name. |
| 1392 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1393 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1394 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1395 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1396 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1397 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1398 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1399 | # Check for guested configure. |
| 1400 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1401 | echo && |
| 1402 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1403 | elif test -f "$ac_srcdir/configure"; then |
| 1404 | echo && |
| 1405 | $SHELL "$ac_srcdir/configure" --help=recursive |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1406 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1407 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1408 | fi || ac_status=$? |
| 1409 | cd "$ac_pwd" || { ac_status=$?; break; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1410 | done |
| 1411 | fi |
| 1412 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1413 | test -n "$ac_init_help" && exit $ac_status |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1414 | if $ac_init_version; then |
| 1415 | cat <<\_ACEOF |
Pascal Bühler | 34acba6 | 2017-01-19 10:57:30 +0100 | [diff] [blame] | 1416 | libsrtp2 configure 2.1.0-pre |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1417 | generated by GNU Autoconf 2.69 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1418 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1419 | Copyright (C) 2012 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1420 | This configure script is free software; the Free Software Foundation |
| 1421 | gives unlimited permission to copy, distribute and modify it. |
| 1422 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1423 | exit |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1424 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1425 | |
| 1426 | ## ------------------------ ## |
| 1427 | ## Autoconf initialization. ## |
| 1428 | ## ------------------------ ## |
| 1429 | |
| 1430 | # ac_fn_c_try_compile LINENO |
| 1431 | # -------------------------- |
| 1432 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1433 | ac_fn_c_try_compile () |
| 1434 | { |
| 1435 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1436 | rm -f conftest.$ac_objext |
| 1437 | if { { ac_try="$ac_compile" |
| 1438 | case "(($ac_try" in |
| 1439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1440 | *) ac_try_echo=$ac_try;; |
| 1441 | esac |
| 1442 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1443 | $as_echo "$ac_try_echo"; } >&5 |
| 1444 | (eval "$ac_compile") 2>conftest.err |
| 1445 | ac_status=$? |
| 1446 | if test -s conftest.err; then |
| 1447 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1448 | cat conftest.er1 >&5 |
| 1449 | mv -f conftest.er1 conftest.err |
| 1450 | fi |
| 1451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1452 | test $ac_status = 0; } && { |
| 1453 | test -z "$ac_c_werror_flag" || |
| 1454 | test ! -s conftest.err |
| 1455 | } && test -s conftest.$ac_objext; then : |
| 1456 | ac_retval=0 |
| 1457 | else |
| 1458 | $as_echo "$as_me: failed program was:" >&5 |
| 1459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1460 | |
| 1461 | ac_retval=1 |
| 1462 | fi |
| 1463 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1464 | as_fn_set_status $ac_retval |
| 1465 | |
| 1466 | } # ac_fn_c_try_compile |
| 1467 | |
| 1468 | # ac_fn_c_try_run LINENO |
| 1469 | # ---------------------- |
| 1470 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1471 | # that executables *can* be run. |
| 1472 | ac_fn_c_try_run () |
| 1473 | { |
| 1474 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1475 | if { { ac_try="$ac_link" |
| 1476 | case "(($ac_try" in |
| 1477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1478 | *) ac_try_echo=$ac_try;; |
| 1479 | esac |
| 1480 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1481 | $as_echo "$ac_try_echo"; } >&5 |
| 1482 | (eval "$ac_link") 2>&5 |
| 1483 | ac_status=$? |
| 1484 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1485 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1486 | { { case "(($ac_try" in |
| 1487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1488 | *) ac_try_echo=$ac_try;; |
| 1489 | esac |
| 1490 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1491 | $as_echo "$ac_try_echo"; } >&5 |
| 1492 | (eval "$ac_try") 2>&5 |
| 1493 | ac_status=$? |
| 1494 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1495 | test $ac_status = 0; }; }; then : |
| 1496 | ac_retval=0 |
| 1497 | else |
| 1498 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1499 | $as_echo "$as_me: failed program was:" >&5 |
| 1500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1501 | |
| 1502 | ac_retval=$ac_status |
| 1503 | fi |
| 1504 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1505 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1506 | as_fn_set_status $ac_retval |
| 1507 | |
| 1508 | } # ac_fn_c_try_run |
| 1509 | |
| 1510 | # ac_fn_c_try_cpp LINENO |
| 1511 | # ---------------------- |
| 1512 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1513 | ac_fn_c_try_cpp () |
| 1514 | { |
| 1515 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1516 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1517 | case "(($ac_try" in |
| 1518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1519 | *) ac_try_echo=$ac_try;; |
| 1520 | esac |
| 1521 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1522 | $as_echo "$ac_try_echo"; } >&5 |
| 1523 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1524 | ac_status=$? |
| 1525 | if test -s conftest.err; then |
| 1526 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1527 | cat conftest.er1 >&5 |
| 1528 | mv -f conftest.er1 conftest.err |
| 1529 | fi |
| 1530 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1531 | test $ac_status = 0; } > conftest.i && { |
| 1532 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1533 | test ! -s conftest.err |
| 1534 | }; then : |
| 1535 | ac_retval=0 |
| 1536 | else |
| 1537 | $as_echo "$as_me: failed program was:" >&5 |
| 1538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1539 | |
| 1540 | ac_retval=1 |
| 1541 | fi |
| 1542 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1543 | as_fn_set_status $ac_retval |
| 1544 | |
| 1545 | } # ac_fn_c_try_cpp |
| 1546 | |
| 1547 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1548 | # ------------------------------------------------------- |
| 1549 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1550 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1551 | ac_fn_c_check_header_compile () |
| 1552 | { |
| 1553 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1555 | $as_echo_n "checking for $2... " >&6; } |
| 1556 | if eval \${$3+:} false; then : |
| 1557 | $as_echo_n "(cached) " >&6 |
| 1558 | else |
| 1559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1560 | /* end confdefs.h. */ |
| 1561 | $4 |
| 1562 | #include <$2> |
| 1563 | _ACEOF |
| 1564 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1565 | eval "$3=yes" |
| 1566 | else |
| 1567 | eval "$3=no" |
| 1568 | fi |
| 1569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1570 | fi |
| 1571 | eval ac_res=\$$3 |
| 1572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1573 | $as_echo "$ac_res" >&6; } |
| 1574 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1575 | |
| 1576 | } # ac_fn_c_check_header_compile |
| 1577 | |
| 1578 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1579 | # ------------------------------------------------------- |
| 1580 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1581 | # the include files in INCLUDES and setting the cache variable VAR |
| 1582 | # accordingly. |
| 1583 | ac_fn_c_check_header_mongrel () |
| 1584 | { |
| 1585 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1586 | if eval \${$3+:} false; then : |
| 1587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1588 | $as_echo_n "checking for $2... " >&6; } |
| 1589 | if eval \${$3+:} false; then : |
| 1590 | $as_echo_n "(cached) " >&6 |
| 1591 | fi |
| 1592 | eval ac_res=\$$3 |
| 1593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1594 | $as_echo "$ac_res" >&6; } |
| 1595 | else |
| 1596 | # Is the header compilable? |
| 1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1598 | $as_echo_n "checking $2 usability... " >&6; } |
| 1599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1600 | /* end confdefs.h. */ |
| 1601 | $4 |
| 1602 | #include <$2> |
| 1603 | _ACEOF |
| 1604 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1605 | ac_header_compiler=yes |
| 1606 | else |
| 1607 | ac_header_compiler=no |
| 1608 | fi |
| 1609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1611 | $as_echo "$ac_header_compiler" >&6; } |
| 1612 | |
| 1613 | # Is the header present? |
| 1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1615 | $as_echo_n "checking $2 presence... " >&6; } |
| 1616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1617 | /* end confdefs.h. */ |
| 1618 | #include <$2> |
| 1619 | _ACEOF |
| 1620 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1621 | ac_header_preproc=yes |
| 1622 | else |
| 1623 | ac_header_preproc=no |
| 1624 | fi |
| 1625 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1627 | $as_echo "$ac_header_preproc" >&6; } |
| 1628 | |
| 1629 | # So? What about this header? |
| 1630 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1631 | yes:no: ) |
| 1632 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1633 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1634 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1635 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1636 | ;; |
| 1637 | no:yes:* ) |
| 1638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1639 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1641 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1643 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1645 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1647 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 1648 | ( $as_echo "## ------------------------------------------------------ ## |
| 1649 | ## Report this to https://github.com/cisco/libsrtp/issues ## |
| 1650 | ## ------------------------------------------------------ ##" |
| 1651 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1652 | ;; |
| 1653 | esac |
| 1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1655 | $as_echo_n "checking for $2... " >&6; } |
| 1656 | if eval \${$3+:} false; then : |
| 1657 | $as_echo_n "(cached) " >&6 |
| 1658 | else |
| 1659 | eval "$3=\$ac_header_compiler" |
| 1660 | fi |
| 1661 | eval ac_res=\$$3 |
| 1662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1663 | $as_echo "$ac_res" >&6; } |
| 1664 | fi |
| 1665 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1666 | |
| 1667 | } # ac_fn_c_check_header_mongrel |
| 1668 | |
| 1669 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1670 | # ------------------------------------------- |
| 1671 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1672 | # variable VAR accordingly. |
| 1673 | ac_fn_c_check_type () |
| 1674 | { |
| 1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1677 | $as_echo_n "checking for $2... " >&6; } |
| 1678 | if eval \${$3+:} false; then : |
| 1679 | $as_echo_n "(cached) " >&6 |
| 1680 | else |
| 1681 | eval "$3=no" |
| 1682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1683 | /* end confdefs.h. */ |
| 1684 | $4 |
| 1685 | int |
| 1686 | main () |
| 1687 | { |
| 1688 | if (sizeof ($2)) |
| 1689 | return 0; |
| 1690 | ; |
| 1691 | return 0; |
| 1692 | } |
| 1693 | _ACEOF |
| 1694 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1696 | /* end confdefs.h. */ |
| 1697 | $4 |
| 1698 | int |
| 1699 | main () |
| 1700 | { |
| 1701 | if (sizeof (($2))) |
| 1702 | return 0; |
| 1703 | ; |
| 1704 | return 0; |
| 1705 | } |
| 1706 | _ACEOF |
| 1707 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1708 | |
| 1709 | else |
| 1710 | eval "$3=yes" |
| 1711 | fi |
| 1712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1713 | fi |
| 1714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1715 | fi |
| 1716 | eval ac_res=\$$3 |
| 1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1718 | $as_echo "$ac_res" >&6; } |
| 1719 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1720 | |
| 1721 | } # ac_fn_c_check_type |
| 1722 | |
| 1723 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1724 | # -------------------------------------------- |
| 1725 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1726 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1727 | # computed |
| 1728 | ac_fn_c_compute_int () |
| 1729 | { |
| 1730 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1731 | if test "$cross_compiling" = yes; then |
| 1732 | # Depending upon the size, compute the lo and hi bounds. |
| 1733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1734 | /* end confdefs.h. */ |
| 1735 | $4 |
| 1736 | int |
| 1737 | main () |
| 1738 | { |
| 1739 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 1740 | test_array [0] = 0; |
| 1741 | return test_array [0]; |
| 1742 | |
| 1743 | ; |
| 1744 | return 0; |
| 1745 | } |
| 1746 | _ACEOF |
| 1747 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1748 | ac_lo=0 ac_mid=0 |
| 1749 | while :; do |
| 1750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1751 | /* end confdefs.h. */ |
| 1752 | $4 |
| 1753 | int |
| 1754 | main () |
| 1755 | { |
| 1756 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 1757 | test_array [0] = 0; |
| 1758 | return test_array [0]; |
| 1759 | |
| 1760 | ; |
| 1761 | return 0; |
| 1762 | } |
| 1763 | _ACEOF |
| 1764 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1765 | ac_hi=$ac_mid; break |
| 1766 | else |
| 1767 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 1768 | if test $ac_lo -le $ac_mid; then |
| 1769 | ac_lo= ac_hi= |
| 1770 | break |
| 1771 | fi |
| 1772 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 1773 | fi |
| 1774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1775 | done |
| 1776 | else |
| 1777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1778 | /* end confdefs.h. */ |
| 1779 | $4 |
| 1780 | int |
| 1781 | main () |
| 1782 | { |
| 1783 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 1784 | test_array [0] = 0; |
| 1785 | return test_array [0]; |
| 1786 | |
| 1787 | ; |
| 1788 | return 0; |
| 1789 | } |
| 1790 | _ACEOF |
| 1791 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1792 | ac_hi=-1 ac_mid=-1 |
| 1793 | while :; do |
| 1794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1795 | /* end confdefs.h. */ |
| 1796 | $4 |
| 1797 | int |
| 1798 | main () |
| 1799 | { |
| 1800 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 1801 | test_array [0] = 0; |
| 1802 | return test_array [0]; |
| 1803 | |
| 1804 | ; |
| 1805 | return 0; |
| 1806 | } |
| 1807 | _ACEOF |
| 1808 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1809 | ac_lo=$ac_mid; break |
| 1810 | else |
| 1811 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 1812 | if test $ac_mid -le $ac_hi; then |
| 1813 | ac_lo= ac_hi= |
| 1814 | break |
| 1815 | fi |
| 1816 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 1817 | fi |
| 1818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1819 | done |
| 1820 | else |
| 1821 | ac_lo= ac_hi= |
| 1822 | fi |
| 1823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1824 | fi |
| 1825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1826 | # Binary search between lo and hi bounds. |
| 1827 | while test "x$ac_lo" != "x$ac_hi"; do |
| 1828 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 1829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1830 | /* end confdefs.h. */ |
| 1831 | $4 |
| 1832 | int |
| 1833 | main () |
| 1834 | { |
| 1835 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 1836 | test_array [0] = 0; |
| 1837 | return test_array [0]; |
| 1838 | |
| 1839 | ; |
| 1840 | return 0; |
| 1841 | } |
| 1842 | _ACEOF |
| 1843 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1844 | ac_hi=$ac_mid |
| 1845 | else |
| 1846 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 1847 | fi |
| 1848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1849 | done |
| 1850 | case $ac_lo in #(( |
| 1851 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 1852 | '') ac_retval=1 ;; |
| 1853 | esac |
| 1854 | else |
| 1855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1856 | /* end confdefs.h. */ |
| 1857 | $4 |
| 1858 | static long int longval () { return $2; } |
| 1859 | static unsigned long int ulongval () { return $2; } |
| 1860 | #include <stdio.h> |
| 1861 | #include <stdlib.h> |
| 1862 | int |
| 1863 | main () |
| 1864 | { |
| 1865 | |
| 1866 | FILE *f = fopen ("conftest.val", "w"); |
| 1867 | if (! f) |
| 1868 | return 1; |
| 1869 | if (($2) < 0) |
| 1870 | { |
| 1871 | long int i = longval (); |
| 1872 | if (i != ($2)) |
| 1873 | return 1; |
| 1874 | fprintf (f, "%ld", i); |
| 1875 | } |
| 1876 | else |
| 1877 | { |
| 1878 | unsigned long int i = ulongval (); |
| 1879 | if (i != ($2)) |
| 1880 | return 1; |
| 1881 | fprintf (f, "%lu", i); |
| 1882 | } |
| 1883 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 1884 | on some platforms. */ |
| 1885 | return ferror (f) || fclose (f) != 0; |
| 1886 | |
| 1887 | ; |
| 1888 | return 0; |
| 1889 | } |
| 1890 | _ACEOF |
| 1891 | if ac_fn_c_try_run "$LINENO"; then : |
| 1892 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 1893 | else |
| 1894 | ac_retval=1 |
| 1895 | fi |
| 1896 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 1897 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1898 | rm -f conftest.val |
| 1899 | |
| 1900 | fi |
| 1901 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1902 | as_fn_set_status $ac_retval |
| 1903 | |
| 1904 | } # ac_fn_c_compute_int |
| 1905 | |
| 1906 | # ac_fn_c_try_link LINENO |
| 1907 | # ----------------------- |
| 1908 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1909 | ac_fn_c_try_link () |
| 1910 | { |
| 1911 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1912 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1913 | if { { ac_try="$ac_link" |
| 1914 | case "(($ac_try" in |
| 1915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1916 | *) ac_try_echo=$ac_try;; |
| 1917 | esac |
| 1918 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1919 | $as_echo "$ac_try_echo"; } >&5 |
| 1920 | (eval "$ac_link") 2>conftest.err |
| 1921 | ac_status=$? |
| 1922 | if test -s conftest.err; then |
| 1923 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1924 | cat conftest.er1 >&5 |
| 1925 | mv -f conftest.er1 conftest.err |
| 1926 | fi |
| 1927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1928 | test $ac_status = 0; } && { |
| 1929 | test -z "$ac_c_werror_flag" || |
| 1930 | test ! -s conftest.err |
| 1931 | } && test -s conftest$ac_exeext && { |
| 1932 | test "$cross_compiling" = yes || |
| 1933 | test -x conftest$ac_exeext |
| 1934 | }; then : |
| 1935 | ac_retval=0 |
| 1936 | else |
| 1937 | $as_echo "$as_me: failed program was:" >&5 |
| 1938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1939 | |
| 1940 | ac_retval=1 |
| 1941 | fi |
| 1942 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1943 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1944 | # interfere with the next link command; also delete a directory that is |
| 1945 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1946 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1947 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1948 | as_fn_set_status $ac_retval |
| 1949 | |
| 1950 | } # ac_fn_c_try_link |
| 1951 | |
| 1952 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1953 | # ---------------------------------- |
| 1954 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1955 | ac_fn_c_check_func () |
| 1956 | { |
| 1957 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1959 | $as_echo_n "checking for $2... " >&6; } |
| 1960 | if eval \${$3+:} false; then : |
| 1961 | $as_echo_n "(cached) " >&6 |
| 1962 | else |
| 1963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1964 | /* end confdefs.h. */ |
| 1965 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1966 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1967 | #define $2 innocuous_$2 |
| 1968 | |
| 1969 | /* System header to define __stub macros and hopefully few prototypes, |
| 1970 | which can conflict with char $2 (); below. |
| 1971 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1972 | <limits.h> exists even on freestanding compilers. */ |
| 1973 | |
| 1974 | #ifdef __STDC__ |
| 1975 | # include <limits.h> |
| 1976 | #else |
| 1977 | # include <assert.h> |
| 1978 | #endif |
| 1979 | |
| 1980 | #undef $2 |
| 1981 | |
| 1982 | /* Override any GCC internal prototype to avoid an error. |
| 1983 | Use char because int might match the return type of a GCC |
| 1984 | builtin and then its argument prototype would still apply. */ |
| 1985 | #ifdef __cplusplus |
| 1986 | extern "C" |
| 1987 | #endif |
| 1988 | char $2 (); |
| 1989 | /* The GNU C library defines this for functions which it implements |
| 1990 | to always fail with ENOSYS. Some functions are actually named |
| 1991 | something starting with __ and the normal name is an alias. */ |
| 1992 | #if defined __stub_$2 || defined __stub___$2 |
| 1993 | choke me |
| 1994 | #endif |
| 1995 | |
| 1996 | int |
| 1997 | main () |
| 1998 | { |
| 1999 | return $2 (); |
| 2000 | ; |
| 2001 | return 0; |
| 2002 | } |
| 2003 | _ACEOF |
| 2004 | if ac_fn_c_try_link "$LINENO"; then : |
| 2005 | eval "$3=yes" |
| 2006 | else |
| 2007 | eval "$3=no" |
| 2008 | fi |
| 2009 | rm -f core conftest.err conftest.$ac_objext \ |
| 2010 | conftest$ac_exeext conftest.$ac_ext |
| 2011 | fi |
| 2012 | eval ac_res=\$$3 |
| 2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2014 | $as_echo "$ac_res" >&6; } |
| 2015 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2016 | |
| 2017 | } # ac_fn_c_check_func |
| 2018 | cat >config.log <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2019 | This file contains any messages produced by compilers while |
| 2020 | running configure, to aid debugging if configure makes a mistake. |
| 2021 | |
Pascal Bühler | 34acba6 | 2017-01-19 10:57:30 +0100 | [diff] [blame] | 2022 | It was created by libsrtp2 $as_me 2.1.0-pre, which was |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2023 | generated by GNU Autoconf 2.69. Invocation command line was |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2024 | |
| 2025 | $ $0 $@ |
| 2026 | |
| 2027 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2028 | exec 5>>config.log |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2029 | { |
| 2030 | cat <<_ASUNAME |
| 2031 | ## --------- ## |
| 2032 | ## Platform. ## |
| 2033 | ## --------- ## |
| 2034 | |
| 2035 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2036 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2037 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2038 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2039 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2040 | |
| 2041 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2042 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2043 | |
| 2044 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2045 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2046 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2047 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2048 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2049 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2050 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2051 | |
| 2052 | _ASUNAME |
| 2053 | |
| 2054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2055 | for as_dir in $PATH |
| 2056 | do |
| 2057 | IFS=$as_save_IFS |
| 2058 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2059 | $as_echo "PATH: $as_dir" |
| 2060 | done |
| 2061 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2062 | |
| 2063 | } >&5 |
| 2064 | |
| 2065 | cat >&5 <<_ACEOF |
| 2066 | |
| 2067 | |
| 2068 | ## ----------- ## |
| 2069 | ## Core tests. ## |
| 2070 | ## ----------- ## |
| 2071 | |
| 2072 | _ACEOF |
| 2073 | |
| 2074 | |
| 2075 | # Keep a trace of the command line. |
| 2076 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2077 | # Strip out --silent because we don't want to record it for future runs. |
| 2078 | # Also quote any args containing shell meta-characters. |
| 2079 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2080 | ac_configure_args= |
| 2081 | ac_configure_args0= |
| 2082 | ac_configure_args1= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2083 | ac_must_keep_next=false |
| 2084 | for ac_pass in 1 2 |
| 2085 | do |
| 2086 | for ac_arg |
| 2087 | do |
| 2088 | case $ac_arg in |
| 2089 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2090 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2091 | | -silent | --silent | --silen | --sile | --sil) |
| 2092 | continue ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2093 | *\'*) |
| 2094 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2095 | esac |
| 2096 | case $ac_pass in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2097 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2098 | 2) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2099 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2100 | if test $ac_must_keep_next = true; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2101 | ac_must_keep_next=false # Got value, back to normal. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2102 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2103 | case $ac_arg in |
| 2104 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2105 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2106 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2107 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2108 | case "$ac_configure_args0 " in |
| 2109 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2110 | esac |
| 2111 | ;; |
| 2112 | -* ) ac_must_keep_next=true ;; |
| 2113 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2114 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2115 | as_fn_append ac_configure_args " '$ac_arg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2116 | ;; |
| 2117 | esac |
| 2118 | done |
| 2119 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2120 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2121 | { ac_configure_args1=; unset ac_configure_args1;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2122 | |
| 2123 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2124 | # config.log. We remove comments because anyway the quotes in there |
| 2125 | # would cause problems or look ugly. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2126 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2127 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2128 | trap 'exit_status=$? |
| 2129 | # Save into config.log some information that might help in debugging. |
| 2130 | { |
| 2131 | echo |
| 2132 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2133 | $as_echo "## ---------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2134 | ## Cache variables. ## |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2135 | ## ---------------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2136 | echo |
| 2137 | # The following way of writing the cache mishandles newlines in values, |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2138 | ( |
| 2139 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2140 | eval ac_val=\$$ac_var |
| 2141 | case $ac_val in #( |
| 2142 | *${as_nl}*) |
| 2143 | case $ac_var in #( |
| 2144 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2145 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2146 | esac |
| 2147 | case $ac_var in #( |
| 2148 | _ | IFS | as_nl) ;; #( |
| 2149 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2150 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2151 | esac ;; |
| 2152 | esac |
| 2153 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2154 | (set) 2>&1 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2155 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2156 | *${as_nl}ac_space=\ *) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2157 | sed -n \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2158 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2159 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2160 | ;; #( |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2161 | *) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2162 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2163 | ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2164 | esac | |
| 2165 | sort |
| 2166 | ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2167 | echo |
| 2168 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2169 | $as_echo "## ----------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2170 | ## Output variables. ## |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2171 | ## ----------------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2172 | echo |
| 2173 | for ac_var in $ac_subst_vars |
| 2174 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2175 | eval ac_val=\$$ac_var |
| 2176 | case $ac_val in |
| 2177 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2178 | esac |
| 2179 | $as_echo "$ac_var='\''$ac_val'\''" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2180 | done | sort |
| 2181 | echo |
| 2182 | |
| 2183 | if test -n "$ac_subst_files"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2184 | $as_echo "## ------------------- ## |
| 2185 | ## File substitutions. ## |
| 2186 | ## ------------------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2187 | echo |
| 2188 | for ac_var in $ac_subst_files |
| 2189 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2190 | eval ac_val=\$$ac_var |
| 2191 | case $ac_val in |
| 2192 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2193 | esac |
| 2194 | $as_echo "$ac_var='\''$ac_val'\''" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2195 | done | sort |
| 2196 | echo |
| 2197 | fi |
| 2198 | |
| 2199 | if test -s confdefs.h; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2200 | $as_echo "## ----------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2201 | ## confdefs.h. ## |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2202 | ## ----------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2203 | echo |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2204 | cat confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2205 | echo |
| 2206 | fi |
| 2207 | test "$ac_signal" != 0 && |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2208 | $as_echo "$as_me: caught signal $ac_signal" |
| 2209 | $as_echo "$as_me: exit $exit_status" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2210 | } >&5 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2211 | rm -f core *.core core.conftest.* && |
| 2212 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2213 | exit $exit_status |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2214 | ' 0 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2215 | for ac_signal in 1 2 13 15; do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2216 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2217 | done |
| 2218 | ac_signal=0 |
| 2219 | |
| 2220 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2221 | rm -f -r conftest* confdefs.h |
| 2222 | |
| 2223 | $as_echo "/* confdefs.h */" > confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2224 | |
| 2225 | # Predefined preprocessor variables. |
| 2226 | |
| 2227 | cat >>confdefs.h <<_ACEOF |
| 2228 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2229 | _ACEOF |
| 2230 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2231 | cat >>confdefs.h <<_ACEOF |
| 2232 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2233 | _ACEOF |
| 2234 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2235 | cat >>confdefs.h <<_ACEOF |
| 2236 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2237 | _ACEOF |
| 2238 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2239 | cat >>confdefs.h <<_ACEOF |
| 2240 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2241 | _ACEOF |
| 2242 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2243 | cat >>confdefs.h <<_ACEOF |
| 2244 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2245 | _ACEOF |
| 2246 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2247 | cat >>confdefs.h <<_ACEOF |
| 2248 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2249 | _ACEOF |
| 2250 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2251 | |
| 2252 | # Let the site file select an alternate cache file if it wants to. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2253 | # Prefer an explicitly selected file to automatically selected ones. |
| 2254 | ac_site_file1=NONE |
| 2255 | ac_site_file2=NONE |
| 2256 | if test -n "$CONFIG_SITE"; then |
| 2257 | # We do not want a PATH search for config.site. |
| 2258 | case $CONFIG_SITE in #(( |
| 2259 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2260 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2261 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2262 | esac |
| 2263 | elif test "x$prefix" != xNONE; then |
| 2264 | ac_site_file1=$prefix/share/config.site |
| 2265 | ac_site_file2=$prefix/etc/config.site |
| 2266 | else |
| 2267 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2268 | ac_site_file2=$ac_default_prefix/etc/config.site |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2269 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2270 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2271 | do |
| 2272 | test "x$ac_site_file" = xNONE && continue |
| 2273 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2275 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2276 | sed 's/^/| /' "$ac_site_file" >&5 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2277 | . "$ac_site_file" \ |
| 2278 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2279 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2280 | as_fn_error $? "failed to load site script $ac_site_file |
| 2281 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2282 | fi |
| 2283 | done |
| 2284 | |
| 2285 | if test -r "$cache_file"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2286 | # Some versions of bash will fail to source /dev/null (special files |
| 2287 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2288 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2290 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2291 | case $cache_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2292 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2293 | *) . "./$cache_file";; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2294 | esac |
| 2295 | fi |
| 2296 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2298 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2299 | >$cache_file |
| 2300 | fi |
| 2301 | |
| 2302 | # Check that the precious variables saved in the cache have kept the same |
| 2303 | # value. |
| 2304 | ac_cache_corrupted=false |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2305 | for ac_var in $ac_precious_vars; do |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2306 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2307 | eval ac_new_set=\$ac_env_${ac_var}_set |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2308 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2309 | eval ac_new_val=\$ac_env_${ac_var}_value |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2310 | case $ac_old_set,$ac_new_set in |
| 2311 | set,) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2312 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2313 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2314 | ac_cache_corrupted=: ;; |
| 2315 | ,set) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2316 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2317 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2318 | ac_cache_corrupted=: ;; |
| 2319 | ,);; |
| 2320 | *) |
| 2321 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2322 | # differences in whitespace do not lead to failure. |
| 2323 | ac_old_val_w=`echo x $ac_old_val` |
| 2324 | ac_new_val_w=`echo x $ac_new_val` |
| 2325 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2327 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2328 | ac_cache_corrupted=: |
| 2329 | else |
| 2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2331 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2332 | eval $ac_var=\$ac_old_val |
| 2333 | fi |
| 2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2335 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2337 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2338 | fi;; |
| 2339 | esac |
| 2340 | # Pass precious variables to config.status. |
| 2341 | if test "$ac_new_set" = set; then |
| 2342 | case $ac_new_val in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2343 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2344 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2345 | esac |
| 2346 | case " $ac_configure_args " in |
| 2347 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2348 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2349 | esac |
| 2350 | fi |
| 2351 | done |
| 2352 | if $ac_cache_corrupted; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2354 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2355 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2356 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2357 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2358 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2359 | ## -------------------- ## |
| 2360 | ## Main body of script. ## |
| 2361 | ## -------------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2362 | |
| 2363 | ac_ext=c |
| 2364 | ac_cpp='$CPP $CPPFLAGS' |
| 2365 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2366 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2368 | |
| 2369 | |
| 2370 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 2371 | if test -z "$CFLAGS"; then |
Sean Bright | bfb9e30 | 2014-03-24 20:45:17 -0400 | [diff] [blame] | 2372 | CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops" |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 2373 | fi |
| 2374 | |
jfigus | 1ce6a74 | 2015-04-06 08:54:01 -0400 | [diff] [blame] | 2375 | # expand $ac_aux_dir to an absolute path |
| 2376 | am_aux_dir=`cd $ac_aux_dir && pwd` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2377 | |
| 2378 | ac_ext=c |
| 2379 | ac_cpp='$CPP $CPPFLAGS' |
| 2380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2383 | if test -n "$ac_tool_prefix"; then |
| 2384 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2385 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2387 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2388 | if ${ac_cv_prog_CC+:} false; then : |
| 2389 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2390 | else |
| 2391 | if test -n "$CC"; then |
| 2392 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2393 | else |
| 2394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2395 | for as_dir in $PATH |
| 2396 | do |
| 2397 | IFS=$as_save_IFS |
| 2398 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2399 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2400 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2401 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2403 | break 2 |
| 2404 | fi |
| 2405 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2406 | done |
| 2407 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2408 | |
| 2409 | fi |
| 2410 | fi |
| 2411 | CC=$ac_cv_prog_CC |
| 2412 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2414 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2415 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2417 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2418 | fi |
| 2419 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2420 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2421 | fi |
| 2422 | if test -z "$ac_cv_prog_CC"; then |
| 2423 | ac_ct_CC=$CC |
| 2424 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2425 | set dummy gcc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2427 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2428 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2429 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2430 | else |
| 2431 | if test -n "$ac_ct_CC"; then |
| 2432 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2433 | else |
| 2434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2435 | for as_dir in $PATH |
| 2436 | do |
| 2437 | IFS=$as_save_IFS |
| 2438 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2441 | ac_cv_prog_ac_ct_CC="gcc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2443 | break 2 |
| 2444 | fi |
| 2445 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2446 | done |
| 2447 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2448 | |
| 2449 | fi |
| 2450 | fi |
| 2451 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2452 | if test -n "$ac_ct_CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2454 | $as_echo "$ac_ct_CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2455 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2457 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2458 | fi |
| 2459 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2460 | if test "x$ac_ct_CC" = x; then |
| 2461 | CC="" |
| 2462 | else |
| 2463 | case $cross_compiling:$ac_tool_warned in |
| 2464 | yes:) |
| 2465 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2466 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2467 | ac_tool_warned=yes ;; |
| 2468 | esac |
| 2469 | CC=$ac_ct_CC |
| 2470 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2471 | else |
| 2472 | CC="$ac_cv_prog_CC" |
| 2473 | fi |
| 2474 | |
| 2475 | if test -z "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2476 | if test -n "$ac_tool_prefix"; then |
| 2477 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2478 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2480 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2481 | if ${ac_cv_prog_CC+:} false; then : |
| 2482 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2483 | else |
| 2484 | if test -n "$CC"; then |
| 2485 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2486 | else |
| 2487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2488 | for as_dir in $PATH |
| 2489 | do |
| 2490 | IFS=$as_save_IFS |
| 2491 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2492 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2493 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2494 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2496 | break 2 |
| 2497 | fi |
| 2498 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2499 | done |
| 2500 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2501 | |
| 2502 | fi |
| 2503 | fi |
| 2504 | CC=$ac_cv_prog_CC |
| 2505 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2507 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2508 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2510 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2511 | fi |
| 2512 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2513 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2514 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2515 | fi |
| 2516 | if test -z "$CC"; then |
| 2517 | # Extract the first word of "cc", so it can be a program name with args. |
| 2518 | set dummy cc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2520 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2521 | if ${ac_cv_prog_CC+:} false; then : |
| 2522 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2523 | else |
| 2524 | if test -n "$CC"; then |
| 2525 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2526 | else |
| 2527 | ac_prog_rejected=no |
| 2528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2529 | for as_dir in $PATH |
| 2530 | do |
| 2531 | IFS=$as_save_IFS |
| 2532 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2533 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2534 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2535 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2536 | ac_prog_rejected=yes |
| 2537 | continue |
| 2538 | fi |
| 2539 | ac_cv_prog_CC="cc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2541 | break 2 |
| 2542 | fi |
| 2543 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2544 | done |
| 2545 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2546 | |
| 2547 | if test $ac_prog_rejected = yes; then |
| 2548 | # We found a bogon in the path, so make sure we never use it. |
| 2549 | set dummy $ac_cv_prog_CC |
| 2550 | shift |
| 2551 | if test $# != 0; then |
| 2552 | # We chose a different compiler from the bogus one. |
| 2553 | # However, it has the same basename, so the bogon will be chosen |
| 2554 | # first if we set CC to just the basename; use the full file name. |
| 2555 | shift |
| 2556 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2557 | fi |
| 2558 | fi |
| 2559 | fi |
| 2560 | fi |
| 2561 | CC=$ac_cv_prog_CC |
| 2562 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2564 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2565 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2567 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2568 | fi |
| 2569 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2570 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2571 | fi |
| 2572 | if test -z "$CC"; then |
| 2573 | if test -n "$ac_tool_prefix"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2574 | for ac_prog in cl.exe |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2575 | do |
| 2576 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2577 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2579 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2580 | if ${ac_cv_prog_CC+:} false; then : |
| 2581 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2582 | else |
| 2583 | if test -n "$CC"; then |
| 2584 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2585 | else |
| 2586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2587 | for as_dir in $PATH |
| 2588 | do |
| 2589 | IFS=$as_save_IFS |
| 2590 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2591 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2592 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2593 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2595 | break 2 |
| 2596 | fi |
| 2597 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2598 | done |
| 2599 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2600 | |
| 2601 | fi |
| 2602 | fi |
| 2603 | CC=$ac_cv_prog_CC |
| 2604 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2606 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2607 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2609 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2610 | fi |
| 2611 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2612 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2613 | test -n "$CC" && break |
| 2614 | done |
| 2615 | fi |
| 2616 | if test -z "$CC"; then |
| 2617 | ac_ct_CC=$CC |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2618 | for ac_prog in cl.exe |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2619 | do |
| 2620 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2621 | set dummy $ac_prog; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2623 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2624 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2625 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2626 | else |
| 2627 | if test -n "$ac_ct_CC"; then |
| 2628 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2629 | else |
| 2630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2631 | for as_dir in $PATH |
| 2632 | do |
| 2633 | IFS=$as_save_IFS |
| 2634 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2635 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2636 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2637 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2639 | break 2 |
| 2640 | fi |
| 2641 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2642 | done |
| 2643 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2644 | |
| 2645 | fi |
| 2646 | fi |
| 2647 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2648 | if test -n "$ac_ct_CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2650 | $as_echo "$ac_ct_CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2651 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2653 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2654 | fi |
| 2655 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2656 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2657 | test -n "$ac_ct_CC" && break |
| 2658 | done |
| 2659 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2660 | if test "x$ac_ct_CC" = x; then |
| 2661 | CC="" |
| 2662 | else |
| 2663 | case $cross_compiling:$ac_tool_warned in |
| 2664 | yes:) |
| 2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2666 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2667 | ac_tool_warned=yes ;; |
| 2668 | esac |
| 2669 | CC=$ac_ct_CC |
| 2670 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2671 | fi |
| 2672 | |
| 2673 | fi |
| 2674 | |
| 2675 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2676 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2677 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2678 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2679 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2680 | |
| 2681 | # Provide some information about the compiler. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2682 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2683 | set X $ac_compile |
| 2684 | ac_compiler=$2 |
| 2685 | for ac_option in --version -v -V -qversion; do |
| 2686 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2687 | case "(($ac_try" in |
| 2688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2689 | *) ac_try_echo=$ac_try;; |
| 2690 | esac |
| 2691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2692 | $as_echo "$ac_try_echo"; } >&5 |
| 2693 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2694 | ac_status=$? |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2695 | if test -s conftest.err; then |
| 2696 | sed '10a\ |
| 2697 | ... rest of stderr output deleted ... |
| 2698 | 10q' conftest.err >conftest.er1 |
| 2699 | cat conftest.er1 >&5 |
| 2700 | fi |
| 2701 | rm -f conftest.er1 conftest.err |
| 2702 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2703 | test $ac_status = 0; } |
| 2704 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2705 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2707 | /* end confdefs.h. */ |
| 2708 | |
| 2709 | int |
| 2710 | main () |
| 2711 | { |
| 2712 | |
| 2713 | ; |
| 2714 | return 0; |
| 2715 | } |
| 2716 | _ACEOF |
| 2717 | ac_clean_files_save=$ac_clean_files |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2718 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2719 | # Try to create an executable without -o first, disregard a.out. |
| 2720 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2721 | # of exeext. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2723 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2724 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2725 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2726 | # The possible output files: |
| 2727 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2728 | |
| 2729 | ac_rmfiles= |
| 2730 | for ac_file in $ac_files |
| 2731 | do |
| 2732 | case $ac_file in |
| 2733 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2734 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2735 | esac |
| 2736 | done |
| 2737 | rm -f $ac_rmfiles |
| 2738 | |
| 2739 | if { { ac_try="$ac_link_default" |
| 2740 | case "(($ac_try" in |
| 2741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2742 | *) ac_try_echo=$ac_try;; |
| 2743 | esac |
| 2744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2745 | $as_echo "$ac_try_echo"; } >&5 |
| 2746 | (eval "$ac_link_default") 2>&5 |
| 2747 | ac_status=$? |
| 2748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2749 | test $ac_status = 0; }; then : |
| 2750 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2751 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2752 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2753 | # so that the user can short-circuit this test for compilers unknown to |
| 2754 | # Autoconf. |
| 2755 | for ac_file in $ac_files '' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2756 | do |
| 2757 | test -f "$ac_file" || continue |
| 2758 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2759 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2760 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2761 | [ab].out ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2762 | # We found the default executable, but exeext='' is most |
| 2763 | # certainly right. |
| 2764 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2765 | *.* ) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2766 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2767 | then :; else |
| 2768 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2769 | fi |
| 2770 | # We set ac_cv_exeext here because the later test for it is not |
| 2771 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2772 | # argument, so we may need to know it at that point already. |
| 2773 | # Even if this section looks crufty: it has the advantage of |
| 2774 | # actually working. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2775 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2776 | * ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2777 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2778 | esac |
| 2779 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2780 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2781 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2782 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2783 | ac_file='' |
| 2784 | fi |
| 2785 | if test -z "$ac_file"; then : |
| 2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2787 | $as_echo "no" >&6; } |
| 2788 | $as_echo "$as_me: failed program was:" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2790 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2791 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2792 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2793 | as_fn_error 77 "C compiler cannot create executables |
| 2794 | See \`config.log' for more details" "$LINENO" 5; } |
| 2795 | else |
| 2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2797 | $as_echo "yes" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2798 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2800 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2802 | $as_echo "$ac_file" >&6; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2803 | ac_exeext=$ac_cv_exeext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2804 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2805 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2806 | ac_clean_files=$ac_clean_files_save |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2808 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2809 | if { { ac_try="$ac_link" |
| 2810 | case "(($ac_try" in |
| 2811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2812 | *) ac_try_echo=$ac_try;; |
| 2813 | esac |
| 2814 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2815 | $as_echo "$ac_try_echo"; } >&5 |
| 2816 | (eval "$ac_link") 2>&5 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2817 | ac_status=$? |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2819 | test $ac_status = 0; }; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2820 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2821 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2822 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2823 | # `rm'. |
| 2824 | for ac_file in conftest.exe conftest conftest.*; do |
| 2825 | test -f "$ac_file" || continue |
| 2826 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2827 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2828 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2829 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2830 | * ) break;; |
| 2831 | esac |
| 2832 | done |
| 2833 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2834 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2835 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2836 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 2837 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2838 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2839 | rm -f conftest conftest$ac_cv_exeext |
| 2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2841 | $as_echo "$ac_cv_exeext" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2842 | |
| 2843 | rm -f conftest.$ac_ext |
| 2844 | EXEEXT=$ac_cv_exeext |
| 2845 | ac_exeext=$EXEEXT |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2847 | /* end confdefs.h. */ |
| 2848 | #include <stdio.h> |
| 2849 | int |
| 2850 | main () |
| 2851 | { |
| 2852 | FILE *f = fopen ("conftest.out", "w"); |
| 2853 | return ferror (f) || fclose (f) != 0; |
| 2854 | |
| 2855 | ; |
| 2856 | return 0; |
| 2857 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2858 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2859 | ac_clean_files="$ac_clean_files conftest.out" |
| 2860 | # Check that the compiler produces executables we can run. If not, either |
| 2861 | # the compiler is broken, or we cross compile. |
| 2862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2863 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2864 | if test "$cross_compiling" != yes; then |
| 2865 | { { ac_try="$ac_link" |
| 2866 | case "(($ac_try" in |
| 2867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2868 | *) ac_try_echo=$ac_try;; |
| 2869 | esac |
| 2870 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2871 | $as_echo "$ac_try_echo"; } >&5 |
| 2872 | (eval "$ac_link") 2>&5 |
| 2873 | ac_status=$? |
| 2874 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2875 | test $ac_status = 0; } |
| 2876 | if { ac_try='./conftest$ac_cv_exeext' |
| 2877 | { { case "(($ac_try" in |
| 2878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2879 | *) ac_try_echo=$ac_try;; |
| 2880 | esac |
| 2881 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2882 | $as_echo "$ac_try_echo"; } >&5 |
| 2883 | (eval "$ac_try") 2>&5 |
| 2884 | ac_status=$? |
| 2885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2886 | test $ac_status = 0; }; }; then |
| 2887 | cross_compiling=no |
| 2888 | else |
| 2889 | if test "$cross_compiling" = maybe; then |
| 2890 | cross_compiling=yes |
| 2891 | else |
| 2892 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2893 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2894 | as_fn_error $? "cannot run C compiled programs. |
| 2895 | If you meant to cross compile, use \`--host'. |
| 2896 | See \`config.log' for more details" "$LINENO" 5; } |
| 2897 | fi |
| 2898 | fi |
| 2899 | fi |
| 2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2901 | $as_echo "$cross_compiling" >&6; } |
| 2902 | |
| 2903 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 2904 | ac_clean_files=$ac_clean_files_save |
| 2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2906 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2907 | if ${ac_cv_objext+:} false; then : |
| 2908 | $as_echo_n "(cached) " >&6 |
| 2909 | else |
| 2910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2911 | /* end confdefs.h. */ |
| 2912 | |
| 2913 | int |
| 2914 | main () |
| 2915 | { |
| 2916 | |
| 2917 | ; |
| 2918 | return 0; |
| 2919 | } |
| 2920 | _ACEOF |
| 2921 | rm -f conftest.o conftest.obj |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2922 | if { { ac_try="$ac_compile" |
| 2923 | case "(($ac_try" in |
| 2924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2925 | *) ac_try_echo=$ac_try;; |
| 2926 | esac |
| 2927 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2928 | $as_echo "$ac_try_echo"; } >&5 |
| 2929 | (eval "$ac_compile") 2>&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2930 | ac_status=$? |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2932 | test $ac_status = 0; }; then : |
| 2933 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2934 | test -f "$ac_file" || continue; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2935 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2936 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2937 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2938 | break;; |
| 2939 | esac |
| 2940 | done |
| 2941 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2942 | $as_echo "$as_me: failed program was:" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2944 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2945 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2946 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2947 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 2948 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2949 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2950 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2951 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2953 | $as_echo "$ac_cv_objext" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2954 | OBJEXT=$ac_cv_objext |
| 2955 | ac_objext=$OBJEXT |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 2957 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 2958 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 2959 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2960 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2962 | /* end confdefs.h. */ |
| 2963 | |
| 2964 | int |
| 2965 | main () |
| 2966 | { |
| 2967 | #ifndef __GNUC__ |
| 2968 | choke me |
| 2969 | #endif |
| 2970 | |
| 2971 | ; |
| 2972 | return 0; |
| 2973 | } |
| 2974 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2975 | if ac_fn_c_try_compile "$LINENO"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2976 | ac_compiler_gnu=yes |
| 2977 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2978 | ac_compiler_gnu=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2979 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2981 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2982 | |
| 2983 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 2985 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2986 | if test $ac_compiler_gnu = yes; then |
| 2987 | GCC=yes |
| 2988 | else |
| 2989 | GCC= |
| 2990 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2991 | ac_test_CFLAGS=${CFLAGS+set} |
| 2992 | ac_save_CFLAGS=$CFLAGS |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 2994 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 2995 | if ${ac_cv_prog_cc_g+:} false; then : |
| 2996 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2997 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2998 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2999 | ac_c_werror_flag=yes |
| 3000 | ac_cv_prog_cc_g=no |
| 3001 | CFLAGS="-g" |
| 3002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3003 | /* end confdefs.h. */ |
| 3004 | |
| 3005 | int |
| 3006 | main () |
| 3007 | { |
| 3008 | |
| 3009 | ; |
| 3010 | return 0; |
| 3011 | } |
| 3012 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3013 | if ac_fn_c_try_compile "$LINENO"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3014 | ac_cv_prog_cc_g=yes |
| 3015 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3016 | CFLAGS="" |
| 3017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3018 | /* end confdefs.h. */ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3019 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3020 | int |
| 3021 | main () |
| 3022 | { |
| 3023 | |
| 3024 | ; |
| 3025 | return 0; |
| 3026 | } |
| 3027 | _ACEOF |
| 3028 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3029 | |
| 3030 | else |
| 3031 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3032 | CFLAGS="-g" |
| 3033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3034 | /* end confdefs.h. */ |
| 3035 | |
| 3036 | int |
| 3037 | main () |
| 3038 | { |
| 3039 | |
| 3040 | ; |
| 3041 | return 0; |
| 3042 | } |
| 3043 | _ACEOF |
| 3044 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3045 | ac_cv_prog_cc_g=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3046 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3048 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3050 | fi |
| 3051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3052 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3053 | fi |
| 3054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3055 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3056 | if test "$ac_test_CFLAGS" = set; then |
| 3057 | CFLAGS=$ac_save_CFLAGS |
| 3058 | elif test $ac_cv_prog_cc_g = yes; then |
| 3059 | if test "$GCC" = yes; then |
| 3060 | CFLAGS="-g -O2" |
| 3061 | else |
| 3062 | CFLAGS="-g" |
| 3063 | fi |
| 3064 | else |
| 3065 | if test "$GCC" = yes; then |
| 3066 | CFLAGS="-O2" |
| 3067 | else |
| 3068 | CFLAGS= |
| 3069 | fi |
| 3070 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3072 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3073 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3074 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3075 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3076 | ac_cv_prog_cc_c89=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3077 | ac_save_CC=$CC |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3079 | /* end confdefs.h. */ |
| 3080 | #include <stdarg.h> |
| 3081 | #include <stdio.h> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3082 | struct stat; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3083 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3084 | struct buf { int x; }; |
| 3085 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3086 | static char *e (p, i) |
| 3087 | char **p; |
| 3088 | int i; |
| 3089 | { |
| 3090 | return p[i]; |
| 3091 | } |
| 3092 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3093 | { |
| 3094 | char *s; |
| 3095 | va_list v; |
| 3096 | va_start (v,p); |
| 3097 | s = g (p, va_arg (v,int)); |
| 3098 | va_end (v); |
| 3099 | return s; |
| 3100 | } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3101 | |
| 3102 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3103 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3104 | These don't provoke an error unfortunately, instead are silently treated |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3105 | as 'x'. The following induces an error, until -std is added to get |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3106 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3107 | array size at least. It's necessary to write '\x00'==0 to get something |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3108 | that's true only with -std. */ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3109 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3110 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3111 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3112 | inside strings and character constants. */ |
| 3113 | #define FOO(x) 'x' |
| 3114 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3115 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3116 | int test (int i, double x); |
| 3117 | struct s1 {int (*f) (int a);}; |
| 3118 | struct s2 {int (*f) (double a);}; |
| 3119 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3120 | int argc; |
| 3121 | char **argv; |
| 3122 | int |
| 3123 | main () |
| 3124 | { |
| 3125 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3126 | ; |
| 3127 | return 0; |
| 3128 | } |
| 3129 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3130 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3131 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3132 | do |
| 3133 | CC="$ac_save_CC $ac_arg" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3134 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3135 | ac_cv_prog_cc_c89=$ac_arg |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3136 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3137 | rm -f core conftest.err conftest.$ac_objext |
| 3138 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3139 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3140 | rm -f conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3141 | CC=$ac_save_CC |
| 3142 | |
| 3143 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3144 | # AC_CACHE_VAL |
| 3145 | case "x$ac_cv_prog_cc_c89" in |
| 3146 | x) |
| 3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3148 | $as_echo "none needed" >&6; } ;; |
| 3149 | xno) |
| 3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3151 | $as_echo "unsupported" >&6; } ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3152 | *) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3153 | CC="$CC $ac_cv_prog_cc_c89" |
| 3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3155 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3156 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3157 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3158 | |
| 3159 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3160 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3161 | ac_ext=c |
| 3162 | ac_cpp='$CPP $CPPFLAGS' |
| 3163 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3164 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3165 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3166 | |
jfigus | 1ce6a74 | 2015-04-06 08:54:01 -0400 | [diff] [blame] | 3167 | |
| 3168 | if test -n "$ac_tool_prefix"; then |
| 3169 | for ac_prog in ar lib "link -lib" |
| 3170 | do |
| 3171 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3172 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3174 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3175 | if ${ac_cv_prog_AR+:} false; then : |
| 3176 | $as_echo_n "(cached) " >&6 |
| 3177 | else |
| 3178 | if test -n "$AR"; then |
| 3179 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3180 | else |
| 3181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3182 | for as_dir in $PATH |
| 3183 | do |
| 3184 | IFS=$as_save_IFS |
| 3185 | test -z "$as_dir" && as_dir=. |
| 3186 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3188 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 3189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3190 | break 2 |
| 3191 | fi |
| 3192 | done |
| 3193 | done |
| 3194 | IFS=$as_save_IFS |
| 3195 | |
| 3196 | fi |
| 3197 | fi |
| 3198 | AR=$ac_cv_prog_AR |
| 3199 | if test -n "$AR"; then |
| 3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 3201 | $as_echo "$AR" >&6; } |
| 3202 | else |
| 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3204 | $as_echo "no" >&6; } |
| 3205 | fi |
| 3206 | |
| 3207 | |
| 3208 | test -n "$AR" && break |
| 3209 | done |
| 3210 | fi |
| 3211 | if test -z "$AR"; then |
| 3212 | ac_ct_AR=$AR |
| 3213 | for ac_prog in ar lib "link -lib" |
| 3214 | do |
| 3215 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3216 | set dummy $ac_prog; ac_word=$2 |
| 3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3218 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3219 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 3220 | $as_echo_n "(cached) " >&6 |
| 3221 | else |
| 3222 | if test -n "$ac_ct_AR"; then |
| 3223 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 3224 | else |
| 3225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3226 | for as_dir in $PATH |
| 3227 | do |
| 3228 | IFS=$as_save_IFS |
| 3229 | test -z "$as_dir" && as_dir=. |
| 3230 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3232 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 3233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3234 | break 2 |
| 3235 | fi |
| 3236 | done |
| 3237 | done |
| 3238 | IFS=$as_save_IFS |
| 3239 | |
| 3240 | fi |
| 3241 | fi |
| 3242 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 3243 | if test -n "$ac_ct_AR"; then |
| 3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 3245 | $as_echo "$ac_ct_AR" >&6; } |
| 3246 | else |
| 3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3248 | $as_echo "no" >&6; } |
| 3249 | fi |
| 3250 | |
| 3251 | |
| 3252 | test -n "$ac_ct_AR" && break |
| 3253 | done |
| 3254 | |
| 3255 | if test "x$ac_ct_AR" = x; then |
| 3256 | AR="false" |
| 3257 | else |
| 3258 | case $cross_compiling:$ac_tool_warned in |
| 3259 | yes:) |
| 3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3261 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3262 | ac_tool_warned=yes ;; |
| 3263 | esac |
| 3264 | AR=$ac_ct_AR |
| 3265 | fi |
| 3266 | fi |
| 3267 | |
| 3268 | : ${AR=ar} |
| 3269 | |
| 3270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 |
| 3271 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } |
| 3272 | if ${am_cv_ar_interface+:} false; then : |
| 3273 | $as_echo_n "(cached) " >&6 |
| 3274 | else |
| 3275 | ac_ext=c |
| 3276 | ac_cpp='$CPP $CPPFLAGS' |
| 3277 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3278 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3279 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3280 | |
| 3281 | am_cv_ar_interface=ar |
| 3282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3283 | /* end confdefs.h. */ |
| 3284 | int some_variable = 0; |
| 3285 | _ACEOF |
| 3286 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3287 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' |
| 3288 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 3289 | (eval $am_ar_try) 2>&5 |
| 3290 | ac_status=$? |
| 3291 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3292 | test $ac_status = 0; } |
| 3293 | if test "$ac_status" -eq 0; then |
| 3294 | am_cv_ar_interface=ar |
| 3295 | else |
| 3296 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' |
| 3297 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 3298 | (eval $am_ar_try) 2>&5 |
| 3299 | ac_status=$? |
| 3300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3301 | test $ac_status = 0; } |
| 3302 | if test "$ac_status" -eq 0; then |
| 3303 | am_cv_ar_interface=lib |
| 3304 | else |
| 3305 | am_cv_ar_interface=unknown |
| 3306 | fi |
| 3307 | fi |
| 3308 | rm -f conftest.lib libconftest.a |
| 3309 | |
| 3310 | fi |
| 3311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3312 | ac_ext=c |
| 3313 | ac_cpp='$CPP $CPPFLAGS' |
| 3314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3317 | |
| 3318 | fi |
| 3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 |
| 3320 | $as_echo "$am_cv_ar_interface" >&6; } |
| 3321 | |
| 3322 | case $am_cv_ar_interface in |
| 3323 | ar) |
| 3324 | ;; |
| 3325 | lib) |
| 3326 | # Microsoft lib, so override with the ar-lib wrapper script. |
| 3327 | # FIXME: It is wrong to rewrite AR. |
| 3328 | # But if we don't then we get into trouble of one sort or another. |
| 3329 | # A longer-term fix would be to have automake use am__AR in this case, |
| 3330 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something |
| 3331 | # similar. |
| 3332 | AR="$am_aux_dir/ar-lib $AR" |
| 3333 | ;; |
| 3334 | unknown) |
| 3335 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 |
| 3336 | ;; |
| 3337 | esac |
| 3338 | |
| 3339 | if test -n "$ac_tool_prefix"; then |
| 3340 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3341 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3343 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3344 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 3345 | $as_echo_n "(cached) " >&6 |
| 3346 | else |
| 3347 | if test -n "$RANLIB"; then |
| 3348 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3349 | else |
| 3350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3351 | for as_dir in $PATH |
| 3352 | do |
| 3353 | IFS=$as_save_IFS |
| 3354 | test -z "$as_dir" && as_dir=. |
| 3355 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3356 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3357 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3359 | break 2 |
| 3360 | fi |
| 3361 | done |
| 3362 | done |
| 3363 | IFS=$as_save_IFS |
| 3364 | |
| 3365 | fi |
| 3366 | fi |
| 3367 | RANLIB=$ac_cv_prog_RANLIB |
| 3368 | if test -n "$RANLIB"; then |
| 3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 3370 | $as_echo "$RANLIB" >&6; } |
| 3371 | else |
| 3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3373 | $as_echo "no" >&6; } |
| 3374 | fi |
| 3375 | |
| 3376 | |
| 3377 | fi |
| 3378 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3379 | ac_ct_RANLIB=$RANLIB |
| 3380 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3381 | set dummy ranlib; ac_word=$2 |
| 3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3383 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3384 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 3385 | $as_echo_n "(cached) " >&6 |
| 3386 | else |
| 3387 | if test -n "$ac_ct_RANLIB"; then |
| 3388 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3389 | else |
| 3390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3391 | for as_dir in $PATH |
| 3392 | do |
| 3393 | IFS=$as_save_IFS |
| 3394 | test -z "$as_dir" && as_dir=. |
| 3395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3396 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3397 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3399 | break 2 |
| 3400 | fi |
| 3401 | done |
| 3402 | done |
| 3403 | IFS=$as_save_IFS |
| 3404 | |
| 3405 | fi |
| 3406 | fi |
| 3407 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3408 | if test -n "$ac_ct_RANLIB"; then |
| 3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 3410 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 3411 | else |
| 3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3413 | $as_echo "no" >&6; } |
| 3414 | fi |
| 3415 | |
| 3416 | if test "x$ac_ct_RANLIB" = x; then |
| 3417 | RANLIB=":" |
| 3418 | else |
| 3419 | case $cross_compiling:$ac_tool_warned in |
| 3420 | yes:) |
| 3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3422 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3423 | ac_tool_warned=yes ;; |
| 3424 | esac |
| 3425 | RANLIB=$ac_ct_RANLIB |
| 3426 | fi |
| 3427 | else |
| 3428 | RANLIB="$ac_cv_prog_RANLIB" |
| 3429 | fi |
| 3430 | |
| 3431 | ac_ext=c |
| 3432 | ac_cpp='$CPP $CPPFLAGS' |
| 3433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3436 | if test -n "$ac_tool_prefix"; then |
| 3437 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3438 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3440 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3441 | if ${ac_cv_prog_CC+:} false; then : |
| 3442 | $as_echo_n "(cached) " >&6 |
| 3443 | else |
| 3444 | if test -n "$CC"; then |
| 3445 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3446 | else |
| 3447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3448 | for as_dir in $PATH |
| 3449 | do |
| 3450 | IFS=$as_save_IFS |
| 3451 | test -z "$as_dir" && as_dir=. |
| 3452 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3453 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3454 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3456 | break 2 |
| 3457 | fi |
| 3458 | done |
| 3459 | done |
| 3460 | IFS=$as_save_IFS |
| 3461 | |
| 3462 | fi |
| 3463 | fi |
| 3464 | CC=$ac_cv_prog_CC |
| 3465 | if test -n "$CC"; then |
| 3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3467 | $as_echo "$CC" >&6; } |
| 3468 | else |
| 3469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3470 | $as_echo "no" >&6; } |
| 3471 | fi |
| 3472 | |
| 3473 | |
| 3474 | fi |
| 3475 | if test -z "$ac_cv_prog_CC"; then |
| 3476 | ac_ct_CC=$CC |
| 3477 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3478 | set dummy gcc; ac_word=$2 |
| 3479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3480 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3481 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3482 | $as_echo_n "(cached) " >&6 |
| 3483 | else |
| 3484 | if test -n "$ac_ct_CC"; then |
| 3485 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3486 | else |
| 3487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3488 | for as_dir in $PATH |
| 3489 | do |
| 3490 | IFS=$as_save_IFS |
| 3491 | test -z "$as_dir" && as_dir=. |
| 3492 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3493 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3494 | ac_cv_prog_ac_ct_CC="gcc" |
| 3495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3496 | break 2 |
| 3497 | fi |
| 3498 | done |
| 3499 | done |
| 3500 | IFS=$as_save_IFS |
| 3501 | |
| 3502 | fi |
| 3503 | fi |
| 3504 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3505 | if test -n "$ac_ct_CC"; then |
| 3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3507 | $as_echo "$ac_ct_CC" >&6; } |
| 3508 | else |
| 3509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3510 | $as_echo "no" >&6; } |
| 3511 | fi |
| 3512 | |
| 3513 | if test "x$ac_ct_CC" = x; then |
| 3514 | CC="" |
| 3515 | else |
| 3516 | case $cross_compiling:$ac_tool_warned in |
| 3517 | yes:) |
| 3518 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3519 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3520 | ac_tool_warned=yes ;; |
| 3521 | esac |
| 3522 | CC=$ac_ct_CC |
| 3523 | fi |
| 3524 | else |
| 3525 | CC="$ac_cv_prog_CC" |
| 3526 | fi |
| 3527 | |
| 3528 | if test -z "$CC"; then |
| 3529 | if test -n "$ac_tool_prefix"; then |
| 3530 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3531 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3533 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3534 | if ${ac_cv_prog_CC+:} false; then : |
| 3535 | $as_echo_n "(cached) " >&6 |
| 3536 | else |
| 3537 | if test -n "$CC"; then |
| 3538 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3539 | else |
| 3540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3541 | for as_dir in $PATH |
| 3542 | do |
| 3543 | IFS=$as_save_IFS |
| 3544 | test -z "$as_dir" && as_dir=. |
| 3545 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3546 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3547 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3549 | break 2 |
| 3550 | fi |
| 3551 | done |
| 3552 | done |
| 3553 | IFS=$as_save_IFS |
| 3554 | |
| 3555 | fi |
| 3556 | fi |
| 3557 | CC=$ac_cv_prog_CC |
| 3558 | if test -n "$CC"; then |
| 3559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3560 | $as_echo "$CC" >&6; } |
| 3561 | else |
| 3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3563 | $as_echo "no" >&6; } |
| 3564 | fi |
| 3565 | |
| 3566 | |
| 3567 | fi |
| 3568 | fi |
| 3569 | if test -z "$CC"; then |
| 3570 | # Extract the first word of "cc", so it can be a program name with args. |
| 3571 | set dummy cc; ac_word=$2 |
| 3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3573 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3574 | if ${ac_cv_prog_CC+:} false; then : |
| 3575 | $as_echo_n "(cached) " >&6 |
| 3576 | else |
| 3577 | if test -n "$CC"; then |
| 3578 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3579 | else |
| 3580 | ac_prog_rejected=no |
| 3581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3582 | for as_dir in $PATH |
| 3583 | do |
| 3584 | IFS=$as_save_IFS |
| 3585 | test -z "$as_dir" && as_dir=. |
| 3586 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3587 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3588 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3589 | ac_prog_rejected=yes |
| 3590 | continue |
| 3591 | fi |
| 3592 | ac_cv_prog_CC="cc" |
| 3593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3594 | break 2 |
| 3595 | fi |
| 3596 | done |
| 3597 | done |
| 3598 | IFS=$as_save_IFS |
| 3599 | |
| 3600 | if test $ac_prog_rejected = yes; then |
| 3601 | # We found a bogon in the path, so make sure we never use it. |
| 3602 | set dummy $ac_cv_prog_CC |
| 3603 | shift |
| 3604 | if test $# != 0; then |
| 3605 | # We chose a different compiler from the bogus one. |
| 3606 | # However, it has the same basename, so the bogon will be chosen |
| 3607 | # first if we set CC to just the basename; use the full file name. |
| 3608 | shift |
| 3609 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3610 | fi |
| 3611 | fi |
| 3612 | fi |
| 3613 | fi |
| 3614 | CC=$ac_cv_prog_CC |
| 3615 | if test -n "$CC"; then |
| 3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3617 | $as_echo "$CC" >&6; } |
| 3618 | else |
| 3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3620 | $as_echo "no" >&6; } |
| 3621 | fi |
| 3622 | |
| 3623 | |
| 3624 | fi |
| 3625 | if test -z "$CC"; then |
| 3626 | if test -n "$ac_tool_prefix"; then |
| 3627 | for ac_prog in cl.exe |
| 3628 | do |
| 3629 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3630 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3632 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3633 | if ${ac_cv_prog_CC+:} false; then : |
| 3634 | $as_echo_n "(cached) " >&6 |
| 3635 | else |
| 3636 | if test -n "$CC"; then |
| 3637 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3638 | else |
| 3639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3640 | for as_dir in $PATH |
| 3641 | do |
| 3642 | IFS=$as_save_IFS |
| 3643 | test -z "$as_dir" && as_dir=. |
| 3644 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3645 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3646 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3648 | break 2 |
| 3649 | fi |
| 3650 | done |
| 3651 | done |
| 3652 | IFS=$as_save_IFS |
| 3653 | |
| 3654 | fi |
| 3655 | fi |
| 3656 | CC=$ac_cv_prog_CC |
| 3657 | if test -n "$CC"; then |
| 3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3659 | $as_echo "$CC" >&6; } |
| 3660 | else |
| 3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3662 | $as_echo "no" >&6; } |
| 3663 | fi |
| 3664 | |
| 3665 | |
| 3666 | test -n "$CC" && break |
| 3667 | done |
| 3668 | fi |
| 3669 | if test -z "$CC"; then |
| 3670 | ac_ct_CC=$CC |
| 3671 | for ac_prog in cl.exe |
| 3672 | do |
| 3673 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3674 | set dummy $ac_prog; ac_word=$2 |
| 3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3676 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3677 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3678 | $as_echo_n "(cached) " >&6 |
| 3679 | else |
| 3680 | if test -n "$ac_ct_CC"; then |
| 3681 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3682 | else |
| 3683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3684 | for as_dir in $PATH |
| 3685 | do |
| 3686 | IFS=$as_save_IFS |
| 3687 | test -z "$as_dir" && as_dir=. |
| 3688 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3690 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3692 | break 2 |
| 3693 | fi |
| 3694 | done |
| 3695 | done |
| 3696 | IFS=$as_save_IFS |
| 3697 | |
| 3698 | fi |
| 3699 | fi |
| 3700 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3701 | if test -n "$ac_ct_CC"; then |
| 3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3703 | $as_echo "$ac_ct_CC" >&6; } |
| 3704 | else |
| 3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3706 | $as_echo "no" >&6; } |
| 3707 | fi |
| 3708 | |
| 3709 | |
| 3710 | test -n "$ac_ct_CC" && break |
| 3711 | done |
| 3712 | |
| 3713 | if test "x$ac_ct_CC" = x; then |
| 3714 | CC="" |
| 3715 | else |
| 3716 | case $cross_compiling:$ac_tool_warned in |
| 3717 | yes:) |
| 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3719 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3720 | ac_tool_warned=yes ;; |
| 3721 | esac |
| 3722 | CC=$ac_ct_CC |
| 3723 | fi |
| 3724 | fi |
| 3725 | |
| 3726 | fi |
| 3727 | |
| 3728 | |
| 3729 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3730 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3731 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3732 | See \`config.log' for more details" "$LINENO" 5; } |
| 3733 | |
| 3734 | # Provide some information about the compiler. |
| 3735 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3736 | set X $ac_compile |
| 3737 | ac_compiler=$2 |
| 3738 | for ac_option in --version -v -V -qversion; do |
| 3739 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3740 | case "(($ac_try" in |
| 3741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3742 | *) ac_try_echo=$ac_try;; |
| 3743 | esac |
| 3744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3745 | $as_echo "$ac_try_echo"; } >&5 |
| 3746 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3747 | ac_status=$? |
| 3748 | if test -s conftest.err; then |
| 3749 | sed '10a\ |
| 3750 | ... rest of stderr output deleted ... |
| 3751 | 10q' conftest.err >conftest.er1 |
| 3752 | cat conftest.er1 >&5 |
| 3753 | fi |
| 3754 | rm -f conftest.er1 conftest.err |
| 3755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3756 | test $ac_status = 0; } |
| 3757 | done |
| 3758 | |
| 3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3760 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3761 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3762 | $as_echo_n "(cached) " >&6 |
| 3763 | else |
| 3764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3765 | /* end confdefs.h. */ |
| 3766 | |
| 3767 | int |
| 3768 | main () |
| 3769 | { |
| 3770 | #ifndef __GNUC__ |
| 3771 | choke me |
| 3772 | #endif |
| 3773 | |
| 3774 | ; |
| 3775 | return 0; |
| 3776 | } |
| 3777 | _ACEOF |
| 3778 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3779 | ac_compiler_gnu=yes |
| 3780 | else |
| 3781 | ac_compiler_gnu=no |
| 3782 | fi |
| 3783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3784 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3785 | |
| 3786 | fi |
| 3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3788 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3789 | if test $ac_compiler_gnu = yes; then |
| 3790 | GCC=yes |
| 3791 | else |
| 3792 | GCC= |
| 3793 | fi |
| 3794 | ac_test_CFLAGS=${CFLAGS+set} |
| 3795 | ac_save_CFLAGS=$CFLAGS |
| 3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3797 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3798 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3799 | $as_echo_n "(cached) " >&6 |
| 3800 | else |
| 3801 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3802 | ac_c_werror_flag=yes |
| 3803 | ac_cv_prog_cc_g=no |
| 3804 | CFLAGS="-g" |
| 3805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3806 | /* end confdefs.h. */ |
| 3807 | |
| 3808 | int |
| 3809 | main () |
| 3810 | { |
| 3811 | |
| 3812 | ; |
| 3813 | return 0; |
| 3814 | } |
| 3815 | _ACEOF |
| 3816 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3817 | ac_cv_prog_cc_g=yes |
| 3818 | else |
| 3819 | CFLAGS="" |
| 3820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3821 | /* end confdefs.h. */ |
| 3822 | |
| 3823 | int |
| 3824 | main () |
| 3825 | { |
| 3826 | |
| 3827 | ; |
| 3828 | return 0; |
| 3829 | } |
| 3830 | _ACEOF |
| 3831 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3832 | |
| 3833 | else |
| 3834 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3835 | CFLAGS="-g" |
| 3836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3837 | /* end confdefs.h. */ |
| 3838 | |
| 3839 | int |
| 3840 | main () |
| 3841 | { |
| 3842 | |
| 3843 | ; |
| 3844 | return 0; |
| 3845 | } |
| 3846 | _ACEOF |
| 3847 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3848 | ac_cv_prog_cc_g=yes |
| 3849 | fi |
| 3850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3851 | fi |
| 3852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3853 | fi |
| 3854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3855 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3856 | fi |
| 3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3858 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3859 | if test "$ac_test_CFLAGS" = set; then |
| 3860 | CFLAGS=$ac_save_CFLAGS |
| 3861 | elif test $ac_cv_prog_cc_g = yes; then |
| 3862 | if test "$GCC" = yes; then |
| 3863 | CFLAGS="-g -O2" |
| 3864 | else |
| 3865 | CFLAGS="-g" |
| 3866 | fi |
| 3867 | else |
| 3868 | if test "$GCC" = yes; then |
| 3869 | CFLAGS="-O2" |
| 3870 | else |
| 3871 | CFLAGS= |
| 3872 | fi |
| 3873 | fi |
| 3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3875 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3876 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3877 | $as_echo_n "(cached) " >&6 |
| 3878 | else |
| 3879 | ac_cv_prog_cc_c89=no |
| 3880 | ac_save_CC=$CC |
| 3881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3882 | /* end confdefs.h. */ |
| 3883 | #include <stdarg.h> |
| 3884 | #include <stdio.h> |
| 3885 | struct stat; |
| 3886 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3887 | struct buf { int x; }; |
| 3888 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3889 | static char *e (p, i) |
| 3890 | char **p; |
| 3891 | int i; |
| 3892 | { |
| 3893 | return p[i]; |
| 3894 | } |
| 3895 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3896 | { |
| 3897 | char *s; |
| 3898 | va_list v; |
| 3899 | va_start (v,p); |
| 3900 | s = g (p, va_arg (v,int)); |
| 3901 | va_end (v); |
| 3902 | return s; |
| 3903 | } |
| 3904 | |
| 3905 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3906 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3907 | These don't provoke an error unfortunately, instead are silently treated |
| 3908 | as 'x'. The following induces an error, until -std is added to get |
| 3909 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3910 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3911 | that's true only with -std. */ |
| 3912 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3913 | |
| 3914 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3915 | inside strings and character constants. */ |
| 3916 | #define FOO(x) 'x' |
| 3917 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3918 | |
| 3919 | int test (int i, double x); |
| 3920 | struct s1 {int (*f) (int a);}; |
| 3921 | struct s2 {int (*f) (double a);}; |
| 3922 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3923 | int argc; |
| 3924 | char **argv; |
| 3925 | int |
| 3926 | main () |
| 3927 | { |
| 3928 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3929 | ; |
| 3930 | return 0; |
| 3931 | } |
| 3932 | _ACEOF |
| 3933 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3934 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3935 | do |
| 3936 | CC="$ac_save_CC $ac_arg" |
| 3937 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3938 | ac_cv_prog_cc_c89=$ac_arg |
| 3939 | fi |
| 3940 | rm -f core conftest.err conftest.$ac_objext |
| 3941 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3942 | done |
| 3943 | rm -f conftest.$ac_ext |
| 3944 | CC=$ac_save_CC |
| 3945 | |
| 3946 | fi |
| 3947 | # AC_CACHE_VAL |
| 3948 | case "x$ac_cv_prog_cc_c89" in |
| 3949 | x) |
| 3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3951 | $as_echo "none needed" >&6; } ;; |
| 3952 | xno) |
| 3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3954 | $as_echo "unsupported" >&6; } ;; |
| 3955 | *) |
| 3956 | CC="$CC $ac_cv_prog_cc_c89" |
| 3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3958 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3959 | esac |
| 3960 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3961 | |
| 3962 | fi |
| 3963 | |
| 3964 | ac_ext=c |
| 3965 | ac_cpp='$CPP $CPPFLAGS' |
| 3966 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3967 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3968 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3969 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3970 | ac_aux_dir= |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3971 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3972 | if test -f "$ac_dir/install-sh"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3973 | ac_aux_dir=$ac_dir |
| 3974 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3975 | break |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3976 | elif test -f "$ac_dir/install.sh"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3977 | ac_aux_dir=$ac_dir |
| 3978 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3979 | break |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3980 | elif test -f "$ac_dir/shtool"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3981 | ac_aux_dir=$ac_dir |
| 3982 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3983 | break |
| 3984 | fi |
| 3985 | done |
| 3986 | if test -z "$ac_aux_dir"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3987 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3988 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3989 | |
| 3990 | # These three variables are undocumented and unsupported, |
| 3991 | # and are intended to be withdrawn in a future Autoconf release. |
| 3992 | # They can cause serious problems if a builder's source tree is in a directory |
| 3993 | # whose full name contains unusual characters. |
| 3994 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3995 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3996 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3997 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3998 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3999 | # Find a good install program. We prefer a C program (faster), |
| 4000 | # so one script is as good as another. But avoid the broken or |
| 4001 | # incompatible versions: |
| 4002 | # SysV /etc/install, /usr/sbin/install |
| 4003 | # SunOS /usr/etc/install |
| 4004 | # IRIX /sbin/install |
| 4005 | # AIX /bin/install |
| 4006 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4007 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4008 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4009 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4010 | # OS/2's system install, which has a completely different semantic |
| 4011 | # ./install, which can be erroneously created by make from ./install.sh. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4012 | # Reject install programs that cannot install multiple files. |
| 4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 4014 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4015 | if test -z "$INSTALL"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4016 | if ${ac_cv_path_install+:} false; then : |
| 4017 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4018 | else |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4020 | for as_dir in $PATH |
| 4021 | do |
| 4022 | IFS=$as_save_IFS |
| 4023 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4024 | # Account for people who put trailing slashes in PATH elements. |
| 4025 | case $as_dir/ in #(( |
| 4026 | ./ | .// | /[cC]/* | \ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4027 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4028 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4029 | /usr/ucb/* ) ;; |
| 4030 | *) |
| 4031 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4032 | # Don't use installbsd from OSF since it installs stuff as root |
| 4033 | # by default. |
| 4034 | for ac_prog in ginstall scoinst install; do |
| 4035 | for ac_exec_ext in '' $ac_executable_extensions; do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4036 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4037 | if test $ac_prog = install && |
| 4038 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4039 | # AIX install. It has an incompatible calling convention. |
| 4040 | : |
| 4041 | elif test $ac_prog = install && |
| 4042 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4043 | # program-specific install script used by HP pwplus--don't use. |
| 4044 | : |
| 4045 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4046 | rm -rf conftest.one conftest.two conftest.dir |
| 4047 | echo one > conftest.one |
| 4048 | echo two > conftest.two |
| 4049 | mkdir conftest.dir |
| 4050 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4051 | test -s conftest.one && test -s conftest.two && |
| 4052 | test -s conftest.dir/conftest.one && |
| 4053 | test -s conftest.dir/conftest.two |
| 4054 | then |
| 4055 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4056 | break 3 |
| 4057 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4058 | fi |
| 4059 | fi |
| 4060 | done |
| 4061 | done |
| 4062 | ;; |
| 4063 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4064 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4065 | done |
| 4066 | IFS=$as_save_IFS |
| 4067 | |
| 4068 | rm -rf conftest.one conftest.two conftest.dir |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4069 | |
| 4070 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4071 | if test "${ac_cv_path_install+set}" = set; then |
| 4072 | INSTALL=$ac_cv_path_install |
| 4073 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4074 | # As a last resort, use the slow shell script. Don't cache a |
| 4075 | # value for INSTALL within a source directory, because that will |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4076 | # break other packages using the cache if that directory is |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4077 | # removed, or if the value is a relative name. |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4078 | INSTALL=$ac_install_sh |
| 4079 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4080 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 4082 | $as_echo "$INSTALL" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4083 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4084 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4085 | # It thinks the first close brace ends the variable substitution. |
| 4086 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4087 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4088 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4089 | |
| 4090 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4091 | |
| 4092 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4093 | ac_ext=c |
| 4094 | ac_cpp='$CPP $CPPFLAGS' |
| 4095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4099 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4100 | # On Suns, sometimes $CPP names a directory. |
| 4101 | if test -n "$CPP" && test -d "$CPP"; then |
| 4102 | CPP= |
| 4103 | fi |
| 4104 | if test -z "$CPP"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4105 | if ${ac_cv_prog_CPP+:} false; then : |
| 4106 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4107 | else |
| 4108 | # Double quotes because CPP needs to be expanded |
| 4109 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4110 | do |
| 4111 | ac_preproc_ok=false |
| 4112 | for ac_c_preproc_warn_flag in '' yes |
| 4113 | do |
| 4114 | # Use a header file that comes with gcc, so configuring glibc |
| 4115 | # with a fresh cross-compiler works. |
| 4116 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4117 | # <limits.h> exists even on freestanding compilers. |
| 4118 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4119 | # not just through cpp. "Syntax error" is here to catch this case. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4121 | /* end confdefs.h. */ |
| 4122 | #ifdef __STDC__ |
| 4123 | # include <limits.h> |
| 4124 | #else |
| 4125 | # include <assert.h> |
| 4126 | #endif |
| 4127 | Syntax error |
| 4128 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4129 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4130 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4131 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4132 | # Broken: fails on valid input. |
| 4133 | continue |
| 4134 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4135 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4136 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4137 | # OK, works on sane cases. Now check whether nonexistent headers |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4138 | # can be detected and how. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4140 | /* end confdefs.h. */ |
| 4141 | #include <ac_nonexistent.h> |
| 4142 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4143 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4144 | # Broken: success on invalid input. |
| 4145 | continue |
| 4146 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4147 | # Passes both tests. |
| 4148 | ac_preproc_ok=: |
| 4149 | break |
| 4150 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4151 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4152 | |
| 4153 | done |
| 4154 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4155 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4156 | if $ac_preproc_ok; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4157 | break |
| 4158 | fi |
| 4159 | |
| 4160 | done |
| 4161 | ac_cv_prog_CPP=$CPP |
| 4162 | |
| 4163 | fi |
| 4164 | CPP=$ac_cv_prog_CPP |
| 4165 | else |
| 4166 | ac_cv_prog_CPP=$CPP |
| 4167 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4169 | $as_echo "$CPP" >&6; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4170 | ac_preproc_ok=false |
| 4171 | for ac_c_preproc_warn_flag in '' yes |
| 4172 | do |
| 4173 | # Use a header file that comes with gcc, so configuring glibc |
| 4174 | # with a fresh cross-compiler works. |
| 4175 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4176 | # <limits.h> exists even on freestanding compilers. |
| 4177 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4178 | # not just through cpp. "Syntax error" is here to catch this case. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4180 | /* end confdefs.h. */ |
| 4181 | #ifdef __STDC__ |
| 4182 | # include <limits.h> |
| 4183 | #else |
| 4184 | # include <assert.h> |
| 4185 | #endif |
| 4186 | Syntax error |
| 4187 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4188 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4189 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4190 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4191 | # Broken: fails on valid input. |
| 4192 | continue |
| 4193 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4194 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4195 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4196 | # OK, works on sane cases. Now check whether nonexistent headers |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4197 | # can be detected and how. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4199 | /* end confdefs.h. */ |
| 4200 | #include <ac_nonexistent.h> |
| 4201 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4202 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4203 | # Broken: success on invalid input. |
| 4204 | continue |
| 4205 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4206 | # Passes both tests. |
| 4207 | ac_preproc_ok=: |
| 4208 | break |
| 4209 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4210 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4211 | |
| 4212 | done |
| 4213 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4214 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4215 | if $ac_preproc_ok; then : |
| 4216 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4217 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4218 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4219 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4220 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4221 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4222 | fi |
| 4223 | |
| 4224 | ac_ext=c |
| 4225 | ac_cpp='$CPP $CPPFLAGS' |
| 4226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4229 | |
| 4230 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4232 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4233 | if ${ac_cv_path_GREP+:} false; then : |
| 4234 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4235 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4236 | if test -z "$GREP"; then |
| 4237 | ac_path_GREP_found=false |
| 4238 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4240 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4241 | do |
| 4242 | IFS=$as_save_IFS |
| 4243 | test -z "$as_dir" && as_dir=. |
| 4244 | for ac_prog in grep ggrep; do |
| 4245 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4246 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4247 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4248 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4249 | # Check for GNU $ac_path_GREP |
| 4250 | case `"$ac_path_GREP" --version 2>&1` in |
| 4251 | *GNU*) |
| 4252 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4253 | *) |
| 4254 | ac_count=0 |
| 4255 | $as_echo_n 0123456789 >"conftest.in" |
| 4256 | while : |
| 4257 | do |
| 4258 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4259 | mv "conftest.tmp" "conftest.in" |
| 4260 | cp "conftest.in" "conftest.nl" |
| 4261 | $as_echo 'GREP' >> "conftest.nl" |
| 4262 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4263 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4264 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4265 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4266 | # Best one so far, save it but keep looking for a better one |
| 4267 | ac_cv_path_GREP="$ac_path_GREP" |
| 4268 | ac_path_GREP_max=$ac_count |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4269 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4270 | # 10*(2^10) chars as input seems more than enough |
| 4271 | test $ac_count -gt 10 && break |
| 4272 | done |
| 4273 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4274 | esac |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4275 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4276 | $ac_path_GREP_found && break 3 |
| 4277 | done |
| 4278 | done |
| 4279 | done |
| 4280 | IFS=$as_save_IFS |
| 4281 | if test -z "$ac_cv_path_GREP"; then |
| 4282 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4283 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4284 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4285 | ac_cv_path_GREP=$GREP |
| 4286 | fi |
| 4287 | |
| 4288 | fi |
| 4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4290 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4291 | GREP="$ac_cv_path_GREP" |
| 4292 | |
| 4293 | |
| 4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4295 | $as_echo_n "checking for egrep... " >&6; } |
| 4296 | if ${ac_cv_path_EGREP+:} false; then : |
| 4297 | $as_echo_n "(cached) " >&6 |
| 4298 | else |
| 4299 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4300 | then ac_cv_path_EGREP="$GREP -E" |
| 4301 | else |
| 4302 | if test -z "$EGREP"; then |
| 4303 | ac_path_EGREP_found=false |
| 4304 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4306 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4307 | do |
| 4308 | IFS=$as_save_IFS |
| 4309 | test -z "$as_dir" && as_dir=. |
| 4310 | for ac_prog in egrep; do |
| 4311 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4312 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4313 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4314 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4315 | # Check for GNU $ac_path_EGREP |
| 4316 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4317 | *GNU*) |
| 4318 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4319 | *) |
| 4320 | ac_count=0 |
| 4321 | $as_echo_n 0123456789 >"conftest.in" |
| 4322 | while : |
| 4323 | do |
| 4324 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4325 | mv "conftest.tmp" "conftest.in" |
| 4326 | cp "conftest.in" "conftest.nl" |
| 4327 | $as_echo 'EGREP' >> "conftest.nl" |
| 4328 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4329 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4330 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4331 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4332 | # Best one so far, save it but keep looking for a better one |
| 4333 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4334 | ac_path_EGREP_max=$ac_count |
| 4335 | fi |
| 4336 | # 10*(2^10) chars as input seems more than enough |
| 4337 | test $ac_count -gt 10 && break |
| 4338 | done |
| 4339 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4340 | esac |
| 4341 | |
| 4342 | $ac_path_EGREP_found && break 3 |
| 4343 | done |
| 4344 | done |
| 4345 | done |
| 4346 | IFS=$as_save_IFS |
| 4347 | if test -z "$ac_cv_path_EGREP"; then |
| 4348 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4349 | fi |
| 4350 | else |
| 4351 | ac_cv_path_EGREP=$EGREP |
| 4352 | fi |
| 4353 | |
| 4354 | fi |
| 4355 | fi |
| 4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4357 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4358 | EGREP="$ac_cv_path_EGREP" |
| 4359 | |
| 4360 | |
| 4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4362 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4363 | if ${ac_cv_header_stdc+:} false; then : |
| 4364 | $as_echo_n "(cached) " >&6 |
| 4365 | else |
| 4366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4367 | /* end confdefs.h. */ |
| 4368 | #include <stdlib.h> |
| 4369 | #include <stdarg.h> |
| 4370 | #include <string.h> |
| 4371 | #include <float.h> |
| 4372 | |
| 4373 | int |
| 4374 | main () |
| 4375 | { |
| 4376 | |
| 4377 | ; |
| 4378 | return 0; |
| 4379 | } |
| 4380 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4381 | if ac_fn_c_try_compile "$LINENO"; then : |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4382 | ac_cv_header_stdc=yes |
| 4383 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4384 | ac_cv_header_stdc=no |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4385 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4387 | |
| 4388 | if test $ac_cv_header_stdc = yes; then |
| 4389 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4391 | /* end confdefs.h. */ |
| 4392 | #include <string.h> |
| 4393 | |
| 4394 | _ACEOF |
| 4395 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4396 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4397 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4398 | else |
| 4399 | ac_cv_header_stdc=no |
| 4400 | fi |
| 4401 | rm -f conftest* |
| 4402 | |
| 4403 | fi |
| 4404 | |
| 4405 | if test $ac_cv_header_stdc = yes; then |
| 4406 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4408 | /* end confdefs.h. */ |
| 4409 | #include <stdlib.h> |
| 4410 | |
| 4411 | _ACEOF |
| 4412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4413 | $EGREP "free" >/dev/null 2>&1; then : |
| 4414 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4415 | else |
| 4416 | ac_cv_header_stdc=no |
| 4417 | fi |
| 4418 | rm -f conftest* |
| 4419 | |
| 4420 | fi |
| 4421 | |
| 4422 | if test $ac_cv_header_stdc = yes; then |
| 4423 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4424 | if test "$cross_compiling" = yes; then : |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4425 | : |
| 4426 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4428 | /* end confdefs.h. */ |
| 4429 | #include <ctype.h> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4430 | #include <stdlib.h> |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4431 | #if ((' ' & 0x0FF) == 0x020) |
| 4432 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4433 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4434 | #else |
| 4435 | # define ISLOWER(c) \ |
| 4436 | (('a' <= (c) && (c) <= 'i') \ |
| 4437 | || ('j' <= (c) && (c) <= 'r') \ |
| 4438 | || ('s' <= (c) && (c) <= 'z')) |
| 4439 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4440 | #endif |
| 4441 | |
| 4442 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4443 | int |
| 4444 | main () |
| 4445 | { |
| 4446 | int i; |
| 4447 | for (i = 0; i < 256; i++) |
| 4448 | if (XOR (islower (i), ISLOWER (i)) |
| 4449 | || toupper (i) != TOUPPER (i)) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4450 | return 2; |
| 4451 | return 0; |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4452 | } |
| 4453 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4454 | if ac_fn_c_try_run "$LINENO"; then : |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4455 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4456 | else |
| 4457 | ac_cv_header_stdc=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4458 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4459 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4460 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4461 | fi |
| 4462 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4463 | fi |
| 4464 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4466 | $as_echo "$ac_cv_header_stdc" >&6; } |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4467 | if test $ac_cv_header_stdc = yes; then |
| 4468 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4469 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4470 | |
| 4471 | fi |
| 4472 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4473 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4474 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4475 | inttypes.h stdint.h unistd.h |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4476 | do : |
| 4477 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4478 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4479 | " |
| 4480 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4481 | cat >>confdefs.h <<_ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4482 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4483 | _ACEOF |
| 4484 | |
| 4485 | fi |
| 4486 | |
| 4487 | done |
| 4488 | |
| 4489 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 4491 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 4492 | if ${ac_cv_c_bigendian+:} false; then : |
| 4493 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4494 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4495 | ac_cv_c_bigendian=unknown |
| 4496 | # See if we're dealing with a universal compiler. |
| 4497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4498 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4499 | #ifndef __APPLE_CC__ |
| 4500 | not a universal capable compiler |
| 4501 | #endif |
| 4502 | typedef int dummy; |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4503 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4504 | _ACEOF |
| 4505 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4506 | |
| 4507 | # Check for potential -arch flags. It is not universal unless |
| 4508 | # there are at least two -arch flags with different values. |
| 4509 | ac_arch= |
| 4510 | ac_prev= |
| 4511 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 4512 | if test -n "$ac_prev"; then |
| 4513 | case $ac_word in |
| 4514 | i?86 | x86_64 | ppc | ppc64) |
| 4515 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 4516 | ac_arch=$ac_word |
| 4517 | else |
| 4518 | ac_cv_c_bigendian=universal |
| 4519 | break |
| 4520 | fi |
| 4521 | ;; |
| 4522 | esac |
| 4523 | ac_prev= |
| 4524 | elif test "x$ac_word" = "x-arch"; then |
| 4525 | ac_prev=arch |
| 4526 | fi |
| 4527 | done |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4528 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4530 | if test $ac_cv_c_bigendian = unknown; then |
| 4531 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4533 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4534 | #include <sys/types.h> |
| 4535 | #include <sys/param.h> |
| 4536 | |
| 4537 | int |
| 4538 | main () |
| 4539 | { |
| 4540 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 4541 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 4542 | && LITTLE_ENDIAN) |
| 4543 | bogus endian macros |
| 4544 | #endif |
| 4545 | |
| 4546 | ; |
| 4547 | return 0; |
| 4548 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4549 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4550 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4551 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4553 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4554 | #include <sys/types.h> |
| 4555 | #include <sys/param.h> |
| 4556 | |
| 4557 | int |
| 4558 | main () |
| 4559 | { |
| 4560 | #if BYTE_ORDER != BIG_ENDIAN |
| 4561 | not big endian |
| 4562 | #endif |
| 4563 | |
| 4564 | ; |
| 4565 | return 0; |
| 4566 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4567 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4568 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4569 | ac_cv_c_bigendian=yes |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4570 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4571 | ac_cv_c_bigendian=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4572 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4574 | fi |
| 4575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4576 | fi |
| 4577 | if test $ac_cv_c_bigendian = unknown; then |
| 4578 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 4579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4580 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4581 | #include <limits.h> |
| 4582 | |
| 4583 | int |
| 4584 | main () |
| 4585 | { |
| 4586 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 4587 | bogus endian macros |
| 4588 | #endif |
| 4589 | |
| 4590 | ; |
| 4591 | return 0; |
| 4592 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4593 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4594 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4595 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 4596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4597 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4598 | #include <limits.h> |
| 4599 | |
| 4600 | int |
| 4601 | main () |
| 4602 | { |
| 4603 | #ifndef _BIG_ENDIAN |
| 4604 | not big endian |
| 4605 | #endif |
| 4606 | |
| 4607 | ; |
| 4608 | return 0; |
| 4609 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4610 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4611 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4612 | ac_cv_c_bigendian=yes |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4613 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4614 | ac_cv_c_bigendian=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4615 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4617 | fi |
| 4618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4619 | fi |
| 4620 | if test $ac_cv_c_bigendian = unknown; then |
| 4621 | # Compile a test program. |
| 4622 | if test "$cross_compiling" = yes; then : |
| 4623 | # Try to guess by grepping values from an object file. |
| 4624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4625 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4626 | short int ascii_mm[] = |
| 4627 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4628 | short int ascii_ii[] = |
| 4629 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4630 | int use_ascii (int i) { |
| 4631 | return ascii_mm[i] + ascii_ii[i]; |
| 4632 | } |
| 4633 | short int ebcdic_ii[] = |
| 4634 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4635 | short int ebcdic_mm[] = |
| 4636 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4637 | int use_ebcdic (int i) { |
| 4638 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 4639 | } |
| 4640 | extern int foo; |
| 4641 | |
| 4642 | int |
| 4643 | main () |
| 4644 | { |
| 4645 | return use_ascii (foo) == use_ebcdic (foo); |
| 4646 | ; |
| 4647 | return 0; |
| 4648 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4649 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4650 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4651 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 4652 | ac_cv_c_bigendian=yes |
| 4653 | fi |
| 4654 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4655 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4656 | ac_cv_c_bigendian=no |
| 4657 | else |
| 4658 | # finding both strings is unlikely to happen, but who knows? |
| 4659 | ac_cv_c_bigendian=unknown |
| 4660 | fi |
| 4661 | fi |
| 4662 | fi |
| 4663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4664 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4666 | /* end confdefs.h. */ |
| 4667 | $ac_includes_default |
| 4668 | int |
| 4669 | main () |
| 4670 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4671 | |
| 4672 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4673 | union |
| 4674 | { |
| 4675 | long int l; |
| 4676 | char c[sizeof (long int)]; |
| 4677 | } u; |
| 4678 | u.l = 1; |
| 4679 | return u.c[sizeof (long int) - 1] == 1; |
| 4680 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4681 | ; |
| 4682 | return 0; |
| 4683 | } |
| 4684 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4685 | if ac_fn_c_try_run "$LINENO"; then : |
| 4686 | ac_cv_c_bigendian=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4687 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4688 | ac_cv_c_bigendian=yes |
| 4689 | fi |
| 4690 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4691 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4692 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4693 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4694 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4695 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 4697 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 4698 | case $ac_cv_c_bigendian in #( |
| 4699 | yes) |
| 4700 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 4701 | ;; #( |
| 4702 | no) |
| 4703 | ;; #( |
| 4704 | universal) |
| 4705 | |
| 4706 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 4707 | |
| 4708 | ;; #( |
| 4709 | *) |
| 4710 | as_fn_error $? "unknown endianness |
| 4711 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 4712 | esac |
| 4713 | |
| 4714 | |
| 4715 | # Make sure we can run config.sub. |
| 4716 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4717 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4718 | |
| 4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4720 | $as_echo_n "checking build system type... " >&6; } |
| 4721 | if ${ac_cv_build+:} false; then : |
| 4722 | $as_echo_n "(cached) " >&6 |
| 4723 | else |
| 4724 | ac_build_alias=$build_alias |
| 4725 | test "x$ac_build_alias" = x && |
| 4726 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4727 | test "x$ac_build_alias" = x && |
| 4728 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4729 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4730 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4731 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4732 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4734 | $as_echo "$ac_cv_build" >&6; } |
| 4735 | case $ac_cv_build in |
| 4736 | *-*-*) ;; |
| 4737 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4738 | esac |
| 4739 | build=$ac_cv_build |
| 4740 | ac_save_IFS=$IFS; IFS='-' |
| 4741 | set x $ac_cv_build |
| 4742 | shift |
| 4743 | build_cpu=$1 |
| 4744 | build_vendor=$2 |
| 4745 | shift; shift |
| 4746 | # Remember, the first character of IFS is used to create $*, |
| 4747 | # except with old shells: |
| 4748 | build_os=$* |
| 4749 | IFS=$ac_save_IFS |
| 4750 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4751 | |
| 4752 | |
| 4753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4754 | $as_echo_n "checking host system type... " >&6; } |
| 4755 | if ${ac_cv_host+:} false; then : |
| 4756 | $as_echo_n "(cached) " >&6 |
| 4757 | else |
| 4758 | if test "x$host_alias" = x; then |
| 4759 | ac_cv_host=$ac_cv_build |
| 4760 | else |
| 4761 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4762 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4763 | fi |
| 4764 | |
| 4765 | fi |
| 4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4767 | $as_echo "$ac_cv_host" >&6; } |
| 4768 | case $ac_cv_host in |
| 4769 | *-*-*) ;; |
| 4770 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4771 | esac |
| 4772 | host=$ac_cv_host |
| 4773 | ac_save_IFS=$IFS; IFS='-' |
| 4774 | set x $ac_cv_host |
| 4775 | shift |
| 4776 | host_cpu=$1 |
| 4777 | host_vendor=$2 |
| 4778 | shift; shift |
| 4779 | # Remember, the first character of IFS is used to create $*, |
| 4780 | # except with old shells: |
| 4781 | host_os=$* |
| 4782 | IFS=$ac_save_IFS |
| 4783 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4784 | |
| 4785 | |
| 4786 | |
| 4787 | case $host_cpu in |
| 4788 | i*86 | x86_64 ) |
| 4789 | |
| 4790 | $as_echo "#define CPU_CISC 1" >>confdefs.h |
| 4791 | |
| 4792 | |
| 4793 | $as_echo "#define HAVE_X86 1" >>confdefs.h |
| 4794 | ;; |
| 4795 | * ) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4796 | |
| 4797 | $as_echo "#define CPU_RISC 1" >>confdefs.h |
jfigus | fb83841 | 2014-12-04 10:15:47 -0500 | [diff] [blame] | 4798 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4799 | ;; |
| 4800 | esac |
| 4801 | |
| 4802 | case $host_os in |
| 4803 | *cygwin*|*mingw* ) |
| 4804 | EXE=.exe |
| 4805 | HOST_IS_WINDOWS=yes |
| 4806 | ;; |
| 4807 | * ) |
| 4808 | EXE="" |
| 4809 | ;; |
| 4810 | esac |
| 4811 | # define executable suffix; this is needed for `make clean' |
| 4812 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4813 | |
| 4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4815 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4816 | if ${ac_cv_header_stdc+:} false; then : |
| 4817 | $as_echo_n "(cached) " >&6 |
| 4818 | else |
| 4819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4820 | /* end confdefs.h. */ |
| 4821 | #include <stdlib.h> |
| 4822 | #include <stdarg.h> |
| 4823 | #include <string.h> |
| 4824 | #include <float.h> |
| 4825 | |
| 4826 | int |
| 4827 | main () |
| 4828 | { |
| 4829 | |
| 4830 | ; |
| 4831 | return 0; |
| 4832 | } |
| 4833 | _ACEOF |
| 4834 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4835 | ac_cv_header_stdc=yes |
| 4836 | else |
| 4837 | ac_cv_header_stdc=no |
| 4838 | fi |
| 4839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4840 | |
| 4841 | if test $ac_cv_header_stdc = yes; then |
| 4842 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4844 | /* end confdefs.h. */ |
| 4845 | #include <string.h> |
| 4846 | |
| 4847 | _ACEOF |
| 4848 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4849 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4850 | |
| 4851 | else |
| 4852 | ac_cv_header_stdc=no |
| 4853 | fi |
| 4854 | rm -f conftest* |
| 4855 | |
| 4856 | fi |
| 4857 | |
| 4858 | if test $ac_cv_header_stdc = yes; then |
| 4859 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4861 | /* end confdefs.h. */ |
| 4862 | #include <stdlib.h> |
| 4863 | |
| 4864 | _ACEOF |
| 4865 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4866 | $EGREP "free" >/dev/null 2>&1; then : |
| 4867 | |
| 4868 | else |
| 4869 | ac_cv_header_stdc=no |
| 4870 | fi |
| 4871 | rm -f conftest* |
| 4872 | |
| 4873 | fi |
| 4874 | |
| 4875 | if test $ac_cv_header_stdc = yes; then |
| 4876 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4877 | if test "$cross_compiling" = yes; then : |
| 4878 | : |
| 4879 | else |
| 4880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4881 | /* end confdefs.h. */ |
| 4882 | #include <ctype.h> |
| 4883 | #include <stdlib.h> |
| 4884 | #if ((' ' & 0x0FF) == 0x020) |
| 4885 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4886 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4887 | #else |
| 4888 | # define ISLOWER(c) \ |
| 4889 | (('a' <= (c) && (c) <= 'i') \ |
| 4890 | || ('j' <= (c) && (c) <= 'r') \ |
| 4891 | || ('s' <= (c) && (c) <= 'z')) |
| 4892 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4893 | #endif |
| 4894 | |
| 4895 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4896 | int |
| 4897 | main () |
| 4898 | { |
| 4899 | int i; |
| 4900 | for (i = 0; i < 256; i++) |
| 4901 | if (XOR (islower (i), ISLOWER (i)) |
| 4902 | || toupper (i) != TOUPPER (i)) |
| 4903 | return 2; |
| 4904 | return 0; |
| 4905 | } |
| 4906 | _ACEOF |
| 4907 | if ac_fn_c_try_run "$LINENO"; then : |
| 4908 | |
| 4909 | else |
| 4910 | ac_cv_header_stdc=no |
| 4911 | fi |
| 4912 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4913 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4914 | fi |
| 4915 | |
| 4916 | fi |
| 4917 | fi |
| 4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4919 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4920 | if test $ac_cv_header_stdc = yes; then |
| 4921 | |
| 4922 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4923 | |
| 4924 | fi |
| 4925 | |
| 4926 | for ac_header in stdlib.h |
| 4927 | do : |
| 4928 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 4929 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
| 4930 | cat >>confdefs.h <<_ACEOF |
| 4931 | #define HAVE_STDLIB_H 1 |
| 4932 | _ACEOF |
| 4933 | |
| 4934 | fi |
| 4935 | |
| 4936 | done |
| 4937 | |
| 4938 | for ac_header in unistd.h |
| 4939 | do : |
| 4940 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 4941 | if test "x$ac_cv_header_unistd_h" = xyes; then : |
| 4942 | cat >>confdefs.h <<_ACEOF |
| 4943 | #define HAVE_UNISTD_H 1 |
| 4944 | _ACEOF |
| 4945 | |
| 4946 | fi |
| 4947 | |
| 4948 | done |
| 4949 | |
| 4950 | for ac_header in byteswap.h |
| 4951 | do : |
| 4952 | ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" |
| 4953 | if test "x$ac_cv_header_byteswap_h" = xyes; then : |
| 4954 | cat >>confdefs.h <<_ACEOF |
| 4955 | #define HAVE_BYTESWAP_H 1 |
| 4956 | _ACEOF |
| 4957 | |
| 4958 | fi |
| 4959 | |
| 4960 | done |
| 4961 | |
| 4962 | for ac_header in stdint.h |
| 4963 | do : |
| 4964 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 4965 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 4966 | cat >>confdefs.h <<_ACEOF |
| 4967 | #define HAVE_STDINT_H 1 |
| 4968 | _ACEOF |
| 4969 | |
| 4970 | fi |
| 4971 | |
| 4972 | done |
| 4973 | |
| 4974 | for ac_header in sys/uio.h |
| 4975 | do : |
| 4976 | ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
| 4977 | if test "x$ac_cv_header_sys_uio_h" = xyes; then : |
| 4978 | cat >>confdefs.h <<_ACEOF |
| 4979 | #define HAVE_SYS_UIO_H 1 |
| 4980 | _ACEOF |
| 4981 | |
| 4982 | fi |
| 4983 | |
| 4984 | done |
| 4985 | |
| 4986 | for ac_header in inttypes.h |
| 4987 | do : |
| 4988 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 4989 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
| 4990 | cat >>confdefs.h <<_ACEOF |
| 4991 | #define HAVE_INTTYPES_H 1 |
| 4992 | _ACEOF |
| 4993 | |
| 4994 | fi |
| 4995 | |
| 4996 | done |
| 4997 | |
| 4998 | for ac_header in sys/types.h |
| 4999 | do : |
| 5000 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 5001 | if test "x$ac_cv_header_sys_types_h" = xyes; then : |
| 5002 | cat >>confdefs.h <<_ACEOF |
| 5003 | #define HAVE_SYS_TYPES_H 1 |
| 5004 | _ACEOF |
| 5005 | |
| 5006 | fi |
| 5007 | |
| 5008 | done |
| 5009 | |
| 5010 | for ac_header in machine/types.h |
| 5011 | do : |
| 5012 | ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default" |
| 5013 | if test "x$ac_cv_header_machine_types_h" = xyes; then : |
| 5014 | cat >>confdefs.h <<_ACEOF |
| 5015 | #define HAVE_MACHINE_TYPES_H 1 |
| 5016 | _ACEOF |
| 5017 | |
| 5018 | fi |
| 5019 | |
| 5020 | done |
| 5021 | |
| 5022 | for ac_header in sys/int_types.h |
| 5023 | do : |
| 5024 | ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default" |
| 5025 | if test "x$ac_cv_header_sys_int_types_h" = xyes; then : |
| 5026 | cat >>confdefs.h <<_ACEOF |
| 5027 | #define HAVE_SYS_INT_TYPES_H 1 |
| 5028 | _ACEOF |
| 5029 | |
| 5030 | fi |
| 5031 | |
| 5032 | done |
| 5033 | |
| 5034 | |
| 5035 | for ac_header in sys/socket.h netinet/in.h arpa/inet.h |
| 5036 | do : |
| 5037 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5038 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 5039 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 5040 | cat >>confdefs.h <<_ACEOF |
| 5041 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5042 | _ACEOF |
| 5043 | |
| 5044 | fi |
| 5045 | |
| 5046 | done |
| 5047 | |
| 5048 | for ac_header in windows.h |
| 5049 | do : |
| 5050 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
| 5051 | if test "x$ac_cv_header_windows_h" = xyes; then : |
| 5052 | cat >>confdefs.h <<_ACEOF |
| 5053 | #define HAVE_WINDOWS_H 1 |
| 5054 | _ACEOF |
| 5055 | for ac_header in winsock2.h |
| 5056 | do : |
| 5057 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 5058 | if test "x$ac_cv_header_winsock2_h" = xyes; then : |
| 5059 | cat >>confdefs.h <<_ACEOF |
| 5060 | #define HAVE_WINSOCK2_H 1 |
| 5061 | _ACEOF |
| 5062 | |
| 5063 | fi |
| 5064 | |
| 5065 | done |
| 5066 | |
| 5067 | fi |
| 5068 | |
| 5069 | done |
| 5070 | |
| 5071 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5072 | ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" |
| 5073 | if test "x$ac_cv_type_int8_t" = xyes; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5074 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5075 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 5076 | #define HAVE_INT8_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5077 | _ACEOF |
| 5078 | |
| 5079 | |
| 5080 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5081 | ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" |
| 5082 | if test "x$ac_cv_type_uint8_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5083 | |
| 5084 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 5085 | #define HAVE_UINT8_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5086 | _ACEOF |
| 5087 | |
| 5088 | |
| 5089 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5090 | ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" |
| 5091 | if test "x$ac_cv_type_int16_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5092 | |
| 5093 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 5094 | #define HAVE_INT16_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5095 | _ACEOF |
| 5096 | |
| 5097 | |
| 5098 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5099 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
| 5100 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5101 | |
| 5102 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 5103 | #define HAVE_UINT16_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5104 | _ACEOF |
| 5105 | |
| 5106 | |
| 5107 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5108 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
| 5109 | if test "x$ac_cv_type_int32_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5110 | |
| 5111 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 5112 | #define HAVE_INT32_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5113 | _ACEOF |
| 5114 | |
| 5115 | |
| 5116 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5117 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
| 5118 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5119 | |
| 5120 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 5121 | #define HAVE_UINT32_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5122 | _ACEOF |
| 5123 | |
| 5124 | |
| 5125 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5126 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 5127 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5128 | |
| 5129 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 5130 | #define HAVE_UINT64_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5131 | _ACEOF |
| 5132 | |
| 5133 | |
| 5134 | fi |
| 5135 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5136 | # The cast to long int works around a bug in the HP C Compiler |
| 5137 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5138 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5139 | # This bug is HP SR number 8606223364. |
| 5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 |
| 5141 | $as_echo_n "checking size of unsigned long... " >&6; } |
| 5142 | if ${ac_cv_sizeof_unsigned_long+:} false; then : |
| 5143 | $as_echo_n "(cached) " >&6 |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5144 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5145 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5146 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5147 | else |
| 5148 | if test "$ac_cv_type_unsigned_long" = yes; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5149 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5150 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5151 | as_fn_error 77 "cannot compute sizeof (unsigned long) |
| 5152 | See \`config.log' for more details" "$LINENO" 5; } |
| 5153 | else |
| 5154 | ac_cv_sizeof_unsigned_long=0 |
| 5155 | fi |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5156 | fi |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5157 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5158 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 |
| 5160 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5161 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5162 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5163 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5164 | cat >>confdefs.h <<_ACEOF |
| 5165 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
| 5166 | _ACEOF |
| 5167 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5168 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5169 | # The cast to long int works around a bug in the HP C Compiler |
| 5170 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5171 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5172 | # This bug is HP SR number 8606223364. |
| 5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 |
| 5174 | $as_echo_n "checking size of unsigned long long... " >&6; } |
| 5175 | if ${ac_cv_sizeof_unsigned_long_long+:} false; then : |
| 5176 | $as_echo_n "(cached) " >&6 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5177 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5178 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5179 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5180 | else |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5181 | if test "$ac_cv_type_unsigned_long_long" = yes; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5182 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5183 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5184 | as_fn_error 77 "cannot compute sizeof (unsigned long long) |
| 5185 | See \`config.log' for more details" "$LINENO" 5; } |
| 5186 | else |
| 5187 | ac_cv_sizeof_unsigned_long_long=0 |
| 5188 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5189 | fi |
| 5190 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5191 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 |
| 5193 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5194 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5195 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5196 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5197 | cat >>confdefs.h <<_ACEOF |
| 5198 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5199 | _ACEOF |
| 5200 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5201 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5202 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 5204 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 5205 | if ${ac_cv_c_const+:} false; then : |
| 5206 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5207 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5209 | /* end confdefs.h. */ |
| 5210 | |
| 5211 | int |
| 5212 | main () |
| 5213 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5214 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5215 | #ifndef __cplusplus |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5216 | /* Ultrix mips cc rejects this sort of thing. */ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5217 | typedef int charset[2]; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5218 | const charset cs = { 0, 0 }; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5219 | /* SunOS 4.1.1 cc rejects this. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5220 | char const *const *pcpcc; |
| 5221 | char **ppc; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5222 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5223 | struct point {int x, y;}; |
| 5224 | static struct point const zero = {0,0}; |
| 5225 | /* AIX XL C 1.02.0.0 rejects this. |
| 5226 | It does not let you subtract one const X* pointer from another in |
| 5227 | an arm of an if-expression whose if-part is not a constant |
| 5228 | expression */ |
| 5229 | const char *g = "string"; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5230 | pcpcc = &g + (g ? g-g : 0); |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5231 | /* HPUX 7.0 cc rejects these. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5232 | ++pcpcc; |
| 5233 | ppc = (char**) pcpcc; |
| 5234 | pcpcc = (char const *const *) ppc; |
| 5235 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 5236 | char tx; |
| 5237 | char *t = &tx; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5238 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5239 | |
| 5240 | *t++ = 0; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5241 | if (s) return 0; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5242 | } |
| 5243 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5244 | int x[] = {25, 17}; |
| 5245 | const int *foo = &x[0]; |
| 5246 | ++foo; |
| 5247 | } |
| 5248 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5249 | typedef const int *iptr; |
| 5250 | iptr p = 0; |
| 5251 | ++p; |
| 5252 | } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5253 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5254 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5255 | struct s { int j; const int *ap[3]; } bx; |
| 5256 | struct s *b = &bx; b->j = 5; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5257 | } |
| 5258 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5259 | const int foo = 10; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5260 | if (!foo) return 0; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5261 | } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5262 | return !cs[0] && !zero.x; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5263 | #endif |
| 5264 | |
| 5265 | ; |
| 5266 | return 0; |
| 5267 | } |
| 5268 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5269 | if ac_fn_c_try_compile "$LINENO"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5270 | ac_cv_c_const=yes |
| 5271 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5272 | ac_cv_c_const=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5273 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5275 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 5277 | $as_echo "$ac_cv_c_const" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5278 | if test $ac_cv_c_const = no; then |
| 5279 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5280 | $as_echo "#define const /**/" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5281 | |
| 5282 | fi |
| 5283 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 5285 | $as_echo_n "checking for inline... " >&6; } |
| 5286 | if ${ac_cv_c_inline+:} false; then : |
| 5287 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5288 | else |
| 5289 | ac_cv_c_inline=no |
| 5290 | for ac_kw in inline __inline__ __inline; do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5292 | /* end confdefs.h. */ |
| 5293 | #ifndef __cplusplus |
| 5294 | typedef int foo_t; |
| 5295 | static $ac_kw foo_t static_foo () {return 0; } |
| 5296 | $ac_kw foo_t foo () {return 0; } |
| 5297 | #endif |
| 5298 | |
| 5299 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5300 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5301 | ac_cv_c_inline=$ac_kw |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5302 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5304 | test "$ac_cv_c_inline" != no && break |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5305 | done |
| 5306 | |
| 5307 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 5309 | $as_echo "$ac_cv_c_inline" >&6; } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5310 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5311 | case $ac_cv_c_inline in |
| 5312 | inline | yes) ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5313 | *) |
| 5314 | case $ac_cv_c_inline in |
| 5315 | no) ac_val=;; |
| 5316 | *) ac_val=$ac_cv_c_inline;; |
| 5317 | esac |
| 5318 | cat >>confdefs.h <<_ACEOF |
| 5319 | #ifndef __cplusplus |
| 5320 | #define inline $ac_val |
| 5321 | #endif |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5322 | _ACEOF |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5323 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5324 | esac |
| 5325 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5326 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 5327 | if test "x$ac_cv_type_size_t" = xyes; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5328 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5329 | else |
| 5330 | |
| 5331 | cat >>confdefs.h <<_ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5332 | #define size_t unsigned int |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5333 | _ACEOF |
| 5334 | |
| 5335 | fi |
| 5336 | |
| 5337 | |
Jonathan Lennox | 3f7fc22 | 2010-05-17 19:32:02 +0000 | [diff] [blame] | 5338 | for ac_func in socket inet_aton usleep sigaction |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5339 | do : |
| 5340 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5341 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 5342 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5343 | cat >>confdefs.h <<_ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5344 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5345 | _ACEOF |
| 5346 | |
| 5347 | fi |
| 5348 | done |
| 5349 | |
| 5350 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5351 | if test "x$ac_cv_func_socket" = "xno"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 5353 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
| 5354 | if ${ac_cv_lib_socket_socket+:} false; then : |
| 5355 | $as_echo_n "(cached) " >&6 |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5356 | else |
| 5357 | ac_check_lib_save_LIBS=$LIBS |
| 5358 | LIBS="-lsocket $LIBS" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5360 | /* end confdefs.h. */ |
| 5361 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5362 | /* Override any GCC internal prototype to avoid an error. |
| 5363 | Use char because int might match the return type of a GCC |
| 5364 | builtin and then its argument prototype would still apply. */ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5365 | #ifdef __cplusplus |
| 5366 | extern "C" |
| 5367 | #endif |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5368 | char socket (); |
| 5369 | int |
| 5370 | main () |
| 5371 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5372 | return socket (); |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5373 | ; |
| 5374 | return 0; |
| 5375 | } |
| 5376 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5377 | if ac_fn_c_try_link "$LINENO"; then : |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5378 | ac_cv_lib_socket_socket=yes |
| 5379 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5380 | ac_cv_lib_socket_socket=no |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5381 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5382 | rm -f core conftest.err conftest.$ac_objext \ |
| 5383 | conftest$ac_exeext conftest.$ac_ext |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5384 | LIBS=$ac_check_lib_save_LIBS |
| 5385 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 5387 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
| 5388 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5389 | cat >>confdefs.h <<_ACEOF |
| 5390 | #define HAVE_LIBSOCKET 1 |
| 5391 | _ACEOF |
| 5392 | |
| 5393 | LIBS="-lsocket $LIBS" |
| 5394 | |
| 5395 | fi |
| 5396 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5 |
| 5398 | $as_echo_n "checking for socket in -lwsock32... " >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5399 | SAVELIBS="$LIBS" |
| 5400 | LIBS="$LIBS -lwsock32" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5402 | /* end confdefs.h. */ |
| 5403 | |
| 5404 | #include <winsock2.h> |
| 5405 | |
| 5406 | int |
| 5407 | main () |
| 5408 | { |
| 5409 | |
| 5410 | socket(0, 0, 0); |
| 5411 | |
| 5412 | ; |
| 5413 | return 0; |
| 5414 | } |
| 5415 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5416 | if ac_fn_c_try_link "$LINENO"; then : |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5417 | ac_cv_func_socket=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5419 | $as_echo "yes" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5420 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5421 | LIBS="$SAVELIBS" |
| 5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5423 | $as_echo "no" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5424 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5425 | rm -f core conftest.err conftest.$ac_objext \ |
| 5426 | conftest$ac_exeext conftest.$ac_ext |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 5427 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5428 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5 |
| 5430 | $as_echo_n "checking whether to compile in debugging... " >&6; } |
| 5431 | # Check whether --enable-debug was given. |
| 5432 | if test "${enable_debug+set}" = set; then : |
| 5433 | enableval=$enable_debug; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5434 | else |
| 5435 | enable_debug=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5436 | fi |
| 5437 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5438 | if test "$enable_debug" = "yes"; then |
| 5439 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5440 | $as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5441 | |
| 5442 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 |
| 5444 | $as_echo "$enable_debug" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5445 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5 |
| 5447 | $as_echo_n "checking whether to use ISMAcryp code... " >&6; } |
| 5448 | # Check whether --enable-generic-aesicm was given. |
| 5449 | if test "${enable_generic_aesicm+set}" = set; then : |
| 5450 | enableval=$enable_generic_aesicm; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5451 | else |
| 5452 | enable_generic_aesicm=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5453 | fi |
| 5454 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5455 | if test "$enable_generic_aesicm" = "yes"; then |
| 5456 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5457 | $as_echo "#define GENERIC_AESICM 1" >>confdefs.h |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 5458 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 5459 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5 |
| 5461 | $as_echo "$enable_generic_aesicm" >&6; } |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 5462 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5 |
| 5464 | $as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; } |
| 5465 | # Check whether --enable-openssl was given. |
| 5466 | if test "${enable_openssl+set}" = set; then : |
| 5467 | enableval=$enable_openssl; |
| 5468 | else |
| 5469 | enable_openssl=no |
| 5470 | fi |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 5471 | |
jfigus | 2b48665 | 2014-07-24 15:01:41 -0400 | [diff] [blame] | 5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5 |
| 5473 | $as_echo "$enable_openssl" >&6; } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5474 | if test "$enable_openssl" = "yes"; then |
jfigus | 038d2cf | 2015-05-11 14:10:11 -0400 | [diff] [blame] | 5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5 |
| 5476 | $as_echo_n "checking for user specified OpenSSL directory... " >&6; } |
| 5477 | |
| 5478 | # Check whether --with-openssl-dir was given. |
| 5479 | if test "${with_openssl_dir+set}" = set; then : |
| 5480 | withval=$with_openssl_dir; openssl_dir="$withval" |
| 5481 | else |
| 5482 | openssl_dir="" |
| 5483 | fi |
| 5484 | |
| 5485 | |
| 5486 | LDFLAGS="$LDFLAGS -L$openssl_dir/lib $(pkg-config --libs openssl)"; |
| 5487 | CFLAGS="$CFLAGS -I$openssl_dir/include $(pkg-config --cflags openssl)"; |
Cullen Jennings | e1de50f | 2013-05-22 12:27:28 -0600 | [diff] [blame] | 5488 | |
jfigus | b5fad5f | 2015-02-26 12:25:08 -0500 | [diff] [blame] | 5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 5490 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 5491 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 5492 | $as_echo_n "(cached) " >&6 |
| 5493 | else |
| 5494 | ac_check_lib_save_LIBS=$LIBS |
| 5495 | LIBS="-ldl $LIBS" |
| 5496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5497 | /* end confdefs.h. */ |
| 5498 | |
| 5499 | /* Override any GCC internal prototype to avoid an error. |
| 5500 | Use char because int might match the return type of a GCC |
| 5501 | builtin and then its argument prototype would still apply. */ |
| 5502 | #ifdef __cplusplus |
| 5503 | extern "C" |
| 5504 | #endif |
| 5505 | char dlopen (); |
| 5506 | int |
| 5507 | main () |
| 5508 | { |
| 5509 | return dlopen (); |
| 5510 | ; |
| 5511 | return 0; |
| 5512 | } |
| 5513 | _ACEOF |
| 5514 | if ac_fn_c_try_link "$LINENO"; then : |
| 5515 | ac_cv_lib_dl_dlopen=yes |
| 5516 | else |
| 5517 | ac_cv_lib_dl_dlopen=no |
| 5518 | fi |
| 5519 | rm -f core conftest.err conftest.$ac_objext \ |
| 5520 | conftest$ac_exeext conftest.$ac_ext |
| 5521 | LIBS=$ac_check_lib_save_LIBS |
| 5522 | fi |
| 5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 5524 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 5525 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 5526 | cat >>confdefs.h <<_ACEOF |
| 5527 | #define HAVE_LIBDL 1 |
| 5528 | _ACEOF |
| 5529 | |
| 5530 | LIBS="-ldl $LIBS" |
| 5531 | |
| 5532 | else |
jfigus | 13fd694 | 2015-03-02 09:09:13 -0500 | [diff] [blame] | 5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5 |
| 5534 | $as_echo "$as_me: WARNING: can't find libdl" >&2;} |
jfigus | b5fad5f | 2015-02-26 12:25:08 -0500 | [diff] [blame] | 5535 | fi |
| 5536 | |
| 5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
| 5538 | $as_echo_n "checking for inflate in -lz... " >&6; } |
| 5539 | if ${ac_cv_lib_z_inflate+:} false; then : |
| 5540 | $as_echo_n "(cached) " >&6 |
| 5541 | else |
| 5542 | ac_check_lib_save_LIBS=$LIBS |
| 5543 | LIBS="-lz $LIBS" |
| 5544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5545 | /* end confdefs.h. */ |
| 5546 | |
| 5547 | /* Override any GCC internal prototype to avoid an error. |
| 5548 | Use char because int might match the return type of a GCC |
| 5549 | builtin and then its argument prototype would still apply. */ |
| 5550 | #ifdef __cplusplus |
| 5551 | extern "C" |
| 5552 | #endif |
| 5553 | char inflate (); |
| 5554 | int |
| 5555 | main () |
| 5556 | { |
| 5557 | return inflate (); |
| 5558 | ; |
| 5559 | return 0; |
| 5560 | } |
| 5561 | _ACEOF |
| 5562 | if ac_fn_c_try_link "$LINENO"; then : |
| 5563 | ac_cv_lib_z_inflate=yes |
| 5564 | else |
| 5565 | ac_cv_lib_z_inflate=no |
| 5566 | fi |
| 5567 | rm -f core conftest.err conftest.$ac_objext \ |
| 5568 | conftest$ac_exeext conftest.$ac_ext |
| 5569 | LIBS=$ac_check_lib_save_LIBS |
| 5570 | fi |
| 5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 |
| 5572 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
| 5573 | if test "x$ac_cv_lib_z_inflate" = xyes; then : |
| 5574 | cat >>confdefs.h <<_ACEOF |
| 5575 | #define HAVE_LIBZ 1 |
| 5576 | _ACEOF |
| 5577 | |
| 5578 | LIBS="-lz $LIBS" |
| 5579 | |
| 5580 | else |
jfigus | 13fd694 | 2015-03-02 09:09:13 -0500 | [diff] [blame] | 5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5 |
| 5582 | $as_echo "$as_me: WARNING: can't find libz" >&2;} |
jfigus | b5fad5f | 2015-02-26 12:25:08 -0500 | [diff] [blame] | 5583 | fi |
| 5584 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5 |
| 5586 | $as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; } |
| 5587 | if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then : |
| 5588 | $as_echo_n "(cached) " >&6 |
| 5589 | else |
| 5590 | ac_check_lib_save_LIBS=$LIBS |
| 5591 | LIBS="-lcrypto $LIBS" |
| 5592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5593 | /* end confdefs.h. */ |
| 5594 | |
| 5595 | /* Override any GCC internal prototype to avoid an error. |
| 5596 | Use char because int might match the return type of a GCC |
| 5597 | builtin and then its argument prototype would still apply. */ |
| 5598 | #ifdef __cplusplus |
| 5599 | extern "C" |
| 5600 | #endif |
| 5601 | char EVP_EncryptInit (); |
| 5602 | int |
| 5603 | main () |
| 5604 | { |
| 5605 | return EVP_EncryptInit (); |
| 5606 | ; |
| 5607 | return 0; |
| 5608 | } |
| 5609 | _ACEOF |
| 5610 | if ac_fn_c_try_link "$LINENO"; then : |
| 5611 | ac_cv_lib_crypto_EVP_EncryptInit=yes |
| 5612 | else |
| 5613 | ac_cv_lib_crypto_EVP_EncryptInit=no |
| 5614 | fi |
| 5615 | rm -f core conftest.err conftest.$ac_objext \ |
| 5616 | conftest$ac_exeext conftest.$ac_ext |
| 5617 | LIBS=$ac_check_lib_save_LIBS |
| 5618 | fi |
| 5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5 |
| 5620 | $as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; } |
| 5621 | if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then : |
| 5622 | cat >>confdefs.h <<_ACEOF |
| 5623 | #define HAVE_LIBCRYPTO 1 |
| 5624 | _ACEOF |
| 5625 | |
| 5626 | LIBS="-lcrypto $LIBS" |
| 5627 | |
| 5628 | else |
| 5629 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5630 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
jfigus | 5b22e37 | 2013-05-09 09:23:26 -0400 | [diff] [blame] | 5631 | as_fn_error $? "can't find openssl >1.0.1 crypto lib |
| 5632 | See \`config.log' for more details" "$LINENO" 5; } |
| 5633 | fi |
| 5634 | |
| 5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5 |
| 5636 | $as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; } |
| 5637 | if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then : |
| 5638 | $as_echo_n "(cached) " >&6 |
| 5639 | else |
| 5640 | ac_check_lib_save_LIBS=$LIBS |
| 5641 | LIBS="-lcrypto $LIBS" |
| 5642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5643 | /* end confdefs.h. */ |
| 5644 | |
| 5645 | /* Override any GCC internal prototype to avoid an error. |
| 5646 | Use char because int might match the return type of a GCC |
| 5647 | builtin and then its argument prototype would still apply. */ |
| 5648 | #ifdef __cplusplus |
| 5649 | extern "C" |
| 5650 | #endif |
| 5651 | char EVP_aes_128_ctr (); |
| 5652 | int |
| 5653 | main () |
| 5654 | { |
| 5655 | return EVP_aes_128_ctr (); |
| 5656 | ; |
| 5657 | return 0; |
| 5658 | } |
| 5659 | _ACEOF |
| 5660 | if ac_fn_c_try_link "$LINENO"; then : |
| 5661 | ac_cv_lib_crypto_EVP_aes_128_ctr=yes |
| 5662 | else |
| 5663 | ac_cv_lib_crypto_EVP_aes_128_ctr=no |
| 5664 | fi |
| 5665 | rm -f core conftest.err conftest.$ac_objext \ |
| 5666 | conftest$ac_exeext conftest.$ac_ext |
| 5667 | LIBS=$ac_check_lib_save_LIBS |
| 5668 | fi |
| 5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5 |
| 5670 | $as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; } |
| 5671 | if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then : |
| 5672 | cat >>confdefs.h <<_ACEOF |
| 5673 | #define HAVE_LIBCRYPTO 1 |
| 5674 | _ACEOF |
| 5675 | |
| 5676 | LIBS="-lcrypto $LIBS" |
| 5677 | |
| 5678 | else |
| 5679 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5680 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5681 | as_fn_error $? "can't find openssl >1.0.1 crypto lib |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5682 | See \`config.log' for more details" "$LINENO" 5; } |
| 5683 | fi |
| 5684 | |
jfigus | 7882dd9 | 2013-08-02 16:08:23 -0400 | [diff] [blame] | 5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5 |
| 5686 | $as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; } |
| 5687 | if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then : |
| 5688 | $as_echo_n "(cached) " >&6 |
| 5689 | else |
| 5690 | ac_check_lib_save_LIBS=$LIBS |
| 5691 | LIBS="-lcrypto $LIBS" |
| 5692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5693 | /* end confdefs.h. */ |
| 5694 | |
| 5695 | /* Override any GCC internal prototype to avoid an error. |
| 5696 | Use char because int might match the return type of a GCC |
| 5697 | builtin and then its argument prototype would still apply. */ |
| 5698 | #ifdef __cplusplus |
| 5699 | extern "C" |
| 5700 | #endif |
| 5701 | char EVP_aes_128_gcm (); |
| 5702 | int |
| 5703 | main () |
| 5704 | { |
| 5705 | return EVP_aes_128_gcm (); |
| 5706 | ; |
| 5707 | return 0; |
| 5708 | } |
| 5709 | _ACEOF |
| 5710 | if ac_fn_c_try_link "$LINENO"; then : |
| 5711 | ac_cv_lib_crypto_EVP_aes_128_gcm=yes |
| 5712 | else |
| 5713 | ac_cv_lib_crypto_EVP_aes_128_gcm=no |
| 5714 | fi |
| 5715 | rm -f core conftest.err conftest.$ac_objext \ |
| 5716 | conftest$ac_exeext conftest.$ac_ext |
| 5717 | LIBS=$ac_check_lib_save_LIBS |
| 5718 | fi |
| 5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5 |
| 5720 | $as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; } |
| 5721 | if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then : |
| 5722 | cat >>confdefs.h <<_ACEOF |
| 5723 | #define HAVE_LIBCRYPTO 1 |
| 5724 | _ACEOF |
| 5725 | |
| 5726 | LIBS="-lcrypto $LIBS" |
| 5727 | |
| 5728 | else |
| 5729 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5730 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5731 | as_fn_error $? "can't find openssl >1.0.1 crypto lib |
| 5732 | See \`config.log' for more details" "$LINENO" 5; } |
| 5733 | fi |
| 5734 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5735 | |
| 5736 | $as_echo "#define OPENSSL 1" >>confdefs.h |
| 5737 | |
jfigus | 7882dd9 | 2013-08-02 16:08:23 -0400 | [diff] [blame] | 5738 | AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5739 | HMAC_OBJS=crypto/hash/hmac_ossl.o |
| 5740 | USE_OPENSSL=1 |
| 5741 | |
jfigus | 038d2cf | 2015-05-11 14:10:11 -0400 | [diff] [blame] | 5742 | |
| 5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5 |
| 5744 | $as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; } |
| 5745 | # Check whether --enable-openssl-kdf was given. |
| 5746 | if test "${enable_openssl_kdf+set}" = set; then : |
| 5747 | enableval=$enable_openssl_kdf; |
| 5748 | else |
| 5749 | enable_openssl_kdf=no |
| 5750 | fi |
| 5751 | |
| 5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5 |
| 5753 | $as_echo "$enable_openssl_kdf" >&6; } |
| 5754 | if test "$enable_openssl_kdf" = "yes"; then |
| 5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kdf_srtp in -lcrypto" >&5 |
| 5756 | $as_echo_n "checking for kdf_srtp in -lcrypto... " >&6; } |
| 5757 | if ${ac_cv_lib_crypto_kdf_srtp+:} false; then : |
| 5758 | $as_echo_n "(cached) " >&6 |
| 5759 | else |
| 5760 | ac_check_lib_save_LIBS=$LIBS |
| 5761 | LIBS="-lcrypto $LIBS" |
| 5762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5763 | /* end confdefs.h. */ |
| 5764 | |
| 5765 | /* Override any GCC internal prototype to avoid an error. |
| 5766 | Use char because int might match the return type of a GCC |
| 5767 | builtin and then its argument prototype would still apply. */ |
| 5768 | #ifdef __cplusplus |
| 5769 | extern "C" |
| 5770 | #endif |
| 5771 | char kdf_srtp (); |
| 5772 | int |
| 5773 | main () |
| 5774 | { |
| 5775 | return kdf_srtp (); |
| 5776 | ; |
| 5777 | return 0; |
| 5778 | } |
| 5779 | _ACEOF |
| 5780 | if ac_fn_c_try_link "$LINENO"; then : |
| 5781 | ac_cv_lib_crypto_kdf_srtp=yes |
| 5782 | else |
| 5783 | ac_cv_lib_crypto_kdf_srtp=no |
| 5784 | fi |
| 5785 | rm -f core conftest.err conftest.$ac_objext \ |
| 5786 | conftest$ac_exeext conftest.$ac_ext |
| 5787 | LIBS=$ac_check_lib_save_LIBS |
| 5788 | fi |
| 5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_kdf_srtp" >&5 |
| 5790 | $as_echo "$ac_cv_lib_crypto_kdf_srtp" >&6; } |
| 5791 | if test "x$ac_cv_lib_crypto_kdf_srtp" = xyes; then : |
| 5792 | cat >>confdefs.h <<_ACEOF |
| 5793 | #define HAVE_LIBCRYPTO 1 |
| 5794 | _ACEOF |
| 5795 | |
| 5796 | LIBS="-lcrypto $LIBS" |
| 5797 | |
| 5798 | else |
| 5799 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5800 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5801 | as_fn_error $? "can't find openssl KDF lib |
| 5802 | See \`config.log' for more details" "$LINENO" 5; } |
| 5803 | fi |
| 5804 | |
| 5805 | |
| 5806 | $as_echo "#define OPENSSL_KDF 1" >>confdefs.h |
| 5807 | |
| 5808 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5809 | else |
jfigus | a3127b8 | 2014-11-19 14:46:52 -0500 | [diff] [blame] | 5810 | AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5811 | HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o" |
| 5812 | fi |
| 5813 | |
| 5814 | |
| 5815 | |
Bernardo Torres | 79e38ae | 2014-10-10 05:29:36 -0300 | [diff] [blame] | 5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5 |
| 5817 | $as_echo_n "checking for pcap_create in -lpcap... " >&6; } |
| 5818 | if ${ac_cv_lib_pcap_pcap_create+:} false; then : |
| 5819 | $as_echo_n "(cached) " >&6 |
| 5820 | else |
| 5821 | ac_check_lib_save_LIBS=$LIBS |
| 5822 | LIBS="-lpcap $LIBS" |
| 5823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5824 | /* end confdefs.h. */ |
| 5825 | |
| 5826 | /* Override any GCC internal prototype to avoid an error. |
| 5827 | Use char because int might match the return type of a GCC |
| 5828 | builtin and then its argument prototype would still apply. */ |
| 5829 | #ifdef __cplusplus |
| 5830 | extern "C" |
| 5831 | #endif |
| 5832 | char pcap_create (); |
| 5833 | int |
| 5834 | main () |
| 5835 | { |
| 5836 | return pcap_create (); |
| 5837 | ; |
| 5838 | return 0; |
| 5839 | } |
| 5840 | _ACEOF |
| 5841 | if ac_fn_c_try_link "$LINENO"; then : |
| 5842 | ac_cv_lib_pcap_pcap_create=yes |
| 5843 | else |
| 5844 | ac_cv_lib_pcap_pcap_create=no |
| 5845 | fi |
| 5846 | rm -f core conftest.err conftest.$ac_objext \ |
| 5847 | conftest$ac_exeext conftest.$ac_ext |
| 5848 | LIBS=$ac_check_lib_save_LIBS |
| 5849 | fi |
| 5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5 |
| 5851 | $as_echo "$ac_cv_lib_pcap_pcap_create" >&6; } |
| 5852 | if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then : |
Bernardo Torres | b3c5142 | 2014-10-14 12:40:09 -0300 | [diff] [blame] | 5853 | PCAP=1 |
| 5854 | LIBS="-lpcap $LIBS" |
| 5855 | HAVE_PCAP=1 |
Bernardo Torres | 79e38ae | 2014-10-10 05:29:36 -0300 | [diff] [blame] | 5856 | |
Bernardo Torres | b3c5142 | 2014-10-14 12:40:09 -0300 | [diff] [blame] | 5857 | $as_echo "#define HAVE_PCAP 1" >>confdefs.h |
| 5858 | |
| 5859 | |
Bernardo Torres | 79e38ae | 2014-10-10 05:29:36 -0300 | [diff] [blame] | 5860 | |
| 5861 | fi |
| 5862 | |
Bernardo Torres | 79e38ae | 2014-10-10 05:29:36 -0300 | [diff] [blame] | 5863 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5 |
| 5865 | $as_echo_n "checking whether to use stdout for error reporting... " >&6; } |
| 5866 | # Check whether --enable-stdout was given. |
| 5867 | if test "${enable_stdout+set}" = set; then : |
| 5868 | enableval=$enable_stdout; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5869 | else |
jfigus | 97a80f4 | 2014-11-04 14:15:40 -0500 | [diff] [blame] | 5870 | enable_stdout=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5871 | fi |
| 5872 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5873 | if test "$enable_stdout" = "yes"; then |
| 5874 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5875 | $as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5876 | |
| 5877 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5 |
| 5879 | $as_echo "$enable_stdout" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5880 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5 |
| 5882 | $as_echo_n "checking whether to use /dev/console for error reporting... " >&6; } |
| 5883 | # Check whether --enable-console was given. |
| 5884 | if test "${enable_console+set}" = set; then : |
| 5885 | enableval=$enable_console; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5886 | else |
| 5887 | enable_console=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5888 | fi |
| 5889 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5890 | if test "$enable_console" = "yes"; then |
| 5891 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5892 | $as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5893 | |
| 5894 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5895 | $as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5896 | |
| 5897 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5 |
| 5899 | $as_echo "$enable_console" >&6; } |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5900 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5901 | ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5902 | |
| 5903 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 5904 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5905 | set dummy pkg-config; ac_word=$2 |
| 5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5907 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5908 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : |
| 5909 | $as_echo_n "(cached) " >&6 |
| 5910 | else |
| 5911 | if test -n "$PKG_CONFIG"; then |
| 5912 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 5913 | else |
| 5914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5915 | for as_dir in $PATH |
| 5916 | do |
| 5917 | IFS=$as_save_IFS |
| 5918 | test -z "$as_dir" && as_dir=. |
| 5919 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5920 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5921 | ac_cv_prog_PKG_CONFIG="yes" |
| 5922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5923 | break 2 |
| 5924 | fi |
| 5925 | done |
| 5926 | done |
| 5927 | IFS=$as_save_IFS |
| 5928 | |
| 5929 | fi |
| 5930 | fi |
| 5931 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 5932 | if test -n "$PKG_CONFIG"; then |
| 5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5934 | $as_echo "$PKG_CONFIG" >&6; } |
| 5935 | else |
| 5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5937 | $as_echo "no" >&6; } |
| 5938 | fi |
| 5939 | |
| 5940 | |
| 5941 | if test "x$PKG_CONFIG" != "x"; then |
| 5942 | HAVE_PKG_CONFIG=1 |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 5943 | ac_config_files="$ac_config_files libsrtp2.pc" |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 5944 | |
| 5945 | else |
| 5946 | HAVE_PKG_CONFIG=0 |
| 5947 | fi |
| 5948 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5949 | ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile" |
| 5950 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5951 | cat >confcache <<\_ACEOF |
| 5952 | # This file is a shell script that caches the results of configure |
| 5953 | # tests run on this system so they can be shared between configure |
| 5954 | # scripts and configure runs, see configure's option --config-cache. |
| 5955 | # It is not useful on other systems. If it contains results you don't |
| 5956 | # want to keep, you may remove or edit it. |
| 5957 | # |
| 5958 | # config.status only pays attention to the cache file if you give it |
| 5959 | # the --recheck option to rerun configure. |
| 5960 | # |
| 5961 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 5962 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 5963 | # following values. |
| 5964 | |
| 5965 | _ACEOF |
| 5966 | |
| 5967 | # The following way of writing the cache mishandles newlines in values, |
| 5968 | # but we know of no workaround that is simple, portable, and efficient. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5969 | # So, we kill variables containing newlines. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5970 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5971 | # and sets the high bit in the cache file unless we assign to the vars. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5972 | ( |
| 5973 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 5974 | eval ac_val=\$$ac_var |
| 5975 | case $ac_val in #( |
| 5976 | *${as_nl}*) |
| 5977 | case $ac_var in #( |
| 5978 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 5979 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 5980 | esac |
| 5981 | case $ac_var in #( |
| 5982 | _ | IFS | as_nl) ;; #( |
| 5983 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 5984 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 5985 | esac ;; |
| 5986 | esac |
| 5987 | done |
| 5988 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5989 | (set) 2>&1 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5990 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 5991 | *${as_nl}ac_space=\ *) |
| 5992 | # `set' does not quote correctly, so add quotes: double-quote |
| 5993 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5994 | sed -n \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5995 | "s/'/'\\\\''/g; |
| 5996 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5997 | ;; #( |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5998 | *) |
| 5999 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6000 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6001 | ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6002 | esac | |
| 6003 | sort |
| 6004 | ) | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6005 | sed ' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6006 | /^ac_cv_env_/b end |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6007 | t clear |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6008 | :clear |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6009 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 6010 | t end |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6011 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 6012 | :end' >>confcache |
| 6013 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 6014 | if test -w "$cache_file"; then |
| 6015 | if test "x$cache_file" != "x/dev/null"; then |
| 6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 6017 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 6018 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 6019 | cat confcache >"$cache_file" |
| 6020 | else |
| 6021 | case $cache_file in #( |
| 6022 | */* | ?:*) |
| 6023 | mv -f confcache "$cache_file"$$ && |
| 6024 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 6025 | *) |
| 6026 | mv -f confcache "$cache_file" ;; |
| 6027 | esac |
| 6028 | fi |
| 6029 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6030 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6031 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 6032 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6033 | fi |
| 6034 | fi |
| 6035 | rm -f confcache |
| 6036 | |
| 6037 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6038 | # Let make expand exec_prefix. |
| 6039 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6040 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6041 | DEFS=-DHAVE_CONFIG_H |
| 6042 | |
| 6043 | ac_libobjs= |
| 6044 | ac_ltlibobjs= |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6045 | U= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6046 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 6047 | # 1. Remove the extension, and $U if already installed. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6048 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 6049 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 6050 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 6051 | # will be set to the directory where LIBOBJS objects are built. |
| 6052 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 6053 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6054 | done |
| 6055 | LIBOBJS=$ac_libobjs |
| 6056 | |
| 6057 | LTLIBOBJS=$ac_ltlibobjs |
| 6058 | |
| 6059 | |
| 6060 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6061 | |
| 6062 | : "${CONFIG_STATUS=./config.status}" |
| 6063 | ac_write_fail=0 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6064 | ac_clean_files_save=$ac_clean_files |
| 6065 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6066 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 6067 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 6068 | as_write_fail=0 |
| 6069 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6070 | #! $SHELL |
| 6071 | # Generated by $as_me. |
| 6072 | # Run this file to recreate the current configuration. |
| 6073 | # Compiler output produced by configure, useful for debugging |
| 6074 | # configure, is in config.log if it exists. |
| 6075 | |
| 6076 | debug=false |
| 6077 | ac_cs_recheck=false |
| 6078 | ac_cs_silent=false |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6079 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6080 | SHELL=\${CONFIG_SHELL-$SHELL} |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6081 | export SHELL |
| 6082 | _ASEOF |
| 6083 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 6084 | ## -------------------- ## |
| 6085 | ## M4sh Initialization. ## |
| 6086 | ## -------------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6087 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6088 | # Be more Bourne compatible |
| 6089 | DUALCASE=1; export DUALCASE # for MKS sh |
| 6090 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6091 | emulate sh |
| 6092 | NULLCMD=: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6093 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6094 | # is contrary to our usage. Disable this feature. |
| 6095 | alias -g '${1+"$@"}'='"$@"' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6096 | setopt NO_GLOB_SUBST |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6097 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6098 | case `(set -o) 2>/dev/null` in #( |
| 6099 | *posix*) : |
| 6100 | set -o posix ;; #( |
| 6101 | *) : |
| 6102 | ;; |
| 6103 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6104 | fi |
| 6105 | |
| 6106 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6107 | as_nl=' |
| 6108 | ' |
| 6109 | export as_nl |
| 6110 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 6111 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6112 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6113 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6114 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 6115 | # but without wasting forks for bash or zsh. |
| 6116 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 6117 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6118 | as_echo='print -r --' |
| 6119 | as_echo_n='print -rn --' |
| 6120 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6121 | as_echo='printf %s\n' |
| 6122 | as_echo_n='printf %s' |
| 6123 | else |
| 6124 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 6125 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 6126 | as_echo_n='/usr/ucb/echo -n' |
| 6127 | else |
| 6128 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 6129 | as_echo_n_body='eval |
| 6130 | arg=$1; |
| 6131 | case $arg in #( |
| 6132 | *"$as_nl"*) |
| 6133 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 6134 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 6135 | esac; |
| 6136 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 6137 | ' |
| 6138 | export as_echo_n_body |
| 6139 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 6140 | fi |
| 6141 | export as_echo_body |
| 6142 | as_echo='sh -c $as_echo_body as_echo' |
| 6143 | fi |
| 6144 | |
| 6145 | # The user is always right. |
| 6146 | if test "${PATH_SEPARATOR+set}" != set; then |
| 6147 | PATH_SEPARATOR=: |
| 6148 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 6149 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 6150 | PATH_SEPARATOR=';' |
| 6151 | } |
| 6152 | fi |
| 6153 | |
| 6154 | |
| 6155 | # IFS |
| 6156 | # We need space, tab and new line, in precisely that order. Quoting is |
| 6157 | # there to prevent editors from complaining about space-tab. |
| 6158 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 6159 | # splitting by setting IFS to empty value.) |
| 6160 | IFS=" "" $as_nl" |
| 6161 | |
| 6162 | # Find who we are. Look in the path if we contain no directory separator. |
| 6163 | as_myself= |
| 6164 | case $0 in #(( |
| 6165 | *[\\/]* ) as_myself=$0 ;; |
| 6166 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6167 | for as_dir in $PATH |
| 6168 | do |
| 6169 | IFS=$as_save_IFS |
| 6170 | test -z "$as_dir" && as_dir=. |
| 6171 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 6172 | done |
| 6173 | IFS=$as_save_IFS |
| 6174 | |
| 6175 | ;; |
| 6176 | esac |
| 6177 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 6178 | # in which case we are not to be found in the path. |
| 6179 | if test "x$as_myself" = x; then |
| 6180 | as_myself=$0 |
| 6181 | fi |
| 6182 | if test ! -f "$as_myself"; then |
| 6183 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 6184 | exit 1 |
| 6185 | fi |
| 6186 | |
| 6187 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 6188 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 6189 | # suppresses any "Segmentation fault" message there. '((' could |
| 6190 | # trigger a bug in pdksh 5.2.14. |
| 6191 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 6192 | do eval test x\${$as_var+set} = xset \ |
| 6193 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 6194 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6195 | PS1='$ ' |
| 6196 | PS2='> ' |
| 6197 | PS4='+ ' |
| 6198 | |
| 6199 | # NLS nuisances. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6200 | LC_ALL=C |
| 6201 | export LC_ALL |
| 6202 | LANGUAGE=C |
| 6203 | export LANGUAGE |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6204 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6205 | # CDPATH. |
| 6206 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 6207 | |
| 6208 | |
| 6209 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 6210 | # ---------------------------------------- |
| 6211 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 6212 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 6213 | # script with STATUS, using 1 if that was 0. |
| 6214 | as_fn_error () |
| 6215 | { |
| 6216 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 6217 | if test "$4"; then |
| 6218 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 6219 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 6220 | fi |
| 6221 | $as_echo "$as_me: error: $2" >&2 |
| 6222 | as_fn_exit $as_status |
| 6223 | } # as_fn_error |
| 6224 | |
| 6225 | |
| 6226 | # as_fn_set_status STATUS |
| 6227 | # ----------------------- |
| 6228 | # Set $? to STATUS, without forking. |
| 6229 | as_fn_set_status () |
| 6230 | { |
| 6231 | return $1 |
| 6232 | } # as_fn_set_status |
| 6233 | |
| 6234 | # as_fn_exit STATUS |
| 6235 | # ----------------- |
| 6236 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 6237 | as_fn_exit () |
| 6238 | { |
| 6239 | set +e |
| 6240 | as_fn_set_status $1 |
| 6241 | exit $1 |
| 6242 | } # as_fn_exit |
| 6243 | |
| 6244 | # as_fn_unset VAR |
| 6245 | # --------------- |
| 6246 | # Portably unset VAR. |
| 6247 | as_fn_unset () |
| 6248 | { |
| 6249 | { eval $1=; unset $1;} |
| 6250 | } |
| 6251 | as_unset=as_fn_unset |
| 6252 | # as_fn_append VAR VALUE |
| 6253 | # ---------------------- |
| 6254 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 6255 | # advantage of any shell optimizations that allow amortized linear growth over |
| 6256 | # repeated appends, instead of the typical quadratic growth present in naive |
| 6257 | # implementations. |
| 6258 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 6259 | eval 'as_fn_append () |
| 6260 | { |
| 6261 | eval $1+=\$2 |
| 6262 | }' |
| 6263 | else |
| 6264 | as_fn_append () |
| 6265 | { |
| 6266 | eval $1=\$$1\$2 |
| 6267 | } |
| 6268 | fi # as_fn_append |
| 6269 | |
| 6270 | # as_fn_arith ARG... |
| 6271 | # ------------------ |
| 6272 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 6273 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 6274 | # must be portable across $(()) and expr. |
| 6275 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 6276 | eval 'as_fn_arith () |
| 6277 | { |
| 6278 | as_val=$(( $* )) |
| 6279 | }' |
| 6280 | else |
| 6281 | as_fn_arith () |
| 6282 | { |
| 6283 | as_val=`expr "$@" || test $? -eq 1` |
| 6284 | } |
| 6285 | fi # as_fn_arith |
| 6286 | |
| 6287 | |
| 6288 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 6289 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6290 | as_expr=expr |
| 6291 | else |
| 6292 | as_expr=false |
| 6293 | fi |
| 6294 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6295 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6296 | as_basename=basename |
| 6297 | else |
| 6298 | as_basename=false |
| 6299 | fi |
| 6300 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6301 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 6302 | as_dirname=dirname |
| 6303 | else |
| 6304 | as_dirname=false |
| 6305 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6306 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6307 | as_me=`$as_basename -- "$0" || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6308 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 6309 | X"$0" : 'X\(//\)$' \| \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6310 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 6311 | $as_echo X/"$0" | |
| 6312 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 6313 | s//\1/ |
| 6314 | q |
| 6315 | } |
| 6316 | /^X\/\(\/\/\)$/{ |
| 6317 | s//\1/ |
| 6318 | q |
| 6319 | } |
| 6320 | /^X\/\(\/\).*/{ |
| 6321 | s//\1/ |
| 6322 | q |
| 6323 | } |
| 6324 | s/.*/./; q'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6325 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6326 | # Avoid depending upon Character Ranges. |
| 6327 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 6328 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 6329 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 6330 | as_cr_digits='0123456789' |
| 6331 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 6332 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6333 | ECHO_C= ECHO_N= ECHO_T= |
| 6334 | case `echo -n x` in #((((( |
| 6335 | -n*) |
| 6336 | case `echo 'xy\c'` in |
| 6337 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 6338 | xy) ECHO_C='\c';; |
| 6339 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 6340 | ECHO_T=' ';; |
| 6341 | esac;; |
| 6342 | *) |
| 6343 | ECHO_N='-n';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6344 | esac |
| 6345 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6346 | rm -f conf$$ conf$$.exe conf$$.file |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6347 | if test -d conf$$.dir; then |
| 6348 | rm -f conf$$.dir/conf$$.file |
| 6349 | else |
| 6350 | rm -f conf$$.dir |
| 6351 | mkdir conf$$.dir 2>/dev/null |
| 6352 | fi |
| 6353 | if (echo >conf$$.file) 2>/dev/null; then |
| 6354 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6355 | as_ln_s='ln -s' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6356 | # ... but there are two gotchas: |
| 6357 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 6358 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 6359 | # In both cases, we have to default to `cp -pR'. |
| 6360 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 6361 | as_ln_s='cp -pR' |
| 6362 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 6363 | as_ln_s=ln |
| 6364 | else |
| 6365 | as_ln_s='cp -pR' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6366 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6367 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6368 | as_ln_s='cp -pR' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6369 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6370 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 6371 | rmdir conf$$.dir 2>/dev/null |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6372 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6373 | |
| 6374 | # as_fn_mkdir_p |
| 6375 | # ------------- |
| 6376 | # Create "$as_dir" as a directory, including parents if necessary. |
| 6377 | as_fn_mkdir_p () |
| 6378 | { |
| 6379 | |
| 6380 | case $as_dir in #( |
| 6381 | -*) as_dir=./$as_dir;; |
| 6382 | esac |
| 6383 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 6384 | as_dirs= |
| 6385 | while :; do |
| 6386 | case $as_dir in #( |
| 6387 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 6388 | *) as_qdir=$as_dir;; |
| 6389 | esac |
| 6390 | as_dirs="'$as_qdir' $as_dirs" |
| 6391 | as_dir=`$as_dirname -- "$as_dir" || |
| 6392 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6393 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6394 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6395 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 6396 | $as_echo X"$as_dir" | |
| 6397 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6398 | s//\1/ |
| 6399 | q |
| 6400 | } |
| 6401 | /^X\(\/\/\)[^/].*/{ |
| 6402 | s//\1/ |
| 6403 | q |
| 6404 | } |
| 6405 | /^X\(\/\/\)$/{ |
| 6406 | s//\1/ |
| 6407 | q |
| 6408 | } |
| 6409 | /^X\(\/\).*/{ |
| 6410 | s//\1/ |
| 6411 | q |
| 6412 | } |
| 6413 | s/.*/./; q'` |
| 6414 | test -d "$as_dir" && break |
| 6415 | done |
| 6416 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 6417 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 6418 | |
| 6419 | |
| 6420 | } # as_fn_mkdir_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6421 | if mkdir -p . 2>/dev/null; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6422 | as_mkdir_p='mkdir -p "$as_dir"' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6423 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6424 | test -d ./-p && rmdir ./-p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6425 | as_mkdir_p=false |
| 6426 | fi |
| 6427 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6428 | |
| 6429 | # as_fn_executable_p FILE |
| 6430 | # ----------------------- |
| 6431 | # Test if FILE is an executable regular file. |
| 6432 | as_fn_executable_p () |
| 6433 | { |
| 6434 | test -f "$1" && test -x "$1" |
| 6435 | } # as_fn_executable_p |
| 6436 | as_test_x='test -x' |
| 6437 | as_executable_p=as_fn_executable_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6438 | |
| 6439 | # Sed expression to map a string onto a valid CPP name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6440 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6441 | |
| 6442 | # Sed expression to map a string onto a valid variable name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6443 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6444 | |
| 6445 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6446 | exec 6>&1 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6447 | ## ----------------------------------- ## |
| 6448 | ## Main body of $CONFIG_STATUS script. ## |
| 6449 | ## ----------------------------------- ## |
| 6450 | _ASEOF |
| 6451 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6452 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6453 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6454 | # Save the log message, to keep $0 and so on meaningful, and to |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6455 | # report actual input values of CONFIG_FILES etc. instead of their |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6456 | # values after options handling. |
| 6457 | ac_log=" |
Pascal Bühler | 34acba6 | 2017-01-19 10:57:30 +0100 | [diff] [blame] | 6458 | This file was extended by libsrtp2 $as_me 2.1.0-pre, which was |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6459 | generated by GNU Autoconf 2.69. Invocation command line was |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6460 | |
| 6461 | CONFIG_FILES = $CONFIG_FILES |
| 6462 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 6463 | CONFIG_LINKS = $CONFIG_LINKS |
| 6464 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 6465 | $ $0 $@ |
| 6466 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6467 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 6468 | " |
| 6469 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6470 | _ACEOF |
| 6471 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6472 | case $ac_config_files in *" |
| 6473 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 6474 | esac |
| 6475 | |
| 6476 | case $ac_config_headers in *" |
| 6477 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 6478 | esac |
| 6479 | |
| 6480 | |
| 6481 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6482 | # Files that config.status was made for. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6483 | config_files="$ac_config_files" |
| 6484 | config_headers="$ac_config_headers" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6485 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6486 | _ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6487 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6488 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6489 | ac_cs_usage="\ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6490 | \`$as_me' instantiates files and other configuration actions |
| 6491 | from templates according to the current configuration. Unless the files |
| 6492 | and actions are specified as TAGs, all are instantiated by default. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6493 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6494 | Usage: $0 [OPTION]... [TAG]... |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6495 | |
| 6496 | -h, --help print this help, then exit |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6497 | -V, --version print version number and configuration settings, then exit |
| 6498 | --config print configuration, then exit |
| 6499 | -q, --quiet, --silent |
| 6500 | do not print progress messages |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6501 | -d, --debug don't remove temporary files |
| 6502 | --recheck update $as_me by reconfiguring in the same conditions |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6503 | --file=FILE[:TEMPLATE] |
| 6504 | instantiate the configuration file FILE |
| 6505 | --header=FILE[:TEMPLATE] |
| 6506 | instantiate the configuration header FILE |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6507 | |
| 6508 | Configuration files: |
| 6509 | $config_files |
| 6510 | |
| 6511 | Configuration headers: |
| 6512 | $config_headers |
| 6513 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 6514 | Report bugs to <https://github.com/cisco/libsrtp/issues>." |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6515 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6516 | _ACEOF |
| 6517 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6518 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6519 | ac_cs_version="\\ |
Pascal Bühler | 34acba6 | 2017-01-19 10:57:30 +0100 | [diff] [blame] | 6520 | libsrtp2 config.status 2.1.0-pre |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6521 | configured by $0, generated by GNU Autoconf 2.69, |
| 6522 | with options \\"\$ac_cs_config\\" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6523 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6524 | Copyright (C) 2012 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6525 | This config.status script is free software; the Free Software Foundation |
| 6526 | gives unlimited permission to copy, distribute and modify it." |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6527 | |
| 6528 | ac_pwd='$ac_pwd' |
| 6529 | srcdir='$srcdir' |
| 6530 | INSTALL='$INSTALL' |
| 6531 | test -n "\$AWK" || AWK=awk |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6532 | _ACEOF |
| 6533 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6534 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6535 | # The default lists apply if the user does not specify any file. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6536 | ac_need_defaults=: |
| 6537 | while test $# != 0 |
| 6538 | do |
| 6539 | case $1 in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6540 | --*=?*) |
| 6541 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6542 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6543 | ac_shift=: |
| 6544 | ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6545 | --*=) |
| 6546 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6547 | ac_optarg= |
| 6548 | ac_shift=: |
| 6549 | ;; |
| 6550 | *) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6551 | ac_option=$1 |
| 6552 | ac_optarg=$2 |
| 6553 | ac_shift=shift |
| 6554 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6555 | esac |
| 6556 | |
| 6557 | case $ac_option in |
| 6558 | # Handling of the options. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6559 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6560 | ac_cs_recheck=: ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6561 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 6562 | $as_echo "$ac_cs_version"; exit ;; |
| 6563 | --config | --confi | --conf | --con | --co | --c ) |
| 6564 | $as_echo "$ac_cs_config"; exit ;; |
| 6565 | --debug | --debu | --deb | --de | --d | -d ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6566 | debug=: ;; |
| 6567 | --file | --fil | --fi | --f ) |
| 6568 | $ac_shift |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6569 | case $ac_optarg in |
| 6570 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6571 | '') as_fn_error $? "missing file argument" ;; |
| 6572 | esac |
| 6573 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6574 | ac_need_defaults=false;; |
| 6575 | --header | --heade | --head | --hea ) |
| 6576 | $ac_shift |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6577 | case $ac_optarg in |
| 6578 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6579 | esac |
| 6580 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6581 | ac_need_defaults=false;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6582 | --he | --h) |
| 6583 | # Conflict between --help and --header |
| 6584 | as_fn_error $? "ambiguous option: \`$1' |
| 6585 | Try \`$0 --help' for more information.";; |
| 6586 | --help | --hel | -h ) |
| 6587 | $as_echo "$ac_cs_usage"; exit ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6588 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 6589 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 6590 | ac_cs_silent=: ;; |
| 6591 | |
| 6592 | # This is an error. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6593 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 6594 | Try \`$0 --help' for more information." ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6595 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6596 | *) as_fn_append ac_config_targets " $1" |
| 6597 | ac_need_defaults=false ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6598 | |
| 6599 | esac |
| 6600 | shift |
| 6601 | done |
| 6602 | |
| 6603 | ac_configure_extra_args= |
| 6604 | |
| 6605 | if $ac_cs_silent; then |
| 6606 | exec 6>/dev/null |
| 6607 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 6608 | fi |
| 6609 | |
| 6610 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6611 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6612 | if \$ac_cs_recheck; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6613 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 6614 | shift |
| 6615 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 6616 | CONFIG_SHELL='$SHELL' |
| 6617 | export CONFIG_SHELL |
| 6618 | exec "\$@" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6619 | fi |
| 6620 | |
| 6621 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6622 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6623 | exec 5>>config.log |
| 6624 | { |
| 6625 | echo |
| 6626 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 6627 | ## Running $as_me. ## |
| 6628 | _ASBOX |
| 6629 | $as_echo "$ac_log" |
| 6630 | } >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6631 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6632 | _ACEOF |
| 6633 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6634 | _ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6635 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6636 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6637 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6638 | # Handling of arguments. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6639 | for ac_config_target in $ac_config_targets |
| 6640 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6641 | case $ac_config_target in |
| 6642 | "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;; |
jfigus | d196e02 | 2014-11-20 16:43:44 -0500 | [diff] [blame] | 6643 | "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6644 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 6645 | "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;; |
| 6646 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 6647 | |
| 6648 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6649 | esac |
| 6650 | done |
| 6651 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6652 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6653 | # If the user did not use the arguments to specify the items to instantiate, |
| 6654 | # then the envvar interface is used. Set only those that are not. |
| 6655 | # We use the long form for the default assignment because of an extremely |
| 6656 | # bizarre bug on SunOS 4.1.3. |
| 6657 | if $ac_need_defaults; then |
| 6658 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 6659 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 6660 | fi |
| 6661 | |
| 6662 | # Have a temporary directory for convenience. Make it in the build tree |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6663 | # simply because there is no reason against having it here, and in addition, |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6664 | # creating and moving files from /tmp can sometimes cause problems. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6665 | # Hook for its removal unless debugging. |
| 6666 | # Note that there is a small window in which the directory will not be cleaned: |
| 6667 | # after its creation but before its name has been assigned to `$tmp'. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6668 | $debug || |
| 6669 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6670 | tmp= ac_tmp= |
| 6671 | trap 'exit_status=$? |
| 6672 | : "${ac_tmp:=$tmp}" |
| 6673 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 6674 | ' 0 |
| 6675 | trap 'as_fn_exit 1' 1 2 13 15 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6676 | } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6677 | # Create a (secure) tmp directory for tmp files. |
| 6678 | |
| 6679 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6680 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 6681 | test -d "$tmp" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6682 | } || |
| 6683 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6684 | tmp=./conf$$-$RANDOM |
| 6685 | (umask 077 && mkdir "$tmp") |
| 6686 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 6687 | ac_tmp=$tmp |
| 6688 | |
| 6689 | # Set up the scripts for CONFIG_FILES section. |
| 6690 | # No need to generate them if there are no CONFIG_FILES. |
| 6691 | # This happens for instance with `./config.status config.h'. |
| 6692 | if test -n "$CONFIG_FILES"; then |
| 6693 | |
| 6694 | |
| 6695 | ac_cr=`echo X | tr X '\015'` |
| 6696 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 6697 | # But we know of no other shell where ac_cr would be empty at this |
| 6698 | # point, so we can use a bashism as a fallback. |
| 6699 | if test "x$ac_cr" = x; then |
| 6700 | eval ac_cr=\$\'\\r\' |
| 6701 | fi |
| 6702 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 6703 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 6704 | ac_cs_awk_cr='\\r' |
| 6705 | else |
| 6706 | ac_cs_awk_cr=$ac_cr |
| 6707 | fi |
| 6708 | |
| 6709 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 6710 | _ACEOF |
| 6711 | |
| 6712 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6713 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6714 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 6715 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 6716 | echo "_ACEOF" |
| 6717 | } >conf$$subs.sh || |
| 6718 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6719 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 6720 | ac_delim='%!_!# ' |
| 6721 | for ac_last_try in false false false false false :; do |
| 6722 | . ./conf$$subs.sh || |
| 6723 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6724 | |
| 6725 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 6726 | if test $ac_delim_n = $ac_delim_num; then |
| 6727 | break |
| 6728 | elif $ac_last_try; then |
| 6729 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6730 | else |
| 6731 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6732 | fi |
| 6733 | done |
| 6734 | rm -f conf$$subs.sh |
| 6735 | |
| 6736 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6737 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 6738 | _ACEOF |
| 6739 | sed -n ' |
| 6740 | h |
| 6741 | s/^/S["/; s/!.*/"]=/ |
| 6742 | p |
| 6743 | g |
| 6744 | s/^[^!]*!// |
| 6745 | :repl |
| 6746 | t repl |
| 6747 | s/'"$ac_delim"'$// |
| 6748 | t delim |
| 6749 | :nl |
| 6750 | h |
| 6751 | s/\(.\{148\}\)..*/\1/ |
| 6752 | t more1 |
| 6753 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 6754 | p |
| 6755 | n |
| 6756 | b repl |
| 6757 | :more1 |
| 6758 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6759 | p |
| 6760 | g |
| 6761 | s/.\{148\}// |
| 6762 | t nl |
| 6763 | :delim |
| 6764 | h |
| 6765 | s/\(.\{148\}\)..*/\1/ |
| 6766 | t more2 |
| 6767 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 6768 | p |
| 6769 | b |
| 6770 | :more2 |
| 6771 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6772 | p |
| 6773 | g |
| 6774 | s/.\{148\}// |
| 6775 | t delim |
| 6776 | ' <conf$$subs.awk | sed ' |
| 6777 | /^[^""]/{ |
| 6778 | N |
| 6779 | s/\n// |
| 6780 | } |
| 6781 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6782 | rm -f conf$$subs.awk |
| 6783 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6784 | _ACAWK |
| 6785 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 6786 | for (key in S) S_is_set[key] = 1 |
| 6787 | FS = "" |
| 6788 | |
| 6789 | } |
| 6790 | { |
| 6791 | line = $ 0 |
| 6792 | nfields = split(line, field, "@") |
| 6793 | substed = 0 |
| 6794 | len = length(field[1]) |
| 6795 | for (i = 2; i < nfields; i++) { |
| 6796 | key = field[i] |
| 6797 | keylen = length(key) |
| 6798 | if (S_is_set[key]) { |
| 6799 | value = S[key] |
| 6800 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 6801 | len += length(value) + length(field[++i]) |
| 6802 | substed = 1 |
| 6803 | } else |
| 6804 | len += 1 + keylen |
| 6805 | } |
| 6806 | |
| 6807 | print line |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6808 | } |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6809 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6810 | _ACAWK |
| 6811 | _ACEOF |
| 6812 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6813 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 6814 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 6815 | else |
| 6816 | cat |
| 6817 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 6818 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6819 | _ACEOF |
| 6820 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6821 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 6822 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 6823 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 6824 | # (actually we leave an empty line to preserve line numbers). |
| 6825 | if test "x$srcdir" = x.; then |
| 6826 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 6827 | h |
| 6828 | s/// |
| 6829 | s/^/:/ |
| 6830 | s/[ ]*$/:/ |
| 6831 | s/:\$(srcdir):/:/g |
| 6832 | s/:\${srcdir}:/:/g |
| 6833 | s/:@srcdir@:/:/g |
| 6834 | s/^:*// |
| 6835 | s/:*$// |
| 6836 | x |
| 6837 | s/\(=[ ]*\).*/\1/ |
| 6838 | G |
| 6839 | s/\n// |
| 6840 | s/^[^=]*=[ ]*$// |
| 6841 | }' |
| 6842 | fi |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6843 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6844 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6845 | fi # test -n "$CONFIG_FILES" |
| 6846 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6847 | # Set up the scripts for CONFIG_HEADERS section. |
| 6848 | # No need to generate them if there are no CONFIG_HEADERS. |
| 6849 | # This happens for instance with `./config.status Makefile'. |
| 6850 | if test -n "$CONFIG_HEADERS"; then |
| 6851 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 6852 | BEGIN { |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6853 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6854 | |
| 6855 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 6856 | # here-document in config.status, that substitutes the proper values into |
| 6857 | # config.h.in to produce config.h. |
| 6858 | |
| 6859 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 6860 | # handling of long lines. |
| 6861 | ac_delim='%!_!# ' |
| 6862 | for ac_last_try in false false :; do |
| 6863 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 6864 | if test -z "$ac_tt"; then |
| 6865 | break |
| 6866 | elif $ac_last_try; then |
| 6867 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 6868 | else |
| 6869 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6870 | fi |
| 6871 | done |
| 6872 | |
| 6873 | # For the awk script, D is an array of macro values keyed by name, |
| 6874 | # likewise P contains macro parameters if any. Preserve backslash |
| 6875 | # newline sequences. |
| 6876 | |
| 6877 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 6878 | sed -n ' |
| 6879 | s/.\{148\}/&'"$ac_delim"'/g |
| 6880 | t rset |
| 6881 | :rset |
| 6882 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 6883 | t def |
| 6884 | d |
| 6885 | :def |
| 6886 | s/\\$// |
| 6887 | t bsnl |
| 6888 | s/["\\]/\\&/g |
| 6889 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6890 | D["\1"]=" \3"/p |
| 6891 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 6892 | d |
| 6893 | :bsnl |
| 6894 | s/["\\]/\\&/g |
| 6895 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6896 | D["\1"]=" \3\\\\\\n"\\/p |
| 6897 | t cont |
| 6898 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 6899 | t cont |
| 6900 | d |
| 6901 | :cont |
| 6902 | n |
| 6903 | s/.\{148\}/&'"$ac_delim"'/g |
| 6904 | t clear |
| 6905 | :clear |
| 6906 | s/\\$// |
| 6907 | t bsnlc |
| 6908 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 6909 | d |
| 6910 | :bsnlc |
| 6911 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 6912 | b cont |
| 6913 | ' <confdefs.h | sed ' |
| 6914 | s/'"$ac_delim"'/"\\\ |
| 6915 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6916 | |
| 6917 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6918 | for (key in D) D_is_set[key] = 1 |
| 6919 | FS = "" |
| 6920 | } |
| 6921 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 6922 | line = \$ 0 |
| 6923 | split(line, arg, " ") |
| 6924 | if (arg[1] == "#") { |
| 6925 | defundef = arg[2] |
| 6926 | mac1 = arg[3] |
| 6927 | } else { |
| 6928 | defundef = substr(arg[1], 2) |
| 6929 | mac1 = arg[2] |
| 6930 | } |
| 6931 | split(mac1, mac2, "(") #) |
| 6932 | macro = mac2[1] |
| 6933 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 6934 | if (D_is_set[macro]) { |
| 6935 | # Preserve the white space surrounding the "#". |
| 6936 | print prefix "define", macro P[macro] D[macro] |
| 6937 | next |
| 6938 | } else { |
| 6939 | # Replace #undef with comments. This is necessary, for example, |
| 6940 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 6941 | # on some systems where configure will not decide to define it. |
| 6942 | if (defundef == "undef") { |
| 6943 | print "/*", prefix defundef, macro, "*/" |
| 6944 | next |
| 6945 | } |
| 6946 | } |
| 6947 | } |
| 6948 | { print } |
| 6949 | _ACAWK |
| 6950 | _ACEOF |
| 6951 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6952 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 6953 | fi # test -n "$CONFIG_HEADERS" |
| 6954 | |
| 6955 | |
| 6956 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 6957 | shift |
| 6958 | for ac_tag |
| 6959 | do |
| 6960 | case $ac_tag in |
| 6961 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 6962 | esac |
| 6963 | case $ac_mode$ac_tag in |
| 6964 | :[FHL]*:*);; |
| 6965 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 6966 | :[FH]-) ac_tag=-:-;; |
| 6967 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 6968 | esac |
| 6969 | ac_save_IFS=$IFS |
| 6970 | IFS=: |
| 6971 | set x $ac_tag |
| 6972 | IFS=$ac_save_IFS |
| 6973 | shift |
| 6974 | ac_file=$1 |
| 6975 | shift |
| 6976 | |
| 6977 | case $ac_mode in |
| 6978 | :L) ac_source=$1;; |
| 6979 | :[FH]) |
| 6980 | ac_file_inputs= |
| 6981 | for ac_f |
| 6982 | do |
| 6983 | case $ac_f in |
| 6984 | -) ac_f="$ac_tmp/stdin";; |
| 6985 | *) # Look for the file first in the build tree, then in the source tree |
| 6986 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 6987 | # because $ac_f cannot contain `:'. |
| 6988 | test -f "$ac_f" || |
| 6989 | case $ac_f in |
| 6990 | [\\/$]*) false;; |
| 6991 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 6992 | esac || |
| 6993 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 6994 | esac |
| 6995 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 6996 | as_fn_append ac_file_inputs " '$ac_f'" |
| 6997 | done |
| 6998 | |
| 6999 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7000 | # use $as_me), people would be surprised to read: |
| 7001 | # /* config.h. Generated by config.status. */ |
| 7002 | configure_input='Generated from '` |
| 7003 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 7004 | `' by configure.' |
| 7005 | if test x"$ac_file" != x-; then |
| 7006 | configure_input="$ac_file. $configure_input" |
| 7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 7008 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 7009 | fi |
| 7010 | # Neutralize special characters interpreted by sed in replacement strings. |
| 7011 | case $configure_input in #( |
| 7012 | *\&* | *\|* | *\\* ) |
| 7013 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 7014 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 7015 | *) ac_sed_conf_input=$configure_input;; |
| 7016 | esac |
| 7017 | |
| 7018 | case $ac_tag in |
| 7019 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 7020 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 7021 | esac |
| 7022 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7023 | esac |
| 7024 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7025 | ac_dir=`$as_dirname -- "$ac_file" || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7026 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 7027 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7028 | X"$ac_file" : 'X\(//\)$' \| \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7029 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 7030 | $as_echo X"$ac_file" | |
| 7031 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7032 | s//\1/ |
| 7033 | q |
| 7034 | } |
| 7035 | /^X\(\/\/\)[^/].*/{ |
| 7036 | s//\1/ |
| 7037 | q |
| 7038 | } |
| 7039 | /^X\(\/\/\)$/{ |
| 7040 | s//\1/ |
| 7041 | q |
| 7042 | } |
| 7043 | /^X\(\/\).*/{ |
| 7044 | s//\1/ |
| 7045 | q |
| 7046 | } |
| 7047 | s/.*/./; q'` |
| 7048 | as_dir="$ac_dir"; as_fn_mkdir_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7049 | ac_builddir=. |
| 7050 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7051 | case "$ac_dir" in |
| 7052 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7053 | *) |
| 7054 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 7055 | # A ".." for each directory in $ac_dir_suffix. |
| 7056 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 7057 | case $ac_top_builddir_sub in |
| 7058 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7059 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 7060 | esac ;; |
| 7061 | esac |
| 7062 | ac_abs_top_builddir=$ac_pwd |
| 7063 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 7064 | # for backward compatibility: |
| 7065 | ac_top_builddir=$ac_top_build_prefix |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7066 | |
| 7067 | case $srcdir in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7068 | .) # We are building in place. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7069 | ac_srcdir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7070 | ac_top_srcdir=$ac_top_builddir_sub |
| 7071 | ac_abs_top_srcdir=$ac_pwd ;; |
| 7072 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7073 | ac_srcdir=$srcdir$ac_dir_suffix; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7074 | ac_top_srcdir=$srcdir |
| 7075 | ac_abs_top_srcdir=$srcdir ;; |
| 7076 | *) # Relative name. |
| 7077 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 7078 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 7079 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7080 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7081 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 7082 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7083 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7084 | case $ac_mode in |
| 7085 | :F) |
| 7086 | # |
| 7087 | # CONFIG_FILE |
| 7088 | # |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7089 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 7090 | case $INSTALL in |
| 7091 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7092 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 7093 | esac |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 7094 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7095 | |
| 7096 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7097 | # If the template does not know about datarootdir, expand it. |
| 7098 | # FIXME: This hack should be removed a few years after 2.60. |
| 7099 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 7100 | ac_sed_dataroot=' |
| 7101 | /datarootdir/ { |
| 7102 | p |
| 7103 | q |
| 7104 | } |
| 7105 | /@datadir@/p |
| 7106 | /@docdir@/p |
| 7107 | /@infodir@/p |
| 7108 | /@localedir@/p |
| 7109 | /@mandir@/p' |
| 7110 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 7111 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 7112 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 7113 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 7114 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 7115 | _ACEOF |
| 7116 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7117 | ac_datarootdir_hack=' |
| 7118 | s&@datadir@&$datadir&g |
| 7119 | s&@docdir@&$docdir&g |
| 7120 | s&@infodir@&$infodir&g |
| 7121 | s&@localedir@&$localedir&g |
| 7122 | s&@mandir@&$mandir&g |
| 7123 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 7124 | esac |
| 7125 | _ACEOF |
| 7126 | |
| 7127 | # Neutralize VPATH when `$srcdir' = `.'. |
| 7128 | # Shell code in configure.ac might set extrasub. |
| 7129 | # FIXME: do we really want to maintain this feature? |
| 7130 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7131 | ac_sed_extra="$ac_vpsub |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7132 | $extrasub |
| 7133 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7134 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7135 | :t |
| 7136 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7137 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 7138 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 7139 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 7140 | s&@srcdir@&$ac_srcdir&;t t |
| 7141 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 7142 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 7143 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 7144 | s&@builddir@&$ac_builddir&;t t |
| 7145 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 7146 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 7147 | s&@INSTALL@&$ac_INSTALL&;t t |
| 7148 | $ac_datarootdir_hack |
| 7149 | " |
| 7150 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 7151 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7152 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7153 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 7154 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 7155 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 7156 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 7157 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 7158 | which seems to be undefined. Please make sure it is defined" >&5 |
| 7159 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 7160 | which seems to be undefined. Please make sure it is defined" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7161 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7162 | rm -f "$ac_tmp/stdin" |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 7163 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7164 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 7165 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 7166 | esac \ |
| 7167 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 7168 | ;; |
| 7169 | :H) |
| 7170 | # |
| 7171 | # CONFIG_HEADER |
| 7172 | # |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 7173 | if test x"$ac_file" != x-; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7174 | { |
| 7175 | $as_echo "/* $configure_input */" \ |
| 7176 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 7177 | } >"$ac_tmp/config.h" \ |
| 7178 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 7179 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 7181 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 7182 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7183 | rm -f "$ac_file" |
| 7184 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 7185 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 7186 | fi |
| 7187 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7188 | $as_echo "/* $configure_input */" \ |
| 7189 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 7190 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 7191 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7192 | ;; |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 7193 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 7194 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7195 | esac |
| 7196 | |
| 7197 | done # for ac_tag |
| 7198 | |
| 7199 | |
| 7200 | as_fn_exit 0 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 7201 | _ACEOF |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 7202 | ac_clean_files=$ac_clean_files_save |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 7203 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7204 | test $ac_write_fail = 0 || |
| 7205 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 7206 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7207 | |
| 7208 | # configure is writing to config.log, and then calls config.status. |
| 7209 | # config.status does its own redirection, appending to config.log. |
| 7210 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 7211 | # by configure, so config.status won't be able to write to it; its |
| 7212 | # output is simply discarded. So we exec the FD to /dev/null, |
| 7213 | # effectively closing config.log, so it can be properly (re)opened and |
| 7214 | # appended to by config.status. When coming back to configure, we |
| 7215 | # need to make the FD available again. |
| 7216 | if test "$no_create" != yes; then |
| 7217 | ac_cs_success=: |
| 7218 | ac_config_status_args= |
| 7219 | test "$silent" = yes && |
| 7220 | ac_config_status_args="$ac_config_status_args --quiet" |
| 7221 | exec 5>/dev/null |
| 7222 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 7223 | exec 5>>config.log |
| 7224 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 7225 | # would make configure fail if this is the last instruction. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7226 | $ac_cs_success || as_fn_exit 1 |
| 7227 | fi |
| 7228 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 7229 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 7230 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 7231 | fi |
| 7232 | |
Marcus Sundberg | 979e1bc | 2005-09-29 14:33:09 +0000 | [diff] [blame] | 7233 | |
| 7234 | # This is needed when building outside the source dir. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7235 | as_dir=crypto/cipher; as_fn_mkdir_p |
| 7236 | as_dir=crypto/hash; as_fn_mkdir_p |
| 7237 | as_dir=crypto/kernel; as_fn_mkdir_p |
| 7238 | as_dir=crypto/math; as_fn_mkdir_p |
| 7239 | as_dir=crypto/replay; as_fn_mkdir_p |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7240 | as_dir=crypto/test; as_fn_mkdir_p |
| 7241 | as_dir=doc; as_fn_mkdir_p |
| 7242 | as_dir=srtp; as_fn_mkdir_p |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 7243 | as_dir=test; as_fn_mkdir_p |