annotate configure @ 2541:7eab1eca5cc4

Place an expiry on feedback request for this version
author Chris Cannam
date Fri, 15 May 2020 14:21:42 +0100
parents 7bf8a0179e32
children 19effcb6b21c
rev   line source
Chris@350 1 #! /bin/sh
Chris@350 2 # Guess values for system-dependent variables and create Makefiles.
Chris@941 3 # Generated by GNU Autoconf 2.69.
Chris@350 4 #
Chris@350 5 #
Chris@594 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Chris@350 7 #
Chris@350 8 #
Chris@350 9 # This configure script is free software; the Free Software Foundation
Chris@350 10 # gives unlimited permission to copy, distribute and modify it.
Chris@350 11 ## -------------------- ##
Chris@350 12 ## M4sh Initialization. ##
Chris@350 13 ## -------------------- ##
Chris@350 14
Chris@350 15 # Be more Bourne compatible
Chris@350 16 DUALCASE=1; export DUALCASE # for MKS sh
Chris@350 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@350 18 emulate sh
Chris@350 19 NULLCMD=:
Chris@350 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@350 21 # is contrary to our usage. Disable this feature.
Chris@350 22 alias -g '${1+"$@"}'='"$@"'
Chris@350 23 setopt NO_GLOB_SUBST
Chris@350 24 else
Chris@350 25 case `(set -o) 2>/dev/null` in #(
Chris@350 26 *posix*) :
Chris@350 27 set -o posix ;; #(
Chris@350 28 *) :
Chris@350 29 ;;
Chris@350 30 esac
Chris@350 31 fi
Chris@350 32
Chris@350 33
Chris@350 34 as_nl='
Chris@350 35 '
Chris@350 36 export as_nl
Chris@350 37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@350 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@350 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@350 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@350 41 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@350 42 # but without wasting forks for bash or zsh.
Chris@350 43 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@350 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@350 45 as_echo='print -r --'
Chris@350 46 as_echo_n='print -rn --'
Chris@350 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@350 48 as_echo='printf %s\n'
Chris@350 49 as_echo_n='printf %s'
Chris@350 50 else
Chris@350 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@350 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@350 53 as_echo_n='/usr/ucb/echo -n'
Chris@350 54 else
Chris@350 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@350 56 as_echo_n_body='eval
Chris@350 57 arg=$1;
Chris@350 58 case $arg in #(
Chris@350 59 *"$as_nl"*)
Chris@350 60 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@350 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@350 62 esac;
Chris@350 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@350 64 '
Chris@350 65 export as_echo_n_body
Chris@350 66 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@350 67 fi
Chris@350 68 export as_echo_body
Chris@350 69 as_echo='sh -c $as_echo_body as_echo'
Chris@350 70 fi
Chris@350 71
Chris@350 72 # The user is always right.
Chris@350 73 if test "${PATH_SEPARATOR+set}" != set; then
Chris@350 74 PATH_SEPARATOR=:
Chris@350 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@350 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@350 77 PATH_SEPARATOR=';'
Chris@350 78 }
Chris@350 79 fi
Chris@350 80
Chris@350 81
Chris@350 82 # IFS
Chris@350 83 # We need space, tab and new line, in precisely that order. Quoting is
Chris@350 84 # there to prevent editors from complaining about space-tab.
Chris@350 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@350 86 # splitting by setting IFS to empty value.)
Chris@350 87 IFS=" "" $as_nl"
Chris@350 88
Chris@350 89 # Find who we are. Look in the path if we contain no directory separator.
Chris@594 90 as_myself=
Chris@350 91 case $0 in #((
Chris@350 92 *[\\/]* ) as_myself=$0 ;;
Chris@350 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 94 for as_dir in $PATH
Chris@350 95 do
Chris@350 96 IFS=$as_save_IFS
Chris@350 97 test -z "$as_dir" && as_dir=.
Chris@350 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@350 99 done
Chris@350 100 IFS=$as_save_IFS
Chris@350 101
Chris@350 102 ;;
Chris@350 103 esac
Chris@350 104 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@350 105 # in which case we are not to be found in the path.
Chris@350 106 if test "x$as_myself" = x; then
Chris@350 107 as_myself=$0
Chris@350 108 fi
Chris@350 109 if test ! -f "$as_myself"; then
Chris@350 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@350 111 exit 1
Chris@350 112 fi
Chris@350 113
Chris@350 114 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@350 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@350 116 # suppresses any "Segmentation fault" message there. '((' could
Chris@350 117 # trigger a bug in pdksh 5.2.14.
Chris@350 118 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@350 119 do eval test x\${$as_var+set} = xset \
Chris@350 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@350 121 done
Chris@350 122 PS1='$ '
Chris@350 123 PS2='> '
Chris@350 124 PS4='+ '
Chris@350 125
Chris@350 126 # NLS nuisances.
Chris@350 127 LC_ALL=C
Chris@350 128 export LC_ALL
Chris@350 129 LANGUAGE=C
Chris@350 130 export LANGUAGE
Chris@350 131
Chris@350 132 # CDPATH.
Chris@350 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@350 134
Chris@594 135 # Use a proper internal environment variable to ensure we don't fall
Chris@594 136 # into an infinite loop, continuously re-executing ourselves.
Chris@594 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
Chris@594 138 _as_can_reexec=no; export _as_can_reexec;
Chris@594 139 # We cannot yet assume a decent shell, so we have to provide a
Chris@594 140 # neutralization value for shells without unset; and this also
Chris@594 141 # works around shells that cannot unset nonexistent variables.
Chris@594 142 # Preserve -v and -x to the replacement shell.
Chris@594 143 BASH_ENV=/dev/null
Chris@594 144 ENV=/dev/null
Chris@594 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@594 146 case $- in # ((((
Chris@594 147 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@594 148 *v* ) as_opts=-v ;;
Chris@594 149 *x* ) as_opts=-x ;;
Chris@594 150 * ) as_opts= ;;
Chris@594 151 esac
Chris@594 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@594 153 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@594 154 # out after a failed `exec'.
Chris@594 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@594 156 as_fn_exit 255
Chris@594 157 fi
Chris@594 158 # We don't want this to propagate to other subprocesses.
Chris@594 159 { _as_can_reexec=; unset _as_can_reexec;}
Chris@350 160 if test "x$CONFIG_SHELL" = x; then
Chris@350 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
Chris@350 162 emulate sh
Chris@350 163 NULLCMD=:
Chris@350 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
Chris@350 165 # is contrary to our usage. Disable this feature.
Chris@350 166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
Chris@350 167 setopt NO_GLOB_SUBST
Chris@350 168 else
Chris@350 169 case \`(set -o) 2>/dev/null\` in #(
Chris@350 170 *posix*) :
Chris@350 171 set -o posix ;; #(
Chris@350 172 *) :
Chris@350 173 ;;
Chris@350 174 esac
Chris@350 175 fi
Chris@350 176 "
Chris@350 177 as_required="as_fn_return () { (exit \$1); }
Chris@350 178 as_fn_success () { as_fn_return 0; }
Chris@350 179 as_fn_failure () { as_fn_return 1; }
Chris@350 180 as_fn_ret_success () { return 0; }
Chris@350 181 as_fn_ret_failure () { return 1; }
Chris@350 182
Chris@350 183 exitcode=0
Chris@350 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
Chris@350 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
Chris@350 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
Chris@350 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
Chris@350 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
Chris@350 189
Chris@350 190 else
Chris@350 191 exitcode=1; echo positional parameters were not saved.
Chris@350 192 fi
Chris@594 193 test x\$exitcode = x0 || exit 1
Chris@594 194 test -x / || exit 1"
Chris@350 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
Chris@350 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
Chris@350 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Chris@350 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Chris@350 199 test \$(( 1 + 1 )) = 2 || exit 1"
Chris@350 200 if (eval "$as_required") 2>/dev/null; then :
Chris@350 201 as_have_required=yes
Chris@350 202 else
Chris@350 203 as_have_required=no
Chris@350 204 fi
Chris@350 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
Chris@350 206
Chris@350 207 else
Chris@350 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 209 as_found=false
Chris@350 210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Chris@350 211 do
Chris@350 212 IFS=$as_save_IFS
Chris@350 213 test -z "$as_dir" && as_dir=.
Chris@350 214 as_found=:
Chris@350 215 case $as_dir in #(
Chris@350 216 /*)
Chris@350 217 for as_base in sh bash ksh sh5; do
Chris@350 218 # Try only shells that exist, to save several forks.
Chris@350 219 as_shell=$as_dir/$as_base
Chris@350 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
Chris@350 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@350 222 CONFIG_SHELL=$as_shell as_have_required=yes
Chris@350 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
Chris@350 224 break 2
Chris@350 225 fi
Chris@350 226 fi
Chris@350 227 done;;
Chris@350 228 esac
Chris@350 229 as_found=false
Chris@350 230 done
Chris@350 231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
Chris@350 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
Chris@350 233 CONFIG_SHELL=$SHELL as_have_required=yes
Chris@350 234 fi; }
Chris@350 235 IFS=$as_save_IFS
Chris@350 236
Chris@350 237
Chris@350 238 if test "x$CONFIG_SHELL" != x; then :
Chris@594 239 export CONFIG_SHELL
Chris@594 240 # We cannot yet assume a decent shell, so we have to provide a
Chris@594 241 # neutralization value for shells without unset; and this also
Chris@594 242 # works around shells that cannot unset nonexistent variables.
Chris@594 243 # Preserve -v and -x to the replacement shell.
Chris@594 244 BASH_ENV=/dev/null
Chris@594 245 ENV=/dev/null
Chris@594 246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
Chris@594 247 case $- in # ((((
Chris@594 248 *v*x* | *x*v* ) as_opts=-vx ;;
Chris@594 249 *v* ) as_opts=-v ;;
Chris@594 250 *x* ) as_opts=-x ;;
Chris@594 251 * ) as_opts= ;;
Chris@594 252 esac
Chris@594 253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
Chris@594 254 # Admittedly, this is quite paranoid, since all the known shells bail
Chris@594 255 # out after a failed `exec'.
Chris@594 256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
Chris@594 257 exit 255
Chris@350 258 fi
Chris@350 259
Chris@350 260 if test x$as_have_required = xno; then :
Chris@350 261 $as_echo "$0: This script requires a shell more modern than all"
Chris@350 262 $as_echo "$0: the shells that I found on your system."
Chris@350 263 if test x${ZSH_VERSION+set} = xset ; then
Chris@350 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
Chris@350 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
Chris@350 266 else
Chris@941 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
Chris@350 268 $0: including any error possibly output before this
Chris@350 269 $0: message. Then install a modern shell, or manually run
Chris@350 270 $0: the script under such a shell if you do have one."
Chris@350 271 fi
Chris@350 272 exit 1
Chris@350 273 fi
Chris@350 274 fi
Chris@350 275 fi
Chris@350 276 SHELL=${CONFIG_SHELL-/bin/sh}
Chris@350 277 export SHELL
Chris@350 278 # Unset more variables known to interfere with behavior of common tools.
Chris@350 279 CLICOLOR_FORCE= GREP_OPTIONS=
Chris@350 280 unset CLICOLOR_FORCE GREP_OPTIONS
Chris@350 281
Chris@350 282 ## --------------------- ##
Chris@350 283 ## M4sh Shell Functions. ##
Chris@350 284 ## --------------------- ##
Chris@350 285 # as_fn_unset VAR
Chris@350 286 # ---------------
Chris@350 287 # Portably unset VAR.
Chris@350 288 as_fn_unset ()
Chris@350 289 {
Chris@350 290 { eval $1=; unset $1;}
Chris@350 291 }
Chris@350 292 as_unset=as_fn_unset
Chris@350 293
Chris@350 294 # as_fn_set_status STATUS
Chris@350 295 # -----------------------
Chris@350 296 # Set $? to STATUS, without forking.
Chris@350 297 as_fn_set_status ()
Chris@350 298 {
Chris@350 299 return $1
Chris@350 300 } # as_fn_set_status
Chris@350 301
Chris@350 302 # as_fn_exit STATUS
Chris@350 303 # -----------------
Chris@350 304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@350 305 as_fn_exit ()
Chris@350 306 {
Chris@350 307 set +e
Chris@350 308 as_fn_set_status $1
Chris@350 309 exit $1
Chris@350 310 } # as_fn_exit
Chris@350 311
Chris@350 312 # as_fn_mkdir_p
Chris@350 313 # -------------
Chris@350 314 # Create "$as_dir" as a directory, including parents if necessary.
Chris@350 315 as_fn_mkdir_p ()
Chris@350 316 {
Chris@350 317
Chris@350 318 case $as_dir in #(
Chris@350 319 -*) as_dir=./$as_dir;;
Chris@350 320 esac
Chris@350 321 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@350 322 as_dirs=
Chris@350 323 while :; do
Chris@350 324 case $as_dir in #(
Chris@350 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@350 326 *) as_qdir=$as_dir;;
Chris@350 327 esac
Chris@350 328 as_dirs="'$as_qdir' $as_dirs"
Chris@350 329 as_dir=`$as_dirname -- "$as_dir" ||
Chris@350 330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@350 331 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@350 332 X"$as_dir" : 'X\(//\)$' \| \
Chris@350 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@350 334 $as_echo X"$as_dir" |
Chris@350 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@350 336 s//\1/
Chris@350 337 q
Chris@350 338 }
Chris@350 339 /^X\(\/\/\)[^/].*/{
Chris@350 340 s//\1/
Chris@350 341 q
Chris@350 342 }
Chris@350 343 /^X\(\/\/\)$/{
Chris@350 344 s//\1/
Chris@350 345 q
Chris@350 346 }
Chris@350 347 /^X\(\/\).*/{
Chris@350 348 s//\1/
Chris@350 349 q
Chris@350 350 }
Chris@350 351 s/.*/./; q'`
Chris@350 352 test -d "$as_dir" && break
Chris@350 353 done
Chris@350 354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@594 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@350 356
Chris@350 357
Chris@350 358 } # as_fn_mkdir_p
Chris@594 359
Chris@594 360 # as_fn_executable_p FILE
Chris@594 361 # -----------------------
Chris@594 362 # Test if FILE is an executable regular file.
Chris@594 363 as_fn_executable_p ()
Chris@594 364 {
Chris@594 365 test -f "$1" && test -x "$1"
Chris@594 366 } # as_fn_executable_p
Chris@350 367 # as_fn_append VAR VALUE
Chris@350 368 # ----------------------
Chris@350 369 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@350 370 # advantage of any shell optimizations that allow amortized linear growth over
Chris@350 371 # repeated appends, instead of the typical quadratic growth present in naive
Chris@350 372 # implementations.
Chris@350 373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@350 374 eval 'as_fn_append ()
Chris@350 375 {
Chris@350 376 eval $1+=\$2
Chris@350 377 }'
Chris@350 378 else
Chris@350 379 as_fn_append ()
Chris@350 380 {
Chris@350 381 eval $1=\$$1\$2
Chris@350 382 }
Chris@350 383 fi # as_fn_append
Chris@350 384
Chris@350 385 # as_fn_arith ARG...
Chris@350 386 # ------------------
Chris@350 387 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@350 388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@350 389 # must be portable across $(()) and expr.
Chris@350 390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@350 391 eval 'as_fn_arith ()
Chris@350 392 {
Chris@350 393 as_val=$(( $* ))
Chris@350 394 }'
Chris@350 395 else
Chris@350 396 as_fn_arith ()
Chris@350 397 {
Chris@350 398 as_val=`expr "$@" || test $? -eq 1`
Chris@350 399 }
Chris@350 400 fi # as_fn_arith
Chris@350 401
Chris@350 402
Chris@594 403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@594 404 # ----------------------------------------
Chris@350 405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@350 406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@594 407 # script with STATUS, using 1 if that was 0.
Chris@350 408 as_fn_error ()
Chris@350 409 {
Chris@594 410 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@594 411 if test "$4"; then
Chris@594 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@594 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@350 414 fi
Chris@594 415 $as_echo "$as_me: error: $2" >&2
Chris@350 416 as_fn_exit $as_status
Chris@350 417 } # as_fn_error
Chris@350 418
Chris@350 419 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@350 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@350 421 as_expr=expr
Chris@350 422 else
Chris@350 423 as_expr=false
Chris@350 424 fi
Chris@350 425
Chris@350 426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@350 427 as_basename=basename
Chris@350 428 else
Chris@350 429 as_basename=false
Chris@350 430 fi
Chris@350 431
Chris@350 432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@350 433 as_dirname=dirname
Chris@350 434 else
Chris@350 435 as_dirname=false
Chris@350 436 fi
Chris@350 437
Chris@350 438 as_me=`$as_basename -- "$0" ||
Chris@350 439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@350 440 X"$0" : 'X\(//\)$' \| \
Chris@350 441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@350 442 $as_echo X/"$0" |
Chris@350 443 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@350 444 s//\1/
Chris@350 445 q
Chris@350 446 }
Chris@350 447 /^X\/\(\/\/\)$/{
Chris@350 448 s//\1/
Chris@350 449 q
Chris@350 450 }
Chris@350 451 /^X\/\(\/\).*/{
Chris@350 452 s//\1/
Chris@350 453 q
Chris@350 454 }
Chris@350 455 s/.*/./; q'`
Chris@350 456
Chris@350 457 # Avoid depending upon Character Ranges.
Chris@350 458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@350 459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@350 460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@350 461 as_cr_digits='0123456789'
Chris@350 462 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@350 463
Chris@350 464
Chris@350 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
Chris@350 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
Chris@350 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Chris@350 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Chris@350 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Chris@350 470 sed -n '
Chris@350 471 p
Chris@350 472 /[$]LINENO/=
Chris@350 473 ' <$as_myself |
Chris@350 474 sed '
Chris@350 475 s/[$]LINENO.*/&-/
Chris@350 476 t lineno
Chris@350 477 b
Chris@350 478 :lineno
Chris@350 479 N
Chris@350 480 :loop
Chris@350 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Chris@350 482 t loop
Chris@350 483 s/-\n.*//
Chris@350 484 ' >$as_me.lineno &&
Chris@350 485 chmod +x "$as_me.lineno" ||
Chris@350 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Chris@350 487
Chris@594 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
Chris@594 489 # already done that, so ensure we don't try to do so again and fall
Chris@594 490 # in an infinite loop. This has already happened in practice.
Chris@594 491 _as_can_reexec=no; export _as_can_reexec
Chris@350 492 # Don't try to exec as it changes $[0], causing all sort of problems
Chris@350 493 # (the dirname of $[0] is not the place where we might find the
Chris@350 494 # original and so on. Autoconf is especially sensitive to this).
Chris@350 495 . "./$as_me.lineno"
Chris@350 496 # Exit status is that of the last command.
Chris@350 497 exit
Chris@350 498 }
Chris@350 499
Chris@350 500 ECHO_C= ECHO_N= ECHO_T=
Chris@350 501 case `echo -n x` in #(((((
Chris@350 502 -n*)
Chris@350 503 case `echo 'xy\c'` in
Chris@350 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@350 505 xy) ECHO_C='\c';;
Chris@350 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@350 507 ECHO_T=' ';;
Chris@350 508 esac;;
Chris@350 509 *)
Chris@350 510 ECHO_N='-n';;
Chris@350 511 esac
Chris@350 512
Chris@350 513 rm -f conf$$ conf$$.exe conf$$.file
Chris@350 514 if test -d conf$$.dir; then
Chris@350 515 rm -f conf$$.dir/conf$$.file
Chris@350 516 else
Chris@350 517 rm -f conf$$.dir
Chris@350 518 mkdir conf$$.dir 2>/dev/null
Chris@350 519 fi
Chris@350 520 if (echo >conf$$.file) 2>/dev/null; then
Chris@350 521 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@350 522 as_ln_s='ln -s'
Chris@350 523 # ... but there are two gotchas:
Chris@350 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@350 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@594 526 # In both cases, we have to default to `cp -pR'.
Chris@350 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@594 528 as_ln_s='cp -pR'
Chris@350 529 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@350 530 as_ln_s=ln
Chris@350 531 else
Chris@594 532 as_ln_s='cp -pR'
Chris@350 533 fi
Chris@350 534 else
Chris@594 535 as_ln_s='cp -pR'
Chris@350 536 fi
Chris@350 537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@350 538 rmdir conf$$.dir 2>/dev/null
Chris@350 539
Chris@350 540 if mkdir -p . 2>/dev/null; then
Chris@350 541 as_mkdir_p='mkdir -p "$as_dir"'
Chris@350 542 else
Chris@350 543 test -d ./-p && rmdir ./-p
Chris@350 544 as_mkdir_p=false
Chris@350 545 fi
Chris@350 546
Chris@594 547 as_test_x='test -x'
Chris@594 548 as_executable_p=as_fn_executable_p
Chris@350 549
Chris@350 550 # Sed expression to map a string onto a valid CPP name.
Chris@350 551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@350 552
Chris@350 553 # Sed expression to map a string onto a valid variable name.
Chris@350 554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@350 555
Chris@350 556
Chris@350 557 test -n "$DJDIR" || exec 7<&0 </dev/null
Chris@350 558 exec 6>&1
Chris@350 559
Chris@350 560 # Name of the host.
Chris@594 561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Chris@350 562 # so uname gets run too.
Chris@350 563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@350 564
Chris@350 565 #
Chris@350 566 # Initializations.
Chris@350 567 #
Chris@350 568 ac_default_prefix=/usr/local
Chris@350 569 ac_clean_files=
Chris@350 570 ac_config_libobj_dir=.
Chris@350 571 LIBOBJS=
Chris@350 572 cross_compiling=no
Chris@350 573 subdirs=
Chris@350 574 MFLAGS=
Chris@350 575 MAKEFLAGS=
Chris@350 576
Chris@350 577 # Identity of this package.
Chris@941 578 PACKAGE_NAME=
Chris@941 579 PACKAGE_TARNAME=
Chris@941 580 PACKAGE_VERSION=
Chris@941 581 PACKAGE_STRING=
Chris@941 582 PACKAGE_BUGREPORT=
Chris@941 583 PACKAGE_URL=
Chris@941 584
Chris@941 585 ac_unique_file="Sonic Visualiser"
Chris@351 586 ac_unique_file="main/main.cpp"
Chris@350 587 # Factoring default headers for most tests.
Chris@350 588 ac_includes_default="\
Chris@350 589 #include <stdio.h>
Chris@350 590 #ifdef HAVE_SYS_TYPES_H
Chris@350 591 # include <sys/types.h>
Chris@350 592 #endif
Chris@350 593 #ifdef HAVE_SYS_STAT_H
Chris@350 594 # include <sys/stat.h>
Chris@350 595 #endif
Chris@350 596 #ifdef STDC_HEADERS
Chris@350 597 # include <stdlib.h>
Chris@350 598 # include <stddef.h>
Chris@350 599 #else
Chris@350 600 # ifdef HAVE_STDLIB_H
Chris@350 601 # include <stdlib.h>
Chris@350 602 # endif
Chris@350 603 #endif
Chris@350 604 #ifdef HAVE_STRING_H
Chris@350 605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Chris@350 606 # include <memory.h>
Chris@350 607 # endif
Chris@350 608 # include <string.h>
Chris@350 609 #endif
Chris@350 610 #ifdef HAVE_STRINGS_H
Chris@350 611 # include <strings.h>
Chris@350 612 #endif
Chris@350 613 #ifdef HAVE_INTTYPES_H
Chris@350 614 # include <inttypes.h>
Chris@350 615 #endif
Chris@350 616 #ifdef HAVE_STDINT_H
Chris@350 617 # include <stdint.h>
Chris@350 618 #endif
Chris@350 619 #ifdef HAVE_UNISTD_H
Chris@350 620 # include <unistd.h>
Chris@350 621 #endif"
Chris@350 622
Chris@350 623 ac_subst_vars='LTLIBOBJS
Chris@350 624 LIBOBJS
Chris@361 625 QMAKE_CONFIG
Chris@350 626 HAVES
Chris@1976 627 CXXSTANDARD
Chris@350 628 CUT
Chris@350 629 SHA1SUM
Chris@350 630 MAKEDEPEND
Chris@350 631 XARGS
Chris@350 632 PERL
Chris@488 633 X11_LIBS
Chris@488 634 X11_CFLAGS
Chris@2192 635 opus_LIBS
Chris@2192 636 opus_CFLAGS
Chris@350 637 id3tag_LIBS
Chris@350 638 id3tag_CFLAGS
Chris@350 639 mad_LIBS
Chris@350 640 mad_CFLAGS
Chris@350 641 fishsound_LIBS
Chris@350 642 fishsound_CFLAGS
Chris@350 643 oggz_LIBS
Chris@350 644 oggz_CFLAGS
Chris@350 645 lrdf_LIBS
Chris@350 646 lrdf_CFLAGS
Chris@350 647 libpulse_LIBS
Chris@350 648 libpulse_CFLAGS
Chris@350 649 JACK_LIBS
Chris@350 650 JACK_CFLAGS
Chris@1035 651 portaudio_LIBS
Chris@1035 652 portaudio_CFLAGS
Chris@350 653 liblo_LIBS
Chris@350 654 liblo_CFLAGS
Chris@1279 655 capnp_LIBS
Chris@1279 656 capnp_CFLAGS
Chris@572 657 serd_LIBS
Chris@572 658 serd_CFLAGS
Chris@572 659 sord_LIBS
Chris@572 660 sord_CFLAGS
Chris@2208 661 rubberband_LIBS
Chris@2208 662 rubberband_CFLAGS
Chris@1035 663 libsamplerate_LIBS
Chris@1035 664 libsamplerate_CFLAGS
Chris@350 665 sndfile_LIBS
Chris@350 666 sndfile_CFLAGS
Chris@350 667 fftw3f_LIBS
Chris@350 668 fftw3f_CFLAGS
Chris@350 669 fftw3_LIBS
Chris@350 670 fftw3_CFLAGS
Chris@350 671 bz2_LIBS
Chris@350 672 bz2_CFLAGS
Chris@350 673 QMAKE
Chris@594 674 PKG_CONFIG_LIBDIR
Chris@594 675 PKG_CONFIG_PATH
Chris@350 676 PKG_CONFIG
Chris@350 677 EGREP
Chris@350 678 GREP
Chris@350 679 CXXCPP
Chris@884 680 HAVE_CXX11
Chris@350 681 MKDIR_P
Chris@350 682 INSTALL_DATA
Chris@350 683 INSTALL_SCRIPT
Chris@350 684 INSTALL_PROGRAM
Chris@350 685 ac_ct_CXX
Chris@350 686 CXXFLAGS
Chris@350 687 CXX
Chris@350 688 OBJEXT
Chris@350 689 EXEEXT
Chris@350 690 ac_ct_CC
Chris@350 691 CPPFLAGS
Chris@350 692 LDFLAGS
Chris@350 693 CFLAGS
Chris@350 694 CC
Chris@350 695 target_alias
Chris@350 696 host_alias
Chris@350 697 build_alias
Chris@350 698 LIBS
Chris@350 699 ECHO_T
Chris@350 700 ECHO_N
Chris@350 701 ECHO_C
Chris@350 702 DEFS
Chris@350 703 mandir
Chris@350 704 localedir
Chris@350 705 libdir
Chris@350 706 psdir
Chris@350 707 pdfdir
Chris@350 708 dvidir
Chris@350 709 htmldir
Chris@350 710 infodir
Chris@350 711 docdir
Chris@350 712 oldincludedir
Chris@350 713 includedir
Chris@350 714 localstatedir
Chris@350 715 sharedstatedir
Chris@350 716 sysconfdir
Chris@350 717 datadir
Chris@350 718 datarootdir
Chris@350 719 libexecdir
Chris@350 720 sbindir
Chris@350 721 bindir
Chris@350 722 program_transform_name
Chris@350 723 prefix
Chris@350 724 exec_prefix
Chris@350 725 PACKAGE_URL
Chris@350 726 PACKAGE_BUGREPORT
Chris@350 727 PACKAGE_STRING
Chris@350 728 PACKAGE_VERSION
Chris@350 729 PACKAGE_TARNAME
Chris@350 730 PACKAGE_NAME
Chris@350 731 PATH_SEPARATOR
Chris@350 732 SHELL'
Chris@350 733 ac_subst_files=''
Chris@350 734 ac_user_opts='
Chris@350 735 enable_option_checking
Chris@350 736 enable_debug
Chris@350 737 '
Chris@350 738 ac_precious_vars='build_alias
Chris@350 739 host_alias
Chris@350 740 target_alias
Chris@350 741 CC
Chris@350 742 CFLAGS
Chris@350 743 LDFLAGS
Chris@350 744 LIBS
Chris@350 745 CPPFLAGS
Chris@350 746 CXX
Chris@350 747 CXXFLAGS
Chris@350 748 CCC
Chris@350 749 CXXCPP
Chris@350 750 PKG_CONFIG
Chris@594 751 PKG_CONFIG_PATH
Chris@594 752 PKG_CONFIG_LIBDIR
Chris@350 753 bz2_CFLAGS
Chris@350 754 bz2_LIBS
Chris@350 755 fftw3_CFLAGS
Chris@350 756 fftw3_LIBS
Chris@350 757 fftw3f_CFLAGS
Chris@350 758 fftw3f_LIBS
Chris@350 759 sndfile_CFLAGS
Chris@350 760 sndfile_LIBS
Chris@1035 761 libsamplerate_CFLAGS
Chris@1035 762 libsamplerate_LIBS
Chris@2208 763 rubberband_CFLAGS
Chris@2208 764 rubberband_LIBS
Chris@572 765 sord_CFLAGS
Chris@572 766 sord_LIBS
Chris@572 767 serd_CFLAGS
Chris@572 768 serd_LIBS
Chris@1279 769 capnp_CFLAGS
Chris@1279 770 capnp_LIBS
Chris@350 771 liblo_CFLAGS
Chris@350 772 liblo_LIBS
Chris@1035 773 portaudio_CFLAGS
Chris@1035 774 portaudio_LIBS
Chris@350 775 JACK_CFLAGS
Chris@350 776 JACK_LIBS
Chris@350 777 libpulse_CFLAGS
Chris@350 778 libpulse_LIBS
Chris@350 779 lrdf_CFLAGS
Chris@350 780 lrdf_LIBS
Chris@350 781 oggz_CFLAGS
Chris@350 782 oggz_LIBS
Chris@350 783 fishsound_CFLAGS
Chris@350 784 fishsound_LIBS
Chris@350 785 mad_CFLAGS
Chris@350 786 mad_LIBS
Chris@350 787 id3tag_CFLAGS
Chris@488 788 id3tag_LIBS
Chris@2192 789 opus_CFLAGS
Chris@2192 790 opus_LIBS
Chris@488 791 X11_CFLAGS
Chris@488 792 X11_LIBS'
Chris@1279 793
Chris@350 794
Chris@350 795 # Initialize some variables set by options.
Chris@350 796 ac_init_help=
Chris@350 797 ac_init_version=false
Chris@350 798 ac_unrecognized_opts=
Chris@350 799 ac_unrecognized_sep=
Chris@350 800 # The variables have the same names as the options, with
Chris@350 801 # dashes changed to underlines.
Chris@350 802 cache_file=/dev/null
Chris@350 803 exec_prefix=NONE
Chris@350 804 no_create=
Chris@350 805 no_recursion=
Chris@350 806 prefix=NONE
Chris@350 807 program_prefix=NONE
Chris@350 808 program_suffix=NONE
Chris@350 809 program_transform_name=s,x,x,
Chris@350 810 silent=
Chris@350 811 site=
Chris@350 812 srcdir=
Chris@350 813 verbose=
Chris@350 814 x_includes=NONE
Chris@350 815 x_libraries=NONE
Chris@350 816
Chris@350 817 # Installation directory options.
Chris@350 818 # These are left unexpanded so users can "make install exec_prefix=/foo"
Chris@350 819 # and all the variables that are supposed to be based on exec_prefix
Chris@350 820 # by default will actually change.
Chris@350 821 # Use braces instead of parens because sh, perl, etc. also accept them.
Chris@350 822 # (The list follows the same order as the GNU Coding Standards.)
Chris@350 823 bindir='${exec_prefix}/bin'
Chris@350 824 sbindir='${exec_prefix}/sbin'
Chris@350 825 libexecdir='${exec_prefix}/libexec'
Chris@350 826 datarootdir='${prefix}/share'
Chris@350 827 datadir='${datarootdir}'
Chris@350 828 sysconfdir='${prefix}/etc'
Chris@350 829 sharedstatedir='${prefix}/com'
Chris@350 830 localstatedir='${prefix}/var'
Chris@350 831 includedir='${prefix}/include'
Chris@350 832 oldincludedir='/usr/include'
Chris@941 833 docdir='${datarootdir}/doc/${PACKAGE}'
Chris@350 834 infodir='${datarootdir}/info'
Chris@350 835 htmldir='${docdir}'
Chris@350 836 dvidir='${docdir}'
Chris@350 837 pdfdir='${docdir}'
Chris@350 838 psdir='${docdir}'
Chris@350 839 libdir='${exec_prefix}/lib'
Chris@350 840 localedir='${datarootdir}/locale'
Chris@350 841 mandir='${datarootdir}/man'
Chris@350 842
Chris@350 843 ac_prev=
Chris@350 844 ac_dashdash=
Chris@350 845 for ac_option
Chris@350 846 do
Chris@350 847 # If the previous option needs an argument, assign it.
Chris@350 848 if test -n "$ac_prev"; then
Chris@350 849 eval $ac_prev=\$ac_option
Chris@350 850 ac_prev=
Chris@350 851 continue
Chris@350 852 fi
Chris@350 853
Chris@350 854 case $ac_option in
Chris@594 855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
Chris@594 856 *=) ac_optarg= ;;
Chris@594 857 *) ac_optarg=yes ;;
Chris@350 858 esac
Chris@350 859
Chris@350 860 # Accept the important Cygnus configure options, so we can diagnose typos.
Chris@350 861
Chris@350 862 case $ac_dashdash$ac_option in
Chris@350 863 --)
Chris@350 864 ac_dashdash=yes ;;
Chris@350 865
Chris@350 866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
Chris@350 867 ac_prev=bindir ;;
Chris@350 868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Chris@350 869 bindir=$ac_optarg ;;
Chris@350 870
Chris@350 871 -build | --build | --buil | --bui | --bu)
Chris@350 872 ac_prev=build_alias ;;
Chris@350 873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Chris@350 874 build_alias=$ac_optarg ;;
Chris@350 875
Chris@350 876 -cache-file | --cache-file | --cache-fil | --cache-fi \
Chris@350 877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
Chris@350 878 ac_prev=cache_file ;;
Chris@350 879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
Chris@350 880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Chris@350 881 cache_file=$ac_optarg ;;
Chris@350 882
Chris@350 883 --config-cache | -C)
Chris@350 884 cache_file=config.cache ;;
Chris@350 885
Chris@350 886 -datadir | --datadir | --datadi | --datad)
Chris@350 887 ac_prev=datadir ;;
Chris@350 888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Chris@350 889 datadir=$ac_optarg ;;
Chris@350 890
Chris@350 891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
Chris@350 892 | --dataroo | --dataro | --datar)
Chris@350 893 ac_prev=datarootdir ;;
Chris@350 894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
Chris@350 895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
Chris@350 896 datarootdir=$ac_optarg ;;
Chris@350 897
Chris@350 898 -disable-* | --disable-*)
Chris@350 899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Chris@350 900 # Reject names that are not valid shell variable names.
Chris@350 901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@594 902 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@350 903 ac_useropt_orig=$ac_useropt
Chris@350 904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@350 905 case $ac_user_opts in
Chris@350 906 *"
Chris@350 907 "enable_$ac_useropt"
Chris@350 908 "*) ;;
Chris@350 909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
Chris@350 910 ac_unrecognized_sep=', ';;
Chris@350 911 esac
Chris@350 912 eval enable_$ac_useropt=no ;;
Chris@350 913
Chris@350 914 -docdir | --docdir | --docdi | --doc | --do)
Chris@350 915 ac_prev=docdir ;;
Chris@350 916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
Chris@350 917 docdir=$ac_optarg ;;
Chris@350 918
Chris@350 919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
Chris@350 920 ac_prev=dvidir ;;
Chris@350 921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
Chris@350 922 dvidir=$ac_optarg ;;
Chris@350 923
Chris@350 924 -enable-* | --enable-*)
Chris@350 925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Chris@350 926 # Reject names that are not valid shell variable names.
Chris@350 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@594 928 as_fn_error $? "invalid feature name: $ac_useropt"
Chris@350 929 ac_useropt_orig=$ac_useropt
Chris@350 930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@350 931 case $ac_user_opts in
Chris@350 932 *"
Chris@350 933 "enable_$ac_useropt"
Chris@350 934 "*) ;;
Chris@350 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
Chris@350 936 ac_unrecognized_sep=', ';;
Chris@350 937 esac
Chris@350 938 eval enable_$ac_useropt=\$ac_optarg ;;
Chris@350 939
Chris@350 940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
Chris@350 941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
Chris@350 942 | --exec | --exe | --ex)
Chris@350 943 ac_prev=exec_prefix ;;
Chris@350 944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
Chris@350 945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
Chris@350 946 | --exec=* | --exe=* | --ex=*)
Chris@350 947 exec_prefix=$ac_optarg ;;
Chris@350 948
Chris@350 949 -gas | --gas | --ga | --g)
Chris@350 950 # Obsolete; use --with-gas.
Chris@350 951 with_gas=yes ;;
Chris@350 952
Chris@350 953 -help | --help | --hel | --he | -h)
Chris@350 954 ac_init_help=long ;;
Chris@350 955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
Chris@350 956 ac_init_help=recursive ;;
Chris@350 957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
Chris@350 958 ac_init_help=short ;;
Chris@350 959
Chris@350 960 -host | --host | --hos | --ho)
Chris@350 961 ac_prev=host_alias ;;
Chris@350 962 -host=* | --host=* | --hos=* | --ho=*)
Chris@350 963 host_alias=$ac_optarg ;;
Chris@350 964
Chris@350 965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
Chris@350 966 ac_prev=htmldir ;;
Chris@350 967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
Chris@350 968 | --ht=*)
Chris@350 969 htmldir=$ac_optarg ;;
Chris@350 970
Chris@350 971 -includedir | --includedir | --includedi | --included | --include \
Chris@350 972 | --includ | --inclu | --incl | --inc)
Chris@350 973 ac_prev=includedir ;;
Chris@350 974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
Chris@350 975 | --includ=* | --inclu=* | --incl=* | --inc=*)
Chris@350 976 includedir=$ac_optarg ;;
Chris@350 977
Chris@350 978 -infodir | --infodir | --infodi | --infod | --info | --inf)
Chris@350 979 ac_prev=infodir ;;
Chris@350 980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Chris@350 981 infodir=$ac_optarg ;;
Chris@350 982
Chris@350 983 -libdir | --libdir | --libdi | --libd)
Chris@350 984 ac_prev=libdir ;;
Chris@350 985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Chris@350 986 libdir=$ac_optarg ;;
Chris@350 987
Chris@350 988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Chris@350 989 | --libexe | --libex | --libe)
Chris@350 990 ac_prev=libexecdir ;;
Chris@350 991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
Chris@350 992 | --libexe=* | --libex=* | --libe=*)
Chris@350 993 libexecdir=$ac_optarg ;;
Chris@350 994
Chris@350 995 -localedir | --localedir | --localedi | --localed | --locale)
Chris@350 996 ac_prev=localedir ;;
Chris@350 997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
Chris@350 998 localedir=$ac_optarg ;;
Chris@350 999
Chris@350 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
Chris@350 1001 | --localstate | --localstat | --localsta | --localst | --locals)
Chris@350 1002 ac_prev=localstatedir ;;
Chris@350 1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Chris@350 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Chris@350 1005 localstatedir=$ac_optarg ;;
Chris@350 1006
Chris@350 1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Chris@350 1008 ac_prev=mandir ;;
Chris@350 1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Chris@350 1010 mandir=$ac_optarg ;;
Chris@350 1011
Chris@350 1012 -nfp | --nfp | --nf)
Chris@350 1013 # Obsolete; use --without-fp.
Chris@350 1014 with_fp=no ;;
Chris@350 1015
Chris@350 1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Chris@350 1017 | --no-cr | --no-c | -n)
Chris@350 1018 no_create=yes ;;
Chris@350 1019
Chris@350 1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Chris@350 1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
Chris@350 1022 no_recursion=yes ;;
Chris@350 1023
Chris@350 1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Chris@350 1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
Chris@350 1026 | --oldin | --oldi | --old | --ol | --o)
Chris@350 1027 ac_prev=oldincludedir ;;
Chris@350 1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
Chris@350 1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
Chris@350 1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Chris@350 1031 oldincludedir=$ac_optarg ;;
Chris@350 1032
Chris@350 1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Chris@350 1034 ac_prev=prefix ;;
Chris@350 1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Chris@350 1036 prefix=$ac_optarg ;;
Chris@350 1037
Chris@350 1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
Chris@350 1039 | --program-pre | --program-pr | --program-p)
Chris@350 1040 ac_prev=program_prefix ;;
Chris@350 1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
Chris@350 1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Chris@350 1043 program_prefix=$ac_optarg ;;
Chris@350 1044
Chris@350 1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
Chris@350 1046 | --program-suf | --program-su | --program-s)
Chris@350 1047 ac_prev=program_suffix ;;
Chris@350 1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
Chris@350 1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Chris@350 1050 program_suffix=$ac_optarg ;;
Chris@350 1051
Chris@350 1052 -program-transform-name | --program-transform-name \
Chris@350 1053 | --program-transform-nam | --program-transform-na \
Chris@350 1054 | --program-transform-n | --program-transform- \
Chris@350 1055 | --program-transform | --program-transfor \
Chris@350 1056 | --program-transfo | --program-transf \
Chris@350 1057 | --program-trans | --program-tran \
Chris@350 1058 | --progr-tra | --program-tr | --program-t)
Chris@350 1059 ac_prev=program_transform_name ;;
Chris@350 1060 -program-transform-name=* | --program-transform-name=* \
Chris@350 1061 | --program-transform-nam=* | --program-transform-na=* \
Chris@350 1062 | --program-transform-n=* | --program-transform-=* \
Chris@350 1063 | --program-transform=* | --program-transfor=* \
Chris@350 1064 | --program-transfo=* | --program-transf=* \
Chris@350 1065 | --program-trans=* | --program-tran=* \
Chris@350 1066 | --progr-tra=* | --program-tr=* | --program-t=*)
Chris@350 1067 program_transform_name=$ac_optarg ;;
Chris@350 1068
Chris@350 1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Chris@350 1070 ac_prev=pdfdir ;;
Chris@350 1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
Chris@350 1072 pdfdir=$ac_optarg ;;
Chris@350 1073
Chris@350 1074 -psdir | --psdir | --psdi | --psd | --ps)
Chris@350 1075 ac_prev=psdir ;;
Chris@350 1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
Chris@350 1077 psdir=$ac_optarg ;;
Chris@350 1078
Chris@350 1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@350 1080 | -silent | --silent | --silen | --sile | --sil)
Chris@350 1081 silent=yes ;;
Chris@350 1082
Chris@350 1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
Chris@350 1084 ac_prev=sbindir ;;
Chris@350 1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Chris@350 1086 | --sbi=* | --sb=*)
Chris@350 1087 sbindir=$ac_optarg ;;
Chris@350 1088
Chris@350 1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
Chris@350 1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
Chris@350 1091 | --sharedst | --shareds | --shared | --share | --shar \
Chris@350 1092 | --sha | --sh)
Chris@350 1093 ac_prev=sharedstatedir ;;
Chris@350 1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
Chris@350 1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
Chris@350 1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
Chris@350 1097 | --sha=* | --sh=*)
Chris@350 1098 sharedstatedir=$ac_optarg ;;
Chris@350 1099
Chris@350 1100 -site | --site | --sit)
Chris@350 1101 ac_prev=site ;;
Chris@350 1102 -site=* | --site=* | --sit=*)
Chris@350 1103 site=$ac_optarg ;;
Chris@350 1104
Chris@350 1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Chris@350 1106 ac_prev=srcdir ;;
Chris@350 1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Chris@350 1108 srcdir=$ac_optarg ;;
Chris@350 1109
Chris@350 1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
Chris@350 1111 | --syscon | --sysco | --sysc | --sys | --sy)
Chris@350 1112 ac_prev=sysconfdir ;;
Chris@350 1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
Chris@350 1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Chris@350 1115 sysconfdir=$ac_optarg ;;
Chris@350 1116
Chris@350 1117 -target | --target | --targe | --targ | --tar | --ta | --t)
Chris@350 1118 ac_prev=target_alias ;;
Chris@350 1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Chris@350 1120 target_alias=$ac_optarg ;;
Chris@350 1121
Chris@350 1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
Chris@350 1123 verbose=yes ;;
Chris@350 1124
Chris@350 1125 -version | --version | --versio | --versi | --vers | -V)
Chris@350 1126 ac_init_version=: ;;
Chris@350 1127
Chris@350 1128 -with-* | --with-*)
Chris@350 1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Chris@350 1130 # Reject names that are not valid shell variable names.
Chris@350 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@594 1132 as_fn_error $? "invalid package name: $ac_useropt"
Chris@350 1133 ac_useropt_orig=$ac_useropt
Chris@350 1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@350 1135 case $ac_user_opts in
Chris@350 1136 *"
Chris@350 1137 "with_$ac_useropt"
Chris@350 1138 "*) ;;
Chris@350 1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
Chris@350 1140 ac_unrecognized_sep=', ';;
Chris@350 1141 esac
Chris@350 1142 eval with_$ac_useropt=\$ac_optarg ;;
Chris@350 1143
Chris@350 1144 -without-* | --without-*)
Chris@350 1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Chris@350 1146 # Reject names that are not valid shell variable names.
Chris@350 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris@594 1148 as_fn_error $? "invalid package name: $ac_useropt"
Chris@350 1149 ac_useropt_orig=$ac_useropt
Chris@350 1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
Chris@350 1151 case $ac_user_opts in
Chris@350 1152 *"
Chris@350 1153 "with_$ac_useropt"
Chris@350 1154 "*) ;;
Chris@350 1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
Chris@350 1156 ac_unrecognized_sep=', ';;
Chris@350 1157 esac
Chris@350 1158 eval with_$ac_useropt=no ;;
Chris@350 1159
Chris@350 1160 --x)
Chris@350 1161 # Obsolete; use --with-x.
Chris@350 1162 with_x=yes ;;
Chris@350 1163
Chris@350 1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Chris@350 1165 | --x-incl | --x-inc | --x-in | --x-i)
Chris@350 1166 ac_prev=x_includes ;;
Chris@350 1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
Chris@350 1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Chris@350 1169 x_includes=$ac_optarg ;;
Chris@350 1170
Chris@350 1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
Chris@350 1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
Chris@350 1173 ac_prev=x_libraries ;;
Chris@350 1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
Chris@350 1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Chris@350 1176 x_libraries=$ac_optarg ;;
Chris@350 1177
Chris@594 1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
Chris@594 1179 Try \`$0 --help' for more information"
Chris@350 1180 ;;
Chris@350 1181
Chris@350 1182 *=*)
Chris@350 1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
Chris@350 1184 # Reject names that are not valid shell variable names.
Chris@350 1185 case $ac_envvar in #(
Chris@350 1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris@594 1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Chris@350 1188 esac
Chris@350 1189 eval $ac_envvar=\$ac_optarg
Chris@350 1190 export $ac_envvar ;;
Chris@350 1191
Chris@350 1192 *)
Chris@350 1193 # FIXME: should be removed in autoconf 3.0.
Chris@350 1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Chris@350 1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Chris@350 1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris@594 1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Chris@350 1198 ;;
Chris@350 1199
Chris@350 1200 esac
Chris@350 1201 done
Chris@350 1202
Chris@350 1203 if test -n "$ac_prev"; then
Chris@350 1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris@594 1205 as_fn_error $? "missing argument to $ac_option"
Chris@350 1206 fi
Chris@350 1207
Chris@350 1208 if test -n "$ac_unrecognized_opts"; then
Chris@350 1209 case $enable_option_checking in
Chris@350 1210 no) ;;
Chris@594 1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Chris@350 1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Chris@350 1213 esac
Chris@350 1214 fi
Chris@350 1215
Chris@350 1216 # Check all directory arguments for consistency.
Chris@350 1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
Chris@350 1218 datadir sysconfdir sharedstatedir localstatedir includedir \
Chris@350 1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Chris@350 1220 libdir localedir mandir
Chris@350 1221 do
Chris@350 1222 eval ac_val=\$$ac_var
Chris@350 1223 # Remove trailing slashes.
Chris@350 1224 case $ac_val in
Chris@350 1225 */ )
Chris@350 1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
Chris@350 1227 eval $ac_var=\$ac_val;;
Chris@350 1228 esac
Chris@350 1229 # Be sure to have absolute directory names.
Chris@350 1230 case $ac_val in
Chris@350 1231 [\\/$]* | ?:[\\/]* ) continue;;
Chris@350 1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Chris@350 1233 esac
Chris@594 1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Chris@350 1235 done
Chris@350 1236
Chris@350 1237 # There might be people who depend on the old broken behavior: `$host'
Chris@350 1238 # used to hold the argument of --host etc.
Chris@350 1239 # FIXME: To remove some day.
Chris@350 1240 build=$build_alias
Chris@350 1241 host=$host_alias
Chris@350 1242 target=$target_alias
Chris@350 1243
Chris@350 1244 # FIXME: To remove some day.
Chris@350 1245 if test "x$host_alias" != x; then
Chris@350 1246 if test "x$build_alias" = x; then
Chris@350 1247 cross_compiling=maybe
Chris@350 1248 elif test "x$build_alias" != "x$host_alias"; then
Chris@350 1249 cross_compiling=yes
Chris@350 1250 fi
Chris@350 1251 fi
Chris@350 1252
Chris@350 1253 ac_tool_prefix=
Chris@350 1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
Chris@350 1255
Chris@350 1256 test "$silent" = yes && exec 6>/dev/null
Chris@350 1257
Chris@350 1258
Chris@350 1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
Chris@350 1260 ac_ls_di=`ls -di .` &&
Chris@350 1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris@594 1262 as_fn_error $? "working directory cannot be determined"
Chris@350 1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris@594 1264 as_fn_error $? "pwd does not report name of working directory"
Chris@350 1265
Chris@350 1266
Chris@350 1267 # Find the source files, if location was not specified.
Chris@350 1268 if test -z "$srcdir"; then
Chris@350 1269 ac_srcdir_defaulted=yes
Chris@350 1270 # Try the directory containing this script, then the parent directory.
Chris@350 1271 ac_confdir=`$as_dirname -- "$as_myself" ||
Chris@350 1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@350 1273 X"$as_myself" : 'X\(//\)[^/]' \| \
Chris@350 1274 X"$as_myself" : 'X\(//\)$' \| \
Chris@350 1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
Chris@350 1276 $as_echo X"$as_myself" |
Chris@350 1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@350 1278 s//\1/
Chris@350 1279 q
Chris@350 1280 }
Chris@350 1281 /^X\(\/\/\)[^/].*/{
Chris@350 1282 s//\1/
Chris@350 1283 q
Chris@350 1284 }
Chris@350 1285 /^X\(\/\/\)$/{
Chris@350 1286 s//\1/
Chris@350 1287 q
Chris@350 1288 }
Chris@350 1289 /^X\(\/\).*/{
Chris@350 1290 s//\1/
Chris@350 1291 q
Chris@350 1292 }
Chris@350 1293 s/.*/./; q'`
Chris@350 1294 srcdir=$ac_confdir
Chris@350 1295 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@350 1296 srcdir=..
Chris@350 1297 fi
Chris@350 1298 else
Chris@350 1299 ac_srcdir_defaulted=no
Chris@350 1300 fi
Chris@350 1301 if test ! -r "$srcdir/$ac_unique_file"; then
Chris@350 1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris@594 1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Chris@350 1304 fi
Chris@350 1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
Chris@350 1306 ac_abs_confdir=`(
Chris@594 1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Chris@350 1308 pwd)`
Chris@350 1309 # When building in place, set srcdir=.
Chris@350 1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
Chris@350 1311 srcdir=.
Chris@350 1312 fi
Chris@350 1313 # Remove unnecessary trailing slashes from srcdir.
Chris@350 1314 # Double slashes in file names in object file debugging info
Chris@350 1315 # mess up M-x gdb in Emacs.
Chris@350 1316 case $srcdir in
Chris@350 1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
Chris@350 1318 esac
Chris@350 1319 for ac_var in $ac_precious_vars; do
Chris@350 1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
Chris@350 1321 eval ac_env_${ac_var}_value=\$${ac_var}
Chris@350 1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Chris@350 1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
Chris@350 1324 done
Chris@350 1325
Chris@350 1326 #
Chris@350 1327 # Report the --help message.
Chris@350 1328 #
Chris@350 1329 if test "$ac_init_help" = "long"; then
Chris@350 1330 # Omit some internal or obsolete options to make the list less imposing.
Chris@350 1331 # This message is too long to be a string in the A/UX 3.1 sh.
Chris@350 1332 cat <<_ACEOF
Chris@941 1333 \`configure' configures this package to adapt to many kinds of systems.
Chris@350 1334
Chris@350 1335 Usage: $0 [OPTION]... [VAR=VALUE]...
Chris@350 1336
Chris@350 1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
Chris@350 1338 VAR=VALUE. See below for descriptions of some of the useful variables.
Chris@350 1339
Chris@350 1340 Defaults for the options are specified in brackets.
Chris@350 1341
Chris@350 1342 Configuration:
Chris@350 1343 -h, --help display this help and exit
Chris@350 1344 --help=short display options specific to this package
Chris@350 1345 --help=recursive display the short help of all the included packages
Chris@350 1346 -V, --version display version information and exit
Chris@594 1347 -q, --quiet, --silent do not print \`checking ...' messages
Chris@350 1348 --cache-file=FILE cache test results in FILE [disabled]
Chris@350 1349 -C, --config-cache alias for \`--cache-file=config.cache'
Chris@350 1350 -n, --no-create do not create output files
Chris@350 1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
Chris@350 1352
Chris@350 1353 Installation directories:
Chris@350 1354 --prefix=PREFIX install architecture-independent files in PREFIX
Chris@350 1355 [$ac_default_prefix]
Chris@350 1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Chris@350 1357 [PREFIX]
Chris@350 1358
Chris@350 1359 By default, \`make install' will install all the files in
Chris@350 1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
Chris@350 1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
Chris@350 1362 for instance \`--prefix=\$HOME'.
Chris@350 1363
Chris@350 1364 For better control, use the options below.
Chris@350 1365
Chris@350 1366 Fine tuning of the installation directories:
Chris@350 1367 --bindir=DIR user executables [EPREFIX/bin]
Chris@350 1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
Chris@350 1369 --libexecdir=DIR program executables [EPREFIX/libexec]
Chris@350 1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
Chris@350 1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
Chris@350 1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Chris@350 1373 --libdir=DIR object code libraries [EPREFIX/lib]
Chris@350 1374 --includedir=DIR C header files [PREFIX/include]
Chris@350 1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Chris@350 1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Chris@350 1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
Chris@350 1378 --infodir=DIR info documentation [DATAROOTDIR/info]
Chris@350 1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
Chris@350 1380 --mandir=DIR man documentation [DATAROOTDIR/man]
Chris@941 1381 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
Chris@350 1382 --htmldir=DIR html documentation [DOCDIR]
Chris@350 1383 --dvidir=DIR dvi documentation [DOCDIR]
Chris@350 1384 --pdfdir=DIR pdf documentation [DOCDIR]
Chris@350 1385 --psdir=DIR ps documentation [DOCDIR]
Chris@350 1386 _ACEOF
Chris@350 1387
Chris@350 1388 cat <<\_ACEOF
Chris@350 1389 _ACEOF
Chris@350 1390 fi
Chris@350 1391
Chris@350 1392 if test -n "$ac_init_help"; then
Chris@941 1393
Chris@350 1394 cat <<\_ACEOF
Chris@350 1395
Chris@350 1396 Optional Features:
Chris@350 1397 --disable-option-checking ignore unrecognized --enable/--with options
Chris@350 1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
Chris@350 1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris@350 1400 --enable-debug enable debug support [default=no]
Chris@350 1401
Chris@350 1402 Some influential environment variables:
Chris@350 1403 CC C compiler command
Chris@350 1404 CFLAGS C compiler flags
Chris@350 1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
Chris@350 1406 nonstandard directory <lib dir>
Chris@350 1407 LIBS libraries to pass to the linker, e.g. -l<library>
Chris@350 1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Chris@350 1409 you have headers in a nonstandard directory <include dir>
Chris@350 1410 CXX C++ compiler command
Chris@350 1411 CXXFLAGS C++ compiler flags
Chris@350 1412 CXXCPP C++ preprocessor
Chris@350 1413 PKG_CONFIG path to pkg-config utility
Chris@594 1414 PKG_CONFIG_PATH
Chris@594 1415 directories to add to pkg-config's search path
Chris@594 1416 PKG_CONFIG_LIBDIR
Chris@594 1417 path overriding pkg-config's built-in search path
Chris@350 1418 bz2_CFLAGS C compiler flags for bz2, overriding pkg-config
Chris@350 1419 bz2_LIBS linker flags for bz2, overriding pkg-config
Chris@350 1420 fftw3_CFLAGS
Chris@350 1421 C compiler flags for fftw3, overriding pkg-config
Chris@350 1422 fftw3_LIBS linker flags for fftw3, overriding pkg-config
Chris@350 1423 fftw3f_CFLAGS
Chris@350 1424 C compiler flags for fftw3f, overriding pkg-config
Chris@350 1425 fftw3f_LIBS linker flags for fftw3f, overriding pkg-config
Chris@350 1426 sndfile_CFLAGS
Chris@350 1427 C compiler flags for sndfile, overriding pkg-config
Chris@350 1428 sndfile_LIBS
Chris@350 1429 linker flags for sndfile, overriding pkg-config
Chris@1035 1430 libsamplerate_CFLAGS
Chris@1035 1431 C compiler flags for libsamplerate, overriding pkg-config
Chris@1035 1432 libsamplerate_LIBS
Chris@1035 1433 linker flags for libsamplerate, overriding pkg-config
Chris@2208 1434 rubberband_CFLAGS
Chris@2208 1435 C compiler flags for rubberband, overriding pkg-config
Chris@2208 1436 rubberband_LIBS
Chris@2208 1437 linker flags for rubberband, overriding pkg-config
Chris@572 1438 sord_CFLAGS C compiler flags for sord, overriding pkg-config
Chris@572 1439 sord_LIBS linker flags for sord, overriding pkg-config
Chris@572 1440 serd_CFLAGS C compiler flags for serd, overriding pkg-config
Chris@572 1441 serd_LIBS linker flags for serd, overriding pkg-config
Chris@1279 1442 capnp_CFLAGS
Chris@1279 1443 C compiler flags for capnp, overriding pkg-config
Chris@1279 1444 capnp_LIBS linker flags for capnp, overriding pkg-config
Chris@350 1445 liblo_CFLAGS
Chris@350 1446 C compiler flags for liblo, overriding pkg-config
Chris@350 1447 liblo_LIBS linker flags for liblo, overriding pkg-config
Chris@1035 1448 portaudio_CFLAGS
Chris@1035 1449 C compiler flags for portaudio, overriding pkg-config
Chris@1035 1450 portaudio_LIBS
Chris@1035 1451 linker flags for portaudio, overriding pkg-config
Chris@350 1452 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
Chris@350 1453 JACK_LIBS linker flags for JACK, overriding pkg-config
Chris@350 1454 libpulse_CFLAGS
Chris@350 1455 C compiler flags for libpulse, overriding pkg-config
Chris@350 1456 libpulse_LIBS
Chris@350 1457 linker flags for libpulse, overriding pkg-config
Chris@350 1458 lrdf_CFLAGS C compiler flags for lrdf, overriding pkg-config
Chris@350 1459 lrdf_LIBS linker flags for lrdf, overriding pkg-config
Chris@350 1460 oggz_CFLAGS C compiler flags for oggz, overriding pkg-config
Chris@350 1461 oggz_LIBS linker flags for oggz, overriding pkg-config
Chris@350 1462 fishsound_CFLAGS
Chris@350 1463 C compiler flags for fishsound, overriding pkg-config
Chris@350 1464 fishsound_LIBS
Chris@350 1465 linker flags for fishsound, overriding pkg-config
Chris@350 1466 mad_CFLAGS C compiler flags for mad, overriding pkg-config
Chris@350 1467 mad_LIBS linker flags for mad, overriding pkg-config
Chris@350 1468 id3tag_CFLAGS
Chris@350 1469 C compiler flags for id3tag, overriding pkg-config
Chris@350 1470 id3tag_LIBS linker flags for id3tag, overriding pkg-config
Chris@2192 1471 opus_CFLAGS C compiler flags for opus, overriding pkg-config
Chris@2192 1472 opus_LIBS linker flags for opus, overriding pkg-config
Chris@488 1473 X11_CFLAGS C compiler flags for X11, overriding pkg-config
Chris@488 1474 X11_LIBS linker flags for X11, overriding pkg-config
Chris@350 1475
Chris@350 1476 Use these variables to override the choices made by `configure' or to help
Chris@350 1477 it to find libraries and programs with nonstandard names/locations.
Chris@350 1478
Chris@941 1479 Report bugs to the package provider.
Chris@350 1480 _ACEOF
Chris@350 1481 ac_status=$?
Chris@350 1482 fi
Chris@350 1483
Chris@350 1484 if test "$ac_init_help" = "recursive"; then
Chris@350 1485 # If there are subdirs, report their specific --help.
Chris@350 1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Chris@350 1487 test -d "$ac_dir" ||
Chris@350 1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Chris@350 1489 continue
Chris@350 1490 ac_builddir=.
Chris@350 1491
Chris@350 1492 case "$ac_dir" in
Chris@350 1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@350 1494 *)
Chris@350 1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@350 1496 # A ".." for each directory in $ac_dir_suffix.
Chris@350 1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@350 1498 case $ac_top_builddir_sub in
Chris@350 1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@350 1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@350 1501 esac ;;
Chris@350 1502 esac
Chris@350 1503 ac_abs_top_builddir=$ac_pwd
Chris@350 1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@350 1505 # for backward compatibility:
Chris@350 1506 ac_top_builddir=$ac_top_build_prefix
Chris@350 1507
Chris@350 1508 case $srcdir in
Chris@350 1509 .) # We are building in place.
Chris@350 1510 ac_srcdir=.
Chris@350 1511 ac_top_srcdir=$ac_top_builddir_sub
Chris@350 1512 ac_abs_top_srcdir=$ac_pwd ;;
Chris@350 1513 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@350 1514 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@350 1515 ac_top_srcdir=$srcdir
Chris@350 1516 ac_abs_top_srcdir=$srcdir ;;
Chris@350 1517 *) # Relative name.
Chris@350 1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@350 1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@350 1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@350 1521 esac
Chris@350 1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@350 1523
Chris@350 1524 cd "$ac_dir" || { ac_status=$?; continue; }
Chris@350 1525 # Check for guested configure.
Chris@350 1526 if test -f "$ac_srcdir/configure.gnu"; then
Chris@350 1527 echo &&
Chris@350 1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
Chris@350 1529 elif test -f "$ac_srcdir/configure"; then
Chris@350 1530 echo &&
Chris@350 1531 $SHELL "$ac_srcdir/configure" --help=recursive
Chris@350 1532 else
Chris@350 1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Chris@350 1534 fi || ac_status=$?
Chris@350 1535 cd "$ac_pwd" || { ac_status=$?; break; }
Chris@350 1536 done
Chris@350 1537 fi
Chris@350 1538
Chris@350 1539 test -n "$ac_init_help" && exit $ac_status
Chris@350 1540 if $ac_init_version; then
Chris@350 1541 cat <<\_ACEOF
Chris@941 1542 configure
Chris@594 1543 generated by GNU Autoconf 2.69
Chris@594 1544
Chris@594 1545 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@350 1546 This configure script is free software; the Free Software Foundation
Chris@350 1547 gives unlimited permission to copy, distribute and modify it.
Chris@350 1548 _ACEOF
Chris@350 1549 exit
Chris@350 1550 fi
Chris@350 1551
Chris@350 1552 ## ------------------------ ##
Chris@350 1553 ## Autoconf initialization. ##
Chris@350 1554 ## ------------------------ ##
Chris@350 1555
Chris@350 1556 # ac_fn_c_try_compile LINENO
Chris@350 1557 # --------------------------
Chris@350 1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@350 1559 ac_fn_c_try_compile ()
Chris@350 1560 {
Chris@350 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@350 1562 rm -f conftest.$ac_objext
Chris@350 1563 if { { ac_try="$ac_compile"
Chris@350 1564 case "(($ac_try" in
Chris@350 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 1566 *) ac_try_echo=$ac_try;;
Chris@350 1567 esac
Chris@350 1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 1569 $as_echo "$ac_try_echo"; } >&5
Chris@350 1570 (eval "$ac_compile") 2>conftest.err
Chris@350 1571 ac_status=$?
Chris@350 1572 if test -s conftest.err; then
Chris@350 1573 grep -v '^ *+' conftest.err >conftest.er1
Chris@350 1574 cat conftest.er1 >&5
Chris@350 1575 mv -f conftest.er1 conftest.err
Chris@350 1576 fi
Chris@350 1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 1578 test $ac_status = 0; } && {
Chris@350 1579 test -z "$ac_c_werror_flag" ||
Chris@350 1580 test ! -s conftest.err
Chris@350 1581 } && test -s conftest.$ac_objext; then :
Chris@350 1582 ac_retval=0
Chris@350 1583 else
Chris@350 1584 $as_echo "$as_me: failed program was:" >&5
Chris@350 1585 sed 's/^/| /' conftest.$ac_ext >&5
Chris@350 1586
Chris@350 1587 ac_retval=1
Chris@350 1588 fi
Chris@594 1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@350 1590 as_fn_set_status $ac_retval
Chris@350 1591
Chris@350 1592 } # ac_fn_c_try_compile
Chris@350 1593
Chris@350 1594 # ac_fn_cxx_try_compile LINENO
Chris@350 1595 # ----------------------------
Chris@350 1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
Chris@350 1597 ac_fn_cxx_try_compile ()
Chris@350 1598 {
Chris@350 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@350 1600 rm -f conftest.$ac_objext
Chris@350 1601 if { { ac_try="$ac_compile"
Chris@350 1602 case "(($ac_try" in
Chris@350 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 1604 *) ac_try_echo=$ac_try;;
Chris@350 1605 esac
Chris@350 1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 1607 $as_echo "$ac_try_echo"; } >&5
Chris@350 1608 (eval "$ac_compile") 2>conftest.err
Chris@350 1609 ac_status=$?
Chris@350 1610 if test -s conftest.err; then
Chris@350 1611 grep -v '^ *+' conftest.err >conftest.er1
Chris@350 1612 cat conftest.er1 >&5
Chris@350 1613 mv -f conftest.er1 conftest.err
Chris@350 1614 fi
Chris@350 1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 1616 test $ac_status = 0; } && {
Chris@350 1617 test -z "$ac_cxx_werror_flag" ||
Chris@350 1618 test ! -s conftest.err
Chris@350 1619 } && test -s conftest.$ac_objext; then :
Chris@350 1620 ac_retval=0
Chris@350 1621 else
Chris@350 1622 $as_echo "$as_me: failed program was:" >&5
Chris@350 1623 sed 's/^/| /' conftest.$ac_ext >&5
Chris@350 1624
Chris@350 1625 ac_retval=1
Chris@350 1626 fi
Chris@594 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@350 1628 as_fn_set_status $ac_retval
Chris@350 1629
Chris@350 1630 } # ac_fn_cxx_try_compile
Chris@350 1631
Chris@350 1632 # ac_fn_cxx_try_cpp LINENO
Chris@350 1633 # ------------------------
Chris@350 1634 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
Chris@350 1635 ac_fn_cxx_try_cpp ()
Chris@350 1636 {
Chris@350 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@350 1638 if { { ac_try="$ac_cpp conftest.$ac_ext"
Chris@350 1639 case "(($ac_try" in
Chris@350 1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 1641 *) ac_try_echo=$ac_try;;
Chris@350 1642 esac
Chris@350 1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 1644 $as_echo "$ac_try_echo"; } >&5
Chris@350 1645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
Chris@350 1646 ac_status=$?
Chris@350 1647 if test -s conftest.err; then
Chris@350 1648 grep -v '^ *+' conftest.err >conftest.er1
Chris@350 1649 cat conftest.er1 >&5
Chris@350 1650 mv -f conftest.er1 conftest.err
Chris@350 1651 fi
Chris@350 1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@594 1653 test $ac_status = 0; } > conftest.i && {
Chris@350 1654 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
Chris@350 1655 test ! -s conftest.err
Chris@350 1656 }; then :
Chris@350 1657 ac_retval=0
Chris@350 1658 else
Chris@350 1659 $as_echo "$as_me: failed program was:" >&5
Chris@350 1660 sed 's/^/| /' conftest.$ac_ext >&5
Chris@350 1661
Chris@350 1662 ac_retval=1
Chris@350 1663 fi
Chris@594 1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@350 1665 as_fn_set_status $ac_retval
Chris@350 1666
Chris@350 1667 } # ac_fn_cxx_try_cpp
Chris@350 1668
Chris@350 1669 # ac_fn_cxx_try_run LINENO
Chris@350 1670 # ------------------------
Chris@350 1671 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Chris@350 1672 # that executables *can* be run.
Chris@350 1673 ac_fn_cxx_try_run ()
Chris@350 1674 {
Chris@350 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@350 1676 if { { ac_try="$ac_link"
Chris@350 1677 case "(($ac_try" in
Chris@350 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 1679 *) ac_try_echo=$ac_try;;
Chris@350 1680 esac
Chris@350 1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 1682 $as_echo "$ac_try_echo"; } >&5
Chris@350 1683 (eval "$ac_link") 2>&5
Chris@350 1684 ac_status=$?
Chris@350 1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 1686 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
Chris@350 1687 { { case "(($ac_try" in
Chris@350 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 1689 *) ac_try_echo=$ac_try;;
Chris@350 1690 esac
Chris@350 1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 1692 $as_echo "$ac_try_echo"; } >&5
Chris@350 1693 (eval "$ac_try") 2>&5
Chris@350 1694 ac_status=$?
Chris@350 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 1696 test $ac_status = 0; }; }; then :
Chris@350 1697 ac_retval=0
Chris@350 1698 else
Chris@350 1699 $as_echo "$as_me: program exited with status $ac_status" >&5
Chris@350 1700 $as_echo "$as_me: failed program was:" >&5
Chris@350 1701 sed 's/^/| /' conftest.$ac_ext >&5
Chris@350 1702
Chris@350 1703 ac_retval=$ac_status
Chris@350 1704 fi
Chris@350 1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@594 1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@350 1707 as_fn_set_status $ac_retval
Chris@350 1708
Chris@350 1709 } # ac_fn_cxx_try_run
Chris@350 1710
Chris@350 1711 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
Chris@350 1712 # ---------------------------------------------------------
Chris@350 1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
Chris@350 1714 # the include files in INCLUDES and setting the cache variable VAR
Chris@350 1715 # accordingly.
Chris@350 1716 ac_fn_cxx_check_header_mongrel ()
Chris@350 1717 {
Chris@350 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@594 1719 if eval \${$3+:} false; then :
Chris@350 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@350 1721 $as_echo_n "checking for $2... " >&6; }
Chris@594 1722 if eval \${$3+:} false; then :
Chris@350 1723 $as_echo_n "(cached) " >&6
Chris@350 1724 fi
Chris@350 1725 eval ac_res=\$$3
Chris@350 1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 1727 $as_echo "$ac_res" >&6; }
Chris@350 1728 else
Chris@350 1729 # Is the header compilable?
Chris@350 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
Chris@350 1731 $as_echo_n "checking $2 usability... " >&6; }
Chris@350 1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 1733 /* end confdefs.h. */
Chris@350 1734 $4
Chris@350 1735 #include <$2>
Chris@350 1736 _ACEOF
Chris@350 1737 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@350 1738 ac_header_compiler=yes
Chris@350 1739 else
Chris@350 1740 ac_header_compiler=no
Chris@350 1741 fi
Chris@350 1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
Chris@350 1744 $as_echo "$ac_header_compiler" >&6; }
Chris@350 1745
Chris@350 1746 # Is the header present?
Chris@350 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
Chris@350 1748 $as_echo_n "checking $2 presence... " >&6; }
Chris@350 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 1750 /* end confdefs.h. */
Chris@350 1751 #include <$2>
Chris@350 1752 _ACEOF
Chris@350 1753 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@350 1754 ac_header_preproc=yes
Chris@350 1755 else
Chris@350 1756 ac_header_preproc=no
Chris@350 1757 fi
Chris@594 1758 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@350 1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
Chris@350 1760 $as_echo "$ac_header_preproc" >&6; }
Chris@350 1761
Chris@350 1762 # So? What about this header?
Chris@350 1763 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
Chris@350 1764 yes:no: )
Chris@350 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
Chris@350 1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
Chris@350 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@350 1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@350 1769 ;;
Chris@350 1770 no:yes:* )
Chris@350 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
Chris@350 1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
Chris@350 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
Chris@350 1774 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
Chris@350 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
Chris@350 1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
Chris@350 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
Chris@350 1778 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
Chris@350 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
Chris@350 1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Chris@350 1781 ;;
Chris@350 1782 esac
Chris@350 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@350 1784 $as_echo_n "checking for $2... " >&6; }
Chris@594 1785 if eval \${$3+:} false; then :
Chris@350 1786 $as_echo_n "(cached) " >&6
Chris@350 1787 else
Chris@350 1788 eval "$3=\$ac_header_compiler"
Chris@350 1789 fi
Chris@350 1790 eval ac_res=\$$3
Chris@350 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 1792 $as_echo "$ac_res" >&6; }
Chris@350 1793 fi
Chris@594 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@350 1795
Chris@350 1796 } # ac_fn_cxx_check_header_mongrel
Chris@350 1797
Chris@350 1798 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
Chris@350 1799 # ---------------------------------------------------------
Chris@350 1800 # Tests whether HEADER exists and can be compiled using the include files in
Chris@350 1801 # INCLUDES, setting the cache variable VAR accordingly.
Chris@350 1802 ac_fn_cxx_check_header_compile ()
Chris@350 1803 {
Chris@350 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@350 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
Chris@350 1806 $as_echo_n "checking for $2... " >&6; }
Chris@594 1807 if eval \${$3+:} false; then :
Chris@350 1808 $as_echo_n "(cached) " >&6
Chris@350 1809 else
Chris@350 1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 1811 /* end confdefs.h. */
Chris@350 1812 $4
Chris@350 1813 #include <$2>
Chris@350 1814 _ACEOF
Chris@350 1815 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@350 1816 eval "$3=yes"
Chris@350 1817 else
Chris@350 1818 eval "$3=no"
Chris@350 1819 fi
Chris@350 1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 1821 fi
Chris@350 1822 eval ac_res=\$$3
Chris@350 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 1824 $as_echo "$ac_res" >&6; }
Chris@594 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@350 1826
Chris@350 1827 } # ac_fn_cxx_check_header_compile
Chris@350 1828
Chris@350 1829 # ac_fn_cxx_try_link LINENO
Chris@350 1830 # -------------------------
Chris@350 1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
Chris@350 1832 ac_fn_cxx_try_link ()
Chris@350 1833 {
Chris@350 1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@350 1835 rm -f conftest.$ac_objext conftest$ac_exeext
Chris@350 1836 if { { ac_try="$ac_link"
Chris@350 1837 case "(($ac_try" in
Chris@350 1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 1839 *) ac_try_echo=$ac_try;;
Chris@350 1840 esac
Chris@350 1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 1842 $as_echo "$ac_try_echo"; } >&5
Chris@350 1843 (eval "$ac_link") 2>conftest.err
Chris@350 1844 ac_status=$?
Chris@350 1845 if test -s conftest.err; then
Chris@350 1846 grep -v '^ *+' conftest.err >conftest.er1
Chris@350 1847 cat conftest.er1 >&5
Chris@350 1848 mv -f conftest.er1 conftest.err
Chris@350 1849 fi
Chris@350 1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 1851 test $ac_status = 0; } && {
Chris@350 1852 test -z "$ac_cxx_werror_flag" ||
Chris@350 1853 test ! -s conftest.err
Chris@350 1854 } && test -s conftest$ac_exeext && {
Chris@350 1855 test "$cross_compiling" = yes ||
Chris@594 1856 test -x conftest$ac_exeext
Chris@350 1857 }; then :
Chris@350 1858 ac_retval=0
Chris@350 1859 else
Chris@350 1860 $as_echo "$as_me: failed program was:" >&5
Chris@350 1861 sed 's/^/| /' conftest.$ac_ext >&5
Chris@350 1862
Chris@350 1863 ac_retval=1
Chris@350 1864 fi
Chris@350 1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
Chris@350 1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
Chris@350 1867 # interfere with the next link command; also delete a directory that is
Chris@350 1868 # left behind by Apple's compiler. We do this before executing the actions.
Chris@350 1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris@594 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Chris@350 1871 as_fn_set_status $ac_retval
Chris@350 1872
Chris@350 1873 } # ac_fn_cxx_try_link
Chris@350 1874 cat >config.log <<_ACEOF
Chris@350 1875 This file contains any messages produced by compilers while
Chris@350 1876 running configure, to aid debugging if configure makes a mistake.
Chris@350 1877
Chris@941 1878 It was created by $as_me, which was
Chris@594 1879 generated by GNU Autoconf 2.69. Invocation command line was
Chris@350 1880
Chris@350 1881 $ $0 $@
Chris@350 1882
Chris@350 1883 _ACEOF
Chris@350 1884 exec 5>>config.log
Chris@350 1885 {
Chris@350 1886 cat <<_ASUNAME
Chris@350 1887 ## --------- ##
Chris@350 1888 ## Platform. ##
Chris@350 1889 ## --------- ##
Chris@350 1890
Chris@350 1891 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@350 1892 uname -m = `(uname -m) 2>/dev/null || echo unknown`
Chris@350 1893 uname -r = `(uname -r) 2>/dev/null || echo unknown`
Chris@350 1894 uname -s = `(uname -s) 2>/dev/null || echo unknown`
Chris@350 1895 uname -v = `(uname -v) 2>/dev/null || echo unknown`
Chris@350 1896
Chris@350 1897 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
Chris@350 1898 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
Chris@350 1899
Chris@350 1900 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
Chris@350 1901 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
Chris@350 1902 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Chris@350 1903 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Chris@350 1904 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
Chris@350 1905 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
Chris@350 1906 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
Chris@350 1907
Chris@350 1908 _ASUNAME
Chris@350 1909
Chris@350 1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 1911 for as_dir in $PATH
Chris@350 1912 do
Chris@350 1913 IFS=$as_save_IFS
Chris@350 1914 test -z "$as_dir" && as_dir=.
Chris@350 1915 $as_echo "PATH: $as_dir"
Chris@350 1916 done
Chris@350 1917 IFS=$as_save_IFS
Chris@350 1918
Chris@350 1919 } >&5
Chris@350 1920
Chris@350 1921 cat >&5 <<_ACEOF
Chris@350 1922
Chris@350 1923
Chris@350 1924 ## ----------- ##
Chris@350 1925 ## Core tests. ##
Chris@350 1926 ## ----------- ##
Chris@350 1927
Chris@350 1928 _ACEOF
Chris@350 1929
Chris@350 1930
Chris@350 1931 # Keep a trace of the command line.
Chris@350 1932 # Strip out --no-create and --no-recursion so they do not pile up.
Chris@350 1933 # Strip out --silent because we don't want to record it for future runs.
Chris@350 1934 # Also quote any args containing shell meta-characters.
Chris@350 1935 # Make two passes to allow for proper duplicate-argument suppression.
Chris@350 1936 ac_configure_args=
Chris@350 1937 ac_configure_args0=
Chris@350 1938 ac_configure_args1=
Chris@350 1939 ac_must_keep_next=false
Chris@350 1940 for ac_pass in 1 2
Chris@350 1941 do
Chris@350 1942 for ac_arg
Chris@350 1943 do
Chris@350 1944 case $ac_arg in
Chris@350 1945 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
Chris@350 1946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@350 1947 | -silent | --silent | --silen | --sile | --sil)
Chris@350 1948 continue ;;
Chris@350 1949 *\'*)
Chris@350 1950 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@350 1951 esac
Chris@350 1952 case $ac_pass in
Chris@350 1953 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Chris@350 1954 2)
Chris@350 1955 as_fn_append ac_configure_args1 " '$ac_arg'"
Chris@350 1956 if test $ac_must_keep_next = true; then
Chris@350 1957 ac_must_keep_next=false # Got value, back to normal.
Chris@350 1958 else
Chris@350 1959 case $ac_arg in
Chris@350 1960 *=* | --config-cache | -C | -disable-* | --disable-* \
Chris@350 1961 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
Chris@350 1962 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
Chris@350 1963 | -with-* | --with-* | -without-* | --without-* | --x)
Chris@350 1964 case "$ac_configure_args0 " in
Chris@350 1965 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
Chris@350 1966 esac
Chris@350 1967 ;;
Chris@350 1968 -* ) ac_must_keep_next=true ;;
Chris@350 1969 esac
Chris@350 1970 fi
Chris@350 1971 as_fn_append ac_configure_args " '$ac_arg'"
Chris@350 1972 ;;
Chris@350 1973 esac
Chris@350 1974 done
Chris@350 1975 done
Chris@350 1976 { ac_configure_args0=; unset ac_configure_args0;}
Chris@350 1977 { ac_configure_args1=; unset ac_configure_args1;}
Chris@350 1978
Chris@350 1979 # When interrupted or exit'd, cleanup temporary files, and complete
Chris@350 1980 # config.log. We remove comments because anyway the quotes in there
Chris@350 1981 # would cause problems or look ugly.
Chris@350 1982 # WARNING: Use '\'' to represent an apostrophe within the trap.
Chris@350 1983 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Chris@350 1984 trap 'exit_status=$?
Chris@350 1985 # Save into config.log some information that might help in debugging.
Chris@350 1986 {
Chris@350 1987 echo
Chris@350 1988
Chris@594 1989 $as_echo "## ---------------- ##
Chris@350 1990 ## Cache variables. ##
Chris@594 1991 ## ---------------- ##"
Chris@350 1992 echo
Chris@350 1993 # The following way of writing the cache mishandles newlines in values,
Chris@350 1994 (
Chris@350 1995 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
Chris@350 1996 eval ac_val=\$$ac_var
Chris@350 1997 case $ac_val in #(
Chris@350 1998 *${as_nl}*)
Chris@350 1999 case $ac_var in #(
Chris@350 2000 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@350 2001 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@350 2002 esac
Chris@350 2003 case $ac_var in #(
Chris@350 2004 _ | IFS | as_nl) ;; #(
Chris@350 2005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@350 2006 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@350 2007 esac ;;
Chris@350 2008 esac
Chris@350 2009 done
Chris@350 2010 (set) 2>&1 |
Chris@350 2011 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
Chris@350 2012 *${as_nl}ac_space=\ *)
Chris@350 2013 sed -n \
Chris@350 2014 "s/'\''/'\''\\\\'\'''\''/g;
Chris@350 2015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
Chris@350 2016 ;; #(
Chris@350 2017 *)
Chris@350 2018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@350 2019 ;;
Chris@350 2020 esac |
Chris@350 2021 sort
Chris@350 2022 )
Chris@350 2023 echo
Chris@350 2024
Chris@594 2025 $as_echo "## ----------------- ##
Chris@350 2026 ## Output variables. ##
Chris@594 2027 ## ----------------- ##"
Chris@350 2028 echo
Chris@350 2029 for ac_var in $ac_subst_vars
Chris@350 2030 do
Chris@350 2031 eval ac_val=\$$ac_var
Chris@350 2032 case $ac_val in
Chris@350 2033 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@350 2034 esac
Chris@350 2035 $as_echo "$ac_var='\''$ac_val'\''"
Chris@350 2036 done | sort
Chris@350 2037 echo
Chris@350 2038
Chris@350 2039 if test -n "$ac_subst_files"; then
Chris@594 2040 $as_echo "## ------------------- ##
Chris@350 2041 ## File substitutions. ##
Chris@594 2042 ## ------------------- ##"
Chris@350 2043 echo
Chris@350 2044 for ac_var in $ac_subst_files
Chris@350 2045 do
Chris@350 2046 eval ac_val=\$$ac_var
Chris@350 2047 case $ac_val in
Chris@350 2048 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Chris@350 2049 esac
Chris@350 2050 $as_echo "$ac_var='\''$ac_val'\''"
Chris@350 2051 done | sort
Chris@350 2052 echo
Chris@350 2053 fi
Chris@350 2054
Chris@350 2055 if test -s confdefs.h; then
Chris@594 2056 $as_echo "## ----------- ##
Chris@350 2057 ## confdefs.h. ##
Chris@594 2058 ## ----------- ##"
Chris@350 2059 echo
Chris@350 2060 cat confdefs.h
Chris@350 2061 echo
Chris@350 2062 fi
Chris@350 2063 test "$ac_signal" != 0 &&
Chris@350 2064 $as_echo "$as_me: caught signal $ac_signal"
Chris@350 2065 $as_echo "$as_me: exit $exit_status"
Chris@350 2066 } >&5
Chris@350 2067 rm -f core *.core core.conftest.* &&
Chris@350 2068 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Chris@350 2069 exit $exit_status
Chris@350 2070 ' 0
Chris@350 2071 for ac_signal in 1 2 13 15; do
Chris@350 2072 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Chris@350 2073 done
Chris@350 2074 ac_signal=0
Chris@350 2075
Chris@350 2076 # confdefs.h avoids OS command line length limits that DEFS can exceed.
Chris@350 2077 rm -f -r conftest* confdefs.h
Chris@350 2078
Chris@350 2079 $as_echo "/* confdefs.h */" > confdefs.h
Chris@350 2080
Chris@350 2081 # Predefined preprocessor variables.
Chris@350 2082
Chris@350 2083 cat >>confdefs.h <<_ACEOF
Chris@350 2084 #define PACKAGE_NAME "$PACKAGE_NAME"
Chris@350 2085 _ACEOF
Chris@350 2086
Chris@350 2087 cat >>confdefs.h <<_ACEOF
Chris@350 2088 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
Chris@350 2089 _ACEOF
Chris@350 2090
Chris@350 2091 cat >>confdefs.h <<_ACEOF
Chris@350 2092 #define PACKAGE_VERSION "$PACKAGE_VERSION"
Chris@350 2093 _ACEOF
Chris@350 2094
Chris@350 2095 cat >>confdefs.h <<_ACEOF
Chris@350 2096 #define PACKAGE_STRING "$PACKAGE_STRING"
Chris@350 2097 _ACEOF
Chris@350 2098
Chris@350 2099 cat >>confdefs.h <<_ACEOF
Chris@350 2100 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Chris@350 2101 _ACEOF
Chris@350 2102
Chris@350 2103 cat >>confdefs.h <<_ACEOF
Chris@350 2104 #define PACKAGE_URL "$PACKAGE_URL"
Chris@350 2105 _ACEOF
Chris@350 2106
Chris@350 2107
Chris@350 2108 # Let the site file select an alternate cache file if it wants to.
Chris@350 2109 # Prefer an explicitly selected file to automatically selected ones.
Chris@350 2110 ac_site_file1=NONE
Chris@350 2111 ac_site_file2=NONE
Chris@350 2112 if test -n "$CONFIG_SITE"; then
Chris@594 2113 # We do not want a PATH search for config.site.
Chris@594 2114 case $CONFIG_SITE in #((
Chris@594 2115 -*) ac_site_file1=./$CONFIG_SITE;;
Chris@594 2116 */*) ac_site_file1=$CONFIG_SITE;;
Chris@594 2117 *) ac_site_file1=./$CONFIG_SITE;;
Chris@594 2118 esac
Chris@350 2119 elif test "x$prefix" != xNONE; then
Chris@350 2120 ac_site_file1=$prefix/share/config.site
Chris@350 2121 ac_site_file2=$prefix/etc/config.site
Chris@350 2122 else
Chris@350 2123 ac_site_file1=$ac_default_prefix/share/config.site
Chris@350 2124 ac_site_file2=$ac_default_prefix/etc/config.site
Chris@350 2125 fi
Chris@350 2126 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Chris@350 2127 do
Chris@350 2128 test "x$ac_site_file" = xNONE && continue
Chris@350 2129 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Chris@350 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Chris@350 2131 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
Chris@350 2132 sed 's/^/| /' "$ac_site_file" >&5
Chris@594 2133 . "$ac_site_file" \
Chris@594 2134 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@594 2135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@594 2136 as_fn_error $? "failed to load site script $ac_site_file
Chris@594 2137 See \`config.log' for more details" "$LINENO" 5; }
Chris@350 2138 fi
Chris@350 2139 done
Chris@350 2140
Chris@350 2141 if test -r "$cache_file"; then
Chris@350 2142 # Some versions of bash will fail to source /dev/null (special files
Chris@350 2143 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
Chris@350 2144 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Chris@350 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Chris@350 2146 $as_echo "$as_me: loading cache $cache_file" >&6;}
Chris@350 2147 case $cache_file in
Chris@350 2148 [\\/]* | ?:[\\/]* ) . "$cache_file";;
Chris@350 2149 *) . "./$cache_file";;
Chris@350 2150 esac
Chris@350 2151 fi
Chris@350 2152 else
Chris@350 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Chris@350 2154 $as_echo "$as_me: creating cache $cache_file" >&6;}
Chris@350 2155 >$cache_file
Chris@350 2156 fi
Chris@350 2157
Chris@350 2158 # Check that the precious variables saved in the cache have kept the same
Chris@350 2159 # value.
Chris@350 2160 ac_cache_corrupted=false
Chris@350 2161 for ac_var in $ac_precious_vars; do
Chris@350 2162 eval ac_old_set=\$ac_cv_env_${ac_var}_set
Chris@350 2163 eval ac_new_set=\$ac_env_${ac_var}_set
Chris@350 2164 eval ac_old_val=\$ac_cv_env_${ac_var}_value
Chris@350 2165 eval ac_new_val=\$ac_env_${ac_var}_value
Chris@350 2166 case $ac_old_set,$ac_new_set in
Chris@350 2167 set,)
Chris@350 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Chris@350 2169 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Chris@350 2170 ac_cache_corrupted=: ;;
Chris@350 2171 ,set)
Chris@350 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Chris@350 2173 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Chris@350 2174 ac_cache_corrupted=: ;;
Chris@350 2175 ,);;
Chris@350 2176 *)
Chris@350 2177 if test "x$ac_old_val" != "x$ac_new_val"; then
Chris@350 2178 # differences in whitespace do not lead to failure.
Chris@350 2179 ac_old_val_w=`echo x $ac_old_val`
Chris@350 2180 ac_new_val_w=`echo x $ac_new_val`
Chris@350 2181 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Chris@350 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Chris@350 2183 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Chris@350 2184 ac_cache_corrupted=:
Chris@350 2185 else
Chris@350 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Chris@350 2187 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
Chris@350 2188 eval $ac_var=\$ac_old_val
Chris@350 2189 fi
Chris@350 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Chris@350 2191 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Chris@350 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Chris@350 2193 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Chris@350 2194 fi;;
Chris@350 2195 esac
Chris@350 2196 # Pass precious variables to config.status.
Chris@350 2197 if test "$ac_new_set" = set; then
Chris@350 2198 case $ac_new_val in
Chris@350 2199 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@350 2200 *) ac_arg=$ac_var=$ac_new_val ;;
Chris@350 2201 esac
Chris@350 2202 case " $ac_configure_args " in
Chris@350 2203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Chris@350 2204 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Chris@350 2205 esac
Chris@350 2206 fi
Chris@350 2207 done
Chris@350 2208 if $ac_cache_corrupted; then
Chris@350 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@350 2210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@350 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Chris@350 2212 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris@594 2213 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Chris@350 2214 fi
Chris@350 2215 ## -------------------- ##
Chris@350 2216 ## Main body of script. ##
Chris@350 2217 ## -------------------- ##
Chris@350 2218
Chris@350 2219 ac_ext=c
Chris@350 2220 ac_cpp='$CPP $CPPFLAGS'
Chris@350 2221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 2222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 2223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@350 2224
Chris@350 2225
Chris@350 2226
Chris@350 2227
Chris@350 2228
Chris@350 2229 # Autoconf will set CXXFLAGS; we don't usually want it to, because we
Chris@350 2230 # either define our own flags (at least if GCC is in use) or else use
Chris@350 2231 # the user's preferences. We need to ensure CXXFLAGS is only set if
Chris@350 2232 # the user has expressly set it. So, save the user's (or empty)
Chris@350 2233 # setting now and restore it after Autoconf has done its bit of
Chris@350 2234 # piddling about.
Chris@350 2235 USER_CXXFLAGS="$CXXFLAGS"
Chris@350 2236
Chris@405 2237 # If the user supplied CFLAGS but not CXXFLAGS, use CFLAGS instead
Chris@405 2238 if test x"$USER_CXXFLAGS" = x; then
Chris@405 2239 if test x"$CFLAGS" != x; then
Chris@405 2240 USER_CXXFLAGS="$CFLAGS"
Chris@405 2241 fi
Chris@405 2242 fi
Chris@405 2243
Chris@350 2244 ac_ext=cpp
Chris@350 2245 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 2246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 2247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 2248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 2249
Chris@350 2250
Chris@350 2251 ac_ext=c
Chris@350 2252 ac_cpp='$CPP $CPPFLAGS'
Chris@350 2253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 2254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 2255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris@350 2256 if test -n "$ac_tool_prefix"; then
Chris@350 2257 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
Chris@350 2258 set dummy ${ac_tool_prefix}gcc; ac_word=$2
Chris@350 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 2260 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 2261 if ${ac_cv_prog_CC+:} false; then :
Chris@350 2262 $as_echo_n "(cached) " >&6
Chris@350 2263 else
Chris@350 2264 if test -n "$CC"; then
Chris@350 2265 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@350 2266 else
Chris@350 2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2268 for as_dir in $PATH
Chris@350 2269 do
Chris@350 2270 IFS=$as_save_IFS
Chris@350 2271 test -z "$as_dir" && as_dir=.
Chris@350 2272 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 2273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@350 2274 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Chris@350 2275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2276 break 2
Chris@350 2277 fi
Chris@350 2278 done
Chris@350 2279 done
Chris@350 2280 IFS=$as_save_IFS
Chris@350 2281
Chris@350 2282 fi
Chris@350 2283 fi
Chris@350 2284 CC=$ac_cv_prog_CC
Chris@350 2285 if test -n "$CC"; then
Chris@350 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@350 2287 $as_echo "$CC" >&6; }
Chris@350 2288 else
Chris@350 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 2290 $as_echo "no" >&6; }
Chris@350 2291 fi
Chris@350 2292
Chris@350 2293
Chris@350 2294 fi
Chris@350 2295 if test -z "$ac_cv_prog_CC"; then
Chris@350 2296 ac_ct_CC=$CC
Chris@350 2297 # Extract the first word of "gcc", so it can be a program name with args.
Chris@350 2298 set dummy gcc; ac_word=$2
Chris@350 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 2300 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 2301 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@350 2302 $as_echo_n "(cached) " >&6
Chris@350 2303 else
Chris@350 2304 if test -n "$ac_ct_CC"; then
Chris@350 2305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@350 2306 else
Chris@350 2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2308 for as_dir in $PATH
Chris@350 2309 do
Chris@350 2310 IFS=$as_save_IFS
Chris@350 2311 test -z "$as_dir" && as_dir=.
Chris@350 2312 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 2313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@350 2314 ac_cv_prog_ac_ct_CC="gcc"
Chris@350 2315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2316 break 2
Chris@350 2317 fi
Chris@350 2318 done
Chris@350 2319 done
Chris@350 2320 IFS=$as_save_IFS
Chris@350 2321
Chris@350 2322 fi
Chris@350 2323 fi
Chris@350 2324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@350 2325 if test -n "$ac_ct_CC"; then
Chris@350 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@350 2327 $as_echo "$ac_ct_CC" >&6; }
Chris@350 2328 else
Chris@350 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 2330 $as_echo "no" >&6; }
Chris@350 2331 fi
Chris@350 2332
Chris@350 2333 if test "x$ac_ct_CC" = x; then
Chris@350 2334 CC=""
Chris@350 2335 else
Chris@350 2336 case $cross_compiling:$ac_tool_warned in
Chris@350 2337 yes:)
Chris@350 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@350 2339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@350 2340 ac_tool_warned=yes ;;
Chris@350 2341 esac
Chris@350 2342 CC=$ac_ct_CC
Chris@350 2343 fi
Chris@350 2344 else
Chris@350 2345 CC="$ac_cv_prog_CC"
Chris@350 2346 fi
Chris@350 2347
Chris@350 2348 if test -z "$CC"; then
Chris@350 2349 if test -n "$ac_tool_prefix"; then
Chris@350 2350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Chris@350 2351 set dummy ${ac_tool_prefix}cc; ac_word=$2
Chris@350 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 2353 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 2354 if ${ac_cv_prog_CC+:} false; then :
Chris@350 2355 $as_echo_n "(cached) " >&6
Chris@350 2356 else
Chris@350 2357 if test -n "$CC"; then
Chris@350 2358 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@350 2359 else
Chris@350 2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2361 for as_dir in $PATH
Chris@350 2362 do
Chris@350 2363 IFS=$as_save_IFS
Chris@350 2364 test -z "$as_dir" && as_dir=.
Chris@350 2365 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 2366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@350 2367 ac_cv_prog_CC="${ac_tool_prefix}cc"
Chris@350 2368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2369 break 2
Chris@350 2370 fi
Chris@350 2371 done
Chris@350 2372 done
Chris@350 2373 IFS=$as_save_IFS
Chris@350 2374
Chris@350 2375 fi
Chris@350 2376 fi
Chris@350 2377 CC=$ac_cv_prog_CC
Chris@350 2378 if test -n "$CC"; then
Chris@350 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@350 2380 $as_echo "$CC" >&6; }
Chris@350 2381 else
Chris@350 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 2383 $as_echo "no" >&6; }
Chris@350 2384 fi
Chris@350 2385
Chris@350 2386
Chris@350 2387 fi
Chris@350 2388 fi
Chris@350 2389 if test -z "$CC"; then
Chris@350 2390 # Extract the first word of "cc", so it can be a program name with args.
Chris@350 2391 set dummy cc; ac_word=$2
Chris@350 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 2393 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 2394 if ${ac_cv_prog_CC+:} false; then :
Chris@350 2395 $as_echo_n "(cached) " >&6
Chris@350 2396 else
Chris@350 2397 if test -n "$CC"; then
Chris@350 2398 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@350 2399 else
Chris@350 2400 ac_prog_rejected=no
Chris@350 2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2402 for as_dir in $PATH
Chris@350 2403 do
Chris@350 2404 IFS=$as_save_IFS
Chris@350 2405 test -z "$as_dir" && as_dir=.
Chris@350 2406 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 2407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@350 2408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
Chris@350 2409 ac_prog_rejected=yes
Chris@350 2410 continue
Chris@350 2411 fi
Chris@350 2412 ac_cv_prog_CC="cc"
Chris@350 2413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2414 break 2
Chris@350 2415 fi
Chris@350 2416 done
Chris@350 2417 done
Chris@350 2418 IFS=$as_save_IFS
Chris@350 2419
Chris@350 2420 if test $ac_prog_rejected = yes; then
Chris@350 2421 # We found a bogon in the path, so make sure we never use it.
Chris@350 2422 set dummy $ac_cv_prog_CC
Chris@350 2423 shift
Chris@350 2424 if test $# != 0; then
Chris@350 2425 # We chose a different compiler from the bogus one.
Chris@350 2426 # However, it has the same basename, so the bogon will be chosen
Chris@350 2427 # first if we set CC to just the basename; use the full file name.
Chris@350 2428 shift
Chris@350 2429 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Chris@350 2430 fi
Chris@350 2431 fi
Chris@350 2432 fi
Chris@350 2433 fi
Chris@350 2434 CC=$ac_cv_prog_CC
Chris@350 2435 if test -n "$CC"; then
Chris@350 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@350 2437 $as_echo "$CC" >&6; }
Chris@350 2438 else
Chris@350 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 2440 $as_echo "no" >&6; }
Chris@350 2441 fi
Chris@350 2442
Chris@350 2443
Chris@350 2444 fi
Chris@350 2445 if test -z "$CC"; then
Chris@350 2446 if test -n "$ac_tool_prefix"; then
Chris@350 2447 for ac_prog in cl.exe
Chris@350 2448 do
Chris@350 2449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@350 2450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@350 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 2452 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 2453 if ${ac_cv_prog_CC+:} false; then :
Chris@350 2454 $as_echo_n "(cached) " >&6
Chris@350 2455 else
Chris@350 2456 if test -n "$CC"; then
Chris@350 2457 ac_cv_prog_CC="$CC" # Let the user override the test.
Chris@350 2458 else
Chris@350 2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2460 for as_dir in $PATH
Chris@350 2461 do
Chris@350 2462 IFS=$as_save_IFS
Chris@350 2463 test -z "$as_dir" && as_dir=.
Chris@350 2464 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 2465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@350 2466 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Chris@350 2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2468 break 2
Chris@350 2469 fi
Chris@350 2470 done
Chris@350 2471 done
Chris@350 2472 IFS=$as_save_IFS
Chris@350 2473
Chris@350 2474 fi
Chris@350 2475 fi
Chris@350 2476 CC=$ac_cv_prog_CC
Chris@350 2477 if test -n "$CC"; then
Chris@350 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Chris@350 2479 $as_echo "$CC" >&6; }
Chris@350 2480 else
Chris@350 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 2482 $as_echo "no" >&6; }
Chris@350 2483 fi
Chris@350 2484
Chris@350 2485
Chris@350 2486 test -n "$CC" && break
Chris@350 2487 done
Chris@350 2488 fi
Chris@350 2489 if test -z "$CC"; then
Chris@350 2490 ac_ct_CC=$CC
Chris@350 2491 for ac_prog in cl.exe
Chris@350 2492 do
Chris@350 2493 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@350 2494 set dummy $ac_prog; ac_word=$2
Chris@350 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 2496 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 2497 if ${ac_cv_prog_ac_ct_CC+:} false; then :
Chris@350 2498 $as_echo_n "(cached) " >&6
Chris@350 2499 else
Chris@350 2500 if test -n "$ac_ct_CC"; then
Chris@350 2501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
Chris@350 2502 else
Chris@350 2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 2504 for as_dir in $PATH
Chris@350 2505 do
Chris@350 2506 IFS=$as_save_IFS
Chris@350 2507 test -z "$as_dir" && as_dir=.
Chris@350 2508 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 2509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@350 2510 ac_cv_prog_ac_ct_CC="$ac_prog"
Chris@350 2511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 2512 break 2
Chris@350 2513 fi
Chris@350 2514 done
Chris@350 2515 done
Chris@350 2516 IFS=$as_save_IFS
Chris@350 2517
Chris@350 2518 fi
Chris@350 2519 fi
Chris@350 2520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
Chris@350 2521 if test -n "$ac_ct_CC"; then
Chris@350 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Chris@350 2523 $as_echo "$ac_ct_CC" >&6; }
Chris@350 2524 else
Chris@350 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 2526 $as_echo "no" >&6; }
Chris@350 2527 fi
Chris@350 2528
Chris@350 2529
Chris@350 2530 test -n "$ac_ct_CC" && break
Chris@350 2531 done
Chris@350 2532
Chris@350 2533 if test "x$ac_ct_CC" = x; then
Chris@350 2534 CC=""
Chris@350 2535 else
Chris@350 2536 case $cross_compiling:$ac_tool_warned in
Chris@350 2537 yes:)
Chris@350 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@350 2539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@350 2540 ac_tool_warned=yes ;;
Chris@350 2541 esac
Chris@350 2542 CC=$ac_ct_CC
Chris@350 2543 fi
Chris@350 2544 fi
Chris@350 2545
Chris@350 2546 fi
Chris@350 2547
Chris@350 2548
Chris@350 2549 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@350 2550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@594 2551 as_fn_error $? "no acceptable C compiler found in \$PATH
Chris@594 2552 See \`config.log' for more details" "$LINENO" 5; }
Chris@350 2553
Chris@350 2554 # Provide some information about the compiler.
Chris@350 2555 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Chris@350 2556 set X $ac_compile
Chris@350 2557 ac_compiler=$2
Chris@350 2558 for ac_option in --version -v -V -qversion; do
Chris@350 2559 { { ac_try="$ac_compiler $ac_option >&5"
Chris@350 2560 case "(($ac_try" in
Chris@350 2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 2562 *) ac_try_echo=$ac_try;;
Chris@350 2563 esac
Chris@350 2564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 2565 $as_echo "$ac_try_echo"; } >&5
Chris@350 2566 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@350 2567 ac_status=$?
Chris@350 2568 if test -s conftest.err; then
Chris@350 2569 sed '10a\
Chris@350 2570 ... rest of stderr output deleted ...
Chris@350 2571 10q' conftest.err >conftest.er1
Chris@350 2572 cat conftest.er1 >&5
Chris@350 2573 fi
Chris@350 2574 rm -f conftest.er1 conftest.err
Chris@350 2575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 2576 test $ac_status = 0; }
Chris@350 2577 done
Chris@350 2578
Chris@350 2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 2580 /* end confdefs.h. */
Chris@350 2581
Chris@350 2582 int
Chris@350 2583 main ()
Chris@350 2584 {
Chris@350 2585
Chris@350 2586 ;
Chris@350 2587 return 0;
Chris@350 2588 }
Chris@350 2589 _ACEOF
Chris@350 2590 ac_clean_files_save=$ac_clean_files
Chris@350 2591 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Chris@350 2592 # Try to create an executable without -o first, disregard a.out.
Chris@350 2593 # It will help us diagnose broken compilers, and finding out an intuition
Chris@350 2594 # of exeext.
Chris@350 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Chris@350 2596 $as_echo_n "checking whether the C compiler works... " >&6; }
Chris@350 2597 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Chris@350 2598
Chris@350 2599 # The possible output files:
Chris@350 2600 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
Chris@350 2601
Chris@350 2602 ac_rmfiles=
Chris@350 2603 for ac_file in $ac_files
Chris@350 2604 do
Chris@350 2605 case $ac_file in
Chris@350 2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@350 2607 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
Chris@350 2608 esac
Chris@350 2609 done
Chris@350 2610 rm -f $ac_rmfiles
Chris@350 2611
Chris@350 2612 if { { ac_try="$ac_link_default"
Chris@350 2613 case "(($ac_try" in
Chris@350 2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 2615 *) ac_try_echo=$ac_try;;
Chris@350 2616 esac
Chris@350 2617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 2618 $as_echo "$ac_try_echo"; } >&5
Chris@350 2619 (eval "$ac_link_default") 2>&5
Chris@350 2620 ac_status=$?
Chris@350 2621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 2622 test $ac_status = 0; }; then :
Chris@350 2623 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
Chris@350 2624 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
Chris@350 2625 # in a Makefile. We should not override ac_cv_exeext if it was cached,
Chris@350 2626 # so that the user can short-circuit this test for compilers unknown to
Chris@350 2627 # Autoconf.
Chris@350 2628 for ac_file in $ac_files ''
Chris@350 2629 do
Chris@350 2630 test -f "$ac_file" || continue
Chris@350 2631 case $ac_file in
Chris@350 2632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Chris@350 2633 ;;
Chris@350 2634 [ab].out )
Chris@350 2635 # We found the default executable, but exeext='' is most
Chris@350 2636 # certainly right.
Chris@350 2637 break;;
Chris@350 2638 *.* )
Chris@350 2639 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Chris@350 2640 then :; else
Chris@350 2641 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@350 2642 fi
Chris@350 2643 # We set ac_cv_exeext here because the later test for it is not
Chris@350 2644 # safe: cross compilers may not add the suffix if given an `-o'
Chris@350 2645 # argument, so we may need to know it at that point already.
Chris@350 2646 # Even if this section looks crufty: it has the advantage of
Chris@350 2647 # actually working.
Chris@350 2648 break;;
Chris@350 2649 * )
Chris@350 2650 break;;
Chris@350 2651 esac
Chris@350 2652 done
Chris@350 2653 test "$ac_cv_exeext" = no && ac_cv_exeext=
Chris@350 2654
Chris@350 2655 else
Chris@350 2656 ac_file=''
Chris@350 2657 fi
Chris@350 2658 if test -z "$ac_file"; then :
Chris@350 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 2660 $as_echo "no" >&6; }
Chris@350 2661 $as_echo "$as_me: failed program was:" >&5
Chris@350 2662 sed 's/^/| /' conftest.$ac_ext >&5
Chris@350 2663
Chris@350 2664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@350 2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@594 2666 as_fn_error 77 "C compiler cannot create executables
Chris@594 2667 See \`config.log' for more details" "$LINENO" 5; }
Chris@350 2668 else
Chris@350 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 2670 $as_echo "yes" >&6; }
Chris@350 2671 fi
Chris@350 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Chris@350 2673 $as_echo_n "checking for C compiler default output file name... " >&6; }
Chris@350 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Chris@350 2675 $as_echo "$ac_file" >&6; }
Chris@350 2676 ac_exeext=$ac_cv_exeext
Chris@350 2677
Chris@350 2678 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Chris@350 2679 ac_clean_files=$ac_clean_files_save
Chris@350 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Chris@350 2681 $as_echo_n "checking for suffix of executables... " >&6; }
Chris@350 2682 if { { ac_try="$ac_link"
Chris@350 2683 case "(($ac_try" in
Chris@350 2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 2685 *) ac_try_echo=$ac_try;;
Chris@350 2686 esac
Chris@350 2687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 2688 $as_echo "$ac_try_echo"; } >&5
Chris@350 2689 (eval "$ac_link") 2>&5
Chris@350 2690 ac_status=$?
Chris@350 2691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 2692 test $ac_status = 0; }; then :
Chris@350 2693 # If both `conftest.exe' and `conftest' are `present' (well, observable)
Chris@350 2694 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
Chris@350 2695 # work properly (i.e., refer to `conftest.exe'), while it won't with
Chris@350 2696 # `rm'.
Chris@350 2697 for ac_file in conftest.exe conftest conftest.*; do
Chris@350 2698 test -f "$ac_file" || continue
Chris@350 2699 case $ac_file in
Chris@350 2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Chris@350 2701 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Chris@350 2702 break;;
Chris@350 2703 * ) break;;
Chris@350 2704 esac
Chris@350 2705 done
Chris@350 2706 else
Chris@350 2707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@350 2708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@594 2709 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Chris@594 2710 See \`config.log' for more details" "$LINENO" 5; }
Chris@350 2711 fi
Chris@350 2712 rm -f conftest conftest$ac_cv_exeext
Chris@350 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Chris@350 2714 $as_echo "$ac_cv_exeext" >&6; }
Chris@350 2715
Chris@350 2716 rm -f conftest.$ac_ext
Chris@350 2717 EXEEXT=$ac_cv_exeext
Chris@350 2718 ac_exeext=$EXEEXT
Chris@350 2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 2720 /* end confdefs.h. */
Chris@350 2721 #include <stdio.h>
Chris@350 2722 int
Chris@350 2723 main ()
Chris@350 2724 {
Chris@350 2725 FILE *f = fopen ("conftest.out", "w");
Chris@350 2726 return ferror (f) || fclose (f) != 0;
Chris@350 2727
Chris@350 2728 ;
Chris@350 2729 return 0;
Chris@350 2730 }
Chris@350 2731 _ACEOF
Chris@350 2732 ac_clean_files="$ac_clean_files conftest.out"
Chris@350 2733 # Check that the compiler produces executables we can run. If not, either
Chris@350 2734 # the compiler is broken, or we cross compile.
Chris@350 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Chris@350 2736 $as_echo_n "checking whether we are cross compiling... " >&6; }
Chris@350 2737 if test "$cross_compiling" != yes; then
Chris@350 2738 { { ac_try="$ac_link"
Chris@350 2739 case "(($ac_try" in
Chris@350 2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 2741 *) ac_try_echo=$ac_try;;
Chris@350 2742 esac
Chris@350 2743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 2744 $as_echo "$ac_try_echo"; } >&5
Chris@350 2745 (eval "$ac_link") 2>&5
Chris@350 2746 ac_status=$?
Chris@350 2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 2748 test $ac_status = 0; }
Chris@350 2749 if { ac_try='./conftest$ac_cv_exeext'
Chris@350 2750 { { case "(($ac_try" in
Chris@350 2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 2752 *) ac_try_echo=$ac_try;;
Chris@350 2753 esac
Chris@350 2754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 2755 $as_echo "$ac_try_echo"; } >&5
Chris@350 2756 (eval "$ac_try") 2>&5
Chris@350 2757 ac_status=$?
Chris@350 2758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 2759 test $ac_status = 0; }; }; then
Chris@350 2760 cross_compiling=no
Chris@350 2761 else
Chris@350 2762 if test "$cross_compiling" = maybe; then
Chris@350 2763 cross_compiling=yes
Chris@350 2764 else
Chris@350 2765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@350 2766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@594 2767 as_fn_error $? "cannot run C compiled programs.
Chris@350 2768 If you meant to cross compile, use \`--host'.
Chris@594 2769 See \`config.log' for more details" "$LINENO" 5; }
Chris@350 2770 fi
Chris@350 2771 fi
Chris@350 2772 fi
Chris@350 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Chris@350 2774 $as_echo "$cross_compiling" >&6; }
Chris@350 2775
Chris@350 2776 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
Chris@350 2777 ac_clean_files=$ac_clean_files_save
Chris@350 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Chris@350 2779 $as_echo_n "checking for suffix of object files... " >&6; }
Chris@594 2780 if ${ac_cv_objext+:} false; then :
Chris@350 2781 $as_echo_n "(cached) " >&6
Chris@350 2782 else
Chris@350 2783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 2784 /* end confdefs.h. */
Chris@350 2785
Chris@350 2786 int
Chris@350 2787 main ()
Chris@350 2788 {
Chris@350 2789
Chris@350 2790 ;
Chris@350 2791 return 0;
Chris@350 2792 }
Chris@350 2793 _ACEOF
Chris@350 2794 rm -f conftest.o conftest.obj
Chris@350 2795 if { { ac_try="$ac_compile"
Chris@350 2796 case "(($ac_try" in
Chris@350 2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 2798 *) ac_try_echo=$ac_try;;
Chris@350 2799 esac
Chris@350 2800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 2801 $as_echo "$ac_try_echo"; } >&5
Chris@350 2802 (eval "$ac_compile") 2>&5
Chris@350 2803 ac_status=$?
Chris@350 2804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 2805 test $ac_status = 0; }; then :
Chris@350 2806 for ac_file in conftest.o conftest.obj conftest.*; do
Chris@350 2807 test -f "$ac_file" || continue;
Chris@350 2808 case $ac_file in
Chris@350 2809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Chris@350 2810 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
Chris@350 2811 break;;
Chris@350 2812 esac
Chris@350 2813 done
Chris@350 2814 else
Chris@350 2815 $as_echo "$as_me: failed program was:" >&5
Chris@350 2816 sed 's/^/| /' conftest.$ac_ext >&5
Chris@350 2817
Chris@350 2818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@350 2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@594 2820 as_fn_error $? "cannot compute suffix of object files: cannot compile
Chris@594 2821 See \`config.log' for more details" "$LINENO" 5; }
Chris@350 2822 fi
Chris@350 2823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
Chris@350 2824 fi
Chris@350 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Chris@350 2826 $as_echo "$ac_cv_objext" >&6; }
Chris@350 2827 OBJEXT=$ac_cv_objext
Chris@350 2828 ac_objext=$OBJEXT
Chris@350 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Chris@350 2830 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris@594 2831 if ${ac_cv_c_compiler_gnu+:} false; then :
Chris@350 2832 $as_echo_n "(cached) " >&6
Chris@350 2833 else
Chris@350 2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 2835 /* end confdefs.h. */
Chris@350 2836
Chris@350 2837 int
Chris@350 2838 main ()
Chris@350 2839 {
Chris@350 2840 #ifndef __GNUC__
Chris@350 2841 choke me
Chris@350 2842 #endif
Chris@350 2843
Chris@350 2844 ;
Chris@350 2845 return 0;
Chris@350 2846 }
Chris@350 2847 _ACEOF
Chris@350 2848 if ac_fn_c_try_compile "$LINENO"; then :
Chris@350 2849 ac_compiler_gnu=yes
Chris@350 2850 else
Chris@350 2851 ac_compiler_gnu=no
Chris@350 2852 fi
Chris@350 2853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
Chris@350 2855
Chris@350 2856 fi
Chris@350 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Chris@350 2858 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
Chris@350 2859 if test $ac_compiler_gnu = yes; then
Chris@350 2860 GCC=yes
Chris@350 2861 else
Chris@350 2862 GCC=
Chris@350 2863 fi
Chris@350 2864 ac_test_CFLAGS=${CFLAGS+set}
Chris@350 2865 ac_save_CFLAGS=$CFLAGS
Chris@350 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Chris@350 2867 $as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris@594 2868 if ${ac_cv_prog_cc_g+:} false; then :
Chris@350 2869 $as_echo_n "(cached) " >&6
Chris@350 2870 else
Chris@350 2871 ac_save_c_werror_flag=$ac_c_werror_flag
Chris@350 2872 ac_c_werror_flag=yes
Chris@350 2873 ac_cv_prog_cc_g=no
Chris@350 2874 CFLAGS="-g"
Chris@350 2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 2876 /* end confdefs.h. */
Chris@350 2877
Chris@350 2878 int
Chris@350 2879 main ()
Chris@350 2880 {
Chris@350 2881
Chris@350 2882 ;
Chris@350 2883 return 0;
Chris@350 2884 }
Chris@350 2885 _ACEOF
Chris@350 2886 if ac_fn_c_try_compile "$LINENO"; then :
Chris@350 2887 ac_cv_prog_cc_g=yes
Chris@350 2888 else
Chris@350 2889 CFLAGS=""
Chris@350 2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 2891 /* end confdefs.h. */
Chris@350 2892
Chris@350 2893 int
Chris@350 2894 main ()
Chris@350 2895 {
Chris@350 2896
Chris@350 2897 ;
Chris@350 2898 return 0;
Chris@350 2899 }
Chris@350 2900 _ACEOF
Chris@350 2901 if ac_fn_c_try_compile "$LINENO"; then :
Chris@350 2902
Chris@350 2903 else
Chris@350 2904 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@350 2905 CFLAGS="-g"
Chris@350 2906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 2907 /* end confdefs.h. */
Chris@350 2908
Chris@350 2909 int
Chris@350 2910 main ()
Chris@350 2911 {
Chris@350 2912
Chris@350 2913 ;
Chris@350 2914 return 0;
Chris@350 2915 }
Chris@350 2916 _ACEOF
Chris@350 2917 if ac_fn_c_try_compile "$LINENO"; then :
Chris@350 2918 ac_cv_prog_cc_g=yes
Chris@350 2919 fi
Chris@350 2920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2921 fi
Chris@350 2922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2923 fi
Chris@350 2924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 2925 ac_c_werror_flag=$ac_save_c_werror_flag
Chris@350 2926 fi
Chris@350 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Chris@350 2928 $as_echo "$ac_cv_prog_cc_g" >&6; }
Chris@350 2929 if test "$ac_test_CFLAGS" = set; then
Chris@350 2930 CFLAGS=$ac_save_CFLAGS
Chris@350 2931 elif test $ac_cv_prog_cc_g = yes; then
Chris@350 2932 if test "$GCC" = yes; then
Chris@350 2933 CFLAGS="-g -O2"
Chris@350 2934 else
Chris@350 2935 CFLAGS="-g"
Chris@350 2936 fi
Chris@350 2937 else
Chris@350 2938 if test "$GCC" = yes; then
Chris@350 2939 CFLAGS="-O2"
Chris@350 2940 else
Chris@350 2941 CFLAGS=
Chris@350 2942 fi
Chris@350 2943 fi
Chris@350 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Chris@350 2945 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris@594 2946 if ${ac_cv_prog_cc_c89+:} false; then :
Chris@350 2947 $as_echo_n "(cached) " >&6
Chris@350 2948 else
Chris@350 2949 ac_cv_prog_cc_c89=no
Chris@350 2950 ac_save_CC=$CC
Chris@350 2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 2952 /* end confdefs.h. */
Chris@350 2953 #include <stdarg.h>
Chris@350 2954 #include <stdio.h>
Chris@594 2955 struct stat;
Chris@350 2956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
Chris@350 2957 struct buf { int x; };
Chris@350 2958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
Chris@350 2959 static char *e (p, i)
Chris@350 2960 char **p;
Chris@350 2961 int i;
Chris@350 2962 {
Chris@350 2963 return p[i];
Chris@350 2964 }
Chris@350 2965 static char *f (char * (*g) (char **, int), char **p, ...)
Chris@350 2966 {
Chris@350 2967 char *s;
Chris@350 2968 va_list v;
Chris@350 2969 va_start (v,p);
Chris@350 2970 s = g (p, va_arg (v,int));
Chris@350 2971 va_end (v);
Chris@350 2972 return s;
Chris@350 2973 }
Chris@350 2974
Chris@350 2975 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
Chris@350 2976 function prototypes and stuff, but not '\xHH' hex character constants.
Chris@350 2977 These don't provoke an error unfortunately, instead are silently treated
Chris@350 2978 as 'x'. The following induces an error, until -std is added to get
Chris@350 2979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
Chris@350 2980 array size at least. It's necessary to write '\x00'==0 to get something
Chris@350 2981 that's true only with -std. */
Chris@350 2982 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
Chris@350 2983
Chris@350 2984 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
Chris@350 2985 inside strings and character constants. */
Chris@350 2986 #define FOO(x) 'x'
Chris@350 2987 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
Chris@350 2988
Chris@350 2989 int test (int i, double x);
Chris@350 2990 struct s1 {int (*f) (int a);};
Chris@350 2991 struct s2 {int (*f) (double a);};
Chris@350 2992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
Chris@350 2993 int argc;
Chris@350 2994 char **argv;
Chris@350 2995 int
Chris@350 2996 main ()
Chris@350 2997 {
Chris@350 2998 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
Chris@350 2999 ;
Chris@350 3000 return 0;
Chris@350 3001 }
Chris@350 3002 _ACEOF
Chris@350 3003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
Chris@350 3004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Chris@350 3005 do
Chris@350 3006 CC="$ac_save_CC $ac_arg"
Chris@350 3007 if ac_fn_c_try_compile "$LINENO"; then :
Chris@350 3008 ac_cv_prog_cc_c89=$ac_arg
Chris@350 3009 fi
Chris@350 3010 rm -f core conftest.err conftest.$ac_objext
Chris@350 3011 test "x$ac_cv_prog_cc_c89" != "xno" && break
Chris@350 3012 done
Chris@350 3013 rm -f conftest.$ac_ext
Chris@350 3014 CC=$ac_save_CC
Chris@350 3015
Chris@350 3016 fi
Chris@350 3017 # AC_CACHE_VAL
Chris@350 3018 case "x$ac_cv_prog_cc_c89" in
Chris@350 3019 x)
Chris@350 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Chris@350 3021 $as_echo "none needed" >&6; } ;;
Chris@350 3022 xno)
Chris@350 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Chris@350 3024 $as_echo "unsupported" >&6; } ;;
Chris@350 3025 *)
Chris@350 3026 CC="$CC $ac_cv_prog_cc_c89"
Chris@350 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Chris@350 3028 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Chris@350 3029 esac
Chris@350 3030 if test "x$ac_cv_prog_cc_c89" != xno; then :
Chris@350 3031
Chris@350 3032 fi
Chris@350 3033
Chris@350 3034 ac_ext=cpp
Chris@350 3035 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 3036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 3037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 3038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 3039
Chris@350 3040 ac_ext=cpp
Chris@350 3041 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 3042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 3043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 3044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 3045 if test -z "$CXX"; then
Chris@350 3046 if test -n "$CCC"; then
Chris@350 3047 CXX=$CCC
Chris@350 3048 else
Chris@350 3049 if test -n "$ac_tool_prefix"; then
Chris@350 3050 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Chris@350 3051 do
Chris@350 3052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Chris@350 3053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Chris@350 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 3055 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 3056 if ${ac_cv_prog_CXX+:} false; then :
Chris@350 3057 $as_echo_n "(cached) " >&6
Chris@350 3058 else
Chris@350 3059 if test -n "$CXX"; then
Chris@350 3060 ac_cv_prog_CXX="$CXX" # Let the user override the test.
Chris@350 3061 else
Chris@350 3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3063 for as_dir in $PATH
Chris@350 3064 do
Chris@350 3065 IFS=$as_save_IFS
Chris@350 3066 test -z "$as_dir" && as_dir=.
Chris@350 3067 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@350 3069 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Chris@350 3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 3071 break 2
Chris@350 3072 fi
Chris@350 3073 done
Chris@350 3074 done
Chris@350 3075 IFS=$as_save_IFS
Chris@350 3076
Chris@350 3077 fi
Chris@350 3078 fi
Chris@350 3079 CXX=$ac_cv_prog_CXX
Chris@350 3080 if test -n "$CXX"; then
Chris@350 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Chris@350 3082 $as_echo "$CXX" >&6; }
Chris@350 3083 else
Chris@350 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 3085 $as_echo "no" >&6; }
Chris@350 3086 fi
Chris@350 3087
Chris@350 3088
Chris@350 3089 test -n "$CXX" && break
Chris@350 3090 done
Chris@350 3091 fi
Chris@350 3092 if test -z "$CXX"; then
Chris@350 3093 ac_ct_CXX=$CXX
Chris@350 3094 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Chris@350 3095 do
Chris@350 3096 # Extract the first word of "$ac_prog", so it can be a program name with args.
Chris@350 3097 set dummy $ac_prog; ac_word=$2
Chris@350 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 3099 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 3100 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Chris@350 3101 $as_echo_n "(cached) " >&6
Chris@350 3102 else
Chris@350 3103 if test -n "$ac_ct_CXX"; then
Chris@350 3104 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
Chris@350 3105 else
Chris@350 3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3107 for as_dir in $PATH
Chris@350 3108 do
Chris@350 3109 IFS=$as_save_IFS
Chris@350 3110 test -z "$as_dir" && as_dir=.
Chris@350 3111 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 3112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@350 3113 ac_cv_prog_ac_ct_CXX="$ac_prog"
Chris@350 3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 3115 break 2
Chris@350 3116 fi
Chris@350 3117 done
Chris@350 3118 done
Chris@350 3119 IFS=$as_save_IFS
Chris@350 3120
Chris@350 3121 fi
Chris@350 3122 fi
Chris@350 3123 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
Chris@350 3124 if test -n "$ac_ct_CXX"; then
Chris@350 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Chris@350 3126 $as_echo "$ac_ct_CXX" >&6; }
Chris@350 3127 else
Chris@350 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 3129 $as_echo "no" >&6; }
Chris@350 3130 fi
Chris@350 3131
Chris@350 3132
Chris@350 3133 test -n "$ac_ct_CXX" && break
Chris@350 3134 done
Chris@350 3135
Chris@350 3136 if test "x$ac_ct_CXX" = x; then
Chris@350 3137 CXX="g++"
Chris@350 3138 else
Chris@350 3139 case $cross_compiling:$ac_tool_warned in
Chris@350 3140 yes:)
Chris@350 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@350 3142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@350 3143 ac_tool_warned=yes ;;
Chris@350 3144 esac
Chris@350 3145 CXX=$ac_ct_CXX
Chris@350 3146 fi
Chris@350 3147 fi
Chris@350 3148
Chris@350 3149 fi
Chris@350 3150 fi
Chris@350 3151 # Provide some information about the compiler.
Chris@350 3152 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Chris@350 3153 set X $ac_compile
Chris@350 3154 ac_compiler=$2
Chris@350 3155 for ac_option in --version -v -V -qversion; do
Chris@350 3156 { { ac_try="$ac_compiler $ac_option >&5"
Chris@350 3157 case "(($ac_try" in
Chris@350 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Chris@350 3159 *) ac_try_echo=$ac_try;;
Chris@350 3160 esac
Chris@350 3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
Chris@350 3162 $as_echo "$ac_try_echo"; } >&5
Chris@350 3163 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Chris@350 3164 ac_status=$?
Chris@350 3165 if test -s conftest.err; then
Chris@350 3166 sed '10a\
Chris@350 3167 ... rest of stderr output deleted ...
Chris@350 3168 10q' conftest.err >conftest.er1
Chris@350 3169 cat conftest.er1 >&5
Chris@350 3170 fi
Chris@350 3171 rm -f conftest.er1 conftest.err
Chris@350 3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 3173 test $ac_status = 0; }
Chris@350 3174 done
Chris@350 3175
Chris@350 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Chris@350 3177 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Chris@594 3178 if ${ac_cv_cxx_compiler_gnu+:} false; then :
Chris@350 3179 $as_echo_n "(cached) " >&6
Chris@350 3180 else
Chris@350 3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 3182 /* end confdefs.h. */
Chris@350 3183
Chris@350 3184 int
Chris@350 3185 main ()
Chris@350 3186 {
Chris@350 3187 #ifndef __GNUC__
Chris@350 3188 choke me
Chris@350 3189 #endif
Chris@350 3190
Chris@350 3191 ;
Chris@350 3192 return 0;
Chris@350 3193 }
Chris@350 3194 _ACEOF
Chris@350 3195 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@350 3196 ac_compiler_gnu=yes
Chris@350 3197 else
Chris@350 3198 ac_compiler_gnu=no
Chris@350 3199 fi
Chris@350 3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 3201 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
Chris@350 3202
Chris@350 3203 fi
Chris@350 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Chris@350 3205 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
Chris@350 3206 if test $ac_compiler_gnu = yes; then
Chris@350 3207 GXX=yes
Chris@350 3208 else
Chris@350 3209 GXX=
Chris@350 3210 fi
Chris@350 3211 ac_test_CXXFLAGS=${CXXFLAGS+set}
Chris@350 3212 ac_save_CXXFLAGS=$CXXFLAGS
Chris@350 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Chris@350 3214 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
Chris@594 3215 if ${ac_cv_prog_cxx_g+:} false; then :
Chris@350 3216 $as_echo_n "(cached) " >&6
Chris@350 3217 else
Chris@350 3218 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
Chris@350 3219 ac_cxx_werror_flag=yes
Chris@350 3220 ac_cv_prog_cxx_g=no
Chris@350 3221 CXXFLAGS="-g"
Chris@350 3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 3223 /* end confdefs.h. */
Chris@350 3224
Chris@350 3225 int
Chris@350 3226 main ()
Chris@350 3227 {
Chris@350 3228
Chris@350 3229 ;
Chris@350 3230 return 0;
Chris@350 3231 }
Chris@350 3232 _ACEOF
Chris@350 3233 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@350 3234 ac_cv_prog_cxx_g=yes
Chris@350 3235 else
Chris@350 3236 CXXFLAGS=""
Chris@350 3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 3238 /* end confdefs.h. */
Chris@350 3239
Chris@350 3240 int
Chris@350 3241 main ()
Chris@350 3242 {
Chris@350 3243
Chris@350 3244 ;
Chris@350 3245 return 0;
Chris@350 3246 }
Chris@350 3247 _ACEOF
Chris@350 3248 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@350 3249
Chris@350 3250 else
Chris@350 3251 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Chris@350 3252 CXXFLAGS="-g"
Chris@350 3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 3254 /* end confdefs.h. */
Chris@350 3255
Chris@350 3256 int
Chris@350 3257 main ()
Chris@350 3258 {
Chris@350 3259
Chris@350 3260 ;
Chris@350 3261 return 0;
Chris@350 3262 }
Chris@350 3263 _ACEOF
Chris@350 3264 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@350 3265 ac_cv_prog_cxx_g=yes
Chris@350 3266 fi
Chris@350 3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 3268 fi
Chris@350 3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 3270 fi
Chris@350 3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 3272 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Chris@350 3273 fi
Chris@350 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Chris@350 3275 $as_echo "$ac_cv_prog_cxx_g" >&6; }
Chris@350 3276 if test "$ac_test_CXXFLAGS" = set; then
Chris@350 3277 CXXFLAGS=$ac_save_CXXFLAGS
Chris@350 3278 elif test $ac_cv_prog_cxx_g = yes; then
Chris@350 3279 if test "$GXX" = yes; then
Chris@350 3280 CXXFLAGS="-g -O2"
Chris@350 3281 else
Chris@350 3282 CXXFLAGS="-g"
Chris@350 3283 fi
Chris@350 3284 else
Chris@350 3285 if test "$GXX" = yes; then
Chris@350 3286 CXXFLAGS="-O2"
Chris@350 3287 else
Chris@350 3288 CXXFLAGS=
Chris@350 3289 fi
Chris@350 3290 fi
Chris@350 3291 ac_ext=cpp
Chris@350 3292 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 3293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 3294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 3295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 3296
Chris@350 3297 ac_aux_dir=
Chris@350 3298 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris@594 3299 if test -f "$ac_dir/install-sh"; then
Chris@594 3300 ac_aux_dir=$ac_dir
Chris@594 3301 ac_install_sh="$ac_aux_dir/install-sh -c"
Chris@594 3302 break
Chris@594 3303 elif test -f "$ac_dir/install.sh"; then
Chris@594 3304 ac_aux_dir=$ac_dir
Chris@594 3305 ac_install_sh="$ac_aux_dir/install.sh -c"
Chris@594 3306 break
Chris@594 3307 elif test -f "$ac_dir/shtool"; then
Chris@594 3308 ac_aux_dir=$ac_dir
Chris@594 3309 ac_install_sh="$ac_aux_dir/shtool install -c"
Chris@594 3310 break
Chris@594 3311 fi
Chris@350 3312 done
Chris@350 3313 if test -z "$ac_aux_dir"; then
Chris@594 3314 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Chris@350 3315 fi
Chris@350 3316
Chris@350 3317 # These three variables are undocumented and unsupported,
Chris@350 3318 # and are intended to be withdrawn in a future Autoconf release.
Chris@350 3319 # They can cause serious problems if a builder's source tree is in a directory
Chris@350 3320 # whose full name contains unusual characters.
Chris@350 3321 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
Chris@350 3322 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
Chris@350 3323 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Chris@350 3324
Chris@350 3325
Chris@350 3326 # Find a good install program. We prefer a C program (faster),
Chris@350 3327 # so one script is as good as another. But avoid the broken or
Chris@350 3328 # incompatible versions:
Chris@350 3329 # SysV /etc/install, /usr/sbin/install
Chris@350 3330 # SunOS /usr/etc/install
Chris@350 3331 # IRIX /sbin/install
Chris@350 3332 # AIX /bin/install
Chris@350 3333 # AmigaOS /C/install, which installs bootblocks on floppy discs
Chris@350 3334 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Chris@350 3335 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
Chris@350 3336 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Chris@350 3337 # OS/2's system install, which has a completely different semantic
Chris@350 3338 # ./install, which can be erroneously created by make from ./install.sh.
Chris@350 3339 # Reject install programs that cannot install multiple files.
Chris@350 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Chris@350 3341 $as_echo_n "checking for a BSD-compatible install... " >&6; }
Chris@350 3342 if test -z "$INSTALL"; then
Chris@594 3343 if ${ac_cv_path_install+:} false; then :
Chris@350 3344 $as_echo_n "(cached) " >&6
Chris@350 3345 else
Chris@350 3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3347 for as_dir in $PATH
Chris@350 3348 do
Chris@350 3349 IFS=$as_save_IFS
Chris@350 3350 test -z "$as_dir" && as_dir=.
Chris@350 3351 # Account for people who put trailing slashes in PATH elements.
Chris@350 3352 case $as_dir/ in #((
Chris@350 3353 ./ | .// | /[cC]/* | \
Chris@350 3354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Chris@350 3355 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Chris@350 3356 /usr/ucb/* ) ;;
Chris@350 3357 *)
Chris@350 3358 # OSF1 and SCO ODT 3.0 have their own names for install.
Chris@350 3359 # Don't use installbsd from OSF since it installs stuff as root
Chris@350 3360 # by default.
Chris@350 3361 for ac_prog in ginstall scoinst install; do
Chris@350 3362 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 3363 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Chris@350 3364 if test $ac_prog = install &&
Chris@350 3365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@350 3366 # AIX install. It has an incompatible calling convention.
Chris@350 3367 :
Chris@350 3368 elif test $ac_prog = install &&
Chris@350 3369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Chris@350 3370 # program-specific install script used by HP pwplus--don't use.
Chris@350 3371 :
Chris@350 3372 else
Chris@350 3373 rm -rf conftest.one conftest.two conftest.dir
Chris@350 3374 echo one > conftest.one
Chris@350 3375 echo two > conftest.two
Chris@350 3376 mkdir conftest.dir
Chris@350 3377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
Chris@350 3378 test -s conftest.one && test -s conftest.two &&
Chris@350 3379 test -s conftest.dir/conftest.one &&
Chris@350 3380 test -s conftest.dir/conftest.two
Chris@350 3381 then
Chris@350 3382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
Chris@350 3383 break 3
Chris@350 3384 fi
Chris@350 3385 fi
Chris@350 3386 fi
Chris@350 3387 done
Chris@350 3388 done
Chris@350 3389 ;;
Chris@350 3390 esac
Chris@350 3391
Chris@350 3392 done
Chris@350 3393 IFS=$as_save_IFS
Chris@350 3394
Chris@350 3395 rm -rf conftest.one conftest.two conftest.dir
Chris@350 3396
Chris@350 3397 fi
Chris@350 3398 if test "${ac_cv_path_install+set}" = set; then
Chris@350 3399 INSTALL=$ac_cv_path_install
Chris@350 3400 else
Chris@350 3401 # As a last resort, use the slow shell script. Don't cache a
Chris@350 3402 # value for INSTALL within a source directory, because that will
Chris@350 3403 # break other packages using the cache if that directory is
Chris@350 3404 # removed, or if the value is a relative name.
Chris@350 3405 INSTALL=$ac_install_sh
Chris@350 3406 fi
Chris@350 3407 fi
Chris@350 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Chris@350 3409 $as_echo "$INSTALL" >&6; }
Chris@350 3410
Chris@350 3411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Chris@350 3412 # It thinks the first close brace ends the variable substitution.
Chris@350 3413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Chris@350 3414
Chris@350 3415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Chris@350 3416
Chris@350 3417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Chris@350 3418
Chris@350 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Chris@350 3420 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Chris@350 3421 if test -z "$MKDIR_P"; then
Chris@594 3422 if ${ac_cv_path_mkdir+:} false; then :
Chris@350 3423 $as_echo_n "(cached) " >&6
Chris@350 3424 else
Chris@350 3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3426 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
Chris@350 3427 do
Chris@350 3428 IFS=$as_save_IFS
Chris@350 3429 test -z "$as_dir" && as_dir=.
Chris@350 3430 for ac_prog in mkdir gmkdir; do
Chris@350 3431 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 3432 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Chris@350 3433 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
Chris@350 3434 'mkdir (GNU coreutils) '* | \
Chris@350 3435 'mkdir (coreutils) '* | \
Chris@350 3436 'mkdir (fileutils) '4.1*)
Chris@350 3437 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
Chris@350 3438 break 3;;
Chris@350 3439 esac
Chris@350 3440 done
Chris@350 3441 done
Chris@350 3442 done
Chris@350 3443 IFS=$as_save_IFS
Chris@350 3444
Chris@350 3445 fi
Chris@350 3446
Chris@350 3447 test -d ./--version && rmdir ./--version
Chris@350 3448 if test "${ac_cv_path_mkdir+set}" = set; then
Chris@350 3449 MKDIR_P="$ac_cv_path_mkdir -p"
Chris@350 3450 else
Chris@350 3451 # As a last resort, use the slow shell script. Don't cache a
Chris@350 3452 # value for MKDIR_P within a source directory, because that will
Chris@350 3453 # break other packages using the cache if that directory is
Chris@350 3454 # removed, or if the value is a relative name.
Chris@350 3455 MKDIR_P="$ac_install_sh -d"
Chris@350 3456 fi
Chris@350 3457 fi
Chris@350 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Chris@350 3459 $as_echo "$MKDIR_P" >&6; }
Chris@350 3460
Chris@350 3461
Chris@884 3462 # We are daringly making use of C++11 now
Chris@884 3463
Chris@884 3464 ax_cxx_compile_cxx11_required=true
Chris@884 3465 ac_ext=cpp
Chris@884 3466 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@884 3467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@884 3468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@884 3469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@884 3470 ac_success=no
Chris@884 3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
Chris@884 3472 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
Chris@884 3473 if ${ax_cv_cxx_compile_cxx11+:} false; then :
Chris@884 3474 $as_echo_n "(cached) " >&6
Chris@884 3475 else
Chris@884 3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@884 3477 /* end confdefs.h. */
Chris@884 3478
Chris@884 3479 template <typename T>
Chris@884 3480 struct check
Chris@884 3481 {
Chris@884 3482 static_assert(sizeof(int) <= sizeof(T), "not big enough");
Chris@884 3483 };
Chris@884 3484
Chris@884 3485 struct Base {
Chris@884 3486 virtual void f() {}
Chris@884 3487 };
Chris@884 3488 struct Child : public Base {
Chris@884 3489 virtual void f() override {}
Chris@884 3490 };
Chris@884 3491
Chris@884 3492 typedef check<check<bool>> right_angle_brackets;
Chris@884 3493
Chris@884 3494 int a;
Chris@884 3495 decltype(a) b;
Chris@884 3496
Chris@884 3497 typedef check<int> check_type;
Chris@884 3498 check_type c;
Chris@884 3499 check_type&& cr = static_cast<check_type&&>(c);
Chris@884 3500
Chris@884 3501 auto d = a;
Chris@884 3502 auto l = [](){};
Chris@884 3503
Chris@884 3504 _ACEOF
Chris@884 3505 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@884 3506 ax_cv_cxx_compile_cxx11=yes
Chris@884 3507 else
Chris@884 3508 ax_cv_cxx_compile_cxx11=no
Chris@884 3509 fi
Chris@884 3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@884 3511 fi
Chris@884 3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
Chris@884 3513 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
Chris@884 3514 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
Chris@884 3515 ac_success=yes
Chris@884 3516 fi
Chris@884 3517
Chris@884 3518
Chris@884 3519
Chris@884 3520 if test x$ac_success = xno; then
Chris@884 3521 for switch in -std=c++11 -std=c++0x; do
Chris@884 3522 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
Chris@884 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
Chris@884 3524 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
Chris@884 3525 if eval \${$cachevar+:} false; then :
Chris@884 3526 $as_echo_n "(cached) " >&6
Chris@884 3527 else
Chris@884 3528 ac_save_CXXFLAGS="$CXXFLAGS"
Chris@884 3529 CXXFLAGS="$CXXFLAGS $switch"
Chris@884 3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@884 3531 /* end confdefs.h. */
Chris@884 3532
Chris@884 3533 template <typename T>
Chris@884 3534 struct check
Chris@884 3535 {
Chris@884 3536 static_assert(sizeof(int) <= sizeof(T), "not big enough");
Chris@884 3537 };
Chris@884 3538
Chris@884 3539 struct Base {
Chris@884 3540 virtual void f() {}
Chris@884 3541 };
Chris@884 3542 struct Child : public Base {
Chris@884 3543 virtual void f() override {}
Chris@884 3544 };
Chris@884 3545
Chris@884 3546 typedef check<check<bool>> right_angle_brackets;
Chris@884 3547
Chris@884 3548 int a;
Chris@884 3549 decltype(a) b;
Chris@884 3550
Chris@884 3551 typedef check<int> check_type;
Chris@884 3552 check_type c;
Chris@884 3553 check_type&& cr = static_cast<check_type&&>(c);
Chris@884 3554
Chris@884 3555 auto d = a;
Chris@884 3556 auto l = [](){};
Chris@884 3557
Chris@884 3558 _ACEOF
Chris@884 3559 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@884 3560 eval $cachevar=yes
Chris@884 3561 else
Chris@884 3562 eval $cachevar=no
Chris@884 3563 fi
Chris@884 3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@884 3565 CXXFLAGS="$ac_save_CXXFLAGS"
Chris@884 3566 fi
Chris@884 3567 eval ac_res=\$$cachevar
Chris@884 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@884 3569 $as_echo "$ac_res" >&6; }
Chris@884 3570 if eval test x\$$cachevar = xyes; then
Chris@884 3571 CXXFLAGS="$CXXFLAGS $switch"
Chris@884 3572 ac_success=yes
Chris@884 3573 break
Chris@884 3574 fi
Chris@884 3575 done
Chris@884 3576 fi
Chris@884 3577 ac_ext=cpp
Chris@884 3578 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@884 3579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@884 3580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@884 3581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@884 3582
Chris@884 3583 if test x$ax_cxx_compile_cxx11_required = xtrue; then
Chris@884 3584 if test x$ac_success = xno; then
Chris@884 3585 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
Chris@884 3586 fi
Chris@884 3587 else
Chris@884 3588 if test x$ac_success = xno; then
Chris@884 3589 HAVE_CXX11=0
Chris@884 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
Chris@884 3591 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
Chris@884 3592 else
Chris@884 3593 HAVE_CXX11=1
Chris@884 3594
Chris@884 3595 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
Chris@884 3596
Chris@884 3597 fi
Chris@884 3598
Chris@884 3599
Chris@884 3600 fi
Chris@884 3601
Chris@350 3602
Chris@350 3603 ac_ext=cpp
Chris@350 3604 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 3605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 3606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 3607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
Chris@350 3609 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
Chris@350 3610 if test -z "$CXXCPP"; then
Chris@594 3611 if ${ac_cv_prog_CXXCPP+:} false; then :
Chris@350 3612 $as_echo_n "(cached) " >&6
Chris@350 3613 else
Chris@350 3614 # Double quotes because CXXCPP needs to be expanded
Chris@350 3615 for CXXCPP in "$CXX -E" "/lib/cpp"
Chris@350 3616 do
Chris@350 3617 ac_preproc_ok=false
Chris@350 3618 for ac_cxx_preproc_warn_flag in '' yes
Chris@350 3619 do
Chris@350 3620 # Use a header file that comes with gcc, so configuring glibc
Chris@350 3621 # with a fresh cross-compiler works.
Chris@350 3622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@350 3623 # <limits.h> exists even on freestanding compilers.
Chris@350 3624 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@350 3625 # not just through cpp. "Syntax error" is here to catch this case.
Chris@350 3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 3627 /* end confdefs.h. */
Chris@350 3628 #ifdef __STDC__
Chris@350 3629 # include <limits.h>
Chris@350 3630 #else
Chris@350 3631 # include <assert.h>
Chris@350 3632 #endif
Chris@350 3633 Syntax error
Chris@350 3634 _ACEOF
Chris@350 3635 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@350 3636
Chris@350 3637 else
Chris@350 3638 # Broken: fails on valid input.
Chris@350 3639 continue
Chris@350 3640 fi
Chris@594 3641 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@350 3642
Chris@350 3643 # OK, works on sane cases. Now check whether nonexistent headers
Chris@350 3644 # can be detected and how.
Chris@350 3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 3646 /* end confdefs.h. */
Chris@350 3647 #include <ac_nonexistent.h>
Chris@350 3648 _ACEOF
Chris@350 3649 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@350 3650 # Broken: success on invalid input.
Chris@350 3651 continue
Chris@350 3652 else
Chris@350 3653 # Passes both tests.
Chris@350 3654 ac_preproc_ok=:
Chris@350 3655 break
Chris@350 3656 fi
Chris@594 3657 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@350 3658
Chris@350 3659 done
Chris@350 3660 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@594 3661 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@350 3662 if $ac_preproc_ok; then :
Chris@350 3663 break
Chris@350 3664 fi
Chris@350 3665
Chris@350 3666 done
Chris@350 3667 ac_cv_prog_CXXCPP=$CXXCPP
Chris@350 3668
Chris@350 3669 fi
Chris@350 3670 CXXCPP=$ac_cv_prog_CXXCPP
Chris@350 3671 else
Chris@350 3672 ac_cv_prog_CXXCPP=$CXXCPP
Chris@350 3673 fi
Chris@350 3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
Chris@350 3675 $as_echo "$CXXCPP" >&6; }
Chris@350 3676 ac_preproc_ok=false
Chris@350 3677 for ac_cxx_preproc_warn_flag in '' yes
Chris@350 3678 do
Chris@350 3679 # Use a header file that comes with gcc, so configuring glibc
Chris@350 3680 # with a fresh cross-compiler works.
Chris@350 3681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Chris@350 3682 # <limits.h> exists even on freestanding compilers.
Chris@350 3683 # On the NeXT, cc -E runs the code through the compiler's parser,
Chris@350 3684 # not just through cpp. "Syntax error" is here to catch this case.
Chris@350 3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 3686 /* end confdefs.h. */
Chris@350 3687 #ifdef __STDC__
Chris@350 3688 # include <limits.h>
Chris@350 3689 #else
Chris@350 3690 # include <assert.h>
Chris@350 3691 #endif
Chris@350 3692 Syntax error
Chris@350 3693 _ACEOF
Chris@350 3694 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@350 3695
Chris@350 3696 else
Chris@350 3697 # Broken: fails on valid input.
Chris@350 3698 continue
Chris@350 3699 fi
Chris@594 3700 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@350 3701
Chris@350 3702 # OK, works on sane cases. Now check whether nonexistent headers
Chris@350 3703 # can be detected and how.
Chris@350 3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 3705 /* end confdefs.h. */
Chris@350 3706 #include <ac_nonexistent.h>
Chris@350 3707 _ACEOF
Chris@350 3708 if ac_fn_cxx_try_cpp "$LINENO"; then :
Chris@350 3709 # Broken: success on invalid input.
Chris@350 3710 continue
Chris@350 3711 else
Chris@350 3712 # Passes both tests.
Chris@350 3713 ac_preproc_ok=:
Chris@350 3714 break
Chris@350 3715 fi
Chris@594 3716 rm -f conftest.err conftest.i conftest.$ac_ext
Chris@350 3717
Chris@350 3718 done
Chris@350 3719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris@594 3720 rm -f conftest.i conftest.err conftest.$ac_ext
Chris@350 3721 if $ac_preproc_ok; then :
Chris@350 3722
Chris@350 3723 else
Chris@350 3724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Chris@350 3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris@594 3726 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
Chris@594 3727 See \`config.log' for more details" "$LINENO" 5; }
Chris@350 3728 fi
Chris@350 3729
Chris@350 3730 ac_ext=cpp
Chris@350 3731 ac_cpp='$CXXCPP $CPPFLAGS'
Chris@350 3732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Chris@350 3733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Chris@350 3734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Chris@350 3735
Chris@350 3736
Chris@350 3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Chris@350 3738 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris@594 3739 if ${ac_cv_path_GREP+:} false; then :
Chris@350 3740 $as_echo_n "(cached) " >&6
Chris@350 3741 else
Chris@350 3742 if test -z "$GREP"; then
Chris@350 3743 ac_path_GREP_found=false
Chris@350 3744 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@350 3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3746 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@350 3747 do
Chris@350 3748 IFS=$as_save_IFS
Chris@350 3749 test -z "$as_dir" && as_dir=.
Chris@350 3750 for ac_prog in grep ggrep; do
Chris@350 3751 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 3752 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@594 3753 as_fn_executable_p "$ac_path_GREP" || continue
Chris@350 3754 # Check for GNU ac_path_GREP and select it if it is found.
Chris@350 3755 # Check for GNU $ac_path_GREP
Chris@350 3756 case `"$ac_path_GREP" --version 2>&1` in
Chris@350 3757 *GNU*)
Chris@350 3758 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Chris@350 3759 *)
Chris@350 3760 ac_count=0
Chris@350 3761 $as_echo_n 0123456789 >"conftest.in"
Chris@350 3762 while :
Chris@350 3763 do
Chris@350 3764 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@350 3765 mv "conftest.tmp" "conftest.in"
Chris@350 3766 cp "conftest.in" "conftest.nl"
Chris@350 3767 $as_echo 'GREP' >> "conftest.nl"
Chris@350 3768 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@350 3769 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@350 3770 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@350 3771 if test $ac_count -gt ${ac_path_GREP_max-0}; then
Chris@350 3772 # Best one so far, save it but keep looking for a better one
Chris@350 3773 ac_cv_path_GREP="$ac_path_GREP"
Chris@350 3774 ac_path_GREP_max=$ac_count
Chris@350 3775 fi
Chris@350 3776 # 10*(2^10) chars as input seems more than enough
Chris@350 3777 test $ac_count -gt 10 && break
Chris@350 3778 done
Chris@350 3779 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@350 3780 esac
Chris@350 3781
Chris@350 3782 $ac_path_GREP_found && break 3
Chris@350 3783 done
Chris@350 3784 done
Chris@350 3785 done
Chris@350 3786 IFS=$as_save_IFS
Chris@350 3787 if test -z "$ac_cv_path_GREP"; then
Chris@594 3788 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@350 3789 fi
Chris@350 3790 else
Chris@350 3791 ac_cv_path_GREP=$GREP
Chris@350 3792 fi
Chris@350 3793
Chris@350 3794 fi
Chris@350 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Chris@350 3796 $as_echo "$ac_cv_path_GREP" >&6; }
Chris@350 3797 GREP="$ac_cv_path_GREP"
Chris@350 3798
Chris@350 3799
Chris@350 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Chris@350 3801 $as_echo_n "checking for egrep... " >&6; }
Chris@594 3802 if ${ac_cv_path_EGREP+:} false; then :
Chris@350 3803 $as_echo_n "(cached) " >&6
Chris@350 3804 else
Chris@350 3805 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Chris@350 3806 then ac_cv_path_EGREP="$GREP -E"
Chris@350 3807 else
Chris@350 3808 if test -z "$EGREP"; then
Chris@350 3809 ac_path_EGREP_found=false
Chris@350 3810 # Loop through the user's path and test for each of PROGNAME-LIST
Chris@350 3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 3812 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Chris@350 3813 do
Chris@350 3814 IFS=$as_save_IFS
Chris@350 3815 test -z "$as_dir" && as_dir=.
Chris@350 3816 for ac_prog in egrep; do
Chris@350 3817 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@350 3818 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris@594 3819 as_fn_executable_p "$ac_path_EGREP" || continue
Chris@350 3820 # Check for GNU ac_path_EGREP and select it if it is found.
Chris@350 3821 # Check for GNU $ac_path_EGREP
Chris@350 3822 case `"$ac_path_EGREP" --version 2>&1` in
Chris@350 3823 *GNU*)
Chris@350 3824 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Chris@350 3825 *)
Chris@350 3826 ac_count=0
Chris@350 3827 $as_echo_n 0123456789 >"conftest.in"
Chris@350 3828 while :
Chris@350 3829 do
Chris@350 3830 cat "conftest.in" "conftest.in" >"conftest.tmp"
Chris@350 3831 mv "conftest.tmp" "conftest.in"
Chris@350 3832 cp "conftest.in" "conftest.nl"
Chris@350 3833 $as_echo 'EGREP' >> "conftest.nl"
Chris@350 3834 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Chris@350 3835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Chris@350 3836 as_fn_arith $ac_count + 1 && ac_count=$as_val
Chris@350 3837 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Chris@350 3838 # Best one so far, save it but keep looking for a better one
Chris@350 3839 ac_cv_path_EGREP="$ac_path_EGREP"
Chris@350 3840 ac_path_EGREP_max=$ac_count
Chris@350 3841 fi
Chris@350 3842 # 10*(2^10) chars as input seems more than enough
Chris@350 3843 test $ac_count -gt 10 && break
Chris@350 3844 done
Chris@350 3845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Chris@350 3846 esac
Chris@350 3847
Chris@350 3848 $ac_path_EGREP_found && break 3
Chris@350 3849 done
Chris@350 3850 done
Chris@350 3851 done
Chris@350 3852 IFS=$as_save_IFS
Chris@350 3853 if test -z "$ac_cv_path_EGREP"; then
Chris@594 3854 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Chris@350 3855 fi
Chris@350 3856 else
Chris@350 3857 ac_cv_path_EGREP=$EGREP
Chris@350 3858 fi
Chris@350 3859
Chris@350 3860 fi
Chris@350 3861 fi
Chris@350 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Chris@350 3863 $as_echo "$ac_cv_path_EGREP" >&6; }
Chris@350 3864 EGREP="$ac_cv_path_EGREP"
Chris@350 3865
Chris@350 3866
Chris@350 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Chris@350 3868 $as_echo_n "checking for ANSI C header files... " >&6; }
Chris@594 3869 if ${ac_cv_header_stdc+:} false; then :
Chris@350 3870 $as_echo_n "(cached) " >&6
Chris@350 3871 else
Chris@350 3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 3873 /* end confdefs.h. */
Chris@350 3874 #include <stdlib.h>
Chris@350 3875 #include <stdarg.h>
Chris@350 3876 #include <string.h>
Chris@350 3877 #include <float.h>
Chris@350 3878
Chris@350 3879 int
Chris@350 3880 main ()
Chris@350 3881 {
Chris@350 3882
Chris@350 3883 ;
Chris@350 3884 return 0;
Chris@350 3885 }
Chris@350 3886 _ACEOF
Chris@350 3887 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@350 3888 ac_cv_header_stdc=yes
Chris@350 3889 else
Chris@350 3890 ac_cv_header_stdc=no
Chris@350 3891 fi
Chris@350 3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@350 3893
Chris@350 3894 if test $ac_cv_header_stdc = yes; then
Chris@350 3895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Chris@350 3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 3897 /* end confdefs.h. */
Chris@350 3898 #include <string.h>
Chris@350 3899
Chris@350 3900 _ACEOF
Chris@350 3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@350 3902 $EGREP "memchr" >/dev/null 2>&1; then :
Chris@350 3903
Chris@350 3904 else
Chris@350 3905 ac_cv_header_stdc=no
Chris@350 3906 fi
Chris@350 3907 rm -f conftest*
Chris@350 3908
Chris@350 3909 fi
Chris@350 3910
Chris@350 3911 if test $ac_cv_header_stdc = yes; then
Chris@350 3912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Chris@350 3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 3914 /* end confdefs.h. */
Chris@350 3915 #include <stdlib.h>
Chris@350 3916
Chris@350 3917 _ACEOF
Chris@350 3918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Chris@350 3919 $EGREP "free" >/dev/null 2>&1; then :
Chris@350 3920
Chris@350 3921 else
Chris@350 3922 ac_cv_header_stdc=no
Chris@350 3923 fi
Chris@350 3924 rm -f conftest*
Chris@350 3925
Chris@350 3926 fi
Chris@350 3927
Chris@350 3928 if test $ac_cv_header_stdc = yes; then
Chris@350 3929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Chris@350 3930 if test "$cross_compiling" = yes; then :
Chris@350 3931 :
Chris@350 3932 else
Chris@350 3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 3934 /* end confdefs.h. */
Chris@350 3935 #include <ctype.h>
Chris@350 3936 #include <stdlib.h>
Chris@350 3937 #if ((' ' & 0x0FF) == 0x020)
Chris@350 3938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Chris@350 3939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Chris@350 3940 #else
Chris@350 3941 # define ISLOWER(c) \
Chris@350 3942 (('a' <= (c) && (c) <= 'i') \
Chris@350 3943 || ('j' <= (c) && (c) <= 'r') \
Chris@350 3944 || ('s' <= (c) && (c) <= 'z'))
Chris@350 3945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
Chris@350 3946 #endif
Chris@350 3947
Chris@350 3948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Chris@350 3949 int
Chris@350 3950 main ()
Chris@350 3951 {
Chris@350 3952 int i;
Chris@350 3953 for (i = 0; i < 256; i++)
Chris@350 3954 if (XOR (islower (i), ISLOWER (i))
Chris@350 3955 || toupper (i) != TOUPPER (i))
Chris@350 3956 return 2;
Chris@350 3957 return 0;
Chris@350 3958 }
Chris@350 3959 _ACEOF
Chris@350 3960 if ac_fn_cxx_try_run "$LINENO"; then :
Chris@350 3961
Chris@350 3962 else
Chris@350 3963 ac_cv_header_stdc=no
Chris@350 3964 fi
Chris@350 3965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Chris@350 3966 conftest.$ac_objext conftest.beam conftest.$ac_ext
Chris@350 3967 fi
Chris@350 3968
Chris@350 3969 fi
Chris@350 3970 fi
Chris@350 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Chris@350 3972 $as_echo "$ac_cv_header_stdc" >&6; }
Chris@350 3973 if test $ac_cv_header_stdc = yes; then
Chris@350 3974
Chris@350 3975 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
Chris@350 3976
Chris@350 3977 fi
Chris@350 3978
Chris@350 3979
Chris@350 3980 # These are the flags Autoconf guesses for us; we use them later if
Chris@350 3981 # the user has set none and we are not using GCC (so lack our own
Chris@350 3982 # preferred flags)
Chris@350 3983 AUTOCONF_CXXFLAGS="$CXXFLAGS"
Chris@350 3984
Chris@350 3985
Chris@350 3986
Chris@594 3987
Chris@594 3988
Chris@594 3989
Chris@594 3990
Chris@594 3991
Chris@350 3992 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Chris@350 3993 if test -n "$ac_tool_prefix"; then
Chris@350 3994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
Chris@350 3995 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Chris@350 3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 3997 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 3998 if ${ac_cv_path_PKG_CONFIG+:} false; then :
Chris@350 3999 $as_echo_n "(cached) " >&6
Chris@350 4000 else
Chris@350 4001 case $PKG_CONFIG in
Chris@350 4002 [\\/]* | ?:[\\/]*)
Chris@350 4003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
Chris@350 4004 ;;
Chris@350 4005 *)
Chris@350 4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 4007 for as_dir in $PATH
Chris@350 4008 do
Chris@350 4009 IFS=$as_save_IFS
Chris@350 4010 test -z "$as_dir" && as_dir=.
Chris@350 4011 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 4012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@350 4013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Chris@350 4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 4015 break 2
Chris@350 4016 fi
Chris@350 4017 done
Chris@350 4018 done
Chris@350 4019 IFS=$as_save_IFS
Chris@350 4020
Chris@350 4021 ;;
Chris@350 4022 esac
Chris@350 4023 fi
Chris@350 4024 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
Chris@350 4025 if test -n "$PKG_CONFIG"; then
Chris@350 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Chris@350 4027 $as_echo "$PKG_CONFIG" >&6; }
Chris@350 4028 else
Chris@350 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 4030 $as_echo "no" >&6; }
Chris@350 4031 fi
Chris@350 4032
Chris@350 4033
Chris@350 4034 fi
Chris@350 4035 if test -z "$ac_cv_path_PKG_CONFIG"; then
Chris@350 4036 ac_pt_PKG_CONFIG=$PKG_CONFIG
Chris@350 4037 # Extract the first word of "pkg-config", so it can be a program name with args.
Chris@350 4038 set dummy pkg-config; ac_word=$2
Chris@350 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 4040 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 4041 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Chris@350 4042 $as_echo_n "(cached) " >&6
Chris@350 4043 else
Chris@350 4044 case $ac_pt_PKG_CONFIG in
Chris@350 4045 [\\/]* | ?:[\\/]*)
Chris@350 4046 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
Chris@350 4047 ;;
Chris@350 4048 *)
Chris@350 4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 4050 for as_dir in $PATH
Chris@350 4051 do
Chris@350 4052 IFS=$as_save_IFS
Chris@350 4053 test -z "$as_dir" && as_dir=.
Chris@350 4054 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 4055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@350 4056 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Chris@350 4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 4058 break 2
Chris@350 4059 fi
Chris@350 4060 done
Chris@350 4061 done
Chris@350 4062 IFS=$as_save_IFS
Chris@350 4063
Chris@350 4064 ;;
Chris@350 4065 esac
Chris@350 4066 fi
Chris@350 4067 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
Chris@350 4068 if test -n "$ac_pt_PKG_CONFIG"; then
Chris@350 4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Chris@350 4070 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
Chris@350 4071 else
Chris@350 4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 4073 $as_echo "no" >&6; }
Chris@350 4074 fi
Chris@350 4075
Chris@350 4076 if test "x$ac_pt_PKG_CONFIG" = x; then
Chris@350 4077 PKG_CONFIG=""
Chris@350 4078 else
Chris@350 4079 case $cross_compiling:$ac_tool_warned in
Chris@350 4080 yes:)
Chris@350 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Chris@350 4082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Chris@350 4083 ac_tool_warned=yes ;;
Chris@350 4084 esac
Chris@350 4085 PKG_CONFIG=$ac_pt_PKG_CONFIG
Chris@350 4086 fi
Chris@350 4087 else
Chris@350 4088 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
Chris@350 4089 fi
Chris@350 4090
Chris@350 4091 fi
Chris@350 4092 if test -n "$PKG_CONFIG"; then
Chris@350 4093 _pkg_min_version=0.9.0
Chris@350 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Chris@350 4095 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Chris@350 4096 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Chris@350 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 4098 $as_echo "yes" >&6; }
Chris@350 4099 else
Chris@350 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 4101 $as_echo "no" >&6; }
Chris@350 4102 PKG_CONFIG=""
Chris@350 4103 fi
Chris@354 4104 fi
Chris@354 4105
Chris@354 4106
Chris@354 4107
Chris@354 4108
Chris@354 4109 if test x$QMAKE = x ; then
Chris@545 4110 # Extract the first word of "qmake-qt5", so it can be a program name with args.
Chris@545 4111 set dummy qmake-qt5; ac_word=$2
Chris@350 4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 4113 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 4114 if ${ac_cv_prog_QMAKE+:} false; then :
Chris@350 4115 $as_echo_n "(cached) " >&6
Chris@350 4116 else
Chris@350 4117 if test -n "$QMAKE"; then
Chris@350 4118 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@350 4119 else
Chris@350 4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 4121 for as_dir in $QTDIR/bin/
Chris@350 4122 do
Chris@350 4123 IFS=$as_save_IFS
Chris@350 4124 test -z "$as_dir" && as_dir=.
Chris@350 4125 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 4126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@545 4127 ac_cv_prog_QMAKE="$QTDIR/bin/qmake-qt5"
Chris@350 4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 4129 break 2
Chris@350 4130 fi
Chris@350 4131 done
Chris@350 4132 done
Chris@350 4133 IFS=$as_save_IFS
Chris@350 4134
Chris@350 4135 fi
Chris@350 4136 fi
Chris@350 4137 QMAKE=$ac_cv_prog_QMAKE
Chris@350 4138 if test -n "$QMAKE"; then
Chris@350 4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
Chris@350 4140 $as_echo "$QMAKE" >&6; }
Chris@350 4141 else
Chris@350 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 4143 $as_echo "no" >&6; }
Chris@350 4144 fi
Chris@350 4145
Chris@350 4146
Chris@354 4147 fi
Chris@350 4148 if test x$QMAKE = x ; then
Chris@1119 4149 # Extract the first word of "qt5-qmake", so it can be a program name with args.
Chris@1119 4150 set dummy qt5-qmake; ac_word=$2
Chris@1119 4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1119 4152 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1119 4153 if ${ac_cv_prog_QMAKE+:} false; then :
Chris@1119 4154 $as_echo_n "(cached) " >&6
Chris@1119 4155 else
Chris@1119 4156 if test -n "$QMAKE"; then
Chris@1119 4157 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@1119 4158 else
Chris@1119 4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1119 4160 for as_dir in $QTDIR/bin/
Chris@1119 4161 do
Chris@1119 4162 IFS=$as_save_IFS
Chris@1119 4163 test -z "$as_dir" && as_dir=.
Chris@1119 4164 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1119 4165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@1119 4166 ac_cv_prog_QMAKE="$QTDIR/bin/qt5-qmake"
Chris@1119 4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1119 4168 break 2
Chris@1119 4169 fi
Chris@1119 4170 done
Chris@1119 4171 done
Chris@1119 4172 IFS=$as_save_IFS
Chris@1119 4173
Chris@1119 4174 fi
Chris@1119 4175 fi
Chris@1119 4176 QMAKE=$ac_cv_prog_QMAKE
Chris@1119 4177 if test -n "$QMAKE"; then
Chris@1119 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
Chris@1119 4179 $as_echo "$QMAKE" >&6; }
Chris@1119 4180 else
Chris@1119 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1119 4182 $as_echo "no" >&6; }
Chris@1119 4183 fi
Chris@1119 4184
Chris@1119 4185
Chris@1119 4186 fi
Chris@1119 4187 if test x$QMAKE = x ; then
Chris@354 4188 # Extract the first word of "qmake", so it can be a program name with args.
Chris@350 4189 set dummy qmake; ac_word=$2
Chris@350 4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 4191 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 4192 if ${ac_cv_prog_QMAKE+:} false; then :
Chris@350 4193 $as_echo_n "(cached) " >&6
Chris@350 4194 else
Chris@350 4195 if test -n "$QMAKE"; then
Chris@350 4196 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@350 4197 else
Chris@350 4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 4199 for as_dir in $QTDIR/bin/
Chris@350 4200 do
Chris@350 4201 IFS=$as_save_IFS
Chris@350 4202 test -z "$as_dir" && as_dir=.
Chris@350 4203 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 4204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@350 4205 ac_cv_prog_QMAKE="$QTDIR/bin/qmake"
Chris@350 4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 4207 break 2
Chris@350 4208 fi
Chris@350 4209 done
Chris@350 4210 done
Chris@350 4211 IFS=$as_save_IFS
Chris@350 4212
Chris@350 4213 fi
Chris@350 4214 fi
Chris@350 4215 QMAKE=$ac_cv_prog_QMAKE
Chris@350 4216 if test -n "$QMAKE"; then
Chris@350 4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
Chris@350 4218 $as_echo "$QMAKE" >&6; }
Chris@350 4219 else
Chris@350 4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 4221 $as_echo "no" >&6; }
Chris@350 4222 fi
Chris@350 4223
Chris@350 4224
Chris@354 4225 fi
Chris@354 4226 if test x$QMAKE = x ; then
Chris@354 4227 # Extract the first word of "qmake.exe", so it can be a program name with args.
Chris@350 4228 set dummy qmake.exe; ac_word=$2
Chris@350 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@350 4230 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 4231 if ${ac_cv_prog_QMAKE+:} false; then :
Chris@350 4232 $as_echo_n "(cached) " >&6
Chris@350 4233 else
Chris@350 4234 if test -n "$QMAKE"; then
Chris@350 4235 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@350 4236 else
Chris@350 4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 4238 for as_dir in $QTDIR/bin/
Chris@350 4239 do
Chris@350 4240 IFS=$as_save_IFS
Chris@350 4241 test -z "$as_dir" && as_dir=.
Chris@350 4242 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 4243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@350 4244 ac_cv_prog_QMAKE="$QTDIR/bin/qmake.exe"
Chris@350 4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@350 4246 break 2
Chris@350 4247 fi
Chris@350 4248 done
Chris@350 4249 done
Chris@350 4250 IFS=$as_save_IFS
Chris@350 4251
Chris@350 4252 fi
Chris@350 4253 fi
Chris@350 4254 QMAKE=$ac_cv_prog_QMAKE
Chris@350 4255 if test -n "$QMAKE"; then
Chris@350 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
Chris@350 4257 $as_echo "$QMAKE" >&6; }
Chris@350 4258 else
Chris@350 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@350 4260 $as_echo "no" >&6; }
Chris@350 4261 fi
Chris@350 4262
Chris@350 4263
Chris@354 4264 fi
Chris@354 4265 if test x$QMAKE = x ; then
Chris@545 4266 # Extract the first word of "qmake-qt5", so it can be a program name with args.
Chris@545 4267 set dummy qmake-qt5; ac_word=$2
Chris@354 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@354 4269 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 4270 if ${ac_cv_prog_QMAKE+:} false; then :
Chris@354 4271 $as_echo_n "(cached) " >&6
Chris@354 4272 else
Chris@354 4273 if test -n "$QMAKE"; then
Chris@354 4274 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@354 4275 else
Chris@354 4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@354 4277 for as_dir in $PATH
Chris@354 4278 do
Chris@354 4279 IFS=$as_save_IFS
Chris@354 4280 test -z "$as_dir" && as_dir=.
Chris@354 4281 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 4282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@545 4283 ac_cv_prog_QMAKE="qmake-qt5"
Chris@354 4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@354 4285 break 2
Chris@354 4286 fi
Chris@354 4287 done
Chris@354 4288 done
Chris@354 4289 IFS=$as_save_IFS
Chris@354 4290
Chris@354 4291 fi
Chris@354 4292 fi
Chris@354 4293 QMAKE=$ac_cv_prog_QMAKE
Chris@354 4294 if test -n "$QMAKE"; then
Chris@354 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
Chris@354 4296 $as_echo "$QMAKE" >&6; }
Chris@354 4297 else
Chris@354 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@354 4299 $as_echo "no" >&6; }
Chris@354 4300 fi
Chris@354 4301
Chris@354 4302
Chris@354 4303 fi
Chris@354 4304 if test x$QMAKE = x ; then
Chris@1119 4305 # Extract the first word of "qt5-qmake", so it can be a program name with args.
Chris@1119 4306 set dummy qt5-qmake; ac_word=$2
Chris@1119 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@1119 4308 $as_echo_n "checking for $ac_word... " >&6; }
Chris@1119 4309 if ${ac_cv_prog_QMAKE+:} false; then :
Chris@1119 4310 $as_echo_n "(cached) " >&6
Chris@1119 4311 else
Chris@1119 4312 if test -n "$QMAKE"; then
Chris@1119 4313 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@1119 4314 else
Chris@1119 4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@1119 4316 for as_dir in $PATH
Chris@1119 4317 do
Chris@1119 4318 IFS=$as_save_IFS
Chris@1119 4319 test -z "$as_dir" && as_dir=.
Chris@1119 4320 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@1119 4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@1119 4322 ac_cv_prog_QMAKE="qt5-qmake"
Chris@1119 4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@1119 4324 break 2
Chris@1119 4325 fi
Chris@1119 4326 done
Chris@1119 4327 done
Chris@1119 4328 IFS=$as_save_IFS
Chris@1119 4329
Chris@1119 4330 fi
Chris@1119 4331 fi
Chris@1119 4332 QMAKE=$ac_cv_prog_QMAKE
Chris@1119 4333 if test -n "$QMAKE"; then
Chris@1119 4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
Chris@1119 4335 $as_echo "$QMAKE" >&6; }
Chris@1119 4336 else
Chris@1119 4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@1119 4338 $as_echo "no" >&6; }
Chris@1119 4339 fi
Chris@1119 4340
Chris@1119 4341
Chris@1119 4342 fi
Chris@1119 4343 if test x$QMAKE = x ; then
Chris@354 4344 # Extract the first word of "qmake", so it can be a program name with args.
Chris@354 4345 set dummy qmake; ac_word=$2
Chris@354 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Chris@354 4347 $as_echo_n "checking for $ac_word... " >&6; }
Chris@594 4348 if ${ac_cv_prog_QMAKE+:} false; then :
Chris@354 4349 $as_echo_n "(cached) " >&6
Chris@354 4350 else
Chris@354 4351 if test -n "$QMAKE"; then
Chris@354 4352 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
Chris@354 4353 else
Chris@354 4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@354 4355 for as_dir in $PATH
Chris@354 4356 do
Chris@354 4357 IFS=$as_save_IFS
Chris@354 4358 test -z "$as_dir" && as_dir=.
Chris@354 4359 for ac_exec_ext in '' $ac_executable_extensions; do
Chris@594 4360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Chris@354 4361 ac_cv_prog_QMAKE="qmake"
Chris@354 4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Chris@354 4363 break 2
Chris@354 4364 fi
Chris@354 4365 done
Chris@354 4366 done
Chris@354 4367 IFS=$as_save_IFS
Chris@354 4368
Chris@354 4369 fi
Chris@354 4370 fi
Chris@354 4371 QMAKE=$ac_cv_prog_QMAKE
Chris@354 4372 if test -n "$QMAKE"; then
Chris@354 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
Chris@354 4374 $as_echo "$QMAKE" >&6; }
Chris@354 4375 else
Chris@354 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@354 4377 $as_echo "no" >&6; }
Chris@354 4378 fi
Chris@354 4379
Chris@354 4380
Chris@354 4381 fi
Chris@354 4382 if test x$QMAKE = x ; then
Chris@594 4383 as_fn_error $? "
Chris@545 4384 Failed to find the required qmake-qt5 or qmake program. Please
Chris@545 4385 ensure you have the necessary Qt5 development files installed, and
Chris@545 4386 if necessary set QTDIR to the location of your Qt5 installation.
Chris@350 4387 " "$LINENO" 5
Chris@350 4388 fi
Chris@350 4389
Chris@350 4390 # Suitable versions of qmake should print out something like:
Chris@350 4391 #
Chris@350 4392 # QMake version 2.01a
Chris@350 4393 # Using Qt version 4.6.3 in /usr/lib
Chris@350 4394 #
Chris@350 4395 # This may be translated, so we check only for the numbers (2.x and 4.x
Chris@350 4396 # in that order).
Chris@350 4397 #
Chris@350 4398 QMAKE_VERSION_OUTPUT=`$QMAKE -v`
Chris@350 4399 case "$QMAKE_VERSION_OUTPUT" in
Chris@545 4400 *5.*) ;;
Chris@350 4401 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Chris@350 4402 *** The version of qmake found in \"$QMAKE\" looks like it might be
Chris@545 4403 from the wrong version of Qt (Qt5 is required). Please check
Chris@545 4404 that this is the correct version of qmake for Qt5 builds.
Chris@350 4405 " >&5
Chris@350 4406 $as_echo "$as_me: WARNING:
Chris@350 4407 *** The version of qmake found in \"$QMAKE\" looks like it might be
Chris@545 4408 from the wrong version of Qt (Qt5 is required). Please check
Chris@545 4409 that this is the correct version of qmake for Qt5 builds.
Chris@350 4410 " >&2;}
Chris@350 4411 esac
Chris@350 4412
Chris@359 4413 case "`uname`" in
Chris@360 4414 *Darwin*) QMAKE="$QMAKE -spec macx-g++";;
Chris@359 4415 esac
Chris@359 4416
Chris@350 4417
Chris@350 4418
Chris@350 4419 SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING"
Chris@1483 4420 SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING -DNO_HIT_COUNTS"
Chris@350 4421
Chris@350 4422 # Now we have: USER_CXXFLAGS contains any flags the user set
Chris@350 4423 # explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought
Chris@350 4424 # we should use. If we have GCC, we override the latter but then
Chris@350 4425 # allow ourselves to be overridden (later) by the former
Chris@350 4426
Chris@350 4427 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS"
Chris@2104 4428 OPTFLAGS_DEBUG="-O2"
Chris@2104 4429 LDFLAGS_DEBUG=""
Chris@350 4430 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS"
Chris@2104 4431 OPTFLAGS_RELEASE="-O2"
Chris@2104 4432 LDFLAGS_RELEASE=""
Chris@1976 4433 CXXSTANDARD=c++14
Chris@350 4434
Chris@350 4435 if test "x$GCC" = "xyes"; then
Chris@1969 4436 CXXFLAGS_ANY="-fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe"
Chris@2104 4437 CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -Werror"
Chris@2104 4438 OPTFLAGS_DEBUG="-O2"
Chris@2104 4439 CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0"
Chris@2154 4440 OPTFLAGS_RELEASE="-O3 -ffast-math"
Chris@1976 4441 LIBS_DEBUG="$LIBS"
Chris@1976 4442 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__--std=$CXXSTANDARD" | $as_tr_sh`
Chris@1976 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts --std=$CXXSTANDARD" >&5
Chris@1976 4444 $as_echo_n "checking whether C++ compiler accepts --std=$CXXSTANDARD... " >&6; }
Chris@1976 4445 if eval \${$as_CACHEVAR+:} false; then :
Chris@1976 4446 $as_echo_n "(cached) " >&6
Chris@1976 4447 else
Chris@1976 4448
Chris@1976 4449 ax_check_save_flags=$CXXFLAGS
Chris@1976 4450 CXXFLAGS="$CXXFLAGS --std=$CXXSTANDARD"
Chris@1976 4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@1976 4452 /* end confdefs.h. */
Chris@1976 4453
Chris@1976 4454 int
Chris@1976 4455 main ()
Chris@1976 4456 {
Chris@1976 4457
Chris@1976 4458 ;
Chris@1976 4459 return 0;
Chris@1976 4460 }
Chris@1976 4461 _ACEOF
Chris@1976 4462 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@1976 4463 eval "$as_CACHEVAR=yes"
Chris@1976 4464 else
Chris@1976 4465 eval "$as_CACHEVAR=no"
Chris@1976 4466 fi
Chris@1976 4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1976 4468 CXXFLAGS=$ax_check_save_flags
Chris@1976 4469 fi
Chris@1976 4470 eval ac_res=\$$as_CACHEVAR
Chris@1976 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@1976 4472 $as_echo "$ac_res" >&6; }
Chris@1976 4473 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
Chris@1976 4474 :
Chris@1976 4475 else
Chris@1976 4476 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not appear to support $CXXSTANDARD, falling back to c++11" >&5
Chris@1976 4477 $as_echo "$as_me: Compiler does not appear to support $CXXSTANDARD, falling back to c++11" >&6;}
Chris@1976 4478 CXXSTANDARD=c++11
Chris@1976 4479 fi
Chris@1976 4480
Chris@350 4481 fi
Chris@350 4482
Chris@2104 4483 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE $OPTFLAGS_RELEASE"
Chris@2104 4484 LDFLAGS_BUILD="$LDFLAGS_RELEASE $OPTFLAGS_RELEASE"
Chris@350 4485 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE"
Chris@350 4486
Chris@361 4487 QMAKE_CONFIG="release"
Chris@361 4488
Chris@350 4489 # Check whether --enable-debug was given.
Chris@350 4490 if test "${enable_debug+set}" = set; then :
Chris@350 4491 enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5
Chris@350 4492 $as_echo "$as_me: enabling debug build" >&6;}
Chris@361 4493 QMAKE_CONFIG="debug"
Chris@2104 4494 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG $OPTFLAGS_DEBUG"
Chris@2104 4495 LDFLAGS_BUILD="$LDFLAGS_DEBUG"
Chris@1789 4496 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"
Chris@1754 4497 LIBS="$LIBS_DEBUG"
Chris@350 4498 fi
Chris@350 4499
Chris@350 4500
Chris@350 4501 if test x"$USER_CXXFLAGS" != x; then
Chris@350 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5
Chris@350 4503 $as_echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;}
Chris@350 4504 { $as_echo "$as_me:${as_lineno-$LINENO}: Overriding default compiler flags with the above user setting." >&5
Chris@350 4505 $as_echo "$as_me: Overriding default compiler flags with the above user setting." >&6;}
Chris@350 4506 CXXFLAGS_BUILD="$USER_CXXFLAGS"
Chris@2104 4507 LDFLAGS_BUILD=""
Chris@350 4508 fi
Chris@350 4509
Chris@350 4510 CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD"
Chris@2515 4511
Chris@2515 4512 if test x"LDFLAGS" = x; then
Chris@2515 4513 LDFLAGS="$LDFLAGS_BUILD"
Chris@2515 4514 fi
Chris@350 4515
Chris@350 4516 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
Chris@350 4517 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Chris@350 4518 inttypes.h stdint.h unistd.h
Chris@350 4519 do :
Chris@350 4520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Chris@350 4521 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
Chris@350 4522 "
Chris@594 4523 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@350 4524 cat >>confdefs.h <<_ACEOF
Chris@350 4525 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris@350 4526 _ACEOF
Chris@350 4527
Chris@350 4528 fi
Chris@350 4529
Chris@350 4530 done
Chris@350 4531
Chris@350 4532
Chris@350 4533
Chris@350 4534 SV_MODULE_MODULE=bz2
Chris@350 4535 SV_MODULE_VERSION_TEST=""
Chris@350 4536 SV_MODULE_HEADER=bzlib.h
Chris@350 4537 SV_MODULE_LIB=bz2
Chris@350 4538 SV_MODULE_FUNC=BZ2_bzReadOpen
Chris@350 4539 SV_MODULE_HAVE=HAVE_$(echo bz2 | tr 'a-z' 'A-Z')
Chris@350 4540 SV_MODULE_FAILED=1
Chris@405 4541 if test -n "$bz2_LIBS" ; then
Chris@405 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 4543 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 4544 CXXFLAGS="$CXXFLAGS $bz2_CFLAGS"
Chris@405 4545 LIBS="$LIBS $bz2_LIBS"
Chris@405 4546 SV_MODULE_FAILED=""
Chris@405 4547 fi
Chris@350 4548 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 4549 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 4550 fi
Chris@405 4551 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 4552
Chris@350 4553 pkg_failed=no
Chris@1969 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bz2" >&5
Chris@1969 4555 $as_echo_n "checking for bz2... " >&6; }
Chris@350 4556
Chris@594 4557 if test -n "$bz2_CFLAGS"; then
Chris@594 4558 pkg_cv_bz2_CFLAGS="$bz2_CFLAGS"
Chris@594 4559 elif test -n "$PKG_CONFIG"; then
Chris@594 4560 if test -n "$PKG_CONFIG" && \
Chris@350 4561 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 4562 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 4563 ac_status=$?
Chris@350 4564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 4565 test $ac_status = 0; }; then
Chris@350 4566 pkg_cv_bz2_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 4567 test "x$?" != "x0" && pkg_failed=yes
Chris@350 4568 else
Chris@350 4569 pkg_failed=yes
Chris@350 4570 fi
Chris@594 4571 else
Chris@594 4572 pkg_failed=untried
Chris@594 4573 fi
Chris@594 4574 if test -n "$bz2_LIBS"; then
Chris@594 4575 pkg_cv_bz2_LIBS="$bz2_LIBS"
Chris@594 4576 elif test -n "$PKG_CONFIG"; then
Chris@594 4577 if test -n "$PKG_CONFIG" && \
Chris@350 4578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 4579 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 4580 ac_status=$?
Chris@350 4581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 4582 test $ac_status = 0; }; then
Chris@350 4583 pkg_cv_bz2_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 4584 test "x$?" != "x0" && pkg_failed=yes
Chris@350 4585 else
Chris@350 4586 pkg_failed=yes
Chris@350 4587 fi
Chris@594 4588 else
Chris@594 4589 pkg_failed=untried
Chris@350 4590 fi
Chris@350 4591
Chris@350 4592
Chris@350 4593
Chris@350 4594 if test $pkg_failed = yes; then
Chris@1969 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 4596 $as_echo "no" >&6; }
Chris@350 4597
Chris@350 4598 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 4599 _pkg_short_errors_supported=yes
Chris@350 4600 else
Chris@350 4601 _pkg_short_errors_supported=no
Chris@350 4602 fi
Chris@350 4603 if test $_pkg_short_errors_supported = yes; then
Chris@594 4604 bz2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 4605 else
Chris@594 4606 bz2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 4607 fi
Chris@350 4608 # Put the nasty error message in config.log where it belongs
Chris@350 4609 echo "$bz2_PKG_ERRORS" >&5
Chris@350 4610
Chris@594 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 4612 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 4613 elif test $pkg_failed = untried; then
Chris@1969 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 4615 $as_echo "no" >&6; }
Chris@350 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 4617 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 4618 else
Chris@350 4619 bz2_CFLAGS=$pkg_cv_bz2_CFLAGS
Chris@350 4620 bz2_LIBS=$pkg_cv_bz2_LIBS
Chris@350 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 4622 $as_echo "yes" >&6; }
Chris@350 4623 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $bz2_CFLAGS";LIBS="$LIBS $bz2_LIBS";SV_MODULE_FAILED=""
Chris@350 4624 fi
Chris@350 4625 fi
Chris@350 4626 if test -n "$SV_MODULE_FAILED"; then
Chris@350 4627 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 4628 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 4629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@350 4630 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 4631 else
Chris@594 4632 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 4633 fi
Chris@350 4634
Chris@350 4635
Chris@350 4636 if test -n "$SV_MODULE_LIB"; then
Chris@350 4637 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 4639 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 4640 if eval \${$as_ac_Lib+:} false; then :
Chris@350 4641 $as_echo_n "(cached) " >&6
Chris@350 4642 else
Chris@350 4643 ac_check_lib_save_LIBS=$LIBS
Chris@350 4644 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 4646 /* end confdefs.h. */
Chris@350 4647
Chris@350 4648 /* Override any GCC internal prototype to avoid an error.
Chris@350 4649 Use char because int might match the return type of a GCC
Chris@350 4650 builtin and then its argument prototype would still apply. */
Chris@350 4651 #ifdef __cplusplus
Chris@350 4652 extern "C"
Chris@350 4653 #endif
Chris@350 4654 char $SV_MODULE_FUNC ();
Chris@350 4655 int
Chris@350 4656 main ()
Chris@350 4657 {
Chris@350 4658 return $SV_MODULE_FUNC ();
Chris@350 4659 ;
Chris@350 4660 return 0;
Chris@350 4661 }
Chris@350 4662 _ACEOF
Chris@350 4663 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 4664 eval "$as_ac_Lib=yes"
Chris@350 4665 else
Chris@350 4666 eval "$as_ac_Lib=no"
Chris@350 4667 fi
Chris@350 4668 rm -f core conftest.err conftest.$ac_objext \
Chris@350 4669 conftest$ac_exeext conftest.$ac_ext
Chris@350 4670 LIBS=$ac_check_lib_save_LIBS
Chris@350 4671 fi
Chris@350 4672 eval ac_res=\$$as_ac_Lib
Chris@350 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 4674 $as_echo "$ac_res" >&6; }
Chris@594 4675 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 4676 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 4677 else
Chris@594 4678 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 4679 fi
Chris@350 4680
Chris@350 4681 fi
Chris@350 4682 fi
Chris@350 4683
Chris@350 4684
Chris@350 4685 SV_MODULE_MODULE=fftw3
Chris@350 4686 SV_MODULE_VERSION_TEST="fftw3 >= 3.0.0"
Chris@350 4687 SV_MODULE_HEADER=fftw3.h
Chris@350 4688 SV_MODULE_LIB=fftw3
Chris@350 4689 SV_MODULE_FUNC=fftw_execute
Chris@350 4690 SV_MODULE_HAVE=HAVE_$(echo fftw3 | tr 'a-z' 'A-Z')
Chris@350 4691 SV_MODULE_FAILED=1
Chris@405 4692 if test -n "$fftw3_LIBS" ; then
Chris@405 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 4694 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 4695 CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS"
Chris@405 4696 LIBS="$LIBS $fftw3_LIBS"
Chris@405 4697 SV_MODULE_FAILED=""
Chris@405 4698 fi
Chris@350 4699 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 4700 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 4701 fi
Chris@405 4702 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 4703
Chris@350 4704 pkg_failed=no
Chris@1969 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
Chris@1969 4706 $as_echo_n "checking for fftw3... " >&6; }
Chris@350 4707
Chris@594 4708 if test -n "$fftw3_CFLAGS"; then
Chris@594 4709 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
Chris@594 4710 elif test -n "$PKG_CONFIG"; then
Chris@594 4711 if test -n "$PKG_CONFIG" && \
Chris@350 4712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 4713 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 4714 ac_status=$?
Chris@350 4715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 4716 test $ac_status = 0; }; then
Chris@350 4717 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 4718 test "x$?" != "x0" && pkg_failed=yes
Chris@350 4719 else
Chris@350 4720 pkg_failed=yes
Chris@350 4721 fi
Chris@594 4722 else
Chris@594 4723 pkg_failed=untried
Chris@594 4724 fi
Chris@594 4725 if test -n "$fftw3_LIBS"; then
Chris@594 4726 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
Chris@594 4727 elif test -n "$PKG_CONFIG"; then
Chris@594 4728 if test -n "$PKG_CONFIG" && \
Chris@350 4729 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 4730 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 4731 ac_status=$?
Chris@350 4732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 4733 test $ac_status = 0; }; then
Chris@350 4734 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 4735 test "x$?" != "x0" && pkg_failed=yes
Chris@350 4736 else
Chris@350 4737 pkg_failed=yes
Chris@350 4738 fi
Chris@594 4739 else
Chris@594 4740 pkg_failed=untried
Chris@350 4741 fi
Chris@350 4742
Chris@350 4743
Chris@350 4744
Chris@350 4745 if test $pkg_failed = yes; then
Chris@1969 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 4747 $as_echo "no" >&6; }
Chris@350 4748
Chris@350 4749 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 4750 _pkg_short_errors_supported=yes
Chris@350 4751 else
Chris@350 4752 _pkg_short_errors_supported=no
Chris@350 4753 fi
Chris@350 4754 if test $_pkg_short_errors_supported = yes; then
Chris@594 4755 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 4756 else
Chris@594 4757 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 4758 fi
Chris@350 4759 # Put the nasty error message in config.log where it belongs
Chris@350 4760 echo "$fftw3_PKG_ERRORS" >&5
Chris@350 4761
Chris@594 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 4763 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 4764 elif test $pkg_failed = untried; then
Chris@1969 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 4766 $as_echo "no" >&6; }
Chris@350 4767 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 4768 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 4769 else
Chris@350 4770 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
Chris@350 4771 fftw3_LIBS=$pkg_cv_fftw3_LIBS
Chris@350 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 4773 $as_echo "yes" >&6; }
Chris@350 4774 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS";LIBS="$LIBS $fftw3_LIBS";SV_MODULE_FAILED=""
Chris@350 4775 fi
Chris@350 4776 fi
Chris@350 4777 if test -n "$SV_MODULE_FAILED"; then
Chris@350 4778 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 4779 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 4780 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@350 4781 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 4782 else
Chris@594 4783 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 4784 fi
Chris@350 4785
Chris@350 4786
Chris@350 4787 if test -n "$SV_MODULE_LIB"; then
Chris@350 4788 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 4790 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 4791 if eval \${$as_ac_Lib+:} false; then :
Chris@350 4792 $as_echo_n "(cached) " >&6
Chris@350 4793 else
Chris@350 4794 ac_check_lib_save_LIBS=$LIBS
Chris@350 4795 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 4797 /* end confdefs.h. */
Chris@350 4798
Chris@350 4799 /* Override any GCC internal prototype to avoid an error.
Chris@350 4800 Use char because int might match the return type of a GCC
Chris@350 4801 builtin and then its argument prototype would still apply. */
Chris@350 4802 #ifdef __cplusplus
Chris@350 4803 extern "C"
Chris@350 4804 #endif
Chris@350 4805 char $SV_MODULE_FUNC ();
Chris@350 4806 int
Chris@350 4807 main ()
Chris@350 4808 {
Chris@350 4809 return $SV_MODULE_FUNC ();
Chris@350 4810 ;
Chris@350 4811 return 0;
Chris@350 4812 }
Chris@350 4813 _ACEOF
Chris@350 4814 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 4815 eval "$as_ac_Lib=yes"
Chris@350 4816 else
Chris@350 4817 eval "$as_ac_Lib=no"
Chris@350 4818 fi
Chris@350 4819 rm -f core conftest.err conftest.$ac_objext \
Chris@350 4820 conftest$ac_exeext conftest.$ac_ext
Chris@350 4821 LIBS=$ac_check_lib_save_LIBS
Chris@350 4822 fi
Chris@350 4823 eval ac_res=\$$as_ac_Lib
Chris@350 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 4825 $as_echo "$ac_res" >&6; }
Chris@594 4826 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 4827 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 4828 else
Chris@594 4829 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 4830 fi
Chris@350 4831
Chris@350 4832 fi
Chris@350 4833 fi
Chris@350 4834
Chris@350 4835
Chris@350 4836 SV_MODULE_MODULE=fftw3f
Chris@350 4837 SV_MODULE_VERSION_TEST="fftw3f >= 3.0.0"
Chris@350 4838 SV_MODULE_HEADER=fftw3.h
Chris@350 4839 SV_MODULE_LIB=fftw3f
Chris@350 4840 SV_MODULE_FUNC=fftwf_execute
Chris@350 4841 SV_MODULE_HAVE=HAVE_$(echo fftw3f | tr 'a-z' 'A-Z')
Chris@350 4842 SV_MODULE_FAILED=1
Chris@405 4843 if test -n "$fftw3f_LIBS" ; then
Chris@405 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 4845 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 4846 CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS"
Chris@405 4847 LIBS="$LIBS $fftw3f_LIBS"
Chris@405 4848 SV_MODULE_FAILED=""
Chris@405 4849 fi
Chris@350 4850 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 4851 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 4852 fi
Chris@405 4853 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 4854
Chris@350 4855 pkg_failed=no
Chris@1969 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3f" >&5
Chris@1969 4857 $as_echo_n "checking for fftw3f... " >&6; }
Chris@350 4858
Chris@594 4859 if test -n "$fftw3f_CFLAGS"; then
Chris@594 4860 pkg_cv_fftw3f_CFLAGS="$fftw3f_CFLAGS"
Chris@594 4861 elif test -n "$PKG_CONFIG"; then
Chris@594 4862 if test -n "$PKG_CONFIG" && \
Chris@350 4863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 4864 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 4865 ac_status=$?
Chris@350 4866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 4867 test $ac_status = 0; }; then
Chris@350 4868 pkg_cv_fftw3f_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 4869 test "x$?" != "x0" && pkg_failed=yes
Chris@350 4870 else
Chris@350 4871 pkg_failed=yes
Chris@350 4872 fi
Chris@594 4873 else
Chris@594 4874 pkg_failed=untried
Chris@594 4875 fi
Chris@594 4876 if test -n "$fftw3f_LIBS"; then
Chris@594 4877 pkg_cv_fftw3f_LIBS="$fftw3f_LIBS"
Chris@594 4878 elif test -n "$PKG_CONFIG"; then
Chris@594 4879 if test -n "$PKG_CONFIG" && \
Chris@350 4880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 4881 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 4882 ac_status=$?
Chris@350 4883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 4884 test $ac_status = 0; }; then
Chris@350 4885 pkg_cv_fftw3f_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 4886 test "x$?" != "x0" && pkg_failed=yes
Chris@350 4887 else
Chris@350 4888 pkg_failed=yes
Chris@350 4889 fi
Chris@594 4890 else
Chris@594 4891 pkg_failed=untried
Chris@350 4892 fi
Chris@350 4893
Chris@350 4894
Chris@350 4895
Chris@350 4896 if test $pkg_failed = yes; then
Chris@1969 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 4898 $as_echo "no" >&6; }
Chris@350 4899
Chris@350 4900 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 4901 _pkg_short_errors_supported=yes
Chris@350 4902 else
Chris@350 4903 _pkg_short_errors_supported=no
Chris@350 4904 fi
Chris@350 4905 if test $_pkg_short_errors_supported = yes; then
Chris@594 4906 fftw3f_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 4907 else
Chris@594 4908 fftw3f_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 4909 fi
Chris@350 4910 # Put the nasty error message in config.log where it belongs
Chris@350 4911 echo "$fftw3f_PKG_ERRORS" >&5
Chris@350 4912
Chris@594 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 4914 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 4915 elif test $pkg_failed = untried; then
Chris@1969 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 4917 $as_echo "no" >&6; }
Chris@350 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 4919 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 4920 else
Chris@350 4921 fftw3f_CFLAGS=$pkg_cv_fftw3f_CFLAGS
Chris@350 4922 fftw3f_LIBS=$pkg_cv_fftw3f_LIBS
Chris@350 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 4924 $as_echo "yes" >&6; }
Chris@350 4925 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS";LIBS="$LIBS $fftw3f_LIBS";SV_MODULE_FAILED=""
Chris@350 4926 fi
Chris@350 4927 fi
Chris@350 4928 if test -n "$SV_MODULE_FAILED"; then
Chris@350 4929 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 4930 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 4931 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@350 4932 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 4933 else
Chris@594 4934 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 4935 fi
Chris@350 4936
Chris@350 4937
Chris@350 4938 if test -n "$SV_MODULE_LIB"; then
Chris@350 4939 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 4941 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 4942 if eval \${$as_ac_Lib+:} false; then :
Chris@350 4943 $as_echo_n "(cached) " >&6
Chris@350 4944 else
Chris@350 4945 ac_check_lib_save_LIBS=$LIBS
Chris@350 4946 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 4948 /* end confdefs.h. */
Chris@350 4949
Chris@350 4950 /* Override any GCC internal prototype to avoid an error.
Chris@350 4951 Use char because int might match the return type of a GCC
Chris@350 4952 builtin and then its argument prototype would still apply. */
Chris@350 4953 #ifdef __cplusplus
Chris@350 4954 extern "C"
Chris@350 4955 #endif
Chris@350 4956 char $SV_MODULE_FUNC ();
Chris@350 4957 int
Chris@350 4958 main ()
Chris@350 4959 {
Chris@350 4960 return $SV_MODULE_FUNC ();
Chris@350 4961 ;
Chris@350 4962 return 0;
Chris@350 4963 }
Chris@350 4964 _ACEOF
Chris@350 4965 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 4966 eval "$as_ac_Lib=yes"
Chris@350 4967 else
Chris@350 4968 eval "$as_ac_Lib=no"
Chris@350 4969 fi
Chris@350 4970 rm -f core conftest.err conftest.$ac_objext \
Chris@350 4971 conftest$ac_exeext conftest.$ac_ext
Chris@350 4972 LIBS=$ac_check_lib_save_LIBS
Chris@350 4973 fi
Chris@350 4974 eval ac_res=\$$as_ac_Lib
Chris@350 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 4976 $as_echo "$ac_res" >&6; }
Chris@594 4977 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 4978 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 4979 else
Chris@594 4980 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 4981 fi
Chris@350 4982
Chris@350 4983 fi
Chris@350 4984 fi
Chris@350 4985
Chris@350 4986
Chris@350 4987 SV_MODULE_MODULE=sndfile
Chris@350 4988 SV_MODULE_VERSION_TEST="sndfile >= 1.0.16"
Chris@350 4989 SV_MODULE_HEADER=sndfile.h
Chris@350 4990 SV_MODULE_LIB=sndfile
Chris@350 4991 SV_MODULE_FUNC=sf_open
Chris@350 4992 SV_MODULE_HAVE=HAVE_$(echo sndfile | tr 'a-z' 'A-Z')
Chris@350 4993 SV_MODULE_FAILED=1
Chris@405 4994 if test -n "$sndfile_LIBS" ; then
Chris@405 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 4996 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@405 4997 CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS"
Chris@405 4998 LIBS="$LIBS $sndfile_LIBS"
Chris@405 4999 SV_MODULE_FAILED=""
Chris@405 5000 fi
Chris@350 5001 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5002 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5003 fi
Chris@405 5004 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 5005
Chris@350 5006 pkg_failed=no
Chris@1969 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndfile" >&5
Chris@1969 5008 $as_echo_n "checking for sndfile... " >&6; }
Chris@350 5009
Chris@594 5010 if test -n "$sndfile_CFLAGS"; then
Chris@594 5011 pkg_cv_sndfile_CFLAGS="$sndfile_CFLAGS"
Chris@594 5012 elif test -n "$PKG_CONFIG"; then
Chris@594 5013 if test -n "$PKG_CONFIG" && \
Chris@350 5014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 5015 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5016 ac_status=$?
Chris@350 5017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 5018 test $ac_status = 0; }; then
Chris@350 5019 pkg_cv_sndfile_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 5020 test "x$?" != "x0" && pkg_failed=yes
Chris@350 5021 else
Chris@350 5022 pkg_failed=yes
Chris@350 5023 fi
Chris@594 5024 else
Chris@594 5025 pkg_failed=untried
Chris@594 5026 fi
Chris@594 5027 if test -n "$sndfile_LIBS"; then
Chris@594 5028 pkg_cv_sndfile_LIBS="$sndfile_LIBS"
Chris@594 5029 elif test -n "$PKG_CONFIG"; then
Chris@594 5030 if test -n "$PKG_CONFIG" && \
Chris@350 5031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 5032 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5033 ac_status=$?
Chris@350 5034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 5035 test $ac_status = 0; }; then
Chris@350 5036 pkg_cv_sndfile_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 5037 test "x$?" != "x0" && pkg_failed=yes
Chris@350 5038 else
Chris@350 5039 pkg_failed=yes
Chris@350 5040 fi
Chris@594 5041 else
Chris@594 5042 pkg_failed=untried
Chris@350 5043 fi
Chris@350 5044
Chris@350 5045
Chris@350 5046
Chris@350 5047 if test $pkg_failed = yes; then
Chris@1969 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 5049 $as_echo "no" >&6; }
Chris@350 5050
Chris@350 5051 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 5052 _pkg_short_errors_supported=yes
Chris@350 5053 else
Chris@350 5054 _pkg_short_errors_supported=no
Chris@350 5055 fi
Chris@350 5056 if test $_pkg_short_errors_supported = yes; then
Chris@594 5057 sndfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5058 else
Chris@594 5059 sndfile_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5060 fi
Chris@350 5061 # Put the nasty error message in config.log where it belongs
Chris@350 5062 echo "$sndfile_PKG_ERRORS" >&5
Chris@350 5063
Chris@594 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 5065 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5066 elif test $pkg_failed = untried; then
Chris@1969 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 5068 $as_echo "no" >&6; }
Chris@350 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 5070 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5071 else
Chris@350 5072 sndfile_CFLAGS=$pkg_cv_sndfile_CFLAGS
Chris@350 5073 sndfile_LIBS=$pkg_cv_sndfile_LIBS
Chris@350 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 5075 $as_echo "yes" >&6; }
Chris@350 5076 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS";LIBS="$LIBS $sndfile_LIBS";SV_MODULE_FAILED=""
Chris@350 5077 fi
Chris@350 5078 fi
Chris@350 5079 if test -n "$SV_MODULE_FAILED"; then
Chris@350 5080 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 5081 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 5082 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@350 5083 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 5084 else
Chris@594 5085 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 5086 fi
Chris@350 5087
Chris@350 5088
Chris@350 5089 if test -n "$SV_MODULE_LIB"; then
Chris@350 5090 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 5092 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 5093 if eval \${$as_ac_Lib+:} false; then :
Chris@350 5094 $as_echo_n "(cached) " >&6
Chris@350 5095 else
Chris@350 5096 ac_check_lib_save_LIBS=$LIBS
Chris@350 5097 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 5099 /* end confdefs.h. */
Chris@350 5100
Chris@350 5101 /* Override any GCC internal prototype to avoid an error.
Chris@350 5102 Use char because int might match the return type of a GCC
Chris@350 5103 builtin and then its argument prototype would still apply. */
Chris@350 5104 #ifdef __cplusplus
Chris@350 5105 extern "C"
Chris@350 5106 #endif
Chris@350 5107 char $SV_MODULE_FUNC ();
Chris@350 5108 int
Chris@350 5109 main ()
Chris@350 5110 {
Chris@350 5111 return $SV_MODULE_FUNC ();
Chris@350 5112 ;
Chris@350 5113 return 0;
Chris@350 5114 }
Chris@350 5115 _ACEOF
Chris@350 5116 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 5117 eval "$as_ac_Lib=yes"
Chris@350 5118 else
Chris@350 5119 eval "$as_ac_Lib=no"
Chris@350 5120 fi
Chris@350 5121 rm -f core conftest.err conftest.$ac_objext \
Chris@350 5122 conftest$ac_exeext conftest.$ac_ext
Chris@350 5123 LIBS=$ac_check_lib_save_LIBS
Chris@350 5124 fi
Chris@350 5125 eval ac_res=\$$as_ac_Lib
Chris@350 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 5127 $as_echo "$ac_res" >&6; }
Chris@594 5128 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 5129 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 5130 else
Chris@594 5131 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 5132 fi
Chris@350 5133
Chris@350 5134 fi
Chris@350 5135 fi
Chris@350 5136
Chris@350 5137
Chris@1035 5138 SV_MODULE_MODULE=libsamplerate
Chris@350 5139 SV_MODULE_VERSION_TEST="samplerate >= 0.1.2"
Chris@350 5140 SV_MODULE_HEADER=samplerate.h
Chris@350 5141 SV_MODULE_LIB=samplerate
Chris@350 5142 SV_MODULE_FUNC=src_new
Chris@1035 5143 SV_MODULE_HAVE=HAVE_$(echo libsamplerate | tr 'a-z' 'A-Z')
Chris@350 5144 SV_MODULE_FAILED=1
Chris@1035 5145 if test -n "$libsamplerate_LIBS" ; then
Chris@405 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 5147 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@1035 5148 CXXFLAGS="$CXXFLAGS $libsamplerate_CFLAGS"
Chris@1035 5149 LIBS="$LIBS $libsamplerate_LIBS"
Chris@405 5150 SV_MODULE_FAILED=""
Chris@405 5151 fi
Chris@350 5152 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5153 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5154 fi
Chris@405 5155 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 5156
Chris@350 5157 pkg_failed=no
Chris@1969 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsamplerate" >&5
Chris@1969 5159 $as_echo_n "checking for libsamplerate... " >&6; }
Chris@1035 5160
Chris@1035 5161 if test -n "$libsamplerate_CFLAGS"; then
Chris@1035 5162 pkg_cv_libsamplerate_CFLAGS="$libsamplerate_CFLAGS"
Chris@594 5163 elif test -n "$PKG_CONFIG"; then
Chris@594 5164 if test -n "$PKG_CONFIG" && \
Chris@350 5165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 5166 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5167 ac_status=$?
Chris@350 5168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 5169 test $ac_status = 0; }; then
Chris@1035 5170 pkg_cv_libsamplerate_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 5171 test "x$?" != "x0" && pkg_failed=yes
Chris@350 5172 else
Chris@350 5173 pkg_failed=yes
Chris@350 5174 fi
Chris@594 5175 else
Chris@594 5176 pkg_failed=untried
Chris@594 5177 fi
Chris@1035 5178 if test -n "$libsamplerate_LIBS"; then
Chris@1035 5179 pkg_cv_libsamplerate_LIBS="$libsamplerate_LIBS"
Chris@594 5180 elif test -n "$PKG_CONFIG"; then
Chris@594 5181 if test -n "$PKG_CONFIG" && \
Chris@350 5182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 5183 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5184 ac_status=$?
Chris@350 5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 5186 test $ac_status = 0; }; then
Chris@1035 5187 pkg_cv_libsamplerate_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 5188 test "x$?" != "x0" && pkg_failed=yes
Chris@350 5189 else
Chris@350 5190 pkg_failed=yes
Chris@350 5191 fi
Chris@594 5192 else
Chris@594 5193 pkg_failed=untried
Chris@350 5194 fi
Chris@350 5195
Chris@350 5196
Chris@350 5197
Chris@350 5198 if test $pkg_failed = yes; then
Chris@1969 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 5200 $as_echo "no" >&6; }
Chris@350 5201
Chris@350 5202 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 5203 _pkg_short_errors_supported=yes
Chris@350 5204 else
Chris@350 5205 _pkg_short_errors_supported=no
Chris@350 5206 fi
Chris@350 5207 if test $_pkg_short_errors_supported = yes; then
Chris@1035 5208 libsamplerate_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5209 else
Chris@1035 5210 libsamplerate_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5211 fi
Chris@350 5212 # Put the nasty error message in config.log where it belongs
Chris@1035 5213 echo "$libsamplerate_PKG_ERRORS" >&5
Chris@350 5214
Chris@594 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 5216 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5217 elif test $pkg_failed = untried; then
Chris@1969 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 5219 $as_echo "no" >&6; }
Chris@350 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 5221 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5222 else
Chris@1035 5223 libsamplerate_CFLAGS=$pkg_cv_libsamplerate_CFLAGS
Chris@1035 5224 libsamplerate_LIBS=$pkg_cv_libsamplerate_LIBS
Chris@350 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 5226 $as_echo "yes" >&6; }
Chris@1035 5227 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $libsamplerate_CFLAGS";LIBS="$LIBS $libsamplerate_LIBS";SV_MODULE_FAILED=""
Chris@350 5228 fi
Chris@350 5229 fi
Chris@350 5230 if test -n "$SV_MODULE_FAILED"; then
Chris@350 5231 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 5232 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 5233 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@350 5234 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 5235 else
Chris@594 5236 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 5237 fi
Chris@350 5238
Chris@350 5239
Chris@350 5240 if test -n "$SV_MODULE_LIB"; then
Chris@350 5241 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 5243 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 5244 if eval \${$as_ac_Lib+:} false; then :
Chris@350 5245 $as_echo_n "(cached) " >&6
Chris@350 5246 else
Chris@350 5247 ac_check_lib_save_LIBS=$LIBS
Chris@350 5248 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 5250 /* end confdefs.h. */
Chris@350 5251
Chris@350 5252 /* Override any GCC internal prototype to avoid an error.
Chris@350 5253 Use char because int might match the return type of a GCC
Chris@350 5254 builtin and then its argument prototype would still apply. */
Chris@350 5255 #ifdef __cplusplus
Chris@350 5256 extern "C"
Chris@350 5257 #endif
Chris@350 5258 char $SV_MODULE_FUNC ();
Chris@350 5259 int
Chris@350 5260 main ()
Chris@350 5261 {
Chris@350 5262 return $SV_MODULE_FUNC ();
Chris@350 5263 ;
Chris@350 5264 return 0;
Chris@350 5265 }
Chris@350 5266 _ACEOF
Chris@350 5267 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 5268 eval "$as_ac_Lib=yes"
Chris@350 5269 else
Chris@350 5270 eval "$as_ac_Lib=no"
Chris@350 5271 fi
Chris@350 5272 rm -f core conftest.err conftest.$ac_objext \
Chris@350 5273 conftest$ac_exeext conftest.$ac_ext
Chris@350 5274 LIBS=$ac_check_lib_save_LIBS
Chris@350 5275 fi
Chris@350 5276 eval ac_res=\$$as_ac_Lib
Chris@350 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 5278 $as_echo "$ac_res" >&6; }
Chris@594 5279 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 5280 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 5281 else
Chris@594 5282 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 5283 fi
Chris@350 5284
Chris@350 5285 fi
Chris@350 5286 fi
Chris@350 5287
Chris@350 5288
Chris@2208 5289 SV_MODULE_MODULE=rubberband
Chris@2208 5290 SV_MODULE_VERSION_TEST="rubberband"
Chris@2208 5291 SV_MODULE_HEADER=rubberband/RubberBandStretcher.h
Chris@2208 5292 SV_MODULE_LIB=rubberband
Chris@2208 5293 SV_MODULE_FUNC=rubberband_new
Chris@2208 5294 SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z')
Chris@2208 5295 SV_MODULE_FAILED=1
Chris@2208 5296 if test -n "$rubberband_LIBS" ; then
Chris@2208 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@2208 5298 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@2208 5299 CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS"
Chris@2208 5300 LIBS="$LIBS $rubberband_LIBS"
Chris@2208 5301 SV_MODULE_FAILED=""
Chris@2208 5302 fi
Chris@2208 5303 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@2208 5304 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@2208 5305 fi
Chris@2208 5306 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@2208 5307
Chris@2208 5308 pkg_failed=no
Chris@2208 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rubberband" >&5
Chris@2208 5310 $as_echo_n "checking for rubberband... " >&6; }
Chris@2208 5311
Chris@2208 5312 if test -n "$rubberband_CFLAGS"; then
Chris@2208 5313 pkg_cv_rubberband_CFLAGS="$rubberband_CFLAGS"
Chris@2208 5314 elif test -n "$PKG_CONFIG"; then
Chris@2208 5315 if test -n "$PKG_CONFIG" && \
Chris@2208 5316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@2208 5317 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@2208 5318 ac_status=$?
Chris@2208 5319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@2208 5320 test $ac_status = 0; }; then
Chris@2208 5321 pkg_cv_rubberband_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@2208 5322 test "x$?" != "x0" && pkg_failed=yes
Chris@2208 5323 else
Chris@2208 5324 pkg_failed=yes
Chris@2208 5325 fi
Chris@2208 5326 else
Chris@2208 5327 pkg_failed=untried
Chris@2208 5328 fi
Chris@2208 5329 if test -n "$rubberband_LIBS"; then
Chris@2208 5330 pkg_cv_rubberband_LIBS="$rubberband_LIBS"
Chris@2208 5331 elif test -n "$PKG_CONFIG"; then
Chris@2208 5332 if test -n "$PKG_CONFIG" && \
Chris@2208 5333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@2208 5334 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@2208 5335 ac_status=$?
Chris@2208 5336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@2208 5337 test $ac_status = 0; }; then
Chris@2208 5338 pkg_cv_rubberband_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@2208 5339 test "x$?" != "x0" && pkg_failed=yes
Chris@2208 5340 else
Chris@2208 5341 pkg_failed=yes
Chris@2208 5342 fi
Chris@2208 5343 else
Chris@2208 5344 pkg_failed=untried
Chris@2208 5345 fi
Chris@2208 5346
Chris@2208 5347
Chris@2208 5348
Chris@2208 5349 if test $pkg_failed = yes; then
Chris@2208 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@2208 5351 $as_echo "no" >&6; }
Chris@2208 5352
Chris@2208 5353 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@2208 5354 _pkg_short_errors_supported=yes
Chris@2208 5355 else
Chris@2208 5356 _pkg_short_errors_supported=no
Chris@2208 5357 fi
Chris@2208 5358 if test $_pkg_short_errors_supported = yes; then
Chris@2208 5359 rubberband_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@2208 5360 else
Chris@2208 5361 rubberband_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@2208 5362 fi
Chris@2208 5363 # Put the nasty error message in config.log where it belongs
Chris@2208 5364 echo "$rubberband_PKG_ERRORS" >&5
Chris@2208 5365
Chris@2208 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2208 5367 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@2208 5368 elif test $pkg_failed = untried; then
Chris@2208 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@2208 5370 $as_echo "no" >&6; }
Chris@2208 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2208 5372 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@2208 5373 else
Chris@2208 5374 rubberband_CFLAGS=$pkg_cv_rubberband_CFLAGS
Chris@2208 5375 rubberband_LIBS=$pkg_cv_rubberband_LIBS
Chris@2208 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@2208 5377 $as_echo "yes" >&6; }
Chris@2208 5378 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED=""
Chris@2208 5379 fi
Chris@2208 5380 fi
Chris@2208 5381 if test -n "$SV_MODULE_FAILED"; then
Chris@2208 5382 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@2208 5383 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@2208 5384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@2208 5385 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@2208 5386 else
Chris@2208 5387 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2208 5388 fi
Chris@2208 5389
Chris@2208 5390
Chris@2208 5391 if test -n "$SV_MODULE_LIB"; then
Chris@2208 5392 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@2208 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@2208 5394 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@2208 5395 if eval \${$as_ac_Lib+:} false; then :
Chris@2208 5396 $as_echo_n "(cached) " >&6
Chris@2208 5397 else
Chris@2208 5398 ac_check_lib_save_LIBS=$LIBS
Chris@2208 5399 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@2208 5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@2208 5401 /* end confdefs.h. */
Chris@2208 5402
Chris@2208 5403 /* Override any GCC internal prototype to avoid an error.
Chris@2208 5404 Use char because int might match the return type of a GCC
Chris@2208 5405 builtin and then its argument prototype would still apply. */
Chris@2208 5406 #ifdef __cplusplus
Chris@2208 5407 extern "C"
Chris@2208 5408 #endif
Chris@2208 5409 char $SV_MODULE_FUNC ();
Chris@2208 5410 int
Chris@2208 5411 main ()
Chris@2208 5412 {
Chris@2208 5413 return $SV_MODULE_FUNC ();
Chris@2208 5414 ;
Chris@2208 5415 return 0;
Chris@2208 5416 }
Chris@2208 5417 _ACEOF
Chris@2208 5418 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@2208 5419 eval "$as_ac_Lib=yes"
Chris@2208 5420 else
Chris@2208 5421 eval "$as_ac_Lib=no"
Chris@2208 5422 fi
Chris@2208 5423 rm -f core conftest.err conftest.$ac_objext \
Chris@2208 5424 conftest$ac_exeext conftest.$ac_ext
Chris@2208 5425 LIBS=$ac_check_lib_save_LIBS
Chris@2208 5426 fi
Chris@2208 5427 eval ac_res=\$$as_ac_Lib
Chris@2208 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@2208 5429 $as_echo "$ac_res" >&6; }
Chris@2208 5430 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@2208 5431 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@2208 5432 else
Chris@2208 5433 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2208 5434 fi
Chris@2208 5435
Chris@2208 5436 fi
Chris@2208 5437 fi
Chris@2208 5438
Chris@2208 5439
Chris@1279 5440 SV_MODULE_MODULE=sord
Chris@1279 5441 SV_MODULE_VERSION_TEST="sord-0 >= 0.5"
Chris@1279 5442 SV_MODULE_HEADER=sord/sord.h
Chris@1279 5443 SV_MODULE_LIB=sord-0
Chris@1279 5444 SV_MODULE_FUNC=sord_world_new
Chris@1279 5445 SV_MODULE_HAVE=HAVE_$(echo sord | tr 'a-z' 'A-Z')
Chris@350 5446 SV_MODULE_FAILED=1
Chris@1279 5447 if test -n "$sord_LIBS" ; then
Chris@405 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 5449 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@1279 5450 CXXFLAGS="$CXXFLAGS $sord_CFLAGS"
Chris@1279 5451 LIBS="$LIBS $sord_LIBS"
Chris@405 5452 SV_MODULE_FAILED=""
Chris@405 5453 fi
Chris@350 5454 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5455 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5456 fi
Chris@405 5457 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 5458
Chris@350 5459 pkg_failed=no
Chris@1969 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sord" >&5
Chris@1969 5461 $as_echo_n "checking for sord... " >&6; }
Chris@1279 5462
Chris@1279 5463 if test -n "$sord_CFLAGS"; then
Chris@1279 5464 pkg_cv_sord_CFLAGS="$sord_CFLAGS"
Chris@594 5465 elif test -n "$PKG_CONFIG"; then
Chris@594 5466 if test -n "$PKG_CONFIG" && \
Chris@350 5467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 5468 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5469 ac_status=$?
Chris@350 5470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 5471 test $ac_status = 0; }; then
Chris@1279 5472 pkg_cv_sord_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 5473 test "x$?" != "x0" && pkg_failed=yes
Chris@350 5474 else
Chris@350 5475 pkg_failed=yes
Chris@350 5476 fi
Chris@594 5477 else
Chris@594 5478 pkg_failed=untried
Chris@594 5479 fi
Chris@1279 5480 if test -n "$sord_LIBS"; then
Chris@1279 5481 pkg_cv_sord_LIBS="$sord_LIBS"
Chris@594 5482 elif test -n "$PKG_CONFIG"; then
Chris@594 5483 if test -n "$PKG_CONFIG" && \
Chris@350 5484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 5485 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5486 ac_status=$?
Chris@350 5487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 5488 test $ac_status = 0; }; then
Chris@1279 5489 pkg_cv_sord_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 5490 test "x$?" != "x0" && pkg_failed=yes
Chris@350 5491 else
Chris@350 5492 pkg_failed=yes
Chris@350 5493 fi
Chris@594 5494 else
Chris@594 5495 pkg_failed=untried
Chris@350 5496 fi
Chris@350 5497
Chris@350 5498
Chris@350 5499
Chris@350 5500 if test $pkg_failed = yes; then
Chris@1969 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 5502 $as_echo "no" >&6; }
Chris@350 5503
Chris@350 5504 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 5505 _pkg_short_errors_supported=yes
Chris@350 5506 else
Chris@350 5507 _pkg_short_errors_supported=no
Chris@350 5508 fi
Chris@350 5509 if test $_pkg_short_errors_supported = yes; then
Chris@1279 5510 sord_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5511 else
Chris@1279 5512 sord_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5513 fi
Chris@350 5514 # Put the nasty error message in config.log where it belongs
Chris@1279 5515 echo "$sord_PKG_ERRORS" >&5
Chris@350 5516
Chris@594 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 5518 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5519 elif test $pkg_failed = untried; then
Chris@1969 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 5521 $as_echo "no" >&6; }
Chris@350 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 5523 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5524 else
Chris@1279 5525 sord_CFLAGS=$pkg_cv_sord_CFLAGS
Chris@1279 5526 sord_LIBS=$pkg_cv_sord_LIBS
Chris@350 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 5528 $as_echo "yes" >&6; }
Chris@1279 5529 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sord_CFLAGS";LIBS="$LIBS $sord_LIBS";SV_MODULE_FAILED=""
Chris@350 5530 fi
Chris@350 5531 fi
Chris@350 5532 if test -n "$SV_MODULE_FAILED"; then
Chris@350 5533 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 5534 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 5535 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@350 5536 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 5537 else
Chris@594 5538 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 5539 fi
Chris@350 5540
Chris@350 5541
Chris@350 5542 if test -n "$SV_MODULE_LIB"; then
Chris@350 5543 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 5545 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 5546 if eval \${$as_ac_Lib+:} false; then :
Chris@350 5547 $as_echo_n "(cached) " >&6
Chris@350 5548 else
Chris@350 5549 ac_check_lib_save_LIBS=$LIBS
Chris@350 5550 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 5552 /* end confdefs.h. */
Chris@350 5553
Chris@350 5554 /* Override any GCC internal prototype to avoid an error.
Chris@350 5555 Use char because int might match the return type of a GCC
Chris@350 5556 builtin and then its argument prototype would still apply. */
Chris@350 5557 #ifdef __cplusplus
Chris@350 5558 extern "C"
Chris@350 5559 #endif
Chris@350 5560 char $SV_MODULE_FUNC ();
Chris@350 5561 int
Chris@350 5562 main ()
Chris@350 5563 {
Chris@350 5564 return $SV_MODULE_FUNC ();
Chris@350 5565 ;
Chris@350 5566 return 0;
Chris@350 5567 }
Chris@350 5568 _ACEOF
Chris@350 5569 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 5570 eval "$as_ac_Lib=yes"
Chris@350 5571 else
Chris@350 5572 eval "$as_ac_Lib=no"
Chris@350 5573 fi
Chris@350 5574 rm -f core conftest.err conftest.$ac_objext \
Chris@350 5575 conftest$ac_exeext conftest.$ac_ext
Chris@350 5576 LIBS=$ac_check_lib_save_LIBS
Chris@350 5577 fi
Chris@350 5578 eval ac_res=\$$as_ac_Lib
Chris@350 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 5580 $as_echo "$ac_res" >&6; }
Chris@594 5581 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 5582 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 5583 else
Chris@594 5584 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 5585 fi
Chris@350 5586
Chris@350 5587 fi
Chris@350 5588 fi
Chris@350 5589
Chris@350 5590
Chris@1279 5591 SV_MODULE_MODULE=serd
Chris@1279 5592 SV_MODULE_VERSION_TEST="serd-0 >= 0.5"
Chris@1279 5593 SV_MODULE_HEADER=serd/serd.h
Chris@1279 5594 SV_MODULE_LIB=serd-0
Chris@1279 5595 SV_MODULE_FUNC=serd_reader_read_file
Chris@1279 5596 SV_MODULE_HAVE=HAVE_$(echo serd | tr 'a-z' 'A-Z')
Chris@350 5597 SV_MODULE_FAILED=1
Chris@1279 5598 if test -n "$serd_LIBS" ; then
Chris@405 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 5600 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@1279 5601 CXXFLAGS="$CXXFLAGS $serd_CFLAGS"
Chris@1279 5602 LIBS="$LIBS $serd_LIBS"
Chris@405 5603 SV_MODULE_FAILED=""
Chris@405 5604 fi
Chris@350 5605 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5606 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5607 fi
Chris@405 5608 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 5609
Chris@350 5610 pkg_failed=no
Chris@1969 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for serd" >&5
Chris@1969 5612 $as_echo_n "checking for serd... " >&6; }
Chris@1279 5613
Chris@1279 5614 if test -n "$serd_CFLAGS"; then
Chris@1279 5615 pkg_cv_serd_CFLAGS="$serd_CFLAGS"
Chris@594 5616 elif test -n "$PKG_CONFIG"; then
Chris@594 5617 if test -n "$PKG_CONFIG" && \
Chris@350 5618 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 5619 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5620 ac_status=$?
Chris@350 5621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 5622 test $ac_status = 0; }; then
Chris@1279 5623 pkg_cv_serd_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 5624 test "x$?" != "x0" && pkg_failed=yes
Chris@350 5625 else
Chris@350 5626 pkg_failed=yes
Chris@350 5627 fi
Chris@594 5628 else
Chris@594 5629 pkg_failed=untried
Chris@594 5630 fi
Chris@1279 5631 if test -n "$serd_LIBS"; then
Chris@1279 5632 pkg_cv_serd_LIBS="$serd_LIBS"
Chris@594 5633 elif test -n "$PKG_CONFIG"; then
Chris@594 5634 if test -n "$PKG_CONFIG" && \
Chris@350 5635 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 5636 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5637 ac_status=$?
Chris@350 5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 5639 test $ac_status = 0; }; then
Chris@1279 5640 pkg_cv_serd_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 5641 test "x$?" != "x0" && pkg_failed=yes
Chris@350 5642 else
Chris@350 5643 pkg_failed=yes
Chris@350 5644 fi
Chris@594 5645 else
Chris@594 5646 pkg_failed=untried
Chris@350 5647 fi
Chris@350 5648
Chris@350 5649
Chris@350 5650
Chris@350 5651 if test $pkg_failed = yes; then
Chris@1969 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 5653 $as_echo "no" >&6; }
Chris@350 5654
Chris@350 5655 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 5656 _pkg_short_errors_supported=yes
Chris@350 5657 else
Chris@350 5658 _pkg_short_errors_supported=no
Chris@350 5659 fi
Chris@350 5660 if test $_pkg_short_errors_supported = yes; then
Chris@1279 5661 serd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5662 else
Chris@1279 5663 serd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5664 fi
Chris@350 5665 # Put the nasty error message in config.log where it belongs
Chris@1279 5666 echo "$serd_PKG_ERRORS" >&5
Chris@350 5667
Chris@594 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 5669 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5670 elif test $pkg_failed = untried; then
Chris@1969 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 5672 $as_echo "no" >&6; }
Chris@350 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 5674 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5675 else
Chris@1279 5676 serd_CFLAGS=$pkg_cv_serd_CFLAGS
Chris@1279 5677 serd_LIBS=$pkg_cv_serd_LIBS
Chris@350 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 5679 $as_echo "yes" >&6; }
Chris@1279 5680 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $serd_CFLAGS";LIBS="$LIBS $serd_LIBS";SV_MODULE_FAILED=""
Chris@350 5681 fi
Chris@350 5682 fi
Chris@350 5683 if test -n "$SV_MODULE_FAILED"; then
Chris@350 5684 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 5685 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 5686 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@350 5687 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@350 5688 else
Chris@594 5689 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 5690 fi
Chris@350 5691
Chris@350 5692
Chris@350 5693 if test -n "$SV_MODULE_LIB"; then
Chris@350 5694 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 5696 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 5697 if eval \${$as_ac_Lib+:} false; then :
Chris@350 5698 $as_echo_n "(cached) " >&6
Chris@350 5699 else
Chris@350 5700 ac_check_lib_save_LIBS=$LIBS
Chris@350 5701 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 5703 /* end confdefs.h. */
Chris@350 5704
Chris@350 5705 /* Override any GCC internal prototype to avoid an error.
Chris@350 5706 Use char because int might match the return type of a GCC
Chris@350 5707 builtin and then its argument prototype would still apply. */
Chris@350 5708 #ifdef __cplusplus
Chris@350 5709 extern "C"
Chris@350 5710 #endif
Chris@350 5711 char $SV_MODULE_FUNC ();
Chris@350 5712 int
Chris@350 5713 main ()
Chris@350 5714 {
Chris@350 5715 return $SV_MODULE_FUNC ();
Chris@350 5716 ;
Chris@350 5717 return 0;
Chris@350 5718 }
Chris@350 5719 _ACEOF
Chris@350 5720 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 5721 eval "$as_ac_Lib=yes"
Chris@350 5722 else
Chris@350 5723 eval "$as_ac_Lib=no"
Chris@350 5724 fi
Chris@350 5725 rm -f core conftest.err conftest.$ac_objext \
Chris@350 5726 conftest$ac_exeext conftest.$ac_ext
Chris@350 5727 LIBS=$ac_check_lib_save_LIBS
Chris@350 5728 fi
Chris@350 5729 eval ac_res=\$$as_ac_Lib
Chris@350 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 5731 $as_echo "$ac_res" >&6; }
Chris@594 5732 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 5733 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 5734 else
Chris@594 5735 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@350 5736 fi
Chris@350 5737
Chris@350 5738 fi
Chris@350 5739 fi
Chris@350 5740
Chris@350 5741
Chris@1695 5742 # We need a Cap'n Proto version with the expectedSizeInWordsFromPrefix
Chris@1695 5743 # function, which appeared in v0.6. If we can't find at least that
Chris@1695 5744 # version with pkg-config, we check for the symbol with the compiler.
Chris@350 5745
Chris@350 5746 pkg_failed=no
Chris@1969 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capnp" >&5
Chris@1969 5748 $as_echo_n "checking for capnp... " >&6; }
Chris@1279 5749
Chris@1279 5750 if test -n "$capnp_CFLAGS"; then
Chris@1279 5751 pkg_cv_capnp_CFLAGS="$capnp_CFLAGS"
Chris@594 5752 elif test -n "$PKG_CONFIG"; then
Chris@594 5753 if test -n "$PKG_CONFIG" && \
Chris@1695 5754 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capnp >= 0.6\""; } >&5
Chris@1695 5755 ($PKG_CONFIG --exists --print-errors "capnp >= 0.6") 2>&5
Chris@350 5756 ac_status=$?
Chris@350 5757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 5758 test $ac_status = 0; }; then
Chris@1695 5759 pkg_cv_capnp_CFLAGS=`$PKG_CONFIG --cflags "capnp >= 0.6" 2>/dev/null`
Chris@594 5760 test "x$?" != "x0" && pkg_failed=yes
Chris@350 5761 else
Chris@350 5762 pkg_failed=yes
Chris@350 5763 fi
Chris@594 5764 else
Chris@594 5765 pkg_failed=untried
Chris@594 5766 fi
Chris@1279 5767 if test -n "$capnp_LIBS"; then
Chris@1279 5768 pkg_cv_capnp_LIBS="$capnp_LIBS"
Chris@594 5769 elif test -n "$PKG_CONFIG"; then
Chris@594 5770 if test -n "$PKG_CONFIG" && \
Chris@1695 5771 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capnp >= 0.6\""; } >&5
Chris@1695 5772 ($PKG_CONFIG --exists --print-errors "capnp >= 0.6") 2>&5
Chris@350 5773 ac_status=$?
Chris@350 5774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 5775 test $ac_status = 0; }; then
Chris@1695 5776 pkg_cv_capnp_LIBS=`$PKG_CONFIG --libs "capnp >= 0.6" 2>/dev/null`
Chris@594 5777 test "x$?" != "x0" && pkg_failed=yes
Chris@350 5778 else
Chris@350 5779 pkg_failed=yes
Chris@350 5780 fi
Chris@594 5781 else
Chris@594 5782 pkg_failed=untried
Chris@350 5783 fi
Chris@350 5784
Chris@350 5785
Chris@350 5786
Chris@350 5787 if test $pkg_failed = yes; then
Chris@1969 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 5789 $as_echo "no" >&6; }
Chris@350 5790
Chris@350 5791 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 5792 _pkg_short_errors_supported=yes
Chris@350 5793 else
Chris@350 5794 _pkg_short_errors_supported=no
Chris@350 5795 fi
Chris@350 5796 if test $_pkg_short_errors_supported = yes; then
Chris@1695 5797 capnp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "capnp >= 0.6" 2>&1`
Chris@350 5798 else
Chris@1695 5799 capnp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "capnp >= 0.6" 2>&1`
Chris@350 5800 fi
Chris@350 5801 # Put the nasty error message in config.log where it belongs
Chris@1279 5802 echo "$capnp_PKG_ERRORS" >&5
Chris@572 5803
Chris@1614 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&5
Chris@1614 5805 $as_echo "$as_me: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&6;}
Chris@350 5806 elif test $pkg_failed = untried; then
Chris@1969 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 5808 $as_echo "no" >&6; }
Chris@1614 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&5
Chris@1614 5810 $as_echo "$as_me: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 5811 else
Chris@1279 5812 capnp_CFLAGS=$pkg_cv_capnp_CFLAGS
Chris@1279 5813 capnp_LIBS=$pkg_cv_capnp_LIBS
Chris@350 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 5815 $as_echo "yes" >&6; }
Chris@1614 5816 HAVES="$HAVES HAVE_CAPNP";CXXFLAGS="$CXXFLAGS $capnp_CFLAGS";LIBS="$LIBS $capnp_LIBS"
Chris@1614 5817 fi
Chris@1614 5818 if test -z "$capnp_LIBS" ; then
Chris@1614 5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 5820 /* end confdefs.h. */
Chris@350 5821
Chris@1614 5822
Chris@1614 5823 #include <capnp/serialize.h>
Chris@1614 5824 int main() {
Chris@1614 5825 kj::Array<capnp::word> prefix;
Chris@1614 5826 return capnp::expectedSizeInWordsFromPrefix(prefix.asPtr());
Chris@1614 5827 }
Chris@350 5828 _ACEOF
Chris@1614 5829 if ac_fn_cxx_try_compile "$LINENO"; then :
Chris@1614 5830 HAVES="$HAVES HAVE_CAPNP";LIBS="$LIBS -lcapnp -lkj"
Chris@1614 5831 else
Chris@1614 5832 as_fn_error $? "Failed to find appropriate capnp library" "$LINENO" 5
Chris@1614 5833
Chris@1614 5834 fi
Chris@1614 5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Chris@1614 5836 fi
Chris@350 5837
Chris@572 5838
Chris@572 5839 SV_MODULE_MODULE=liblo
Chris@572 5840 SV_MODULE_VERSION_TEST=""
Chris@572 5841 SV_MODULE_HEADER=lo/lo.h
Chris@572 5842 SV_MODULE_LIB=lo
Chris@572 5843 SV_MODULE_FUNC=lo_address_new
Chris@572 5844 SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z')
Chris@350 5845 SV_MODULE_FAILED=1
Chris@572 5846 if test -n "$liblo_LIBS" ; then
Chris@405 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 5848 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@572 5849 CXXFLAGS="$CXXFLAGS $liblo_CFLAGS"
Chris@572 5850 LIBS="$LIBS $liblo_LIBS"
Chris@405 5851 SV_MODULE_FAILED=""
Chris@405 5852 fi
Chris@350 5853 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 5854 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 5855 fi
Chris@405 5856 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 5857
Chris@350 5858 pkg_failed=no
Chris@1969 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblo" >&5
Chris@1969 5860 $as_echo_n "checking for liblo... " >&6; }
Chris@572 5861
Chris@594 5862 if test -n "$liblo_CFLAGS"; then
Chris@594 5863 pkg_cv_liblo_CFLAGS="$liblo_CFLAGS"
Chris@594 5864 elif test -n "$PKG_CONFIG"; then
Chris@594 5865 if test -n "$PKG_CONFIG" && \
Chris@350 5866 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 5867 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5868 ac_status=$?
Chris@350 5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 5870 test $ac_status = 0; }; then
Chris@572 5871 pkg_cv_liblo_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 5872 test "x$?" != "x0" && pkg_failed=yes
Chris@350 5873 else
Chris@350 5874 pkg_failed=yes
Chris@350 5875 fi
Chris@594 5876 else
Chris@594 5877 pkg_failed=untried
Chris@594 5878 fi
Chris@594 5879 if test -n "$liblo_LIBS"; then
Chris@594 5880 pkg_cv_liblo_LIBS="$liblo_LIBS"
Chris@594 5881 elif test -n "$PKG_CONFIG"; then
Chris@594 5882 if test -n "$PKG_CONFIG" && \
Chris@350 5883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 5884 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 5885 ac_status=$?
Chris@350 5886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 5887 test $ac_status = 0; }; then
Chris@572 5888 pkg_cv_liblo_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 5889 test "x$?" != "x0" && pkg_failed=yes
Chris@350 5890 else
Chris@350 5891 pkg_failed=yes
Chris@350 5892 fi
Chris@594 5893 else
Chris@594 5894 pkg_failed=untried
Chris@350 5895 fi
Chris@350 5896
Chris@350 5897
Chris@350 5898
Chris@350 5899 if test $pkg_failed = yes; then
Chris@1969 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 5901 $as_echo "no" >&6; }
Chris@350 5902
Chris@350 5903 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 5904 _pkg_short_errors_supported=yes
Chris@350 5905 else
Chris@350 5906 _pkg_short_errors_supported=no
Chris@350 5907 fi
Chris@350 5908 if test $_pkg_short_errors_supported = yes; then
Chris@594 5909 liblo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5910 else
Chris@594 5911 liblo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 5912 fi
Chris@350 5913 # Put the nasty error message in config.log where it belongs
Chris@572 5914 echo "$liblo_PKG_ERRORS" >&5
Chris@572 5915
Chris@594 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@572 5917 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 5918 elif test $pkg_failed = untried; then
Chris@1969 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 5920 $as_echo "no" >&6; }
Chris@457 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 5922 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 5923 else
Chris@572 5924 liblo_CFLAGS=$pkg_cv_liblo_CFLAGS
Chris@572 5925 liblo_LIBS=$pkg_cv_liblo_LIBS
Chris@350 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 5927 $as_echo "yes" >&6; }
Chris@572 5928 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED=""
Chris@350 5929 fi
Chris@350 5930 fi
Chris@350 5931 if test -n "$SV_MODULE_FAILED"; then
Chris@350 5932 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 5933 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 5934 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@350 5935 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 5936 else
Chris@350 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
Chris@350 5938 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 5939 fi
Chris@350 5940
Chris@350 5941
Chris@350 5942 if test -z "$SV_MODULE_FAILED"; then
Chris@350 5943 if test -n "$SV_MODULE_LIB"; then
Chris@350 5944 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 5946 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 5947 if eval \${$as_ac_Lib+:} false; then :
Chris@350 5948 $as_echo_n "(cached) " >&6
Chris@350 5949 else
Chris@350 5950 ac_check_lib_save_LIBS=$LIBS
Chris@350 5951 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 5953 /* end confdefs.h. */
Chris@350 5954
Chris@350 5955 /* Override any GCC internal prototype to avoid an error.
Chris@350 5956 Use char because int might match the return type of a GCC
Chris@350 5957 builtin and then its argument prototype would still apply. */
Chris@350 5958 #ifdef __cplusplus
Chris@350 5959 extern "C"
Chris@350 5960 #endif
Chris@350 5961 char $SV_MODULE_FUNC ();
Chris@350 5962 int
Chris@350 5963 main ()
Chris@350 5964 {
Chris@350 5965 return $SV_MODULE_FUNC ();
Chris@350 5966 ;
Chris@350 5967 return 0;
Chris@350 5968 }
Chris@350 5969 _ACEOF
Chris@350 5970 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 5971 eval "$as_ac_Lib=yes"
Chris@350 5972 else
Chris@350 5973 eval "$as_ac_Lib=no"
Chris@350 5974 fi
Chris@350 5975 rm -f core conftest.err conftest.$ac_objext \
Chris@350 5976 conftest$ac_exeext conftest.$ac_ext
Chris@350 5977 LIBS=$ac_check_lib_save_LIBS
Chris@350 5978 fi
Chris@350 5979 eval ac_res=\$$as_ac_Lib
Chris@350 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 5981 $as_echo "$ac_res" >&6; }
Chris@594 5982 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 5983 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 5984 else
Chris@350 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
Chris@350 5986 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 5987 fi
Chris@350 5988
Chris@350 5989 fi
Chris@350 5990 fi
Chris@350 5991 fi
Chris@350 5992
Chris@350 5993
Chris@1035 5994 SV_MODULE_MODULE=portaudio
Chris@572 5995 SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19"
Chris@572 5996 SV_MODULE_HEADER=portaudio.h
Chris@572 5997 SV_MODULE_LIB=portaudio
Chris@572 5998 SV_MODULE_FUNC=Pa_IsFormatSupported
Chris@1035 5999 SV_MODULE_HAVE=HAVE_$(echo portaudio | tr 'a-z' 'A-Z')
Chris@358 6000 SV_MODULE_FAILED=1
Chris@1035 6001 if test -n "$portaudio_LIBS" ; then
Chris@405 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 6003 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@1035 6004 CXXFLAGS="$CXXFLAGS $portaudio_CFLAGS"
Chris@1035 6005 LIBS="$LIBS $portaudio_LIBS"
Chris@405 6006 SV_MODULE_FAILED=""
Chris@405 6007 fi
Chris@358 6008 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@358 6009 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@358 6010 fi
Chris@405 6011 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@358 6012
Chris@358 6013 pkg_failed=no
Chris@1969 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portaudio" >&5
Chris@1969 6015 $as_echo_n "checking for portaudio... " >&6; }
Chris@1035 6016
Chris@1035 6017 if test -n "$portaudio_CFLAGS"; then
Chris@1035 6018 pkg_cv_portaudio_CFLAGS="$portaudio_CFLAGS"
Chris@594 6019 elif test -n "$PKG_CONFIG"; then
Chris@594 6020 if test -n "$PKG_CONFIG" && \
Chris@358 6021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@358 6022 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@358 6023 ac_status=$?
Chris@358 6024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@358 6025 test $ac_status = 0; }; then
Chris@1035 6026 pkg_cv_portaudio_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6027 test "x$?" != "x0" && pkg_failed=yes
Chris@358 6028 else
Chris@358 6029 pkg_failed=yes
Chris@358 6030 fi
Chris@594 6031 else
Chris@594 6032 pkg_failed=untried
Chris@594 6033 fi
Chris@1035 6034 if test -n "$portaudio_LIBS"; then
Chris@1035 6035 pkg_cv_portaudio_LIBS="$portaudio_LIBS"
Chris@594 6036 elif test -n "$PKG_CONFIG"; then
Chris@594 6037 if test -n "$PKG_CONFIG" && \
Chris@358 6038 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@358 6039 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@358 6040 ac_status=$?
Chris@358 6041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@358 6042 test $ac_status = 0; }; then
Chris@1035 6043 pkg_cv_portaudio_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6044 test "x$?" != "x0" && pkg_failed=yes
Chris@358 6045 else
Chris@358 6046 pkg_failed=yes
Chris@358 6047 fi
Chris@594 6048 else
Chris@594 6049 pkg_failed=untried
Chris@358 6050 fi
Chris@358 6051
Chris@358 6052
Chris@358 6053
Chris@358 6054 if test $pkg_failed = yes; then
Chris@1969 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6056 $as_echo "no" >&6; }
Chris@358 6057
Chris@358 6058 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@358 6059 _pkg_short_errors_supported=yes
Chris@358 6060 else
Chris@358 6061 _pkg_short_errors_supported=no
Chris@358 6062 fi
Chris@358 6063 if test $_pkg_short_errors_supported = yes; then
Chris@1035 6064 portaudio_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@358 6065 else
Chris@1035 6066 portaudio_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@358 6067 fi
Chris@358 6068 # Put the nasty error message in config.log where it belongs
Chris@1035 6069 echo "$portaudio_PKG_ERRORS" >&5
Chris@572 6070
Chris@594 6071 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@572 6072 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6073 elif test $pkg_failed = untried; then
Chris@1969 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6075 $as_echo "no" >&6; }
Chris@457 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@358 6077 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6078 else
Chris@1035 6079 portaudio_CFLAGS=$pkg_cv_portaudio_CFLAGS
Chris@1035 6080 portaudio_LIBS=$pkg_cv_portaudio_LIBS
Chris@358 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@358 6082 $as_echo "yes" >&6; }
Chris@1035 6083 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_CFLAGS";LIBS="$LIBS $portaudio_LIBS";SV_MODULE_FAILED=""
Chris@358 6084 fi
Chris@358 6085 fi
Chris@358 6086 if test -n "$SV_MODULE_FAILED"; then
Chris@358 6087 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@358 6088 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 6089 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@358 6090 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@358 6091 else
Chris@358 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
Chris@358 6093 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@358 6094 fi
Chris@358 6095
Chris@358 6096
Chris@358 6097 if test -z "$SV_MODULE_FAILED"; then
Chris@358 6098 if test -n "$SV_MODULE_LIB"; then
Chris@358 6099 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@358 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@358 6101 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 6102 if eval \${$as_ac_Lib+:} false; then :
Chris@358 6103 $as_echo_n "(cached) " >&6
Chris@358 6104 else
Chris@358 6105 ac_check_lib_save_LIBS=$LIBS
Chris@358 6106 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@358 6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@358 6108 /* end confdefs.h. */
Chris@358 6109
Chris@358 6110 /* Override any GCC internal prototype to avoid an error.
Chris@358 6111 Use char because int might match the return type of a GCC
Chris@358 6112 builtin and then its argument prototype would still apply. */
Chris@358 6113 #ifdef __cplusplus
Chris@358 6114 extern "C"
Chris@358 6115 #endif
Chris@358 6116 char $SV_MODULE_FUNC ();
Chris@358 6117 int
Chris@358 6118 main ()
Chris@358 6119 {
Chris@358 6120 return $SV_MODULE_FUNC ();
Chris@358 6121 ;
Chris@358 6122 return 0;
Chris@358 6123 }
Chris@358 6124 _ACEOF
Chris@358 6125 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@358 6126 eval "$as_ac_Lib=yes"
Chris@358 6127 else
Chris@358 6128 eval "$as_ac_Lib=no"
Chris@358 6129 fi
Chris@358 6130 rm -f core conftest.err conftest.$ac_objext \
Chris@358 6131 conftest$ac_exeext conftest.$ac_ext
Chris@358 6132 LIBS=$ac_check_lib_save_LIBS
Chris@358 6133 fi
Chris@358 6134 eval ac_res=\$$as_ac_Lib
Chris@358 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@358 6136 $as_echo "$ac_res" >&6; }
Chris@594 6137 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@358 6138 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@358 6139 else
Chris@358 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
Chris@358 6141 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@358 6142 fi
Chris@358 6143
Chris@358 6144 fi
Chris@358 6145 fi
Chris@358 6146 fi
Chris@358 6147
Chris@358 6148
Chris@572 6149 SV_MODULE_MODULE=JACK
Chris@572 6150 SV_MODULE_VERSION_TEST="jack >= 0.100"
Chris@572 6151 SV_MODULE_HEADER=jack/jack.h
Chris@572 6152 SV_MODULE_LIB=jack
Chris@572 6153 SV_MODULE_FUNC=jack_client_open
Chris@572 6154 SV_MODULE_HAVE=HAVE_$(echo JACK | tr 'a-z' 'A-Z')
Chris@350 6155 SV_MODULE_FAILED=1
Chris@572 6156 if test -n "$JACK_LIBS" ; then
Chris@405 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 6158 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@572 6159 CXXFLAGS="$CXXFLAGS $JACK_CFLAGS"
Chris@572 6160 LIBS="$LIBS $JACK_LIBS"
Chris@405 6161 SV_MODULE_FAILED=""
Chris@405 6162 fi
Chris@350 6163 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6164 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6165 fi
Chris@405 6166 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 6167
Chris@350 6168 pkg_failed=no
Chris@1969 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
Chris@1969 6170 $as_echo_n "checking for JACK... " >&6; }
Chris@572 6171
Chris@594 6172 if test -n "$JACK_CFLAGS"; then
Chris@594 6173 pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
Chris@594 6174 elif test -n "$PKG_CONFIG"; then
Chris@594 6175 if test -n "$PKG_CONFIG" && \
Chris@350 6176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 6177 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6178 ac_status=$?
Chris@350 6179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 6180 test $ac_status = 0; }; then
Chris@572 6181 pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6182 test "x$?" != "x0" && pkg_failed=yes
Chris@350 6183 else
Chris@350 6184 pkg_failed=yes
Chris@350 6185 fi
Chris@594 6186 else
Chris@594 6187 pkg_failed=untried
Chris@594 6188 fi
Chris@594 6189 if test -n "$JACK_LIBS"; then
Chris@594 6190 pkg_cv_JACK_LIBS="$JACK_LIBS"
Chris@594 6191 elif test -n "$PKG_CONFIG"; then
Chris@594 6192 if test -n "$PKG_CONFIG" && \
Chris@350 6193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 6194 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6195 ac_status=$?
Chris@350 6196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 6197 test $ac_status = 0; }; then
Chris@572 6198 pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6199 test "x$?" != "x0" && pkg_failed=yes
Chris@350 6200 else
Chris@350 6201 pkg_failed=yes
Chris@350 6202 fi
Chris@594 6203 else
Chris@594 6204 pkg_failed=untried
Chris@350 6205 fi
Chris@350 6206
Chris@350 6207
Chris@350 6208
Chris@350 6209 if test $pkg_failed = yes; then
Chris@1969 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6211 $as_echo "no" >&6; }
Chris@350 6212
Chris@350 6213 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 6214 _pkg_short_errors_supported=yes
Chris@350 6215 else
Chris@350 6216 _pkg_short_errors_supported=no
Chris@350 6217 fi
Chris@350 6218 if test $_pkg_short_errors_supported = yes; then
Chris@594 6219 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6220 else
Chris@594 6221 JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6222 fi
Chris@350 6223 # Put the nasty error message in config.log where it belongs
Chris@572 6224 echo "$JACK_PKG_ERRORS" >&5
Chris@572 6225
Chris@594 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@572 6227 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6228 elif test $pkg_failed = untried; then
Chris@1969 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6230 $as_echo "no" >&6; }
Chris@457 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 6232 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6233 else
Chris@572 6234 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
Chris@572 6235 JACK_LIBS=$pkg_cv_JACK_LIBS
Chris@350 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 6237 $as_echo "yes" >&6; }
Chris@572 6238 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $JACK_CFLAGS";LIBS="$LIBS $JACK_LIBS";SV_MODULE_FAILED=""
Chris@350 6239 fi
Chris@350 6240 fi
Chris@350 6241 if test -n "$SV_MODULE_FAILED"; then
Chris@350 6242 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 6243 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 6244 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@350 6245 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 6246 else
Chris@350 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
Chris@350 6248 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 6249 fi
Chris@350 6250
Chris@350 6251
Chris@350 6252 if test -z "$SV_MODULE_FAILED"; then
Chris@350 6253 if test -n "$SV_MODULE_LIB"; then
Chris@350 6254 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 6256 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 6257 if eval \${$as_ac_Lib+:} false; then :
Chris@350 6258 $as_echo_n "(cached) " >&6
Chris@350 6259 else
Chris@350 6260 ac_check_lib_save_LIBS=$LIBS
Chris@350 6261 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 6263 /* end confdefs.h. */
Chris@350 6264
Chris@350 6265 /* Override any GCC internal prototype to avoid an error.
Chris@350 6266 Use char because int might match the return type of a GCC
Chris@350 6267 builtin and then its argument prototype would still apply. */
Chris@350 6268 #ifdef __cplusplus
Chris@350 6269 extern "C"
Chris@350 6270 #endif
Chris@350 6271 char $SV_MODULE_FUNC ();
Chris@350 6272 int
Chris@350 6273 main ()
Chris@350 6274 {
Chris@350 6275 return $SV_MODULE_FUNC ();
Chris@350 6276 ;
Chris@350 6277 return 0;
Chris@350 6278 }
Chris@350 6279 _ACEOF
Chris@350 6280 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 6281 eval "$as_ac_Lib=yes"
Chris@350 6282 else
Chris@350 6283 eval "$as_ac_Lib=no"
Chris@350 6284 fi
Chris@350 6285 rm -f core conftest.err conftest.$ac_objext \
Chris@350 6286 conftest$ac_exeext conftest.$ac_ext
Chris@350 6287 LIBS=$ac_check_lib_save_LIBS
Chris@350 6288 fi
Chris@350 6289 eval ac_res=\$$as_ac_Lib
Chris@350 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 6291 $as_echo "$ac_res" >&6; }
Chris@594 6292 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 6293 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6294 else
Chris@350 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
Chris@350 6296 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 6297 fi
Chris@350 6298
Chris@350 6299 fi
Chris@350 6300 fi
Chris@350 6301 fi
Chris@350 6302
Chris@350 6303
Chris@572 6304 SV_MODULE_MODULE=libpulse
Chris@572 6305 SV_MODULE_VERSION_TEST="libpulse >= 0.9"
Chris@572 6306 SV_MODULE_HEADER=pulse/pulseaudio.h
Chris@572 6307 SV_MODULE_LIB=pulse
Chris@572 6308 SV_MODULE_FUNC=pa_stream_new
Chris@572 6309 SV_MODULE_HAVE=HAVE_$(echo libpulse | tr 'a-z' 'A-Z')
Chris@350 6310 SV_MODULE_FAILED=1
Chris@572 6311 if test -n "$libpulse_LIBS" ; then
Chris@405 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 6313 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@572 6314 CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS"
Chris@572 6315 LIBS="$LIBS $libpulse_LIBS"
Chris@405 6316 SV_MODULE_FAILED=""
Chris@405 6317 fi
Chris@350 6318 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6319 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6320 fi
Chris@405 6321 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 6322
Chris@350 6323 pkg_failed=no
Chris@1969 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse" >&5
Chris@1969 6325 $as_echo_n "checking for libpulse... " >&6; }
Chris@572 6326
Chris@594 6327 if test -n "$libpulse_CFLAGS"; then
Chris@594 6328 pkg_cv_libpulse_CFLAGS="$libpulse_CFLAGS"
Chris@594 6329 elif test -n "$PKG_CONFIG"; then
Chris@594 6330 if test -n "$PKG_CONFIG" && \
Chris@350 6331 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 6332 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6333 ac_status=$?
Chris@350 6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 6335 test $ac_status = 0; }; then
Chris@572 6336 pkg_cv_libpulse_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6337 test "x$?" != "x0" && pkg_failed=yes
Chris@350 6338 else
Chris@350 6339 pkg_failed=yes
Chris@350 6340 fi
Chris@594 6341 else
Chris@594 6342 pkg_failed=untried
Chris@594 6343 fi
Chris@594 6344 if test -n "$libpulse_LIBS"; then
Chris@594 6345 pkg_cv_libpulse_LIBS="$libpulse_LIBS"
Chris@594 6346 elif test -n "$PKG_CONFIG"; then
Chris@594 6347 if test -n "$PKG_CONFIG" && \
Chris@350 6348 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 6349 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6350 ac_status=$?
Chris@350 6351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 6352 test $ac_status = 0; }; then
Chris@572 6353 pkg_cv_libpulse_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6354 test "x$?" != "x0" && pkg_failed=yes
Chris@350 6355 else
Chris@350 6356 pkg_failed=yes
Chris@350 6357 fi
Chris@594 6358 else
Chris@594 6359 pkg_failed=untried
Chris@350 6360 fi
Chris@350 6361
Chris@350 6362
Chris@350 6363
Chris@350 6364 if test $pkg_failed = yes; then
Chris@1969 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6366 $as_echo "no" >&6; }
Chris@350 6367
Chris@350 6368 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 6369 _pkg_short_errors_supported=yes
Chris@350 6370 else
Chris@350 6371 _pkg_short_errors_supported=no
Chris@350 6372 fi
Chris@350 6373 if test $_pkg_short_errors_supported = yes; then
Chris@594 6374 libpulse_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6375 else
Chris@594 6376 libpulse_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6377 fi
Chris@350 6378 # Put the nasty error message in config.log where it belongs
Chris@572 6379 echo "$libpulse_PKG_ERRORS" >&5
Chris@572 6380
Chris@594 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@572 6382 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6383 elif test $pkg_failed = untried; then
Chris@1969 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6385 $as_echo "no" >&6; }
Chris@457 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@350 6387 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6388 else
Chris@572 6389 libpulse_CFLAGS=$pkg_cv_libpulse_CFLAGS
Chris@572 6390 libpulse_LIBS=$pkg_cv_libpulse_LIBS
Chris@350 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 6392 $as_echo "yes" >&6; }
Chris@572 6393 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS";LIBS="$LIBS $libpulse_LIBS";SV_MODULE_FAILED=""
Chris@350 6394 fi
Chris@350 6395 fi
Chris@350 6396 if test -n "$SV_MODULE_FAILED"; then
Chris@350 6397 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 6398 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 6399 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@350 6400 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@350 6401 else
Chris@350 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
Chris@350 6403 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 6404 fi
Chris@350 6405
Chris@350 6406
Chris@350 6407 if test -z "$SV_MODULE_FAILED"; then
Chris@350 6408 if test -n "$SV_MODULE_LIB"; then
Chris@350 6409 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 6411 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 6412 if eval \${$as_ac_Lib+:} false; then :
Chris@350 6413 $as_echo_n "(cached) " >&6
Chris@350 6414 else
Chris@350 6415 ac_check_lib_save_LIBS=$LIBS
Chris@350 6416 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 6418 /* end confdefs.h. */
Chris@350 6419
Chris@350 6420 /* Override any GCC internal prototype to avoid an error.
Chris@350 6421 Use char because int might match the return type of a GCC
Chris@350 6422 builtin and then its argument prototype would still apply. */
Chris@350 6423 #ifdef __cplusplus
Chris@350 6424 extern "C"
Chris@350 6425 #endif
Chris@350 6426 char $SV_MODULE_FUNC ();
Chris@350 6427 int
Chris@350 6428 main ()
Chris@350 6429 {
Chris@350 6430 return $SV_MODULE_FUNC ();
Chris@350 6431 ;
Chris@350 6432 return 0;
Chris@350 6433 }
Chris@350 6434 _ACEOF
Chris@350 6435 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 6436 eval "$as_ac_Lib=yes"
Chris@350 6437 else
Chris@350 6438 eval "$as_ac_Lib=no"
Chris@350 6439 fi
Chris@350 6440 rm -f core conftest.err conftest.$ac_objext \
Chris@350 6441 conftest$ac_exeext conftest.$ac_ext
Chris@350 6442 LIBS=$ac_check_lib_save_LIBS
Chris@350 6443 fi
Chris@350 6444 eval ac_res=\$$as_ac_Lib
Chris@350 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 6446 $as_echo "$ac_res" >&6; }
Chris@594 6447 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 6448 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6449 else
Chris@350 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
Chris@350 6451 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@350 6452 fi
Chris@350 6453
Chris@350 6454 fi
Chris@350 6455 fi
Chris@350 6456 fi
Chris@350 6457
Chris@350 6458
Chris@2270 6459
Chris@572 6460 SV_MODULE_MODULE=lrdf
Chris@572 6461 SV_MODULE_VERSION_TEST="lrdf >= 0.2"
Chris@572 6462 SV_MODULE_HEADER=lrdf.h
Chris@572 6463 SV_MODULE_LIB=lrdf
Chris@572 6464 SV_MODULE_FUNC=lrdf_init
Chris@572 6465 SV_MODULE_HAVE=HAVE_$(echo lrdf | tr 'a-z' 'A-Z')
Chris@350 6466 SV_MODULE_FAILED=1
Chris@572 6467 if test -n "$lrdf_LIBS" ; then
Chris@405 6468 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 6469 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@572 6470 CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS"
Chris@572 6471 LIBS="$LIBS $lrdf_LIBS"
Chris@405 6472 SV_MODULE_FAILED=""
Chris@405 6473 fi
Chris@350 6474 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6475 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6476 fi
Chris@405 6477 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 6478
Chris@350 6479 pkg_failed=no
Chris@1969 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrdf" >&5
Chris@1969 6481 $as_echo_n "checking for lrdf... " >&6; }
Chris@572 6482
Chris@594 6483 if test -n "$lrdf_CFLAGS"; then
Chris@594 6484 pkg_cv_lrdf_CFLAGS="$lrdf_CFLAGS"
Chris@594 6485 elif test -n "$PKG_CONFIG"; then
Chris@594 6486 if test -n "$PKG_CONFIG" && \
Chris@350 6487 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 6488 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6489 ac_status=$?
Chris@350 6490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 6491 test $ac_status = 0; }; then
Chris@572 6492 pkg_cv_lrdf_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6493 test "x$?" != "x0" && pkg_failed=yes
Chris@350 6494 else
Chris@350 6495 pkg_failed=yes
Chris@350 6496 fi
Chris@594 6497 else
Chris@594 6498 pkg_failed=untried
Chris@594 6499 fi
Chris@594 6500 if test -n "$lrdf_LIBS"; then
Chris@594 6501 pkg_cv_lrdf_LIBS="$lrdf_LIBS"
Chris@594 6502 elif test -n "$PKG_CONFIG"; then
Chris@594 6503 if test -n "$PKG_CONFIG" && \
Chris@350 6504 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 6505 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6506 ac_status=$?
Chris@350 6507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 6508 test $ac_status = 0; }; then
Chris@572 6509 pkg_cv_lrdf_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6510 test "x$?" != "x0" && pkg_failed=yes
Chris@350 6511 else
Chris@350 6512 pkg_failed=yes
Chris@350 6513 fi
Chris@594 6514 else
Chris@594 6515 pkg_failed=untried
Chris@350 6516 fi
Chris@350 6517
Chris@350 6518
Chris@350 6519
Chris@350 6520 if test $pkg_failed = yes; then
Chris@1969 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6522 $as_echo "no" >&6; }
Chris@350 6523
Chris@350 6524 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 6525 _pkg_short_errors_supported=yes
Chris@350 6526 else
Chris@350 6527 _pkg_short_errors_supported=no
Chris@350 6528 fi
Chris@350 6529 if test $_pkg_short_errors_supported = yes; then
Chris@594 6530 lrdf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6531 else
Chris@594 6532 lrdf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6533 fi
Chris@350 6534 # Put the nasty error message in config.log where it belongs
Chris@572 6535 echo "$lrdf_PKG_ERRORS" >&5
Chris@572 6536
Chris@2270 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2270 6538 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6539 elif test $pkg_failed = untried; then
Chris@1969 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6541 $as_echo "no" >&6; }
Chris@2270 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2270 6543 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6544 else
Chris@572 6545 lrdf_CFLAGS=$pkg_cv_lrdf_CFLAGS
Chris@572 6546 lrdf_LIBS=$pkg_cv_lrdf_LIBS
Chris@350 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 6548 $as_echo "yes" >&6; }
Chris@572 6549 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS";LIBS="$LIBS $lrdf_LIBS";SV_MODULE_FAILED=""
Chris@350 6550 fi
Chris@350 6551 fi
Chris@350 6552 if test -n "$SV_MODULE_FAILED"; then
Chris@350 6553 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 6554 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 6555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@2270 6556 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@2270 6557 else
Chris@2270 6558 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2270 6559 fi
Chris@2270 6560
Chris@2270 6561
Chris@2270 6562 if test -n "$SV_MODULE_LIB"; then
Chris@2270 6563 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 6565 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 6566 if eval \${$as_ac_Lib+:} false; then :
Chris@350 6567 $as_echo_n "(cached) " >&6
Chris@350 6568 else
Chris@350 6569 ac_check_lib_save_LIBS=$LIBS
Chris@350 6570 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 6572 /* end confdefs.h. */
Chris@350 6573
Chris@350 6574 /* Override any GCC internal prototype to avoid an error.
Chris@350 6575 Use char because int might match the return type of a GCC
Chris@350 6576 builtin and then its argument prototype would still apply. */
Chris@350 6577 #ifdef __cplusplus
Chris@350 6578 extern "C"
Chris@350 6579 #endif
Chris@350 6580 char $SV_MODULE_FUNC ();
Chris@350 6581 int
Chris@350 6582 main ()
Chris@350 6583 {
Chris@350 6584 return $SV_MODULE_FUNC ();
Chris@350 6585 ;
Chris@350 6586 return 0;
Chris@350 6587 }
Chris@350 6588 _ACEOF
Chris@350 6589 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 6590 eval "$as_ac_Lib=yes"
Chris@350 6591 else
Chris@350 6592 eval "$as_ac_Lib=no"
Chris@350 6593 fi
Chris@350 6594 rm -f core conftest.err conftest.$ac_objext \
Chris@350 6595 conftest$ac_exeext conftest.$ac_ext
Chris@350 6596 LIBS=$ac_check_lib_save_LIBS
Chris@350 6597 fi
Chris@350 6598 eval ac_res=\$$as_ac_Lib
Chris@350 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 6600 $as_echo "$ac_res" >&6; }
Chris@594 6601 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 6602 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6603 else
Chris@2270 6604 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2270 6605 fi
Chris@2270 6606
Chris@350 6607 fi
Chris@350 6608 fi
Chris@350 6609
Chris@350 6610
Chris@572 6611 SV_MODULE_MODULE=oggz
Chris@572 6612 SV_MODULE_VERSION_TEST="oggz >= 1.0.0"
Chris@572 6613 SV_MODULE_HEADER=oggz/oggz.h
Chris@572 6614 SV_MODULE_LIB=oggz
Chris@572 6615 SV_MODULE_FUNC=oggz_run
Chris@572 6616 SV_MODULE_HAVE=HAVE_$(echo oggz | tr 'a-z' 'A-Z')
Chris@350 6617 SV_MODULE_FAILED=1
Chris@572 6618 if test -n "$oggz_LIBS" ; then
Chris@405 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 6620 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@572 6621 CXXFLAGS="$CXXFLAGS $oggz_CFLAGS"
Chris@572 6622 LIBS="$LIBS $oggz_LIBS"
Chris@405 6623 SV_MODULE_FAILED=""
Chris@405 6624 fi
Chris@350 6625 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6626 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6627 fi
Chris@405 6628 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 6629
Chris@350 6630 pkg_failed=no
Chris@1969 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oggz" >&5
Chris@1969 6632 $as_echo_n "checking for oggz... " >&6; }
Chris@572 6633
Chris@594 6634 if test -n "$oggz_CFLAGS"; then
Chris@594 6635 pkg_cv_oggz_CFLAGS="$oggz_CFLAGS"
Chris@594 6636 elif test -n "$PKG_CONFIG"; then
Chris@594 6637 if test -n "$PKG_CONFIG" && \
Chris@350 6638 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 6639 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6640 ac_status=$?
Chris@350 6641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 6642 test $ac_status = 0; }; then
Chris@572 6643 pkg_cv_oggz_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6644 test "x$?" != "x0" && pkg_failed=yes
Chris@350 6645 else
Chris@350 6646 pkg_failed=yes
Chris@350 6647 fi
Chris@594 6648 else
Chris@594 6649 pkg_failed=untried
Chris@594 6650 fi
Chris@594 6651 if test -n "$oggz_LIBS"; then
Chris@594 6652 pkg_cv_oggz_LIBS="$oggz_LIBS"
Chris@594 6653 elif test -n "$PKG_CONFIG"; then
Chris@594 6654 if test -n "$PKG_CONFIG" && \
Chris@350 6655 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 6656 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6657 ac_status=$?
Chris@350 6658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 6659 test $ac_status = 0; }; then
Chris@572 6660 pkg_cv_oggz_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6661 test "x$?" != "x0" && pkg_failed=yes
Chris@350 6662 else
Chris@350 6663 pkg_failed=yes
Chris@350 6664 fi
Chris@594 6665 else
Chris@594 6666 pkg_failed=untried
Chris@350 6667 fi
Chris@350 6668
Chris@350 6669
Chris@350 6670
Chris@350 6671 if test $pkg_failed = yes; then
Chris@1969 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6673 $as_echo "no" >&6; }
Chris@350 6674
Chris@350 6675 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 6676 _pkg_short_errors_supported=yes
Chris@350 6677 else
Chris@350 6678 _pkg_short_errors_supported=no
Chris@350 6679 fi
Chris@350 6680 if test $_pkg_short_errors_supported = yes; then
Chris@594 6681 oggz_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6682 else
Chris@594 6683 oggz_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6684 fi
Chris@350 6685 # Put the nasty error message in config.log where it belongs
Chris@572 6686 echo "$oggz_PKG_ERRORS" >&5
Chris@572 6687
Chris@2270 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2270 6689 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6690 elif test $pkg_failed = untried; then
Chris@1969 6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6692 $as_echo "no" >&6; }
Chris@2270 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2270 6694 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6695 else
Chris@572 6696 oggz_CFLAGS=$pkg_cv_oggz_CFLAGS
Chris@572 6697 oggz_LIBS=$pkg_cv_oggz_LIBS
Chris@350 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 6699 $as_echo "yes" >&6; }
Chris@572 6700 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $oggz_CFLAGS";LIBS="$LIBS $oggz_LIBS";SV_MODULE_FAILED=""
Chris@350 6701 fi
Chris@350 6702 fi
Chris@350 6703 if test -n "$SV_MODULE_FAILED"; then
Chris@350 6704 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 6705 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 6706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@2270 6707 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@2270 6708 else
Chris@2270 6709 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2270 6710 fi
Chris@2270 6711
Chris@2270 6712
Chris@2270 6713 if test -n "$SV_MODULE_LIB"; then
Chris@2270 6714 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 6716 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 6717 if eval \${$as_ac_Lib+:} false; then :
Chris@350 6718 $as_echo_n "(cached) " >&6
Chris@350 6719 else
Chris@350 6720 ac_check_lib_save_LIBS=$LIBS
Chris@350 6721 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 6723 /* end confdefs.h. */
Chris@350 6724
Chris@350 6725 /* Override any GCC internal prototype to avoid an error.
Chris@350 6726 Use char because int might match the return type of a GCC
Chris@350 6727 builtin and then its argument prototype would still apply. */
Chris@350 6728 #ifdef __cplusplus
Chris@350 6729 extern "C"
Chris@350 6730 #endif
Chris@350 6731 char $SV_MODULE_FUNC ();
Chris@350 6732 int
Chris@350 6733 main ()
Chris@350 6734 {
Chris@350 6735 return $SV_MODULE_FUNC ();
Chris@350 6736 ;
Chris@350 6737 return 0;
Chris@350 6738 }
Chris@350 6739 _ACEOF
Chris@350 6740 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 6741 eval "$as_ac_Lib=yes"
Chris@350 6742 else
Chris@350 6743 eval "$as_ac_Lib=no"
Chris@350 6744 fi
Chris@350 6745 rm -f core conftest.err conftest.$ac_objext \
Chris@350 6746 conftest$ac_exeext conftest.$ac_ext
Chris@350 6747 LIBS=$ac_check_lib_save_LIBS
Chris@350 6748 fi
Chris@350 6749 eval ac_res=\$$as_ac_Lib
Chris@350 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 6751 $as_echo "$ac_res" >&6; }
Chris@594 6752 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 6753 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6754 else
Chris@2270 6755 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2270 6756 fi
Chris@2270 6757
Chris@350 6758 fi
Chris@350 6759 fi
Chris@350 6760
Chris@350 6761
Chris@572 6762 SV_MODULE_MODULE=fishsound
Chris@572 6763 SV_MODULE_VERSION_TEST="fishsound >= 1.0.0"
Chris@572 6764 SV_MODULE_HEADER=fishsound/fishsound.h
Chris@572 6765 SV_MODULE_LIB=fishsound
Chris@572 6766 SV_MODULE_FUNC=fish_sound_new
Chris@572 6767 SV_MODULE_HAVE=HAVE_$(echo fishsound | tr 'a-z' 'A-Z')
Chris@350 6768 SV_MODULE_FAILED=1
Chris@572 6769 if test -n "$fishsound_LIBS" ; then
Chris@405 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 6771 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@572 6772 CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS"
Chris@572 6773 LIBS="$LIBS $fishsound_LIBS"
Chris@405 6774 SV_MODULE_FAILED=""
Chris@405 6775 fi
Chris@350 6776 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6777 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6778 fi
Chris@405 6779 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 6780
Chris@350 6781 pkg_failed=no
Chris@1969 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fishsound" >&5
Chris@1969 6783 $as_echo_n "checking for fishsound... " >&6; }
Chris@572 6784
Chris@594 6785 if test -n "$fishsound_CFLAGS"; then
Chris@594 6786 pkg_cv_fishsound_CFLAGS="$fishsound_CFLAGS"
Chris@594 6787 elif test -n "$PKG_CONFIG"; then
Chris@594 6788 if test -n "$PKG_CONFIG" && \
Chris@350 6789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 6790 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6791 ac_status=$?
Chris@350 6792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 6793 test $ac_status = 0; }; then
Chris@572 6794 pkg_cv_fishsound_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6795 test "x$?" != "x0" && pkg_failed=yes
Chris@350 6796 else
Chris@350 6797 pkg_failed=yes
Chris@350 6798 fi
Chris@594 6799 else
Chris@594 6800 pkg_failed=untried
Chris@594 6801 fi
Chris@594 6802 if test -n "$fishsound_LIBS"; then
Chris@594 6803 pkg_cv_fishsound_LIBS="$fishsound_LIBS"
Chris@594 6804 elif test -n "$PKG_CONFIG"; then
Chris@594 6805 if test -n "$PKG_CONFIG" && \
Chris@350 6806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 6807 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6808 ac_status=$?
Chris@350 6809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 6810 test $ac_status = 0; }; then
Chris@572 6811 pkg_cv_fishsound_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6812 test "x$?" != "x0" && pkg_failed=yes
Chris@350 6813 else
Chris@350 6814 pkg_failed=yes
Chris@350 6815 fi
Chris@594 6816 else
Chris@594 6817 pkg_failed=untried
Chris@350 6818 fi
Chris@350 6819
Chris@350 6820
Chris@350 6821
Chris@350 6822 if test $pkg_failed = yes; then
Chris@1969 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6824 $as_echo "no" >&6; }
Chris@350 6825
Chris@350 6826 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 6827 _pkg_short_errors_supported=yes
Chris@350 6828 else
Chris@350 6829 _pkg_short_errors_supported=no
Chris@350 6830 fi
Chris@350 6831 if test $_pkg_short_errors_supported = yes; then
Chris@594 6832 fishsound_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6833 else
Chris@594 6834 fishsound_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6835 fi
Chris@350 6836 # Put the nasty error message in config.log where it belongs
Chris@572 6837 echo "$fishsound_PKG_ERRORS" >&5
Chris@572 6838
Chris@2270 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2270 6840 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6841 elif test $pkg_failed = untried; then
Chris@1969 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6843 $as_echo "no" >&6; }
Chris@2270 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2270 6845 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6846 else
Chris@572 6847 fishsound_CFLAGS=$pkg_cv_fishsound_CFLAGS
Chris@572 6848 fishsound_LIBS=$pkg_cv_fishsound_LIBS
Chris@350 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 6850 $as_echo "yes" >&6; }
Chris@572 6851 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS";LIBS="$LIBS $fishsound_LIBS";SV_MODULE_FAILED=""
Chris@350 6852 fi
Chris@350 6853 fi
Chris@350 6854 if test -n "$SV_MODULE_FAILED"; then
Chris@350 6855 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 6856 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 6857 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@2270 6858 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@2270 6859 else
Chris@2270 6860 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2270 6861 fi
Chris@2270 6862
Chris@2270 6863
Chris@2270 6864 if test -n "$SV_MODULE_LIB"; then
Chris@2270 6865 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 6867 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 6868 if eval \${$as_ac_Lib+:} false; then :
Chris@350 6869 $as_echo_n "(cached) " >&6
Chris@350 6870 else
Chris@350 6871 ac_check_lib_save_LIBS=$LIBS
Chris@350 6872 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@350 6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@350 6874 /* end confdefs.h. */
Chris@350 6875
Chris@350 6876 /* Override any GCC internal prototype to avoid an error.
Chris@350 6877 Use char because int might match the return type of a GCC
Chris@350 6878 builtin and then its argument prototype would still apply. */
Chris@350 6879 #ifdef __cplusplus
Chris@350 6880 extern "C"
Chris@350 6881 #endif
Chris@350 6882 char $SV_MODULE_FUNC ();
Chris@350 6883 int
Chris@350 6884 main ()
Chris@350 6885 {
Chris@350 6886 return $SV_MODULE_FUNC ();
Chris@350 6887 ;
Chris@350 6888 return 0;
Chris@350 6889 }
Chris@350 6890 _ACEOF
Chris@350 6891 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@350 6892 eval "$as_ac_Lib=yes"
Chris@350 6893 else
Chris@350 6894 eval "$as_ac_Lib=no"
Chris@350 6895 fi
Chris@350 6896 rm -f core conftest.err conftest.$ac_objext \
Chris@350 6897 conftest$ac_exeext conftest.$ac_ext
Chris@350 6898 LIBS=$ac_check_lib_save_LIBS
Chris@350 6899 fi
Chris@350 6900 eval ac_res=\$$as_ac_Lib
Chris@350 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@350 6902 $as_echo "$ac_res" >&6; }
Chris@594 6903 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@350 6904 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@350 6905 else
Chris@2270 6906 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2270 6907 fi
Chris@2270 6908
Chris@350 6909 fi
Chris@350 6910 fi
Chris@350 6911
Chris@350 6912
Chris@572 6913 SV_MODULE_MODULE=mad
Chris@572 6914 SV_MODULE_VERSION_TEST="mad >= 0.15.0"
Chris@572 6915 SV_MODULE_HEADER=mad.h
Chris@572 6916 SV_MODULE_LIB=mad
Chris@572 6917 SV_MODULE_FUNC=mad_decoder_init
Chris@572 6918 SV_MODULE_HAVE=HAVE_$(echo mad | tr 'a-z' 'A-Z')
Chris@350 6919 SV_MODULE_FAILED=1
Chris@572 6920 if test -n "$mad_LIBS" ; then
Chris@405 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@405 6922 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@572 6923 CXXFLAGS="$CXXFLAGS $mad_CFLAGS"
Chris@572 6924 LIBS="$LIBS $mad_LIBS"
Chris@405 6925 SV_MODULE_FAILED=""
Chris@405 6926 fi
Chris@350 6927 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@350 6928 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@350 6929 fi
Chris@405 6930 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@350 6931
Chris@350 6932 pkg_failed=no
Chris@1969 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad" >&5
Chris@1969 6934 $as_echo_n "checking for mad... " >&6; }
Chris@572 6935
Chris@594 6936 if test -n "$mad_CFLAGS"; then
Chris@594 6937 pkg_cv_mad_CFLAGS="$mad_CFLAGS"
Chris@594 6938 elif test -n "$PKG_CONFIG"; then
Chris@594 6939 if test -n "$PKG_CONFIG" && \
Chris@350 6940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 6941 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6942 ac_status=$?
Chris@350 6943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 6944 test $ac_status = 0; }; then
Chris@572 6945 pkg_cv_mad_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6946 test "x$?" != "x0" && pkg_failed=yes
Chris@350 6947 else
Chris@350 6948 pkg_failed=yes
Chris@350 6949 fi
Chris@594 6950 else
Chris@594 6951 pkg_failed=untried
Chris@594 6952 fi
Chris@594 6953 if test -n "$mad_LIBS"; then
Chris@594 6954 pkg_cv_mad_LIBS="$mad_LIBS"
Chris@594 6955 elif test -n "$PKG_CONFIG"; then
Chris@594 6956 if test -n "$PKG_CONFIG" && \
Chris@350 6957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@350 6958 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@350 6959 ac_status=$?
Chris@350 6960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@350 6961 test $ac_status = 0; }; then
Chris@572 6962 pkg_cv_mad_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 6963 test "x$?" != "x0" && pkg_failed=yes
Chris@350 6964 else
Chris@350 6965 pkg_failed=yes
Chris@350 6966 fi
Chris@594 6967 else
Chris@594 6968 pkg_failed=untried
Chris@350 6969 fi
Chris@350 6970
Chris@350 6971
Chris@350 6972
Chris@350 6973 if test $pkg_failed = yes; then
Chris@1969 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6975 $as_echo "no" >&6; }
Chris@350 6976
Chris@350 6977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@350 6978 _pkg_short_errors_supported=yes
Chris@350 6979 else
Chris@350 6980 _pkg_short_errors_supported=no
Chris@350 6981 fi
Chris@350 6982 if test $_pkg_short_errors_supported = yes; then
Chris@594 6983 mad_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6984 else
Chris@594 6985 mad_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@350 6986 fi
Chris@350 6987 # Put the nasty error message in config.log where it belongs
Chris@572 6988 echo "$mad_PKG_ERRORS" >&5
Chris@572 6989
Chris@2270 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2270 6991 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6992 elif test $pkg_failed = untried; then
Chris@1969 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 6994 $as_echo "no" >&6; }
Chris@2270 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2270 6996 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 6997 else
Chris@572 6998 mad_CFLAGS=$pkg_cv_mad_CFLAGS
Chris@572 6999 mad_LIBS=$pkg_cv_mad_LIBS
Chris@350 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@350 7001 $as_echo "yes" >&6; }
Chris@572 7002 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $mad_CFLAGS";LIBS="$LIBS $mad_LIBS";SV_MODULE_FAILED=""
Chris@350 7003 fi
Chris@350 7004 fi
Chris@350 7005 if test -n "$SV_MODULE_FAILED"; then
Chris@350 7006 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@350 7007 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 7008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@2270 7009 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@2270 7010 else
Chris@2270 7011 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2270 7012 fi
Chris@2270 7013
Chris@2270 7014
Chris@2270 7015 if test -n "$SV_MODULE_LIB"; then
Chris@2270 7016 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@350 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@350 7018 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 7019 if eval \${$as_ac_Lib+:} false; then :
Chris@488 7020 $as_echo_n "(cached) " >&6
Chris@488 7021 else
Chris@488 7022 ac_check_lib_save_LIBS=$LIBS
Chris@488 7023 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@488 7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@488 7025 /* end confdefs.h. */
Chris@488 7026
Chris@488 7027 /* Override any GCC internal prototype to avoid an error.
Chris@488 7028 Use char because int might match the return type of a GCC
Chris@488 7029 builtin and then its argument prototype would still apply. */
Chris@488 7030 #ifdef __cplusplus
Chris@488 7031 extern "C"
Chris@488 7032 #endif
Chris@488 7033 char $SV_MODULE_FUNC ();
Chris@488 7034 int
Chris@488 7035 main ()
Chris@488 7036 {
Chris@488 7037 return $SV_MODULE_FUNC ();
Chris@488 7038 ;
Chris@488 7039 return 0;
Chris@488 7040 }
Chris@488 7041 _ACEOF
Chris@488 7042 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@488 7043 eval "$as_ac_Lib=yes"
Chris@488 7044 else
Chris@488 7045 eval "$as_ac_Lib=no"
Chris@488 7046 fi
Chris@488 7047 rm -f core conftest.err conftest.$ac_objext \
Chris@488 7048 conftest$ac_exeext conftest.$ac_ext
Chris@488 7049 LIBS=$ac_check_lib_save_LIBS
Chris@488 7050 fi
Chris@488 7051 eval ac_res=\$$as_ac_Lib
Chris@488 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@488 7053 $as_echo "$ac_res" >&6; }
Chris@594 7054 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@572 7055 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@572 7056 else
Chris@2270 7057 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2270 7058 fi
Chris@2270 7059
Chris@572 7060 fi
Chris@572 7061 fi
Chris@572 7062
Chris@572 7063
Chris@572 7064 SV_MODULE_MODULE=id3tag
Chris@572 7065 SV_MODULE_VERSION_TEST="id3tag >= 0.15.0"
Chris@572 7066 SV_MODULE_HEADER=id3tag.h
Chris@572 7067 SV_MODULE_LIB=id3tag
Chris@572 7068 SV_MODULE_FUNC=id3_tag_new
Chris@572 7069 SV_MODULE_HAVE=HAVE_$(echo id3tag | tr 'a-z' 'A-Z')
Chris@572 7070 SV_MODULE_FAILED=1
Chris@572 7071 if test -n "$id3tag_LIBS" ; then
Chris@572 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@572 7073 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@572 7074 CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS"
Chris@572 7075 LIBS="$LIBS $id3tag_LIBS"
Chris@572 7076 SV_MODULE_FAILED=""
Chris@572 7077 fi
Chris@572 7078 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@572 7079 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@572 7080 fi
Chris@572 7081 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@572 7082
Chris@572 7083 pkg_failed=no
Chris@1969 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3tag" >&5
Chris@1969 7085 $as_echo_n "checking for id3tag... " >&6; }
Chris@572 7086
Chris@594 7087 if test -n "$id3tag_CFLAGS"; then
Chris@594 7088 pkg_cv_id3tag_CFLAGS="$id3tag_CFLAGS"
Chris@594 7089 elif test -n "$PKG_CONFIG"; then
Chris@594 7090 if test -n "$PKG_CONFIG" && \
Chris@572 7091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@572 7092 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@572 7093 ac_status=$?
Chris@572 7094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@572 7095 test $ac_status = 0; }; then
Chris@572 7096 pkg_cv_id3tag_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 7097 test "x$?" != "x0" && pkg_failed=yes
Chris@572 7098 else
Chris@572 7099 pkg_failed=yes
Chris@572 7100 fi
Chris@594 7101 else
Chris@594 7102 pkg_failed=untried
Chris@594 7103 fi
Chris@594 7104 if test -n "$id3tag_LIBS"; then
Chris@594 7105 pkg_cv_id3tag_LIBS="$id3tag_LIBS"
Chris@594 7106 elif test -n "$PKG_CONFIG"; then
Chris@594 7107 if test -n "$PKG_CONFIG" && \
Chris@572 7108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@572 7109 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@572 7110 ac_status=$?
Chris@572 7111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@572 7112 test $ac_status = 0; }; then
Chris@572 7113 pkg_cv_id3tag_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 7114 test "x$?" != "x0" && pkg_failed=yes
Chris@572 7115 else
Chris@572 7116 pkg_failed=yes
Chris@572 7117 fi
Chris@594 7118 else
Chris@594 7119 pkg_failed=untried
Chris@572 7120 fi
Chris@572 7121
Chris@572 7122
Chris@572 7123
Chris@572 7124 if test $pkg_failed = yes; then
Chris@1969 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 7126 $as_echo "no" >&6; }
Chris@572 7127
Chris@572 7128 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@572 7129 _pkg_short_errors_supported=yes
Chris@572 7130 else
Chris@572 7131 _pkg_short_errors_supported=no
Chris@572 7132 fi
Chris@572 7133 if test $_pkg_short_errors_supported = yes; then
Chris@594 7134 id3tag_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@572 7135 else
Chris@594 7136 id3tag_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@572 7137 fi
Chris@572 7138 # Put the nasty error message in config.log where it belongs
Chris@572 7139 echo "$id3tag_PKG_ERRORS" >&5
Chris@572 7140
Chris@2270 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2270 7142 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 7143 elif test $pkg_failed = untried; then
Chris@1969 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 7145 $as_echo "no" >&6; }
Chris@2270 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2270 7147 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 7148 else
Chris@572 7149 id3tag_CFLAGS=$pkg_cv_id3tag_CFLAGS
Chris@572 7150 id3tag_LIBS=$pkg_cv_id3tag_LIBS
Chris@572 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@572 7152 $as_echo "yes" >&6; }
Chris@572 7153 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS";LIBS="$LIBS $id3tag_LIBS";SV_MODULE_FAILED=""
Chris@572 7154 fi
Chris@572 7155 fi
Chris@572 7156 if test -n "$SV_MODULE_FAILED"; then
Chris@572 7157 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@572 7158 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 7159 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@2270 7160 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@2270 7161 else
Chris@2270 7162 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2270 7163 fi
Chris@2270 7164
Chris@2270 7165
Chris@2270 7166 if test -n "$SV_MODULE_LIB"; then
Chris@2270 7167 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@572 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@572 7169 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 7170 if eval \${$as_ac_Lib+:} false; then :
Chris@572 7171 $as_echo_n "(cached) " >&6
Chris@572 7172 else
Chris@572 7173 ac_check_lib_save_LIBS=$LIBS
Chris@572 7174 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@572 7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@572 7176 /* end confdefs.h. */
Chris@572 7177
Chris@572 7178 /* Override any GCC internal prototype to avoid an error.
Chris@572 7179 Use char because int might match the return type of a GCC
Chris@572 7180 builtin and then its argument prototype would still apply. */
Chris@572 7181 #ifdef __cplusplus
Chris@572 7182 extern "C"
Chris@572 7183 #endif
Chris@572 7184 char $SV_MODULE_FUNC ();
Chris@572 7185 int
Chris@572 7186 main ()
Chris@572 7187 {
Chris@572 7188 return $SV_MODULE_FUNC ();
Chris@572 7189 ;
Chris@572 7190 return 0;
Chris@572 7191 }
Chris@572 7192 _ACEOF
Chris@572 7193 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@572 7194 eval "$as_ac_Lib=yes"
Chris@572 7195 else
Chris@572 7196 eval "$as_ac_Lib=no"
Chris@572 7197 fi
Chris@572 7198 rm -f core conftest.err conftest.$ac_objext \
Chris@572 7199 conftest$ac_exeext conftest.$ac_ext
Chris@572 7200 LIBS=$ac_check_lib_save_LIBS
Chris@572 7201 fi
Chris@572 7202 eval ac_res=\$$as_ac_Lib
Chris@572 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@572 7204 $as_echo "$ac_res" >&6; }
Chris@594 7205 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@572 7206 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@572 7207 else
Chris@2270 7208 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2270 7209 fi
Chris@2270 7210
Chris@572 7211 fi
Chris@572 7212 fi
Chris@572 7213
Chris@572 7214
Chris@2192 7215 SV_MODULE_MODULE=opus
Chris@2192 7216 SV_MODULE_VERSION_TEST="opusfile"
Chris@2192 7217 SV_MODULE_HEADER=opus/opusfile.h
Chris@2192 7218 SV_MODULE_LIB=opusfile
Chris@2192 7219 SV_MODULE_FUNC=op_read_float
Chris@2192 7220 SV_MODULE_HAVE=HAVE_$(echo opus | tr 'a-z' 'A-Z')
Chris@2192 7221 SV_MODULE_FAILED=1
Chris@2192 7222 if test -n "$opus_LIBS" ; then
Chris@2192 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@2192 7224 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@2192 7225 CXXFLAGS="$CXXFLAGS $opus_CFLAGS"
Chris@2192 7226 LIBS="$LIBS $opus_LIBS"
Chris@2192 7227 SV_MODULE_FAILED=""
Chris@2192 7228 fi
Chris@2192 7229 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@2192 7230 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@2192 7231 fi
Chris@2192 7232 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@2192 7233
Chris@2192 7234 pkg_failed=no
Chris@2192 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opus" >&5
Chris@2192 7236 $as_echo_n "checking for opus... " >&6; }
Chris@2192 7237
Chris@2192 7238 if test -n "$opus_CFLAGS"; then
Chris@2192 7239 pkg_cv_opus_CFLAGS="$opus_CFLAGS"
Chris@2192 7240 elif test -n "$PKG_CONFIG"; then
Chris@2192 7241 if test -n "$PKG_CONFIG" && \
Chris@2192 7242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@2192 7243 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@2192 7244 ac_status=$?
Chris@2192 7245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@2192 7246 test $ac_status = 0; }; then
Chris@2192 7247 pkg_cv_opus_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@2192 7248 test "x$?" != "x0" && pkg_failed=yes
Chris@2192 7249 else
Chris@2192 7250 pkg_failed=yes
Chris@2192 7251 fi
Chris@2192 7252 else
Chris@2192 7253 pkg_failed=untried
Chris@2192 7254 fi
Chris@2192 7255 if test -n "$opus_LIBS"; then
Chris@2192 7256 pkg_cv_opus_LIBS="$opus_LIBS"
Chris@2192 7257 elif test -n "$PKG_CONFIG"; then
Chris@2192 7258 if test -n "$PKG_CONFIG" && \
Chris@2192 7259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@2192 7260 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@2192 7261 ac_status=$?
Chris@2192 7262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@2192 7263 test $ac_status = 0; }; then
Chris@2192 7264 pkg_cv_opus_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@2192 7265 test "x$?" != "x0" && pkg_failed=yes
Chris@2192 7266 else
Chris@2192 7267 pkg_failed=yes
Chris@2192 7268 fi
Chris@2192 7269 else
Chris@2192 7270 pkg_failed=untried
Chris@2192 7271 fi
Chris@2192 7272
Chris@2192 7273
Chris@2192 7274
Chris@2192 7275 if test $pkg_failed = yes; then
Chris@2192 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@2192 7277 $as_echo "no" >&6; }
Chris@2192 7278
Chris@2192 7279 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@2192 7280 _pkg_short_errors_supported=yes
Chris@2192 7281 else
Chris@2192 7282 _pkg_short_errors_supported=no
Chris@2192 7283 fi
Chris@2192 7284 if test $_pkg_short_errors_supported = yes; then
Chris@2192 7285 opus_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@2192 7286 else
Chris@2192 7287 opus_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@2192 7288 fi
Chris@2192 7289 # Put the nasty error message in config.log where it belongs
Chris@2192 7290 echo "$opus_PKG_ERRORS" >&5
Chris@2192 7291
Chris@2270 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2270 7293 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@2192 7294 elif test $pkg_failed = untried; then
Chris@2192 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@2192 7296 $as_echo "no" >&6; }
Chris@2270 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@2270 7298 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@2192 7299 else
Chris@2192 7300 opus_CFLAGS=$pkg_cv_opus_CFLAGS
Chris@2192 7301 opus_LIBS=$pkg_cv_opus_LIBS
Chris@2192 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@2192 7303 $as_echo "yes" >&6; }
Chris@2192 7304 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $opus_CFLAGS";LIBS="$LIBS $opus_LIBS";SV_MODULE_FAILED=""
Chris@2192 7305 fi
Chris@2192 7306 fi
Chris@2192 7307 if test -n "$SV_MODULE_FAILED"; then
Chris@2192 7308 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@2192 7309 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@2192 7310 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@2270 7311 HAVES="$HAVES $SV_MODULE_HAVE"
Chris@2270 7312 else
Chris@2270 7313 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2270 7314 fi
Chris@2270 7315
Chris@2270 7316
Chris@2270 7317 if test -n "$SV_MODULE_LIB"; then
Chris@2270 7318 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@2192 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@2192 7320 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@2192 7321 if eval \${$as_ac_Lib+:} false; then :
Chris@2192 7322 $as_echo_n "(cached) " >&6
Chris@2192 7323 else
Chris@2192 7324 ac_check_lib_save_LIBS=$LIBS
Chris@2192 7325 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@2192 7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@2192 7327 /* end confdefs.h. */
Chris@2192 7328
Chris@2192 7329 /* Override any GCC internal prototype to avoid an error.
Chris@2192 7330 Use char because int might match the return type of a GCC
Chris@2192 7331 builtin and then its argument prototype would still apply. */
Chris@2192 7332 #ifdef __cplusplus
Chris@2192 7333 extern "C"
Chris@2192 7334 #endif
Chris@2192 7335 char $SV_MODULE_FUNC ();
Chris@2192 7336 int
Chris@2192 7337 main ()
Chris@2192 7338 {
Chris@2192 7339 return $SV_MODULE_FUNC ();
Chris@2192 7340 ;
Chris@2192 7341 return 0;
Chris@2192 7342 }
Chris@2192 7343 _ACEOF
Chris@2192 7344 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@2192 7345 eval "$as_ac_Lib=yes"
Chris@2192 7346 else
Chris@2192 7347 eval "$as_ac_Lib=no"
Chris@2192 7348 fi
Chris@2192 7349 rm -f core conftest.err conftest.$ac_objext \
Chris@2192 7350 conftest$ac_exeext conftest.$ac_ext
Chris@2192 7351 LIBS=$ac_check_lib_save_LIBS
Chris@2192 7352 fi
Chris@2192 7353 eval ac_res=\$$as_ac_Lib
Chris@2192 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@2192 7355 $as_echo "$ac_res" >&6; }
Chris@2192 7356 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@2192 7357 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@2192 7358 else
Chris@2270 7359 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
Chris@2270 7360 fi
Chris@2270 7361
Chris@2192 7362 fi
Chris@2192 7363 fi
Chris@2192 7364
Chris@2192 7365
Chris@572 7366 # Link in -lX11 if it exists -- this is for the X error handler
Chris@572 7367
Chris@572 7368 SV_MODULE_MODULE=X11
Chris@572 7369 SV_MODULE_VERSION_TEST="x11 >= 1.0.0"
Chris@572 7370 SV_MODULE_HEADER=X11/X.h
Chris@572 7371 SV_MODULE_LIB=x11
Chris@572 7372 SV_MODULE_FUNC=XGetErrorText
Chris@572 7373 SV_MODULE_HAVE=HAVE_$(echo X11 | tr 'a-z' 'A-Z')
Chris@572 7374 SV_MODULE_FAILED=1
Chris@572 7375 if test -n "$X11_LIBS" ; then
Chris@572 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
Chris@572 7377 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
Chris@572 7378 CXXFLAGS="$CXXFLAGS $X11_CFLAGS"
Chris@572 7379 LIBS="$LIBS $X11_LIBS"
Chris@572 7380 SV_MODULE_FAILED=""
Chris@572 7381 fi
Chris@572 7382 if test -z "$SV_MODULE_VERSION_TEST" ; then
Chris@572 7383 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
Chris@572 7384 fi
Chris@572 7385 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
Chris@572 7386
Chris@572 7387 pkg_failed=no
Chris@1969 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
Chris@1969 7389 $as_echo_n "checking for X11... " >&6; }
Chris@572 7390
Chris@594 7391 if test -n "$X11_CFLAGS"; then
Chris@594 7392 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
Chris@594 7393 elif test -n "$PKG_CONFIG"; then
Chris@594 7394 if test -n "$PKG_CONFIG" && \
Chris@572 7395 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@572 7396 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@572 7397 ac_status=$?
Chris@572 7398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@572 7399 test $ac_status = 0; }; then
Chris@572 7400 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 7401 test "x$?" != "x0" && pkg_failed=yes
Chris@572 7402 else
Chris@572 7403 pkg_failed=yes
Chris@572 7404 fi
Chris@594 7405 else
Chris@594 7406 pkg_failed=untried
Chris@594 7407 fi
Chris@594 7408 if test -n "$X11_LIBS"; then
Chris@594 7409 pkg_cv_X11_LIBS="$X11_LIBS"
Chris@594 7410 elif test -n "$PKG_CONFIG"; then
Chris@594 7411 if test -n "$PKG_CONFIG" && \
Chris@572 7412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
Chris@572 7413 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
Chris@572 7414 ac_status=$?
Chris@572 7415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris@572 7416 test $ac_status = 0; }; then
Chris@572 7417 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
Chris@594 7418 test "x$?" != "x0" && pkg_failed=yes
Chris@572 7419 else
Chris@572 7420 pkg_failed=yes
Chris@572 7421 fi
Chris@594 7422 else
Chris@594 7423 pkg_failed=untried
Chris@572 7424 fi
Chris@572 7425
Chris@572 7426
Chris@572 7427
Chris@572 7428 if test $pkg_failed = yes; then
Chris@1969 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 7430 $as_echo "no" >&6; }
Chris@572 7431
Chris@572 7432 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Chris@572 7433 _pkg_short_errors_supported=yes
Chris@572 7434 else
Chris@572 7435 _pkg_short_errors_supported=no
Chris@572 7436 fi
Chris@572 7437 if test $_pkg_short_errors_supported = yes; then
Chris@594 7438 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@572 7439 else
Chris@594 7440 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
Chris@572 7441 fi
Chris@572 7442 # Put the nasty error message in config.log where it belongs
Chris@572 7443 echo "$X11_PKG_ERRORS" >&5
Chris@572 7444
Chris@594 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@572 7446 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 7447 elif test $pkg_failed = untried; then
Chris@1969 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Chris@594 7449 $as_echo "no" >&6; }
Chris@572 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
Chris@572 7451 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
Chris@572 7452 else
Chris@572 7453 X11_CFLAGS=$pkg_cv_X11_CFLAGS
Chris@572 7454 X11_LIBS=$pkg_cv_X11_LIBS
Chris@572 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Chris@572 7456 $as_echo "yes" >&6; }
Chris@572 7457 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $X11_CFLAGS";LIBS="$LIBS $X11_LIBS";SV_MODULE_FAILED=""
Chris@572 7458 fi
Chris@572 7459 fi
Chris@572 7460 if test -n "$SV_MODULE_FAILED"; then
Chris@572 7461 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
Chris@572 7462 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
Chris@594 7463 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Chris@572 7464 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
Chris@572 7465 else
Chris@572 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
Chris@572 7467 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
Chris@572 7468 fi
Chris@572 7469
Chris@572 7470
Chris@572 7471 if test -z "$SV_MODULE_FAILED"; then
Chris@572 7472 if test -n "$SV_MODULE_LIB"; then
Chris@572 7473 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
Chris@572 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
Chris@572 7475 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
Chris@594 7476 if eval \${$as_ac_Lib+:} false; then :
Chris@572 7477 $as_echo_n "(cached) " >&6
Chris@572 7478 else
Chris@572 7479 ac_check_lib_save_LIBS=$LIBS
Chris@572 7480 LIBS="-l$SV_MODULE_LIB $LIBS"
Chris@572 7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris@572 7482 /* end confdefs.h. */
Chris@572 7483
Chris@572 7484 /* Override any GCC internal prototype to avoid an error.
Chris@572 7485 Use char because int might match the return type of a GCC
Chris@572 7486 builtin and then its argument prototype would still apply. */
Chris@572 7487 #ifdef __cplusplus
Chris@572 7488 extern "C"
Chris@572 7489 #endif
Chris@572 7490 char $SV_MODULE_FUNC ();
Chris@572 7491 int
Chris@572 7492 main ()
Chris@572 7493 {
Chris@572 7494 return $SV_MODULE_FUNC ();
Chris@572 7495 ;
Chris@572 7496 return 0;
Chris@572 7497 }
Chris@572 7498 _ACEOF
Chris@572 7499 if ac_fn_cxx_try_link "$LINENO"; then :
Chris@572 7500 eval "$as_ac_Lib=yes"
Chris@572 7501 else
Chris@572 7502 eval "$as_ac_Lib=no"
Chris@572 7503 fi
Chris@572 7504 rm -f core conftest.err conftest.$ac_objext \
Chris@572 7505 conftest$ac_exeext conftest.$ac_ext
Chris@572 7506 LIBS=$ac_check_lib_save_LIBS
Chris@572 7507 fi
Chris@572 7508 eval ac_res=\$$as_ac_Lib
Chris@572 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Chris@572 7510 $as_echo "$ac_res" >&6; }
Chris@594 7511 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Chris@488 7512 LIBS="$LIBS -l$SV_MODULE_LIB"
Chris@488 7513 else
Chris@488 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
Chris@488 7515 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
Chris@488 7516 fi
Chris@488 7517
Chris@488 7518 fi
Chris@488 7519 fi
Chris@488 7520 fi
Chris@488 7521
Chris@488 7522
Chris@350 7523
Chris@350 7524
Chris@350 7525
Chris@350 7526
Chris@350 7527
Chris@350 7528
Chris@350 7529
Chris@350 7530
Chris@350 7531
Chris@350 7532
Chris@350 7533
Chris@350 7534
Chris@350 7535
Chris@350 7536
Chris@350 7537
Chris@350 7538
Chris@350 7539
Chris@350 7540
Chris@1753 7541
Chris@1753 7542
Chris@941 7543 ac_config_files="$ac_config_files config.pri"
Chris@517 7544
Chris@350 7545
Chris@350 7546 cat >confcache <<\_ACEOF
Chris@350 7547 # This file is a shell script that caches the results of configure
Chris@350 7548 # tests run on this system so they can be shared between configure
Chris@350 7549 # scripts and configure runs, see configure's option --config-cache.
Chris@350 7550 # It is not useful on other systems. If it contains results you don't
Chris@350 7551 # want to keep, you may remove or edit it.
Chris@350 7552 #
Chris@350 7553 # config.status only pays attention to the cache file if you give it
Chris@350 7554 # the --recheck option to rerun configure.
Chris@350 7555 #
Chris@350 7556 # `ac_cv_env_foo' variables (set or unset) will be overridden when
Chris@350 7557 # loading this file, other *unset* `ac_cv_foo' will be assigned the
Chris@350 7558 # following values.
Chris@350 7559
Chris@350 7560 _ACEOF
Chris@350 7561
Chris@350 7562 # The following way of writing the cache mishandles newlines in values,
Chris@350 7563 # but we know of no workaround that is simple, portable, and efficient.
Chris@350 7564 # So, we kill variables containing newlines.
Chris@350 7565 # Ultrix sh set writes to stderr and can't be redirected directly,
Chris@350 7566 # and sets the high bit in the cache file unless we assign to the vars.
Chris@350 7567 (
Chris@350 7568 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
Chris@350 7569 eval ac_val=\$$ac_var
Chris@350 7570 case $ac_val in #(
Chris@350 7571 *${as_nl}*)
Chris@350 7572 case $ac_var in #(
Chris@350 7573 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Chris@350 7574 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Chris@350 7575 esac
Chris@350 7576 case $ac_var in #(
Chris@350 7577 _ | IFS | as_nl) ;; #(
Chris@350 7578 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Chris@350 7579 *) { eval $ac_var=; unset $ac_var;} ;;
Chris@350 7580 esac ;;
Chris@350 7581 esac
Chris@350 7582 done
Chris@350 7583
Chris@350 7584 (set) 2>&1 |
Chris@350 7585 case $as_nl`(ac_space=' '; set) 2>&1` in #(
Chris@350 7586 *${as_nl}ac_space=\ *)
Chris@350 7587 # `set' does not quote correctly, so add quotes: double-quote
Chris@350 7588 # substitution turns \\\\ into \\, and sed turns \\ into \.
Chris@350 7589 sed -n \
Chris@350 7590 "s/'/'\\\\''/g;
Chris@350 7591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Chris@350 7592 ;; #(
Chris@350 7593 *)
Chris@350 7594 # `set' quotes correctly as required by POSIX, so do not add quotes.
Chris@350 7595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Chris@350 7596 ;;
Chris@350 7597 esac |
Chris@350 7598 sort
Chris@350 7599 ) |
Chris@350 7600 sed '
Chris@350 7601 /^ac_cv_env_/b end
Chris@350 7602 t clear
Chris@350 7603 :clear
Chris@350 7604 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
Chris@350 7605 t end
Chris@350 7606 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
Chris@350 7607 :end' >>confcache
Chris@350 7608 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
Chris@350 7609 if test -w "$cache_file"; then
Chris@594 7610 if test "x$cache_file" != "x/dev/null"; then
Chris@350 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Chris@350 7612 $as_echo "$as_me: updating cache $cache_file" >&6;}
Chris@594 7613 if test ! -f "$cache_file" || test -h "$cache_file"; then
Chris@594 7614 cat confcache >"$cache_file"
Chris@594 7615 else
Chris@594 7616 case $cache_file in #(
Chris@594 7617 */* | ?:*)
Chris@594 7618 mv -f confcache "$cache_file"$$ &&
Chris@594 7619 mv -f "$cache_file"$$ "$cache_file" ;; #(
Chris@594 7620 *)
Chris@594 7621 mv -f confcache "$cache_file" ;;
Chris@594 7622 esac
Chris@594 7623 fi
Chris@594 7624 fi
Chris@350 7625 else
Chris@350 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Chris@350 7627 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Chris@350 7628 fi
Chris@350 7629 fi
Chris@350 7630 rm -f confcache
Chris@350 7631
Chris@350 7632 test "x$prefix" = xNONE && prefix=$ac_default_prefix
Chris@350 7633 # Let make expand exec_prefix.
Chris@350 7634 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Chris@350 7635
Chris@350 7636 # Transform confdefs.h into DEFS.
Chris@350 7637 # Protect against shell expansion while executing Makefile rules.
Chris@350 7638 # Protect against Makefile macro expansion.
Chris@350 7639 #
Chris@350 7640 # If the first sed substitution is executed (which looks for macros that
Chris@350 7641 # take arguments), then branch to the quote section. Otherwise,
Chris@350 7642 # look for a macro that doesn't take arguments.
Chris@350 7643 ac_script='
Chris@350 7644 :mline
Chris@350 7645 /\\$/{
Chris@350 7646 N
Chris@350 7647 s,\\\n,,
Chris@350 7648 b mline
Chris@350 7649 }
Chris@350 7650 t clear
Chris@350 7651 :clear
Chris@350 7652 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Chris@350 7653 t quote
Chris@350 7654 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Chris@350 7655 t quote
Chris@350 7656 b any
Chris@350 7657 :quote
Chris@350 7658 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
Chris@350 7659 s/\[/\\&/g
Chris@350 7660 s/\]/\\&/g
Chris@350 7661 s/\$/$$/g
Chris@350 7662 H
Chris@350 7663 :any
Chris@350 7664 ${
Chris@350 7665 g
Chris@350 7666 s/^\n//
Chris@350 7667 s/\n/ /g
Chris@350 7668 p
Chris@350 7669 }
Chris@350 7670 '
Chris@350 7671 DEFS=`sed -n "$ac_script" confdefs.h`
Chris@350 7672
Chris@350 7673
Chris@350 7674 ac_libobjs=
Chris@350 7675 ac_ltlibobjs=
Chris@594 7676 U=
Chris@350 7677 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
Chris@350 7678 # 1. Remove the extension, and $U if already installed.
Chris@350 7679 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Chris@350 7680 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Chris@350 7681 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
Chris@350 7682 # will be set to the directory where LIBOBJS objects are built.
Chris@350 7683 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
Chris@350 7684 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Chris@350 7685 done
Chris@350 7686 LIBOBJS=$ac_libobjs
Chris@350 7687
Chris@350 7688 LTLIBOBJS=$ac_ltlibobjs
Chris@350 7689
Chris@350 7690
Chris@350 7691
Chris@594 7692 : "${CONFIG_STATUS=./config.status}"
Chris@350 7693 ac_write_fail=0
Chris@350 7694 ac_clean_files_save=$ac_clean_files
Chris@350 7695 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Chris@350 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Chris@350 7697 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Chris@350 7698 as_write_fail=0
Chris@350 7699 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Chris@350 7700 #! $SHELL
Chris@350 7701 # Generated by $as_me.
Chris@350 7702 # Run this file to recreate the current configuration.
Chris@350 7703 # Compiler output produced by configure, useful for debugging
Chris@350 7704 # configure, is in config.log if it exists.
Chris@350 7705
Chris@350 7706 debug=false
Chris@350 7707 ac_cs_recheck=false
Chris@350 7708 ac_cs_silent=false
Chris@350 7709
Chris@350 7710 SHELL=\${CONFIG_SHELL-$SHELL}
Chris@350 7711 export SHELL
Chris@350 7712 _ASEOF
Chris@350 7713 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
Chris@350 7714 ## -------------------- ##
Chris@350 7715 ## M4sh Initialization. ##
Chris@350 7716 ## -------------------- ##
Chris@350 7717
Chris@350 7718 # Be more Bourne compatible
Chris@350 7719 DUALCASE=1; export DUALCASE # for MKS sh
Chris@350 7720 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Chris@350 7721 emulate sh
Chris@350 7722 NULLCMD=:
Chris@350 7723 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Chris@350 7724 # is contrary to our usage. Disable this feature.
Chris@350 7725 alias -g '${1+"$@"}'='"$@"'
Chris@350 7726 setopt NO_GLOB_SUBST
Chris@350 7727 else
Chris@350 7728 case `(set -o) 2>/dev/null` in #(
Chris@350 7729 *posix*) :
Chris@350 7730 set -o posix ;; #(
Chris@350 7731 *) :
Chris@350 7732 ;;
Chris@350 7733 esac
Chris@350 7734 fi
Chris@350 7735
Chris@350 7736
Chris@350 7737 as_nl='
Chris@350 7738 '
Chris@350 7739 export as_nl
Chris@350 7740 # Printing a long string crashes Solaris 7 /usr/bin/printf.
Chris@350 7741 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Chris@350 7742 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@350 7743 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Chris@350 7744 # Prefer a ksh shell builtin over an external printf program on Solaris,
Chris@350 7745 # but without wasting forks for bash or zsh.
Chris@350 7746 if test -z "$BASH_VERSION$ZSH_VERSION" \
Chris@350 7747 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@350 7748 as_echo='print -r --'
Chris@350 7749 as_echo_n='print -rn --'
Chris@350 7750 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Chris@350 7751 as_echo='printf %s\n'
Chris@350 7752 as_echo_n='printf %s'
Chris@350 7753 else
Chris@350 7754 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
Chris@350 7755 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
Chris@350 7756 as_echo_n='/usr/ucb/echo -n'
Chris@350 7757 else
Chris@350 7758 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
Chris@350 7759 as_echo_n_body='eval
Chris@350 7760 arg=$1;
Chris@350 7761 case $arg in #(
Chris@350 7762 *"$as_nl"*)
Chris@350 7763 expr "X$arg" : "X\\(.*\\)$as_nl";
Chris@350 7764 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
Chris@350 7765 esac;
Chris@350 7766 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
Chris@350 7767 '
Chris@350 7768 export as_echo_n_body
Chris@350 7769 as_echo_n='sh -c $as_echo_n_body as_echo'
Chris@350 7770 fi
Chris@350 7771 export as_echo_body
Chris@350 7772 as_echo='sh -c $as_echo_body as_echo'
Chris@350 7773 fi
Chris@350 7774
Chris@350 7775 # The user is always right.
Chris@350 7776 if test "${PATH_SEPARATOR+set}" != set; then
Chris@350 7777 PATH_SEPARATOR=:
Chris@350 7778 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
Chris@350 7779 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
Chris@350 7780 PATH_SEPARATOR=';'
Chris@350 7781 }
Chris@350 7782 fi
Chris@350 7783
Chris@350 7784
Chris@350 7785 # IFS
Chris@350 7786 # We need space, tab and new line, in precisely that order. Quoting is
Chris@350 7787 # there to prevent editors from complaining about space-tab.
Chris@350 7788 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
Chris@350 7789 # splitting by setting IFS to empty value.)
Chris@350 7790 IFS=" "" $as_nl"
Chris@350 7791
Chris@350 7792 # Find who we are. Look in the path if we contain no directory separator.
Chris@594 7793 as_myself=
Chris@350 7794 case $0 in #((
Chris@350 7795 *[\\/]* ) as_myself=$0 ;;
Chris@350 7796 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Chris@350 7797 for as_dir in $PATH
Chris@350 7798 do
Chris@350 7799 IFS=$as_save_IFS
Chris@350 7800 test -z "$as_dir" && as_dir=.
Chris@350 7801 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
Chris@350 7802 done
Chris@350 7803 IFS=$as_save_IFS
Chris@350 7804
Chris@350 7805 ;;
Chris@350 7806 esac
Chris@350 7807 # We did not find ourselves, most probably we were run as `sh COMMAND'
Chris@350 7808 # in which case we are not to be found in the path.
Chris@350 7809 if test "x$as_myself" = x; then
Chris@350 7810 as_myself=$0
Chris@350 7811 fi
Chris@350 7812 if test ! -f "$as_myself"; then
Chris@350 7813 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Chris@350 7814 exit 1
Chris@350 7815 fi
Chris@350 7816
Chris@350 7817 # Unset variables that we do not need and which cause bugs (e.g. in
Chris@350 7818 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
Chris@350 7819 # suppresses any "Segmentation fault" message there. '((' could
Chris@350 7820 # trigger a bug in pdksh 5.2.14.
Chris@350 7821 for as_var in BASH_ENV ENV MAIL MAILPATH
Chris@350 7822 do eval test x\${$as_var+set} = xset \
Chris@350 7823 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Chris@350 7824 done
Chris@350 7825 PS1='$ '
Chris@350 7826 PS2='> '
Chris@350 7827 PS4='+ '
Chris@350 7828
Chris@350 7829 # NLS nuisances.
Chris@350 7830 LC_ALL=C
Chris@350 7831 export LC_ALL
Chris@350 7832 LANGUAGE=C
Chris@350 7833 export LANGUAGE
Chris@350 7834
Chris@350 7835 # CDPATH.
Chris@350 7836 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Chris@350 7837
Chris@350 7838
Chris@594 7839 # as_fn_error STATUS ERROR [LINENO LOG_FD]
Chris@594 7840 # ----------------------------------------
Chris@350 7841 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
Chris@350 7842 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris@594 7843 # script with STATUS, using 1 if that was 0.
Chris@350 7844 as_fn_error ()
Chris@350 7845 {
Chris@594 7846 as_status=$1; test $as_status -eq 0 && as_status=1
Chris@594 7847 if test "$4"; then
Chris@594 7848 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Chris@594 7849 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Chris@350 7850 fi
Chris@594 7851 $as_echo "$as_me: error: $2" >&2
Chris@350 7852 as_fn_exit $as_status
Chris@350 7853 } # as_fn_error
Chris@350 7854
Chris@350 7855
Chris@350 7856 # as_fn_set_status STATUS
Chris@350 7857 # -----------------------
Chris@350 7858 # Set $? to STATUS, without forking.
Chris@350 7859 as_fn_set_status ()
Chris@350 7860 {
Chris@350 7861 return $1
Chris@350 7862 } # as_fn_set_status
Chris@350 7863
Chris@350 7864 # as_fn_exit STATUS
Chris@350 7865 # -----------------
Chris@350 7866 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
Chris@350 7867 as_fn_exit ()
Chris@350 7868 {
Chris@350 7869 set +e
Chris@350 7870 as_fn_set_status $1
Chris@350 7871 exit $1
Chris@350 7872 } # as_fn_exit
Chris@350 7873
Chris@350 7874 # as_fn_unset VAR
Chris@350 7875 # ---------------
Chris@350 7876 # Portably unset VAR.
Chris@350 7877 as_fn_unset ()
Chris@350 7878 {
Chris@350 7879 { eval $1=; unset $1;}
Chris@350 7880 }
Chris@350 7881 as_unset=as_fn_unset
Chris@350 7882 # as_fn_append VAR VALUE
Chris@350 7883 # ----------------------
Chris@350 7884 # Append the text in VALUE to the end of the definition contained in VAR. Take
Chris@350 7885 # advantage of any shell optimizations that allow amortized linear growth over
Chris@350 7886 # repeated appends, instead of the typical quadratic growth present in naive
Chris@350 7887 # implementations.
Chris@350 7888 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
Chris@350 7889 eval 'as_fn_append ()
Chris@350 7890 {
Chris@350 7891 eval $1+=\$2
Chris@350 7892 }'
Chris@350 7893 else
Chris@350 7894 as_fn_append ()
Chris@350 7895 {
Chris@350 7896 eval $1=\$$1\$2
Chris@350 7897 }
Chris@350 7898 fi # as_fn_append
Chris@350 7899
Chris@350 7900 # as_fn_arith ARG...
Chris@350 7901 # ------------------
Chris@350 7902 # Perform arithmetic evaluation on the ARGs, and store the result in the
Chris@350 7903 # global $as_val. Take advantage of shells that can avoid forks. The arguments
Chris@350 7904 # must be portable across $(()) and expr.
Chris@350 7905 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
Chris@350 7906 eval 'as_fn_arith ()
Chris@350 7907 {
Chris@350 7908 as_val=$(( $* ))
Chris@350 7909 }'
Chris@350 7910 else
Chris@350 7911 as_fn_arith ()
Chris@350 7912 {
Chris@350 7913 as_val=`expr "$@" || test $? -eq 1`
Chris@350 7914 }
Chris@350 7915 fi # as_fn_arith
Chris@350 7916
Chris@350 7917
Chris@350 7918 if expr a : '\(a\)' >/dev/null 2>&1 &&
Chris@350 7919 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Chris@350 7920 as_expr=expr
Chris@350 7921 else
Chris@350 7922 as_expr=false
Chris@350 7923 fi
Chris@350 7924
Chris@350 7925 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Chris@350 7926 as_basename=basename
Chris@350 7927 else
Chris@350 7928 as_basename=false
Chris@350 7929 fi
Chris@350 7930
Chris@350 7931 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Chris@350 7932 as_dirname=dirname
Chris@350 7933 else
Chris@350 7934 as_dirname=false
Chris@350 7935 fi
Chris@350 7936
Chris@350 7937 as_me=`$as_basename -- "$0" ||
Chris@350 7938 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
Chris@350 7939 X"$0" : 'X\(//\)$' \| \
Chris@350 7940 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Chris@350 7941 $as_echo X/"$0" |
Chris@350 7942 sed '/^.*\/\([^/][^/]*\)\/*$/{
Chris@350 7943 s//\1/
Chris@350 7944 q
Chris@350 7945 }
Chris@350 7946 /^X\/\(\/\/\)$/{
Chris@350 7947 s//\1/
Chris@350 7948 q
Chris@350 7949 }
Chris@350 7950 /^X\/\(\/\).*/{
Chris@350 7951 s//\1/
Chris@350 7952 q
Chris@350 7953 }
Chris@350 7954 s/.*/./; q'`
Chris@350 7955
Chris@350 7956 # Avoid depending upon Character Ranges.
Chris@350 7957 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
Chris@350 7958 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Chris@350 7959 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
Chris@350 7960 as_cr_digits='0123456789'
Chris@350 7961 as_cr_alnum=$as_cr_Letters$as_cr_digits
Chris@350 7962
Chris@350 7963 ECHO_C= ECHO_N= ECHO_T=
Chris@350 7964 case `echo -n x` in #(((((
Chris@350 7965 -n*)
Chris@350 7966 case `echo 'xy\c'` in
Chris@350 7967 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Chris@350 7968 xy) ECHO_C='\c';;
Chris@350 7969 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
Chris@350 7970 ECHO_T=' ';;
Chris@350 7971 esac;;
Chris@350 7972 *)
Chris@350 7973 ECHO_N='-n';;
Chris@350 7974 esac
Chris@350 7975
Chris@350 7976 rm -f conf$$ conf$$.exe conf$$.file
Chris@350 7977 if test -d conf$$.dir; then
Chris@350 7978 rm -f conf$$.dir/conf$$.file
Chris@350 7979 else
Chris@350 7980 rm -f conf$$.dir
Chris@350 7981 mkdir conf$$.dir 2>/dev/null
Chris@350 7982 fi
Chris@350 7983 if (echo >conf$$.file) 2>/dev/null; then
Chris@350 7984 if ln -s conf$$.file conf$$ 2>/dev/null; then
Chris@350 7985 as_ln_s='ln -s'
Chris@350 7986 # ... but there are two gotchas:
Chris@350 7987 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
Chris@350 7988 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris@594 7989 # In both cases, we have to default to `cp -pR'.
Chris@350 7990 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris@594 7991 as_ln_s='cp -pR'
Chris@350 7992 elif ln conf$$.file conf$$ 2>/dev/null; then
Chris@350 7993 as_ln_s=ln
Chris@350 7994 else
Chris@594 7995 as_ln_s='cp -pR'
Chris@350 7996 fi
Chris@350 7997 else
Chris@594 7998 as_ln_s='cp -pR'
Chris@350 7999 fi
Chris@350 8000 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Chris@350 8001 rmdir conf$$.dir 2>/dev/null
Chris@350 8002
Chris@350 8003
Chris@350 8004 # as_fn_mkdir_p
Chris@350 8005 # -------------
Chris@350 8006 # Create "$as_dir" as a directory, including parents if necessary.
Chris@350 8007 as_fn_mkdir_p ()
Chris@350 8008 {
Chris@350 8009
Chris@350 8010 case $as_dir in #(
Chris@350 8011 -*) as_dir=./$as_dir;;
Chris@350 8012 esac
Chris@350 8013 test -d "$as_dir" || eval $as_mkdir_p || {
Chris@350 8014 as_dirs=
Chris@350 8015 while :; do
Chris@350 8016 case $as_dir in #(
Chris@350 8017 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Chris@350 8018 *) as_qdir=$as_dir;;
Chris@350 8019 esac
Chris@350 8020 as_dirs="'$as_qdir' $as_dirs"
Chris@350 8021 as_dir=`$as_dirname -- "$as_dir" ||
Chris@350 8022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@350 8023 X"$as_dir" : 'X\(//\)[^/]' \| \
Chris@350 8024 X"$as_dir" : 'X\(//\)$' \| \
Chris@350 8025 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Chris@350 8026 $as_echo X"$as_dir" |
Chris@350 8027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@350 8028 s//\1/
Chris@350 8029 q
Chris@350 8030 }
Chris@350 8031 /^X\(\/\/\)[^/].*/{
Chris@350 8032 s//\1/
Chris@350 8033 q
Chris@350 8034 }
Chris@350 8035 /^X\(\/\/\)$/{
Chris@350 8036 s//\1/
Chris@350 8037 q
Chris@350 8038 }
Chris@350 8039 /^X\(\/\).*/{
Chris@350 8040 s//\1/
Chris@350 8041 q
Chris@350 8042 }
Chris@350 8043 s/.*/./; q'`
Chris@350 8044 test -d "$as_dir" && break
Chris@350 8045 done
Chris@350 8046 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris@594 8047 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Chris@350 8048
Chris@350 8049
Chris@350 8050 } # as_fn_mkdir_p
Chris@350 8051 if mkdir -p . 2>/dev/null; then
Chris@350 8052 as_mkdir_p='mkdir -p "$as_dir"'
Chris@350 8053 else
Chris@350 8054 test -d ./-p && rmdir ./-p
Chris@350 8055 as_mkdir_p=false
Chris@350 8056 fi
Chris@350 8057
Chris@594 8058
Chris@594 8059 # as_fn_executable_p FILE
Chris@594 8060 # -----------------------
Chris@594 8061 # Test if FILE is an executable regular file.
Chris@594 8062 as_fn_executable_p ()
Chris@594 8063 {
Chris@594 8064 test -f "$1" && test -x "$1"
Chris@594 8065 } # as_fn_executable_p
Chris@594 8066 as_test_x='test -x'
Chris@594 8067 as_executable_p=as_fn_executable_p
Chris@350 8068
Chris@350 8069 # Sed expression to map a string onto a valid CPP name.
Chris@350 8070 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Chris@350 8071
Chris@350 8072 # Sed expression to map a string onto a valid variable name.
Chris@350 8073 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Chris@350 8074
Chris@350 8075
Chris@350 8076 exec 6>&1
Chris@350 8077 ## ----------------------------------- ##
Chris@350 8078 ## Main body of $CONFIG_STATUS script. ##
Chris@350 8079 ## ----------------------------------- ##
Chris@350 8080 _ASEOF
Chris@350 8081 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Chris@350 8082
Chris@350 8083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@350 8084 # Save the log message, to keep $0 and so on meaningful, and to
Chris@350 8085 # report actual input values of CONFIG_FILES etc. instead of their
Chris@350 8086 # values after options handling.
Chris@350 8087 ac_log="
Chris@941 8088 This file was extended by $as_me, which was
Chris@594 8089 generated by GNU Autoconf 2.69. Invocation command line was
Chris@350 8090
Chris@350 8091 CONFIG_FILES = $CONFIG_FILES
Chris@350 8092 CONFIG_HEADERS = $CONFIG_HEADERS
Chris@350 8093 CONFIG_LINKS = $CONFIG_LINKS
Chris@350 8094 CONFIG_COMMANDS = $CONFIG_COMMANDS
Chris@350 8095 $ $0 $@
Chris@350 8096
Chris@350 8097 on `(hostname || uname -n) 2>/dev/null | sed 1q`
Chris@350 8098 "
Chris@350 8099
Chris@350 8100 _ACEOF
Chris@350 8101
Chris@350 8102 case $ac_config_files in *"
Chris@350 8103 "*) set x $ac_config_files; shift; ac_config_files=$*;;
Chris@350 8104 esac
Chris@350 8105
Chris@350 8106
Chris@350 8107
Chris@350 8108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@350 8109 # Files that config.status was made for.
Chris@350 8110 config_files="$ac_config_files"
Chris@350 8111
Chris@350 8112 _ACEOF
Chris@350 8113
Chris@350 8114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@350 8115 ac_cs_usage="\
Chris@350 8116 \`$as_me' instantiates files and other configuration actions
Chris@350 8117 from templates according to the current configuration. Unless the files
Chris@350 8118 and actions are specified as TAGs, all are instantiated by default.
Chris@350 8119
Chris@350 8120 Usage: $0 [OPTION]... [TAG]...
Chris@350 8121
Chris@350 8122 -h, --help print this help, then exit
Chris@350 8123 -V, --version print version number and configuration settings, then exit
Chris@350 8124 --config print configuration, then exit
Chris@350 8125 -q, --quiet, --silent
Chris@350 8126 do not print progress messages
Chris@350 8127 -d, --debug don't remove temporary files
Chris@350 8128 --recheck update $as_me by reconfiguring in the same conditions
Chris@350 8129 --file=FILE[:TEMPLATE]
Chris@350 8130 instantiate the configuration file FILE
Chris@350 8131
Chris@350 8132 Configuration files:
Chris@350 8133 $config_files
Chris@350 8134
Chris@941 8135 Report bugs to the package provider."
Chris@350 8136
Chris@350 8137 _ACEOF
Chris@350 8138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@350 8139 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Chris@350 8140 ac_cs_version="\\
Chris@941 8141 config.status
Chris@594 8142 configured by $0, generated by GNU Autoconf 2.69,
Chris@350 8143 with options \\"\$ac_cs_config\\"
Chris@350 8144
Chris@594 8145 Copyright (C) 2012 Free Software Foundation, Inc.
Chris@350 8146 This config.status script is free software; the Free Software Foundation
Chris@350 8147 gives unlimited permission to copy, distribute and modify it."
Chris@350 8148
Chris@350 8149 ac_pwd='$ac_pwd'
Chris@350 8150 srcdir='$srcdir'
Chris@350 8151 INSTALL='$INSTALL'
Chris@350 8152 MKDIR_P='$MKDIR_P'
Chris@350 8153 test -n "\$AWK" || AWK=awk
Chris@350 8154 _ACEOF
Chris@350 8155
Chris@350 8156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@350 8157 # The default lists apply if the user does not specify any file.
Chris@350 8158 ac_need_defaults=:
Chris@350 8159 while test $# != 0
Chris@350 8160 do
Chris@350 8161 case $1 in
Chris@594 8162 --*=?*)
Chris@350 8163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@350 8164 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Chris@350 8165 ac_shift=:
Chris@350 8166 ;;
Chris@594 8167 --*=)
Chris@594 8168 ac_option=`expr "X$1" : 'X\([^=]*\)='`
Chris@594 8169 ac_optarg=
Chris@594 8170 ac_shift=:
Chris@594 8171 ;;
Chris@350 8172 *)
Chris@350 8173 ac_option=$1
Chris@350 8174 ac_optarg=$2
Chris@350 8175 ac_shift=shift
Chris@350 8176 ;;
Chris@350 8177 esac
Chris@350 8178
Chris@350 8179 case $ac_option in
Chris@350 8180 # Handling of the options.
Chris@350 8181 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Chris@350 8182 ac_cs_recheck=: ;;
Chris@350 8183 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Chris@350 8184 $as_echo "$ac_cs_version"; exit ;;
Chris@350 8185 --config | --confi | --conf | --con | --co | --c )
Chris@350 8186 $as_echo "$ac_cs_config"; exit ;;
Chris@350 8187 --debug | --debu | --deb | --de | --d | -d )
Chris@350 8188 debug=: ;;
Chris@350 8189 --file | --fil | --fi | --f )
Chris@350 8190 $ac_shift
Chris@350 8191 case $ac_optarg in
Chris@350 8192 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris@594 8193 '') as_fn_error $? "missing file argument" ;;
Chris@350 8194 esac
Chris@350 8195 as_fn_append CONFIG_FILES " '$ac_optarg'"
Chris@350 8196 ac_need_defaults=false;;
Chris@350 8197 --he | --h | --help | --hel | -h )
Chris@350 8198 $as_echo "$ac_cs_usage"; exit ;;
Chris@350 8199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Chris@350 8200 | -silent | --silent | --silen | --sile | --sil | --si | --s)
Chris@350 8201 ac_cs_silent=: ;;
Chris@350 8202
Chris@350 8203 # This is an error.
Chris@594 8204 -*) as_fn_error $? "unrecognized option: \`$1'
Chris@350 8205 Try \`$0 --help' for more information." ;;
Chris@350 8206
Chris@350 8207 *) as_fn_append ac_config_targets " $1"
Chris@350 8208 ac_need_defaults=false ;;
Chris@350 8209
Chris@350 8210 esac
Chris@350 8211 shift
Chris@350 8212 done
Chris@350 8213
Chris@350 8214 ac_configure_extra_args=
Chris@350 8215
Chris@350 8216 if $ac_cs_silent; then
Chris@350 8217 exec 6>/dev/null
Chris@350 8218 ac_configure_extra_args="$ac_configure_extra_args --silent"
Chris@350 8219 fi
Chris@350 8220
Chris@350 8221 _ACEOF
Chris@350 8222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@350 8223 if \$ac_cs_recheck; then
Chris@594 8224 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Chris@350 8225 shift
Chris@350 8226 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
Chris@350 8227 CONFIG_SHELL='$SHELL'
Chris@350 8228 export CONFIG_SHELL
Chris@350 8229 exec "\$@"
Chris@350 8230 fi
Chris@350 8231
Chris@350 8232 _ACEOF
Chris@350 8233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@350 8234 exec 5>>config.log
Chris@350 8235 {
Chris@350 8236 echo
Chris@350 8237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
Chris@350 8238 ## Running $as_me. ##
Chris@350 8239 _ASBOX
Chris@350 8240 $as_echo "$ac_log"
Chris@350 8241 } >&5
Chris@350 8242
Chris@350 8243 _ACEOF
Chris@350 8244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@350 8245 _ACEOF
Chris@350 8246
Chris@350 8247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@350 8248
Chris@350 8249 # Handling of arguments.
Chris@350 8250 for ac_config_target in $ac_config_targets
Chris@350 8251 do
Chris@350 8252 case $ac_config_target in
Chris@350 8253 "config.pri") CONFIG_FILES="$CONFIG_FILES config.pri" ;;
Chris@350 8254
Chris@594 8255 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Chris@350 8256 esac
Chris@350 8257 done
Chris@350 8258
Chris@350 8259
Chris@350 8260 # If the user did not use the arguments to specify the items to instantiate,
Chris@350 8261 # then the envvar interface is used. Set only those that are not.
Chris@350 8262 # We use the long form for the default assignment because of an extremely
Chris@350 8263 # bizarre bug on SunOS 4.1.3.
Chris@350 8264 if $ac_need_defaults; then
Chris@350 8265 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Chris@350 8266 fi
Chris@350 8267
Chris@350 8268 # Have a temporary directory for convenience. Make it in the build tree
Chris@350 8269 # simply because there is no reason against having it here, and in addition,
Chris@350 8270 # creating and moving files from /tmp can sometimes cause problems.
Chris@350 8271 # Hook for its removal unless debugging.
Chris@350 8272 # Note that there is a small window in which the directory will not be cleaned:
Chris@350 8273 # after its creation but before its name has been assigned to `$tmp'.
Chris@350 8274 $debug ||
Chris@350 8275 {
Chris@594 8276 tmp= ac_tmp=
Chris@350 8277 trap 'exit_status=$?
Chris@594 8278 : "${ac_tmp:=$tmp}"
Chris@594 8279 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Chris@350 8280 ' 0
Chris@350 8281 trap 'as_fn_exit 1' 1 2 13 15
Chris@350 8282 }
Chris@350 8283 # Create a (secure) tmp directory for tmp files.
Chris@350 8284
Chris@350 8285 {
Chris@350 8286 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris@594 8287 test -d "$tmp"
Chris@350 8288 } ||
Chris@350 8289 {
Chris@350 8290 tmp=./conf$$-$RANDOM
Chris@350 8291 (umask 077 && mkdir "$tmp")
Chris@594 8292 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Chris@594 8293 ac_tmp=$tmp
Chris@350 8294
Chris@350 8295 # Set up the scripts for CONFIG_FILES section.
Chris@350 8296 # No need to generate them if there are no CONFIG_FILES.
Chris@350 8297 # This happens for instance with `./config.status config.h'.
Chris@350 8298 if test -n "$CONFIG_FILES"; then
Chris@350 8299
Chris@350 8300
Chris@350 8301 ac_cr=`echo X | tr X '\015'`
Chris@350 8302 # On cygwin, bash can eat \r inside `` if the user requested igncr.
Chris@350 8303 # But we know of no other shell where ac_cr would be empty at this
Chris@350 8304 # point, so we can use a bashism as a fallback.
Chris@350 8305 if test "x$ac_cr" = x; then
Chris@350 8306 eval ac_cr=\$\'\\r\'
Chris@350 8307 fi
Chris@350 8308 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
Chris@350 8309 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris@594 8310 ac_cs_awk_cr='\\r'
Chris@350 8311 else
Chris@350 8312 ac_cs_awk_cr=$ac_cr
Chris@350 8313 fi
Chris@350 8314
Chris@594 8315 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Chris@350 8316 _ACEOF
Chris@350 8317
Chris@350 8318
Chris@350 8319 {
Chris@350 8320 echo "cat >conf$$subs.awk <<_ACEOF" &&
Chris@350 8321 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
Chris@350 8322 echo "_ACEOF"
Chris@350 8323 } >conf$$subs.sh ||
Chris@594 8324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@594 8325 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Chris@350 8326 ac_delim='%!_!# '
Chris@350 8327 for ac_last_try in false false false false false :; do
Chris@350 8328 . ./conf$$subs.sh ||
Chris@594 8329 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@350 8330
Chris@350 8331 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
Chris@350 8332 if test $ac_delim_n = $ac_delim_num; then
Chris@350 8333 break
Chris@350 8334 elif $ac_last_try; then
Chris@594 8335 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Chris@350 8336 else
Chris@350 8337 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Chris@350 8338 fi
Chris@350 8339 done
Chris@350 8340 rm -f conf$$subs.sh
Chris@350 8341
Chris@350 8342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@594 8343 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Chris@350 8344 _ACEOF
Chris@350 8345 sed -n '
Chris@350 8346 h
Chris@350 8347 s/^/S["/; s/!.*/"]=/
Chris@350 8348 p
Chris@350 8349 g
Chris@350 8350 s/^[^!]*!//
Chris@350 8351 :repl
Chris@350 8352 t repl
Chris@350 8353 s/'"$ac_delim"'$//
Chris@350 8354 t delim
Chris@350 8355 :nl
Chris@350 8356 h
Chris@350 8357 s/\(.\{148\}\)..*/\1/
Chris@350 8358 t more1
Chris@350 8359 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
Chris@350 8360 p
Chris@350 8361 n
Chris@350 8362 b repl
Chris@350 8363 :more1
Chris@350 8364 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@350 8365 p
Chris@350 8366 g
Chris@350 8367 s/.\{148\}//
Chris@350 8368 t nl
Chris@350 8369 :delim
Chris@350 8370 h
Chris@350 8371 s/\(.\{148\}\)..*/\1/
Chris@350 8372 t more2
Chris@350 8373 s/["\\]/\\&/g; s/^/"/; s/$/"/
Chris@350 8374 p
Chris@350 8375 b
Chris@350 8376 :more2
Chris@350 8377 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
Chris@350 8378 p
Chris@350 8379 g
Chris@350 8380 s/.\{148\}//
Chris@350 8381 t delim
Chris@350 8382 ' <conf$$subs.awk | sed '
Chris@350 8383 /^[^""]/{
Chris@350 8384 N
Chris@350 8385 s/\n//
Chris@350 8386 }
Chris@350 8387 ' >>$CONFIG_STATUS || ac_write_fail=1
Chris@350 8388 rm -f conf$$subs.awk
Chris@350 8389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@350 8390 _ACAWK
Chris@594 8391 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Chris@350 8392 for (key in S) S_is_set[key] = 1
Chris@350 8393 FS = ""
Chris@350 8394
Chris@350 8395 }
Chris@350 8396 {
Chris@350 8397 line = $ 0
Chris@350 8398 nfields = split(line, field, "@")
Chris@350 8399 substed = 0
Chris@350 8400 len = length(field[1])
Chris@350 8401 for (i = 2; i < nfields; i++) {
Chris@350 8402 key = field[i]
Chris@350 8403 keylen = length(key)
Chris@350 8404 if (S_is_set[key]) {
Chris@350 8405 value = S[key]
Chris@350 8406 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
Chris@350 8407 len += length(value) + length(field[++i])
Chris@350 8408 substed = 1
Chris@350 8409 } else
Chris@350 8410 len += 1 + keylen
Chris@350 8411 }
Chris@350 8412
Chris@350 8413 print line
Chris@350 8414 }
Chris@350 8415
Chris@350 8416 _ACAWK
Chris@350 8417 _ACEOF
Chris@350 8418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@350 8419 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
Chris@350 8420 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
Chris@350 8421 else
Chris@350 8422 cat
Chris@594 8423 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Chris@594 8424 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Chris@350 8425 _ACEOF
Chris@350 8426
Chris@594 8427 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
Chris@594 8428 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Chris@350 8429 # trailing colons and then remove the whole line if VPATH becomes empty
Chris@350 8430 # (actually we leave an empty line to preserve line numbers).
Chris@350 8431 if test "x$srcdir" = x.; then
Chris@594 8432 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
Chris@594 8433 h
Chris@594 8434 s///
Chris@594 8435 s/^/:/
Chris@594 8436 s/[ ]*$/:/
Chris@594 8437 s/:\$(srcdir):/:/g
Chris@594 8438 s/:\${srcdir}:/:/g
Chris@594 8439 s/:@srcdir@:/:/g
Chris@594 8440 s/^:*//
Chris@350 8441 s/:*$//
Chris@594 8442 x
Chris@594 8443 s/\(=[ ]*\).*/\1/
Chris@594 8444 G
Chris@594 8445 s/\n//
Chris@350 8446 s/^[^=]*=[ ]*$//
Chris@350 8447 }'
Chris@350 8448 fi
Chris@350 8449
Chris@350 8450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@350 8451 fi # test -n "$CONFIG_FILES"
Chris@350 8452
Chris@350 8453
Chris@350 8454 eval set X " :F $CONFIG_FILES "
Chris@350 8455 shift
Chris@350 8456 for ac_tag
Chris@350 8457 do
Chris@350 8458 case $ac_tag in
Chris@350 8459 :[FHLC]) ac_mode=$ac_tag; continue;;
Chris@350 8460 esac
Chris@350 8461 case $ac_mode$ac_tag in
Chris@350 8462 :[FHL]*:*);;
Chris@594 8463 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Chris@350 8464 :[FH]-) ac_tag=-:-;;
Chris@350 8465 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
Chris@350 8466 esac
Chris@350 8467 ac_save_IFS=$IFS
Chris@350 8468 IFS=:
Chris@350 8469 set x $ac_tag
Chris@350 8470 IFS=$ac_save_IFS
Chris@350 8471 shift
Chris@350 8472 ac_file=$1
Chris@350 8473 shift
Chris@350 8474
Chris@350 8475 case $ac_mode in
Chris@350 8476 :L) ac_source=$1;;
Chris@350 8477 :[FH])
Chris@350 8478 ac_file_inputs=
Chris@350 8479 for ac_f
Chris@350 8480 do
Chris@350 8481 case $ac_f in
Chris@594 8482 -) ac_f="$ac_tmp/stdin";;
Chris@350 8483 *) # Look for the file first in the build tree, then in the source tree
Chris@350 8484 # (if the path is not absolute). The absolute path cannot be DOS-style,
Chris@350 8485 # because $ac_f cannot contain `:'.
Chris@350 8486 test -f "$ac_f" ||
Chris@350 8487 case $ac_f in
Chris@350 8488 [\\/$]*) false;;
Chris@350 8489 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
Chris@350 8490 esac ||
Chris@594 8491 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Chris@350 8492 esac
Chris@350 8493 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Chris@350 8494 as_fn_append ac_file_inputs " '$ac_f'"
Chris@350 8495 done
Chris@350 8496
Chris@350 8497 # Let's still pretend it is `configure' which instantiates (i.e., don't
Chris@350 8498 # use $as_me), people would be surprised to read:
Chris@350 8499 # /* config.h. Generated by config.status. */
Chris@350 8500 configure_input='Generated from '`
Chris@350 8501 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
Chris@350 8502 `' by configure.'
Chris@350 8503 if test x"$ac_file" != x-; then
Chris@350 8504 configure_input="$ac_file. $configure_input"
Chris@350 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Chris@350 8506 $as_echo "$as_me: creating $ac_file" >&6;}
Chris@350 8507 fi
Chris@350 8508 # Neutralize special characters interpreted by sed in replacement strings.
Chris@350 8509 case $configure_input in #(
Chris@350 8510 *\&* | *\|* | *\\* )
Chris@350 8511 ac_sed_conf_input=`$as_echo "$configure_input" |
Chris@350 8512 sed 's/[\\\\&|]/\\\\&/g'`;; #(
Chris@350 8513 *) ac_sed_conf_input=$configure_input;;
Chris@350 8514 esac
Chris@350 8515
Chris@350 8516 case $ac_tag in
Chris@594 8517 *:-:* | *:-) cat >"$ac_tmp/stdin" \
Chris@594 8518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Chris@350 8519 esac
Chris@350 8520 ;;
Chris@350 8521 esac
Chris@350 8522
Chris@350 8523 ac_dir=`$as_dirname -- "$ac_file" ||
Chris@350 8524 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Chris@350 8525 X"$ac_file" : 'X\(//\)[^/]' \| \
Chris@350 8526 X"$ac_file" : 'X\(//\)$' \| \
Chris@350 8527 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Chris@350 8528 $as_echo X"$ac_file" |
Chris@350 8529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
Chris@350 8530 s//\1/
Chris@350 8531 q
Chris@350 8532 }
Chris@350 8533 /^X\(\/\/\)[^/].*/{
Chris@350 8534 s//\1/
Chris@350 8535 q
Chris@350 8536 }
Chris@350 8537 /^X\(\/\/\)$/{
Chris@350 8538 s//\1/
Chris@350 8539 q
Chris@350 8540 }
Chris@350 8541 /^X\(\/\).*/{
Chris@350 8542 s//\1/
Chris@350 8543 q
Chris@350 8544 }
Chris@350 8545 s/.*/./; q'`
Chris@350 8546 as_dir="$ac_dir"; as_fn_mkdir_p
Chris@350 8547 ac_builddir=.
Chris@350 8548
Chris@350 8549 case "$ac_dir" in
Chris@350 8550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@350 8551 *)
Chris@350 8552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Chris@350 8553 # A ".." for each directory in $ac_dir_suffix.
Chris@350 8554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Chris@350 8555 case $ac_top_builddir_sub in
Chris@350 8556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
Chris@350 8557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
Chris@350 8558 esac ;;
Chris@350 8559 esac
Chris@350 8560 ac_abs_top_builddir=$ac_pwd
Chris@350 8561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
Chris@350 8562 # for backward compatibility:
Chris@350 8563 ac_top_builddir=$ac_top_build_prefix
Chris@350 8564
Chris@350 8565 case $srcdir in
Chris@350 8566 .) # We are building in place.
Chris@350 8567 ac_srcdir=.
Chris@350 8568 ac_top_srcdir=$ac_top_builddir_sub
Chris@350 8569 ac_abs_top_srcdir=$ac_pwd ;;
Chris@350 8570 [\\/]* | ?:[\\/]* ) # Absolute name.
Chris@350 8571 ac_srcdir=$srcdir$ac_dir_suffix;
Chris@350 8572 ac_top_srcdir=$srcdir
Chris@350 8573 ac_abs_top_srcdir=$srcdir ;;
Chris@350 8574 *) # Relative name.
Chris@350 8575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
Chris@350 8576 ac_top_srcdir=$ac_top_build_prefix$srcdir
Chris@350 8577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Chris@350 8578 esac
Chris@350 8579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Chris@350 8580
Chris@350 8581
Chris@350 8582 case $ac_mode in
Chris@350 8583 :F)
Chris@350 8584 #
Chris@350 8585 # CONFIG_FILE
Chris@350 8586 #
Chris@350 8587
Chris@350 8588 case $INSTALL in
Chris@350 8589 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Chris@350 8590 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Chris@350 8591 esac
Chris@350 8592 ac_MKDIR_P=$MKDIR_P
Chris@350 8593 case $MKDIR_P in
Chris@350 8594 [\\/$]* | ?:[\\/]* ) ;;
Chris@350 8595 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
Chris@350 8596 esac
Chris@350 8597 _ACEOF
Chris@350 8598
Chris@350 8599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@350 8600 # If the template does not know about datarootdir, expand it.
Chris@350 8601 # FIXME: This hack should be removed a few years after 2.60.
Chris@350 8602 ac_datarootdir_hack=; ac_datarootdir_seen=
Chris@350 8603 ac_sed_dataroot='
Chris@350 8604 /datarootdir/ {
Chris@350 8605 p
Chris@350 8606 q
Chris@350 8607 }
Chris@350 8608 /@datadir@/p
Chris@350 8609 /@docdir@/p
Chris@350 8610 /@infodir@/p
Chris@350 8611 /@localedir@/p
Chris@350 8612 /@mandir@/p'
Chris@350 8613 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Chris@350 8614 *datarootdir*) ac_datarootdir_seen=yes;;
Chris@350 8615 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Chris@350 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Chris@350 8617 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Chris@350 8618 _ACEOF
Chris@350 8619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@350 8620 ac_datarootdir_hack='
Chris@350 8621 s&@datadir@&$datadir&g
Chris@350 8622 s&@docdir@&$docdir&g
Chris@350 8623 s&@infodir@&$infodir&g
Chris@350 8624 s&@localedir@&$localedir&g
Chris@350 8625 s&@mandir@&$mandir&g
Chris@350 8626 s&\\\${datarootdir}&$datarootdir&g' ;;
Chris@350 8627 esac
Chris@350 8628 _ACEOF
Chris@350 8629
Chris@350 8630 # Neutralize VPATH when `$srcdir' = `.'.
Chris@350 8631 # Shell code in configure.ac might set extrasub.
Chris@350 8632 # FIXME: do we really want to maintain this feature?
Chris@350 8633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris@350 8634 ac_sed_extra="$ac_vpsub
Chris@350 8635 $extrasub
Chris@350 8636 _ACEOF
Chris@350 8637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris@350 8638 :t
Chris@350 8639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Chris@350 8640 s|@configure_input@|$ac_sed_conf_input|;t t
Chris@350 8641 s&@top_builddir@&$ac_top_builddir_sub&;t t
Chris@350 8642 s&@top_build_prefix@&$ac_top_build_prefix&;t t
Chris@350 8643 s&@srcdir@&$ac_srcdir&;t t
Chris@350 8644 s&@abs_srcdir@&$ac_abs_srcdir&;t t
Chris@350 8645 s&@top_srcdir@&$ac_top_srcdir&;t t
Chris@350 8646 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
Chris@350 8647 s&@builddir@&$ac_builddir&;t t
Chris@350 8648 s&@abs_builddir@&$ac_abs_builddir&;t t
Chris@350 8649 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Chris@350 8650 s&@INSTALL@&$ac_INSTALL&;t t
Chris@350 8651 s&@MKDIR_P@&$ac_MKDIR_P&;t t
Chris@350 8652 $ac_datarootdir_hack
Chris@350 8653 "
Chris@594 8654 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
Chris@594 8655 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@350 8656
Chris@350 8657 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris@594 8658 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
Chris@594 8659 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
Chris@594 8660 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Chris@350 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@594 8662 which seems to be undefined. Please make sure it is defined" >&5
Chris@350 8663 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris@594 8664 which seems to be undefined. Please make sure it is defined" >&2;}
Chris@594 8665
Chris@594 8666 rm -f "$ac_tmp/stdin"
Chris@350 8667 case $ac_file in
Chris@594 8668 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
Chris@594 8669 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Chris@350 8670 esac \
Chris@594 8671 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Chris@350 8672 ;;
Chris@350 8673
Chris@350 8674
Chris@350 8675
Chris@350 8676 esac
Chris@350 8677
Chris@350 8678 done # for ac_tag
Chris@350 8679
Chris@350 8680
Chris@350 8681 as_fn_exit 0
Chris@350 8682 _ACEOF
Chris@350 8683 ac_clean_files=$ac_clean_files_save
Chris@350 8684
Chris@350 8685 test $ac_write_fail = 0 ||
Chris@594 8686 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Chris@350 8687
Chris@350 8688
Chris@350 8689 # configure is writing to config.log, and then calls config.status.
Chris@350 8690 # config.status does its own redirection, appending to config.log.
Chris@350 8691 # Unfortunately, on DOS this fails, as config.log is still kept open
Chris@350 8692 # by configure, so config.status won't be able to write to it; its
Chris@350 8693 # output is simply discarded. So we exec the FD to /dev/null,
Chris@350 8694 # effectively closing config.log, so it can be properly (re)opened and
Chris@350 8695 # appended to by config.status. When coming back to configure, we
Chris@350 8696 # need to make the FD available again.
Chris@350 8697 if test "$no_create" != yes; then
Chris@350 8698 ac_cs_success=:
Chris@350 8699 ac_config_status_args=
Chris@350 8700 test "$silent" = yes &&
Chris@350 8701 ac_config_status_args="$ac_config_status_args --quiet"
Chris@350 8702 exec 5>/dev/null
Chris@350 8703 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Chris@350 8704 exec 5>>config.log
Chris@350 8705 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
Chris@350 8706 # would make configure fail if this is the last instruction.
Chris@594 8707 $ac_cs_success || as_fn_exit 1
Chris@350 8708 fi
Chris@351 8709 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Chris@351 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Chris@351 8711 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Chris@351 8712 fi
Chris@351 8713
Chris@350 8714
Chris@1808 8715 if test -x repoint ; then
Chris@1709 8716 if test -d .hg -o -d .git ; then
Chris@1808 8717 if ! ./repoint install; then
Chris@1808 8718 as_fn_error $? "Repoint failed; please fix any reported errors and try again" "$LINENO" 5
Chris@1709 8719 fi
Chris@1709 8720 else
Chris@1808 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: Repoint executable found but not in an Hg or Git working-copy: not running it" >&5
Chris@1808 8722 $as_echo "$as_me: Repoint executable found but not in an Hg or Git working-copy: not running it" >&6;}
Chris@1709 8723 if ! test -d vamp-plugin-sdk ; then
Chris@1709 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No vamp-plugin-sdk directory present, so external libraries might not have been updated" >&5
Chris@1709 8725 $as_echo "$as_me: WARNING: No vamp-plugin-sdk directory present, so external libraries might not have been updated" >&2;}
Chris@1709 8726 fi
Chris@1707 8727 fi
Chris@1709 8728 else
Chris@2363 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: No Repoint executable found: assuming external components are already here" >&5
Chris@2363 8730 $as_echo "$as_me: No Repoint executable found: assuming external components are already here" >&6;}
Chris@1709 8731 if ! test -d vamp-plugin-sdk ; then
Chris@2363 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No vamp-plugin-sdk directory present, so external components might not have been updated" >&5
Chris@2363 8733 $as_echo "$as_me: WARNING: No vamp-plugin-sdk directory present, so external components might not have been updated" >&2;}
Chris@1709 8734 fi
Chris@1709 8735 fi
Chris@1709 8736
Chris@521 8737 if ! $QMAKE -r sonic-visualiser.pro; then
Chris@594 8738 as_fn_error $? "qmake failed: Command was \"$QMAKE -r\"" "$LINENO" 5
Chris@350 8739 fi
Chris@350 8740
Chris@350 8741 { $as_echo "$as_me:${as_lineno-$LINENO}:
Chris@350 8742
Chris@350 8743 Configuration complete.
Chris@350 8744 Please check the above messages for any warnings that you
Chris@350 8745 might care about, and then run \"make\".
Chris@350 8746
Chris@350 8747 The file config.pri contains the configuration settings for
Chris@350 8748 qmake. If you want to adjust these by hand, edit config.pri
Chris@548 8749 and run \"$QMAKE -r\" again to regenerate the Makefile.
Chris@350 8750 " >&5
Chris@350 8751 $as_echo "$as_me:
Chris@350 8752
Chris@350 8753 Configuration complete.
Chris@350 8754 Please check the above messages for any warnings that you
Chris@350 8755 might care about, and then run \"make\".
Chris@350 8756
Chris@350 8757 The file config.pri contains the configuration settings for
Chris@350 8758 qmake. If you want to adjust these by hand, edit config.pri
Chris@548 8759 and run \"$QMAKE -r\" again to regenerate the Makefile.
Chris@350 8760 " >&6;}