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. |
jfigus | e806a66 | 2015-03-11 10:02:12 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for libsrtp 1.5.2. |
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. |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 581 | PACKAGE_NAME='libsrtp' |
| 582 | PACKAGE_TARNAME='libsrtp' |
jfigus | e806a66 | 2015-03-11 10:02:12 -0400 | [diff] [blame] | 583 | PACKAGE_VERSION='1.5.2' |
| 584 | PACKAGE_STRING='libsrtp 1.5.2' |
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 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 628 | GDOI_OBJS |
Bernardo Torres | b3c5142 | 2014-10-14 12:40:09 -0300 | [diff] [blame] | 629 | HAVE_PCAP |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 630 | HMAC_OBJS |
| 631 | RNG_EXTRA_OBJS |
| 632 | RNG_OBJS |
| 633 | AES_ICM_OBJS |
| 634 | USE_OPENSSL |
| 635 | EXE |
| 636 | host_os |
| 637 | host_vendor |
| 638 | host_cpu |
| 639 | host |
| 640 | build_os |
| 641 | build_vendor |
| 642 | build_cpu |
| 643 | build |
| 644 | EGREP |
| 645 | GREP |
| 646 | CPP |
| 647 | INSTALL_DATA |
| 648 | INSTALL_SCRIPT |
| 649 | INSTALL_PROGRAM |
| 650 | OBJEXT |
| 651 | EXEEXT |
| 652 | ac_ct_CC |
| 653 | CPPFLAGS |
| 654 | LDFLAGS |
| 655 | CFLAGS |
| 656 | CC |
| 657 | RANLIB |
| 658 | target_alias |
| 659 | host_alias |
| 660 | build_alias |
| 661 | LIBS |
| 662 | ECHO_T |
| 663 | ECHO_N |
| 664 | ECHO_C |
| 665 | DEFS |
| 666 | mandir |
| 667 | localedir |
| 668 | libdir |
| 669 | psdir |
| 670 | pdfdir |
| 671 | dvidir |
| 672 | htmldir |
| 673 | infodir |
| 674 | docdir |
| 675 | oldincludedir |
| 676 | includedir |
| 677 | localstatedir |
| 678 | sharedstatedir |
| 679 | sysconfdir |
| 680 | datadir |
| 681 | datarootdir |
| 682 | libexecdir |
| 683 | sbindir |
| 684 | bindir |
| 685 | program_transform_name |
| 686 | prefix |
| 687 | exec_prefix |
| 688 | PACKAGE_URL |
| 689 | PACKAGE_BUGREPORT |
| 690 | PACKAGE_STRING |
| 691 | PACKAGE_VERSION |
| 692 | PACKAGE_TARNAME |
| 693 | PACKAGE_NAME |
| 694 | PATH_SEPARATOR |
| 695 | SHELL' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 696 | ac_subst_files='' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 697 | ac_user_opts=' |
| 698 | enable_option_checking |
| 699 | enable_kernel_linux |
| 700 | enable_debug |
| 701 | enable_generic_aesicm |
| 702 | enable_openssl |
| 703 | enable_syslog |
| 704 | enable_stdout |
| 705 | enable_console |
| 706 | enable_gdoi |
| 707 | ' |
| 708 | ac_precious_vars='build_alias |
| 709 | host_alias |
| 710 | target_alias |
| 711 | CC |
| 712 | CFLAGS |
| 713 | LDFLAGS |
| 714 | LIBS |
| 715 | CPPFLAGS |
| 716 | CPP' |
| 717 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 718 | |
| 719 | # Initialize some variables set by options. |
| 720 | ac_init_help= |
| 721 | ac_init_version=false |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 722 | ac_unrecognized_opts= |
| 723 | ac_unrecognized_sep= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 724 | # The variables have the same names as the options, with |
| 725 | # dashes changed to underlines. |
| 726 | cache_file=/dev/null |
| 727 | exec_prefix=NONE |
| 728 | no_create= |
| 729 | no_recursion= |
| 730 | prefix=NONE |
| 731 | program_prefix=NONE |
| 732 | program_suffix=NONE |
| 733 | program_transform_name=s,x,x, |
| 734 | silent= |
| 735 | site= |
| 736 | srcdir= |
| 737 | verbose= |
| 738 | x_includes=NONE |
| 739 | x_libraries=NONE |
| 740 | |
| 741 | # Installation directory options. |
| 742 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 743 | # and all the variables that are supposed to be based on exec_prefix |
| 744 | # by default will actually change. |
| 745 | # Use braces instead of parens because sh, perl, etc. also accept them. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 746 | # (The list follows the same order as the GNU Coding Standards.) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 747 | bindir='${exec_prefix}/bin' |
| 748 | sbindir='${exec_prefix}/sbin' |
| 749 | libexecdir='${exec_prefix}/libexec' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 750 | datarootdir='${prefix}/share' |
| 751 | datadir='${datarootdir}' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 752 | sysconfdir='${prefix}/etc' |
| 753 | sharedstatedir='${prefix}/com' |
| 754 | localstatedir='${prefix}/var' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 755 | includedir='${prefix}/include' |
| 756 | oldincludedir='/usr/include' |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 757 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 758 | infodir='${datarootdir}/info' |
| 759 | htmldir='${docdir}' |
| 760 | dvidir='${docdir}' |
| 761 | pdfdir='${docdir}' |
| 762 | psdir='${docdir}' |
| 763 | libdir='${exec_prefix}/lib' |
| 764 | localedir='${datarootdir}/locale' |
| 765 | mandir='${datarootdir}/man' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 766 | |
| 767 | ac_prev= |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 768 | ac_dashdash= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 769 | for ac_option |
| 770 | do |
| 771 | # If the previous option needs an argument, assign it. |
| 772 | if test -n "$ac_prev"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 773 | eval $ac_prev=\$ac_option |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 774 | ac_prev= |
| 775 | continue |
| 776 | fi |
| 777 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 778 | case $ac_option in |
| 779 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 780 | *=) ac_optarg= ;; |
| 781 | *) ac_optarg=yes ;; |
| 782 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 783 | |
| 784 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 785 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 786 | case $ac_dashdash$ac_option in |
| 787 | --) |
| 788 | ac_dashdash=yes ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 789 | |
| 790 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 791 | ac_prev=bindir ;; |
| 792 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 793 | bindir=$ac_optarg ;; |
| 794 | |
| 795 | -build | --build | --buil | --bui | --bu) |
| 796 | ac_prev=build_alias ;; |
| 797 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 798 | build_alias=$ac_optarg ;; |
| 799 | |
| 800 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 801 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 802 | ac_prev=cache_file ;; |
| 803 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 804 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 805 | cache_file=$ac_optarg ;; |
| 806 | |
| 807 | --config-cache | -C) |
| 808 | cache_file=config.cache ;; |
| 809 | |
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 | ac_prev=datadir ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 812 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 813 | datadir=$ac_optarg ;; |
| 814 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 815 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 816 | | --dataroo | --dataro | --datar) |
| 817 | ac_prev=datarootdir ;; |
| 818 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 819 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 820 | datarootdir=$ac_optarg ;; |
| 821 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 822 | -disable-* | --disable-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 823 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 824 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 825 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 826 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 827 | ac_useropt_orig=$ac_useropt |
| 828 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 829 | case $ac_user_opts in |
| 830 | *" |
| 831 | "enable_$ac_useropt" |
| 832 | "*) ;; |
| 833 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 834 | ac_unrecognized_sep=', ';; |
| 835 | esac |
| 836 | eval enable_$ac_useropt=no ;; |
| 837 | |
| 838 | -docdir | --docdir | --docdi | --doc | --do) |
| 839 | ac_prev=docdir ;; |
| 840 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 841 | docdir=$ac_optarg ;; |
| 842 | |
| 843 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 844 | ac_prev=dvidir ;; |
| 845 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 846 | dvidir=$ac_optarg ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 847 | |
| 848 | -enable-* | --enable-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 849 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 850 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 851 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 852 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 853 | ac_useropt_orig=$ac_useropt |
| 854 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 855 | case $ac_user_opts in |
| 856 | *" |
| 857 | "enable_$ac_useropt" |
| 858 | "*) ;; |
| 859 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 860 | ac_unrecognized_sep=', ';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 861 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 862 | eval enable_$ac_useropt=\$ac_optarg ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 863 | |
| 864 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 865 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 866 | | --exec | --exe | --ex) |
| 867 | ac_prev=exec_prefix ;; |
| 868 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 869 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 870 | | --exec=* | --exe=* | --ex=*) |
| 871 | exec_prefix=$ac_optarg ;; |
| 872 | |
| 873 | -gas | --gas | --ga | --g) |
| 874 | # Obsolete; use --with-gas. |
| 875 | with_gas=yes ;; |
| 876 | |
| 877 | -help | --help | --hel | --he | -h) |
| 878 | ac_init_help=long ;; |
| 879 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 880 | ac_init_help=recursive ;; |
| 881 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 882 | ac_init_help=short ;; |
| 883 | |
| 884 | -host | --host | --hos | --ho) |
| 885 | ac_prev=host_alias ;; |
| 886 | -host=* | --host=* | --hos=* | --ho=*) |
| 887 | host_alias=$ac_optarg ;; |
| 888 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 889 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 890 | ac_prev=htmldir ;; |
| 891 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 892 | | --ht=*) |
| 893 | htmldir=$ac_optarg ;; |
| 894 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 895 | -includedir | --includedir | --includedi | --included | --include \ |
| 896 | | --includ | --inclu | --incl | --inc) |
| 897 | ac_prev=includedir ;; |
| 898 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 899 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 900 | includedir=$ac_optarg ;; |
| 901 | |
| 902 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 903 | ac_prev=infodir ;; |
| 904 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 905 | infodir=$ac_optarg ;; |
| 906 | |
| 907 | -libdir | --libdir | --libdi | --libd) |
| 908 | ac_prev=libdir ;; |
| 909 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 910 | libdir=$ac_optarg ;; |
| 911 | |
| 912 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 913 | | --libexe | --libex | --libe) |
| 914 | ac_prev=libexecdir ;; |
| 915 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 916 | | --libexe=* | --libex=* | --libe=*) |
| 917 | libexecdir=$ac_optarg ;; |
| 918 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 919 | -localedir | --localedir | --localedi | --localed | --locale) |
| 920 | ac_prev=localedir ;; |
| 921 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 922 | localedir=$ac_optarg ;; |
| 923 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 924 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 925 | | --localstate | --localstat | --localsta | --localst | --locals) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 926 | ac_prev=localstatedir ;; |
| 927 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 928 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 929 | localstatedir=$ac_optarg ;; |
| 930 | |
| 931 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 932 | ac_prev=mandir ;; |
| 933 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 934 | mandir=$ac_optarg ;; |
| 935 | |
| 936 | -nfp | --nfp | --nf) |
| 937 | # Obsolete; use --without-fp. |
| 938 | with_fp=no ;; |
| 939 | |
| 940 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 941 | | --no-cr | --no-c | -n) |
| 942 | no_create=yes ;; |
| 943 | |
| 944 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 945 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 946 | no_recursion=yes ;; |
| 947 | |
| 948 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 949 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 950 | | --oldin | --oldi | --old | --ol | --o) |
| 951 | ac_prev=oldincludedir ;; |
| 952 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 953 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 954 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 955 | oldincludedir=$ac_optarg ;; |
| 956 | |
| 957 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 958 | ac_prev=prefix ;; |
| 959 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 960 | prefix=$ac_optarg ;; |
| 961 | |
| 962 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 963 | | --program-pre | --program-pr | --program-p) |
| 964 | ac_prev=program_prefix ;; |
| 965 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 966 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 967 | program_prefix=$ac_optarg ;; |
| 968 | |
| 969 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 970 | | --program-suf | --program-su | --program-s) |
| 971 | ac_prev=program_suffix ;; |
| 972 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 973 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 974 | program_suffix=$ac_optarg ;; |
| 975 | |
| 976 | -program-transform-name | --program-transform-name \ |
| 977 | | --program-transform-nam | --program-transform-na \ |
| 978 | | --program-transform-n | --program-transform- \ |
| 979 | | --program-transform | --program-transfor \ |
| 980 | | --program-transfo | --program-transf \ |
| 981 | | --program-trans | --program-tran \ |
| 982 | | --progr-tra | --program-tr | --program-t) |
| 983 | ac_prev=program_transform_name ;; |
| 984 | -program-transform-name=* | --program-transform-name=* \ |
| 985 | | --program-transform-nam=* | --program-transform-na=* \ |
| 986 | | --program-transform-n=* | --program-transform-=* \ |
| 987 | | --program-transform=* | --program-transfor=* \ |
| 988 | | --program-transfo=* | --program-transf=* \ |
| 989 | | --program-trans=* | --program-tran=* \ |
| 990 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 991 | program_transform_name=$ac_optarg ;; |
| 992 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 993 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 994 | ac_prev=pdfdir ;; |
| 995 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 996 | pdfdir=$ac_optarg ;; |
| 997 | |
| 998 | -psdir | --psdir | --psdi | --psd | --ps) |
| 999 | ac_prev=psdir ;; |
| 1000 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1001 | psdir=$ac_optarg ;; |
| 1002 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1003 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1004 | | -silent | --silent | --silen | --sile | --sil) |
| 1005 | silent=yes ;; |
| 1006 | |
| 1007 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1008 | ac_prev=sbindir ;; |
| 1009 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1010 | | --sbi=* | --sb=*) |
| 1011 | sbindir=$ac_optarg ;; |
| 1012 | |
| 1013 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1014 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1015 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1016 | | --sha | --sh) |
| 1017 | ac_prev=sharedstatedir ;; |
| 1018 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1019 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1020 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1021 | | --sha=* | --sh=*) |
| 1022 | sharedstatedir=$ac_optarg ;; |
| 1023 | |
| 1024 | -site | --site | --sit) |
| 1025 | ac_prev=site ;; |
| 1026 | -site=* | --site=* | --sit=*) |
| 1027 | site=$ac_optarg ;; |
| 1028 | |
| 1029 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1030 | ac_prev=srcdir ;; |
| 1031 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1032 | srcdir=$ac_optarg ;; |
| 1033 | |
| 1034 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1035 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1036 | ac_prev=sysconfdir ;; |
| 1037 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1038 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1039 | sysconfdir=$ac_optarg ;; |
| 1040 | |
| 1041 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1042 | ac_prev=target_alias ;; |
| 1043 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1044 | target_alias=$ac_optarg ;; |
| 1045 | |
| 1046 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1047 | verbose=yes ;; |
| 1048 | |
| 1049 | -version | --version | --versio | --versi | --vers | -V) |
| 1050 | ac_init_version=: ;; |
| 1051 | |
| 1052 | -with-* | --with-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1053 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1054 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1055 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1056 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1057 | ac_useropt_orig=$ac_useropt |
| 1058 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1059 | case $ac_user_opts in |
| 1060 | *" |
| 1061 | "with_$ac_useropt" |
| 1062 | "*) ;; |
| 1063 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1064 | ac_unrecognized_sep=', ';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1065 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1066 | eval with_$ac_useropt=\$ac_optarg ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1067 | |
| 1068 | -without-* | --without-*) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1069 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1070 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1071 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1072 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1073 | ac_useropt_orig=$ac_useropt |
| 1074 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1075 | case $ac_user_opts in |
| 1076 | *" |
| 1077 | "with_$ac_useropt" |
| 1078 | "*) ;; |
| 1079 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1080 | ac_unrecognized_sep=', ';; |
| 1081 | esac |
| 1082 | eval with_$ac_useropt=no ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1083 | |
| 1084 | --x) |
| 1085 | # Obsolete; use --with-x. |
| 1086 | with_x=yes ;; |
| 1087 | |
| 1088 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1089 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1090 | ac_prev=x_includes ;; |
| 1091 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1092 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1093 | x_includes=$ac_optarg ;; |
| 1094 | |
| 1095 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1096 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1097 | ac_prev=x_libraries ;; |
| 1098 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1099 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1100 | x_libraries=$ac_optarg ;; |
| 1101 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1102 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1103 | Try \`$0 --help' for more information" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1104 | ;; |
| 1105 | |
| 1106 | *=*) |
| 1107 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1108 | # Reject names that are not valid shell variable names. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1109 | case $ac_envvar in #( |
| 1110 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1111 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1112 | esac |
| 1113 | eval $ac_envvar=\$ac_optarg |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1114 | export $ac_envvar ;; |
| 1115 | |
| 1116 | *) |
| 1117 | # FIXME: should be removed in autoconf 3.0. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1118 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1119 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1120 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1121 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1122 | ;; |
| 1123 | |
| 1124 | esac |
| 1125 | done |
| 1126 | |
| 1127 | if test -n "$ac_prev"; then |
| 1128 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1129 | as_fn_error $? "missing argument to $ac_option" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1130 | fi |
| 1131 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1132 | if test -n "$ac_unrecognized_opts"; then |
| 1133 | case $enable_option_checking in |
| 1134 | no) ;; |
| 1135 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1136 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1137 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1138 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1139 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1140 | # Check all directory arguments for consistency. |
| 1141 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1142 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1143 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1144 | libdir localedir mandir |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1145 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1146 | eval ac_val=\$$ac_var |
| 1147 | # Remove trailing slashes. |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 1148 | case $ac_val in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1149 | */ ) |
| 1150 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1151 | eval $ac_var=\$ac_val;; |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 1152 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1153 | # Be sure to have absolute directory names. |
| 1154 | case $ac_val in |
| 1155 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1156 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1157 | esac |
| 1158 | 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] | 1159 | done |
| 1160 | |
| 1161 | # There might be people who depend on the old broken behavior: `$host' |
| 1162 | # used to hold the argument of --host etc. |
| 1163 | # FIXME: To remove some day. |
| 1164 | build=$build_alias |
| 1165 | host=$host_alias |
| 1166 | target=$target_alias |
| 1167 | |
| 1168 | # FIXME: To remove some day. |
| 1169 | if test "x$host_alias" != x; then |
| 1170 | if test "x$build_alias" = x; then |
| 1171 | cross_compiling=maybe |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1172 | elif test "x$build_alias" != "x$host_alias"; then |
| 1173 | cross_compiling=yes |
| 1174 | fi |
| 1175 | fi |
| 1176 | |
| 1177 | ac_tool_prefix= |
| 1178 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1179 | |
| 1180 | test "$silent" = yes && exec 6>/dev/null |
| 1181 | |
| 1182 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1183 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1184 | ac_ls_di=`ls -di .` && |
| 1185 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1186 | as_fn_error $? "working directory cannot be determined" |
| 1187 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1188 | as_fn_error $? "pwd does not report name of working directory" |
| 1189 | |
| 1190 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1191 | # Find the source files, if location was not specified. |
| 1192 | if test -z "$srcdir"; then |
| 1193 | ac_srcdir_defaulted=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1194 | # Try the directory containing this script, then the parent directory. |
| 1195 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1196 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1197 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1198 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1199 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1200 | $as_echo X"$as_myself" | |
| 1201 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1202 | s//\1/ |
| 1203 | q |
| 1204 | } |
| 1205 | /^X\(\/\/\)[^/].*/{ |
| 1206 | s//\1/ |
| 1207 | q |
| 1208 | } |
| 1209 | /^X\(\/\/\)$/{ |
| 1210 | s//\1/ |
| 1211 | q |
| 1212 | } |
| 1213 | /^X\(\/\).*/{ |
| 1214 | s//\1/ |
| 1215 | q |
| 1216 | } |
| 1217 | s/.*/./; q'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1218 | srcdir=$ac_confdir |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1219 | if test ! -r "$srcdir/$ac_unique_file"; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1220 | srcdir=.. |
| 1221 | fi |
| 1222 | else |
| 1223 | ac_srcdir_defaulted=no |
| 1224 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1225 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1226 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1227 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1228 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1229 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1230 | ac_abs_confdir=`( |
| 1231 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1232 | pwd)` |
| 1233 | # When building in place, set srcdir=. |
| 1234 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1235 | srcdir=. |
| 1236 | fi |
| 1237 | # Remove unnecessary trailing slashes from srcdir. |
| 1238 | # Double slashes in file names in object file debugging info |
| 1239 | # mess up M-x gdb in Emacs. |
| 1240 | case $srcdir in |
| 1241 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1242 | esac |
| 1243 | for ac_var in $ac_precious_vars; do |
| 1244 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1245 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1246 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1247 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1248 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1249 | |
| 1250 | # |
| 1251 | # Report the --help message. |
| 1252 | # |
| 1253 | if test "$ac_init_help" = "long"; then |
| 1254 | # Omit some internal or obsolete options to make the list less imposing. |
| 1255 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1256 | cat <<_ACEOF |
jfigus | e806a66 | 2015-03-11 10:02:12 -0400 | [diff] [blame] | 1257 | \`configure' configures libsrtp 1.5.2 to adapt to many kinds of systems. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1258 | |
| 1259 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1260 | |
| 1261 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1262 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1263 | |
| 1264 | Defaults for the options are specified in brackets. |
| 1265 | |
| 1266 | Configuration: |
| 1267 | -h, --help display this help and exit |
| 1268 | --help=short display options specific to this package |
| 1269 | --help=recursive display the short help of all the included packages |
| 1270 | -V, --version display version information and exit |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1271 | -q, --quiet, --silent do not print \`checking ...' messages |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1272 | --cache-file=FILE cache test results in FILE [disabled] |
| 1273 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1274 | -n, --no-create do not create output files |
| 1275 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1276 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1277 | Installation directories: |
| 1278 | --prefix=PREFIX install architecture-independent files in PREFIX |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1279 | [$ac_default_prefix] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1280 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1281 | [PREFIX] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1282 | |
| 1283 | By default, \`make install' will install all the files in |
| 1284 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1285 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1286 | for instance \`--prefix=\$HOME'. |
| 1287 | |
| 1288 | For better control, use the options below. |
| 1289 | |
| 1290 | Fine tuning of the installation directories: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1291 | --bindir=DIR user executables [EPREFIX/bin] |
| 1292 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1293 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1294 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1295 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1296 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1297 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1298 | --includedir=DIR C header files [PREFIX/include] |
| 1299 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1300 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1301 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1302 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1303 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1304 | --mandir=DIR man documentation [DATAROOTDIR/man] |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 1305 | --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp] |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1306 | --htmldir=DIR html documentation [DOCDIR] |
| 1307 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1308 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1309 | --psdir=DIR ps documentation [DOCDIR] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1310 | _ACEOF |
| 1311 | |
| 1312 | cat <<\_ACEOF |
| 1313 | |
| 1314 | System types: |
| 1315 | --build=BUILD configure for building on BUILD [guessed] |
| 1316 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1317 | _ACEOF |
| 1318 | fi |
| 1319 | |
| 1320 | if test -n "$ac_init_help"; then |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 1321 | case $ac_init_help in |
jfigus | e806a66 | 2015-03-11 10:02:12 -0400 | [diff] [blame] | 1322 | short | recursive ) echo "Configuration of libsrtp 1.5.2:";; |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 1323 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1324 | cat <<\_ACEOF |
| 1325 | |
| 1326 | Optional Features: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1327 | --disable-option-checking ignore unrecognized --enable/--with options |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1328 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1329 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Marcus Sundberg | 64536cc | 2005-10-03 15:23:13 +0000 | [diff] [blame] | 1330 | --enable-kernel-linux build library to run in Linux kernel context |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 1331 | --disable-debug do not compile in dynamic debugging system |
| 1332 | --enable-generic-aesicm compile in changes for ISMAcryp |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1333 | --enable-openssl compile in OpenSSL crypto engine |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 1334 | --enable-syslog use syslog for error reporting |
| 1335 | --disable-stdout don't use stdout for error reporting |
| 1336 | --enable-console use /dev/console for error reporting |
| 1337 | --enable-gdoi enable GDOI key management |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1338 | |
| 1339 | Some influential environment variables: |
| 1340 | CC C compiler command |
| 1341 | CFLAGS C compiler flags |
| 1342 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1343 | nonstandard directory <lib dir> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1344 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1345 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1346 | you have headers in a nonstandard directory <include dir> |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1347 | CPP C preprocessor |
| 1348 | |
| 1349 | Use these variables to override the choices made by `configure' or to help |
| 1350 | it to find libraries and programs with nonstandard names/locations. |
| 1351 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 1352 | Report bugs to <https://github.com/cisco/libsrtp/issues>. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1353 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1354 | ac_status=$? |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1355 | fi |
| 1356 | |
| 1357 | if test "$ac_init_help" = "recursive"; then |
| 1358 | # If there are subdirs, report their specific --help. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1359 | 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] | 1360 | test -d "$ac_dir" || |
| 1361 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1362 | continue |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1363 | ac_builddir=. |
| 1364 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1365 | case "$ac_dir" in |
| 1366 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1367 | *) |
| 1368 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1369 | # A ".." for each directory in $ac_dir_suffix. |
| 1370 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1371 | case $ac_top_builddir_sub in |
| 1372 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1373 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1374 | esac ;; |
| 1375 | esac |
| 1376 | ac_abs_top_builddir=$ac_pwd |
| 1377 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1378 | # for backward compatibility: |
| 1379 | ac_top_builddir=$ac_top_build_prefix |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1380 | |
| 1381 | case $srcdir in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1382 | .) # We are building in place. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1383 | ac_srcdir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1384 | ac_top_srcdir=$ac_top_builddir_sub |
| 1385 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1386 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1387 | ac_srcdir=$srcdir$ac_dir_suffix; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1388 | ac_top_srcdir=$srcdir |
| 1389 | ac_abs_top_srcdir=$srcdir ;; |
| 1390 | *) # Relative name. |
| 1391 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1392 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1393 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1394 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1395 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1396 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1397 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1398 | # Check for guested configure. |
| 1399 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1400 | echo && |
| 1401 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1402 | elif test -f "$ac_srcdir/configure"; then |
| 1403 | echo && |
| 1404 | $SHELL "$ac_srcdir/configure" --help=recursive |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 1405 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1406 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1407 | fi || ac_status=$? |
| 1408 | cd "$ac_pwd" || { ac_status=$?; break; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1409 | done |
| 1410 | fi |
| 1411 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1412 | test -n "$ac_init_help" && exit $ac_status |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1413 | if $ac_init_version; then |
| 1414 | cat <<\_ACEOF |
jfigus | e806a66 | 2015-03-11 10:02:12 -0400 | [diff] [blame] | 1415 | libsrtp configure 1.5.2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1416 | generated by GNU Autoconf 2.69 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1417 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1418 | Copyright (C) 2012 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1419 | This configure script is free software; the Free Software Foundation |
| 1420 | gives unlimited permission to copy, distribute and modify it. |
| 1421 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1422 | exit |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1423 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1424 | |
| 1425 | ## ------------------------ ## |
| 1426 | ## Autoconf initialization. ## |
| 1427 | ## ------------------------ ## |
| 1428 | |
| 1429 | # ac_fn_c_try_compile LINENO |
| 1430 | # -------------------------- |
| 1431 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1432 | ac_fn_c_try_compile () |
| 1433 | { |
| 1434 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1435 | rm -f conftest.$ac_objext |
| 1436 | if { { ac_try="$ac_compile" |
| 1437 | case "(($ac_try" in |
| 1438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1439 | *) ac_try_echo=$ac_try;; |
| 1440 | esac |
| 1441 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1442 | $as_echo "$ac_try_echo"; } >&5 |
| 1443 | (eval "$ac_compile") 2>conftest.err |
| 1444 | ac_status=$? |
| 1445 | if test -s conftest.err; then |
| 1446 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1447 | cat conftest.er1 >&5 |
| 1448 | mv -f conftest.er1 conftest.err |
| 1449 | fi |
| 1450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1451 | test $ac_status = 0; } && { |
| 1452 | test -z "$ac_c_werror_flag" || |
| 1453 | test ! -s conftest.err |
| 1454 | } && test -s conftest.$ac_objext; then : |
| 1455 | ac_retval=0 |
| 1456 | else |
| 1457 | $as_echo "$as_me: failed program was:" >&5 |
| 1458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1459 | |
| 1460 | ac_retval=1 |
| 1461 | fi |
| 1462 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1463 | as_fn_set_status $ac_retval |
| 1464 | |
| 1465 | } # ac_fn_c_try_compile |
| 1466 | |
| 1467 | # ac_fn_c_try_run LINENO |
| 1468 | # ---------------------- |
| 1469 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1470 | # that executables *can* be run. |
| 1471 | ac_fn_c_try_run () |
| 1472 | { |
| 1473 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1474 | if { { ac_try="$ac_link" |
| 1475 | case "(($ac_try" in |
| 1476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1477 | *) ac_try_echo=$ac_try;; |
| 1478 | esac |
| 1479 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1480 | $as_echo "$ac_try_echo"; } >&5 |
| 1481 | (eval "$ac_link") 2>&5 |
| 1482 | ac_status=$? |
| 1483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1484 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1485 | { { case "(($ac_try" in |
| 1486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1487 | *) ac_try_echo=$ac_try;; |
| 1488 | esac |
| 1489 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1490 | $as_echo "$ac_try_echo"; } >&5 |
| 1491 | (eval "$ac_try") 2>&5 |
| 1492 | ac_status=$? |
| 1493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1494 | test $ac_status = 0; }; }; then : |
| 1495 | ac_retval=0 |
| 1496 | else |
| 1497 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1498 | $as_echo "$as_me: failed program was:" >&5 |
| 1499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1500 | |
| 1501 | ac_retval=$ac_status |
| 1502 | fi |
| 1503 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1504 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1505 | as_fn_set_status $ac_retval |
| 1506 | |
| 1507 | } # ac_fn_c_try_run |
| 1508 | |
| 1509 | # ac_fn_c_try_cpp LINENO |
| 1510 | # ---------------------- |
| 1511 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1512 | ac_fn_c_try_cpp () |
| 1513 | { |
| 1514 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1515 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1516 | case "(($ac_try" in |
| 1517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1518 | *) ac_try_echo=$ac_try;; |
| 1519 | esac |
| 1520 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1521 | $as_echo "$ac_try_echo"; } >&5 |
| 1522 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1523 | ac_status=$? |
| 1524 | if test -s conftest.err; then |
| 1525 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1526 | cat conftest.er1 >&5 |
| 1527 | mv -f conftest.er1 conftest.err |
| 1528 | fi |
| 1529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1530 | test $ac_status = 0; } > conftest.i && { |
| 1531 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1532 | test ! -s conftest.err |
| 1533 | }; then : |
| 1534 | ac_retval=0 |
| 1535 | else |
| 1536 | $as_echo "$as_me: failed program was:" >&5 |
| 1537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1538 | |
| 1539 | ac_retval=1 |
| 1540 | fi |
| 1541 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1542 | as_fn_set_status $ac_retval |
| 1543 | |
| 1544 | } # ac_fn_c_try_cpp |
| 1545 | |
| 1546 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1547 | # ------------------------------------------------------- |
| 1548 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1549 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1550 | ac_fn_c_check_header_compile () |
| 1551 | { |
| 1552 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1554 | $as_echo_n "checking for $2... " >&6; } |
| 1555 | if eval \${$3+:} false; then : |
| 1556 | $as_echo_n "(cached) " >&6 |
| 1557 | else |
| 1558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1559 | /* end confdefs.h. */ |
| 1560 | $4 |
| 1561 | #include <$2> |
| 1562 | _ACEOF |
| 1563 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1564 | eval "$3=yes" |
| 1565 | else |
| 1566 | eval "$3=no" |
| 1567 | fi |
| 1568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1569 | fi |
| 1570 | eval ac_res=\$$3 |
| 1571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1572 | $as_echo "$ac_res" >&6; } |
| 1573 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1574 | |
| 1575 | } # ac_fn_c_check_header_compile |
| 1576 | |
| 1577 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1578 | # ------------------------------------------------------- |
| 1579 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1580 | # the include files in INCLUDES and setting the cache variable VAR |
| 1581 | # accordingly. |
| 1582 | ac_fn_c_check_header_mongrel () |
| 1583 | { |
| 1584 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1585 | if eval \${$3+:} false; then : |
| 1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1587 | $as_echo_n "checking for $2... " >&6; } |
| 1588 | if eval \${$3+:} false; then : |
| 1589 | $as_echo_n "(cached) " >&6 |
| 1590 | fi |
| 1591 | eval ac_res=\$$3 |
| 1592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1593 | $as_echo "$ac_res" >&6; } |
| 1594 | else |
| 1595 | # Is the header compilable? |
| 1596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1597 | $as_echo_n "checking $2 usability... " >&6; } |
| 1598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1599 | /* end confdefs.h. */ |
| 1600 | $4 |
| 1601 | #include <$2> |
| 1602 | _ACEOF |
| 1603 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1604 | ac_header_compiler=yes |
| 1605 | else |
| 1606 | ac_header_compiler=no |
| 1607 | fi |
| 1608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1610 | $as_echo "$ac_header_compiler" >&6; } |
| 1611 | |
| 1612 | # Is the header present? |
| 1613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1614 | $as_echo_n "checking $2 presence... " >&6; } |
| 1615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1616 | /* end confdefs.h. */ |
| 1617 | #include <$2> |
| 1618 | _ACEOF |
| 1619 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1620 | ac_header_preproc=yes |
| 1621 | else |
| 1622 | ac_header_preproc=no |
| 1623 | fi |
| 1624 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1626 | $as_echo "$ac_header_preproc" >&6; } |
| 1627 | |
| 1628 | # So? What about this header? |
| 1629 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1630 | yes:no: ) |
| 1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1632 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1634 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1635 | ;; |
| 1636 | no:yes:* ) |
| 1637 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1638 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1640 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1642 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1643 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1644 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1645 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1646 | $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] | 1647 | ( $as_echo "## ------------------------------------------------------ ## |
| 1648 | ## Report this to https://github.com/cisco/libsrtp/issues ## |
| 1649 | ## ------------------------------------------------------ ##" |
| 1650 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 1651 | ;; |
| 1652 | esac |
| 1653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1654 | $as_echo_n "checking for $2... " >&6; } |
| 1655 | if eval \${$3+:} false; then : |
| 1656 | $as_echo_n "(cached) " >&6 |
| 1657 | else |
| 1658 | eval "$3=\$ac_header_compiler" |
| 1659 | fi |
| 1660 | eval ac_res=\$$3 |
| 1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1662 | $as_echo "$ac_res" >&6; } |
| 1663 | fi |
| 1664 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1665 | |
| 1666 | } # ac_fn_c_check_header_mongrel |
| 1667 | |
| 1668 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1669 | # ------------------------------------------- |
| 1670 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1671 | # variable VAR accordingly. |
| 1672 | ac_fn_c_check_type () |
| 1673 | { |
| 1674 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1676 | $as_echo_n "checking for $2... " >&6; } |
| 1677 | if eval \${$3+:} false; then : |
| 1678 | $as_echo_n "(cached) " >&6 |
| 1679 | else |
| 1680 | eval "$3=no" |
| 1681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1682 | /* end confdefs.h. */ |
| 1683 | $4 |
| 1684 | int |
| 1685 | main () |
| 1686 | { |
| 1687 | if (sizeof ($2)) |
| 1688 | return 0; |
| 1689 | ; |
| 1690 | return 0; |
| 1691 | } |
| 1692 | _ACEOF |
| 1693 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1695 | /* end confdefs.h. */ |
| 1696 | $4 |
| 1697 | int |
| 1698 | main () |
| 1699 | { |
| 1700 | if (sizeof (($2))) |
| 1701 | return 0; |
| 1702 | ; |
| 1703 | return 0; |
| 1704 | } |
| 1705 | _ACEOF |
| 1706 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1707 | |
| 1708 | else |
| 1709 | eval "$3=yes" |
| 1710 | fi |
| 1711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1712 | fi |
| 1713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1714 | fi |
| 1715 | eval ac_res=\$$3 |
| 1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1717 | $as_echo "$ac_res" >&6; } |
| 1718 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1719 | |
| 1720 | } # ac_fn_c_check_type |
| 1721 | |
| 1722 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1723 | # -------------------------------------------- |
| 1724 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1725 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1726 | # computed |
| 1727 | ac_fn_c_compute_int () |
| 1728 | { |
| 1729 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1730 | if test "$cross_compiling" = yes; then |
| 1731 | # Depending upon the size, compute the lo and hi bounds. |
| 1732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1733 | /* end confdefs.h. */ |
| 1734 | $4 |
| 1735 | int |
| 1736 | main () |
| 1737 | { |
| 1738 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 1739 | test_array [0] = 0; |
| 1740 | return test_array [0]; |
| 1741 | |
| 1742 | ; |
| 1743 | return 0; |
| 1744 | } |
| 1745 | _ACEOF |
| 1746 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1747 | ac_lo=0 ac_mid=0 |
| 1748 | while :; do |
| 1749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1750 | /* end confdefs.h. */ |
| 1751 | $4 |
| 1752 | int |
| 1753 | main () |
| 1754 | { |
| 1755 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 1756 | test_array [0] = 0; |
| 1757 | return test_array [0]; |
| 1758 | |
| 1759 | ; |
| 1760 | return 0; |
| 1761 | } |
| 1762 | _ACEOF |
| 1763 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1764 | ac_hi=$ac_mid; break |
| 1765 | else |
| 1766 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 1767 | if test $ac_lo -le $ac_mid; then |
| 1768 | ac_lo= ac_hi= |
| 1769 | break |
| 1770 | fi |
| 1771 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 1772 | fi |
| 1773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1774 | done |
| 1775 | else |
| 1776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1777 | /* end confdefs.h. */ |
| 1778 | $4 |
| 1779 | int |
| 1780 | main () |
| 1781 | { |
| 1782 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 1783 | test_array [0] = 0; |
| 1784 | return test_array [0]; |
| 1785 | |
| 1786 | ; |
| 1787 | return 0; |
| 1788 | } |
| 1789 | _ACEOF |
| 1790 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1791 | ac_hi=-1 ac_mid=-1 |
| 1792 | while :; do |
| 1793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1794 | /* end confdefs.h. */ |
| 1795 | $4 |
| 1796 | int |
| 1797 | main () |
| 1798 | { |
| 1799 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 1800 | test_array [0] = 0; |
| 1801 | return test_array [0]; |
| 1802 | |
| 1803 | ; |
| 1804 | return 0; |
| 1805 | } |
| 1806 | _ACEOF |
| 1807 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1808 | ac_lo=$ac_mid; break |
| 1809 | else |
| 1810 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 1811 | if test $ac_mid -le $ac_hi; then |
| 1812 | ac_lo= ac_hi= |
| 1813 | break |
| 1814 | fi |
| 1815 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 1816 | fi |
| 1817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1818 | done |
| 1819 | else |
| 1820 | ac_lo= ac_hi= |
| 1821 | fi |
| 1822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1823 | fi |
| 1824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1825 | # Binary search between lo and hi bounds. |
| 1826 | while test "x$ac_lo" != "x$ac_hi"; do |
| 1827 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 1828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1829 | /* end confdefs.h. */ |
| 1830 | $4 |
| 1831 | int |
| 1832 | main () |
| 1833 | { |
| 1834 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 1835 | test_array [0] = 0; |
| 1836 | return test_array [0]; |
| 1837 | |
| 1838 | ; |
| 1839 | return 0; |
| 1840 | } |
| 1841 | _ACEOF |
| 1842 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1843 | ac_hi=$ac_mid |
| 1844 | else |
| 1845 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 1846 | fi |
| 1847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1848 | done |
| 1849 | case $ac_lo in #(( |
| 1850 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 1851 | '') ac_retval=1 ;; |
| 1852 | esac |
| 1853 | else |
| 1854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1855 | /* end confdefs.h. */ |
| 1856 | $4 |
| 1857 | static long int longval () { return $2; } |
| 1858 | static unsigned long int ulongval () { return $2; } |
| 1859 | #include <stdio.h> |
| 1860 | #include <stdlib.h> |
| 1861 | int |
| 1862 | main () |
| 1863 | { |
| 1864 | |
| 1865 | FILE *f = fopen ("conftest.val", "w"); |
| 1866 | if (! f) |
| 1867 | return 1; |
| 1868 | if (($2) < 0) |
| 1869 | { |
| 1870 | long int i = longval (); |
| 1871 | if (i != ($2)) |
| 1872 | return 1; |
| 1873 | fprintf (f, "%ld", i); |
| 1874 | } |
| 1875 | else |
| 1876 | { |
| 1877 | unsigned long int i = ulongval (); |
| 1878 | if (i != ($2)) |
| 1879 | return 1; |
| 1880 | fprintf (f, "%lu", i); |
| 1881 | } |
| 1882 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 1883 | on some platforms. */ |
| 1884 | return ferror (f) || fclose (f) != 0; |
| 1885 | |
| 1886 | ; |
| 1887 | return 0; |
| 1888 | } |
| 1889 | _ACEOF |
| 1890 | if ac_fn_c_try_run "$LINENO"; then : |
| 1891 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 1892 | else |
| 1893 | ac_retval=1 |
| 1894 | fi |
| 1895 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 1896 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1897 | rm -f conftest.val |
| 1898 | |
| 1899 | fi |
| 1900 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1901 | as_fn_set_status $ac_retval |
| 1902 | |
| 1903 | } # ac_fn_c_compute_int |
| 1904 | |
| 1905 | # ac_fn_c_try_link LINENO |
| 1906 | # ----------------------- |
| 1907 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1908 | ac_fn_c_try_link () |
| 1909 | { |
| 1910 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1911 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1912 | if { { ac_try="$ac_link" |
| 1913 | case "(($ac_try" in |
| 1914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1915 | *) ac_try_echo=$ac_try;; |
| 1916 | esac |
| 1917 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1918 | $as_echo "$ac_try_echo"; } >&5 |
| 1919 | (eval "$ac_link") 2>conftest.err |
| 1920 | ac_status=$? |
| 1921 | if test -s conftest.err; then |
| 1922 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1923 | cat conftest.er1 >&5 |
| 1924 | mv -f conftest.er1 conftest.err |
| 1925 | fi |
| 1926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1927 | test $ac_status = 0; } && { |
| 1928 | test -z "$ac_c_werror_flag" || |
| 1929 | test ! -s conftest.err |
| 1930 | } && test -s conftest$ac_exeext && { |
| 1931 | test "$cross_compiling" = yes || |
| 1932 | test -x conftest$ac_exeext |
| 1933 | }; then : |
| 1934 | ac_retval=0 |
| 1935 | else |
| 1936 | $as_echo "$as_me: failed program was:" >&5 |
| 1937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1938 | |
| 1939 | ac_retval=1 |
| 1940 | fi |
| 1941 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1942 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1943 | # interfere with the next link command; also delete a directory that is |
| 1944 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1945 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1946 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1947 | as_fn_set_status $ac_retval |
| 1948 | |
| 1949 | } # ac_fn_c_try_link |
| 1950 | |
| 1951 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1952 | # ---------------------------------- |
| 1953 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1954 | ac_fn_c_check_func () |
| 1955 | { |
| 1956 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1958 | $as_echo_n "checking for $2... " >&6; } |
| 1959 | if eval \${$3+:} false; then : |
| 1960 | $as_echo_n "(cached) " >&6 |
| 1961 | else |
| 1962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1963 | /* end confdefs.h. */ |
| 1964 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1965 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1966 | #define $2 innocuous_$2 |
| 1967 | |
| 1968 | /* System header to define __stub macros and hopefully few prototypes, |
| 1969 | which can conflict with char $2 (); below. |
| 1970 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1971 | <limits.h> exists even on freestanding compilers. */ |
| 1972 | |
| 1973 | #ifdef __STDC__ |
| 1974 | # include <limits.h> |
| 1975 | #else |
| 1976 | # include <assert.h> |
| 1977 | #endif |
| 1978 | |
| 1979 | #undef $2 |
| 1980 | |
| 1981 | /* Override any GCC internal prototype to avoid an error. |
| 1982 | Use char because int might match the return type of a GCC |
| 1983 | builtin and then its argument prototype would still apply. */ |
| 1984 | #ifdef __cplusplus |
| 1985 | extern "C" |
| 1986 | #endif |
| 1987 | char $2 (); |
| 1988 | /* The GNU C library defines this for functions which it implements |
| 1989 | to always fail with ENOSYS. Some functions are actually named |
| 1990 | something starting with __ and the normal name is an alias. */ |
| 1991 | #if defined __stub_$2 || defined __stub___$2 |
| 1992 | choke me |
| 1993 | #endif |
| 1994 | |
| 1995 | int |
| 1996 | main () |
| 1997 | { |
| 1998 | return $2 (); |
| 1999 | ; |
| 2000 | return 0; |
| 2001 | } |
| 2002 | _ACEOF |
| 2003 | if ac_fn_c_try_link "$LINENO"; then : |
| 2004 | eval "$3=yes" |
| 2005 | else |
| 2006 | eval "$3=no" |
| 2007 | fi |
| 2008 | rm -f core conftest.err conftest.$ac_objext \ |
| 2009 | conftest$ac_exeext conftest.$ac_ext |
| 2010 | fi |
| 2011 | eval ac_res=\$$3 |
| 2012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2013 | $as_echo "$ac_res" >&6; } |
| 2014 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2015 | |
| 2016 | } # ac_fn_c_check_func |
| 2017 | cat >config.log <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2018 | This file contains any messages produced by compilers while |
| 2019 | running configure, to aid debugging if configure makes a mistake. |
| 2020 | |
jfigus | e806a66 | 2015-03-11 10:02:12 -0400 | [diff] [blame] | 2021 | It was created by libsrtp $as_me 1.5.2, which was |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2022 | generated by GNU Autoconf 2.69. Invocation command line was |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2023 | |
| 2024 | $ $0 $@ |
| 2025 | |
| 2026 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2027 | exec 5>>config.log |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2028 | { |
| 2029 | cat <<_ASUNAME |
| 2030 | ## --------- ## |
| 2031 | ## Platform. ## |
| 2032 | ## --------- ## |
| 2033 | |
| 2034 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2035 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2036 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2037 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2038 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2039 | |
| 2040 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2041 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2042 | |
| 2043 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2044 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2045 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2046 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2047 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2048 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2049 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2050 | |
| 2051 | _ASUNAME |
| 2052 | |
| 2053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2054 | for as_dir in $PATH |
| 2055 | do |
| 2056 | IFS=$as_save_IFS |
| 2057 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2058 | $as_echo "PATH: $as_dir" |
| 2059 | done |
| 2060 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2061 | |
| 2062 | } >&5 |
| 2063 | |
| 2064 | cat >&5 <<_ACEOF |
| 2065 | |
| 2066 | |
| 2067 | ## ----------- ## |
| 2068 | ## Core tests. ## |
| 2069 | ## ----------- ## |
| 2070 | |
| 2071 | _ACEOF |
| 2072 | |
| 2073 | |
| 2074 | # Keep a trace of the command line. |
| 2075 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2076 | # Strip out --silent because we don't want to record it for future runs. |
| 2077 | # Also quote any args containing shell meta-characters. |
| 2078 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2079 | ac_configure_args= |
| 2080 | ac_configure_args0= |
| 2081 | ac_configure_args1= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2082 | ac_must_keep_next=false |
| 2083 | for ac_pass in 1 2 |
| 2084 | do |
| 2085 | for ac_arg |
| 2086 | do |
| 2087 | case $ac_arg in |
| 2088 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2089 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2090 | | -silent | --silent | --silen | --sile | --sil) |
| 2091 | continue ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2092 | *\'*) |
| 2093 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2094 | esac |
| 2095 | case $ac_pass in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2096 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2097 | 2) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2098 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2099 | if test $ac_must_keep_next = true; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2100 | ac_must_keep_next=false # Got value, back to normal. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2101 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2102 | case $ac_arg in |
| 2103 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2104 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2105 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2106 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2107 | case "$ac_configure_args0 " in |
| 2108 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2109 | esac |
| 2110 | ;; |
| 2111 | -* ) ac_must_keep_next=true ;; |
| 2112 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2113 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2114 | as_fn_append ac_configure_args " '$ac_arg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2115 | ;; |
| 2116 | esac |
| 2117 | done |
| 2118 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2119 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2120 | { ac_configure_args1=; unset ac_configure_args1;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2121 | |
| 2122 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2123 | # config.log. We remove comments because anyway the quotes in there |
| 2124 | # would cause problems or look ugly. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2125 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2126 | # 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] | 2127 | trap 'exit_status=$? |
| 2128 | # Save into config.log some information that might help in debugging. |
| 2129 | { |
| 2130 | echo |
| 2131 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2132 | $as_echo "## ---------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2133 | ## Cache variables. ## |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2134 | ## ---------------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2135 | echo |
| 2136 | # The following way of writing the cache mishandles newlines in values, |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2137 | ( |
| 2138 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2139 | eval ac_val=\$$ac_var |
| 2140 | case $ac_val in #( |
| 2141 | *${as_nl}*) |
| 2142 | case $ac_var in #( |
| 2143 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2144 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2145 | esac |
| 2146 | case $ac_var in #( |
| 2147 | _ | IFS | as_nl) ;; #( |
| 2148 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2149 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2150 | esac ;; |
| 2151 | esac |
| 2152 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2153 | (set) 2>&1 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2154 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2155 | *${as_nl}ac_space=\ *) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2156 | sed -n \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2157 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2158 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2159 | ;; #( |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2160 | *) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2161 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2162 | ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2163 | esac | |
| 2164 | sort |
| 2165 | ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2166 | echo |
| 2167 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2168 | $as_echo "## ----------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2169 | ## Output variables. ## |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2170 | ## ----------------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2171 | echo |
| 2172 | for ac_var in $ac_subst_vars |
| 2173 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2174 | eval ac_val=\$$ac_var |
| 2175 | case $ac_val in |
| 2176 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2177 | esac |
| 2178 | $as_echo "$ac_var='\''$ac_val'\''" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2179 | done | sort |
| 2180 | echo |
| 2181 | |
| 2182 | if test -n "$ac_subst_files"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2183 | $as_echo "## ------------------- ## |
| 2184 | ## File substitutions. ## |
| 2185 | ## ------------------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2186 | echo |
| 2187 | for ac_var in $ac_subst_files |
| 2188 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2189 | eval ac_val=\$$ac_var |
| 2190 | case $ac_val in |
| 2191 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2192 | esac |
| 2193 | $as_echo "$ac_var='\''$ac_val'\''" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2194 | done | sort |
| 2195 | echo |
| 2196 | fi |
| 2197 | |
| 2198 | if test -s confdefs.h; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2199 | $as_echo "## ----------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2200 | ## confdefs.h. ## |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2201 | ## ----------- ##" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2202 | echo |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2203 | cat confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2204 | echo |
| 2205 | fi |
| 2206 | test "$ac_signal" != 0 && |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2207 | $as_echo "$as_me: caught signal $ac_signal" |
| 2208 | $as_echo "$as_me: exit $exit_status" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2209 | } >&5 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2210 | rm -f core *.core core.conftest.* && |
| 2211 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2212 | exit $exit_status |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2213 | ' 0 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2214 | for ac_signal in 1 2 13 15; do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2215 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2216 | done |
| 2217 | ac_signal=0 |
| 2218 | |
| 2219 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2220 | rm -f -r conftest* confdefs.h |
| 2221 | |
| 2222 | $as_echo "/* confdefs.h */" > confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2223 | |
| 2224 | # Predefined preprocessor variables. |
| 2225 | |
| 2226 | cat >>confdefs.h <<_ACEOF |
| 2227 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2228 | _ACEOF |
| 2229 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2230 | cat >>confdefs.h <<_ACEOF |
| 2231 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2232 | _ACEOF |
| 2233 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2234 | cat >>confdefs.h <<_ACEOF |
| 2235 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2236 | _ACEOF |
| 2237 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2238 | cat >>confdefs.h <<_ACEOF |
| 2239 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2240 | _ACEOF |
| 2241 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2242 | cat >>confdefs.h <<_ACEOF |
| 2243 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2244 | _ACEOF |
| 2245 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2246 | cat >>confdefs.h <<_ACEOF |
| 2247 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2248 | _ACEOF |
| 2249 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2250 | |
| 2251 | # Let the site file select an alternate cache file if it wants to. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2252 | # Prefer an explicitly selected file to automatically selected ones. |
| 2253 | ac_site_file1=NONE |
| 2254 | ac_site_file2=NONE |
| 2255 | if test -n "$CONFIG_SITE"; then |
| 2256 | # We do not want a PATH search for config.site. |
| 2257 | case $CONFIG_SITE in #(( |
| 2258 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2259 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2260 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2261 | esac |
| 2262 | elif test "x$prefix" != xNONE; then |
| 2263 | ac_site_file1=$prefix/share/config.site |
| 2264 | ac_site_file2=$prefix/etc/config.site |
| 2265 | else |
| 2266 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2267 | ac_site_file2=$ac_default_prefix/etc/config.site |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2268 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2269 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2270 | do |
| 2271 | test "x$ac_site_file" = xNONE && continue |
| 2272 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2274 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2275 | sed 's/^/| /' "$ac_site_file" >&5 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2276 | . "$ac_site_file" \ |
| 2277 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2278 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2279 | as_fn_error $? "failed to load site script $ac_site_file |
| 2280 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2281 | fi |
| 2282 | done |
| 2283 | |
| 2284 | if test -r "$cache_file"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2285 | # Some versions of bash will fail to source /dev/null (special files |
| 2286 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2287 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2289 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2290 | case $cache_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2291 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2292 | *) . "./$cache_file";; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2293 | esac |
| 2294 | fi |
| 2295 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2297 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2298 | >$cache_file |
| 2299 | fi |
| 2300 | |
| 2301 | # Check that the precious variables saved in the cache have kept the same |
| 2302 | # value. |
| 2303 | ac_cache_corrupted=false |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2304 | for ac_var in $ac_precious_vars; do |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2305 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2306 | eval ac_new_set=\$ac_env_${ac_var}_set |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2307 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2308 | eval ac_new_val=\$ac_env_${ac_var}_value |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2309 | case $ac_old_set,$ac_new_set in |
| 2310 | set,) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2312 | $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] | 2313 | ac_cache_corrupted=: ;; |
| 2314 | ,set) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2316 | $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] | 2317 | ac_cache_corrupted=: ;; |
| 2318 | ,);; |
| 2319 | *) |
| 2320 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2321 | # differences in whitespace do not lead to failure. |
| 2322 | ac_old_val_w=`echo x $ac_old_val` |
| 2323 | ac_new_val_w=`echo x $ac_new_val` |
| 2324 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2325 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2326 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2327 | ac_cache_corrupted=: |
| 2328 | else |
| 2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2330 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2331 | eval $ac_var=\$ac_old_val |
| 2332 | fi |
| 2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2334 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2336 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2337 | fi;; |
| 2338 | esac |
| 2339 | # Pass precious variables to config.status. |
| 2340 | if test "$ac_new_set" = set; then |
| 2341 | case $ac_new_val in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2342 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2343 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2344 | esac |
| 2345 | case " $ac_configure_args " in |
| 2346 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2347 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2348 | esac |
| 2349 | fi |
| 2350 | done |
| 2351 | if $ac_cache_corrupted; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2353 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2355 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2356 | 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] | 2357 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2358 | ## -------------------- ## |
| 2359 | ## Main body of script. ## |
| 2360 | ## -------------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2361 | |
| 2362 | ac_ext=c |
| 2363 | ac_cpp='$CPP $CPPFLAGS' |
| 2364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2367 | |
| 2368 | |
| 2369 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 2370 | if test -z "$CFLAGS"; then |
Sean Bright | bfb9e30 | 2014-03-24 20:45:17 -0400 | [diff] [blame] | 2371 | CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops" |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 2372 | fi |
| 2373 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2374 | if test -n "$ac_tool_prefix"; then |
| 2375 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2376 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2378 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2379 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 2380 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2381 | else |
| 2382 | if test -n "$RANLIB"; then |
| 2383 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2384 | else |
| 2385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2386 | for as_dir in $PATH |
| 2387 | do |
| 2388 | IFS=$as_save_IFS |
| 2389 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2390 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2391 | 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] | 2392 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2393 | $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] | 2394 | break 2 |
| 2395 | fi |
| 2396 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2397 | done |
| 2398 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2399 | |
| 2400 | fi |
| 2401 | fi |
| 2402 | RANLIB=$ac_cv_prog_RANLIB |
| 2403 | if test -n "$RANLIB"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 2405 | $as_echo "$RANLIB" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2406 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2408 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2409 | fi |
| 2410 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2411 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2412 | fi |
| 2413 | if test -z "$ac_cv_prog_RANLIB"; then |
| 2414 | ac_ct_RANLIB=$RANLIB |
| 2415 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 2416 | set dummy ranlib; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2418 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2419 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 2420 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2421 | else |
| 2422 | if test -n "$ac_ct_RANLIB"; then |
| 2423 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 2424 | else |
| 2425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2426 | for as_dir in $PATH |
| 2427 | do |
| 2428 | IFS=$as_save_IFS |
| 2429 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2430 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2431 | 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] | 2432 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2433 | $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] | 2434 | break 2 |
| 2435 | fi |
| 2436 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2437 | done |
| 2438 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2439 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2440 | fi |
| 2441 | fi |
| 2442 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 2443 | if test -n "$ac_ct_RANLIB"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 2445 | $as_echo "$ac_ct_RANLIB" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2446 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2448 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2449 | fi |
| 2450 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2451 | if test "x$ac_ct_RANLIB" = x; then |
| 2452 | RANLIB=":" |
| 2453 | else |
| 2454 | case $cross_compiling:$ac_tool_warned in |
| 2455 | yes:) |
| 2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2457 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2458 | ac_tool_warned=yes ;; |
| 2459 | esac |
| 2460 | RANLIB=$ac_ct_RANLIB |
| 2461 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2462 | else |
| 2463 | RANLIB="$ac_cv_prog_RANLIB" |
| 2464 | fi |
| 2465 | |
| 2466 | ac_ext=c |
| 2467 | ac_cpp='$CPP $CPPFLAGS' |
| 2468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2469 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2470 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2471 | if test -n "$ac_tool_prefix"; then |
| 2472 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2473 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2475 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2476 | if ${ac_cv_prog_CC+:} false; then : |
| 2477 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2478 | else |
| 2479 | if test -n "$CC"; then |
| 2480 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2481 | else |
| 2482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2483 | for as_dir in $PATH |
| 2484 | do |
| 2485 | IFS=$as_save_IFS |
| 2486 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2487 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2488 | 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] | 2489 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2490 | $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] | 2491 | break 2 |
| 2492 | fi |
| 2493 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2494 | done |
| 2495 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2496 | |
| 2497 | fi |
| 2498 | fi |
| 2499 | CC=$ac_cv_prog_CC |
| 2500 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2502 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2503 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2505 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2506 | fi |
| 2507 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2508 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2509 | fi |
| 2510 | if test -z "$ac_cv_prog_CC"; then |
| 2511 | ac_ct_CC=$CC |
| 2512 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2513 | set dummy gcc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2515 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2516 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2517 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2518 | else |
| 2519 | if test -n "$ac_ct_CC"; then |
| 2520 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2521 | else |
| 2522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2523 | for as_dir in $PATH |
| 2524 | do |
| 2525 | IFS=$as_save_IFS |
| 2526 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2527 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2528 | 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] | 2529 | ac_cv_prog_ac_ct_CC="gcc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2530 | $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] | 2531 | break 2 |
| 2532 | fi |
| 2533 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2534 | done |
| 2535 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2536 | |
| 2537 | fi |
| 2538 | fi |
| 2539 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2540 | if test -n "$ac_ct_CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2542 | $as_echo "$ac_ct_CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2543 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2545 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2546 | fi |
| 2547 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2548 | if test "x$ac_ct_CC" = x; then |
| 2549 | CC="" |
| 2550 | else |
| 2551 | case $cross_compiling:$ac_tool_warned in |
| 2552 | yes:) |
| 2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2554 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2555 | ac_tool_warned=yes ;; |
| 2556 | esac |
| 2557 | CC=$ac_ct_CC |
| 2558 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2559 | else |
| 2560 | CC="$ac_cv_prog_CC" |
| 2561 | fi |
| 2562 | |
| 2563 | if test -z "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2564 | if test -n "$ac_tool_prefix"; then |
| 2565 | # 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] | 2566 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2568 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2569 | if ${ac_cv_prog_CC+:} false; then : |
| 2570 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2571 | else |
| 2572 | if test -n "$CC"; then |
| 2573 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2574 | else |
| 2575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2576 | for as_dir in $PATH |
| 2577 | do |
| 2578 | IFS=$as_save_IFS |
| 2579 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2580 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2581 | 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] | 2582 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2583 | $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] | 2584 | break 2 |
| 2585 | fi |
| 2586 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2587 | done |
| 2588 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2589 | |
| 2590 | fi |
| 2591 | fi |
| 2592 | CC=$ac_cv_prog_CC |
| 2593 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2595 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2596 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2598 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2599 | fi |
| 2600 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2601 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2602 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2603 | fi |
| 2604 | if test -z "$CC"; then |
| 2605 | # Extract the first word of "cc", so it can be a program name with args. |
| 2606 | set dummy cc; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2608 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2609 | if ${ac_cv_prog_CC+:} false; then : |
| 2610 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2611 | else |
| 2612 | if test -n "$CC"; then |
| 2613 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2614 | else |
| 2615 | ac_prog_rejected=no |
| 2616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2617 | for as_dir in $PATH |
| 2618 | do |
| 2619 | IFS=$as_save_IFS |
| 2620 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2621 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2622 | 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] | 2623 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2624 | ac_prog_rejected=yes |
| 2625 | continue |
| 2626 | fi |
| 2627 | ac_cv_prog_CC="cc" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2628 | $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] | 2629 | break 2 |
| 2630 | fi |
| 2631 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2632 | done |
| 2633 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2634 | |
| 2635 | if test $ac_prog_rejected = yes; then |
| 2636 | # We found a bogon in the path, so make sure we never use it. |
| 2637 | set dummy $ac_cv_prog_CC |
| 2638 | shift |
| 2639 | if test $# != 0; then |
| 2640 | # We chose a different compiler from the bogus one. |
| 2641 | # However, it has the same basename, so the bogon will be chosen |
| 2642 | # first if we set CC to just the basename; use the full file name. |
| 2643 | shift |
| 2644 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2645 | fi |
| 2646 | fi |
| 2647 | fi |
| 2648 | fi |
| 2649 | CC=$ac_cv_prog_CC |
| 2650 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2652 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2653 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2655 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2656 | fi |
| 2657 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2658 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2659 | fi |
| 2660 | if test -z "$CC"; then |
| 2661 | if test -n "$ac_tool_prefix"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2662 | for ac_prog in cl.exe |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2663 | do |
| 2664 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2665 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2667 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2668 | if ${ac_cv_prog_CC+:} false; then : |
| 2669 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2670 | else |
| 2671 | if test -n "$CC"; then |
| 2672 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2673 | else |
| 2674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2675 | for as_dir in $PATH |
| 2676 | do |
| 2677 | IFS=$as_save_IFS |
| 2678 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2679 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2680 | 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] | 2681 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2682 | $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] | 2683 | break 2 |
| 2684 | fi |
| 2685 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2686 | done |
| 2687 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2688 | |
| 2689 | fi |
| 2690 | fi |
| 2691 | CC=$ac_cv_prog_CC |
| 2692 | if test -n "$CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2694 | $as_echo "$CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2695 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2697 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2698 | fi |
| 2699 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2700 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2701 | test -n "$CC" && break |
| 2702 | done |
| 2703 | fi |
| 2704 | if test -z "$CC"; then |
| 2705 | ac_ct_CC=$CC |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2706 | for ac_prog in cl.exe |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2707 | do |
| 2708 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2709 | set dummy $ac_prog; ac_word=$2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2711 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2712 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2713 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2714 | else |
| 2715 | if test -n "$ac_ct_CC"; then |
| 2716 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2717 | else |
| 2718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2719 | for as_dir in $PATH |
| 2720 | do |
| 2721 | IFS=$as_save_IFS |
| 2722 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2723 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2724 | 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] | 2725 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2726 | $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] | 2727 | break 2 |
| 2728 | fi |
| 2729 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2730 | done |
| 2731 | IFS=$as_save_IFS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2732 | |
| 2733 | fi |
| 2734 | fi |
| 2735 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2736 | if test -n "$ac_ct_CC"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2738 | $as_echo "$ac_ct_CC" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2739 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2741 | $as_echo "no" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2742 | fi |
| 2743 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2744 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2745 | test -n "$ac_ct_CC" && break |
| 2746 | done |
| 2747 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2748 | if test "x$ac_ct_CC" = x; then |
| 2749 | CC="" |
| 2750 | else |
| 2751 | case $cross_compiling:$ac_tool_warned in |
| 2752 | yes:) |
| 2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2754 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2755 | ac_tool_warned=yes ;; |
| 2756 | esac |
| 2757 | CC=$ac_ct_CC |
| 2758 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2759 | fi |
| 2760 | |
| 2761 | fi |
| 2762 | |
| 2763 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2764 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2765 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2766 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2767 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2768 | |
| 2769 | # Provide some information about the compiler. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2770 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2771 | set X $ac_compile |
| 2772 | ac_compiler=$2 |
| 2773 | for ac_option in --version -v -V -qversion; do |
| 2774 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2775 | case "(($ac_try" in |
| 2776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2777 | *) ac_try_echo=$ac_try;; |
| 2778 | esac |
| 2779 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2780 | $as_echo "$ac_try_echo"; } >&5 |
| 2781 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2782 | ac_status=$? |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2783 | if test -s conftest.err; then |
| 2784 | sed '10a\ |
| 2785 | ... rest of stderr output deleted ... |
| 2786 | 10q' conftest.err >conftest.er1 |
| 2787 | cat conftest.er1 >&5 |
| 2788 | fi |
| 2789 | rm -f conftest.er1 conftest.err |
| 2790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2791 | test $ac_status = 0; } |
| 2792 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2793 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2795 | /* end confdefs.h. */ |
| 2796 | |
| 2797 | int |
| 2798 | main () |
| 2799 | { |
| 2800 | |
| 2801 | ; |
| 2802 | return 0; |
| 2803 | } |
| 2804 | _ACEOF |
| 2805 | ac_clean_files_save=$ac_clean_files |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2806 | 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] | 2807 | # Try to create an executable without -o first, disregard a.out. |
| 2808 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2809 | # of exeext. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2811 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2812 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2813 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2814 | # The possible output files: |
| 2815 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2816 | |
| 2817 | ac_rmfiles= |
| 2818 | for ac_file in $ac_files |
| 2819 | do |
| 2820 | case $ac_file in |
| 2821 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2822 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2823 | esac |
| 2824 | done |
| 2825 | rm -f $ac_rmfiles |
| 2826 | |
| 2827 | if { { ac_try="$ac_link_default" |
| 2828 | case "(($ac_try" in |
| 2829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2830 | *) ac_try_echo=$ac_try;; |
| 2831 | esac |
| 2832 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2833 | $as_echo "$ac_try_echo"; } >&5 |
| 2834 | (eval "$ac_link_default") 2>&5 |
| 2835 | ac_status=$? |
| 2836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2837 | test $ac_status = 0; }; then : |
| 2838 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2839 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2840 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2841 | # so that the user can short-circuit this test for compilers unknown to |
| 2842 | # Autoconf. |
| 2843 | for ac_file in $ac_files '' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2844 | do |
| 2845 | test -f "$ac_file" || continue |
| 2846 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2847 | *.$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] | 2848 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2849 | [ab].out ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2850 | # We found the default executable, but exeext='' is most |
| 2851 | # certainly right. |
| 2852 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2853 | *.* ) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2854 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2855 | then :; else |
| 2856 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2857 | fi |
| 2858 | # We set ac_cv_exeext here because the later test for it is not |
| 2859 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2860 | # argument, so we may need to know it at that point already. |
| 2861 | # Even if this section looks crufty: it has the advantage of |
| 2862 | # actually working. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2863 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2864 | * ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2865 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2866 | esac |
| 2867 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2868 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2869 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2870 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2871 | ac_file='' |
| 2872 | fi |
| 2873 | if test -z "$ac_file"; then : |
| 2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2875 | $as_echo "no" >&6; } |
| 2876 | $as_echo "$as_me: failed program was:" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2878 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2879 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2880 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2881 | as_fn_error 77 "C compiler cannot create executables |
| 2882 | See \`config.log' for more details" "$LINENO" 5; } |
| 2883 | else |
| 2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2885 | $as_echo "yes" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2886 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2888 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2890 | $as_echo "$ac_file" >&6; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2891 | ac_exeext=$ac_cv_exeext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2892 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2893 | 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] | 2894 | ac_clean_files=$ac_clean_files_save |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2896 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2897 | if { { ac_try="$ac_link" |
| 2898 | case "(($ac_try" in |
| 2899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2900 | *) ac_try_echo=$ac_try;; |
| 2901 | esac |
| 2902 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2903 | $as_echo "$ac_try_echo"; } >&5 |
| 2904 | (eval "$ac_link") 2>&5 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2905 | ac_status=$? |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2907 | test $ac_status = 0; }; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2908 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2909 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2910 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2911 | # `rm'. |
| 2912 | for ac_file in conftest.exe conftest conftest.*; do |
| 2913 | test -f "$ac_file" || continue |
| 2914 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2915 | *.$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] | 2916 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2917 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2918 | * ) break;; |
| 2919 | esac |
| 2920 | done |
| 2921 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2922 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2923 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2924 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 2925 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2926 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2927 | rm -f conftest conftest$ac_cv_exeext |
| 2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2929 | $as_echo "$ac_cv_exeext" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2930 | |
| 2931 | rm -f conftest.$ac_ext |
| 2932 | EXEEXT=$ac_cv_exeext |
| 2933 | ac_exeext=$EXEEXT |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2935 | /* end confdefs.h. */ |
| 2936 | #include <stdio.h> |
| 2937 | int |
| 2938 | main () |
| 2939 | { |
| 2940 | FILE *f = fopen ("conftest.out", "w"); |
| 2941 | return ferror (f) || fclose (f) != 0; |
| 2942 | |
| 2943 | ; |
| 2944 | return 0; |
| 2945 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 2946 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 2947 | ac_clean_files="$ac_clean_files conftest.out" |
| 2948 | # Check that the compiler produces executables we can run. If not, either |
| 2949 | # the compiler is broken, or we cross compile. |
| 2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2951 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2952 | if test "$cross_compiling" != yes; then |
| 2953 | { { ac_try="$ac_link" |
| 2954 | case "(($ac_try" in |
| 2955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2956 | *) ac_try_echo=$ac_try;; |
| 2957 | esac |
| 2958 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2959 | $as_echo "$ac_try_echo"; } >&5 |
| 2960 | (eval "$ac_link") 2>&5 |
| 2961 | ac_status=$? |
| 2962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2963 | test $ac_status = 0; } |
| 2964 | if { ac_try='./conftest$ac_cv_exeext' |
| 2965 | { { case "(($ac_try" in |
| 2966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2967 | *) ac_try_echo=$ac_try;; |
| 2968 | esac |
| 2969 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2970 | $as_echo "$ac_try_echo"; } >&5 |
| 2971 | (eval "$ac_try") 2>&5 |
| 2972 | ac_status=$? |
| 2973 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2974 | test $ac_status = 0; }; }; then |
| 2975 | cross_compiling=no |
| 2976 | else |
| 2977 | if test "$cross_compiling" = maybe; then |
| 2978 | cross_compiling=yes |
| 2979 | else |
| 2980 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2981 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2982 | as_fn_error $? "cannot run C compiled programs. |
| 2983 | If you meant to cross compile, use \`--host'. |
| 2984 | See \`config.log' for more details" "$LINENO" 5; } |
| 2985 | fi |
| 2986 | fi |
| 2987 | fi |
| 2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2989 | $as_echo "$cross_compiling" >&6; } |
| 2990 | |
| 2991 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 2992 | ac_clean_files=$ac_clean_files_save |
| 2993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2994 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2995 | if ${ac_cv_objext+:} false; then : |
| 2996 | $as_echo_n "(cached) " >&6 |
| 2997 | else |
| 2998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2999 | /* end confdefs.h. */ |
| 3000 | |
| 3001 | int |
| 3002 | main () |
| 3003 | { |
| 3004 | |
| 3005 | ; |
| 3006 | return 0; |
| 3007 | } |
| 3008 | _ACEOF |
| 3009 | rm -f conftest.o conftest.obj |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3010 | if { { ac_try="$ac_compile" |
| 3011 | case "(($ac_try" in |
| 3012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3013 | *) ac_try_echo=$ac_try;; |
| 3014 | esac |
| 3015 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3016 | $as_echo "$ac_try_echo"; } >&5 |
| 3017 | (eval "$ac_compile") 2>&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3018 | ac_status=$? |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3019 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3020 | test $ac_status = 0; }; then : |
| 3021 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3022 | test -f "$ac_file" || continue; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3023 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3024 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3025 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3026 | break;; |
| 3027 | esac |
| 3028 | done |
| 3029 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3030 | $as_echo "$as_me: failed program was:" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3032 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3033 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3034 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3035 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3036 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3037 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3038 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3039 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3041 | $as_echo "$ac_cv_objext" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3042 | OBJEXT=$ac_cv_objext |
| 3043 | ac_objext=$OBJEXT |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3045 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3046 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3047 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3048 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3050 | /* end confdefs.h. */ |
| 3051 | |
| 3052 | int |
| 3053 | main () |
| 3054 | { |
| 3055 | #ifndef __GNUC__ |
| 3056 | choke me |
| 3057 | #endif |
| 3058 | |
| 3059 | ; |
| 3060 | return 0; |
| 3061 | } |
| 3062 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3063 | if ac_fn_c_try_compile "$LINENO"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3064 | ac_compiler_gnu=yes |
| 3065 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3066 | ac_compiler_gnu=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3067 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3069 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3070 | |
| 3071 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3073 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3074 | if test $ac_compiler_gnu = yes; then |
| 3075 | GCC=yes |
| 3076 | else |
| 3077 | GCC= |
| 3078 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3079 | ac_test_CFLAGS=${CFLAGS+set} |
| 3080 | ac_save_CFLAGS=$CFLAGS |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3082 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3083 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3084 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3085 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3086 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3087 | ac_c_werror_flag=yes |
| 3088 | ac_cv_prog_cc_g=no |
| 3089 | CFLAGS="-g" |
| 3090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3091 | /* end confdefs.h. */ |
| 3092 | |
| 3093 | int |
| 3094 | main () |
| 3095 | { |
| 3096 | |
| 3097 | ; |
| 3098 | return 0; |
| 3099 | } |
| 3100 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3101 | if ac_fn_c_try_compile "$LINENO"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3102 | ac_cv_prog_cc_g=yes |
| 3103 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3104 | CFLAGS="" |
| 3105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3106 | /* end confdefs.h. */ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3107 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3108 | int |
| 3109 | main () |
| 3110 | { |
| 3111 | |
| 3112 | ; |
| 3113 | return 0; |
| 3114 | } |
| 3115 | _ACEOF |
| 3116 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3117 | |
| 3118 | else |
| 3119 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3120 | CFLAGS="-g" |
| 3121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3122 | /* end confdefs.h. */ |
| 3123 | |
| 3124 | int |
| 3125 | main () |
| 3126 | { |
| 3127 | |
| 3128 | ; |
| 3129 | return 0; |
| 3130 | } |
| 3131 | _ACEOF |
| 3132 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3133 | ac_cv_prog_cc_g=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3134 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
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 conftest.$ac_ext |
| 3138 | fi |
| 3139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3140 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3141 | fi |
| 3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3143 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3144 | if test "$ac_test_CFLAGS" = set; then |
| 3145 | CFLAGS=$ac_save_CFLAGS |
| 3146 | elif test $ac_cv_prog_cc_g = yes; then |
| 3147 | if test "$GCC" = yes; then |
| 3148 | CFLAGS="-g -O2" |
| 3149 | else |
| 3150 | CFLAGS="-g" |
| 3151 | fi |
| 3152 | else |
| 3153 | if test "$GCC" = yes; then |
| 3154 | CFLAGS="-O2" |
| 3155 | else |
| 3156 | CFLAGS= |
| 3157 | fi |
| 3158 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3160 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3161 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3162 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3163 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3164 | ac_cv_prog_cc_c89=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3165 | ac_save_CC=$CC |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3167 | /* end confdefs.h. */ |
| 3168 | #include <stdarg.h> |
| 3169 | #include <stdio.h> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3170 | struct stat; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3171 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3172 | struct buf { int x; }; |
| 3173 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3174 | static char *e (p, i) |
| 3175 | char **p; |
| 3176 | int i; |
| 3177 | { |
| 3178 | return p[i]; |
| 3179 | } |
| 3180 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3181 | { |
| 3182 | char *s; |
| 3183 | va_list v; |
| 3184 | va_start (v,p); |
| 3185 | s = g (p, va_arg (v,int)); |
| 3186 | va_end (v); |
| 3187 | return s; |
| 3188 | } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3189 | |
| 3190 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3191 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3192 | These don't provoke an error unfortunately, instead are silently treated |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3193 | 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] | 3194 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3195 | 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] | 3196 | that's true only with -std. */ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3197 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3198 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3199 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3200 | inside strings and character constants. */ |
| 3201 | #define FOO(x) 'x' |
| 3202 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3203 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3204 | int test (int i, double x); |
| 3205 | struct s1 {int (*f) (int a);}; |
| 3206 | struct s2 {int (*f) (double a);}; |
| 3207 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3208 | int argc; |
| 3209 | char **argv; |
| 3210 | int |
| 3211 | main () |
| 3212 | { |
| 3213 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3214 | ; |
| 3215 | return 0; |
| 3216 | } |
| 3217 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3218 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3219 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3220 | do |
| 3221 | CC="$ac_save_CC $ac_arg" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3222 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3223 | ac_cv_prog_cc_c89=$ac_arg |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3224 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3225 | rm -f core conftest.err conftest.$ac_objext |
| 3226 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3227 | done |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3228 | rm -f conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3229 | CC=$ac_save_CC |
| 3230 | |
| 3231 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3232 | # AC_CACHE_VAL |
| 3233 | case "x$ac_cv_prog_cc_c89" in |
| 3234 | x) |
| 3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3236 | $as_echo "none needed" >&6; } ;; |
| 3237 | xno) |
| 3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3239 | $as_echo "unsupported" >&6; } ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3240 | *) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3241 | CC="$CC $ac_cv_prog_cc_c89" |
| 3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3243 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3244 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3245 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3246 | |
| 3247 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3248 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3249 | ac_ext=c |
| 3250 | ac_cpp='$CPP $CPPFLAGS' |
| 3251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3254 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3255 | ac_aux_dir= |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3256 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3257 | if test -f "$ac_dir/install-sh"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3258 | ac_aux_dir=$ac_dir |
| 3259 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3260 | break |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3261 | elif test -f "$ac_dir/install.sh"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3262 | ac_aux_dir=$ac_dir |
| 3263 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3264 | break |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3265 | elif test -f "$ac_dir/shtool"; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3266 | ac_aux_dir=$ac_dir |
| 3267 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3268 | break |
| 3269 | fi |
| 3270 | done |
| 3271 | if test -z "$ac_aux_dir"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3272 | 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] | 3273 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3274 | |
| 3275 | # These three variables are undocumented and unsupported, |
| 3276 | # and are intended to be withdrawn in a future Autoconf release. |
| 3277 | # They can cause serious problems if a builder's source tree is in a directory |
| 3278 | # whose full name contains unusual characters. |
| 3279 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3280 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3281 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3282 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3283 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3284 | # Find a good install program. We prefer a C program (faster), |
| 3285 | # so one script is as good as another. But avoid the broken or |
| 3286 | # incompatible versions: |
| 3287 | # SysV /etc/install, /usr/sbin/install |
| 3288 | # SunOS /usr/etc/install |
| 3289 | # IRIX /sbin/install |
| 3290 | # AIX /bin/install |
| 3291 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3292 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3293 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3294 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3295 | # OS/2's system install, which has a completely different semantic |
| 3296 | # ./install, which can be erroneously created by make from ./install.sh. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3297 | # Reject install programs that cannot install multiple files. |
| 3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3299 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3300 | if test -z "$INSTALL"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3301 | if ${ac_cv_path_install+:} false; then : |
| 3302 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3303 | else |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3305 | for as_dir in $PATH |
| 3306 | do |
| 3307 | IFS=$as_save_IFS |
| 3308 | test -z "$as_dir" && as_dir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3309 | # Account for people who put trailing slashes in PATH elements. |
| 3310 | case $as_dir/ in #(( |
| 3311 | ./ | .// | /[cC]/* | \ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3312 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3313 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3314 | /usr/ucb/* ) ;; |
| 3315 | *) |
| 3316 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3317 | # Don't use installbsd from OSF since it installs stuff as root |
| 3318 | # by default. |
| 3319 | for ac_prog in ginstall scoinst install; do |
| 3320 | for ac_exec_ext in '' $ac_executable_extensions; do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3321 | 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] | 3322 | if test $ac_prog = install && |
| 3323 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3324 | # AIX install. It has an incompatible calling convention. |
| 3325 | : |
| 3326 | elif test $ac_prog = install && |
| 3327 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3328 | # program-specific install script used by HP pwplus--don't use. |
| 3329 | : |
| 3330 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3331 | rm -rf conftest.one conftest.two conftest.dir |
| 3332 | echo one > conftest.one |
| 3333 | echo two > conftest.two |
| 3334 | mkdir conftest.dir |
| 3335 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3336 | test -s conftest.one && test -s conftest.two && |
| 3337 | test -s conftest.dir/conftest.one && |
| 3338 | test -s conftest.dir/conftest.two |
| 3339 | then |
| 3340 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3341 | break 3 |
| 3342 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3343 | fi |
| 3344 | fi |
| 3345 | done |
| 3346 | done |
| 3347 | ;; |
| 3348 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3349 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3350 | done |
| 3351 | IFS=$as_save_IFS |
| 3352 | |
| 3353 | rm -rf conftest.one conftest.two conftest.dir |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3354 | |
| 3355 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3356 | if test "${ac_cv_path_install+set}" = set; then |
| 3357 | INSTALL=$ac_cv_path_install |
| 3358 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3359 | # As a last resort, use the slow shell script. Don't cache a |
| 3360 | # value for INSTALL within a source directory, because that will |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3361 | # break other packages using the cache if that directory is |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3362 | # removed, or if the value is a relative name. |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3363 | INSTALL=$ac_install_sh |
| 3364 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3365 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3367 | $as_echo "$INSTALL" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3368 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3369 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3370 | # It thinks the first close brace ends the variable substitution. |
| 3371 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3372 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 3373 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3374 | |
| 3375 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3376 | |
| 3377 | |
| 3378 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3379 | ac_ext=c |
| 3380 | ac_cpp='$CPP $CPPFLAGS' |
| 3381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3385 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3386 | # On Suns, sometimes $CPP names a directory. |
| 3387 | if test -n "$CPP" && test -d "$CPP"; then |
| 3388 | CPP= |
| 3389 | fi |
| 3390 | if test -z "$CPP"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3391 | if ${ac_cv_prog_CPP+:} false; then : |
| 3392 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3393 | else |
| 3394 | # Double quotes because CPP needs to be expanded |
| 3395 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3396 | do |
| 3397 | ac_preproc_ok=false |
| 3398 | for ac_c_preproc_warn_flag in '' yes |
| 3399 | do |
| 3400 | # Use a header file that comes with gcc, so configuring glibc |
| 3401 | # with a fresh cross-compiler works. |
| 3402 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3403 | # <limits.h> exists even on freestanding compilers. |
| 3404 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3405 | # not just through cpp. "Syntax error" is here to catch this case. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3407 | /* end confdefs.h. */ |
| 3408 | #ifdef __STDC__ |
| 3409 | # include <limits.h> |
| 3410 | #else |
| 3411 | # include <assert.h> |
| 3412 | #endif |
| 3413 | Syntax error |
| 3414 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3415 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3416 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3417 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3418 | # Broken: fails on valid input. |
| 3419 | continue |
| 3420 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3421 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3422 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3423 | # OK, works on sane cases. Now check whether nonexistent headers |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3424 | # can be detected and how. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3426 | /* end confdefs.h. */ |
| 3427 | #include <ac_nonexistent.h> |
| 3428 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3429 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3430 | # Broken: success on invalid input. |
| 3431 | continue |
| 3432 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3433 | # Passes both tests. |
| 3434 | ac_preproc_ok=: |
| 3435 | break |
| 3436 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3437 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3438 | |
| 3439 | done |
| 3440 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3441 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3442 | if $ac_preproc_ok; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3443 | break |
| 3444 | fi |
| 3445 | |
| 3446 | done |
| 3447 | ac_cv_prog_CPP=$CPP |
| 3448 | |
| 3449 | fi |
| 3450 | CPP=$ac_cv_prog_CPP |
| 3451 | else |
| 3452 | ac_cv_prog_CPP=$CPP |
| 3453 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3455 | $as_echo "$CPP" >&6; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3456 | ac_preproc_ok=false |
| 3457 | for ac_c_preproc_warn_flag in '' yes |
| 3458 | do |
| 3459 | # Use a header file that comes with gcc, so configuring glibc |
| 3460 | # with a fresh cross-compiler works. |
| 3461 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3462 | # <limits.h> exists even on freestanding compilers. |
| 3463 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3464 | # not just through cpp. "Syntax error" is here to catch this case. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3466 | /* end confdefs.h. */ |
| 3467 | #ifdef __STDC__ |
| 3468 | # include <limits.h> |
| 3469 | #else |
| 3470 | # include <assert.h> |
| 3471 | #endif |
| 3472 | Syntax error |
| 3473 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3474 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3475 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3476 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3477 | # Broken: fails on valid input. |
| 3478 | continue |
| 3479 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3480 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3481 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3482 | # OK, works on sane cases. Now check whether nonexistent headers |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3483 | # can be detected and how. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3485 | /* end confdefs.h. */ |
| 3486 | #include <ac_nonexistent.h> |
| 3487 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3488 | if ac_fn_c_try_cpp "$LINENO"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3489 | # Broken: success on invalid input. |
| 3490 | continue |
| 3491 | else |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3492 | # Passes both tests. |
| 3493 | ac_preproc_ok=: |
| 3494 | break |
| 3495 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3496 | rm -f conftest.err conftest.i conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3497 | |
| 3498 | done |
| 3499 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3500 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3501 | if $ac_preproc_ok; then : |
| 3502 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3503 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3504 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3505 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3506 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 3507 | See \`config.log' for more details" "$LINENO" 5; } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3508 | fi |
| 3509 | |
| 3510 | ac_ext=c |
| 3511 | ac_cpp='$CPP $CPPFLAGS' |
| 3512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3515 | |
| 3516 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3518 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3519 | if ${ac_cv_path_GREP+:} false; then : |
| 3520 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3521 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3522 | if test -z "$GREP"; then |
| 3523 | ac_path_GREP_found=false |
| 3524 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3526 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3527 | do |
| 3528 | IFS=$as_save_IFS |
| 3529 | test -z "$as_dir" && as_dir=. |
| 3530 | for ac_prog in grep ggrep; do |
| 3531 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3532 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3533 | as_fn_executable_p "$ac_path_GREP" || continue |
| 3534 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3535 | # Check for GNU $ac_path_GREP |
| 3536 | case `"$ac_path_GREP" --version 2>&1` in |
| 3537 | *GNU*) |
| 3538 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3539 | *) |
| 3540 | ac_count=0 |
| 3541 | $as_echo_n 0123456789 >"conftest.in" |
| 3542 | while : |
| 3543 | do |
| 3544 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3545 | mv "conftest.tmp" "conftest.in" |
| 3546 | cp "conftest.in" "conftest.nl" |
| 3547 | $as_echo 'GREP' >> "conftest.nl" |
| 3548 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3549 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3550 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3551 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3552 | # Best one so far, save it but keep looking for a better one |
| 3553 | ac_cv_path_GREP="$ac_path_GREP" |
| 3554 | ac_path_GREP_max=$ac_count |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3555 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3556 | # 10*(2^10) chars as input seems more than enough |
| 3557 | test $ac_count -gt 10 && break |
| 3558 | done |
| 3559 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3560 | esac |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3561 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3562 | $ac_path_GREP_found && break 3 |
| 3563 | done |
| 3564 | done |
| 3565 | done |
| 3566 | IFS=$as_save_IFS |
| 3567 | if test -z "$ac_cv_path_GREP"; then |
| 3568 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3569 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3570 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3571 | ac_cv_path_GREP=$GREP |
| 3572 | fi |
| 3573 | |
| 3574 | fi |
| 3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3576 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3577 | GREP="$ac_cv_path_GREP" |
| 3578 | |
| 3579 | |
| 3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3581 | $as_echo_n "checking for egrep... " >&6; } |
| 3582 | if ${ac_cv_path_EGREP+:} false; then : |
| 3583 | $as_echo_n "(cached) " >&6 |
| 3584 | else |
| 3585 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3586 | then ac_cv_path_EGREP="$GREP -E" |
| 3587 | else |
| 3588 | if test -z "$EGREP"; then |
| 3589 | ac_path_EGREP_found=false |
| 3590 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3592 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3593 | do |
| 3594 | IFS=$as_save_IFS |
| 3595 | test -z "$as_dir" && as_dir=. |
| 3596 | for ac_prog in egrep; do |
| 3597 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3598 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3599 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 3600 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3601 | # Check for GNU $ac_path_EGREP |
| 3602 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3603 | *GNU*) |
| 3604 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3605 | *) |
| 3606 | ac_count=0 |
| 3607 | $as_echo_n 0123456789 >"conftest.in" |
| 3608 | while : |
| 3609 | do |
| 3610 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3611 | mv "conftest.tmp" "conftest.in" |
| 3612 | cp "conftest.in" "conftest.nl" |
| 3613 | $as_echo 'EGREP' >> "conftest.nl" |
| 3614 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3615 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3616 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3617 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3618 | # Best one so far, save it but keep looking for a better one |
| 3619 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3620 | ac_path_EGREP_max=$ac_count |
| 3621 | fi |
| 3622 | # 10*(2^10) chars as input seems more than enough |
| 3623 | test $ac_count -gt 10 && break |
| 3624 | done |
| 3625 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3626 | esac |
| 3627 | |
| 3628 | $ac_path_EGREP_found && break 3 |
| 3629 | done |
| 3630 | done |
| 3631 | done |
| 3632 | IFS=$as_save_IFS |
| 3633 | if test -z "$ac_cv_path_EGREP"; then |
| 3634 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3635 | fi |
| 3636 | else |
| 3637 | ac_cv_path_EGREP=$EGREP |
| 3638 | fi |
| 3639 | |
| 3640 | fi |
| 3641 | fi |
| 3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3643 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3644 | EGREP="$ac_cv_path_EGREP" |
| 3645 | |
| 3646 | |
| 3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3648 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 3649 | if ${ac_cv_header_stdc+:} false; then : |
| 3650 | $as_echo_n "(cached) " >&6 |
| 3651 | else |
| 3652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3653 | /* end confdefs.h. */ |
| 3654 | #include <stdlib.h> |
| 3655 | #include <stdarg.h> |
| 3656 | #include <string.h> |
| 3657 | #include <float.h> |
| 3658 | |
| 3659 | int |
| 3660 | main () |
| 3661 | { |
| 3662 | |
| 3663 | ; |
| 3664 | return 0; |
| 3665 | } |
| 3666 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3667 | if ac_fn_c_try_compile "$LINENO"; then : |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3668 | ac_cv_header_stdc=yes |
| 3669 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3670 | ac_cv_header_stdc=no |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3671 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3673 | |
| 3674 | if test $ac_cv_header_stdc = yes; then |
| 3675 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3677 | /* end confdefs.h. */ |
| 3678 | #include <string.h> |
| 3679 | |
| 3680 | _ACEOF |
| 3681 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3682 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 3683 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3684 | else |
| 3685 | ac_cv_header_stdc=no |
| 3686 | fi |
| 3687 | rm -f conftest* |
| 3688 | |
| 3689 | fi |
| 3690 | |
| 3691 | if test $ac_cv_header_stdc = yes; then |
| 3692 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3694 | /* end confdefs.h. */ |
| 3695 | #include <stdlib.h> |
| 3696 | |
| 3697 | _ACEOF |
| 3698 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3699 | $EGREP "free" >/dev/null 2>&1; then : |
| 3700 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3701 | else |
| 3702 | ac_cv_header_stdc=no |
| 3703 | fi |
| 3704 | rm -f conftest* |
| 3705 | |
| 3706 | fi |
| 3707 | |
| 3708 | if test $ac_cv_header_stdc = yes; then |
| 3709 | # /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] | 3710 | if test "$cross_compiling" = yes; then : |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3711 | : |
| 3712 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3714 | /* end confdefs.h. */ |
| 3715 | #include <ctype.h> |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3716 | #include <stdlib.h> |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3717 | #if ((' ' & 0x0FF) == 0x020) |
| 3718 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3719 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3720 | #else |
| 3721 | # define ISLOWER(c) \ |
| 3722 | (('a' <= (c) && (c) <= 'i') \ |
| 3723 | || ('j' <= (c) && (c) <= 'r') \ |
| 3724 | || ('s' <= (c) && (c) <= 'z')) |
| 3725 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3726 | #endif |
| 3727 | |
| 3728 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3729 | int |
| 3730 | main () |
| 3731 | { |
| 3732 | int i; |
| 3733 | for (i = 0; i < 256; i++) |
| 3734 | if (XOR (islower (i), ISLOWER (i)) |
| 3735 | || toupper (i) != TOUPPER (i)) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3736 | return 2; |
| 3737 | return 0; |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3738 | } |
| 3739 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3740 | if ac_fn_c_try_run "$LINENO"; then : |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3741 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3742 | else |
| 3743 | ac_cv_header_stdc=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3744 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3745 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3746 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3747 | fi |
| 3748 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3749 | fi |
| 3750 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 3752 | $as_echo "$ac_cv_header_stdc" >&6; } |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3753 | if test $ac_cv_header_stdc = yes; then |
| 3754 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3755 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 3756 | |
| 3757 | fi |
| 3758 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3759 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3760 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3761 | inttypes.h stdint.h unistd.h |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3762 | do : |
| 3763 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3764 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 3765 | " |
| 3766 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3767 | cat >>confdefs.h <<_ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3768 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3769 | _ACEOF |
| 3770 | |
| 3771 | fi |
| 3772 | |
| 3773 | done |
| 3774 | |
| 3775 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 3777 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 3778 | if ${ac_cv_c_bigendian+:} false; then : |
| 3779 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3780 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3781 | ac_cv_c_bigendian=unknown |
| 3782 | # See if we're dealing with a universal compiler. |
| 3783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3784 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3785 | #ifndef __APPLE_CC__ |
| 3786 | not a universal capable compiler |
| 3787 | #endif |
| 3788 | typedef int dummy; |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3789 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3790 | _ACEOF |
| 3791 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3792 | |
| 3793 | # Check for potential -arch flags. It is not universal unless |
| 3794 | # there are at least two -arch flags with different values. |
| 3795 | ac_arch= |
| 3796 | ac_prev= |
| 3797 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 3798 | if test -n "$ac_prev"; then |
| 3799 | case $ac_word in |
| 3800 | i?86 | x86_64 | ppc | ppc64) |
| 3801 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 3802 | ac_arch=$ac_word |
| 3803 | else |
| 3804 | ac_cv_c_bigendian=universal |
| 3805 | break |
| 3806 | fi |
| 3807 | ;; |
| 3808 | esac |
| 3809 | ac_prev= |
| 3810 | elif test "x$ac_word" = "x-arch"; then |
| 3811 | ac_prev=arch |
| 3812 | fi |
| 3813 | done |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3814 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3816 | if test $ac_cv_c_bigendian = unknown; then |
| 3817 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 3818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3819 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3820 | #include <sys/types.h> |
| 3821 | #include <sys/param.h> |
| 3822 | |
| 3823 | int |
| 3824 | main () |
| 3825 | { |
| 3826 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 3827 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 3828 | && LITTLE_ENDIAN) |
| 3829 | bogus endian macros |
| 3830 | #endif |
| 3831 | |
| 3832 | ; |
| 3833 | return 0; |
| 3834 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3835 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3836 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3837 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 3838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3839 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3840 | #include <sys/types.h> |
| 3841 | #include <sys/param.h> |
| 3842 | |
| 3843 | int |
| 3844 | main () |
| 3845 | { |
| 3846 | #if BYTE_ORDER != BIG_ENDIAN |
| 3847 | not big endian |
| 3848 | #endif |
| 3849 | |
| 3850 | ; |
| 3851 | return 0; |
| 3852 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3853 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3854 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3855 | ac_cv_c_bigendian=yes |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3856 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3857 | ac_cv_c_bigendian=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3858 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3860 | fi |
| 3861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3862 | fi |
| 3863 | if test $ac_cv_c_bigendian = unknown; then |
| 3864 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 3865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3866 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3867 | #include <limits.h> |
| 3868 | |
| 3869 | int |
| 3870 | main () |
| 3871 | { |
| 3872 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 3873 | bogus endian macros |
| 3874 | #endif |
| 3875 | |
| 3876 | ; |
| 3877 | return 0; |
| 3878 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3879 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3880 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3881 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 3882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3883 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3884 | #include <limits.h> |
| 3885 | |
| 3886 | int |
| 3887 | main () |
| 3888 | { |
| 3889 | #ifndef _BIG_ENDIAN |
| 3890 | not big endian |
| 3891 | #endif |
| 3892 | |
| 3893 | ; |
| 3894 | return 0; |
| 3895 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3896 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3897 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3898 | ac_cv_c_bigendian=yes |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3899 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3900 | ac_cv_c_bigendian=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3901 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3903 | fi |
| 3904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3905 | fi |
| 3906 | if test $ac_cv_c_bigendian = unknown; then |
| 3907 | # Compile a test program. |
| 3908 | if test "$cross_compiling" = yes; then : |
| 3909 | # Try to guess by grepping values from an object file. |
| 3910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3911 | /* end confdefs.h. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3912 | short int ascii_mm[] = |
| 3913 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 3914 | short int ascii_ii[] = |
| 3915 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 3916 | int use_ascii (int i) { |
| 3917 | return ascii_mm[i] + ascii_ii[i]; |
| 3918 | } |
| 3919 | short int ebcdic_ii[] = |
| 3920 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 3921 | short int ebcdic_mm[] = |
| 3922 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 3923 | int use_ebcdic (int i) { |
| 3924 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 3925 | } |
| 3926 | extern int foo; |
| 3927 | |
| 3928 | int |
| 3929 | main () |
| 3930 | { |
| 3931 | return use_ascii (foo) == use_ebcdic (foo); |
| 3932 | ; |
| 3933 | return 0; |
| 3934 | } |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3935 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3936 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3937 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 3938 | ac_cv_c_bigendian=yes |
| 3939 | fi |
| 3940 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 3941 | if test "$ac_cv_c_bigendian" = unknown; then |
| 3942 | ac_cv_c_bigendian=no |
| 3943 | else |
| 3944 | # finding both strings is unlikely to happen, but who knows? |
| 3945 | ac_cv_c_bigendian=unknown |
| 3946 | fi |
| 3947 | fi |
| 3948 | fi |
| 3949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3950 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3952 | /* end confdefs.h. */ |
| 3953 | $ac_includes_default |
| 3954 | int |
| 3955 | main () |
| 3956 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3957 | |
| 3958 | /* Are we little or big endian? From Harbison&Steele. */ |
| 3959 | union |
| 3960 | { |
| 3961 | long int l; |
| 3962 | char c[sizeof (long int)]; |
| 3963 | } u; |
| 3964 | u.l = 1; |
| 3965 | return u.c[sizeof (long int) - 1] == 1; |
| 3966 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3967 | ; |
| 3968 | return 0; |
| 3969 | } |
| 3970 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3971 | if ac_fn_c_try_run "$LINENO"; then : |
| 3972 | ac_cv_c_bigendian=no |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3973 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3974 | ac_cv_c_bigendian=yes |
| 3975 | fi |
| 3976 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3977 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3978 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3979 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3980 | fi |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 3981 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 3983 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 3984 | case $ac_cv_c_bigendian in #( |
| 3985 | yes) |
| 3986 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 3987 | ;; #( |
| 3988 | no) |
| 3989 | ;; #( |
| 3990 | universal) |
| 3991 | |
| 3992 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 3993 | |
| 3994 | ;; #( |
| 3995 | *) |
| 3996 | as_fn_error $? "unknown endianness |
| 3997 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 3998 | esac |
| 3999 | |
| 4000 | |
| 4001 | # Make sure we can run config.sub. |
| 4002 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4003 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4004 | |
| 4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4006 | $as_echo_n "checking build system type... " >&6; } |
| 4007 | if ${ac_cv_build+:} false; then : |
| 4008 | $as_echo_n "(cached) " >&6 |
| 4009 | else |
| 4010 | ac_build_alias=$build_alias |
| 4011 | test "x$ac_build_alias" = x && |
| 4012 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4013 | test "x$ac_build_alias" = x && |
| 4014 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4015 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4016 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4017 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 4018 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4020 | $as_echo "$ac_cv_build" >&6; } |
| 4021 | case $ac_cv_build in |
| 4022 | *-*-*) ;; |
| 4023 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4024 | esac |
| 4025 | build=$ac_cv_build |
| 4026 | ac_save_IFS=$IFS; IFS='-' |
| 4027 | set x $ac_cv_build |
| 4028 | shift |
| 4029 | build_cpu=$1 |
| 4030 | build_vendor=$2 |
| 4031 | shift; shift |
| 4032 | # Remember, the first character of IFS is used to create $*, |
| 4033 | # except with old shells: |
| 4034 | build_os=$* |
| 4035 | IFS=$ac_save_IFS |
| 4036 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4037 | |
| 4038 | |
| 4039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4040 | $as_echo_n "checking host system type... " >&6; } |
| 4041 | if ${ac_cv_host+:} false; then : |
| 4042 | $as_echo_n "(cached) " >&6 |
| 4043 | else |
| 4044 | if test "x$host_alias" = x; then |
| 4045 | ac_cv_host=$ac_cv_build |
| 4046 | else |
| 4047 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4048 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4049 | fi |
| 4050 | |
| 4051 | fi |
| 4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4053 | $as_echo "$ac_cv_host" >&6; } |
| 4054 | case $ac_cv_host in |
| 4055 | *-*-*) ;; |
| 4056 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4057 | esac |
| 4058 | host=$ac_cv_host |
| 4059 | ac_save_IFS=$IFS; IFS='-' |
| 4060 | set x $ac_cv_host |
| 4061 | shift |
| 4062 | host_cpu=$1 |
| 4063 | host_vendor=$2 |
| 4064 | shift; shift |
| 4065 | # Remember, the first character of IFS is used to create $*, |
| 4066 | # except with old shells: |
| 4067 | host_os=$* |
| 4068 | IFS=$ac_save_IFS |
| 4069 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4070 | |
| 4071 | |
| 4072 | |
| 4073 | case $host_cpu in |
| 4074 | i*86 | x86_64 ) |
| 4075 | |
| 4076 | $as_echo "#define CPU_CISC 1" >>confdefs.h |
| 4077 | |
| 4078 | |
| 4079 | $as_echo "#define HAVE_X86 1" >>confdefs.h |
| 4080 | ;; |
| 4081 | * ) |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4082 | |
| 4083 | $as_echo "#define CPU_RISC 1" >>confdefs.h |
jfigus | 385e675 | 2015-02-19 08:30:36 -0500 | [diff] [blame] | 4084 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4085 | ;; |
| 4086 | esac |
| 4087 | |
| 4088 | case $host_os in |
| 4089 | *cygwin*|*mingw* ) |
| 4090 | EXE=.exe |
| 4091 | HOST_IS_WINDOWS=yes |
| 4092 | ;; |
| 4093 | * ) |
| 4094 | EXE="" |
| 4095 | ;; |
| 4096 | esac |
| 4097 | # define executable suffix; this is needed for `make clean' |
| 4098 | |
| 4099 | |
| 4100 | # Check whether --enable-kernel-linux was given. |
| 4101 | if test "${enable_kernel_linux+set}" = set; then : |
| 4102 | enableval=$enable_kernel_linux; |
| 4103 | else |
| 4104 | enable_kernel_linux=no |
| 4105 | fi |
| 4106 | |
| 4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build for Linux kernel context" >&5 |
| 4108 | $as_echo_n "checking whether to build for Linux kernel context... " >&6; } |
| 4109 | if test "$enable_kernel_linux" = "yes"; then |
| 4110 | |
| 4111 | $as_echo "#define SRTP_KERNEL 1" >>confdefs.h |
| 4112 | |
| 4113 | |
| 4114 | $as_echo "#define SRTP_KERNEL_LINUX 1" >>confdefs.h |
| 4115 | |
| 4116 | fi |
| 4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_kernel_linux" >&5 |
| 4118 | $as_echo "$enable_kernel_linux" >&6; } |
| 4119 | |
| 4120 | if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then |
| 4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5 |
| 4122 | $as_echo_n "checking for /dev/urandom... " >&6; } |
| 4123 | if ${ac_cv_file__dev_urandom+:} false; then : |
| 4124 | $as_echo_n "(cached) " >&6 |
| 4125 | else |
| 4126 | test "$cross_compiling" = yes && |
| 4127 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 4128 | if test -r "/dev/urandom"; then |
| 4129 | ac_cv_file__dev_urandom=yes |
| 4130 | else |
| 4131 | ac_cv_file__dev_urandom=no |
| 4132 | fi |
| 4133 | fi |
| 4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5 |
| 4135 | $as_echo "$ac_cv_file__dev_urandom" >&6; } |
| 4136 | if test "x$ac_cv_file__dev_urandom" = xyes; then : |
| 4137 | DEV_URANDOM=/dev/urandom |
| 4138 | else |
| 4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5 |
| 4140 | $as_echo_n "checking for /dev/random... " >&6; } |
| 4141 | if ${ac_cv_file__dev_random+:} false; then : |
| 4142 | $as_echo_n "(cached) " >&6 |
| 4143 | else |
| 4144 | test "$cross_compiling" = yes && |
| 4145 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 4146 | if test -r "/dev/random"; then |
| 4147 | ac_cv_file__dev_random=yes |
| 4148 | else |
| 4149 | ac_cv_file__dev_random=no |
| 4150 | fi |
| 4151 | fi |
| 4152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5 |
| 4153 | $as_echo "$ac_cv_file__dev_random" >&6; } |
| 4154 | if test "x$ac_cv_file__dev_random" = xyes; then : |
| 4155 | DEV_URANDOM=/dev/random |
| 4156 | fi |
| 4157 | |
| 4158 | fi |
| 4159 | |
| 4160 | fi |
| 4161 | |
| 4162 | |
| 4163 | |
| 4164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4165 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4166 | if ${ac_cv_header_stdc+:} false; then : |
| 4167 | $as_echo_n "(cached) " >&6 |
| 4168 | else |
| 4169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4170 | /* end confdefs.h. */ |
| 4171 | #include <stdlib.h> |
| 4172 | #include <stdarg.h> |
| 4173 | #include <string.h> |
| 4174 | #include <float.h> |
| 4175 | |
| 4176 | int |
| 4177 | main () |
| 4178 | { |
| 4179 | |
| 4180 | ; |
| 4181 | return 0; |
| 4182 | } |
| 4183 | _ACEOF |
| 4184 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4185 | ac_cv_header_stdc=yes |
| 4186 | else |
| 4187 | ac_cv_header_stdc=no |
| 4188 | fi |
| 4189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4190 | |
| 4191 | if test $ac_cv_header_stdc = yes; then |
| 4192 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4194 | /* end confdefs.h. */ |
| 4195 | #include <string.h> |
| 4196 | |
| 4197 | _ACEOF |
| 4198 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4199 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4200 | |
| 4201 | else |
| 4202 | ac_cv_header_stdc=no |
| 4203 | fi |
| 4204 | rm -f conftest* |
| 4205 | |
| 4206 | fi |
| 4207 | |
| 4208 | if test $ac_cv_header_stdc = yes; then |
| 4209 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4211 | /* end confdefs.h. */ |
| 4212 | #include <stdlib.h> |
| 4213 | |
| 4214 | _ACEOF |
| 4215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4216 | $EGREP "free" >/dev/null 2>&1; then : |
| 4217 | |
| 4218 | else |
| 4219 | ac_cv_header_stdc=no |
| 4220 | fi |
| 4221 | rm -f conftest* |
| 4222 | |
| 4223 | fi |
| 4224 | |
| 4225 | if test $ac_cv_header_stdc = yes; then |
| 4226 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4227 | if test "$cross_compiling" = yes; then : |
| 4228 | : |
| 4229 | else |
| 4230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4231 | /* end confdefs.h. */ |
| 4232 | #include <ctype.h> |
| 4233 | #include <stdlib.h> |
| 4234 | #if ((' ' & 0x0FF) == 0x020) |
| 4235 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4236 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4237 | #else |
| 4238 | # define ISLOWER(c) \ |
| 4239 | (('a' <= (c) && (c) <= 'i') \ |
| 4240 | || ('j' <= (c) && (c) <= 'r') \ |
| 4241 | || ('s' <= (c) && (c) <= 'z')) |
| 4242 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4243 | #endif |
| 4244 | |
| 4245 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4246 | int |
| 4247 | main () |
| 4248 | { |
| 4249 | int i; |
| 4250 | for (i = 0; i < 256; i++) |
| 4251 | if (XOR (islower (i), ISLOWER (i)) |
| 4252 | || toupper (i) != TOUPPER (i)) |
| 4253 | return 2; |
| 4254 | return 0; |
| 4255 | } |
| 4256 | _ACEOF |
| 4257 | if ac_fn_c_try_run "$LINENO"; then : |
| 4258 | |
| 4259 | else |
| 4260 | ac_cv_header_stdc=no |
| 4261 | fi |
| 4262 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4263 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4264 | fi |
| 4265 | |
| 4266 | fi |
| 4267 | fi |
| 4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4269 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4270 | if test $ac_cv_header_stdc = yes; then |
| 4271 | |
| 4272 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4273 | |
| 4274 | fi |
| 4275 | |
| 4276 | for ac_header in stdlib.h |
| 4277 | do : |
| 4278 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 4279 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
| 4280 | cat >>confdefs.h <<_ACEOF |
| 4281 | #define HAVE_STDLIB_H 1 |
| 4282 | _ACEOF |
| 4283 | |
| 4284 | fi |
| 4285 | |
| 4286 | done |
| 4287 | |
| 4288 | for ac_header in unistd.h |
| 4289 | do : |
| 4290 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 4291 | if test "x$ac_cv_header_unistd_h" = xyes; then : |
| 4292 | cat >>confdefs.h <<_ACEOF |
| 4293 | #define HAVE_UNISTD_H 1 |
| 4294 | _ACEOF |
| 4295 | |
| 4296 | fi |
| 4297 | |
| 4298 | done |
| 4299 | |
| 4300 | for ac_header in byteswap.h |
| 4301 | do : |
| 4302 | ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" |
| 4303 | if test "x$ac_cv_header_byteswap_h" = xyes; then : |
| 4304 | cat >>confdefs.h <<_ACEOF |
| 4305 | #define HAVE_BYTESWAP_H 1 |
| 4306 | _ACEOF |
| 4307 | |
| 4308 | fi |
| 4309 | |
| 4310 | done |
| 4311 | |
| 4312 | for ac_header in stdint.h |
| 4313 | do : |
| 4314 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 4315 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 4316 | cat >>confdefs.h <<_ACEOF |
| 4317 | #define HAVE_STDINT_H 1 |
| 4318 | _ACEOF |
| 4319 | |
| 4320 | fi |
| 4321 | |
| 4322 | done |
| 4323 | |
| 4324 | for ac_header in sys/uio.h |
| 4325 | do : |
| 4326 | ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
| 4327 | if test "x$ac_cv_header_sys_uio_h" = xyes; then : |
| 4328 | cat >>confdefs.h <<_ACEOF |
| 4329 | #define HAVE_SYS_UIO_H 1 |
| 4330 | _ACEOF |
| 4331 | |
| 4332 | fi |
| 4333 | |
| 4334 | done |
| 4335 | |
| 4336 | for ac_header in inttypes.h |
| 4337 | do : |
| 4338 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 4339 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
| 4340 | cat >>confdefs.h <<_ACEOF |
| 4341 | #define HAVE_INTTYPES_H 1 |
| 4342 | _ACEOF |
| 4343 | |
| 4344 | fi |
| 4345 | |
| 4346 | done |
| 4347 | |
| 4348 | for ac_header in sys/types.h |
| 4349 | do : |
| 4350 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 4351 | if test "x$ac_cv_header_sys_types_h" = xyes; then : |
| 4352 | cat >>confdefs.h <<_ACEOF |
| 4353 | #define HAVE_SYS_TYPES_H 1 |
| 4354 | _ACEOF |
| 4355 | |
| 4356 | fi |
| 4357 | |
| 4358 | done |
| 4359 | |
| 4360 | for ac_header in machine/types.h |
| 4361 | do : |
| 4362 | ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default" |
| 4363 | if test "x$ac_cv_header_machine_types_h" = xyes; then : |
| 4364 | cat >>confdefs.h <<_ACEOF |
| 4365 | #define HAVE_MACHINE_TYPES_H 1 |
| 4366 | _ACEOF |
| 4367 | |
| 4368 | fi |
| 4369 | |
| 4370 | done |
| 4371 | |
| 4372 | for ac_header in sys/int_types.h |
| 4373 | do : |
| 4374 | ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default" |
| 4375 | if test "x$ac_cv_header_sys_int_types_h" = xyes; then : |
| 4376 | cat >>confdefs.h <<_ACEOF |
| 4377 | #define HAVE_SYS_INT_TYPES_H 1 |
| 4378 | _ACEOF |
| 4379 | |
| 4380 | fi |
| 4381 | |
| 4382 | done |
| 4383 | |
| 4384 | |
| 4385 | for ac_header in sys/socket.h netinet/in.h arpa/inet.h |
| 4386 | do : |
| 4387 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4388 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 4389 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4390 | cat >>confdefs.h <<_ACEOF |
| 4391 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4392 | _ACEOF |
| 4393 | |
| 4394 | fi |
| 4395 | |
| 4396 | done |
| 4397 | |
| 4398 | for ac_header in windows.h |
| 4399 | do : |
| 4400 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
| 4401 | if test "x$ac_cv_header_windows_h" = xyes; then : |
| 4402 | cat >>confdefs.h <<_ACEOF |
| 4403 | #define HAVE_WINDOWS_H 1 |
| 4404 | _ACEOF |
| 4405 | for ac_header in winsock2.h |
| 4406 | do : |
| 4407 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 4408 | if test "x$ac_cv_header_winsock2_h" = xyes; then : |
| 4409 | cat >>confdefs.h <<_ACEOF |
| 4410 | #define HAVE_WINSOCK2_H 1 |
| 4411 | _ACEOF |
| 4412 | |
| 4413 | fi |
| 4414 | |
| 4415 | done |
| 4416 | |
| 4417 | fi |
| 4418 | |
| 4419 | done |
| 4420 | |
| 4421 | |
| 4422 | for ac_header in syslog.h |
| 4423 | do : |
| 4424 | ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" |
| 4425 | if test "x$ac_cv_header_syslog_h" = xyes; then : |
| 4426 | cat >>confdefs.h <<_ACEOF |
| 4427 | #define HAVE_SYSLOG_H 1 |
| 4428 | _ACEOF |
| 4429 | |
| 4430 | fi |
| 4431 | |
| 4432 | done |
| 4433 | |
| 4434 | |
| 4435 | ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" |
| 4436 | if test "x$ac_cv_type_int8_t" = xyes; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4437 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4438 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4439 | #define HAVE_INT8_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4440 | _ACEOF |
| 4441 | |
| 4442 | |
| 4443 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4444 | ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" |
| 4445 | if test "x$ac_cv_type_uint8_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4446 | |
| 4447 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4448 | #define HAVE_UINT8_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4449 | _ACEOF |
| 4450 | |
| 4451 | |
| 4452 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4453 | ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" |
| 4454 | if test "x$ac_cv_type_int16_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4455 | |
| 4456 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4457 | #define HAVE_INT16_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4458 | _ACEOF |
| 4459 | |
| 4460 | |
| 4461 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4462 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
| 4463 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4464 | |
| 4465 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4466 | #define HAVE_UINT16_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4467 | _ACEOF |
| 4468 | |
| 4469 | |
| 4470 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4471 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
| 4472 | if test "x$ac_cv_type_int32_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4473 | |
| 4474 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4475 | #define HAVE_INT32_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4476 | _ACEOF |
| 4477 | |
| 4478 | |
| 4479 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4480 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
| 4481 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4482 | |
| 4483 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4484 | #define HAVE_UINT32_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4485 | _ACEOF |
| 4486 | |
| 4487 | |
| 4488 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4489 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 4490 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4491 | |
| 4492 | cat >>confdefs.h <<_ACEOF |
David McGrew | d1694b5 | 2005-09-29 10:59:33 +0000 | [diff] [blame] | 4493 | #define HAVE_UINT64_T 1 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4494 | _ACEOF |
| 4495 | |
| 4496 | |
| 4497 | fi |
| 4498 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4499 | # The cast to long int works around a bug in the HP C Compiler |
| 4500 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4501 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4502 | # This bug is HP SR number 8606223364. |
| 4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 |
| 4504 | $as_echo_n "checking size of unsigned long... " >&6; } |
| 4505 | if ${ac_cv_sizeof_unsigned_long+:} false; then : |
| 4506 | $as_echo_n "(cached) " >&6 |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4507 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4508 | 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] | 4509 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4510 | else |
| 4511 | if test "$ac_cv_type_unsigned_long" = yes; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4514 | as_fn_error 77 "cannot compute sizeof (unsigned long) |
| 4515 | See \`config.log' for more details" "$LINENO" 5; } |
| 4516 | else |
| 4517 | ac_cv_sizeof_unsigned_long=0 |
| 4518 | fi |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4519 | fi |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4520 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4521 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 |
| 4523 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4524 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4525 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4526 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4527 | cat >>confdefs.h <<_ACEOF |
| 4528 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
| 4529 | _ACEOF |
| 4530 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4531 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4532 | # The cast to long int works around a bug in the HP C Compiler |
| 4533 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4534 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4535 | # This bug is HP SR number 8606223364. |
| 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 |
| 4537 | $as_echo_n "checking size of unsigned long long... " >&6; } |
| 4538 | if ${ac_cv_sizeof_unsigned_long_long+:} false; then : |
| 4539 | $as_echo_n "(cached) " >&6 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4540 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4541 | 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] | 4542 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4543 | else |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4544 | if test "$ac_cv_type_unsigned_long_long" = yes; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4545 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4546 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4547 | as_fn_error 77 "cannot compute sizeof (unsigned long long) |
| 4548 | See \`config.log' for more details" "$LINENO" 5; } |
| 4549 | else |
| 4550 | ac_cv_sizeof_unsigned_long_long=0 |
| 4551 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4552 | fi |
| 4553 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4554 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 |
| 4556 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4557 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4558 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4559 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4560 | cat >>confdefs.h <<_ACEOF |
| 4561 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4562 | _ACEOF |
| 4563 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4564 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4565 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 4567 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 4568 | if ${ac_cv_c_const+:} false; then : |
| 4569 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4570 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4572 | /* end confdefs.h. */ |
| 4573 | |
| 4574 | int |
| 4575 | main () |
| 4576 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4577 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4578 | #ifndef __cplusplus |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4579 | /* Ultrix mips cc rejects this sort of thing. */ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4580 | typedef int charset[2]; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4581 | const charset cs = { 0, 0 }; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4582 | /* SunOS 4.1.1 cc rejects this. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4583 | char const *const *pcpcc; |
| 4584 | char **ppc; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4585 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4586 | struct point {int x, y;}; |
| 4587 | static struct point const zero = {0,0}; |
| 4588 | /* AIX XL C 1.02.0.0 rejects this. |
| 4589 | It does not let you subtract one const X* pointer from another in |
| 4590 | an arm of an if-expression whose if-part is not a constant |
| 4591 | expression */ |
| 4592 | const char *g = "string"; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4593 | pcpcc = &g + (g ? g-g : 0); |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4594 | /* HPUX 7.0 cc rejects these. */ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4595 | ++pcpcc; |
| 4596 | ppc = (char**) pcpcc; |
| 4597 | pcpcc = (char const *const *) ppc; |
| 4598 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 4599 | char tx; |
| 4600 | char *t = &tx; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4601 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4602 | |
| 4603 | *t++ = 0; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4604 | if (s) return 0; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4605 | } |
| 4606 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4607 | int x[] = {25, 17}; |
| 4608 | const int *foo = &x[0]; |
| 4609 | ++foo; |
| 4610 | } |
| 4611 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4612 | typedef const int *iptr; |
| 4613 | iptr p = 0; |
| 4614 | ++p; |
| 4615 | } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4616 | { /* 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] | 4617 | "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] | 4618 | struct s { int j; const int *ap[3]; } bx; |
| 4619 | struct s *b = &bx; b->j = 5; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4620 | } |
| 4621 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4622 | const int foo = 10; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4623 | if (!foo) return 0; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4624 | } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4625 | return !cs[0] && !zero.x; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4626 | #endif |
| 4627 | |
| 4628 | ; |
| 4629 | return 0; |
| 4630 | } |
| 4631 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4632 | if ac_fn_c_try_compile "$LINENO"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4633 | ac_cv_c_const=yes |
| 4634 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4635 | ac_cv_c_const=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4636 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4638 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 4640 | $as_echo "$ac_cv_c_const" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4641 | if test $ac_cv_c_const = no; then |
| 4642 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4643 | $as_echo "#define const /**/" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4644 | |
| 4645 | fi |
| 4646 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 4648 | $as_echo_n "checking for inline... " >&6; } |
| 4649 | if ${ac_cv_c_inline+:} false; then : |
| 4650 | $as_echo_n "(cached) " >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4651 | else |
| 4652 | ac_cv_c_inline=no |
| 4653 | for ac_kw in inline __inline__ __inline; do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4655 | /* end confdefs.h. */ |
| 4656 | #ifndef __cplusplus |
| 4657 | typedef int foo_t; |
| 4658 | static $ac_kw foo_t static_foo () {return 0; } |
| 4659 | $ac_kw foo_t foo () {return 0; } |
| 4660 | #endif |
| 4661 | |
| 4662 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4663 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4664 | ac_cv_c_inline=$ac_kw |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4665 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4667 | test "$ac_cv_c_inline" != no && break |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4668 | done |
| 4669 | |
| 4670 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 4672 | $as_echo "$ac_cv_c_inline" >&6; } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4673 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4674 | case $ac_cv_c_inline in |
| 4675 | inline | yes) ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4676 | *) |
| 4677 | case $ac_cv_c_inline in |
| 4678 | no) ac_val=;; |
| 4679 | *) ac_val=$ac_cv_c_inline;; |
| 4680 | esac |
| 4681 | cat >>confdefs.h <<_ACEOF |
| 4682 | #ifndef __cplusplus |
| 4683 | #define inline $ac_val |
| 4684 | #endif |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4685 | _ACEOF |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4686 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4687 | esac |
| 4688 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4689 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 4690 | if test "x$ac_cv_type_size_t" = xyes; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4691 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4692 | else |
| 4693 | |
| 4694 | cat >>confdefs.h <<_ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4695 | #define size_t unsigned int |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4696 | _ACEOF |
| 4697 | |
| 4698 | fi |
| 4699 | |
| 4700 | |
Jonathan Lennox | 3f7fc22 | 2010-05-17 19:32:02 +0000 | [diff] [blame] | 4701 | for ac_func in socket inet_aton usleep sigaction |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4702 | do : |
| 4703 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4704 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 4705 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4706 | cat >>confdefs.h <<_ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4707 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4708 | _ACEOF |
| 4709 | |
| 4710 | fi |
| 4711 | done |
| 4712 | |
| 4713 | |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4714 | if test "x$ac_cv_func_socket" = "xno"; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 4716 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
| 4717 | if ${ac_cv_lib_socket_socket+:} false; then : |
| 4718 | $as_echo_n "(cached) " >&6 |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4719 | else |
| 4720 | ac_check_lib_save_LIBS=$LIBS |
| 4721 | LIBS="-lsocket $LIBS" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4723 | /* end confdefs.h. */ |
| 4724 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4725 | /* Override any GCC internal prototype to avoid an error. |
| 4726 | Use char because int might match the return type of a GCC |
| 4727 | builtin and then its argument prototype would still apply. */ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4728 | #ifdef __cplusplus |
| 4729 | extern "C" |
| 4730 | #endif |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4731 | char socket (); |
| 4732 | int |
| 4733 | main () |
| 4734 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4735 | return socket (); |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4736 | ; |
| 4737 | return 0; |
| 4738 | } |
| 4739 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4740 | if ac_fn_c_try_link "$LINENO"; then : |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4741 | ac_cv_lib_socket_socket=yes |
| 4742 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4743 | ac_cv_lib_socket_socket=no |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4744 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4745 | rm -f core conftest.err conftest.$ac_objext \ |
| 4746 | conftest$ac_exeext conftest.$ac_ext |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4747 | LIBS=$ac_check_lib_save_LIBS |
| 4748 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 4750 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
| 4751 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4752 | cat >>confdefs.h <<_ACEOF |
| 4753 | #define HAVE_LIBSOCKET 1 |
| 4754 | _ACEOF |
| 4755 | |
| 4756 | LIBS="-lsocket $LIBS" |
| 4757 | |
| 4758 | fi |
| 4759 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5 |
| 4761 | $as_echo_n "checking for socket in -lwsock32... " >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4762 | SAVELIBS="$LIBS" |
| 4763 | LIBS="$LIBS -lwsock32" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4765 | /* end confdefs.h. */ |
| 4766 | |
| 4767 | #include <winsock2.h> |
| 4768 | |
| 4769 | int |
| 4770 | main () |
| 4771 | { |
| 4772 | |
| 4773 | socket(0, 0, 0); |
| 4774 | |
| 4775 | ; |
| 4776 | return 0; |
| 4777 | } |
| 4778 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4779 | if ac_fn_c_try_link "$LINENO"; then : |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4780 | ac_cv_func_socket=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4782 | $as_echo "yes" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4783 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4784 | LIBS="$SAVELIBS" |
| 4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4786 | $as_echo "no" >&6; } |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4787 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4788 | rm -f core conftest.err conftest.$ac_objext \ |
| 4789 | conftest$ac_exeext conftest.$ac_ext |
Marcus Sundberg | 9aef51e | 2005-10-02 20:02:55 +0000 | [diff] [blame] | 4790 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4791 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5 |
| 4793 | $as_echo_n "checking whether to compile in debugging... " >&6; } |
| 4794 | # Check whether --enable-debug was given. |
| 4795 | if test "${enable_debug+set}" = set; then : |
| 4796 | enableval=$enable_debug; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4797 | else |
| 4798 | enable_debug=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4799 | fi |
| 4800 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4801 | if test "$enable_debug" = "yes"; then |
| 4802 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4803 | $as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4804 | |
| 4805 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 |
| 4807 | $as_echo "$enable_debug" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4808 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5 |
| 4810 | $as_echo_n "checking whether to use ISMAcryp code... " >&6; } |
| 4811 | # Check whether --enable-generic-aesicm was given. |
| 4812 | if test "${enable_generic_aesicm+set}" = set; then : |
| 4813 | enableval=$enable_generic_aesicm; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4814 | else |
| 4815 | enable_generic_aesicm=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4816 | fi |
| 4817 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 4818 | if test "$enable_generic_aesicm" = "yes"; then |
| 4819 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4820 | $as_echo "#define GENERIC_AESICM 1" >>confdefs.h |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4821 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4822 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5 |
| 4824 | $as_echo "$enable_generic_aesicm" >&6; } |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4825 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5 |
| 4827 | $as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; } |
| 4828 | # Check whether --enable-openssl was given. |
| 4829 | if test "${enable_openssl+set}" = set; then : |
| 4830 | enableval=$enable_openssl; |
| 4831 | else |
| 4832 | enable_openssl=no |
| 4833 | fi |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 4834 | |
jfigus | 2b48665 | 2014-07-24 15:01:41 -0400 | [diff] [blame] | 4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5 |
| 4836 | $as_echo "$enable_openssl" >&6; } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4837 | if test "$enable_openssl" = "yes"; then |
Sean Bright | bfb9e30 | 2014-03-24 20:45:17 -0400 | [diff] [blame] | 4838 | LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)"; |
| 4839 | CFLAGS="$CFLAGS $(pkg-config --cflags openssl)"; |
Cullen Jennings | e1de50f | 2013-05-22 12:27:28 -0600 | [diff] [blame] | 4840 | |
jfigus | b5fad5f | 2015-02-26 12:25:08 -0500 | [diff] [blame] | 4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 4842 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 4843 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 4844 | $as_echo_n "(cached) " >&6 |
| 4845 | else |
| 4846 | ac_check_lib_save_LIBS=$LIBS |
| 4847 | LIBS="-ldl $LIBS" |
| 4848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4849 | /* end confdefs.h. */ |
| 4850 | |
| 4851 | /* Override any GCC internal prototype to avoid an error. |
| 4852 | Use char because int might match the return type of a GCC |
| 4853 | builtin and then its argument prototype would still apply. */ |
| 4854 | #ifdef __cplusplus |
| 4855 | extern "C" |
| 4856 | #endif |
| 4857 | char dlopen (); |
| 4858 | int |
| 4859 | main () |
| 4860 | { |
| 4861 | return dlopen (); |
| 4862 | ; |
| 4863 | return 0; |
| 4864 | } |
| 4865 | _ACEOF |
| 4866 | if ac_fn_c_try_link "$LINENO"; then : |
| 4867 | ac_cv_lib_dl_dlopen=yes |
| 4868 | else |
| 4869 | ac_cv_lib_dl_dlopen=no |
| 4870 | fi |
| 4871 | rm -f core conftest.err conftest.$ac_objext \ |
| 4872 | conftest$ac_exeext conftest.$ac_ext |
| 4873 | LIBS=$ac_check_lib_save_LIBS |
| 4874 | fi |
| 4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 4876 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 4877 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 4878 | cat >>confdefs.h <<_ACEOF |
| 4879 | #define HAVE_LIBDL 1 |
| 4880 | _ACEOF |
| 4881 | |
| 4882 | LIBS="-ldl $LIBS" |
| 4883 | |
| 4884 | else |
jfigus | 13fd694 | 2015-03-02 09:09:13 -0500 | [diff] [blame] | 4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5 |
| 4886 | $as_echo "$as_me: WARNING: can't find libdl" >&2;} |
jfigus | b5fad5f | 2015-02-26 12:25:08 -0500 | [diff] [blame] | 4887 | fi |
| 4888 | |
| 4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
| 4890 | $as_echo_n "checking for inflate in -lz... " >&6; } |
| 4891 | if ${ac_cv_lib_z_inflate+:} false; then : |
| 4892 | $as_echo_n "(cached) " >&6 |
| 4893 | else |
| 4894 | ac_check_lib_save_LIBS=$LIBS |
| 4895 | LIBS="-lz $LIBS" |
| 4896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4897 | /* end confdefs.h. */ |
| 4898 | |
| 4899 | /* Override any GCC internal prototype to avoid an error. |
| 4900 | Use char because int might match the return type of a GCC |
| 4901 | builtin and then its argument prototype would still apply. */ |
| 4902 | #ifdef __cplusplus |
| 4903 | extern "C" |
| 4904 | #endif |
| 4905 | char inflate (); |
| 4906 | int |
| 4907 | main () |
| 4908 | { |
| 4909 | return inflate (); |
| 4910 | ; |
| 4911 | return 0; |
| 4912 | } |
| 4913 | _ACEOF |
| 4914 | if ac_fn_c_try_link "$LINENO"; then : |
| 4915 | ac_cv_lib_z_inflate=yes |
| 4916 | else |
| 4917 | ac_cv_lib_z_inflate=no |
| 4918 | fi |
| 4919 | rm -f core conftest.err conftest.$ac_objext \ |
| 4920 | conftest$ac_exeext conftest.$ac_ext |
| 4921 | LIBS=$ac_check_lib_save_LIBS |
| 4922 | fi |
| 4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 |
| 4924 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
| 4925 | if test "x$ac_cv_lib_z_inflate" = xyes; then : |
| 4926 | cat >>confdefs.h <<_ACEOF |
| 4927 | #define HAVE_LIBZ 1 |
| 4928 | _ACEOF |
| 4929 | |
| 4930 | LIBS="-lz $LIBS" |
| 4931 | |
| 4932 | else |
jfigus | 13fd694 | 2015-03-02 09:09:13 -0500 | [diff] [blame] | 4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5 |
| 4934 | $as_echo "$as_me: WARNING: can't find libz" >&2;} |
jfigus | b5fad5f | 2015-02-26 12:25:08 -0500 | [diff] [blame] | 4935 | fi |
| 4936 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5 |
| 4938 | $as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; } |
| 4939 | if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then : |
| 4940 | $as_echo_n "(cached) " >&6 |
| 4941 | else |
| 4942 | ac_check_lib_save_LIBS=$LIBS |
| 4943 | LIBS="-lcrypto $LIBS" |
| 4944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4945 | /* end confdefs.h. */ |
| 4946 | |
| 4947 | /* Override any GCC internal prototype to avoid an error. |
| 4948 | Use char because int might match the return type of a GCC |
| 4949 | builtin and then its argument prototype would still apply. */ |
| 4950 | #ifdef __cplusplus |
| 4951 | extern "C" |
| 4952 | #endif |
| 4953 | char EVP_EncryptInit (); |
| 4954 | int |
| 4955 | main () |
| 4956 | { |
| 4957 | return EVP_EncryptInit (); |
| 4958 | ; |
| 4959 | return 0; |
| 4960 | } |
| 4961 | _ACEOF |
| 4962 | if ac_fn_c_try_link "$LINENO"; then : |
| 4963 | ac_cv_lib_crypto_EVP_EncryptInit=yes |
| 4964 | else |
| 4965 | ac_cv_lib_crypto_EVP_EncryptInit=no |
| 4966 | fi |
| 4967 | rm -f core conftest.err conftest.$ac_objext \ |
| 4968 | conftest$ac_exeext conftest.$ac_ext |
| 4969 | LIBS=$ac_check_lib_save_LIBS |
| 4970 | fi |
| 4971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5 |
| 4972 | $as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; } |
| 4973 | if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then : |
| 4974 | cat >>confdefs.h <<_ACEOF |
| 4975 | #define HAVE_LIBCRYPTO 1 |
| 4976 | _ACEOF |
| 4977 | |
| 4978 | LIBS="-lcrypto $LIBS" |
| 4979 | |
| 4980 | else |
| 4981 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4982 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
jfigus | 5b22e37 | 2013-05-09 09:23:26 -0400 | [diff] [blame] | 4983 | as_fn_error $? "can't find openssl >1.0.1 crypto lib |
| 4984 | See \`config.log' for more details" "$LINENO" 5; } |
| 4985 | fi |
| 4986 | |
| 4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5 |
| 4988 | $as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; } |
| 4989 | if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then : |
| 4990 | $as_echo_n "(cached) " >&6 |
| 4991 | else |
| 4992 | ac_check_lib_save_LIBS=$LIBS |
| 4993 | LIBS="-lcrypto $LIBS" |
| 4994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4995 | /* end confdefs.h. */ |
| 4996 | |
| 4997 | /* Override any GCC internal prototype to avoid an error. |
| 4998 | Use char because int might match the return type of a GCC |
| 4999 | builtin and then its argument prototype would still apply. */ |
| 5000 | #ifdef __cplusplus |
| 5001 | extern "C" |
| 5002 | #endif |
| 5003 | char EVP_aes_128_ctr (); |
| 5004 | int |
| 5005 | main () |
| 5006 | { |
| 5007 | return EVP_aes_128_ctr (); |
| 5008 | ; |
| 5009 | return 0; |
| 5010 | } |
| 5011 | _ACEOF |
| 5012 | if ac_fn_c_try_link "$LINENO"; then : |
| 5013 | ac_cv_lib_crypto_EVP_aes_128_ctr=yes |
| 5014 | else |
| 5015 | ac_cv_lib_crypto_EVP_aes_128_ctr=no |
| 5016 | fi |
| 5017 | rm -f core conftest.err conftest.$ac_objext \ |
| 5018 | conftest$ac_exeext conftest.$ac_ext |
| 5019 | LIBS=$ac_check_lib_save_LIBS |
| 5020 | fi |
| 5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5 |
| 5022 | $as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; } |
| 5023 | if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then : |
| 5024 | cat >>confdefs.h <<_ACEOF |
| 5025 | #define HAVE_LIBCRYPTO 1 |
| 5026 | _ACEOF |
| 5027 | |
| 5028 | LIBS="-lcrypto $LIBS" |
| 5029 | |
| 5030 | else |
| 5031 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5032 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5033 | as_fn_error $? "can't find openssl >1.0.1 crypto lib |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5034 | See \`config.log' for more details" "$LINENO" 5; } |
| 5035 | fi |
| 5036 | |
jfigus | 7882dd9 | 2013-08-02 16:08:23 -0400 | [diff] [blame] | 5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5 |
| 5038 | $as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; } |
| 5039 | if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then : |
| 5040 | $as_echo_n "(cached) " >&6 |
| 5041 | else |
| 5042 | ac_check_lib_save_LIBS=$LIBS |
| 5043 | LIBS="-lcrypto $LIBS" |
| 5044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5045 | /* end confdefs.h. */ |
| 5046 | |
| 5047 | /* Override any GCC internal prototype to avoid an error. |
| 5048 | Use char because int might match the return type of a GCC |
| 5049 | builtin and then its argument prototype would still apply. */ |
| 5050 | #ifdef __cplusplus |
| 5051 | extern "C" |
| 5052 | #endif |
| 5053 | char EVP_aes_128_gcm (); |
| 5054 | int |
| 5055 | main () |
| 5056 | { |
| 5057 | return EVP_aes_128_gcm (); |
| 5058 | ; |
| 5059 | return 0; |
| 5060 | } |
| 5061 | _ACEOF |
| 5062 | if ac_fn_c_try_link "$LINENO"; then : |
| 5063 | ac_cv_lib_crypto_EVP_aes_128_gcm=yes |
| 5064 | else |
| 5065 | ac_cv_lib_crypto_EVP_aes_128_gcm=no |
| 5066 | fi |
| 5067 | rm -f core conftest.err conftest.$ac_objext \ |
| 5068 | conftest$ac_exeext conftest.$ac_ext |
| 5069 | LIBS=$ac_check_lib_save_LIBS |
| 5070 | fi |
| 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5 |
| 5072 | $as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; } |
| 5073 | if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then : |
| 5074 | cat >>confdefs.h <<_ACEOF |
| 5075 | #define HAVE_LIBCRYPTO 1 |
| 5076 | _ACEOF |
| 5077 | |
| 5078 | LIBS="-lcrypto $LIBS" |
| 5079 | |
| 5080 | else |
| 5081 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5082 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5083 | as_fn_error $? "can't find openssl >1.0.1 crypto lib |
| 5084 | See \`config.log' for more details" "$LINENO" 5; } |
| 5085 | fi |
| 5086 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5087 | |
| 5088 | $as_echo "#define OPENSSL 1" >>confdefs.h |
| 5089 | |
jfigus | 7882dd9 | 2013-08-02 16:08:23 -0400 | [diff] [blame] | 5090 | 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] | 5091 | RNG_OBJS=rand_source_ossl.o |
| 5092 | HMAC_OBJS=crypto/hash/hmac_ossl.o |
| 5093 | USE_OPENSSL=1 |
| 5094 | |
| 5095 | else |
| 5096 | AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o crypto/cipher/aes_cbc.o" |
jfigus | 7882dd9 | 2013-08-02 16:08:23 -0400 | [diff] [blame] | 5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5 |
| 5098 | $as_echo_n "checking which random device to use... " >&6; } |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5099 | if test "$enable_kernel_linux" = "yes"; then |
| 5100 | RNG_OBJS=rand_linux_kernel.o |
| 5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux kernel builtin" >&5 |
| 5102 | $as_echo "Linux kernel builtin" >&6; } |
| 5103 | else |
| 5104 | RNG_OBJS=rand_source.o |
| 5105 | if test -n "$DEV_URANDOM"; then |
| 5106 | |
| 5107 | cat >>confdefs.h <<_ACEOF |
| 5108 | #define DEV_URANDOM "$DEV_URANDOM" |
| 5109 | _ACEOF |
| 5110 | |
| 5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5 |
| 5112 | $as_echo "$DEV_URANDOM" >&6; } |
| 5113 | else |
| 5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5 |
| 5115 | $as_echo "standard rand() function..." >&6; } |
| 5116 | fi |
| 5117 | fi |
| 5118 | RNG_EXTRA_OBJS="crypto/rng/prng.o crypto/rng/ctr_prng.o" |
| 5119 | HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o" |
| 5120 | fi |
| 5121 | |
| 5122 | |
| 5123 | |
| 5124 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5125 | |
Bernardo Torres | 79e38ae | 2014-10-10 05:29:36 -0300 | [diff] [blame] | 5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5 |
| 5127 | $as_echo_n "checking for pcap_create in -lpcap... " >&6; } |
| 5128 | if ${ac_cv_lib_pcap_pcap_create+:} false; then : |
| 5129 | $as_echo_n "(cached) " >&6 |
| 5130 | else |
| 5131 | ac_check_lib_save_LIBS=$LIBS |
| 5132 | LIBS="-lpcap $LIBS" |
| 5133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5134 | /* end confdefs.h. */ |
| 5135 | |
| 5136 | /* Override any GCC internal prototype to avoid an error. |
| 5137 | Use char because int might match the return type of a GCC |
| 5138 | builtin and then its argument prototype would still apply. */ |
| 5139 | #ifdef __cplusplus |
| 5140 | extern "C" |
| 5141 | #endif |
| 5142 | char pcap_create (); |
| 5143 | int |
| 5144 | main () |
| 5145 | { |
| 5146 | return pcap_create (); |
| 5147 | ; |
| 5148 | return 0; |
| 5149 | } |
| 5150 | _ACEOF |
| 5151 | if ac_fn_c_try_link "$LINENO"; then : |
| 5152 | ac_cv_lib_pcap_pcap_create=yes |
| 5153 | else |
| 5154 | ac_cv_lib_pcap_pcap_create=no |
| 5155 | fi |
| 5156 | rm -f core conftest.err conftest.$ac_objext \ |
| 5157 | conftest$ac_exeext conftest.$ac_ext |
| 5158 | LIBS=$ac_check_lib_save_LIBS |
| 5159 | fi |
| 5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5 |
| 5161 | $as_echo "$ac_cv_lib_pcap_pcap_create" >&6; } |
| 5162 | if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then : |
Bernardo Torres | b3c5142 | 2014-10-14 12:40:09 -0300 | [diff] [blame] | 5163 | PCAP=1 |
| 5164 | LIBS="-lpcap $LIBS" |
| 5165 | HAVE_PCAP=1 |
Bernardo Torres | 79e38ae | 2014-10-10 05:29:36 -0300 | [diff] [blame] | 5166 | |
Bernardo Torres | b3c5142 | 2014-10-14 12:40:09 -0300 | [diff] [blame] | 5167 | $as_echo "#define HAVE_PCAP 1" >>confdefs.h |
| 5168 | |
| 5169 | |
Bernardo Torres | 79e38ae | 2014-10-10 05:29:36 -0300 | [diff] [blame] | 5170 | |
| 5171 | fi |
| 5172 | |
Bernardo Torres | 79e38ae | 2014-10-10 05:29:36 -0300 | [diff] [blame] | 5173 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use syslog for error reporting" >&5 |
| 5175 | $as_echo_n "checking whether to use syslog for error reporting... " >&6; } |
| 5176 | # Check whether --enable-syslog was given. |
| 5177 | if test "${enable_syslog+set}" = set; then : |
| 5178 | enableval=$enable_syslog; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5179 | else |
| 5180 | enable_syslog=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5181 | fi |
| 5182 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5183 | if test "$enable_syslog" = "yes"; then |
| 5184 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5185 | $as_echo "#define USE_SYSLOG 1" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5186 | |
| 5187 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_syslog" >&5 |
| 5189 | $as_echo "$enable_syslog" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5190 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5 |
| 5192 | $as_echo_n "checking whether to use stdout for error reporting... " >&6; } |
| 5193 | # Check whether --enable-stdout was given. |
| 5194 | if test "${enable_stdout+set}" = set; then : |
| 5195 | enableval=$enable_stdout; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5196 | else |
| 5197 | enable_stdout=yes |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5198 | fi |
| 5199 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5200 | if test "$enable_stdout" = "yes"; then |
| 5201 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5202 | $as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5203 | |
| 5204 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5 |
| 5206 | $as_echo "$enable_stdout" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5207 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5 |
| 5209 | $as_echo_n "checking whether to use /dev/console for error reporting... " >&6; } |
| 5210 | # Check whether --enable-console was given. |
| 5211 | if test "${enable_console+set}" = set; then : |
| 5212 | enableval=$enable_console; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5213 | else |
| 5214 | enable_console=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5215 | fi |
| 5216 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5217 | if test "$enable_console" = "yes"; then |
| 5218 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5219 | $as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5220 | |
| 5221 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5222 | $as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5223 | |
| 5224 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5 |
| 5226 | $as_echo "$enable_console" >&6; } |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5227 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GDOI key management" >&5 |
| 5229 | $as_echo_n "checking whether to use GDOI key management... " >&6; } |
| 5230 | # Check whether --enable-gdoi was given. |
| 5231 | if test "${enable_gdoi+set}" = set; then : |
| 5232 | enableval=$enable_gdoi; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5233 | else |
| 5234 | enable_gdoi=no |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5235 | fi |
| 5236 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 5237 | if test "$enable_gdoi" = "yes"; then |
| 5238 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5239 | $as_echo "#define SRTP_GDOI 1" >>confdefs.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5240 | |
| 5241 | GDOI_OBJS=gdoi/srtp+gdoi.o |
| 5242 | |
| 5243 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gdoi" >&5 |
| 5245 | $as_echo "$enable_gdoi" >&6; } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5246 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5247 | 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] | 5248 | |
| 5249 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 5250 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5251 | set dummy pkg-config; ac_word=$2 |
| 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5253 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5254 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : |
| 5255 | $as_echo_n "(cached) " >&6 |
| 5256 | else |
| 5257 | if test -n "$PKG_CONFIG"; then |
| 5258 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 5259 | else |
| 5260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5261 | for as_dir in $PATH |
| 5262 | do |
| 5263 | IFS=$as_save_IFS |
| 5264 | test -z "$as_dir" && as_dir=. |
| 5265 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5267 | ac_cv_prog_PKG_CONFIG="yes" |
| 5268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5269 | break 2 |
| 5270 | fi |
| 5271 | done |
| 5272 | done |
| 5273 | IFS=$as_save_IFS |
| 5274 | |
| 5275 | fi |
| 5276 | fi |
| 5277 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 5278 | if test -n "$PKG_CONFIG"; then |
| 5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5280 | $as_echo "$PKG_CONFIG" >&6; } |
| 5281 | else |
| 5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5283 | $as_echo "no" >&6; } |
| 5284 | fi |
| 5285 | |
| 5286 | |
| 5287 | if test "x$PKG_CONFIG" != "x"; then |
| 5288 | HAVE_PKG_CONFIG=1 |
| 5289 | ac_config_files="$ac_config_files libsrtp.pc" |
| 5290 | |
| 5291 | else |
| 5292 | HAVE_PKG_CONFIG=0 |
| 5293 | fi |
| 5294 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5295 | ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile" |
| 5296 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5297 | cat >confcache <<\_ACEOF |
| 5298 | # This file is a shell script that caches the results of configure |
| 5299 | # tests run on this system so they can be shared between configure |
| 5300 | # scripts and configure runs, see configure's option --config-cache. |
| 5301 | # It is not useful on other systems. If it contains results you don't |
| 5302 | # want to keep, you may remove or edit it. |
| 5303 | # |
| 5304 | # config.status only pays attention to the cache file if you give it |
| 5305 | # the --recheck option to rerun configure. |
| 5306 | # |
| 5307 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 5308 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 5309 | # following values. |
| 5310 | |
| 5311 | _ACEOF |
| 5312 | |
| 5313 | # The following way of writing the cache mishandles newlines in values, |
| 5314 | # but we know of no workaround that is simple, portable, and efficient. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5315 | # So, we kill variables containing newlines. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5316 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5317 | # 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] | 5318 | ( |
| 5319 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 5320 | eval ac_val=\$$ac_var |
| 5321 | case $ac_val in #( |
| 5322 | *${as_nl}*) |
| 5323 | case $ac_var in #( |
| 5324 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 5325 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 5326 | esac |
| 5327 | case $ac_var in #( |
| 5328 | _ | IFS | as_nl) ;; #( |
| 5329 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 5330 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 5331 | esac ;; |
| 5332 | esac |
| 5333 | done |
| 5334 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5335 | (set) 2>&1 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5336 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 5337 | *${as_nl}ac_space=\ *) |
| 5338 | # `set' does not quote correctly, so add quotes: double-quote |
| 5339 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5340 | sed -n \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5341 | "s/'/'\\\\''/g; |
| 5342 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5343 | ;; #( |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5344 | *) |
| 5345 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5346 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5347 | ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5348 | esac | |
| 5349 | sort |
| 5350 | ) | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5351 | sed ' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5352 | /^ac_cv_env_/b end |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5353 | t clear |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5354 | :clear |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5355 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 5356 | t end |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5357 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 5358 | :end' >>confcache |
| 5359 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 5360 | if test -w "$cache_file"; then |
| 5361 | if test "x$cache_file" != "x/dev/null"; then |
| 5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 5363 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 5364 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 5365 | cat confcache >"$cache_file" |
| 5366 | else |
| 5367 | case $cache_file in #( |
| 5368 | */* | ?:*) |
| 5369 | mv -f confcache "$cache_file"$$ && |
| 5370 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 5371 | *) |
| 5372 | mv -f confcache "$cache_file" ;; |
| 5373 | esac |
| 5374 | fi |
| 5375 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5376 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5377 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 5378 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5379 | fi |
| 5380 | fi |
| 5381 | rm -f confcache |
| 5382 | |
| 5383 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5384 | # Let make expand exec_prefix. |
| 5385 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5386 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5387 | DEFS=-DHAVE_CONFIG_H |
| 5388 | |
| 5389 | ac_libobjs= |
| 5390 | ac_ltlibobjs= |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5391 | U= |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5392 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5393 | # 1. Remove the extension, and $U if already installed. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5394 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 5395 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 5396 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 5397 | # will be set to the directory where LIBOBJS objects are built. |
| 5398 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 5399 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5400 | done |
| 5401 | LIBOBJS=$ac_libobjs |
| 5402 | |
| 5403 | LTLIBOBJS=$ac_ltlibobjs |
| 5404 | |
| 5405 | |
| 5406 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5407 | |
| 5408 | : "${CONFIG_STATUS=./config.status}" |
| 5409 | ac_write_fail=0 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5410 | ac_clean_files_save=$ac_clean_files |
| 5411 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 5413 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5414 | as_write_fail=0 |
| 5415 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5416 | #! $SHELL |
| 5417 | # Generated by $as_me. |
| 5418 | # Run this file to recreate the current configuration. |
| 5419 | # Compiler output produced by configure, useful for debugging |
| 5420 | # configure, is in config.log if it exists. |
| 5421 | |
| 5422 | debug=false |
| 5423 | ac_cs_recheck=false |
| 5424 | ac_cs_silent=false |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5425 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5426 | SHELL=\${CONFIG_SHELL-$SHELL} |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5427 | export SHELL |
| 5428 | _ASEOF |
| 5429 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 5430 | ## -------------------- ## |
| 5431 | ## M4sh Initialization. ## |
| 5432 | ## -------------------- ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5433 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5434 | # Be more Bourne compatible |
| 5435 | DUALCASE=1; export DUALCASE # for MKS sh |
| 5436 | 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] | 5437 | emulate sh |
| 5438 | NULLCMD=: |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5439 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5440 | # is contrary to our usage. Disable this feature. |
| 5441 | alias -g '${1+"$@"}'='"$@"' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5442 | setopt NO_GLOB_SUBST |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5443 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5444 | case `(set -o) 2>/dev/null` in #( |
| 5445 | *posix*) : |
| 5446 | set -o posix ;; #( |
| 5447 | *) : |
| 5448 | ;; |
| 5449 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5450 | fi |
| 5451 | |
| 5452 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5453 | as_nl=' |
| 5454 | ' |
| 5455 | export as_nl |
| 5456 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 5457 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 5458 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5459 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5460 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 5461 | # but without wasting forks for bash or zsh. |
| 5462 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 5463 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5464 | as_echo='print -r --' |
| 5465 | as_echo_n='print -rn --' |
| 5466 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5467 | as_echo='printf %s\n' |
| 5468 | as_echo_n='printf %s' |
| 5469 | else |
| 5470 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 5471 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 5472 | as_echo_n='/usr/ucb/echo -n' |
| 5473 | else |
| 5474 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 5475 | as_echo_n_body='eval |
| 5476 | arg=$1; |
| 5477 | case $arg in #( |
| 5478 | *"$as_nl"*) |
| 5479 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 5480 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 5481 | esac; |
| 5482 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 5483 | ' |
| 5484 | export as_echo_n_body |
| 5485 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 5486 | fi |
| 5487 | export as_echo_body |
| 5488 | as_echo='sh -c $as_echo_body as_echo' |
| 5489 | fi |
| 5490 | |
| 5491 | # The user is always right. |
| 5492 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5493 | PATH_SEPARATOR=: |
| 5494 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 5495 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 5496 | PATH_SEPARATOR=';' |
| 5497 | } |
| 5498 | fi |
| 5499 | |
| 5500 | |
| 5501 | # IFS |
| 5502 | # We need space, tab and new line, in precisely that order. Quoting is |
| 5503 | # there to prevent editors from complaining about space-tab. |
| 5504 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 5505 | # splitting by setting IFS to empty value.) |
| 5506 | IFS=" "" $as_nl" |
| 5507 | |
| 5508 | # Find who we are. Look in the path if we contain no directory separator. |
| 5509 | as_myself= |
| 5510 | case $0 in #(( |
| 5511 | *[\\/]* ) as_myself=$0 ;; |
| 5512 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5513 | for as_dir in $PATH |
| 5514 | do |
| 5515 | IFS=$as_save_IFS |
| 5516 | test -z "$as_dir" && as_dir=. |
| 5517 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 5518 | done |
| 5519 | IFS=$as_save_IFS |
| 5520 | |
| 5521 | ;; |
| 5522 | esac |
| 5523 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 5524 | # in which case we are not to be found in the path. |
| 5525 | if test "x$as_myself" = x; then |
| 5526 | as_myself=$0 |
| 5527 | fi |
| 5528 | if test ! -f "$as_myself"; then |
| 5529 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 5530 | exit 1 |
| 5531 | fi |
| 5532 | |
| 5533 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 5534 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 5535 | # suppresses any "Segmentation fault" message there. '((' could |
| 5536 | # trigger a bug in pdksh 5.2.14. |
| 5537 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 5538 | do eval test x\${$as_var+set} = xset \ |
| 5539 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 5540 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5541 | PS1='$ ' |
| 5542 | PS2='> ' |
| 5543 | PS4='+ ' |
| 5544 | |
| 5545 | # NLS nuisances. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5546 | LC_ALL=C |
| 5547 | export LC_ALL |
| 5548 | LANGUAGE=C |
| 5549 | export LANGUAGE |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 5550 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5551 | # CDPATH. |
| 5552 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 5553 | |
| 5554 | |
| 5555 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 5556 | # ---------------------------------------- |
| 5557 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 5558 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 5559 | # script with STATUS, using 1 if that was 0. |
| 5560 | as_fn_error () |
| 5561 | { |
| 5562 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 5563 | if test "$4"; then |
| 5564 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 5565 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 5566 | fi |
| 5567 | $as_echo "$as_me: error: $2" >&2 |
| 5568 | as_fn_exit $as_status |
| 5569 | } # as_fn_error |
| 5570 | |
| 5571 | |
| 5572 | # as_fn_set_status STATUS |
| 5573 | # ----------------------- |
| 5574 | # Set $? to STATUS, without forking. |
| 5575 | as_fn_set_status () |
| 5576 | { |
| 5577 | return $1 |
| 5578 | } # as_fn_set_status |
| 5579 | |
| 5580 | # as_fn_exit STATUS |
| 5581 | # ----------------- |
| 5582 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 5583 | as_fn_exit () |
| 5584 | { |
| 5585 | set +e |
| 5586 | as_fn_set_status $1 |
| 5587 | exit $1 |
| 5588 | } # as_fn_exit |
| 5589 | |
| 5590 | # as_fn_unset VAR |
| 5591 | # --------------- |
| 5592 | # Portably unset VAR. |
| 5593 | as_fn_unset () |
| 5594 | { |
| 5595 | { eval $1=; unset $1;} |
| 5596 | } |
| 5597 | as_unset=as_fn_unset |
| 5598 | # as_fn_append VAR VALUE |
| 5599 | # ---------------------- |
| 5600 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 5601 | # advantage of any shell optimizations that allow amortized linear growth over |
| 5602 | # repeated appends, instead of the typical quadratic growth present in naive |
| 5603 | # implementations. |
| 5604 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 5605 | eval 'as_fn_append () |
| 5606 | { |
| 5607 | eval $1+=\$2 |
| 5608 | }' |
| 5609 | else |
| 5610 | as_fn_append () |
| 5611 | { |
| 5612 | eval $1=\$$1\$2 |
| 5613 | } |
| 5614 | fi # as_fn_append |
| 5615 | |
| 5616 | # as_fn_arith ARG... |
| 5617 | # ------------------ |
| 5618 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 5619 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 5620 | # must be portable across $(()) and expr. |
| 5621 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 5622 | eval 'as_fn_arith () |
| 5623 | { |
| 5624 | as_val=$(( $* )) |
| 5625 | }' |
| 5626 | else |
| 5627 | as_fn_arith () |
| 5628 | { |
| 5629 | as_val=`expr "$@" || test $? -eq 1` |
| 5630 | } |
| 5631 | fi # as_fn_arith |
| 5632 | |
| 5633 | |
| 5634 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 5635 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5636 | as_expr=expr |
| 5637 | else |
| 5638 | as_expr=false |
| 5639 | fi |
| 5640 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5641 | 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] | 5642 | as_basename=basename |
| 5643 | else |
| 5644 | as_basename=false |
| 5645 | fi |
| 5646 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5647 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 5648 | as_dirname=dirname |
| 5649 | else |
| 5650 | as_dirname=false |
| 5651 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5652 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5653 | as_me=`$as_basename -- "$0" || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5654 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5655 | X"$0" : 'X\(//\)$' \| \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5656 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 5657 | $as_echo X/"$0" | |
| 5658 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 5659 | s//\1/ |
| 5660 | q |
| 5661 | } |
| 5662 | /^X\/\(\/\/\)$/{ |
| 5663 | s//\1/ |
| 5664 | q |
| 5665 | } |
| 5666 | /^X\/\(\/\).*/{ |
| 5667 | s//\1/ |
| 5668 | q |
| 5669 | } |
| 5670 | s/.*/./; q'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5671 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5672 | # Avoid depending upon Character Ranges. |
| 5673 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5674 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5675 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5676 | as_cr_digits='0123456789' |
| 5677 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 5678 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5679 | ECHO_C= ECHO_N= ECHO_T= |
| 5680 | case `echo -n x` in #((((( |
| 5681 | -n*) |
| 5682 | case `echo 'xy\c'` in |
| 5683 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 5684 | xy) ECHO_C='\c';; |
| 5685 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 5686 | ECHO_T=' ';; |
| 5687 | esac;; |
| 5688 | *) |
| 5689 | ECHO_N='-n';; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5690 | esac |
| 5691 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5692 | rm -f conf$$ conf$$.exe conf$$.file |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5693 | if test -d conf$$.dir; then |
| 5694 | rm -f conf$$.dir/conf$$.file |
| 5695 | else |
| 5696 | rm -f conf$$.dir |
| 5697 | mkdir conf$$.dir 2>/dev/null |
| 5698 | fi |
| 5699 | if (echo >conf$$.file) 2>/dev/null; then |
| 5700 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5701 | as_ln_s='ln -s' |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5702 | # ... but there are two gotchas: |
| 5703 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 5704 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 5705 | # In both cases, we have to default to `cp -pR'. |
| 5706 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 5707 | as_ln_s='cp -pR' |
| 5708 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5709 | as_ln_s=ln |
| 5710 | else |
| 5711 | as_ln_s='cp -pR' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5712 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5713 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5714 | as_ln_s='cp -pR' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5715 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5716 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 5717 | rmdir conf$$.dir 2>/dev/null |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5718 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5719 | |
| 5720 | # as_fn_mkdir_p |
| 5721 | # ------------- |
| 5722 | # Create "$as_dir" as a directory, including parents if necessary. |
| 5723 | as_fn_mkdir_p () |
| 5724 | { |
| 5725 | |
| 5726 | case $as_dir in #( |
| 5727 | -*) as_dir=./$as_dir;; |
| 5728 | esac |
| 5729 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 5730 | as_dirs= |
| 5731 | while :; do |
| 5732 | case $as_dir in #( |
| 5733 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 5734 | *) as_qdir=$as_dir;; |
| 5735 | esac |
| 5736 | as_dirs="'$as_qdir' $as_dirs" |
| 5737 | as_dir=`$as_dirname -- "$as_dir" || |
| 5738 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5739 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5740 | X"$as_dir" : 'X\(//\)$' \| \ |
| 5741 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 5742 | $as_echo X"$as_dir" | |
| 5743 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 5744 | s//\1/ |
| 5745 | q |
| 5746 | } |
| 5747 | /^X\(\/\/\)[^/].*/{ |
| 5748 | s//\1/ |
| 5749 | q |
| 5750 | } |
| 5751 | /^X\(\/\/\)$/{ |
| 5752 | s//\1/ |
| 5753 | q |
| 5754 | } |
| 5755 | /^X\(\/\).*/{ |
| 5756 | s//\1/ |
| 5757 | q |
| 5758 | } |
| 5759 | s/.*/./; q'` |
| 5760 | test -d "$as_dir" && break |
| 5761 | done |
| 5762 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 5763 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 5764 | |
| 5765 | |
| 5766 | } # as_fn_mkdir_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5767 | if mkdir -p . 2>/dev/null; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5768 | as_mkdir_p='mkdir -p "$as_dir"' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5769 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5770 | test -d ./-p && rmdir ./-p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5771 | as_mkdir_p=false |
| 5772 | fi |
| 5773 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5774 | |
| 5775 | # as_fn_executable_p FILE |
| 5776 | # ----------------------- |
| 5777 | # Test if FILE is an executable regular file. |
| 5778 | as_fn_executable_p () |
| 5779 | { |
| 5780 | test -f "$1" && test -x "$1" |
| 5781 | } # as_fn_executable_p |
| 5782 | as_test_x='test -x' |
| 5783 | as_executable_p=as_fn_executable_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5784 | |
| 5785 | # Sed expression to map a string onto a valid CPP name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5786 | 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] | 5787 | |
| 5788 | # Sed expression to map a string onto a valid variable name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5789 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5790 | |
| 5791 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5792 | exec 6>&1 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5793 | ## ----------------------------------- ## |
| 5794 | ## Main body of $CONFIG_STATUS script. ## |
| 5795 | ## ----------------------------------- ## |
| 5796 | _ASEOF |
| 5797 | 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] | 5798 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5799 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5800 | # 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] | 5801 | # report actual input values of CONFIG_FILES etc. instead of their |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5802 | # values after options handling. |
| 5803 | ac_log=" |
jfigus | e806a66 | 2015-03-11 10:02:12 -0400 | [diff] [blame] | 5804 | This file was extended by libsrtp $as_me 1.5.2, which was |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5805 | generated by GNU Autoconf 2.69. Invocation command line was |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5806 | |
| 5807 | CONFIG_FILES = $CONFIG_FILES |
| 5808 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 5809 | CONFIG_LINKS = $CONFIG_LINKS |
| 5810 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 5811 | $ $0 $@ |
| 5812 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5813 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 5814 | " |
| 5815 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5816 | _ACEOF |
| 5817 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5818 | case $ac_config_files in *" |
| 5819 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 5820 | esac |
| 5821 | |
| 5822 | case $ac_config_headers in *" |
| 5823 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 5824 | esac |
| 5825 | |
| 5826 | |
| 5827 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5828 | # Files that config.status was made for. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5829 | config_files="$ac_config_files" |
| 5830 | config_headers="$ac_config_headers" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5831 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5832 | _ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5833 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5834 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5835 | ac_cs_usage="\ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5836 | \`$as_me' instantiates files and other configuration actions |
| 5837 | from templates according to the current configuration. Unless the files |
| 5838 | and actions are specified as TAGs, all are instantiated by default. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5839 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5840 | Usage: $0 [OPTION]... [TAG]... |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5841 | |
| 5842 | -h, --help print this help, then exit |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5843 | -V, --version print version number and configuration settings, then exit |
| 5844 | --config print configuration, then exit |
| 5845 | -q, --quiet, --silent |
| 5846 | do not print progress messages |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5847 | -d, --debug don't remove temporary files |
| 5848 | --recheck update $as_me by reconfiguring in the same conditions |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5849 | --file=FILE[:TEMPLATE] |
| 5850 | instantiate the configuration file FILE |
| 5851 | --header=FILE[:TEMPLATE] |
| 5852 | instantiate the configuration header FILE |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5853 | |
| 5854 | Configuration files: |
| 5855 | $config_files |
| 5856 | |
| 5857 | Configuration headers: |
| 5858 | $config_headers |
| 5859 | |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 5860 | Report bugs to <https://github.com/cisco/libsrtp/issues>." |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 5861 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5862 | _ACEOF |
| 5863 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5864 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5865 | ac_cs_version="\\ |
jfigus | e806a66 | 2015-03-11 10:02:12 -0400 | [diff] [blame] | 5866 | libsrtp config.status 1.5.2 |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5867 | configured by $0, generated by GNU Autoconf 2.69, |
| 5868 | with options \\"\$ac_cs_config\\" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5869 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5870 | Copyright (C) 2012 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5871 | This config.status script is free software; the Free Software Foundation |
| 5872 | gives unlimited permission to copy, distribute and modify it." |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5873 | |
| 5874 | ac_pwd='$ac_pwd' |
| 5875 | srcdir='$srcdir' |
| 5876 | INSTALL='$INSTALL' |
| 5877 | test -n "\$AWK" || AWK=awk |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5878 | _ACEOF |
| 5879 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5880 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5881 | # The default lists apply if the user does not specify any file. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5882 | ac_need_defaults=: |
| 5883 | while test $# != 0 |
| 5884 | do |
| 5885 | case $1 in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5886 | --*=?*) |
| 5887 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 5888 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5889 | ac_shift=: |
| 5890 | ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5891 | --*=) |
| 5892 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 5893 | ac_optarg= |
| 5894 | ac_shift=: |
| 5895 | ;; |
| 5896 | *) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5897 | ac_option=$1 |
| 5898 | ac_optarg=$2 |
| 5899 | ac_shift=shift |
| 5900 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5901 | esac |
| 5902 | |
| 5903 | case $ac_option in |
| 5904 | # Handling of the options. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5905 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 5906 | ac_cs_recheck=: ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5907 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 5908 | $as_echo "$ac_cs_version"; exit ;; |
| 5909 | --config | --confi | --conf | --con | --co | --c ) |
| 5910 | $as_echo "$ac_cs_config"; exit ;; |
| 5911 | --debug | --debu | --deb | --de | --d | -d ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5912 | debug=: ;; |
| 5913 | --file | --fil | --fi | --f ) |
| 5914 | $ac_shift |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5915 | case $ac_optarg in |
| 5916 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5917 | '') as_fn_error $? "missing file argument" ;; |
| 5918 | esac |
| 5919 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5920 | ac_need_defaults=false;; |
| 5921 | --header | --heade | --head | --hea ) |
| 5922 | $ac_shift |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5923 | case $ac_optarg in |
| 5924 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5925 | esac |
| 5926 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5927 | ac_need_defaults=false;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5928 | --he | --h) |
| 5929 | # Conflict between --help and --header |
| 5930 | as_fn_error $? "ambiguous option: \`$1' |
| 5931 | Try \`$0 --help' for more information.";; |
| 5932 | --help | --hel | -h ) |
| 5933 | $as_echo "$ac_cs_usage"; exit ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5934 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 5935 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 5936 | ac_cs_silent=: ;; |
| 5937 | |
| 5938 | # This is an error. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5939 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 5940 | Try \`$0 --help' for more information." ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5941 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5942 | *) as_fn_append ac_config_targets " $1" |
| 5943 | ac_need_defaults=false ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5944 | |
| 5945 | esac |
| 5946 | shift |
| 5947 | done |
| 5948 | |
| 5949 | ac_configure_extra_args= |
| 5950 | |
| 5951 | if $ac_cs_silent; then |
| 5952 | exec 6>/dev/null |
| 5953 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 5954 | fi |
| 5955 | |
| 5956 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5957 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5958 | if \$ac_cs_recheck; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5959 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 5960 | shift |
| 5961 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 5962 | CONFIG_SHELL='$SHELL' |
| 5963 | export CONFIG_SHELL |
| 5964 | exec "\$@" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5965 | fi |
| 5966 | |
| 5967 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5968 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5969 | exec 5>>config.log |
| 5970 | { |
| 5971 | echo |
| 5972 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 5973 | ## Running $as_me. ## |
| 5974 | _ASBOX |
| 5975 | $as_echo "$ac_log" |
| 5976 | } >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5977 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5978 | _ACEOF |
| 5979 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5980 | _ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5981 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5982 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5983 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5984 | # Handling of arguments. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5985 | for ac_config_target in $ac_config_targets |
| 5986 | do |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5987 | case $ac_config_target in |
| 5988 | "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;; |
Saúl Ibarra Corretgé | ff3d042 | 2014-10-01 11:24:15 +0200 | [diff] [blame] | 5989 | "libsrtp.pc") CONFIG_FILES="$CONFIG_FILES libsrtp.pc" ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5990 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 5991 | "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;; |
| 5992 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 5993 | |
| 5994 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5995 | esac |
| 5996 | done |
| 5997 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 5998 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5999 | # If the user did not use the arguments to specify the items to instantiate, |
| 6000 | # then the envvar interface is used. Set only those that are not. |
| 6001 | # We use the long form for the default assignment because of an extremely |
| 6002 | # bizarre bug on SunOS 4.1.3. |
| 6003 | if $ac_need_defaults; then |
| 6004 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 6005 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 6006 | fi |
| 6007 | |
| 6008 | # Have a temporary directory for convenience. Make it in the build tree |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6009 | # 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] | 6010 | # creating and moving files from /tmp can sometimes cause problems. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6011 | # Hook for its removal unless debugging. |
| 6012 | # Note that there is a small window in which the directory will not be cleaned: |
| 6013 | # after its creation but before its name has been assigned to `$tmp'. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6014 | $debug || |
| 6015 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6016 | tmp= ac_tmp= |
| 6017 | trap 'exit_status=$? |
| 6018 | : "${ac_tmp:=$tmp}" |
| 6019 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 6020 | ' 0 |
| 6021 | trap 'as_fn_exit 1' 1 2 13 15 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6022 | } |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6023 | # Create a (secure) tmp directory for tmp files. |
| 6024 | |
| 6025 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6026 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 6027 | test -d "$tmp" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6028 | } || |
| 6029 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6030 | tmp=./conf$$-$RANDOM |
| 6031 | (umask 077 && mkdir "$tmp") |
| 6032 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 6033 | ac_tmp=$tmp |
| 6034 | |
| 6035 | # Set up the scripts for CONFIG_FILES section. |
| 6036 | # No need to generate them if there are no CONFIG_FILES. |
| 6037 | # This happens for instance with `./config.status config.h'. |
| 6038 | if test -n "$CONFIG_FILES"; then |
| 6039 | |
| 6040 | |
| 6041 | ac_cr=`echo X | tr X '\015'` |
| 6042 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 6043 | # But we know of no other shell where ac_cr would be empty at this |
| 6044 | # point, so we can use a bashism as a fallback. |
| 6045 | if test "x$ac_cr" = x; then |
| 6046 | eval ac_cr=\$\'\\r\' |
| 6047 | fi |
| 6048 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 6049 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 6050 | ac_cs_awk_cr='\\r' |
| 6051 | else |
| 6052 | ac_cs_awk_cr=$ac_cr |
| 6053 | fi |
| 6054 | |
| 6055 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 6056 | _ACEOF |
| 6057 | |
| 6058 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6059 | { |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6060 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 6061 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 6062 | echo "_ACEOF" |
| 6063 | } >conf$$subs.sh || |
| 6064 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6065 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 6066 | ac_delim='%!_!# ' |
| 6067 | for ac_last_try in false false false false false :; do |
| 6068 | . ./conf$$subs.sh || |
| 6069 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6070 | |
| 6071 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 6072 | if test $ac_delim_n = $ac_delim_num; then |
| 6073 | break |
| 6074 | elif $ac_last_try; then |
| 6075 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6076 | else |
| 6077 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6078 | fi |
| 6079 | done |
| 6080 | rm -f conf$$subs.sh |
| 6081 | |
| 6082 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6083 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 6084 | _ACEOF |
| 6085 | sed -n ' |
| 6086 | h |
| 6087 | s/^/S["/; s/!.*/"]=/ |
| 6088 | p |
| 6089 | g |
| 6090 | s/^[^!]*!// |
| 6091 | :repl |
| 6092 | t repl |
| 6093 | s/'"$ac_delim"'$// |
| 6094 | t delim |
| 6095 | :nl |
| 6096 | h |
| 6097 | s/\(.\{148\}\)..*/\1/ |
| 6098 | t more1 |
| 6099 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 6100 | p |
| 6101 | n |
| 6102 | b repl |
| 6103 | :more1 |
| 6104 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6105 | p |
| 6106 | g |
| 6107 | s/.\{148\}// |
| 6108 | t nl |
| 6109 | :delim |
| 6110 | h |
| 6111 | s/\(.\{148\}\)..*/\1/ |
| 6112 | t more2 |
| 6113 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 6114 | p |
| 6115 | b |
| 6116 | :more2 |
| 6117 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6118 | p |
| 6119 | g |
| 6120 | s/.\{148\}// |
| 6121 | t delim |
| 6122 | ' <conf$$subs.awk | sed ' |
| 6123 | /^[^""]/{ |
| 6124 | N |
| 6125 | s/\n// |
| 6126 | } |
| 6127 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6128 | rm -f conf$$subs.awk |
| 6129 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6130 | _ACAWK |
| 6131 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 6132 | for (key in S) S_is_set[key] = 1 |
| 6133 | FS = "" |
| 6134 | |
| 6135 | } |
| 6136 | { |
| 6137 | line = $ 0 |
| 6138 | nfields = split(line, field, "@") |
| 6139 | substed = 0 |
| 6140 | len = length(field[1]) |
| 6141 | for (i = 2; i < nfields; i++) { |
| 6142 | key = field[i] |
| 6143 | keylen = length(key) |
| 6144 | if (S_is_set[key]) { |
| 6145 | value = S[key] |
| 6146 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 6147 | len += length(value) + length(field[++i]) |
| 6148 | substed = 1 |
| 6149 | } else |
| 6150 | len += 1 + keylen |
| 6151 | } |
| 6152 | |
| 6153 | print line |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6154 | } |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6155 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6156 | _ACAWK |
| 6157 | _ACEOF |
| 6158 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6159 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 6160 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 6161 | else |
| 6162 | cat |
| 6163 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 6164 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6165 | _ACEOF |
| 6166 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6167 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 6168 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 6169 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 6170 | # (actually we leave an empty line to preserve line numbers). |
| 6171 | if test "x$srcdir" = x.; then |
| 6172 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 6173 | h |
| 6174 | s/// |
| 6175 | s/^/:/ |
| 6176 | s/[ ]*$/:/ |
| 6177 | s/:\$(srcdir):/:/g |
| 6178 | s/:\${srcdir}:/:/g |
| 6179 | s/:@srcdir@:/:/g |
| 6180 | s/^:*// |
| 6181 | s/:*$// |
| 6182 | x |
| 6183 | s/\(=[ ]*\).*/\1/ |
| 6184 | G |
| 6185 | s/\n// |
| 6186 | s/^[^=]*=[ ]*$// |
| 6187 | }' |
| 6188 | fi |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6189 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6190 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6191 | fi # test -n "$CONFIG_FILES" |
| 6192 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6193 | # Set up the scripts for CONFIG_HEADERS section. |
| 6194 | # No need to generate them if there are no CONFIG_HEADERS. |
| 6195 | # This happens for instance with `./config.status Makefile'. |
| 6196 | if test -n "$CONFIG_HEADERS"; then |
| 6197 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 6198 | BEGIN { |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6199 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6200 | |
| 6201 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 6202 | # here-document in config.status, that substitutes the proper values into |
| 6203 | # config.h.in to produce config.h. |
| 6204 | |
| 6205 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 6206 | # handling of long lines. |
| 6207 | ac_delim='%!_!# ' |
| 6208 | for ac_last_try in false false :; do |
| 6209 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 6210 | if test -z "$ac_tt"; then |
| 6211 | break |
| 6212 | elif $ac_last_try; then |
| 6213 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 6214 | else |
| 6215 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6216 | fi |
| 6217 | done |
| 6218 | |
| 6219 | # For the awk script, D is an array of macro values keyed by name, |
| 6220 | # likewise P contains macro parameters if any. Preserve backslash |
| 6221 | # newline sequences. |
| 6222 | |
| 6223 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 6224 | sed -n ' |
| 6225 | s/.\{148\}/&'"$ac_delim"'/g |
| 6226 | t rset |
| 6227 | :rset |
| 6228 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 6229 | t def |
| 6230 | d |
| 6231 | :def |
| 6232 | s/\\$// |
| 6233 | t bsnl |
| 6234 | s/["\\]/\\&/g |
| 6235 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6236 | D["\1"]=" \3"/p |
| 6237 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 6238 | d |
| 6239 | :bsnl |
| 6240 | s/["\\]/\\&/g |
| 6241 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6242 | D["\1"]=" \3\\\\\\n"\\/p |
| 6243 | t cont |
| 6244 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 6245 | t cont |
| 6246 | d |
| 6247 | :cont |
| 6248 | n |
| 6249 | s/.\{148\}/&'"$ac_delim"'/g |
| 6250 | t clear |
| 6251 | :clear |
| 6252 | s/\\$// |
| 6253 | t bsnlc |
| 6254 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 6255 | d |
| 6256 | :bsnlc |
| 6257 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 6258 | b cont |
| 6259 | ' <confdefs.h | sed ' |
| 6260 | s/'"$ac_delim"'/"\\\ |
| 6261 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6262 | |
| 6263 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6264 | for (key in D) D_is_set[key] = 1 |
| 6265 | FS = "" |
| 6266 | } |
| 6267 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 6268 | line = \$ 0 |
| 6269 | split(line, arg, " ") |
| 6270 | if (arg[1] == "#") { |
| 6271 | defundef = arg[2] |
| 6272 | mac1 = arg[3] |
| 6273 | } else { |
| 6274 | defundef = substr(arg[1], 2) |
| 6275 | mac1 = arg[2] |
| 6276 | } |
| 6277 | split(mac1, mac2, "(") #) |
| 6278 | macro = mac2[1] |
| 6279 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 6280 | if (D_is_set[macro]) { |
| 6281 | # Preserve the white space surrounding the "#". |
| 6282 | print prefix "define", macro P[macro] D[macro] |
| 6283 | next |
| 6284 | } else { |
| 6285 | # Replace #undef with comments. This is necessary, for example, |
| 6286 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 6287 | # on some systems where configure will not decide to define it. |
| 6288 | if (defundef == "undef") { |
| 6289 | print "/*", prefix defundef, macro, "*/" |
| 6290 | next |
| 6291 | } |
| 6292 | } |
| 6293 | } |
| 6294 | { print } |
| 6295 | _ACAWK |
| 6296 | _ACEOF |
| 6297 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6298 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 6299 | fi # test -n "$CONFIG_HEADERS" |
| 6300 | |
| 6301 | |
| 6302 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 6303 | shift |
| 6304 | for ac_tag |
| 6305 | do |
| 6306 | case $ac_tag in |
| 6307 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 6308 | esac |
| 6309 | case $ac_mode$ac_tag in |
| 6310 | :[FHL]*:*);; |
| 6311 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 6312 | :[FH]-) ac_tag=-:-;; |
| 6313 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 6314 | esac |
| 6315 | ac_save_IFS=$IFS |
| 6316 | IFS=: |
| 6317 | set x $ac_tag |
| 6318 | IFS=$ac_save_IFS |
| 6319 | shift |
| 6320 | ac_file=$1 |
| 6321 | shift |
| 6322 | |
| 6323 | case $ac_mode in |
| 6324 | :L) ac_source=$1;; |
| 6325 | :[FH]) |
| 6326 | ac_file_inputs= |
| 6327 | for ac_f |
| 6328 | do |
| 6329 | case $ac_f in |
| 6330 | -) ac_f="$ac_tmp/stdin";; |
| 6331 | *) # Look for the file first in the build tree, then in the source tree |
| 6332 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 6333 | # because $ac_f cannot contain `:'. |
| 6334 | test -f "$ac_f" || |
| 6335 | case $ac_f in |
| 6336 | [\\/$]*) false;; |
| 6337 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 6338 | esac || |
| 6339 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 6340 | esac |
| 6341 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 6342 | as_fn_append ac_file_inputs " '$ac_f'" |
| 6343 | done |
| 6344 | |
| 6345 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6346 | # use $as_me), people would be surprised to read: |
| 6347 | # /* config.h. Generated by config.status. */ |
| 6348 | configure_input='Generated from '` |
| 6349 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 6350 | `' by configure.' |
| 6351 | if test x"$ac_file" != x-; then |
| 6352 | configure_input="$ac_file. $configure_input" |
| 6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 6354 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 6355 | fi |
| 6356 | # Neutralize special characters interpreted by sed in replacement strings. |
| 6357 | case $configure_input in #( |
| 6358 | *\&* | *\|* | *\\* ) |
| 6359 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 6360 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 6361 | *) ac_sed_conf_input=$configure_input;; |
| 6362 | esac |
| 6363 | |
| 6364 | case $ac_tag in |
| 6365 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 6366 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 6367 | esac |
| 6368 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6369 | esac |
| 6370 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6371 | ac_dir=`$as_dirname -- "$ac_file" || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6372 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6373 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6374 | X"$ac_file" : 'X\(//\)$' \| \ |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6375 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 6376 | $as_echo X"$ac_file" | |
| 6377 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6378 | s//\1/ |
| 6379 | q |
| 6380 | } |
| 6381 | /^X\(\/\/\)[^/].*/{ |
| 6382 | s//\1/ |
| 6383 | q |
| 6384 | } |
| 6385 | /^X\(\/\/\)$/{ |
| 6386 | s//\1/ |
| 6387 | q |
| 6388 | } |
| 6389 | /^X\(\/\).*/{ |
| 6390 | s//\1/ |
| 6391 | q |
| 6392 | } |
| 6393 | s/.*/./; q'` |
| 6394 | as_dir="$ac_dir"; as_fn_mkdir_p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6395 | ac_builddir=. |
| 6396 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6397 | case "$ac_dir" in |
| 6398 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6399 | *) |
| 6400 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 6401 | # A ".." for each directory in $ac_dir_suffix. |
| 6402 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 6403 | case $ac_top_builddir_sub in |
| 6404 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6405 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 6406 | esac ;; |
| 6407 | esac |
| 6408 | ac_abs_top_builddir=$ac_pwd |
| 6409 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 6410 | # for backward compatibility: |
| 6411 | ac_top_builddir=$ac_top_build_prefix |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6412 | |
| 6413 | case $srcdir in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6414 | .) # We are building in place. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6415 | ac_srcdir=. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6416 | ac_top_srcdir=$ac_top_builddir_sub |
| 6417 | ac_abs_top_srcdir=$ac_pwd ;; |
| 6418 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6419 | ac_srcdir=$srcdir$ac_dir_suffix; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6420 | ac_top_srcdir=$srcdir |
| 6421 | ac_abs_top_srcdir=$srcdir ;; |
| 6422 | *) # Relative name. |
| 6423 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 6424 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 6425 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6426 | esac |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6427 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6428 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6429 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6430 | case $ac_mode in |
| 6431 | :F) |
| 6432 | # |
| 6433 | # CONFIG_FILE |
| 6434 | # |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6435 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 6436 | case $INSTALL in |
| 6437 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6438 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 6439 | esac |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6440 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6441 | |
| 6442 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6443 | # If the template does not know about datarootdir, expand it. |
| 6444 | # FIXME: This hack should be removed a few years after 2.60. |
| 6445 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 6446 | ac_sed_dataroot=' |
| 6447 | /datarootdir/ { |
| 6448 | p |
| 6449 | q |
| 6450 | } |
| 6451 | /@datadir@/p |
| 6452 | /@docdir@/p |
| 6453 | /@infodir@/p |
| 6454 | /@localedir@/p |
| 6455 | /@mandir@/p' |
| 6456 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 6457 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 6458 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 6460 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 6461 | _ACEOF |
| 6462 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6463 | ac_datarootdir_hack=' |
| 6464 | s&@datadir@&$datadir&g |
| 6465 | s&@docdir@&$docdir&g |
| 6466 | s&@infodir@&$infodir&g |
| 6467 | s&@localedir@&$localedir&g |
| 6468 | s&@mandir@&$mandir&g |
| 6469 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 6470 | esac |
| 6471 | _ACEOF |
| 6472 | |
| 6473 | # Neutralize VPATH when `$srcdir' = `.'. |
| 6474 | # Shell code in configure.ac might set extrasub. |
| 6475 | # FIXME: do we really want to maintain this feature? |
| 6476 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6477 | ac_sed_extra="$ac_vpsub |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6478 | $extrasub |
| 6479 | _ACEOF |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6480 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6481 | :t |
| 6482 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6483 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 6484 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 6485 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 6486 | s&@srcdir@&$ac_srcdir&;t t |
| 6487 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 6488 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 6489 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 6490 | s&@builddir@&$ac_builddir&;t t |
| 6491 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 6492 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 6493 | s&@INSTALL@&$ac_INSTALL&;t t |
| 6494 | $ac_datarootdir_hack |
| 6495 | " |
| 6496 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 6497 | >$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] | 6498 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6499 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 6500 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 6501 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 6502 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 6503 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 6504 | which seems to be undefined. Please make sure it is defined" >&5 |
| 6505 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 6506 | which seems to be undefined. Please make sure it is defined" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6507 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6508 | rm -f "$ac_tmp/stdin" |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6509 | case $ac_file in |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6510 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 6511 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 6512 | esac \ |
| 6513 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6514 | ;; |
| 6515 | :H) |
| 6516 | # |
| 6517 | # CONFIG_HEADER |
| 6518 | # |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6519 | if test x"$ac_file" != x-; then |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6520 | { |
| 6521 | $as_echo "/* $configure_input */" \ |
| 6522 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 6523 | } >"$ac_tmp/config.h" \ |
| 6524 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6525 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 6527 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6528 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6529 | rm -f "$ac_file" |
| 6530 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 6531 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6532 | fi |
| 6533 | else |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6534 | $as_echo "/* $configure_input */" \ |
| 6535 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 6536 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6537 | fi |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6538 | ;; |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6539 | |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6540 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6541 | esac |
| 6542 | |
| 6543 | done # for ac_tag |
| 6544 | |
| 6545 | |
| 6546 | as_fn_exit 0 |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6547 | _ACEOF |
Cullen Jennings | 52c5cd3 | 2013-05-01 18:07:29 -0600 | [diff] [blame] | 6548 | ac_clean_files=$ac_clean_files_save |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 6549 | |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6550 | test $ac_write_fail = 0 || |
| 6551 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 6552 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6553 | |
| 6554 | # configure is writing to config.log, and then calls config.status. |
| 6555 | # config.status does its own redirection, appending to config.log. |
| 6556 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6557 | # by configure, so config.status won't be able to write to it; its |
| 6558 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6559 | # effectively closing config.log, so it can be properly (re)opened and |
| 6560 | # appended to by config.status. When coming back to configure, we |
| 6561 | # need to make the FD available again. |
| 6562 | if test "$no_create" != yes; then |
| 6563 | ac_cs_success=: |
| 6564 | ac_config_status_args= |
| 6565 | test "$silent" = yes && |
| 6566 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6567 | exec 5>/dev/null |
| 6568 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6569 | exec 5>>config.log |
| 6570 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6571 | # would make configure fail if this is the last instruction. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6572 | $ac_cs_success || as_fn_exit 1 |
| 6573 | fi |
| 6574 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 6576 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6577 | fi |
| 6578 | |
Marcus Sundberg | 979e1bc | 2005-09-29 14:33:09 +0000 | [diff] [blame] | 6579 | |
| 6580 | # This is needed when building outside the source dir. |
jfigus | c7e66e3 | 2013-05-08 11:32:55 -0400 | [diff] [blame] | 6581 | as_dir=crypto/ae_xfm; as_fn_mkdir_p |
| 6582 | as_dir=crypto/cipher; as_fn_mkdir_p |
| 6583 | as_dir=crypto/hash; as_fn_mkdir_p |
| 6584 | as_dir=crypto/kernel; as_fn_mkdir_p |
| 6585 | as_dir=crypto/math; as_fn_mkdir_p |
| 6586 | as_dir=crypto/replay; as_fn_mkdir_p |
| 6587 | as_dir=crypto/rng; as_fn_mkdir_p |
| 6588 | as_dir=crypto/test; as_fn_mkdir_p |
| 6589 | as_dir=doc; as_fn_mkdir_p |
| 6590 | as_dir=srtp; as_fn_mkdir_p |
| 6591 | as_dir=tables; as_fn_mkdir_p |
| 6592 | as_dir=test; as_fn_mkdir_p |