Chris@564: #! /bin/sh Chris@564: # Guess values for system-dependent variables and create Makefiles. Chris@580: # Generated by GNU Autoconf 2.67 for SVgui 1.8. Chris@564: # Chris@564: # Report bugs to . Chris@564: # Chris@564: # Chris@564: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, Chris@580: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Chris@580: # Foundation, Inc. Chris@564: # Chris@564: # Chris@564: # This configure script is free software; the Free Software Foundation Chris@564: # gives unlimited permission to copy, distribute and modify it. Chris@564: ## -------------------- ## Chris@564: ## M4sh Initialization. ## Chris@564: ## -------------------- ## Chris@564: Chris@564: # Be more Bourne compatible Chris@564: DUALCASE=1; export DUALCASE # for MKS sh Chris@564: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : Chris@564: emulate sh Chris@564: NULLCMD=: Chris@564: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which Chris@564: # is contrary to our usage. Disable this feature. Chris@564: alias -g '${1+"$@"}'='"$@"' Chris@564: setopt NO_GLOB_SUBST Chris@564: else Chris@564: case `(set -o) 2>/dev/null` in #( Chris@564: *posix*) : Chris@564: set -o posix ;; #( Chris@564: *) : Chris@564: ;; Chris@564: esac Chris@564: fi Chris@564: Chris@564: Chris@564: as_nl=' Chris@564: ' Chris@564: export as_nl Chris@564: # Printing a long string crashes Solaris 7 /usr/bin/printf. Chris@564: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' Chris@564: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo Chris@564: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo Chris@564: # Prefer a ksh shell builtin over an external printf program on Solaris, Chris@564: # but without wasting forks for bash or zsh. Chris@564: if test -z "$BASH_VERSION$ZSH_VERSION" \ Chris@564: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then Chris@564: as_echo='print -r --' Chris@564: as_echo_n='print -rn --' Chris@564: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then Chris@564: as_echo='printf %s\n' Chris@564: as_echo_n='printf %s' Chris@564: else Chris@564: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then Chris@564: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' Chris@564: as_echo_n='/usr/ucb/echo -n' Chris@564: else Chris@564: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' Chris@564: as_echo_n_body='eval Chris@564: arg=$1; Chris@564: case $arg in #( Chris@564: *"$as_nl"*) Chris@564: expr "X$arg" : "X\\(.*\\)$as_nl"; Chris@564: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; Chris@564: esac; Chris@564: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" Chris@564: ' Chris@564: export as_echo_n_body Chris@564: as_echo_n='sh -c $as_echo_n_body as_echo' Chris@564: fi Chris@564: export as_echo_body Chris@564: as_echo='sh -c $as_echo_body as_echo' Chris@564: fi Chris@564: Chris@564: # The user is always right. Chris@564: if test "${PATH_SEPARATOR+set}" != set; then Chris@564: PATH_SEPARATOR=: Chris@564: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { Chris@564: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || Chris@564: PATH_SEPARATOR=';' Chris@564: } Chris@564: fi Chris@564: Chris@564: Chris@564: # IFS Chris@564: # We need space, tab and new line, in precisely that order. Quoting is Chris@564: # there to prevent editors from complaining about space-tab. Chris@564: # (If _AS_PATH_WALK were called with IFS unset, it would disable word Chris@564: # splitting by setting IFS to empty value.) Chris@564: IFS=" "" $as_nl" Chris@564: Chris@564: # Find who we are. Look in the path if we contain no directory separator. Chris@564: case $0 in #(( Chris@564: *[\\/]* ) as_myself=$0 ;; Chris@564: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: ;; Chris@564: esac Chris@564: # We did not find ourselves, most probably we were run as `sh COMMAND' Chris@564: # in which case we are not to be found in the path. Chris@564: if test "x$as_myself" = x; then Chris@564: as_myself=$0 Chris@564: fi Chris@564: if test ! -f "$as_myself"; then Chris@564: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 Chris@564: exit 1 Chris@564: fi Chris@564: Chris@564: # Unset variables that we do not need and which cause bugs (e.g. in Chris@564: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" Chris@564: # suppresses any "Segmentation fault" message there. '((' could Chris@564: # trigger a bug in pdksh 5.2.14. Chris@564: for as_var in BASH_ENV ENV MAIL MAILPATH Chris@564: do eval test x\${$as_var+set} = xset \ Chris@564: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : Chris@564: done Chris@564: PS1='$ ' Chris@564: PS2='> ' Chris@564: PS4='+ ' Chris@564: Chris@564: # NLS nuisances. Chris@564: LC_ALL=C Chris@564: export LC_ALL Chris@564: LANGUAGE=C Chris@564: export LANGUAGE Chris@564: Chris@564: # CDPATH. Chris@564: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH Chris@564: Chris@564: if test "x$CONFIG_SHELL" = x; then Chris@564: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : Chris@564: emulate sh Chris@564: NULLCMD=: Chris@564: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which Chris@564: # is contrary to our usage. Disable this feature. Chris@564: alias -g '\${1+\"\$@\"}'='\"\$@\"' Chris@564: setopt NO_GLOB_SUBST Chris@564: else Chris@564: case \`(set -o) 2>/dev/null\` in #( Chris@564: *posix*) : Chris@564: set -o posix ;; #( Chris@564: *) : Chris@564: ;; Chris@564: esac Chris@564: fi Chris@564: " Chris@564: as_required="as_fn_return () { (exit \$1); } Chris@564: as_fn_success () { as_fn_return 0; } Chris@564: as_fn_failure () { as_fn_return 1; } Chris@564: as_fn_ret_success () { return 0; } Chris@564: as_fn_ret_failure () { return 1; } Chris@564: Chris@564: exitcode=0 Chris@564: as_fn_success || { exitcode=1; echo as_fn_success failed.; } Chris@564: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } Chris@564: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } Chris@564: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } Chris@564: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : Chris@564: Chris@564: else Chris@564: exitcode=1; echo positional parameters were not saved. Chris@564: fi Chris@564: test x\$exitcode = x0 || exit 1" Chris@564: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO Chris@564: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO Chris@564: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && Chris@564: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 Chris@564: test \$(( 1 + 1 )) = 2 || exit 1" Chris@564: if (eval "$as_required") 2>/dev/null; then : Chris@564: as_have_required=yes Chris@564: else Chris@564: as_have_required=no Chris@564: fi Chris@564: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : Chris@564: Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: as_found=false Chris@564: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: as_found=: Chris@564: case $as_dir in #( Chris@564: /*) Chris@564: for as_base in sh bash ksh sh5; do Chris@564: # Try only shells that exist, to save several forks. Chris@564: as_shell=$as_dir/$as_base Chris@564: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && Chris@564: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : Chris@564: CONFIG_SHELL=$as_shell as_have_required=yes Chris@564: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : Chris@564: break 2 Chris@564: fi Chris@564: fi Chris@564: done;; Chris@564: esac Chris@564: as_found=false Chris@564: done Chris@564: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && Chris@564: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : Chris@564: CONFIG_SHELL=$SHELL as_have_required=yes Chris@564: fi; } Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: Chris@564: if test "x$CONFIG_SHELL" != x; then : Chris@564: # We cannot yet assume a decent shell, so we have to provide a Chris@564: # neutralization value for shells without unset; and this also Chris@564: # works around shells that cannot unset nonexistent variables. Chris@564: BASH_ENV=/dev/null Chris@564: ENV=/dev/null Chris@564: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV Chris@564: export CONFIG_SHELL Chris@564: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} Chris@564: fi Chris@564: Chris@564: if test x$as_have_required = xno; then : Chris@564: $as_echo "$0: This script requires a shell more modern than all" Chris@564: $as_echo "$0: the shells that I found on your system." Chris@564: if test x${ZSH_VERSION+set} = xset ; then Chris@564: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" Chris@564: $as_echo "$0: be upgraded to zsh 4.3.4 or later." Chris@564: else Chris@564: $as_echo "$0: Please tell bug-autoconf@gnu.org and Chris@564: $0: cannam@all-day-breakfast.com about your system, Chris@564: $0: including any error possibly output before this Chris@564: $0: message. Then install a modern shell, or manually run Chris@564: $0: the script under such a shell if you do have one." Chris@564: fi Chris@564: exit 1 Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: SHELL=${CONFIG_SHELL-/bin/sh} Chris@564: export SHELL Chris@564: # Unset more variables known to interfere with behavior of common tools. Chris@564: CLICOLOR_FORCE= GREP_OPTIONS= Chris@564: unset CLICOLOR_FORCE GREP_OPTIONS Chris@564: Chris@564: ## --------------------- ## Chris@564: ## M4sh Shell Functions. ## Chris@564: ## --------------------- ## Chris@564: # as_fn_unset VAR Chris@564: # --------------- Chris@564: # Portably unset VAR. Chris@564: as_fn_unset () Chris@564: { Chris@564: { eval $1=; unset $1;} Chris@564: } Chris@564: as_unset=as_fn_unset Chris@564: Chris@564: # as_fn_set_status STATUS Chris@564: # ----------------------- Chris@564: # Set $? to STATUS, without forking. Chris@564: as_fn_set_status () Chris@564: { Chris@564: return $1 Chris@564: } # as_fn_set_status Chris@564: Chris@564: # as_fn_exit STATUS Chris@564: # ----------------- Chris@564: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. Chris@564: as_fn_exit () Chris@564: { Chris@564: set +e Chris@564: as_fn_set_status $1 Chris@564: exit $1 Chris@564: } # as_fn_exit Chris@564: Chris@564: # as_fn_mkdir_p Chris@564: # ------------- Chris@564: # Create "$as_dir" as a directory, including parents if necessary. Chris@564: as_fn_mkdir_p () Chris@564: { Chris@564: Chris@564: case $as_dir in #( Chris@564: -*) as_dir=./$as_dir;; Chris@564: esac Chris@564: test -d "$as_dir" || eval $as_mkdir_p || { Chris@564: as_dirs= Chris@564: while :; do Chris@564: case $as_dir in #( Chris@564: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( Chris@564: *) as_qdir=$as_dir;; Chris@564: esac Chris@564: as_dirs="'$as_qdir' $as_dirs" Chris@564: as_dir=`$as_dirname -- "$as_dir" || Chris@564: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@564: X"$as_dir" : 'X\(//\)[^/]' \| \ Chris@564: X"$as_dir" : 'X\(//\)$' \| \ Chris@564: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || Chris@564: $as_echo X"$as_dir" | Chris@564: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\(\/\/\)[^/].*/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\(\/\/\)$/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\(\/\).*/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: s/.*/./; q'` Chris@564: test -d "$as_dir" && break Chris@564: done Chris@564: test -z "$as_dirs" || eval "mkdir $as_dirs" Chris@580: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" Chris@564: Chris@564: Chris@564: } # as_fn_mkdir_p Chris@564: # as_fn_append VAR VALUE Chris@564: # ---------------------- Chris@564: # Append the text in VALUE to the end of the definition contained in VAR. Take Chris@564: # advantage of any shell optimizations that allow amortized linear growth over Chris@564: # repeated appends, instead of the typical quadratic growth present in naive Chris@564: # implementations. Chris@564: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : Chris@564: eval 'as_fn_append () Chris@564: { Chris@564: eval $1+=\$2 Chris@564: }' Chris@564: else Chris@564: as_fn_append () Chris@564: { Chris@564: eval $1=\$$1\$2 Chris@564: } Chris@564: fi # as_fn_append Chris@564: Chris@564: # as_fn_arith ARG... Chris@564: # ------------------ Chris@564: # Perform arithmetic evaluation on the ARGs, and store the result in the Chris@564: # global $as_val. Take advantage of shells that can avoid forks. The arguments Chris@564: # must be portable across $(()) and expr. Chris@564: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : Chris@564: eval 'as_fn_arith () Chris@564: { Chris@564: as_val=$(( $* )) Chris@564: }' Chris@564: else Chris@564: as_fn_arith () Chris@564: { Chris@564: as_val=`expr "$@" || test $? -eq 1` Chris@564: } Chris@564: fi # as_fn_arith Chris@564: Chris@564: Chris@580: # as_fn_error STATUS ERROR [LINENO LOG_FD] Chris@580: # ---------------------------------------- Chris@564: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are Chris@564: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the Chris@580: # script with STATUS, using 1 if that was 0. Chris@564: as_fn_error () Chris@564: { Chris@580: as_status=$1; test $as_status -eq 0 && as_status=1 Chris@580: if test "$4"; then Chris@580: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack Chris@580: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 Chris@564: fi Chris@580: $as_echo "$as_me: error: $2" >&2 Chris@564: as_fn_exit $as_status Chris@564: } # as_fn_error Chris@564: Chris@564: if expr a : '\(a\)' >/dev/null 2>&1 && Chris@564: test "X`expr 00001 : '.*\(...\)'`" = X001; then Chris@564: as_expr=expr Chris@564: else Chris@564: as_expr=false Chris@564: fi Chris@564: Chris@564: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then Chris@564: as_basename=basename Chris@564: else Chris@564: as_basename=false Chris@564: fi Chris@564: Chris@564: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then Chris@564: as_dirname=dirname Chris@564: else Chris@564: as_dirname=false Chris@564: fi Chris@564: Chris@564: as_me=`$as_basename -- "$0" || Chris@564: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ Chris@564: X"$0" : 'X\(//\)$' \| \ Chris@564: X"$0" : 'X\(/\)' \| . 2>/dev/null || Chris@564: $as_echo X/"$0" | Chris@564: sed '/^.*\/\([^/][^/]*\)\/*$/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\/\(\/\/\)$/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\/\(\/\).*/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: s/.*/./; q'` Chris@564: Chris@564: # Avoid depending upon Character Ranges. Chris@564: as_cr_letters='abcdefghijklmnopqrstuvwxyz' Chris@564: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' Chris@564: as_cr_Letters=$as_cr_letters$as_cr_LETTERS Chris@564: as_cr_digits='0123456789' Chris@564: as_cr_alnum=$as_cr_Letters$as_cr_digits Chris@564: Chris@564: Chris@564: as_lineno_1=$LINENO as_lineno_1a=$LINENO Chris@564: as_lineno_2=$LINENO as_lineno_2a=$LINENO Chris@564: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && Chris@564: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { Chris@564: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) Chris@564: sed -n ' Chris@564: p Chris@564: /[$]LINENO/= Chris@564: ' <$as_myself | Chris@564: sed ' Chris@564: s/[$]LINENO.*/&-/ Chris@564: t lineno Chris@564: b Chris@564: :lineno Chris@564: N Chris@564: :loop Chris@564: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ Chris@564: t loop Chris@564: s/-\n.*// Chris@564: ' >$as_me.lineno && Chris@564: chmod +x "$as_me.lineno" || Chris@564: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } Chris@564: Chris@564: # Don't try to exec as it changes $[0], causing all sort of problems Chris@564: # (the dirname of $[0] is not the place where we might find the Chris@564: # original and so on. Autoconf is especially sensitive to this). Chris@564: . "./$as_me.lineno" Chris@564: # Exit status is that of the last command. Chris@564: exit Chris@564: } Chris@564: Chris@564: ECHO_C= ECHO_N= ECHO_T= Chris@564: case `echo -n x` in #((((( Chris@564: -n*) Chris@564: case `echo 'xy\c'` in Chris@564: *c*) ECHO_T=' ';; # ECHO_T is single tab character. Chris@564: xy) ECHO_C='\c';; Chris@564: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null Chris@564: ECHO_T=' ';; Chris@564: esac;; Chris@564: *) Chris@564: ECHO_N='-n';; Chris@564: esac Chris@564: Chris@564: rm -f conf$$ conf$$.exe conf$$.file Chris@564: if test -d conf$$.dir; then Chris@564: rm -f conf$$.dir/conf$$.file Chris@564: else Chris@564: rm -f conf$$.dir Chris@564: mkdir conf$$.dir 2>/dev/null Chris@564: fi Chris@564: if (echo >conf$$.file) 2>/dev/null; then Chris@564: if ln -s conf$$.file conf$$ 2>/dev/null; then Chris@564: as_ln_s='ln -s' Chris@564: # ... but there are two gotchas: Chris@564: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. Chris@564: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. Chris@564: # In both cases, we have to default to `cp -p'. Chris@564: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || Chris@564: as_ln_s='cp -p' Chris@564: elif ln conf$$.file conf$$ 2>/dev/null; then Chris@564: as_ln_s=ln Chris@564: else Chris@564: as_ln_s='cp -p' Chris@564: fi Chris@564: else Chris@564: as_ln_s='cp -p' Chris@564: fi Chris@564: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file Chris@564: rmdir conf$$.dir 2>/dev/null Chris@564: Chris@564: if mkdir -p . 2>/dev/null; then Chris@564: as_mkdir_p='mkdir -p "$as_dir"' Chris@564: else Chris@564: test -d ./-p && rmdir ./-p Chris@564: as_mkdir_p=false Chris@564: fi Chris@564: Chris@564: if test -x / >/dev/null 2>&1; then Chris@564: as_test_x='test -x' Chris@564: else Chris@564: if ls -dL / >/dev/null 2>&1; then Chris@564: as_ls_L_option=L Chris@564: else Chris@564: as_ls_L_option= Chris@564: fi Chris@564: as_test_x=' Chris@564: eval sh -c '\'' Chris@564: if test -d "$1"; then Chris@564: test -d "$1/."; Chris@564: else Chris@564: case $1 in #( Chris@564: -*)set "./$1";; Chris@564: esac; Chris@564: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( Chris@564: ???[sx]*):;;*)false;;esac;fi Chris@564: '\'' sh Chris@564: ' Chris@564: fi Chris@564: as_executable_p=$as_test_x Chris@564: Chris@564: # Sed expression to map a string onto a valid CPP name. Chris@564: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" Chris@564: Chris@564: # Sed expression to map a string onto a valid variable name. Chris@564: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" Chris@564: Chris@564: Chris@564: test -n "$DJDIR" || exec 7<&0 &1 Chris@564: Chris@564: # Name of the host. Chris@580: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, Chris@564: # so uname gets run too. Chris@564: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` Chris@564: Chris@564: # Chris@564: # Initializations. Chris@564: # Chris@564: ac_default_prefix=/usr/local Chris@564: ac_clean_files= Chris@564: ac_config_libobj_dir=. Chris@564: LIBOBJS= Chris@564: cross_compiling=no Chris@564: subdirs= Chris@564: MFLAGS= Chris@564: MAKEFLAGS= Chris@564: Chris@564: # Identity of this package. Chris@565: PACKAGE_NAME='SVgui' Chris@565: PACKAGE_TARNAME='svgui' Chris@564: PACKAGE_VERSION='1.8' Chris@565: PACKAGE_STRING='SVgui 1.8' Chris@564: PACKAGE_BUGREPORT='cannam@all-day-breakfast.com' Chris@564: PACKAGE_URL='' Chris@564: Chris@565: ac_unique_file="widgets/Fader.h" Chris@564: # Factoring default headers for most tests. Chris@564: ac_includes_default="\ Chris@564: #include Chris@564: #ifdef HAVE_SYS_TYPES_H Chris@564: # include Chris@564: #endif Chris@564: #ifdef HAVE_SYS_STAT_H Chris@564: # include Chris@564: #endif Chris@564: #ifdef STDC_HEADERS Chris@564: # include Chris@564: # include Chris@564: #else Chris@564: # ifdef HAVE_STDLIB_H Chris@564: # include Chris@564: # endif Chris@564: #endif Chris@564: #ifdef HAVE_STRING_H Chris@564: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H Chris@564: # include Chris@564: # endif Chris@564: # include Chris@564: #endif Chris@564: #ifdef HAVE_STRINGS_H Chris@564: # include Chris@564: #endif Chris@564: #ifdef HAVE_INTTYPES_H Chris@564: # include Chris@564: #endif Chris@564: #ifdef HAVE_STDINT_H Chris@564: # include Chris@564: #endif Chris@564: #ifdef HAVE_UNISTD_H Chris@564: # include Chris@564: #endif" Chris@564: Chris@564: ac_subst_vars='LTLIBOBJS Chris@564: LIBOBJS Chris@564: CODENAME Chris@573: QMAKE_CONFIG Chris@564: HAVES Chris@564: CXXFLAGS_MINIMAL Chris@564: CUT Chris@564: SHA1SUM Chris@564: MAKEDEPEND Chris@564: XARGS Chris@564: PERL Chris@564: id3tag_LIBS Chris@564: id3tag_CFLAGS Chris@564: mad_LIBS Chris@564: mad_CFLAGS Chris@564: fishsound_LIBS Chris@564: fishsound_CFLAGS Chris@564: oggz_LIBS Chris@564: oggz_CFLAGS Chris@564: lrdf_LIBS Chris@564: lrdf_CFLAGS Chris@564: libpulse_LIBS Chris@564: libpulse_CFLAGS Chris@564: JACK_LIBS Chris@564: JACK_CFLAGS Chris@570: portaudio_2_0_LIBS Chris@570: portaudio_2_0_CFLAGS Chris@564: liblo_LIBS Chris@564: liblo_CFLAGS Chris@564: redland_LIBS Chris@564: redland_CFLAGS Chris@564: rasqal_LIBS Chris@564: rasqal_CFLAGS Chris@564: raptor_LIBS Chris@564: raptor_CFLAGS Chris@564: rubberband_LIBS Chris@564: rubberband_CFLAGS Chris@564: vamphostsdk_LIBS Chris@564: vamphostsdk_CFLAGS Chris@564: vamp_LIBS Chris@564: vamp_CFLAGS Chris@564: samplerate_LIBS Chris@564: samplerate_CFLAGS Chris@564: sndfile_LIBS Chris@564: sndfile_CFLAGS Chris@564: fftw3f_LIBS Chris@564: fftw3f_CFLAGS Chris@564: fftw3_LIBS Chris@564: fftw3_CFLAGS Chris@564: bz2_LIBS Chris@564: bz2_CFLAGS Chris@564: QMAKE Chris@564: PKG_CONFIG Chris@564: EGREP Chris@564: GREP Chris@564: CXXCPP Chris@564: MKDIR_P Chris@564: INSTALL_DATA Chris@564: INSTALL_SCRIPT Chris@564: INSTALL_PROGRAM Chris@564: ac_ct_CXX Chris@564: CXXFLAGS Chris@564: CXX Chris@564: OBJEXT Chris@564: EXEEXT Chris@564: ac_ct_CC Chris@564: CPPFLAGS Chris@564: LDFLAGS Chris@564: CFLAGS Chris@564: CC Chris@564: target_alias Chris@564: host_alias Chris@564: build_alias Chris@564: LIBS Chris@564: ECHO_T Chris@564: ECHO_N Chris@564: ECHO_C Chris@564: DEFS Chris@564: mandir Chris@564: localedir Chris@564: libdir Chris@564: psdir Chris@564: pdfdir Chris@564: dvidir Chris@564: htmldir Chris@564: infodir Chris@564: docdir Chris@564: oldincludedir Chris@564: includedir Chris@564: localstatedir Chris@564: sharedstatedir Chris@564: sysconfdir Chris@564: datadir Chris@564: datarootdir Chris@564: libexecdir Chris@564: sbindir Chris@564: bindir Chris@564: program_transform_name Chris@564: prefix Chris@564: exec_prefix Chris@564: PACKAGE_URL Chris@564: PACKAGE_BUGREPORT Chris@564: PACKAGE_STRING Chris@564: PACKAGE_VERSION Chris@564: PACKAGE_TARNAME Chris@564: PACKAGE_NAME Chris@564: PATH_SEPARATOR Chris@564: SHELL' Chris@564: ac_subst_files='' Chris@564: ac_user_opts=' Chris@564: enable_option_checking Chris@564: enable_debug Chris@564: ' Chris@564: ac_precious_vars='build_alias Chris@564: host_alias Chris@564: target_alias Chris@564: CC Chris@564: CFLAGS Chris@564: LDFLAGS Chris@564: LIBS Chris@564: CPPFLAGS Chris@564: CXX Chris@564: CXXFLAGS Chris@564: CCC Chris@564: CXXCPP Chris@564: PKG_CONFIG Chris@564: bz2_CFLAGS Chris@564: bz2_LIBS Chris@564: fftw3_CFLAGS Chris@564: fftw3_LIBS Chris@564: fftw3f_CFLAGS Chris@564: fftw3f_LIBS Chris@564: sndfile_CFLAGS Chris@564: sndfile_LIBS Chris@564: samplerate_CFLAGS Chris@564: samplerate_LIBS Chris@564: vamp_CFLAGS Chris@564: vamp_LIBS Chris@564: vamphostsdk_CFLAGS Chris@564: vamphostsdk_LIBS Chris@564: rubberband_CFLAGS Chris@564: rubberband_LIBS Chris@564: raptor_CFLAGS Chris@564: raptor_LIBS Chris@564: rasqal_CFLAGS Chris@564: rasqal_LIBS Chris@564: redland_CFLAGS Chris@564: redland_LIBS Chris@564: liblo_CFLAGS Chris@564: liblo_LIBS Chris@570: portaudio_2_0_CFLAGS Chris@570: portaudio_2_0_LIBS Chris@564: JACK_CFLAGS Chris@564: JACK_LIBS Chris@564: libpulse_CFLAGS Chris@564: libpulse_LIBS Chris@564: lrdf_CFLAGS Chris@564: lrdf_LIBS Chris@564: oggz_CFLAGS Chris@564: oggz_LIBS Chris@564: fishsound_CFLAGS Chris@564: fishsound_LIBS Chris@564: mad_CFLAGS Chris@564: mad_LIBS Chris@564: id3tag_CFLAGS Chris@564: id3tag_LIBS' Chris@564: Chris@564: Chris@564: # Initialize some variables set by options. Chris@564: ac_init_help= Chris@564: ac_init_version=false Chris@564: ac_unrecognized_opts= Chris@564: ac_unrecognized_sep= Chris@564: # The variables have the same names as the options, with Chris@564: # dashes changed to underlines. Chris@564: cache_file=/dev/null Chris@564: exec_prefix=NONE Chris@564: no_create= Chris@564: no_recursion= Chris@564: prefix=NONE Chris@564: program_prefix=NONE Chris@564: program_suffix=NONE Chris@564: program_transform_name=s,x,x, Chris@564: silent= Chris@564: site= Chris@564: srcdir= Chris@564: verbose= Chris@564: x_includes=NONE Chris@564: x_libraries=NONE Chris@564: Chris@564: # Installation directory options. Chris@564: # These are left unexpanded so users can "make install exec_prefix=/foo" Chris@564: # and all the variables that are supposed to be based on exec_prefix Chris@564: # by default will actually change. Chris@564: # Use braces instead of parens because sh, perl, etc. also accept them. Chris@564: # (The list follows the same order as the GNU Coding Standards.) Chris@564: bindir='${exec_prefix}/bin' Chris@564: sbindir='${exec_prefix}/sbin' Chris@564: libexecdir='${exec_prefix}/libexec' Chris@564: datarootdir='${prefix}/share' Chris@564: datadir='${datarootdir}' Chris@564: sysconfdir='${prefix}/etc' Chris@564: sharedstatedir='${prefix}/com' Chris@564: localstatedir='${prefix}/var' Chris@564: includedir='${prefix}/include' Chris@564: oldincludedir='/usr/include' Chris@564: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' Chris@564: infodir='${datarootdir}/info' Chris@564: htmldir='${docdir}' Chris@564: dvidir='${docdir}' Chris@564: pdfdir='${docdir}' Chris@564: psdir='${docdir}' Chris@564: libdir='${exec_prefix}/lib' Chris@564: localedir='${datarootdir}/locale' Chris@564: mandir='${datarootdir}/man' Chris@564: Chris@564: ac_prev= Chris@564: ac_dashdash= Chris@564: for ac_option Chris@564: do Chris@564: # If the previous option needs an argument, assign it. Chris@564: if test -n "$ac_prev"; then Chris@564: eval $ac_prev=\$ac_option Chris@564: ac_prev= Chris@564: continue Chris@564: fi Chris@564: Chris@564: case $ac_option in Chris@580: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; Chris@580: *=) ac_optarg= ;; Chris@580: *) ac_optarg=yes ;; Chris@564: esac Chris@564: Chris@564: # Accept the important Cygnus configure options, so we can diagnose typos. Chris@564: Chris@564: case $ac_dashdash$ac_option in Chris@564: --) Chris@564: ac_dashdash=yes ;; Chris@564: Chris@564: -bindir | --bindir | --bindi | --bind | --bin | --bi) Chris@564: ac_prev=bindir ;; Chris@564: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) Chris@564: bindir=$ac_optarg ;; Chris@564: Chris@564: -build | --build | --buil | --bui | --bu) Chris@564: ac_prev=build_alias ;; Chris@564: -build=* | --build=* | --buil=* | --bui=* | --bu=*) Chris@564: build_alias=$ac_optarg ;; Chris@564: Chris@564: -cache-file | --cache-file | --cache-fil | --cache-fi \ Chris@564: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) Chris@564: ac_prev=cache_file ;; Chris@564: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ Chris@564: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) Chris@564: cache_file=$ac_optarg ;; Chris@564: Chris@564: --config-cache | -C) Chris@564: cache_file=config.cache ;; Chris@564: Chris@564: -datadir | --datadir | --datadi | --datad) Chris@564: ac_prev=datadir ;; Chris@564: -datadir=* | --datadir=* | --datadi=* | --datad=*) Chris@564: datadir=$ac_optarg ;; Chris@564: Chris@564: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ Chris@564: | --dataroo | --dataro | --datar) Chris@564: ac_prev=datarootdir ;; Chris@564: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ Chris@564: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) Chris@564: datarootdir=$ac_optarg ;; Chris@564: Chris@564: -disable-* | --disable-*) Chris@564: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` Chris@564: # Reject names that are not valid shell variable names. Chris@564: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && Chris@580: as_fn_error $? "invalid feature name: $ac_useropt" Chris@564: ac_useropt_orig=$ac_useropt Chris@564: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` Chris@564: case $ac_user_opts in Chris@564: *" Chris@564: "enable_$ac_useropt" Chris@564: "*) ;; Chris@564: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" Chris@564: ac_unrecognized_sep=', ';; Chris@564: esac Chris@564: eval enable_$ac_useropt=no ;; Chris@564: Chris@564: -docdir | --docdir | --docdi | --doc | --do) Chris@564: ac_prev=docdir ;; Chris@564: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) Chris@564: docdir=$ac_optarg ;; Chris@564: Chris@564: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) Chris@564: ac_prev=dvidir ;; Chris@564: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) Chris@564: dvidir=$ac_optarg ;; Chris@564: Chris@564: -enable-* | --enable-*) Chris@564: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` Chris@564: # Reject names that are not valid shell variable names. Chris@564: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && Chris@580: as_fn_error $? "invalid feature name: $ac_useropt" Chris@564: ac_useropt_orig=$ac_useropt Chris@564: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` Chris@564: case $ac_user_opts in Chris@564: *" Chris@564: "enable_$ac_useropt" Chris@564: "*) ;; Chris@564: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" Chris@564: ac_unrecognized_sep=', ';; Chris@564: esac Chris@564: eval enable_$ac_useropt=\$ac_optarg ;; Chris@564: Chris@564: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ Chris@564: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ Chris@564: | --exec | --exe | --ex) Chris@564: ac_prev=exec_prefix ;; Chris@564: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ Chris@564: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ Chris@564: | --exec=* | --exe=* | --ex=*) Chris@564: exec_prefix=$ac_optarg ;; Chris@564: Chris@564: -gas | --gas | --ga | --g) Chris@564: # Obsolete; use --with-gas. Chris@564: with_gas=yes ;; Chris@564: Chris@564: -help | --help | --hel | --he | -h) Chris@564: ac_init_help=long ;; Chris@564: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) Chris@564: ac_init_help=recursive ;; Chris@564: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) Chris@564: ac_init_help=short ;; Chris@564: Chris@564: -host | --host | --hos | --ho) Chris@564: ac_prev=host_alias ;; Chris@564: -host=* | --host=* | --hos=* | --ho=*) Chris@564: host_alias=$ac_optarg ;; Chris@564: Chris@564: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) Chris@564: ac_prev=htmldir ;; Chris@564: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ Chris@564: | --ht=*) Chris@564: htmldir=$ac_optarg ;; Chris@564: Chris@564: -includedir | --includedir | --includedi | --included | --include \ Chris@564: | --includ | --inclu | --incl | --inc) Chris@564: ac_prev=includedir ;; Chris@564: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ Chris@564: | --includ=* | --inclu=* | --incl=* | --inc=*) Chris@564: includedir=$ac_optarg ;; Chris@564: Chris@564: -infodir | --infodir | --infodi | --infod | --info | --inf) Chris@564: ac_prev=infodir ;; Chris@564: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) Chris@564: infodir=$ac_optarg ;; Chris@564: Chris@564: -libdir | --libdir | --libdi | --libd) Chris@564: ac_prev=libdir ;; Chris@564: -libdir=* | --libdir=* | --libdi=* | --libd=*) Chris@564: libdir=$ac_optarg ;; Chris@564: Chris@564: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ Chris@564: | --libexe | --libex | --libe) Chris@564: ac_prev=libexecdir ;; Chris@564: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ Chris@564: | --libexe=* | --libex=* | --libe=*) Chris@564: libexecdir=$ac_optarg ;; Chris@564: Chris@564: -localedir | --localedir | --localedi | --localed | --locale) Chris@564: ac_prev=localedir ;; Chris@564: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) Chris@564: localedir=$ac_optarg ;; Chris@564: Chris@564: -localstatedir | --localstatedir | --localstatedi | --localstated \ Chris@564: | --localstate | --localstat | --localsta | --localst | --locals) Chris@564: ac_prev=localstatedir ;; Chris@564: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ Chris@564: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) Chris@564: localstatedir=$ac_optarg ;; Chris@564: Chris@564: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) Chris@564: ac_prev=mandir ;; Chris@564: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) Chris@564: mandir=$ac_optarg ;; Chris@564: Chris@564: -nfp | --nfp | --nf) Chris@564: # Obsolete; use --without-fp. Chris@564: with_fp=no ;; Chris@564: Chris@564: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ Chris@564: | --no-cr | --no-c | -n) Chris@564: no_create=yes ;; Chris@564: Chris@564: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ Chris@564: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) Chris@564: no_recursion=yes ;; Chris@564: Chris@564: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ Chris@564: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ Chris@564: | --oldin | --oldi | --old | --ol | --o) Chris@564: ac_prev=oldincludedir ;; Chris@564: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ Chris@564: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ Chris@564: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) Chris@564: oldincludedir=$ac_optarg ;; Chris@564: Chris@564: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) Chris@564: ac_prev=prefix ;; Chris@564: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) Chris@564: prefix=$ac_optarg ;; Chris@564: Chris@564: -program-prefix | --program-prefix | --program-prefi | --program-pref \ Chris@564: | --program-pre | --program-pr | --program-p) Chris@564: ac_prev=program_prefix ;; Chris@564: -program-prefix=* | --program-prefix=* | --program-prefi=* \ Chris@564: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) Chris@564: program_prefix=$ac_optarg ;; Chris@564: Chris@564: -program-suffix | --program-suffix | --program-suffi | --program-suff \ Chris@564: | --program-suf | --program-su | --program-s) Chris@564: ac_prev=program_suffix ;; Chris@564: -program-suffix=* | --program-suffix=* | --program-suffi=* \ Chris@564: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) Chris@564: program_suffix=$ac_optarg ;; Chris@564: Chris@564: -program-transform-name | --program-transform-name \ Chris@564: | --program-transform-nam | --program-transform-na \ Chris@564: | --program-transform-n | --program-transform- \ Chris@564: | --program-transform | --program-transfor \ Chris@564: | --program-transfo | --program-transf \ Chris@564: | --program-trans | --program-tran \ Chris@564: | --progr-tra | --program-tr | --program-t) Chris@564: ac_prev=program_transform_name ;; Chris@564: -program-transform-name=* | --program-transform-name=* \ Chris@564: | --program-transform-nam=* | --program-transform-na=* \ Chris@564: | --program-transform-n=* | --program-transform-=* \ Chris@564: | --program-transform=* | --program-transfor=* \ Chris@564: | --program-transfo=* | --program-transf=* \ Chris@564: | --program-trans=* | --program-tran=* \ Chris@564: | --progr-tra=* | --program-tr=* | --program-t=*) Chris@564: program_transform_name=$ac_optarg ;; Chris@564: Chris@564: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) Chris@564: ac_prev=pdfdir ;; Chris@564: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) Chris@564: pdfdir=$ac_optarg ;; Chris@564: Chris@564: -psdir | --psdir | --psdi | --psd | --ps) Chris@564: ac_prev=psdir ;; Chris@564: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) Chris@564: psdir=$ac_optarg ;; Chris@564: Chris@564: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ Chris@564: | -silent | --silent | --silen | --sile | --sil) Chris@564: silent=yes ;; Chris@564: Chris@564: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) Chris@564: ac_prev=sbindir ;; Chris@564: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ Chris@564: | --sbi=* | --sb=*) Chris@564: sbindir=$ac_optarg ;; Chris@564: Chris@564: -sharedstatedir | --sharedstatedir | --sharedstatedi \ Chris@564: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ Chris@564: | --sharedst | --shareds | --shared | --share | --shar \ Chris@564: | --sha | --sh) Chris@564: ac_prev=sharedstatedir ;; Chris@564: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ Chris@564: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ Chris@564: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ Chris@564: | --sha=* | --sh=*) Chris@564: sharedstatedir=$ac_optarg ;; Chris@564: Chris@564: -site | --site | --sit) Chris@564: ac_prev=site ;; Chris@564: -site=* | --site=* | --sit=*) Chris@564: site=$ac_optarg ;; Chris@564: Chris@564: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) Chris@564: ac_prev=srcdir ;; Chris@564: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) Chris@564: srcdir=$ac_optarg ;; Chris@564: Chris@564: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ Chris@564: | --syscon | --sysco | --sysc | --sys | --sy) Chris@564: ac_prev=sysconfdir ;; Chris@564: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ Chris@564: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) Chris@564: sysconfdir=$ac_optarg ;; Chris@564: Chris@564: -target | --target | --targe | --targ | --tar | --ta | --t) Chris@564: ac_prev=target_alias ;; Chris@564: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) Chris@564: target_alias=$ac_optarg ;; Chris@564: Chris@564: -v | -verbose | --verbose | --verbos | --verbo | --verb) Chris@564: verbose=yes ;; Chris@564: Chris@564: -version | --version | --versio | --versi | --vers | -V) Chris@564: ac_init_version=: ;; Chris@564: Chris@564: -with-* | --with-*) Chris@564: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` Chris@564: # Reject names that are not valid shell variable names. Chris@564: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && Chris@580: as_fn_error $? "invalid package name: $ac_useropt" Chris@564: ac_useropt_orig=$ac_useropt Chris@564: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` Chris@564: case $ac_user_opts in Chris@564: *" Chris@564: "with_$ac_useropt" Chris@564: "*) ;; Chris@564: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" Chris@564: ac_unrecognized_sep=', ';; Chris@564: esac Chris@564: eval with_$ac_useropt=\$ac_optarg ;; Chris@564: Chris@564: -without-* | --without-*) Chris@564: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` Chris@564: # Reject names that are not valid shell variable names. Chris@564: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && Chris@580: as_fn_error $? "invalid package name: $ac_useropt" Chris@564: ac_useropt_orig=$ac_useropt Chris@564: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` Chris@564: case $ac_user_opts in Chris@564: *" Chris@564: "with_$ac_useropt" Chris@564: "*) ;; Chris@564: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" Chris@564: ac_unrecognized_sep=', ';; Chris@564: esac Chris@564: eval with_$ac_useropt=no ;; Chris@564: Chris@564: --x) Chris@564: # Obsolete; use --with-x. Chris@564: with_x=yes ;; Chris@564: Chris@564: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ Chris@564: | --x-incl | --x-inc | --x-in | --x-i) Chris@564: ac_prev=x_includes ;; Chris@564: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ Chris@564: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) Chris@564: x_includes=$ac_optarg ;; Chris@564: Chris@564: -x-libraries | --x-libraries | --x-librarie | --x-librari \ Chris@564: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) Chris@564: ac_prev=x_libraries ;; Chris@564: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ Chris@564: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) Chris@564: x_libraries=$ac_optarg ;; Chris@564: Chris@580: -*) as_fn_error $? "unrecognized option: \`$ac_option' Chris@580: Try \`$0 --help' for more information" Chris@564: ;; Chris@564: Chris@564: *=*) Chris@564: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` Chris@564: # Reject names that are not valid shell variable names. Chris@564: case $ac_envvar in #( Chris@564: '' | [0-9]* | *[!_$as_cr_alnum]* ) Chris@580: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; Chris@564: esac Chris@564: eval $ac_envvar=\$ac_optarg Chris@564: export $ac_envvar ;; Chris@564: Chris@564: *) Chris@564: # FIXME: should be removed in autoconf 3.0. Chris@564: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 Chris@564: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && Chris@564: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 Chris@564: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} Chris@564: ;; Chris@564: Chris@564: esac Chris@564: done Chris@564: Chris@564: if test -n "$ac_prev"; then Chris@564: ac_option=--`echo $ac_prev | sed 's/_/-/g'` Chris@580: as_fn_error $? "missing argument to $ac_option" Chris@564: fi Chris@564: Chris@564: if test -n "$ac_unrecognized_opts"; then Chris@564: case $enable_option_checking in Chris@564: no) ;; Chris@580: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; Chris@564: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; Chris@564: esac Chris@564: fi Chris@564: Chris@564: # Check all directory arguments for consistency. Chris@564: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ Chris@564: datadir sysconfdir sharedstatedir localstatedir includedir \ Chris@564: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ Chris@564: libdir localedir mandir Chris@564: do Chris@564: eval ac_val=\$$ac_var Chris@564: # Remove trailing slashes. Chris@564: case $ac_val in Chris@564: */ ) Chris@564: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` Chris@564: eval $ac_var=\$ac_val;; Chris@564: esac Chris@564: # Be sure to have absolute directory names. Chris@564: case $ac_val in Chris@564: [\\/$]* | ?:[\\/]* ) continue;; Chris@564: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; Chris@564: esac Chris@580: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" Chris@564: done Chris@564: Chris@564: # There might be people who depend on the old broken behavior: `$host' Chris@564: # used to hold the argument of --host etc. Chris@564: # FIXME: To remove some day. Chris@564: build=$build_alias Chris@564: host=$host_alias Chris@564: target=$target_alias Chris@564: Chris@564: # FIXME: To remove some day. Chris@564: if test "x$host_alias" != x; then Chris@564: if test "x$build_alias" = x; then Chris@564: cross_compiling=maybe Chris@580: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. Chris@580: If a cross compiler is detected then cross compile mode will be used" >&2 Chris@564: elif test "x$build_alias" != "x$host_alias"; then Chris@564: cross_compiling=yes Chris@564: fi Chris@564: fi Chris@564: Chris@564: ac_tool_prefix= Chris@564: test -n "$host_alias" && ac_tool_prefix=$host_alias- Chris@564: Chris@564: test "$silent" = yes && exec 6>/dev/null Chris@564: Chris@564: Chris@564: ac_pwd=`pwd` && test -n "$ac_pwd" && Chris@564: ac_ls_di=`ls -di .` && Chris@564: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || Chris@580: as_fn_error $? "working directory cannot be determined" Chris@564: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || Chris@580: as_fn_error $? "pwd does not report name of working directory" Chris@564: Chris@564: Chris@564: # Find the source files, if location was not specified. Chris@564: if test -z "$srcdir"; then Chris@564: ac_srcdir_defaulted=yes Chris@564: # Try the directory containing this script, then the parent directory. Chris@564: ac_confdir=`$as_dirname -- "$as_myself" || Chris@564: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@564: X"$as_myself" : 'X\(//\)[^/]' \| \ Chris@564: X"$as_myself" : 'X\(//\)$' \| \ Chris@564: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || Chris@564: $as_echo X"$as_myself" | Chris@564: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\(\/\/\)[^/].*/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\(\/\/\)$/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\(\/\).*/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: s/.*/./; q'` Chris@564: srcdir=$ac_confdir Chris@564: if test ! -r "$srcdir/$ac_unique_file"; then Chris@564: srcdir=.. Chris@564: fi Chris@564: else Chris@564: ac_srcdir_defaulted=no Chris@564: fi Chris@564: if test ! -r "$srcdir/$ac_unique_file"; then Chris@564: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." Chris@580: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" Chris@564: fi Chris@564: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" Chris@564: ac_abs_confdir=`( Chris@580: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" Chris@564: pwd)` Chris@564: # When building in place, set srcdir=. Chris@564: if test "$ac_abs_confdir" = "$ac_pwd"; then Chris@564: srcdir=. Chris@564: fi Chris@564: # Remove unnecessary trailing slashes from srcdir. Chris@564: # Double slashes in file names in object file debugging info Chris@564: # mess up M-x gdb in Emacs. Chris@564: case $srcdir in Chris@564: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; Chris@564: esac Chris@564: for ac_var in $ac_precious_vars; do Chris@564: eval ac_env_${ac_var}_set=\${${ac_var}+set} Chris@564: eval ac_env_${ac_var}_value=\$${ac_var} Chris@564: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} Chris@564: eval ac_cv_env_${ac_var}_value=\$${ac_var} Chris@564: done Chris@564: Chris@564: # Chris@564: # Report the --help message. Chris@564: # Chris@564: if test "$ac_init_help" = "long"; then Chris@564: # Omit some internal or obsolete options to make the list less imposing. Chris@564: # This message is too long to be a string in the A/UX 3.1 sh. Chris@564: cat <<_ACEOF Chris@565: \`configure' configures SVgui 1.8 to adapt to many kinds of systems. Chris@564: Chris@564: Usage: $0 [OPTION]... [VAR=VALUE]... Chris@564: Chris@564: To assign environment variables (e.g., CC, CFLAGS...), specify them as Chris@564: VAR=VALUE. See below for descriptions of some of the useful variables. Chris@564: Chris@564: Defaults for the options are specified in brackets. Chris@564: Chris@564: Configuration: Chris@564: -h, --help display this help and exit Chris@564: --help=short display options specific to this package Chris@564: --help=recursive display the short help of all the included packages Chris@564: -V, --version display version information and exit Chris@580: -q, --quiet, --silent do not print \`checking ...' messages Chris@564: --cache-file=FILE cache test results in FILE [disabled] Chris@564: -C, --config-cache alias for \`--cache-file=config.cache' Chris@564: -n, --no-create do not create output files Chris@564: --srcdir=DIR find the sources in DIR [configure dir or \`..'] Chris@564: Chris@564: Installation directories: Chris@564: --prefix=PREFIX install architecture-independent files in PREFIX Chris@564: [$ac_default_prefix] Chris@564: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX Chris@564: [PREFIX] Chris@564: Chris@564: By default, \`make install' will install all the files in Chris@564: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify Chris@564: an installation prefix other than \`$ac_default_prefix' using \`--prefix', Chris@564: for instance \`--prefix=\$HOME'. Chris@564: Chris@564: For better control, use the options below. Chris@564: Chris@564: Fine tuning of the installation directories: Chris@564: --bindir=DIR user executables [EPREFIX/bin] Chris@564: --sbindir=DIR system admin executables [EPREFIX/sbin] Chris@564: --libexecdir=DIR program executables [EPREFIX/libexec] Chris@564: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] Chris@564: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] Chris@564: --localstatedir=DIR modifiable single-machine data [PREFIX/var] Chris@564: --libdir=DIR object code libraries [EPREFIX/lib] Chris@564: --includedir=DIR C header files [PREFIX/include] Chris@564: --oldincludedir=DIR C header files for non-gcc [/usr/include] Chris@564: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] Chris@564: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] Chris@564: --infodir=DIR info documentation [DATAROOTDIR/info] Chris@564: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] Chris@564: --mandir=DIR man documentation [DATAROOTDIR/man] Chris@565: --docdir=DIR documentation root [DATAROOTDIR/doc/svgui] Chris@564: --htmldir=DIR html documentation [DOCDIR] Chris@564: --dvidir=DIR dvi documentation [DOCDIR] Chris@564: --pdfdir=DIR pdf documentation [DOCDIR] Chris@564: --psdir=DIR ps documentation [DOCDIR] Chris@564: _ACEOF Chris@564: Chris@564: cat <<\_ACEOF Chris@564: _ACEOF Chris@564: fi Chris@564: Chris@564: if test -n "$ac_init_help"; then Chris@564: case $ac_init_help in Chris@565: short | recursive ) echo "Configuration of SVgui 1.8:";; Chris@564: esac Chris@564: cat <<\_ACEOF Chris@564: Chris@564: Optional Features: Chris@564: --disable-option-checking ignore unrecognized --enable/--with options Chris@564: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) Chris@564: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] Chris@564: --enable-debug enable debug support [default=no] Chris@564: Chris@564: Some influential environment variables: Chris@564: CC C compiler command Chris@564: CFLAGS C compiler flags Chris@564: LDFLAGS linker flags, e.g. -L if you have libraries in a Chris@564: nonstandard directory Chris@564: LIBS libraries to pass to the linker, e.g. -l Chris@564: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if Chris@564: you have headers in a nonstandard directory Chris@564: CXX C++ compiler command Chris@564: CXXFLAGS C++ compiler flags Chris@564: CXXCPP C++ preprocessor Chris@564: PKG_CONFIG path to pkg-config utility Chris@564: bz2_CFLAGS C compiler flags for bz2, overriding pkg-config Chris@564: bz2_LIBS linker flags for bz2, overriding pkg-config Chris@564: fftw3_CFLAGS Chris@564: C compiler flags for fftw3, overriding pkg-config Chris@564: fftw3_LIBS linker flags for fftw3, overriding pkg-config Chris@564: fftw3f_CFLAGS Chris@564: C compiler flags for fftw3f, overriding pkg-config Chris@564: fftw3f_LIBS linker flags for fftw3f, overriding pkg-config Chris@564: sndfile_CFLAGS Chris@564: C compiler flags for sndfile, overriding pkg-config Chris@564: sndfile_LIBS Chris@564: linker flags for sndfile, overriding pkg-config Chris@564: samplerate_CFLAGS Chris@564: C compiler flags for samplerate, overriding pkg-config Chris@564: samplerate_LIBS Chris@564: linker flags for samplerate, overriding pkg-config Chris@564: vamp_CFLAGS C compiler flags for vamp, overriding pkg-config Chris@564: vamp_LIBS linker flags for vamp, overriding pkg-config Chris@564: vamphostsdk_CFLAGS Chris@564: C compiler flags for vamphostsdk, overriding pkg-config Chris@564: vamphostsdk_LIBS Chris@564: linker flags for vamphostsdk, overriding pkg-config Chris@564: rubberband_CFLAGS Chris@564: C compiler flags for rubberband, overriding pkg-config Chris@564: rubberband_LIBS Chris@564: linker flags for rubberband, overriding pkg-config Chris@564: raptor_CFLAGS Chris@564: C compiler flags for raptor, overriding pkg-config Chris@564: raptor_LIBS linker flags for raptor, overriding pkg-config Chris@564: rasqal_CFLAGS Chris@564: C compiler flags for rasqal, overriding pkg-config Chris@564: rasqal_LIBS linker flags for rasqal, overriding pkg-config Chris@564: redland_CFLAGS Chris@564: C compiler flags for redland, overriding pkg-config Chris@564: redland_LIBS Chris@564: linker flags for redland, overriding pkg-config Chris@564: liblo_CFLAGS Chris@564: C compiler flags for liblo, overriding pkg-config Chris@564: liblo_LIBS linker flags for liblo, overriding pkg-config Chris@570: portaudio_2_0_CFLAGS Chris@570: C compiler flags for portaudio_2_0, overriding pkg-config Chris@570: portaudio_2_0_LIBS Chris@570: linker flags for portaudio_2_0, overriding pkg-config Chris@564: JACK_CFLAGS C compiler flags for JACK, overriding pkg-config Chris@564: JACK_LIBS linker flags for JACK, overriding pkg-config Chris@564: libpulse_CFLAGS Chris@564: C compiler flags for libpulse, overriding pkg-config Chris@564: libpulse_LIBS Chris@564: linker flags for libpulse, overriding pkg-config Chris@564: lrdf_CFLAGS C compiler flags for lrdf, overriding pkg-config Chris@564: lrdf_LIBS linker flags for lrdf, overriding pkg-config Chris@564: oggz_CFLAGS C compiler flags for oggz, overriding pkg-config Chris@564: oggz_LIBS linker flags for oggz, overriding pkg-config Chris@564: fishsound_CFLAGS Chris@564: C compiler flags for fishsound, overriding pkg-config Chris@564: fishsound_LIBS Chris@564: linker flags for fishsound, overriding pkg-config Chris@564: mad_CFLAGS C compiler flags for mad, overriding pkg-config Chris@564: mad_LIBS linker flags for mad, overriding pkg-config Chris@564: id3tag_CFLAGS Chris@564: C compiler flags for id3tag, overriding pkg-config Chris@564: id3tag_LIBS linker flags for id3tag, overriding pkg-config Chris@564: Chris@564: Use these variables to override the choices made by `configure' or to help Chris@564: it to find libraries and programs with nonstandard names/locations. Chris@564: Chris@564: Report bugs to . Chris@564: _ACEOF Chris@564: ac_status=$? Chris@564: fi Chris@564: Chris@564: if test "$ac_init_help" = "recursive"; then Chris@564: # If there are subdirs, report their specific --help. Chris@564: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue Chris@564: test -d "$ac_dir" || Chris@564: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || Chris@564: continue Chris@564: ac_builddir=. Chris@564: Chris@564: case "$ac_dir" in Chris@564: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@564: *) Chris@564: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` Chris@564: # A ".." for each directory in $ac_dir_suffix. Chris@564: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` Chris@564: case $ac_top_builddir_sub in Chris@564: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@564: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; Chris@564: esac ;; Chris@564: esac Chris@564: ac_abs_top_builddir=$ac_pwd Chris@564: ac_abs_builddir=$ac_pwd$ac_dir_suffix Chris@564: # for backward compatibility: Chris@564: ac_top_builddir=$ac_top_build_prefix Chris@564: Chris@564: case $srcdir in Chris@564: .) # We are building in place. Chris@564: ac_srcdir=. Chris@564: ac_top_srcdir=$ac_top_builddir_sub Chris@564: ac_abs_top_srcdir=$ac_pwd ;; Chris@564: [\\/]* | ?:[\\/]* ) # Absolute name. Chris@564: ac_srcdir=$srcdir$ac_dir_suffix; Chris@564: ac_top_srcdir=$srcdir Chris@564: ac_abs_top_srcdir=$srcdir ;; Chris@564: *) # Relative name. Chris@564: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix Chris@564: ac_top_srcdir=$ac_top_build_prefix$srcdir Chris@564: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; Chris@564: esac Chris@564: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix Chris@564: Chris@564: cd "$ac_dir" || { ac_status=$?; continue; } Chris@564: # Check for guested configure. Chris@564: if test -f "$ac_srcdir/configure.gnu"; then Chris@564: echo && Chris@564: $SHELL "$ac_srcdir/configure.gnu" --help=recursive Chris@564: elif test -f "$ac_srcdir/configure"; then Chris@564: echo && Chris@564: $SHELL "$ac_srcdir/configure" --help=recursive Chris@564: else Chris@564: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 Chris@564: fi || ac_status=$? Chris@564: cd "$ac_pwd" || { ac_status=$?; break; } Chris@564: done Chris@564: fi Chris@564: Chris@564: test -n "$ac_init_help" && exit $ac_status Chris@564: if $ac_init_version; then Chris@564: cat <<\_ACEOF Chris@565: SVgui configure 1.8 Chris@580: generated by GNU Autoconf 2.67 Chris@580: Chris@580: Copyright (C) 2010 Free Software Foundation, Inc. Chris@564: This configure script is free software; the Free Software Foundation Chris@564: gives unlimited permission to copy, distribute and modify it. Chris@564: _ACEOF Chris@564: exit Chris@564: fi Chris@564: Chris@564: ## ------------------------ ## Chris@564: ## Autoconf initialization. ## Chris@564: ## ------------------------ ## Chris@564: Chris@564: # ac_fn_c_try_compile LINENO Chris@564: # -------------------------- Chris@564: # Try to compile conftest.$ac_ext, and return whether this succeeded. Chris@564: ac_fn_c_try_compile () Chris@564: { Chris@564: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack Chris@564: rm -f conftest.$ac_objext Chris@564: if { { ac_try="$ac_compile" Chris@564: case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_compile") 2>conftest.err Chris@564: ac_status=$? Chris@564: if test -s conftest.err; then Chris@564: grep -v '^ *+' conftest.err >conftest.er1 Chris@564: cat conftest.er1 >&5 Chris@564: mv -f conftest.er1 conftest.err Chris@564: fi Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; } && { Chris@564: test -z "$ac_c_werror_flag" || Chris@564: test ! -s conftest.err Chris@564: } && test -s conftest.$ac_objext; then : Chris@564: ac_retval=0 Chris@564: else Chris@564: $as_echo "$as_me: failed program was:" >&5 Chris@564: sed 's/^/| /' conftest.$ac_ext >&5 Chris@564: Chris@564: ac_retval=1 Chris@564: fi Chris@564: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} Chris@564: as_fn_set_status $ac_retval Chris@564: Chris@564: } # ac_fn_c_try_compile Chris@564: Chris@564: # ac_fn_cxx_try_compile LINENO Chris@564: # ---------------------------- Chris@564: # Try to compile conftest.$ac_ext, and return whether this succeeded. Chris@564: ac_fn_cxx_try_compile () Chris@564: { Chris@564: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack Chris@564: rm -f conftest.$ac_objext Chris@564: if { { ac_try="$ac_compile" Chris@564: case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_compile") 2>conftest.err Chris@564: ac_status=$? Chris@564: if test -s conftest.err; then Chris@564: grep -v '^ *+' conftest.err >conftest.er1 Chris@564: cat conftest.er1 >&5 Chris@564: mv -f conftest.er1 conftest.err Chris@564: fi Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; } && { Chris@564: test -z "$ac_cxx_werror_flag" || Chris@564: test ! -s conftest.err Chris@564: } && test -s conftest.$ac_objext; then : Chris@564: ac_retval=0 Chris@564: else Chris@564: $as_echo "$as_me: failed program was:" >&5 Chris@564: sed 's/^/| /' conftest.$ac_ext >&5 Chris@564: Chris@564: ac_retval=1 Chris@564: fi Chris@564: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} Chris@564: as_fn_set_status $ac_retval Chris@564: Chris@564: } # ac_fn_cxx_try_compile Chris@564: Chris@564: # ac_fn_cxx_try_cpp LINENO Chris@564: # ------------------------ Chris@564: # Try to preprocess conftest.$ac_ext, and return whether this succeeded. Chris@564: ac_fn_cxx_try_cpp () Chris@564: { Chris@564: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack Chris@564: if { { ac_try="$ac_cpp conftest.$ac_ext" Chris@564: case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err Chris@564: ac_status=$? Chris@564: if test -s conftest.err; then Chris@564: grep -v '^ *+' conftest.err >conftest.er1 Chris@564: cat conftest.er1 >&5 Chris@564: mv -f conftest.er1 conftest.err Chris@564: fi Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@580: test $ac_status = 0; } > conftest.i && { Chris@564: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || Chris@564: test ! -s conftest.err Chris@564: }; then : Chris@564: ac_retval=0 Chris@564: else Chris@564: $as_echo "$as_me: failed program was:" >&5 Chris@564: sed 's/^/| /' conftest.$ac_ext >&5 Chris@564: Chris@564: ac_retval=1 Chris@564: fi Chris@564: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} Chris@564: as_fn_set_status $ac_retval Chris@564: Chris@564: } # ac_fn_cxx_try_cpp Chris@564: Chris@564: # ac_fn_cxx_try_run LINENO Chris@564: # ------------------------ Chris@564: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes Chris@564: # that executables *can* be run. Chris@564: ac_fn_cxx_try_run () Chris@564: { Chris@564: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack Chris@564: if { { ac_try="$ac_link" Chris@564: case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_link") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' Chris@564: { { case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_try") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; }; then : Chris@564: ac_retval=0 Chris@564: else Chris@564: $as_echo "$as_me: program exited with status $ac_status" >&5 Chris@564: $as_echo "$as_me: failed program was:" >&5 Chris@564: sed 's/^/| /' conftest.$ac_ext >&5 Chris@564: Chris@564: ac_retval=$ac_status Chris@564: fi Chris@564: rm -rf conftest.dSYM conftest_ipa8_conftest.oo Chris@564: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} Chris@564: as_fn_set_status $ac_retval Chris@564: Chris@564: } # ac_fn_cxx_try_run Chris@564: Chris@564: # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES Chris@564: # --------------------------------------------------------- Chris@564: # Tests whether HEADER exists, giving a warning if it cannot be compiled using Chris@564: # the include files in INCLUDES and setting the cache variable VAR Chris@564: # accordingly. Chris@564: ac_fn_cxx_check_header_mongrel () Chris@564: { Chris@564: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack Chris@580: if eval "test \"\${$3+set}\"" = set; then : Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 Chris@564: $as_echo_n "checking for $2... " >&6; } Chris@580: if eval "test \"\${$3+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: fi Chris@564: eval ac_res=\$$3 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@564: else Chris@564: # Is the header compilable? Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 Chris@564: $as_echo_n "checking $2 usability... " >&6; } Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: $4 Chris@564: #include <$2> Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_compile "$LINENO"; then : Chris@564: ac_header_compiler=yes Chris@564: else Chris@564: ac_header_compiler=no Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 Chris@564: $as_echo "$ac_header_compiler" >&6; } Chris@564: Chris@564: # Is the header present? Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 Chris@564: $as_echo_n "checking $2 presence... " >&6; } Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: #include <$2> Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_cpp "$LINENO"; then : Chris@564: ac_header_preproc=yes Chris@564: else Chris@564: ac_header_preproc=no Chris@564: fi Chris@580: rm -f conftest.err conftest.i conftest.$ac_ext Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 Chris@564: $as_echo "$ac_header_preproc" >&6; } Chris@564: Chris@564: # So? What about this header? Chris@564: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( Chris@564: yes:no: ) Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 Chris@564: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 Chris@564: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} Chris@564: ;; Chris@564: no:yes:* ) Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 Chris@564: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 Chris@564: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 Chris@564: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 Chris@564: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 Chris@564: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} Chris@580: ( $as_echo "## ------------------------------------------- ## Chris@564: ## Report this to cannam@all-day-breakfast.com ## Chris@580: ## ------------------------------------------- ##" Chris@564: ) | sed "s/^/$as_me: WARNING: /" >&2 Chris@564: ;; Chris@564: esac Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 Chris@564: $as_echo_n "checking for $2... " >&6; } Chris@580: if eval "test \"\${$3+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: eval "$3=\$ac_header_compiler" Chris@564: fi Chris@564: eval ac_res=\$$3 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@564: fi Chris@564: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} Chris@564: Chris@564: } # ac_fn_cxx_check_header_mongrel Chris@564: Chris@564: # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES Chris@564: # --------------------------------------------------------- Chris@564: # Tests whether HEADER exists and can be compiled using the include files in Chris@564: # INCLUDES, setting the cache variable VAR accordingly. Chris@564: ac_fn_cxx_check_header_compile () Chris@564: { Chris@564: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 Chris@564: $as_echo_n "checking for $2... " >&6; } Chris@580: if eval "test \"\${$3+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: $4 Chris@564: #include <$2> Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_compile "$LINENO"; then : Chris@564: eval "$3=yes" Chris@564: else Chris@564: eval "$3=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@564: fi Chris@564: eval ac_res=\$$3 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@564: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} Chris@564: Chris@564: } # ac_fn_cxx_check_header_compile Chris@564: Chris@564: # ac_fn_cxx_try_link LINENO Chris@564: # ------------------------- Chris@564: # Try to link conftest.$ac_ext, and return whether this succeeded. Chris@564: ac_fn_cxx_try_link () Chris@564: { Chris@564: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack Chris@564: rm -f conftest.$ac_objext conftest$ac_exeext Chris@564: if { { ac_try="$ac_link" Chris@564: case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_link") 2>conftest.err Chris@564: ac_status=$? Chris@564: if test -s conftest.err; then Chris@564: grep -v '^ *+' conftest.err >conftest.er1 Chris@564: cat conftest.er1 >&5 Chris@564: mv -f conftest.er1 conftest.err Chris@564: fi Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; } && { Chris@564: test -z "$ac_cxx_werror_flag" || Chris@564: test ! -s conftest.err Chris@564: } && test -s conftest$ac_exeext && { Chris@564: test "$cross_compiling" = yes || Chris@564: $as_test_x conftest$ac_exeext Chris@564: }; then : Chris@564: ac_retval=0 Chris@564: else Chris@564: $as_echo "$as_me: failed program was:" >&5 Chris@564: sed 's/^/| /' conftest.$ac_ext >&5 Chris@564: Chris@564: ac_retval=1 Chris@564: fi Chris@564: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information Chris@564: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would Chris@564: # interfere with the next link command; also delete a directory that is Chris@564: # left behind by Apple's compiler. We do this before executing the actions. Chris@564: rm -rf conftest.dSYM conftest_ipa8_conftest.oo Chris@564: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} Chris@564: as_fn_set_status $ac_retval Chris@564: Chris@564: } # ac_fn_cxx_try_link Chris@564: cat >config.log <<_ACEOF Chris@564: This file contains any messages produced by compilers while Chris@564: running configure, to aid debugging if configure makes a mistake. Chris@564: Chris@565: It was created by SVgui $as_me 1.8, which was Chris@580: generated by GNU Autoconf 2.67. Invocation command line was Chris@564: Chris@564: $ $0 $@ Chris@564: Chris@564: _ACEOF Chris@564: exec 5>>config.log Chris@564: { Chris@564: cat <<_ASUNAME Chris@564: ## --------- ## Chris@564: ## Platform. ## Chris@564: ## --------- ## Chris@564: Chris@564: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` Chris@564: uname -m = `(uname -m) 2>/dev/null || echo unknown` Chris@564: uname -r = `(uname -r) 2>/dev/null || echo unknown` Chris@564: uname -s = `(uname -s) 2>/dev/null || echo unknown` Chris@564: uname -v = `(uname -v) 2>/dev/null || echo unknown` Chris@564: Chris@564: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` Chris@564: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` Chris@564: Chris@564: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` Chris@564: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` Chris@564: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` Chris@564: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` Chris@564: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` Chris@564: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` Chris@564: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` Chris@564: Chris@564: _ASUNAME Chris@564: Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: $as_echo "PATH: $as_dir" Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: } >&5 Chris@564: Chris@564: cat >&5 <<_ACEOF Chris@564: Chris@564: Chris@564: ## ----------- ## Chris@564: ## Core tests. ## Chris@564: ## ----------- ## Chris@564: Chris@564: _ACEOF Chris@564: Chris@564: Chris@564: # Keep a trace of the command line. Chris@564: # Strip out --no-create and --no-recursion so they do not pile up. Chris@564: # Strip out --silent because we don't want to record it for future runs. Chris@564: # Also quote any args containing shell meta-characters. Chris@564: # Make two passes to allow for proper duplicate-argument suppression. Chris@564: ac_configure_args= Chris@564: ac_configure_args0= Chris@564: ac_configure_args1= Chris@564: ac_must_keep_next=false Chris@564: for ac_pass in 1 2 Chris@564: do Chris@564: for ac_arg Chris@564: do Chris@564: case $ac_arg in Chris@564: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; Chris@564: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ Chris@564: | -silent | --silent | --silen | --sile | --sil) Chris@564: continue ;; Chris@564: *\'*) Chris@564: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; Chris@564: esac Chris@564: case $ac_pass in Chris@564: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; Chris@564: 2) Chris@564: as_fn_append ac_configure_args1 " '$ac_arg'" Chris@564: if test $ac_must_keep_next = true; then Chris@564: ac_must_keep_next=false # Got value, back to normal. Chris@564: else Chris@564: case $ac_arg in Chris@564: *=* | --config-cache | -C | -disable-* | --disable-* \ Chris@564: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ Chris@564: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ Chris@564: | -with-* | --with-* | -without-* | --without-* | --x) Chris@564: case "$ac_configure_args0 " in Chris@564: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; Chris@564: esac Chris@564: ;; Chris@564: -* ) ac_must_keep_next=true ;; Chris@564: esac Chris@564: fi Chris@564: as_fn_append ac_configure_args " '$ac_arg'" Chris@564: ;; Chris@564: esac Chris@564: done Chris@564: done Chris@564: { ac_configure_args0=; unset ac_configure_args0;} Chris@564: { ac_configure_args1=; unset ac_configure_args1;} Chris@564: Chris@564: # When interrupted or exit'd, cleanup temporary files, and complete Chris@564: # config.log. We remove comments because anyway the quotes in there Chris@564: # would cause problems or look ugly. Chris@564: # WARNING: Use '\'' to represent an apostrophe within the trap. Chris@564: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. Chris@564: trap 'exit_status=$? Chris@564: # Save into config.log some information that might help in debugging. Chris@564: { Chris@564: echo Chris@564: Chris@580: $as_echo "## ---------------- ## Chris@564: ## Cache variables. ## Chris@580: ## ---------------- ##" Chris@564: echo Chris@564: # The following way of writing the cache mishandles newlines in values, Chris@564: ( Chris@564: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do Chris@564: eval ac_val=\$$ac_var Chris@564: case $ac_val in #( Chris@564: *${as_nl}*) Chris@564: case $ac_var in #( Chris@564: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 Chris@564: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; Chris@564: esac Chris@564: case $ac_var in #( Chris@564: _ | IFS | as_nl) ;; #( Chris@564: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( Chris@564: *) { eval $ac_var=; unset $ac_var;} ;; Chris@564: esac ;; Chris@564: esac Chris@564: done Chris@564: (set) 2>&1 | Chris@564: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( Chris@564: *${as_nl}ac_space=\ *) Chris@564: sed -n \ Chris@564: "s/'\''/'\''\\\\'\'''\''/g; Chris@564: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" Chris@564: ;; #( Chris@564: *) Chris@564: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" Chris@564: ;; Chris@564: esac | Chris@564: sort Chris@564: ) Chris@564: echo Chris@564: Chris@580: $as_echo "## ----------------- ## Chris@564: ## Output variables. ## Chris@580: ## ----------------- ##" Chris@564: echo Chris@564: for ac_var in $ac_subst_vars Chris@564: do Chris@564: eval ac_val=\$$ac_var Chris@564: case $ac_val in Chris@564: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; Chris@564: esac Chris@564: $as_echo "$ac_var='\''$ac_val'\''" Chris@564: done | sort Chris@564: echo Chris@564: Chris@564: if test -n "$ac_subst_files"; then Chris@580: $as_echo "## ------------------- ## Chris@564: ## File substitutions. ## Chris@580: ## ------------------- ##" Chris@564: echo Chris@564: for ac_var in $ac_subst_files Chris@564: do Chris@564: eval ac_val=\$$ac_var Chris@564: case $ac_val in Chris@564: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; Chris@564: esac Chris@564: $as_echo "$ac_var='\''$ac_val'\''" Chris@564: done | sort Chris@564: echo Chris@564: fi Chris@564: Chris@564: if test -s confdefs.h; then Chris@580: $as_echo "## ----------- ## Chris@564: ## confdefs.h. ## Chris@580: ## ----------- ##" Chris@564: echo Chris@564: cat confdefs.h Chris@564: echo Chris@564: fi Chris@564: test "$ac_signal" != 0 && Chris@564: $as_echo "$as_me: caught signal $ac_signal" Chris@564: $as_echo "$as_me: exit $exit_status" Chris@564: } >&5 Chris@564: rm -f core *.core core.conftest.* && Chris@564: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && Chris@564: exit $exit_status Chris@564: ' 0 Chris@564: for ac_signal in 1 2 13 15; do Chris@564: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal Chris@564: done Chris@564: ac_signal=0 Chris@564: Chris@564: # confdefs.h avoids OS command line length limits that DEFS can exceed. Chris@564: rm -f -r conftest* confdefs.h Chris@564: Chris@564: $as_echo "/* confdefs.h */" > confdefs.h Chris@564: Chris@564: # Predefined preprocessor variables. Chris@564: Chris@564: cat >>confdefs.h <<_ACEOF Chris@564: #define PACKAGE_NAME "$PACKAGE_NAME" Chris@564: _ACEOF Chris@564: Chris@564: cat >>confdefs.h <<_ACEOF Chris@564: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" Chris@564: _ACEOF Chris@564: Chris@564: cat >>confdefs.h <<_ACEOF Chris@564: #define PACKAGE_VERSION "$PACKAGE_VERSION" Chris@564: _ACEOF Chris@564: Chris@564: cat >>confdefs.h <<_ACEOF Chris@564: #define PACKAGE_STRING "$PACKAGE_STRING" Chris@564: _ACEOF Chris@564: Chris@564: cat >>confdefs.h <<_ACEOF Chris@564: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" Chris@564: _ACEOF Chris@564: Chris@564: cat >>confdefs.h <<_ACEOF Chris@564: #define PACKAGE_URL "$PACKAGE_URL" Chris@564: _ACEOF Chris@564: Chris@564: Chris@564: # Let the site file select an alternate cache file if it wants to. Chris@564: # Prefer an explicitly selected file to automatically selected ones. Chris@564: ac_site_file1=NONE Chris@564: ac_site_file2=NONE Chris@564: if test -n "$CONFIG_SITE"; then Chris@580: # We do not want a PATH search for config.site. Chris@580: case $CONFIG_SITE in #(( Chris@580: -*) ac_site_file1=./$CONFIG_SITE;; Chris@580: */*) ac_site_file1=$CONFIG_SITE;; Chris@580: *) ac_site_file1=./$CONFIG_SITE;; Chris@580: esac Chris@564: elif test "x$prefix" != xNONE; then Chris@564: ac_site_file1=$prefix/share/config.site Chris@564: ac_site_file2=$prefix/etc/config.site Chris@564: else Chris@564: ac_site_file1=$ac_default_prefix/share/config.site Chris@564: ac_site_file2=$ac_default_prefix/etc/config.site Chris@564: fi Chris@564: for ac_site_file in "$ac_site_file1" "$ac_site_file2" Chris@564: do Chris@564: test "x$ac_site_file" = xNONE && continue Chris@564: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 Chris@564: $as_echo "$as_me: loading site script $ac_site_file" >&6;} Chris@564: sed 's/^/| /' "$ac_site_file" >&5 Chris@580: . "$ac_site_file" \ Chris@580: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 Chris@580: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} Chris@580: as_fn_error $? "failed to load site script $ac_site_file Chris@580: See \`config.log' for more details" "$LINENO" 5 ; } Chris@564: fi Chris@564: done Chris@564: Chris@564: if test -r "$cache_file"; then Chris@564: # Some versions of bash will fail to source /dev/null (special files Chris@564: # actually), so we avoid doing that. DJGPP emulates it as a regular file. Chris@564: if test /dev/null != "$cache_file" && test -f "$cache_file"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 Chris@564: $as_echo "$as_me: loading cache $cache_file" >&6;} Chris@564: case $cache_file in Chris@564: [\\/]* | ?:[\\/]* ) . "$cache_file";; Chris@564: *) . "./$cache_file";; Chris@564: esac Chris@564: fi Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 Chris@564: $as_echo "$as_me: creating cache $cache_file" >&6;} Chris@564: >$cache_file Chris@564: fi Chris@564: Chris@564: # Check that the precious variables saved in the cache have kept the same Chris@564: # value. Chris@564: ac_cache_corrupted=false Chris@564: for ac_var in $ac_precious_vars; do Chris@564: eval ac_old_set=\$ac_cv_env_${ac_var}_set Chris@564: eval ac_new_set=\$ac_env_${ac_var}_set Chris@564: eval ac_old_val=\$ac_cv_env_${ac_var}_value Chris@564: eval ac_new_val=\$ac_env_${ac_var}_value Chris@564: case $ac_old_set,$ac_new_set in Chris@564: set,) Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 Chris@564: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} Chris@564: ac_cache_corrupted=: ;; Chris@564: ,set) Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 Chris@564: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} Chris@564: ac_cache_corrupted=: ;; Chris@564: ,);; Chris@564: *) Chris@564: if test "x$ac_old_val" != "x$ac_new_val"; then Chris@564: # differences in whitespace do not lead to failure. Chris@564: ac_old_val_w=`echo x $ac_old_val` Chris@564: ac_new_val_w=`echo x $ac_new_val` Chris@564: if test "$ac_old_val_w" != "$ac_new_val_w"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 Chris@564: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} Chris@564: ac_cache_corrupted=: Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 Chris@564: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} Chris@564: eval $ac_var=\$ac_old_val Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 Chris@564: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 Chris@564: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} Chris@564: fi;; Chris@564: esac Chris@564: # Pass precious variables to config.status. Chris@564: if test "$ac_new_set" = set; then Chris@564: case $ac_new_val in Chris@564: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; Chris@564: *) ac_arg=$ac_var=$ac_new_val ;; Chris@564: esac Chris@564: case " $ac_configure_args " in Chris@564: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. Chris@564: *) as_fn_append ac_configure_args " '$ac_arg'" ;; Chris@564: esac Chris@564: fi Chris@564: done Chris@564: if $ac_cache_corrupted; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 Chris@564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 Chris@564: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} Chris@580: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 Chris@564: fi Chris@564: ## -------------------- ## Chris@564: ## Main body of script. ## Chris@564: ## -------------------- ## Chris@564: Chris@564: ac_ext=c Chris@564: ac_cpp='$CPP $CPPFLAGS' Chris@564: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@564: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@564: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: # Autoconf will set CXXFLAGS; we don't usually want it to, because we Chris@564: # either define our own flags (at least if GCC is in use) or else use Chris@564: # the user's preferences. We need to ensure CXXFLAGS is only set if Chris@564: # the user has expressly set it. So, save the user's (or empty) Chris@564: # setting now and restore it after Autoconf has done its bit of Chris@564: # piddling about. Chris@564: USER_CXXFLAGS="$CXXFLAGS" Chris@564: Chris@580: # If the user supplied CFLAGS but not CXXFLAGS, use CFLAGS instead Chris@580: if test x"$USER_CXXFLAGS" = x; then Chris@580: if test x"$CFLAGS" != x; then Chris@580: USER_CXXFLAGS="$CFLAGS" Chris@580: fi Chris@580: fi Chris@580: Chris@564: ac_ext=cpp Chris@564: ac_cpp='$CXXCPP $CPPFLAGS' Chris@564: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@564: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@564: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu Chris@564: Chris@564: Chris@564: ac_ext=c Chris@564: ac_cpp='$CPP $CPPFLAGS' Chris@564: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@564: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@564: ac_compiler_gnu=$ac_cv_c_compiler_gnu Chris@564: if test -n "$ac_tool_prefix"; then Chris@564: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. Chris@564: set dummy ${ac_tool_prefix}gcc; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_prog_CC+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if test -n "$CC"; then Chris@564: ac_cv_prog_CC="$CC" # Let the user override the test. Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: ac_cv_prog_CC="${ac_tool_prefix}gcc" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: fi Chris@564: fi Chris@564: CC=$ac_cv_prog_CC Chris@564: if test -n "$CC"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 Chris@564: $as_echo "$CC" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: Chris@564: fi Chris@564: if test -z "$ac_cv_prog_CC"; then Chris@564: ac_ct_CC=$CC Chris@564: # Extract the first word of "gcc", so it can be a program name with args. Chris@564: set dummy gcc; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if test -n "$ac_ct_CC"; then Chris@564: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: ac_cv_prog_ac_ct_CC="gcc" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: fi Chris@564: fi Chris@564: ac_ct_CC=$ac_cv_prog_ac_ct_CC Chris@564: if test -n "$ac_ct_CC"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 Chris@564: $as_echo "$ac_ct_CC" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: if test "x$ac_ct_CC" = x; then Chris@564: CC="" Chris@564: else Chris@564: case $cross_compiling:$ac_tool_warned in Chris@564: yes:) Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 Chris@564: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} Chris@564: ac_tool_warned=yes ;; Chris@564: esac Chris@564: CC=$ac_ct_CC Chris@564: fi Chris@564: else Chris@564: CC="$ac_cv_prog_CC" Chris@564: fi Chris@564: Chris@564: if test -z "$CC"; then Chris@564: if test -n "$ac_tool_prefix"; then Chris@564: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. Chris@564: set dummy ${ac_tool_prefix}cc; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_prog_CC+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if test -n "$CC"; then Chris@564: ac_cv_prog_CC="$CC" # Let the user override the test. Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: ac_cv_prog_CC="${ac_tool_prefix}cc" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: fi Chris@564: fi Chris@564: CC=$ac_cv_prog_CC Chris@564: if test -n "$CC"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 Chris@564: $as_echo "$CC" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: Chris@564: fi Chris@564: fi Chris@564: if test -z "$CC"; then Chris@564: # Extract the first word of "cc", so it can be a program name with args. Chris@564: set dummy cc; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_prog_CC+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if test -n "$CC"; then Chris@564: ac_cv_prog_CC="$CC" # Let the user override the test. Chris@564: else Chris@564: ac_prog_rejected=no Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then Chris@564: ac_prog_rejected=yes Chris@564: continue Chris@564: fi Chris@564: ac_cv_prog_CC="cc" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: if test $ac_prog_rejected = yes; then Chris@564: # We found a bogon in the path, so make sure we never use it. Chris@564: set dummy $ac_cv_prog_CC Chris@564: shift Chris@564: if test $# != 0; then Chris@564: # We chose a different compiler from the bogus one. Chris@564: # However, it has the same basename, so the bogon will be chosen Chris@564: # first if we set CC to just the basename; use the full file name. Chris@564: shift Chris@564: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: CC=$ac_cv_prog_CC Chris@564: if test -n "$CC"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 Chris@564: $as_echo "$CC" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: Chris@564: fi Chris@564: if test -z "$CC"; then Chris@564: if test -n "$ac_tool_prefix"; then Chris@564: for ac_prog in cl.exe Chris@564: do Chris@564: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. Chris@564: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_prog_CC+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if test -n "$CC"; then Chris@564: ac_cv_prog_CC="$CC" # Let the user override the test. Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: fi Chris@564: fi Chris@564: CC=$ac_cv_prog_CC Chris@564: if test -n "$CC"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 Chris@564: $as_echo "$CC" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: Chris@564: test -n "$CC" && break Chris@564: done Chris@564: fi Chris@564: if test -z "$CC"; then Chris@564: ac_ct_CC=$CC Chris@564: for ac_prog in cl.exe Chris@564: do Chris@564: # Extract the first word of "$ac_prog", so it can be a program name with args. Chris@564: set dummy $ac_prog; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if test -n "$ac_ct_CC"; then Chris@564: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: ac_cv_prog_ac_ct_CC="$ac_prog" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: fi Chris@564: fi Chris@564: ac_ct_CC=$ac_cv_prog_ac_ct_CC Chris@564: if test -n "$ac_ct_CC"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 Chris@564: $as_echo "$ac_ct_CC" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: Chris@564: test -n "$ac_ct_CC" && break Chris@564: done Chris@564: Chris@564: if test "x$ac_ct_CC" = x; then Chris@564: CC="" Chris@564: else Chris@564: case $cross_compiling:$ac_tool_warned in Chris@564: yes:) Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 Chris@564: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} Chris@564: ac_tool_warned=yes ;; Chris@564: esac Chris@564: CC=$ac_ct_CC Chris@564: fi Chris@564: fi Chris@564: Chris@564: fi Chris@564: Chris@564: Chris@564: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 Chris@564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} Chris@580: as_fn_error $? "no acceptable C compiler found in \$PATH Chris@580: See \`config.log' for more details" "$LINENO" 5 ; } Chris@564: Chris@564: # Provide some information about the compiler. Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 Chris@564: set X $ac_compile Chris@564: ac_compiler=$2 Chris@564: for ac_option in --version -v -V -qversion; do Chris@564: { { ac_try="$ac_compiler $ac_option >&5" Chris@564: case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_compiler $ac_option >&5") 2>conftest.err Chris@564: ac_status=$? Chris@564: if test -s conftest.err; then Chris@564: sed '10a\ Chris@564: ... rest of stderr output deleted ... Chris@564: 10q' conftest.err >conftest.er1 Chris@564: cat conftest.er1 >&5 Chris@564: fi Chris@564: rm -f conftest.er1 conftest.err Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; } Chris@564: done Chris@564: Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: int Chris@564: main () Chris@564: { Chris@564: Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: ac_clean_files_save=$ac_clean_files Chris@564: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" Chris@564: # Try to create an executable without -o first, disregard a.out. Chris@564: # It will help us diagnose broken compilers, and finding out an intuition Chris@564: # of exeext. Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 Chris@564: $as_echo_n "checking whether the C compiler works... " >&6; } Chris@564: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` Chris@564: Chris@564: # The possible output files: Chris@564: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" Chris@564: Chris@564: ac_rmfiles= Chris@564: for ac_file in $ac_files Chris@564: do Chris@564: case $ac_file in Chris@564: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; Chris@564: * ) ac_rmfiles="$ac_rmfiles $ac_file";; Chris@564: esac Chris@564: done Chris@564: rm -f $ac_rmfiles Chris@564: Chris@564: if { { ac_try="$ac_link_default" Chris@564: case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_link_default") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then : Chris@564: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. Chris@564: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' Chris@564: # in a Makefile. We should not override ac_cv_exeext if it was cached, Chris@564: # so that the user can short-circuit this test for compilers unknown to Chris@564: # Autoconf. Chris@564: for ac_file in $ac_files '' Chris@564: do Chris@564: test -f "$ac_file" || continue Chris@564: case $ac_file in Chris@564: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) Chris@564: ;; Chris@564: [ab].out ) Chris@564: # We found the default executable, but exeext='' is most Chris@564: # certainly right. Chris@564: break;; Chris@564: *.* ) Chris@564: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; Chris@564: then :; else Chris@564: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` Chris@564: fi Chris@564: # We set ac_cv_exeext here because the later test for it is not Chris@564: # safe: cross compilers may not add the suffix if given an `-o' Chris@564: # argument, so we may need to know it at that point already. Chris@564: # Even if this section looks crufty: it has the advantage of Chris@564: # actually working. Chris@564: break;; Chris@564: * ) Chris@564: break;; Chris@564: esac Chris@564: done Chris@564: test "$ac_cv_exeext" = no && ac_cv_exeext= Chris@564: Chris@564: else Chris@564: ac_file='' Chris@564: fi Chris@564: if test -z "$ac_file"; then : Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: $as_echo "$as_me: failed program was:" >&5 Chris@564: sed 's/^/| /' conftest.$ac_ext >&5 Chris@564: Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 Chris@564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} Chris@580: as_fn_error 77 "C compiler cannot create executables Chris@580: See \`config.log' for more details" "$LINENO" 5 ; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 Chris@564: $as_echo_n "checking for C compiler default output file name... " >&6; } Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 Chris@564: $as_echo "$ac_file" >&6; } Chris@564: ac_exeext=$ac_cv_exeext Chris@564: Chris@564: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out Chris@564: ac_clean_files=$ac_clean_files_save Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 Chris@564: $as_echo_n "checking for suffix of executables... " >&6; } Chris@564: if { { ac_try="$ac_link" Chris@564: case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_link") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then : Chris@564: # If both `conftest.exe' and `conftest' are `present' (well, observable) Chris@564: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will Chris@564: # work properly (i.e., refer to `conftest.exe'), while it won't with Chris@564: # `rm'. Chris@564: for ac_file in conftest.exe conftest conftest.*; do Chris@564: test -f "$ac_file" || continue Chris@564: case $ac_file in Chris@564: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; Chris@564: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` Chris@564: break;; Chris@564: * ) break;; Chris@564: esac Chris@564: done Chris@564: else Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 Chris@564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} Chris@580: as_fn_error $? "cannot compute suffix of executables: cannot compile and link Chris@580: See \`config.log' for more details" "$LINENO" 5 ; } Chris@564: fi Chris@564: rm -f conftest conftest$ac_cv_exeext Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 Chris@564: $as_echo "$ac_cv_exeext" >&6; } Chris@564: Chris@564: rm -f conftest.$ac_ext Chris@564: EXEEXT=$ac_cv_exeext Chris@564: ac_exeext=$EXEEXT Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: #include Chris@564: int Chris@564: main () Chris@564: { Chris@564: FILE *f = fopen ("conftest.out", "w"); Chris@564: return ferror (f) || fclose (f) != 0; Chris@564: Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: ac_clean_files="$ac_clean_files conftest.out" Chris@564: # Check that the compiler produces executables we can run. If not, either Chris@564: # the compiler is broken, or we cross compile. Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 Chris@564: $as_echo_n "checking whether we are cross compiling... " >&6; } Chris@564: if test "$cross_compiling" != yes; then Chris@564: { { ac_try="$ac_link" Chris@564: case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_link") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; } Chris@564: if { ac_try='./conftest$ac_cv_exeext' Chris@564: { { case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_try") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; }; then Chris@564: cross_compiling=no Chris@564: else Chris@564: if test "$cross_compiling" = maybe; then Chris@564: cross_compiling=yes Chris@564: else Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 Chris@564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} Chris@580: as_fn_error $? "cannot run C compiled programs. Chris@564: If you meant to cross compile, use \`--host'. Chris@580: See \`config.log' for more details" "$LINENO" 5 ; } Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 Chris@564: $as_echo "$cross_compiling" >&6; } Chris@564: Chris@564: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out Chris@564: ac_clean_files=$ac_clean_files_save Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 Chris@564: $as_echo_n "checking for suffix of object files... " >&6; } Chris@564: if test "${ac_cv_objext+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: int Chris@564: main () Chris@564: { Chris@564: Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: rm -f conftest.o conftest.obj Chris@564: if { { ac_try="$ac_compile" Chris@564: case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_compile") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then : Chris@564: for ac_file in conftest.o conftest.obj conftest.*; do Chris@564: test -f "$ac_file" || continue; Chris@564: case $ac_file in Chris@564: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; Chris@564: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` Chris@564: break;; Chris@564: esac Chris@564: done Chris@564: else Chris@564: $as_echo "$as_me: failed program was:" >&5 Chris@564: sed 's/^/| /' conftest.$ac_ext >&5 Chris@564: Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 Chris@564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} Chris@580: as_fn_error $? "cannot compute suffix of object files: cannot compile Chris@580: See \`config.log' for more details" "$LINENO" 5 ; } Chris@564: fi Chris@564: rm -f conftest.$ac_cv_objext conftest.$ac_ext Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 Chris@564: $as_echo "$ac_cv_objext" >&6; } Chris@564: OBJEXT=$ac_cv_objext Chris@564: ac_objext=$OBJEXT Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 Chris@564: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } Chris@564: if test "${ac_cv_c_compiler_gnu+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: int Chris@564: main () Chris@564: { Chris@564: #ifndef __GNUC__ Chris@564: choke me Chris@564: #endif Chris@564: Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_c_try_compile "$LINENO"; then : Chris@564: ac_compiler_gnu=yes Chris@564: else Chris@564: ac_compiler_gnu=no Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@564: ac_cv_c_compiler_gnu=$ac_compiler_gnu Chris@564: Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 Chris@564: $as_echo "$ac_cv_c_compiler_gnu" >&6; } Chris@564: if test $ac_compiler_gnu = yes; then Chris@564: GCC=yes Chris@564: else Chris@564: GCC= Chris@564: fi Chris@564: ac_test_CFLAGS=${CFLAGS+set} Chris@564: ac_save_CFLAGS=$CFLAGS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 Chris@564: $as_echo_n "checking whether $CC accepts -g... " >&6; } Chris@564: if test "${ac_cv_prog_cc_g+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_save_c_werror_flag=$ac_c_werror_flag Chris@564: ac_c_werror_flag=yes Chris@564: ac_cv_prog_cc_g=no Chris@564: CFLAGS="-g" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: int Chris@564: main () Chris@564: { Chris@564: Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_c_try_compile "$LINENO"; then : Chris@564: ac_cv_prog_cc_g=yes Chris@564: else Chris@564: CFLAGS="" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: int Chris@564: main () Chris@564: { Chris@564: Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_c_try_compile "$LINENO"; then : Chris@564: Chris@564: else Chris@564: ac_c_werror_flag=$ac_save_c_werror_flag Chris@564: CFLAGS="-g" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: int Chris@564: main () Chris@564: { Chris@564: Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_c_try_compile "$LINENO"; then : Chris@564: ac_cv_prog_cc_g=yes Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@564: ac_c_werror_flag=$ac_save_c_werror_flag Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 Chris@564: $as_echo "$ac_cv_prog_cc_g" >&6; } Chris@564: if test "$ac_test_CFLAGS" = set; then Chris@564: CFLAGS=$ac_save_CFLAGS Chris@564: elif test $ac_cv_prog_cc_g = yes; then Chris@564: if test "$GCC" = yes; then Chris@564: CFLAGS="-g -O2" Chris@564: else Chris@564: CFLAGS="-g" Chris@564: fi Chris@564: else Chris@564: if test "$GCC" = yes; then Chris@564: CFLAGS="-O2" Chris@564: else Chris@564: CFLAGS= Chris@564: fi Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 Chris@564: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } Chris@564: if test "${ac_cv_prog_cc_c89+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_cv_prog_cc_c89=no Chris@564: ac_save_CC=$CC Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: #include Chris@564: #include Chris@564: #include Chris@564: #include Chris@564: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ Chris@564: struct buf { int x; }; Chris@564: FILE * (*rcsopen) (struct buf *, struct stat *, int); Chris@564: static char *e (p, i) Chris@564: char **p; Chris@564: int i; Chris@564: { Chris@564: return p[i]; Chris@564: } Chris@564: static char *f (char * (*g) (char **, int), char **p, ...) Chris@564: { Chris@564: char *s; Chris@564: va_list v; Chris@564: va_start (v,p); Chris@564: s = g (p, va_arg (v,int)); Chris@564: va_end (v); Chris@564: return s; Chris@564: } Chris@564: Chris@564: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has Chris@564: function prototypes and stuff, but not '\xHH' hex character constants. Chris@564: These don't provoke an error unfortunately, instead are silently treated Chris@564: as 'x'. The following induces an error, until -std is added to get Chris@564: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an Chris@564: array size at least. It's necessary to write '\x00'==0 to get something Chris@564: that's true only with -std. */ Chris@564: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; Chris@564: Chris@564: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters Chris@564: inside strings and character constants. */ Chris@564: #define FOO(x) 'x' Chris@564: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; Chris@564: Chris@564: int test (int i, double x); Chris@564: struct s1 {int (*f) (int a);}; Chris@564: struct s2 {int (*f) (double a);}; Chris@564: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); Chris@564: int argc; Chris@564: char **argv; Chris@564: int Chris@564: main () Chris@564: { Chris@564: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ Chris@564: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" Chris@564: do Chris@564: CC="$ac_save_CC $ac_arg" Chris@564: if ac_fn_c_try_compile "$LINENO"; then : Chris@564: ac_cv_prog_cc_c89=$ac_arg Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext Chris@564: test "x$ac_cv_prog_cc_c89" != "xno" && break Chris@564: done Chris@564: rm -f conftest.$ac_ext Chris@564: CC=$ac_save_CC Chris@564: Chris@564: fi Chris@564: # AC_CACHE_VAL Chris@564: case "x$ac_cv_prog_cc_c89" in Chris@564: x) Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 Chris@564: $as_echo "none needed" >&6; } ;; Chris@564: xno) Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 Chris@564: $as_echo "unsupported" >&6; } ;; Chris@564: *) Chris@564: CC="$CC $ac_cv_prog_cc_c89" Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 Chris@564: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; Chris@564: esac Chris@564: if test "x$ac_cv_prog_cc_c89" != xno; then : Chris@564: Chris@564: fi Chris@564: Chris@564: ac_ext=cpp Chris@564: ac_cpp='$CXXCPP $CPPFLAGS' Chris@564: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@564: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@564: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu Chris@564: Chris@564: ac_ext=cpp Chris@564: ac_cpp='$CXXCPP $CPPFLAGS' Chris@564: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@564: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@564: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu Chris@564: if test -z "$CXX"; then Chris@564: if test -n "$CCC"; then Chris@564: CXX=$CCC Chris@564: else Chris@564: if test -n "$ac_tool_prefix"; then Chris@564: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC Chris@564: do Chris@564: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. Chris@564: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_prog_CXX+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if test -n "$CXX"; then Chris@564: ac_cv_prog_CXX="$CXX" # Let the user override the test. Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: fi Chris@564: fi Chris@564: CXX=$ac_cv_prog_CXX Chris@564: if test -n "$CXX"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 Chris@564: $as_echo "$CXX" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: Chris@564: test -n "$CXX" && break Chris@564: done Chris@564: fi Chris@564: if test -z "$CXX"; then Chris@564: ac_ct_CXX=$CXX Chris@564: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC Chris@564: do Chris@564: # Extract the first word of "$ac_prog", so it can be a program name with args. Chris@564: set dummy $ac_prog; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if test -n "$ac_ct_CXX"; then Chris@564: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: ac_cv_prog_ac_ct_CXX="$ac_prog" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: fi Chris@564: fi Chris@564: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX Chris@564: if test -n "$ac_ct_CXX"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 Chris@564: $as_echo "$ac_ct_CXX" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: Chris@564: test -n "$ac_ct_CXX" && break Chris@564: done Chris@564: Chris@564: if test "x$ac_ct_CXX" = x; then Chris@564: CXX="g++" Chris@564: else Chris@564: case $cross_compiling:$ac_tool_warned in Chris@564: yes:) Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 Chris@564: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} Chris@564: ac_tool_warned=yes ;; Chris@564: esac Chris@564: CXX=$ac_ct_CXX Chris@564: fi Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: # Provide some information about the compiler. Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 Chris@564: set X $ac_compile Chris@564: ac_compiler=$2 Chris@564: for ac_option in --version -v -V -qversion; do Chris@564: { { ac_try="$ac_compiler $ac_option >&5" Chris@564: case "(($ac_try" in Chris@564: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; Chris@564: *) ac_try_echo=$ac_try;; Chris@564: esac Chris@564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" Chris@564: $as_echo "$ac_try_echo"; } >&5 Chris@564: (eval "$ac_compiler $ac_option >&5") 2>conftest.err Chris@564: ac_status=$? Chris@564: if test -s conftest.err; then Chris@564: sed '10a\ Chris@564: ... rest of stderr output deleted ... Chris@564: 10q' conftest.err >conftest.er1 Chris@564: cat conftest.er1 >&5 Chris@564: fi Chris@564: rm -f conftest.er1 conftest.err Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; } Chris@564: done Chris@564: Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 Chris@564: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } Chris@564: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: int Chris@564: main () Chris@564: { Chris@564: #ifndef __GNUC__ Chris@564: choke me Chris@564: #endif Chris@564: Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_compile "$LINENO"; then : Chris@564: ac_compiler_gnu=yes Chris@564: else Chris@564: ac_compiler_gnu=no Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@564: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu Chris@564: Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 Chris@564: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } Chris@564: if test $ac_compiler_gnu = yes; then Chris@564: GXX=yes Chris@564: else Chris@564: GXX= Chris@564: fi Chris@564: ac_test_CXXFLAGS=${CXXFLAGS+set} Chris@564: ac_save_CXXFLAGS=$CXXFLAGS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 Chris@564: $as_echo_n "checking whether $CXX accepts -g... " >&6; } Chris@564: if test "${ac_cv_prog_cxx_g+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_save_cxx_werror_flag=$ac_cxx_werror_flag Chris@564: ac_cxx_werror_flag=yes Chris@564: ac_cv_prog_cxx_g=no Chris@564: CXXFLAGS="-g" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: int Chris@564: main () Chris@564: { Chris@564: Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_compile "$LINENO"; then : Chris@564: ac_cv_prog_cxx_g=yes Chris@564: else Chris@564: CXXFLAGS="" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: int Chris@564: main () Chris@564: { Chris@564: Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_compile "$LINENO"; then : Chris@564: Chris@564: else Chris@564: ac_cxx_werror_flag=$ac_save_cxx_werror_flag Chris@564: CXXFLAGS="-g" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: int Chris@564: main () Chris@564: { Chris@564: Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_compile "$LINENO"; then : Chris@564: ac_cv_prog_cxx_g=yes Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@564: ac_cxx_werror_flag=$ac_save_cxx_werror_flag Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 Chris@564: $as_echo "$ac_cv_prog_cxx_g" >&6; } Chris@564: if test "$ac_test_CXXFLAGS" = set; then Chris@564: CXXFLAGS=$ac_save_CXXFLAGS Chris@564: elif test $ac_cv_prog_cxx_g = yes; then Chris@564: if test "$GXX" = yes; then Chris@564: CXXFLAGS="-g -O2" Chris@564: else Chris@564: CXXFLAGS="-g" Chris@564: fi Chris@564: else Chris@564: if test "$GXX" = yes; then Chris@564: CXXFLAGS="-O2" Chris@564: else Chris@564: CXXFLAGS= Chris@564: fi Chris@564: fi Chris@564: ac_ext=cpp Chris@564: ac_cpp='$CXXCPP $CPPFLAGS' Chris@564: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@564: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@564: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu Chris@564: Chris@564: ac_aux_dir= Chris@564: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do Chris@580: if test -f "$ac_dir/install-sh"; then Chris@580: ac_aux_dir=$ac_dir Chris@580: ac_install_sh="$ac_aux_dir/install-sh -c" Chris@580: break Chris@580: elif test -f "$ac_dir/install.sh"; then Chris@580: ac_aux_dir=$ac_dir Chris@580: ac_install_sh="$ac_aux_dir/install.sh -c" Chris@580: break Chris@580: elif test -f "$ac_dir/shtool"; then Chris@580: ac_aux_dir=$ac_dir Chris@580: ac_install_sh="$ac_aux_dir/shtool install -c" Chris@580: break Chris@580: fi Chris@564: done Chris@564: if test -z "$ac_aux_dir"; then Chris@580: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: # These three variables are undocumented and unsupported, Chris@564: # and are intended to be withdrawn in a future Autoconf release. Chris@564: # They can cause serious problems if a builder's source tree is in a directory Chris@564: # whose full name contains unusual characters. Chris@564: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. Chris@564: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. Chris@564: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. Chris@564: Chris@564: Chris@564: # Find a good install program. We prefer a C program (faster), Chris@564: # so one script is as good as another. But avoid the broken or Chris@564: # incompatible versions: Chris@564: # SysV /etc/install, /usr/sbin/install Chris@564: # SunOS /usr/etc/install Chris@564: # IRIX /sbin/install Chris@564: # AIX /bin/install Chris@564: # AmigaOS /C/install, which installs bootblocks on floppy discs Chris@564: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag Chris@564: # AFS /usr/afsws/bin/install, which mishandles nonexistent args Chris@564: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" Chris@564: # OS/2's system install, which has a completely different semantic Chris@564: # ./install, which can be erroneously created by make from ./install.sh. Chris@564: # Reject install programs that cannot install multiple files. Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 Chris@564: $as_echo_n "checking for a BSD-compatible install... " >&6; } Chris@564: if test -z "$INSTALL"; then Chris@564: if test "${ac_cv_path_install+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: # Account for people who put trailing slashes in PATH elements. Chris@564: case $as_dir/ in #(( Chris@564: ./ | .// | /[cC]/* | \ Chris@564: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ Chris@564: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ Chris@564: /usr/ucb/* ) ;; Chris@564: *) Chris@564: # OSF1 and SCO ODT 3.0 have their own names for install. Chris@564: # Don't use installbsd from OSF since it installs stuff as root Chris@564: # by default. Chris@564: for ac_prog in ginstall scoinst install; do Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then Chris@564: if test $ac_prog = install && Chris@564: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then Chris@564: # AIX install. It has an incompatible calling convention. Chris@564: : Chris@564: elif test $ac_prog = install && Chris@564: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then Chris@564: # program-specific install script used by HP pwplus--don't use. Chris@564: : Chris@564: else Chris@564: rm -rf conftest.one conftest.two conftest.dir Chris@564: echo one > conftest.one Chris@564: echo two > conftest.two Chris@564: mkdir conftest.dir Chris@564: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && Chris@564: test -s conftest.one && test -s conftest.two && Chris@564: test -s conftest.dir/conftest.one && Chris@564: test -s conftest.dir/conftest.two Chris@564: then Chris@564: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" Chris@564: break 3 Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: done Chris@564: done Chris@564: ;; Chris@564: esac Chris@564: Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: rm -rf conftest.one conftest.two conftest.dir Chris@564: Chris@564: fi Chris@564: if test "${ac_cv_path_install+set}" = set; then Chris@564: INSTALL=$ac_cv_path_install Chris@564: else Chris@564: # As a last resort, use the slow shell script. Don't cache a Chris@564: # value for INSTALL within a source directory, because that will Chris@564: # break other packages using the cache if that directory is Chris@564: # removed, or if the value is a relative name. Chris@564: INSTALL=$ac_install_sh Chris@564: fi Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 Chris@564: $as_echo "$INSTALL" >&6; } Chris@564: Chris@564: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. Chris@564: # It thinks the first close brace ends the variable substitution. Chris@564: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' Chris@564: Chris@564: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' Chris@564: Chris@564: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' Chris@564: Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 Chris@564: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } Chris@564: if test -z "$MKDIR_P"; then Chris@564: if test "${ac_cv_path_mkdir+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_prog in mkdir gmkdir; do Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue Chris@564: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( Chris@564: 'mkdir (GNU coreutils) '* | \ Chris@564: 'mkdir (coreutils) '* | \ Chris@564: 'mkdir (fileutils) '4.1*) Chris@564: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext Chris@564: break 3;; Chris@564: esac Chris@564: done Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: fi Chris@564: Chris@564: test -d ./--version && rmdir ./--version Chris@564: if test "${ac_cv_path_mkdir+set}" = set; then Chris@564: MKDIR_P="$ac_cv_path_mkdir -p" Chris@564: else Chris@564: # As a last resort, use the slow shell script. Don't cache a Chris@564: # value for MKDIR_P within a source directory, because that will Chris@564: # break other packages using the cache if that directory is Chris@564: # removed, or if the value is a relative name. Chris@564: MKDIR_P="$ac_install_sh -d" Chris@564: fi Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 Chris@564: $as_echo "$MKDIR_P" >&6; } Chris@564: Chris@564: Chris@564: Chris@564: ac_ext=cpp Chris@564: ac_cpp='$CXXCPP $CPPFLAGS' Chris@564: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@564: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@564: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 Chris@564: $as_echo_n "checking how to run the C++ preprocessor... " >&6; } Chris@564: if test -z "$CXXCPP"; then Chris@564: if test "${ac_cv_prog_CXXCPP+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: # Double quotes because CXXCPP needs to be expanded Chris@564: for CXXCPP in "$CXX -E" "/lib/cpp" Chris@564: do Chris@564: ac_preproc_ok=false Chris@564: for ac_cxx_preproc_warn_flag in '' yes Chris@564: do Chris@564: # Use a header file that comes with gcc, so configuring glibc Chris@564: # with a fresh cross-compiler works. Chris@564: # Prefer to if __STDC__ is defined, since Chris@564: # exists even on freestanding compilers. Chris@564: # On the NeXT, cc -E runs the code through the compiler's parser, Chris@564: # not just through cpp. "Syntax error" is here to catch this case. Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: #ifdef __STDC__ Chris@564: # include Chris@564: #else Chris@564: # include Chris@564: #endif Chris@564: Syntax error Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_cpp "$LINENO"; then : Chris@564: Chris@564: else Chris@564: # Broken: fails on valid input. Chris@564: continue Chris@564: fi Chris@580: rm -f conftest.err conftest.i conftest.$ac_ext Chris@564: Chris@564: # OK, works on sane cases. Now check whether nonexistent headers Chris@564: # can be detected and how. Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: #include Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_cpp "$LINENO"; then : Chris@564: # Broken: success on invalid input. Chris@564: continue Chris@564: else Chris@564: # Passes both tests. Chris@564: ac_preproc_ok=: Chris@564: break Chris@564: fi Chris@580: rm -f conftest.err conftest.i conftest.$ac_ext Chris@564: Chris@564: done Chris@564: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. Chris@580: rm -f conftest.i conftest.err conftest.$ac_ext Chris@564: if $ac_preproc_ok; then : Chris@564: break Chris@564: fi Chris@564: Chris@564: done Chris@564: ac_cv_prog_CXXCPP=$CXXCPP Chris@564: Chris@564: fi Chris@564: CXXCPP=$ac_cv_prog_CXXCPP Chris@564: else Chris@564: ac_cv_prog_CXXCPP=$CXXCPP Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 Chris@564: $as_echo "$CXXCPP" >&6; } Chris@564: ac_preproc_ok=false Chris@564: for ac_cxx_preproc_warn_flag in '' yes Chris@564: do Chris@564: # Use a header file that comes with gcc, so configuring glibc Chris@564: # with a fresh cross-compiler works. Chris@564: # Prefer to if __STDC__ is defined, since Chris@564: # exists even on freestanding compilers. Chris@564: # On the NeXT, cc -E runs the code through the compiler's parser, Chris@564: # not just through cpp. "Syntax error" is here to catch this case. Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: #ifdef __STDC__ Chris@564: # include Chris@564: #else Chris@564: # include Chris@564: #endif Chris@564: Syntax error Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_cpp "$LINENO"; then : Chris@564: Chris@564: else Chris@564: # Broken: fails on valid input. Chris@564: continue Chris@564: fi Chris@580: rm -f conftest.err conftest.i conftest.$ac_ext Chris@564: Chris@564: # OK, works on sane cases. Now check whether nonexistent headers Chris@564: # can be detected and how. Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: #include Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_cpp "$LINENO"; then : Chris@564: # Broken: success on invalid input. Chris@564: continue Chris@564: else Chris@564: # Passes both tests. Chris@564: ac_preproc_ok=: Chris@564: break Chris@564: fi Chris@580: rm -f conftest.err conftest.i conftest.$ac_ext Chris@564: Chris@564: done Chris@564: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. Chris@580: rm -f conftest.i conftest.err conftest.$ac_ext Chris@564: if $ac_preproc_ok; then : Chris@564: Chris@564: else Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 Chris@564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} Chris@580: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check Chris@580: See \`config.log' for more details" "$LINENO" 5 ; } Chris@564: fi Chris@564: Chris@564: ac_ext=cpp Chris@564: ac_cpp='$CXXCPP $CPPFLAGS' Chris@564: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' Chris@564: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Chris@564: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu Chris@564: Chris@564: Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 Chris@564: $as_echo_n "checking for grep that handles long lines and -e... " >&6; } Chris@564: if test "${ac_cv_path_GREP+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if test -z "$GREP"; then Chris@564: ac_path_GREP_found=false Chris@564: # Loop through the user's path and test for each of PROGNAME-LIST Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_prog in grep ggrep; do Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" Chris@564: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue Chris@564: # Check for GNU ac_path_GREP and select it if it is found. Chris@564: # Check for GNU $ac_path_GREP Chris@564: case `"$ac_path_GREP" --version 2>&1` in Chris@564: *GNU*) Chris@564: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; Chris@564: *) Chris@564: ac_count=0 Chris@564: $as_echo_n 0123456789 >"conftest.in" Chris@564: while : Chris@564: do Chris@564: cat "conftest.in" "conftest.in" >"conftest.tmp" Chris@564: mv "conftest.tmp" "conftest.in" Chris@564: cp "conftest.in" "conftest.nl" Chris@564: $as_echo 'GREP' >> "conftest.nl" Chris@564: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break Chris@564: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break Chris@564: as_fn_arith $ac_count + 1 && ac_count=$as_val Chris@564: if test $ac_count -gt ${ac_path_GREP_max-0}; then Chris@564: # Best one so far, save it but keep looking for a better one Chris@564: ac_cv_path_GREP="$ac_path_GREP" Chris@564: ac_path_GREP_max=$ac_count Chris@564: fi Chris@564: # 10*(2^10) chars as input seems more than enough Chris@564: test $ac_count -gt 10 && break Chris@564: done Chris@564: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; Chris@564: esac Chris@564: Chris@564: $ac_path_GREP_found && break 3 Chris@564: done Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: if test -z "$ac_cv_path_GREP"; then Chris@580: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 Chris@564: fi Chris@564: else Chris@564: ac_cv_path_GREP=$GREP Chris@564: fi Chris@564: Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 Chris@564: $as_echo "$ac_cv_path_GREP" >&6; } Chris@564: GREP="$ac_cv_path_GREP" Chris@564: Chris@564: Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 Chris@564: $as_echo_n "checking for egrep... " >&6; } Chris@564: if test "${ac_cv_path_EGREP+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 Chris@564: then ac_cv_path_EGREP="$GREP -E" Chris@564: else Chris@564: if test -z "$EGREP"; then Chris@564: ac_path_EGREP_found=false Chris@564: # Loop through the user's path and test for each of PROGNAME-LIST Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_prog in egrep; do Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" Chris@564: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue Chris@564: # Check for GNU ac_path_EGREP and select it if it is found. Chris@564: # Check for GNU $ac_path_EGREP Chris@564: case `"$ac_path_EGREP" --version 2>&1` in Chris@564: *GNU*) Chris@564: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; Chris@564: *) Chris@564: ac_count=0 Chris@564: $as_echo_n 0123456789 >"conftest.in" Chris@564: while : Chris@564: do Chris@564: cat "conftest.in" "conftest.in" >"conftest.tmp" Chris@564: mv "conftest.tmp" "conftest.in" Chris@564: cp "conftest.in" "conftest.nl" Chris@564: $as_echo 'EGREP' >> "conftest.nl" Chris@564: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break Chris@564: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break Chris@564: as_fn_arith $ac_count + 1 && ac_count=$as_val Chris@564: if test $ac_count -gt ${ac_path_EGREP_max-0}; then Chris@564: # Best one so far, save it but keep looking for a better one Chris@564: ac_cv_path_EGREP="$ac_path_EGREP" Chris@564: ac_path_EGREP_max=$ac_count Chris@564: fi Chris@564: # 10*(2^10) chars as input seems more than enough Chris@564: test $ac_count -gt 10 && break Chris@564: done Chris@564: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; Chris@564: esac Chris@564: Chris@564: $ac_path_EGREP_found && break 3 Chris@564: done Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: if test -z "$ac_cv_path_EGREP"; then Chris@580: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 Chris@564: fi Chris@564: else Chris@564: ac_cv_path_EGREP=$EGREP Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 Chris@564: $as_echo "$ac_cv_path_EGREP" >&6; } Chris@564: EGREP="$ac_cv_path_EGREP" Chris@564: Chris@564: Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 Chris@564: $as_echo_n "checking for ANSI C header files... " >&6; } Chris@564: if test "${ac_cv_header_stdc+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: #include Chris@564: #include Chris@564: #include Chris@564: #include Chris@564: Chris@564: int Chris@564: main () Chris@564: { Chris@564: Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_compile "$LINENO"; then : Chris@564: ac_cv_header_stdc=yes Chris@564: else Chris@564: ac_cv_header_stdc=no Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Chris@564: Chris@564: if test $ac_cv_header_stdc = yes; then Chris@564: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: #include Chris@564: Chris@564: _ACEOF Chris@564: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | Chris@564: $EGREP "memchr" >/dev/null 2>&1; then : Chris@564: Chris@564: else Chris@564: ac_cv_header_stdc=no Chris@564: fi Chris@564: rm -f conftest* Chris@564: Chris@564: fi Chris@564: Chris@564: if test $ac_cv_header_stdc = yes; then Chris@564: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: #include Chris@564: Chris@564: _ACEOF Chris@564: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | Chris@564: $EGREP "free" >/dev/null 2>&1; then : Chris@564: Chris@564: else Chris@564: ac_cv_header_stdc=no Chris@564: fi Chris@564: rm -f conftest* Chris@564: Chris@564: fi Chris@564: Chris@564: if test $ac_cv_header_stdc = yes; then Chris@564: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. Chris@564: if test "$cross_compiling" = yes; then : Chris@564: : Chris@564: else Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: #include Chris@564: #include Chris@564: #if ((' ' & 0x0FF) == 0x020) Chris@564: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') Chris@564: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) Chris@564: #else Chris@564: # define ISLOWER(c) \ Chris@564: (('a' <= (c) && (c) <= 'i') \ Chris@564: || ('j' <= (c) && (c) <= 'r') \ Chris@564: || ('s' <= (c) && (c) <= 'z')) Chris@564: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) Chris@564: #endif Chris@564: Chris@564: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) Chris@564: int Chris@564: main () Chris@564: { Chris@564: int i; Chris@564: for (i = 0; i < 256; i++) Chris@564: if (XOR (islower (i), ISLOWER (i)) Chris@564: || toupper (i) != TOUPPER (i)) Chris@564: return 2; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_run "$LINENO"; then : Chris@564: Chris@564: else Chris@564: ac_cv_header_stdc=no Chris@564: fi Chris@564: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ Chris@564: conftest.$ac_objext conftest.beam conftest.$ac_ext Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 Chris@564: $as_echo "$ac_cv_header_stdc" >&6; } Chris@564: if test $ac_cv_header_stdc = yes; then Chris@564: Chris@564: $as_echo "#define STDC_HEADERS 1" >>confdefs.h Chris@564: Chris@564: fi Chris@564: Chris@564: Chris@564: # These are the flags Autoconf guesses for us; we use them later if Chris@564: # the user has set none and we are not using GCC (so lack our own Chris@564: # preferred flags) Chris@564: AUTOCONF_CXXFLAGS="$CXXFLAGS" Chris@564: Chris@564: Chris@564: Chris@564: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then Chris@564: if test -n "$ac_tool_prefix"; then Chris@564: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. Chris@564: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: case $PKG_CONFIG in Chris@564: [\\/]* | ?:[\\/]*) Chris@564: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. Chris@564: ;; Chris@564: *) Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: ;; Chris@564: esac Chris@564: fi Chris@564: PKG_CONFIG=$ac_cv_path_PKG_CONFIG Chris@564: if test -n "$PKG_CONFIG"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 Chris@564: $as_echo "$PKG_CONFIG" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: Chris@564: fi Chris@564: if test -z "$ac_cv_path_PKG_CONFIG"; then Chris@564: ac_pt_PKG_CONFIG=$PKG_CONFIG Chris@564: # Extract the first word of "pkg-config", so it can be a program name with args. Chris@564: set dummy pkg-config; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: case $ac_pt_PKG_CONFIG in Chris@564: [\\/]* | ?:[\\/]*) Chris@564: ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. Chris@564: ;; Chris@564: *) Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: ;; Chris@564: esac Chris@564: fi Chris@564: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG Chris@564: if test -n "$ac_pt_PKG_CONFIG"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 Chris@564: $as_echo "$ac_pt_PKG_CONFIG" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: if test "x$ac_pt_PKG_CONFIG" = x; then Chris@564: PKG_CONFIG="" Chris@564: else Chris@564: case $cross_compiling:$ac_tool_warned in Chris@564: yes:) Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 Chris@564: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} Chris@564: ac_tool_warned=yes ;; Chris@564: esac Chris@564: PKG_CONFIG=$ac_pt_PKG_CONFIG Chris@564: fi Chris@564: else Chris@564: PKG_CONFIG="$ac_cv_path_PKG_CONFIG" Chris@564: fi Chris@564: Chris@564: fi Chris@564: if test -n "$PKG_CONFIG"; then Chris@564: _pkg_min_version=0.9.0 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 Chris@564: $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: PKG_CONFIG="" Chris@564: fi Chris@568: Chris@568: fi Chris@568: Chris@568: Chris@568: Chris@568: Chris@568: if test x$QMAKE = x ; then Chris@568: # Extract the first word of "qmake-qt4", so it can be a program name with args. Chris@564: set dummy qmake-qt4; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_prog_QMAKE+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if test -n "$QMAKE"; then Chris@564: ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $QTDIR/bin/ Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: ac_cv_prog_QMAKE="$QTDIR/bin/qmake-qt4" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: fi Chris@564: fi Chris@564: QMAKE=$ac_cv_prog_QMAKE Chris@564: if test -n "$QMAKE"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 Chris@564: $as_echo "$QMAKE" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: Chris@568: fi Chris@564: if test x$QMAKE = x ; then Chris@568: # Extract the first word of "qmake", so it can be a program name with args. Chris@564: set dummy qmake; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_prog_QMAKE+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if test -n "$QMAKE"; then Chris@564: ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $QTDIR/bin/ Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: ac_cv_prog_QMAKE="$QTDIR/bin/qmake" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: fi Chris@564: fi Chris@564: QMAKE=$ac_cv_prog_QMAKE Chris@564: if test -n "$QMAKE"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 Chris@564: $as_echo "$QMAKE" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: Chris@568: fi Chris@568: if test x$QMAKE = x ; then Chris@568: # Extract the first word of "qmake.exe", so it can be a program name with args. Chris@564: set dummy qmake.exe; ac_word=$2 Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@564: $as_echo_n "checking for $ac_word... " >&6; } Chris@564: if test "${ac_cv_prog_QMAKE+set}" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: if test -n "$QMAKE"; then Chris@564: ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. Chris@564: else Chris@564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $QTDIR/bin/ Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: for ac_exec_ext in '' $ac_executable_extensions; do Chris@564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@564: ac_cv_prog_QMAKE="$QTDIR/bin/qmake.exe" Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@564: break 2 Chris@564: fi Chris@564: done Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: fi Chris@564: fi Chris@564: QMAKE=$ac_cv_prog_QMAKE Chris@564: if test -n "$QMAKE"; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 Chris@564: $as_echo "$QMAKE" >&6; } Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@564: $as_echo "no" >&6; } Chris@564: fi Chris@564: Chris@564: Chris@568: fi Chris@568: if test x$QMAKE = x ; then Chris@568: # Extract the first word of "qmake-qt4", so it can be a program name with args. Chris@568: set dummy qmake-qt4; ac_word=$2 Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@568: $as_echo_n "checking for $ac_word... " >&6; } Chris@568: if test "${ac_cv_prog_QMAKE+set}" = set; then : Chris@568: $as_echo_n "(cached) " >&6 Chris@568: else Chris@568: if test -n "$QMAKE"; then Chris@568: ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. Chris@568: else Chris@568: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@568: for as_dir in $PATH Chris@568: do Chris@568: IFS=$as_save_IFS Chris@568: test -z "$as_dir" && as_dir=. Chris@568: for ac_exec_ext in '' $ac_executable_extensions; do Chris@568: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@568: ac_cv_prog_QMAKE="qmake-qt4" Chris@568: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@568: break 2 Chris@568: fi Chris@568: done Chris@568: done Chris@568: IFS=$as_save_IFS Chris@568: Chris@568: fi Chris@568: fi Chris@568: QMAKE=$ac_cv_prog_QMAKE Chris@568: if test -n "$QMAKE"; then Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 Chris@568: $as_echo "$QMAKE" >&6; } Chris@568: else Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: fi Chris@568: Chris@568: Chris@568: fi Chris@568: if test x$QMAKE = x ; then Chris@568: # Extract the first word of "qmake", so it can be a program name with args. Chris@568: set dummy qmake; ac_word=$2 Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 Chris@568: $as_echo_n "checking for $ac_word... " >&6; } Chris@568: if test "${ac_cv_prog_QMAKE+set}" = set; then : Chris@568: $as_echo_n "(cached) " >&6 Chris@568: else Chris@568: if test -n "$QMAKE"; then Chris@568: ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test. Chris@568: else Chris@568: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@568: for as_dir in $PATH Chris@568: do Chris@568: IFS=$as_save_IFS Chris@568: test -z "$as_dir" && as_dir=. Chris@568: for ac_exec_ext in '' $ac_executable_extensions; do Chris@568: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then Chris@568: ac_cv_prog_QMAKE="qmake" Chris@568: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 Chris@568: break 2 Chris@568: fi Chris@568: done Chris@568: done Chris@568: IFS=$as_save_IFS Chris@568: Chris@568: fi Chris@568: fi Chris@568: QMAKE=$ac_cv_prog_QMAKE Chris@568: if test -n "$QMAKE"; then Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 Chris@568: $as_echo "$QMAKE" >&6; } Chris@568: else Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: fi Chris@568: Chris@568: Chris@568: fi Chris@568: if test x$QMAKE = x ; then Chris@580: as_fn_error $? " Chris@564: Failed to find the required qmake-qt4 or qmake program. Please Chris@568: ensure you have the necessary Qt4 development files installed, and Chris@568: if necessary set QTDIR to the location of your Qt4 installation. Chris@564: " "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: # Suitable versions of qmake should print out something like: Chris@564: # Chris@564: # QMake version 2.01a Chris@564: # Using Qt version 4.6.3 in /usr/lib Chris@564: # Chris@564: # This may be translated, so we check only for the numbers (2.x and 4.x Chris@564: # in that order). Chris@564: # Chris@564: QMAKE_VERSION_OUTPUT=`$QMAKE -v` Chris@564: case "$QMAKE_VERSION_OUTPUT" in Chris@564: *2.*4.*) ;; Chris@564: *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Chris@564: *** The version of qmake found in \"$QMAKE\" looks like it might be Chris@564: from the wrong version of Qt (Qt4 is required). Please check Chris@564: that this is the correct version of qmake for Qt4 builds. Chris@564: " >&5 Chris@564: $as_echo "$as_me: WARNING: Chris@564: *** The version of qmake found in \"$QMAKE\" looks like it might be Chris@564: from the wrong version of Qt (Qt4 is required). Please check Chris@564: that this is the correct version of qmake for Qt4 builds. Chris@564: " >&2;} Chris@564: esac Chris@564: Chris@572: case "`uname`" in Chris@572: *Darwin*) QMAKE="$QMAKE -spec macx-g++";; Chris@572: esac Chris@572: Chris@564: Chris@564: Chris@564: SV_DEFINES_DEBUG="-DDEBUG -DBUILD_DEBUG -DWANT_TIMING" Chris@564: SV_DEFINES_RELEASE="-DNDEBUG -DBUILD_RELEASE -DNO_TIMING" Chris@564: SV_DEFINES_MINIMAL="$SV_DEFINES_RELEASE" Chris@564: Chris@564: # Now we have: USER_CXXFLAGS contains any flags the user set Chris@564: # explicitly; AUTOCONF_CXXFLAGS contains flags that Autoconf thought Chris@564: # we should use. If we have GCC, we override the latter but then Chris@564: # allow ourselves to be overridden (later) by the former Chris@564: Chris@564: CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" Chris@564: CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" Chris@564: CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" Chris@564: Chris@564: if test "x$GCC" = "xyes"; then Chris@564: CXXFLAGS_DEBUG="-Wall -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe" Chris@564: CXXFLAGS_RELEASE="-g0 -O2 -Wall -pipe" Chris@564: CXXFLAGS_MINIMAL="-g0 -O0" Chris@564: fi Chris@564: Chris@564: CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" Chris@564: SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" Chris@564: Chris@573: QMAKE_CONFIG="release" Chris@573: Chris@564: # Check whether --enable-debug was given. Chris@564: if test "${enable_debug+set}" = set; then : Chris@564: enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5 Chris@564: $as_echo "$as_me: enabling debug build" >&6;} Chris@573: QMAKE_CONFIG="debug" Chris@564: CXXFLAGS_BUILD="$CXXFLAGS_DEBUG" Chris@564: SV_DEFINES_BUILD="$SV_DEFINES_DEBUG" Chris@564: fi Chris@564: Chris@564: Chris@564: if test x"$USER_CXXFLAGS" != x; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5 Chris@564: $as_echo "$as_me: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&6;} Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Overriding default compiler flags with the above user setting." >&5 Chris@564: $as_echo "$as_me: Overriding default compiler flags with the above user setting." >&6;} Chris@564: CXXFLAGS_BUILD="$USER_CXXFLAGS" Chris@564: CXXFLAGS_MINIMAL="$USER_CXXFLAGS" Chris@564: fi Chris@564: Chris@564: CXXFLAGS="$CXXFLAGS_BUILD $SV_DEFINES_BUILD" Chris@564: Chris@564: # On IRIX 5.3, sys/types and inttypes.h are conflicting. Chris@564: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ Chris@564: inttypes.h stdint.h unistd.h Chris@564: do : Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default Chris@564: " Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: cat >>confdefs.h <<_ACEOF Chris@564: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 Chris@564: _ACEOF Chris@564: Chris@564: fi Chris@564: Chris@564: done Chris@564: Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=bz2 Chris@564: SV_MODULE_VERSION_TEST="" Chris@564: SV_MODULE_HEADER=bzlib.h Chris@564: SV_MODULE_LIB=bz2 Chris@564: SV_MODULE_FUNC=BZ2_bzReadOpen Chris@564: SV_MODULE_HAVE=HAVE_$(echo bz2 | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$bz2_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $bz2_CFLAGS" Chris@580: LIBS="$LIBS $bz2_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bz2" >&5 Chris@564: $as_echo_n "checking for bz2... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$bz2_CFLAGS"; then Chris@568: pkg_cv_bz2_CFLAGS="$bz2_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_bz2_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$bz2_LIBS"; then Chris@568: pkg_cv_bz2_LIBS="$bz2_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_bz2_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: bz2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: bz2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$bz2_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: bz2_CFLAGS=$pkg_cv_bz2_CFLAGS Chris@564: bz2_LIBS=$pkg_cv_bz2_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $bz2_CFLAGS";LIBS="$LIBS $bz2_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE" Chris@564: else Chris@580: as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@580: as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=fftw3 Chris@564: SV_MODULE_VERSION_TEST="fftw3 >= 3.0.0" Chris@564: SV_MODULE_HEADER=fftw3.h Chris@564: SV_MODULE_LIB=fftw3 Chris@564: SV_MODULE_FUNC=fftw_execute Chris@564: SV_MODULE_HAVE=HAVE_$(echo fftw3 | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$fftw3_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS" Chris@580: LIBS="$LIBS $fftw3_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5 Chris@564: $as_echo_n "checking for fftw3... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$fftw3_CFLAGS"; then Chris@568: pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$fftw3_LIBS"; then Chris@568: pkg_cv_fftw3_LIBS="$fftw3_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: fftw3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$fftw3_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS Chris@564: fftw3_LIBS=$pkg_cv_fftw3_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3_CFLAGS";LIBS="$LIBS $fftw3_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE" Chris@564: else Chris@580: as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@580: as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=fftw3f Chris@564: SV_MODULE_VERSION_TEST="fftw3f >= 3.0.0" Chris@564: SV_MODULE_HEADER=fftw3.h Chris@564: SV_MODULE_LIB=fftw3f Chris@564: SV_MODULE_FUNC=fftwf_execute Chris@564: SV_MODULE_HAVE=HAVE_$(echo fftw3f | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$fftw3f_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS" Chris@580: LIBS="$LIBS $fftw3f_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3f" >&5 Chris@564: $as_echo_n "checking for fftw3f... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$fftw3f_CFLAGS"; then Chris@568: pkg_cv_fftw3f_CFLAGS="$fftw3f_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_fftw3f_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$fftw3f_LIBS"; then Chris@568: pkg_cv_fftw3f_LIBS="$fftw3f_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_fftw3f_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: fftw3f_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: fftw3f_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$fftw3f_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: fftw3f_CFLAGS=$pkg_cv_fftw3f_CFLAGS Chris@564: fftw3f_LIBS=$pkg_cv_fftw3f_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fftw3f_CFLAGS";LIBS="$LIBS $fftw3f_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE" Chris@564: else Chris@580: as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@580: as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=sndfile Chris@564: SV_MODULE_VERSION_TEST="sndfile >= 1.0.16" Chris@564: SV_MODULE_HEADER=sndfile.h Chris@564: SV_MODULE_LIB=sndfile Chris@564: SV_MODULE_FUNC=sf_open Chris@564: SV_MODULE_HAVE=HAVE_$(echo sndfile | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$sndfile_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS" Chris@580: LIBS="$LIBS $sndfile_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndfile" >&5 Chris@564: $as_echo_n "checking for sndfile... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$sndfile_CFLAGS"; then Chris@568: pkg_cv_sndfile_CFLAGS="$sndfile_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_sndfile_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$sndfile_LIBS"; then Chris@568: pkg_cv_sndfile_LIBS="$sndfile_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_sndfile_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: sndfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: sndfile_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$sndfile_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: sndfile_CFLAGS=$pkg_cv_sndfile_CFLAGS Chris@564: sndfile_LIBS=$pkg_cv_sndfile_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $sndfile_CFLAGS";LIBS="$LIBS $sndfile_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE" Chris@564: else Chris@580: as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@580: as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=samplerate Chris@564: SV_MODULE_VERSION_TEST="samplerate >= 0.1.2" Chris@564: SV_MODULE_HEADER=samplerate.h Chris@564: SV_MODULE_LIB=samplerate Chris@564: SV_MODULE_FUNC=src_new Chris@564: SV_MODULE_HAVE=HAVE_$(echo samplerate | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$samplerate_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS" Chris@580: LIBS="$LIBS $samplerate_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for samplerate" >&5 Chris@564: $as_echo_n "checking for samplerate... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$samplerate_CFLAGS"; then Chris@568: pkg_cv_samplerate_CFLAGS="$samplerate_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_samplerate_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$samplerate_LIBS"; then Chris@568: pkg_cv_samplerate_LIBS="$samplerate_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_samplerate_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: samplerate_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: samplerate_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$samplerate_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: samplerate_CFLAGS=$pkg_cv_samplerate_CFLAGS Chris@564: samplerate_LIBS=$pkg_cv_samplerate_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $samplerate_CFLAGS";LIBS="$LIBS $samplerate_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE" Chris@564: else Chris@580: as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@580: as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=vamp Chris@564: SV_MODULE_VERSION_TEST="vamp >= 2.1" Chris@564: SV_MODULE_HEADER=vamp/vamp.h Chris@564: SV_MODULE_LIB= Chris@564: SV_MODULE_FUNC= Chris@564: SV_MODULE_HAVE=HAVE_$(echo vamp | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$vamp_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $vamp_CFLAGS" Chris@580: LIBS="$LIBS $vamp_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vamp" >&5 Chris@564: $as_echo_n "checking for vamp... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$vamp_CFLAGS"; then Chris@568: pkg_cv_vamp_CFLAGS="$vamp_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_vamp_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$vamp_LIBS"; then Chris@568: pkg_cv_vamp_LIBS="$vamp_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_vamp_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: vamp_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: vamp_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$vamp_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: vamp_CFLAGS=$pkg_cv_vamp_CFLAGS Chris@564: vamp_LIBS=$pkg_cv_vamp_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamp_CFLAGS";LIBS="$LIBS $vamp_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE" Chris@564: else Chris@580: as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@580: as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=vamphostsdk Chris@564: SV_MODULE_VERSION_TEST="vamp-hostsdk >= 2.0" Chris@564: SV_MODULE_HEADER=vamp-hostsdk/PluginLoader.h Chris@564: SV_MODULE_LIB= Chris@564: SV_MODULE_FUNC= Chris@564: SV_MODULE_HAVE=HAVE_$(echo vamphostsdk | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$vamphostsdk_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS" Chris@580: LIBS="$LIBS $vamphostsdk_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vamphostsdk" >&5 Chris@564: $as_echo_n "checking for vamphostsdk... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$vamphostsdk_CFLAGS"; then Chris@568: pkg_cv_vamphostsdk_CFLAGS="$vamphostsdk_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_vamphostsdk_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$vamphostsdk_LIBS"; then Chris@568: pkg_cv_vamphostsdk_LIBS="$vamphostsdk_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_vamphostsdk_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$vamphostsdk_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: vamphostsdk_CFLAGS=$pkg_cv_vamphostsdk_CFLAGS Chris@564: vamphostsdk_LIBS=$pkg_cv_vamphostsdk_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS";LIBS="$LIBS $vamphostsdk_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE" Chris@564: else Chris@580: as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@580: as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=rubberband Chris@564: SV_MODULE_VERSION_TEST="rubberband" Chris@564: SV_MODULE_HEADER=rubberband/RubberBandStretcher.h Chris@564: SV_MODULE_LIB=rubberband Chris@564: SV_MODULE_FUNC=rubberband_new Chris@564: SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$rubberband_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS" Chris@580: LIBS="$LIBS $rubberband_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rubberband" >&5 Chris@564: $as_echo_n "checking for rubberband... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$rubberband_CFLAGS"; then Chris@568: pkg_cv_rubberband_CFLAGS="$rubberband_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_rubberband_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$rubberband_LIBS"; then Chris@568: pkg_cv_rubberband_LIBS="$rubberband_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_rubberband_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: rubberband_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: rubberband_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$rubberband_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: rubberband_CFLAGS=$pkg_cv_rubberband_CFLAGS Chris@564: rubberband_LIBS=$pkg_cv_rubberband_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE" Chris@564: else Chris@580: as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@580: as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=raptor Chris@564: SV_MODULE_VERSION_TEST="raptor >= 1.4.20" Chris@564: SV_MODULE_HEADER=raptor.h Chris@564: SV_MODULE_LIB=raptor Chris@564: SV_MODULE_FUNC=raptor_start_parse Chris@564: SV_MODULE_HAVE=HAVE_$(echo raptor | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$raptor_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $raptor_CFLAGS" Chris@580: LIBS="$LIBS $raptor_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raptor" >&5 Chris@564: $as_echo_n "checking for raptor... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$raptor_CFLAGS"; then Chris@568: pkg_cv_raptor_CFLAGS="$raptor_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_raptor_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$raptor_LIBS"; then Chris@568: pkg_cv_raptor_LIBS="$raptor_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_raptor_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: raptor_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: raptor_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$raptor_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: raptor_CFLAGS=$pkg_cv_raptor_CFLAGS Chris@564: raptor_LIBS=$pkg_cv_raptor_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $raptor_CFLAGS";LIBS="$LIBS $raptor_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE" Chris@564: else Chris@580: as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@580: as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=rasqal Chris@564: SV_MODULE_VERSION_TEST="rasqal >= 0.9.19" Chris@564: SV_MODULE_HEADER=rasqal/rasqal.h Chris@564: SV_MODULE_LIB=rasqal Chris@564: SV_MODULE_FUNC=rasqal_new_world Chris@564: SV_MODULE_HAVE=HAVE_$(echo rasqal | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$rasqal_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $rasqal_CFLAGS" Chris@580: LIBS="$LIBS $rasqal_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rasqal" >&5 Chris@564: $as_echo_n "checking for rasqal... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$rasqal_CFLAGS"; then Chris@568: pkg_cv_rasqal_CFLAGS="$rasqal_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_rasqal_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$rasqal_LIBS"; then Chris@568: pkg_cv_rasqal_LIBS="$rasqal_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_rasqal_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: rasqal_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: rasqal_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$rasqal_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: rasqal_CFLAGS=$pkg_cv_rasqal_CFLAGS Chris@564: rasqal_LIBS=$pkg_cv_rasqal_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rasqal_CFLAGS";LIBS="$LIBS $rasqal_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE" Chris@564: else Chris@580: as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@580: as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=redland Chris@564: SV_MODULE_VERSION_TEST="redland >= 1.0.10" Chris@564: SV_MODULE_HEADER=librdf.h Chris@564: SV_MODULE_LIB=rdf Chris@564: SV_MODULE_FUNC=librdf_new_world Chris@564: SV_MODULE_HAVE=HAVE_$(echo redland | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$redland_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $redland_CFLAGS" Chris@580: LIBS="$LIBS $redland_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redland" >&5 Chris@564: $as_echo_n "checking for redland... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$redland_CFLAGS"; then Chris@568: pkg_cv_redland_CFLAGS="$redland_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_redland_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$redland_LIBS"; then Chris@568: pkg_cv_redland_LIBS="$redland_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_redland_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: redland_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: redland_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$redland_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: redland_CFLAGS=$pkg_cv_redland_CFLAGS Chris@564: redland_LIBS=$pkg_cv_redland_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $redland_CFLAGS";LIBS="$LIBS $redland_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE" Chris@564: else Chris@580: as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@580: as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=liblo Chris@564: SV_MODULE_VERSION_TEST="" Chris@564: SV_MODULE_HEADER=lo/lo.h Chris@564: SV_MODULE_LIB=lo Chris@564: SV_MODULE_FUNC=lo_address_new Chris@564: SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$liblo_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $liblo_CFLAGS" Chris@580: LIBS="$LIBS $liblo_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblo" >&5 Chris@564: $as_echo_n "checking for liblo... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$liblo_CFLAGS"; then Chris@568: pkg_cv_liblo_CFLAGS="$liblo_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_liblo_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$liblo_LIBS"; then Chris@568: pkg_cv_liblo_LIBS="$liblo_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_liblo_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: liblo_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: liblo_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$liblo_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: liblo_CFLAGS=$pkg_cv_liblo_CFLAGS Chris@564: liblo_LIBS=$pkg_cv_liblo_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@568: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: Chris@564: if test -z "$SV_MODULE_FAILED"; then Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@570: SV_MODULE_MODULE=portaudio_2_0 Chris@570: SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19" Chris@570: SV_MODULE_HEADER=portaudio.h Chris@570: SV_MODULE_LIB=portaudio Chris@570: SV_MODULE_FUNC=Pa_IsFormatSupported Chris@570: SV_MODULE_HAVE=HAVE_$(echo portaudio_2_0 | tr 'a-z' 'A-Z') Chris@570: SV_MODULE_FAILED=1 Chris@580: if test -n "$portaudio_2_0_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS" Chris@580: LIBS="$LIBS $portaudio_2_0_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@570: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@570: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@570: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@570: Chris@570: pkg_failed=no Chris@570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portaudio_2_0" >&5 Chris@570: $as_echo_n "checking for portaudio_2_0... " >&6; } Chris@570: Chris@570: if test -n "$PKG_CONFIG"; then Chris@570: if test -n "$portaudio_2_0_CFLAGS"; then Chris@570: pkg_cv_portaudio_2_0_CFLAGS="$portaudio_2_0_CFLAGS" Chris@570: else Chris@570: if test -n "$PKG_CONFIG" && \ Chris@570: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@570: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@570: ac_status=$? Chris@570: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@570: test $ac_status = 0; }; then Chris@570: pkg_cv_portaudio_2_0_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@570: else Chris@570: pkg_failed=yes Chris@570: fi Chris@570: fi Chris@570: else Chris@570: pkg_failed=untried Chris@570: fi Chris@570: if test -n "$PKG_CONFIG"; then Chris@570: if test -n "$portaudio_2_0_LIBS"; then Chris@570: pkg_cv_portaudio_2_0_LIBS="$portaudio_2_0_LIBS" Chris@570: else Chris@570: if test -n "$PKG_CONFIG" && \ Chris@570: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@570: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@570: ac_status=$? Chris@570: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@570: test $ac_status = 0; }; then Chris@570: pkg_cv_portaudio_2_0_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@570: else Chris@570: pkg_failed=yes Chris@570: fi Chris@570: fi Chris@570: else Chris@570: pkg_failed=untried Chris@570: fi Chris@570: Chris@570: Chris@570: Chris@570: if test $pkg_failed = yes; then Chris@570: Chris@570: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@570: _pkg_short_errors_supported=yes Chris@570: else Chris@570: _pkg_short_errors_supported=no Chris@570: fi Chris@570: if test $_pkg_short_errors_supported = yes; then Chris@570: portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@570: else Chris@570: portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@570: fi Chris@570: # Put the nasty error message in config.log where it belongs Chris@570: echo "$portaudio_2_0_PKG_ERRORS" >&5 Chris@570: Chris@570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@570: $as_echo "no" >&6; } Chris@570: { $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@570: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@570: elif test $pkg_failed = untried; then Chris@570: { $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@570: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@570: else Chris@570: portaudio_2_0_CFLAGS=$pkg_cv_portaudio_2_0_CFLAGS Chris@570: portaudio_2_0_LIBS=$pkg_cv_portaudio_2_0_LIBS Chris@570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@570: $as_echo "yes" >&6; } Chris@570: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS";LIBS="$LIBS $portaudio_2_0_LIBS";SV_MODULE_FAILED="" Chris@570: fi Chris@570: fi Chris@570: if test -n "$SV_MODULE_FAILED"; then Chris@570: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@570: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@570: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@570: else Chris@570: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 Chris@570: $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@570: fi Chris@570: Chris@570: Chris@570: if test -z "$SV_MODULE_FAILED"; then Chris@570: if test -n "$SV_MODULE_LIB"; then Chris@570: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@570: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@570: $as_echo_n "(cached) " >&6 Chris@570: else Chris@570: ac_check_lib_save_LIBS=$LIBS Chris@570: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@570: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@570: /* end confdefs.h. */ Chris@570: Chris@570: /* Override any GCC internal prototype to avoid an error. Chris@570: Use char because int might match the return type of a GCC Chris@570: builtin and then its argument prototype would still apply. */ Chris@570: #ifdef __cplusplus Chris@570: extern "C" Chris@570: #endif Chris@570: char $SV_MODULE_FUNC (); Chris@570: int Chris@570: main () Chris@570: { Chris@570: return $SV_MODULE_FUNC (); Chris@570: ; Chris@570: return 0; Chris@570: } Chris@570: _ACEOF Chris@570: if ac_fn_cxx_try_link "$LINENO"; then : Chris@570: eval "$as_ac_Lib=yes" Chris@570: else Chris@570: eval "$as_ac_Lib=no" Chris@570: fi Chris@570: rm -f core conftest.err conftest.$ac_objext \ Chris@570: conftest$ac_exeext conftest.$ac_ext Chris@570: LIBS=$ac_check_lib_save_LIBS Chris@570: fi Chris@570: eval ac_res=\$$as_ac_Lib Chris@570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@570: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@570: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@570: else Chris@570: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 Chris@570: $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@570: fi Chris@570: Chris@570: fi Chris@570: fi Chris@570: fi Chris@570: Chris@570: Chris@564: SV_MODULE_MODULE=JACK Chris@564: SV_MODULE_VERSION_TEST="jack >= 0.100" Chris@564: SV_MODULE_HEADER=jack/jack.h Chris@564: SV_MODULE_LIB=jack Chris@564: SV_MODULE_FUNC=jack_client_open Chris@564: SV_MODULE_HAVE=HAVE_$(echo JACK | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$JACK_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $JACK_CFLAGS" Chris@580: LIBS="$LIBS $JACK_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5 Chris@564: $as_echo_n "checking for JACK... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$JACK_CFLAGS"; then Chris@568: pkg_cv_JACK_CFLAGS="$JACK_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$JACK_LIBS"; then Chris@568: pkg_cv_JACK_LIBS="$JACK_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$JACK_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: JACK_CFLAGS=$pkg_cv_JACK_CFLAGS Chris@564: JACK_LIBS=$pkg_cv_JACK_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@568: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $JACK_CFLAGS";LIBS="$LIBS $JACK_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: Chris@564: if test -z "$SV_MODULE_FAILED"; then Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=libpulse Chris@564: SV_MODULE_VERSION_TEST="libpulse >= 0.9" Chris@564: SV_MODULE_HEADER=pulse/pulseaudio.h Chris@564: SV_MODULE_LIB=pulse Chris@564: SV_MODULE_FUNC=pa_stream_new Chris@564: SV_MODULE_HAVE=HAVE_$(echo libpulse | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$libpulse_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS" Chris@580: LIBS="$LIBS $libpulse_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse" >&5 Chris@564: $as_echo_n "checking for libpulse... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$libpulse_CFLAGS"; then Chris@568: pkg_cv_libpulse_CFLAGS="$libpulse_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_libpulse_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$libpulse_LIBS"; then Chris@568: pkg_cv_libpulse_LIBS="$libpulse_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_libpulse_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: libpulse_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: libpulse_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$libpulse_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: libpulse_CFLAGS=$pkg_cv_libpulse_CFLAGS Chris@564: libpulse_LIBS=$pkg_cv_libpulse_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@568: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $libpulse_CFLAGS";LIBS="$LIBS $libpulse_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: Chris@564: if test -z "$SV_MODULE_FAILED"; then Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=lrdf Chris@564: SV_MODULE_VERSION_TEST="lrdf >= 0.2" Chris@564: SV_MODULE_HEADER=lrdf.h Chris@564: SV_MODULE_LIB=lrdf Chris@564: SV_MODULE_FUNC=lrdf_init Chris@564: SV_MODULE_HAVE=HAVE_$(echo lrdf | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$lrdf_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS" Chris@580: LIBS="$LIBS $lrdf_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrdf" >&5 Chris@564: $as_echo_n "checking for lrdf... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$lrdf_CFLAGS"; then Chris@568: pkg_cv_lrdf_CFLAGS="$lrdf_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_lrdf_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$lrdf_LIBS"; then Chris@568: pkg_cv_lrdf_LIBS="$lrdf_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_lrdf_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: lrdf_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: lrdf_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$lrdf_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: lrdf_CFLAGS=$pkg_cv_lrdf_CFLAGS Chris@564: lrdf_LIBS=$pkg_cv_lrdf_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@568: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $lrdf_CFLAGS";LIBS="$LIBS $lrdf_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: Chris@564: if test -z "$SV_MODULE_FAILED"; then Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=oggz Chris@564: SV_MODULE_VERSION_TEST="oggz >= 1.0.0" Chris@564: SV_MODULE_HEADER=oggz/oggz.h Chris@564: SV_MODULE_LIB=oggz Chris@564: SV_MODULE_FUNC=oggz_run Chris@564: SV_MODULE_HAVE=HAVE_$(echo oggz | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$oggz_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $oggz_CFLAGS" Chris@580: LIBS="$LIBS $oggz_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oggz" >&5 Chris@564: $as_echo_n "checking for oggz... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$oggz_CFLAGS"; then Chris@568: pkg_cv_oggz_CFLAGS="$oggz_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_oggz_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$oggz_LIBS"; then Chris@568: pkg_cv_oggz_LIBS="$oggz_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_oggz_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: oggz_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: oggz_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$oggz_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: oggz_CFLAGS=$pkg_cv_oggz_CFLAGS Chris@564: oggz_LIBS=$pkg_cv_oggz_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@568: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $oggz_CFLAGS";LIBS="$LIBS $oggz_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: Chris@564: if test -z "$SV_MODULE_FAILED"; then Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=fishsound Chris@564: SV_MODULE_VERSION_TEST="fishsound >= 1.0.0" Chris@564: SV_MODULE_HEADER=fishsound/fishsound.h Chris@564: SV_MODULE_LIB=fishsound Chris@564: SV_MODULE_FUNC=fish_sound_new Chris@564: SV_MODULE_HAVE=HAVE_$(echo fishsound | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$fishsound_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS" Chris@580: LIBS="$LIBS $fishsound_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fishsound" >&5 Chris@564: $as_echo_n "checking for fishsound... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$fishsound_CFLAGS"; then Chris@568: pkg_cv_fishsound_CFLAGS="$fishsound_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_fishsound_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$fishsound_LIBS"; then Chris@568: pkg_cv_fishsound_LIBS="$fishsound_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_fishsound_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: fishsound_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: fishsound_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$fishsound_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: fishsound_CFLAGS=$pkg_cv_fishsound_CFLAGS Chris@564: fishsound_LIBS=$pkg_cv_fishsound_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@568: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $fishsound_CFLAGS";LIBS="$LIBS $fishsound_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: Chris@564: if test -z "$SV_MODULE_FAILED"; then Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=mad Chris@564: SV_MODULE_VERSION_TEST="mad >= 0.15.0" Chris@564: SV_MODULE_HEADER=mad.h Chris@564: SV_MODULE_LIB=mad Chris@564: SV_MODULE_FUNC=mad_decoder_init Chris@564: SV_MODULE_HAVE=HAVE_$(echo mad | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$mad_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $mad_CFLAGS" Chris@580: LIBS="$LIBS $mad_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad" >&5 Chris@564: $as_echo_n "checking for mad... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$mad_CFLAGS"; then Chris@568: pkg_cv_mad_CFLAGS="$mad_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_mad_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$mad_LIBS"; then Chris@568: pkg_cv_mad_LIBS="$mad_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_mad_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: mad_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: mad_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$mad_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: mad_CFLAGS=$pkg_cv_mad_CFLAGS Chris@564: mad_LIBS=$pkg_cv_mad_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@568: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $mad_CFLAGS";LIBS="$LIBS $mad_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: Chris@564: if test -z "$SV_MODULE_FAILED"; then Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: SV_MODULE_MODULE=id3tag Chris@564: SV_MODULE_VERSION_TEST="id3tag >= 0.15.0" Chris@564: SV_MODULE_HEADER=id3tag.h Chris@564: SV_MODULE_LIB=id3tag Chris@564: SV_MODULE_FUNC=id3_tag_new Chris@564: SV_MODULE_HAVE=HAVE_$(echo id3tag | tr 'a-z' 'A-Z') Chris@564: SV_MODULE_FAILED=1 Chris@580: if test -n "$id3tag_LIBS" ; then Chris@580: { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 Chris@580: $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} Chris@580: CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS" Chris@580: LIBS="$LIBS $id3tag_LIBS" Chris@580: SV_MODULE_FAILED="" Chris@580: fi Chris@564: if test -z "$SV_MODULE_VERSION_TEST" ; then Chris@564: SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE Chris@564: fi Chris@580: if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then Chris@564: Chris@564: pkg_failed=no Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for id3tag" >&5 Chris@564: $as_echo_n "checking for id3tag... " >&6; } Chris@564: Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$id3tag_CFLAGS"; then Chris@568: pkg_cv_id3tag_CFLAGS="$id3tag_CFLAGS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_id3tag_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@568: fi Chris@568: if test -n "$PKG_CONFIG"; then Chris@568: if test -n "$id3tag_LIBS"; then Chris@568: pkg_cv_id3tag_LIBS="$id3tag_LIBS" Chris@568: else Chris@568: if test -n "$PKG_CONFIG" && \ Chris@564: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 Chris@564: ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 Chris@564: ac_status=$? Chris@564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 Chris@564: test $ac_status = 0; }; then Chris@564: pkg_cv_id3tag_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` Chris@564: else Chris@564: pkg_failed=yes Chris@564: fi Chris@568: fi Chris@568: else Chris@568: pkg_failed=untried Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: if test $pkg_failed = yes; then Chris@564: Chris@564: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@564: _pkg_short_errors_supported=yes Chris@564: else Chris@564: _pkg_short_errors_supported=no Chris@564: fi Chris@564: if test $_pkg_short_errors_supported = yes; then Chris@568: id3tag_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: else Chris@568: id3tag_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` Chris@564: fi Chris@564: # Put the nasty error message in config.log where it belongs Chris@564: echo "$id3tag_PKG_ERRORS" >&5 Chris@564: Chris@568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 Chris@568: $as_echo "no" >&6; } Chris@568: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: elif test $pkg_failed = untried; then Chris@564: { $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@564: $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} Chris@564: else Chris@564: id3tag_CFLAGS=$pkg_cv_id3tag_CFLAGS Chris@564: id3tag_LIBS=$pkg_cv_id3tag_LIBS Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 Chris@564: $as_echo "yes" >&6; } Chris@568: HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $id3tag_CFLAGS";LIBS="$LIBS $id3tag_LIBS";SV_MODULE_FAILED="" Chris@564: fi Chris@564: fi Chris@564: if test -n "$SV_MODULE_FAILED"; then Chris@564: as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` Chris@564: ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" Chris@580: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : Chris@564: HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: Chris@564: if test -z "$SV_MODULE_FAILED"; then Chris@564: if test -n "$SV_MODULE_LIB"; then Chris@564: as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 Chris@564: $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } Chris@580: if eval "test \"\${$as_ac_Lib+set}\"" = set; then : Chris@564: $as_echo_n "(cached) " >&6 Chris@564: else Chris@564: ac_check_lib_save_LIBS=$LIBS Chris@564: LIBS="-l$SV_MODULE_LIB $LIBS" Chris@564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext Chris@564: /* end confdefs.h. */ Chris@564: Chris@564: /* Override any GCC internal prototype to avoid an error. Chris@564: Use char because int might match the return type of a GCC Chris@564: builtin and then its argument prototype would still apply. */ Chris@564: #ifdef __cplusplus Chris@564: extern "C" Chris@564: #endif Chris@564: char $SV_MODULE_FUNC (); Chris@564: int Chris@564: main () Chris@564: { Chris@564: return $SV_MODULE_FUNC (); Chris@564: ; Chris@564: return 0; Chris@564: } Chris@564: _ACEOF Chris@564: if ac_fn_cxx_try_link "$LINENO"; then : Chris@564: eval "$as_ac_Lib=yes" Chris@564: else Chris@564: eval "$as_ac_Lib=no" Chris@564: fi Chris@564: rm -f core conftest.err conftest.$ac_objext \ Chris@564: conftest$ac_exeext conftest.$ac_ext Chris@564: LIBS=$ac_check_lib_save_LIBS Chris@564: fi Chris@564: eval ac_res=\$$as_ac_Lib Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 Chris@564: $as_echo "$ac_res" >&6; } Chris@580: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : Chris@564: LIBS="$LIBS -l$SV_MODULE_LIB" Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 Chris@564: $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} Chris@564: fi Chris@564: Chris@564: fi Chris@564: fi Chris@564: fi Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@564: Chris@573: Chris@573: Chris@564: ac_config_files="$ac_config_files config.pri" Chris@564: Chris@564: cat >confcache <<\_ACEOF Chris@564: # This file is a shell script that caches the results of configure Chris@564: # tests run on this system so they can be shared between configure Chris@564: # scripts and configure runs, see configure's option --config-cache. Chris@564: # It is not useful on other systems. If it contains results you don't Chris@564: # want to keep, you may remove or edit it. Chris@564: # Chris@564: # config.status only pays attention to the cache file if you give it Chris@564: # the --recheck option to rerun configure. Chris@564: # Chris@564: # `ac_cv_env_foo' variables (set or unset) will be overridden when Chris@564: # loading this file, other *unset* `ac_cv_foo' will be assigned the Chris@564: # following values. Chris@564: Chris@564: _ACEOF Chris@564: Chris@564: # The following way of writing the cache mishandles newlines in values, Chris@564: # but we know of no workaround that is simple, portable, and efficient. Chris@564: # So, we kill variables containing newlines. Chris@564: # Ultrix sh set writes to stderr and can't be redirected directly, Chris@564: # and sets the high bit in the cache file unless we assign to the vars. Chris@564: ( Chris@564: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do Chris@564: eval ac_val=\$$ac_var Chris@564: case $ac_val in #( Chris@564: *${as_nl}*) Chris@564: case $ac_var in #( Chris@564: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 Chris@564: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; Chris@564: esac Chris@564: case $ac_var in #( Chris@564: _ | IFS | as_nl) ;; #( Chris@564: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( Chris@564: *) { eval $ac_var=; unset $ac_var;} ;; Chris@564: esac ;; Chris@564: esac Chris@564: done Chris@564: Chris@564: (set) 2>&1 | Chris@564: case $as_nl`(ac_space=' '; set) 2>&1` in #( Chris@564: *${as_nl}ac_space=\ *) Chris@564: # `set' does not quote correctly, so add quotes: double-quote Chris@564: # substitution turns \\\\ into \\, and sed turns \\ into \. Chris@564: sed -n \ Chris@564: "s/'/'\\\\''/g; Chris@564: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" Chris@564: ;; #( Chris@564: *) Chris@564: # `set' quotes correctly as required by POSIX, so do not add quotes. Chris@564: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" Chris@564: ;; Chris@564: esac | Chris@564: sort Chris@564: ) | Chris@564: sed ' Chris@564: /^ac_cv_env_/b end Chris@564: t clear Chris@564: :clear Chris@564: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ Chris@564: t end Chris@564: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ Chris@564: :end' >>confcache Chris@564: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else Chris@564: if test -w "$cache_file"; then Chris@564: test "x$cache_file" != "x/dev/null" && Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 Chris@564: $as_echo "$as_me: updating cache $cache_file" >&6;} Chris@564: cat confcache >$cache_file Chris@564: else Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 Chris@564: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} Chris@564: fi Chris@564: fi Chris@564: rm -f confcache Chris@564: Chris@564: test "x$prefix" = xNONE && prefix=$ac_default_prefix Chris@564: # Let make expand exec_prefix. Chris@564: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' Chris@564: Chris@564: # Transform confdefs.h into DEFS. Chris@564: # Protect against shell expansion while executing Makefile rules. Chris@564: # Protect against Makefile macro expansion. Chris@564: # Chris@564: # If the first sed substitution is executed (which looks for macros that Chris@564: # take arguments), then branch to the quote section. Otherwise, Chris@564: # look for a macro that doesn't take arguments. Chris@564: ac_script=' Chris@564: :mline Chris@564: /\\$/{ Chris@564: N Chris@564: s,\\\n,, Chris@564: b mline Chris@564: } Chris@564: t clear Chris@564: :clear Chris@564: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g Chris@564: t quote Chris@564: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g Chris@564: t quote Chris@564: b any Chris@564: :quote Chris@564: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g Chris@564: s/\[/\\&/g Chris@564: s/\]/\\&/g Chris@564: s/\$/$$/g Chris@564: H Chris@564: :any Chris@564: ${ Chris@564: g Chris@564: s/^\n// Chris@564: s/\n/ /g Chris@564: p Chris@564: } Chris@564: ' Chris@564: DEFS=`sed -n "$ac_script" confdefs.h` Chris@564: Chris@564: Chris@564: ac_libobjs= Chris@564: ac_ltlibobjs= Chris@580: U= Chris@564: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue Chris@564: # 1. Remove the extension, and $U if already installed. Chris@564: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' Chris@564: ac_i=`$as_echo "$ac_i" | sed "$ac_script"` Chris@564: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR Chris@564: # will be set to the directory where LIBOBJS objects are built. Chris@564: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" Chris@564: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' Chris@564: done Chris@564: LIBOBJS=$ac_libobjs Chris@564: Chris@564: LTLIBOBJS=$ac_ltlibobjs Chris@564: Chris@564: Chris@564: Chris@564: : ${CONFIG_STATUS=./config.status} Chris@564: ac_write_fail=0 Chris@564: ac_clean_files_save=$ac_clean_files Chris@564: ac_clean_files="$ac_clean_files $CONFIG_STATUS" Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 Chris@564: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} Chris@564: as_write_fail=0 Chris@564: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 Chris@564: #! $SHELL Chris@564: # Generated by $as_me. Chris@564: # Run this file to recreate the current configuration. Chris@564: # Compiler output produced by configure, useful for debugging Chris@564: # configure, is in config.log if it exists. Chris@564: Chris@564: debug=false Chris@564: ac_cs_recheck=false Chris@564: ac_cs_silent=false Chris@564: Chris@564: SHELL=\${CONFIG_SHELL-$SHELL} Chris@564: export SHELL Chris@564: _ASEOF Chris@564: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 Chris@564: ## -------------------- ## Chris@564: ## M4sh Initialization. ## Chris@564: ## -------------------- ## Chris@564: Chris@564: # Be more Bourne compatible Chris@564: DUALCASE=1; export DUALCASE # for MKS sh Chris@564: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : Chris@564: emulate sh Chris@564: NULLCMD=: Chris@564: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which Chris@564: # is contrary to our usage. Disable this feature. Chris@564: alias -g '${1+"$@"}'='"$@"' Chris@564: setopt NO_GLOB_SUBST Chris@564: else Chris@564: case `(set -o) 2>/dev/null` in #( Chris@564: *posix*) : Chris@564: set -o posix ;; #( Chris@564: *) : Chris@564: ;; Chris@564: esac Chris@564: fi Chris@564: Chris@564: Chris@564: as_nl=' Chris@564: ' Chris@564: export as_nl Chris@564: # Printing a long string crashes Solaris 7 /usr/bin/printf. Chris@564: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' Chris@564: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo Chris@564: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo Chris@564: # Prefer a ksh shell builtin over an external printf program on Solaris, Chris@564: # but without wasting forks for bash or zsh. Chris@564: if test -z "$BASH_VERSION$ZSH_VERSION" \ Chris@564: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then Chris@564: as_echo='print -r --' Chris@564: as_echo_n='print -rn --' Chris@564: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then Chris@564: as_echo='printf %s\n' Chris@564: as_echo_n='printf %s' Chris@564: else Chris@564: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then Chris@564: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' Chris@564: as_echo_n='/usr/ucb/echo -n' Chris@564: else Chris@564: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' Chris@564: as_echo_n_body='eval Chris@564: arg=$1; Chris@564: case $arg in #( Chris@564: *"$as_nl"*) Chris@564: expr "X$arg" : "X\\(.*\\)$as_nl"; Chris@564: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; Chris@564: esac; Chris@564: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" Chris@564: ' Chris@564: export as_echo_n_body Chris@564: as_echo_n='sh -c $as_echo_n_body as_echo' Chris@564: fi Chris@564: export as_echo_body Chris@564: as_echo='sh -c $as_echo_body as_echo' Chris@564: fi Chris@564: Chris@564: # The user is always right. Chris@564: if test "${PATH_SEPARATOR+set}" != set; then Chris@564: PATH_SEPARATOR=: Chris@564: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { Chris@564: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || Chris@564: PATH_SEPARATOR=';' Chris@564: } Chris@564: fi Chris@564: Chris@564: Chris@564: # IFS Chris@564: # We need space, tab and new line, in precisely that order. Quoting is Chris@564: # there to prevent editors from complaining about space-tab. Chris@564: # (If _AS_PATH_WALK were called with IFS unset, it would disable word Chris@564: # splitting by setting IFS to empty value.) Chris@564: IFS=" "" $as_nl" Chris@564: Chris@564: # Find who we are. Look in the path if we contain no directory separator. Chris@564: case $0 in #(( Chris@564: *[\\/]* ) as_myself=$0 ;; Chris@564: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR Chris@564: for as_dir in $PATH Chris@564: do Chris@564: IFS=$as_save_IFS Chris@564: test -z "$as_dir" && as_dir=. Chris@564: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break Chris@564: done Chris@564: IFS=$as_save_IFS Chris@564: Chris@564: ;; Chris@564: esac Chris@564: # We did not find ourselves, most probably we were run as `sh COMMAND' Chris@564: # in which case we are not to be found in the path. Chris@564: if test "x$as_myself" = x; then Chris@564: as_myself=$0 Chris@564: fi Chris@564: if test ! -f "$as_myself"; then Chris@564: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 Chris@564: exit 1 Chris@564: fi Chris@564: Chris@564: # Unset variables that we do not need and which cause bugs (e.g. in Chris@564: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" Chris@564: # suppresses any "Segmentation fault" message there. '((' could Chris@564: # trigger a bug in pdksh 5.2.14. Chris@564: for as_var in BASH_ENV ENV MAIL MAILPATH Chris@564: do eval test x\${$as_var+set} = xset \ Chris@564: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : Chris@564: done Chris@564: PS1='$ ' Chris@564: PS2='> ' Chris@564: PS4='+ ' Chris@564: Chris@564: # NLS nuisances. Chris@564: LC_ALL=C Chris@564: export LC_ALL Chris@564: LANGUAGE=C Chris@564: export LANGUAGE Chris@564: Chris@564: # CDPATH. Chris@564: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH Chris@564: Chris@564: Chris@580: # as_fn_error STATUS ERROR [LINENO LOG_FD] Chris@580: # ---------------------------------------- Chris@564: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are Chris@564: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the Chris@580: # script with STATUS, using 1 if that was 0. Chris@564: as_fn_error () Chris@564: { Chris@580: as_status=$1; test $as_status -eq 0 && as_status=1 Chris@580: if test "$4"; then Chris@580: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack Chris@580: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 Chris@564: fi Chris@580: $as_echo "$as_me: error: $2" >&2 Chris@564: as_fn_exit $as_status Chris@564: } # as_fn_error Chris@564: Chris@564: Chris@564: # as_fn_set_status STATUS Chris@564: # ----------------------- Chris@564: # Set $? to STATUS, without forking. Chris@564: as_fn_set_status () Chris@564: { Chris@564: return $1 Chris@564: } # as_fn_set_status Chris@564: Chris@564: # as_fn_exit STATUS Chris@564: # ----------------- Chris@564: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. Chris@564: as_fn_exit () Chris@564: { Chris@564: set +e Chris@564: as_fn_set_status $1 Chris@564: exit $1 Chris@564: } # as_fn_exit Chris@564: Chris@564: # as_fn_unset VAR Chris@564: # --------------- Chris@564: # Portably unset VAR. Chris@564: as_fn_unset () Chris@564: { Chris@564: { eval $1=; unset $1;} Chris@564: } Chris@564: as_unset=as_fn_unset Chris@564: # as_fn_append VAR VALUE Chris@564: # ---------------------- Chris@564: # Append the text in VALUE to the end of the definition contained in VAR. Take Chris@564: # advantage of any shell optimizations that allow amortized linear growth over Chris@564: # repeated appends, instead of the typical quadratic growth present in naive Chris@564: # implementations. Chris@564: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : Chris@564: eval 'as_fn_append () Chris@564: { Chris@564: eval $1+=\$2 Chris@564: }' Chris@564: else Chris@564: as_fn_append () Chris@564: { Chris@564: eval $1=\$$1\$2 Chris@564: } Chris@564: fi # as_fn_append Chris@564: Chris@564: # as_fn_arith ARG... Chris@564: # ------------------ Chris@564: # Perform arithmetic evaluation on the ARGs, and store the result in the Chris@564: # global $as_val. Take advantage of shells that can avoid forks. The arguments Chris@564: # must be portable across $(()) and expr. Chris@564: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : Chris@564: eval 'as_fn_arith () Chris@564: { Chris@564: as_val=$(( $* )) Chris@564: }' Chris@564: else Chris@564: as_fn_arith () Chris@564: { Chris@564: as_val=`expr "$@" || test $? -eq 1` Chris@564: } Chris@564: fi # as_fn_arith Chris@564: Chris@564: Chris@564: if expr a : '\(a\)' >/dev/null 2>&1 && Chris@564: test "X`expr 00001 : '.*\(...\)'`" = X001; then Chris@564: as_expr=expr Chris@564: else Chris@564: as_expr=false Chris@564: fi Chris@564: Chris@564: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then Chris@564: as_basename=basename Chris@564: else Chris@564: as_basename=false Chris@564: fi Chris@564: Chris@564: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then Chris@564: as_dirname=dirname Chris@564: else Chris@564: as_dirname=false Chris@564: fi Chris@564: Chris@564: as_me=`$as_basename -- "$0" || Chris@564: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ Chris@564: X"$0" : 'X\(//\)$' \| \ Chris@564: X"$0" : 'X\(/\)' \| . 2>/dev/null || Chris@564: $as_echo X/"$0" | Chris@564: sed '/^.*\/\([^/][^/]*\)\/*$/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\/\(\/\/\)$/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\/\(\/\).*/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: s/.*/./; q'` Chris@564: Chris@564: # Avoid depending upon Character Ranges. Chris@564: as_cr_letters='abcdefghijklmnopqrstuvwxyz' Chris@564: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' Chris@564: as_cr_Letters=$as_cr_letters$as_cr_LETTERS Chris@564: as_cr_digits='0123456789' Chris@564: as_cr_alnum=$as_cr_Letters$as_cr_digits Chris@564: Chris@564: ECHO_C= ECHO_N= ECHO_T= Chris@564: case `echo -n x` in #((((( Chris@564: -n*) Chris@564: case `echo 'xy\c'` in Chris@564: *c*) ECHO_T=' ';; # ECHO_T is single tab character. Chris@564: xy) ECHO_C='\c';; Chris@564: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null Chris@564: ECHO_T=' ';; Chris@564: esac;; Chris@564: *) Chris@564: ECHO_N='-n';; Chris@564: esac Chris@564: Chris@564: rm -f conf$$ conf$$.exe conf$$.file Chris@564: if test -d conf$$.dir; then Chris@564: rm -f conf$$.dir/conf$$.file Chris@564: else Chris@564: rm -f conf$$.dir Chris@564: mkdir conf$$.dir 2>/dev/null Chris@564: fi Chris@564: if (echo >conf$$.file) 2>/dev/null; then Chris@564: if ln -s conf$$.file conf$$ 2>/dev/null; then Chris@564: as_ln_s='ln -s' Chris@564: # ... but there are two gotchas: Chris@564: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. Chris@564: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. Chris@564: # In both cases, we have to default to `cp -p'. Chris@564: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || Chris@564: as_ln_s='cp -p' Chris@564: elif ln conf$$.file conf$$ 2>/dev/null; then Chris@564: as_ln_s=ln Chris@564: else Chris@564: as_ln_s='cp -p' Chris@564: fi Chris@564: else Chris@564: as_ln_s='cp -p' Chris@564: fi Chris@564: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file Chris@564: rmdir conf$$.dir 2>/dev/null Chris@564: Chris@564: Chris@564: # as_fn_mkdir_p Chris@564: # ------------- Chris@564: # Create "$as_dir" as a directory, including parents if necessary. Chris@564: as_fn_mkdir_p () Chris@564: { Chris@564: Chris@564: case $as_dir in #( Chris@564: -*) as_dir=./$as_dir;; Chris@564: esac Chris@564: test -d "$as_dir" || eval $as_mkdir_p || { Chris@564: as_dirs= Chris@564: while :; do Chris@564: case $as_dir in #( Chris@564: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( Chris@564: *) as_qdir=$as_dir;; Chris@564: esac Chris@564: as_dirs="'$as_qdir' $as_dirs" Chris@564: as_dir=`$as_dirname -- "$as_dir" || Chris@564: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@564: X"$as_dir" : 'X\(//\)[^/]' \| \ Chris@564: X"$as_dir" : 'X\(//\)$' \| \ Chris@564: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || Chris@564: $as_echo X"$as_dir" | Chris@564: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\(\/\/\)[^/].*/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\(\/\/\)$/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\(\/\).*/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: s/.*/./; q'` Chris@564: test -d "$as_dir" && break Chris@564: done Chris@564: test -z "$as_dirs" || eval "mkdir $as_dirs" Chris@580: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" Chris@564: Chris@564: Chris@564: } # as_fn_mkdir_p Chris@564: if mkdir -p . 2>/dev/null; then Chris@564: as_mkdir_p='mkdir -p "$as_dir"' Chris@564: else Chris@564: test -d ./-p && rmdir ./-p Chris@564: as_mkdir_p=false Chris@564: fi Chris@564: Chris@564: if test -x / >/dev/null 2>&1; then Chris@564: as_test_x='test -x' Chris@564: else Chris@564: if ls -dL / >/dev/null 2>&1; then Chris@564: as_ls_L_option=L Chris@564: else Chris@564: as_ls_L_option= Chris@564: fi Chris@564: as_test_x=' Chris@564: eval sh -c '\'' Chris@564: if test -d "$1"; then Chris@564: test -d "$1/."; Chris@564: else Chris@564: case $1 in #( Chris@564: -*)set "./$1";; Chris@564: esac; Chris@564: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( Chris@564: ???[sx]*):;;*)false;;esac;fi Chris@564: '\'' sh Chris@564: ' Chris@564: fi Chris@564: as_executable_p=$as_test_x Chris@564: Chris@564: # Sed expression to map a string onto a valid CPP name. Chris@564: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" Chris@564: Chris@564: # Sed expression to map a string onto a valid variable name. Chris@564: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" Chris@564: Chris@564: Chris@564: exec 6>&1 Chris@564: ## ----------------------------------- ## Chris@564: ## Main body of $CONFIG_STATUS script. ## Chris@564: ## ----------------------------------- ## Chris@564: _ASEOF Chris@564: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 Chris@564: Chris@564: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 Chris@564: # Save the log message, to keep $0 and so on meaningful, and to Chris@564: # report actual input values of CONFIG_FILES etc. instead of their Chris@564: # values after options handling. Chris@564: ac_log=" Chris@565: This file was extended by SVgui $as_me 1.8, which was Chris@580: generated by GNU Autoconf 2.67. Invocation command line was Chris@564: Chris@564: CONFIG_FILES = $CONFIG_FILES Chris@564: CONFIG_HEADERS = $CONFIG_HEADERS Chris@564: CONFIG_LINKS = $CONFIG_LINKS Chris@564: CONFIG_COMMANDS = $CONFIG_COMMANDS Chris@564: $ $0 $@ Chris@564: Chris@564: on `(hostname || uname -n) 2>/dev/null | sed 1q` Chris@564: " Chris@564: Chris@564: _ACEOF Chris@564: Chris@564: case $ac_config_files in *" Chris@564: "*) set x $ac_config_files; shift; ac_config_files=$*;; Chris@564: esac Chris@564: Chris@564: Chris@564: Chris@564: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 Chris@564: # Files that config.status was made for. Chris@564: config_files="$ac_config_files" Chris@564: Chris@564: _ACEOF Chris@564: Chris@564: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 Chris@564: ac_cs_usage="\ Chris@564: \`$as_me' instantiates files and other configuration actions Chris@564: from templates according to the current configuration. Unless the files Chris@564: and actions are specified as TAGs, all are instantiated by default. Chris@564: Chris@564: Usage: $0 [OPTION]... [TAG]... Chris@564: Chris@564: -h, --help print this help, then exit Chris@564: -V, --version print version number and configuration settings, then exit Chris@564: --config print configuration, then exit Chris@564: -q, --quiet, --silent Chris@564: do not print progress messages Chris@564: -d, --debug don't remove temporary files Chris@564: --recheck update $as_me by reconfiguring in the same conditions Chris@564: --file=FILE[:TEMPLATE] Chris@564: instantiate the configuration file FILE Chris@564: Chris@564: Configuration files: Chris@564: $config_files Chris@564: Chris@564: Report bugs to ." Chris@564: Chris@564: _ACEOF Chris@564: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 Chris@564: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" Chris@564: ac_cs_version="\\ Chris@565: SVgui config.status 1.8 Chris@580: configured by $0, generated by GNU Autoconf 2.67, Chris@564: with options \\"\$ac_cs_config\\" Chris@564: Chris@580: Copyright (C) 2010 Free Software Foundation, Inc. Chris@564: This config.status script is free software; the Free Software Foundation Chris@564: gives unlimited permission to copy, distribute and modify it." Chris@564: Chris@564: ac_pwd='$ac_pwd' Chris@564: srcdir='$srcdir' Chris@564: INSTALL='$INSTALL' Chris@564: MKDIR_P='$MKDIR_P' Chris@564: test -n "\$AWK" || AWK=awk Chris@564: _ACEOF Chris@564: Chris@564: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 Chris@564: # The default lists apply if the user does not specify any file. Chris@564: ac_need_defaults=: Chris@564: while test $# != 0 Chris@564: do Chris@564: case $1 in Chris@580: --*=?*) Chris@564: ac_option=`expr "X$1" : 'X\([^=]*\)='` Chris@564: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` Chris@564: ac_shift=: Chris@564: ;; Chris@580: --*=) Chris@580: ac_option=`expr "X$1" : 'X\([^=]*\)='` Chris@580: ac_optarg= Chris@580: ac_shift=: Chris@580: ;; Chris@564: *) Chris@564: ac_option=$1 Chris@564: ac_optarg=$2 Chris@564: ac_shift=shift Chris@564: ;; Chris@564: esac Chris@564: Chris@564: case $ac_option in Chris@564: # Handling of the options. Chris@564: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) Chris@564: ac_cs_recheck=: ;; Chris@564: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) Chris@564: $as_echo "$ac_cs_version"; exit ;; Chris@564: --config | --confi | --conf | --con | --co | --c ) Chris@564: $as_echo "$ac_cs_config"; exit ;; Chris@564: --debug | --debu | --deb | --de | --d | -d ) Chris@564: debug=: ;; Chris@564: --file | --fil | --fi | --f ) Chris@564: $ac_shift Chris@564: case $ac_optarg in Chris@564: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; Chris@580: '') as_fn_error $? "missing file argument" ;; Chris@564: esac Chris@564: as_fn_append CONFIG_FILES " '$ac_optarg'" Chris@564: ac_need_defaults=false;; Chris@564: --he | --h | --help | --hel | -h ) Chris@564: $as_echo "$ac_cs_usage"; exit ;; Chris@564: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ Chris@564: | -silent | --silent | --silen | --sile | --sil | --si | --s) Chris@564: ac_cs_silent=: ;; Chris@564: Chris@564: # This is an error. Chris@580: -*) as_fn_error $? "unrecognized option: \`$1' Chris@564: Try \`$0 --help' for more information." ;; Chris@564: Chris@564: *) as_fn_append ac_config_targets " $1" Chris@564: ac_need_defaults=false ;; Chris@564: Chris@564: esac Chris@564: shift Chris@564: done Chris@564: Chris@564: ac_configure_extra_args= Chris@564: Chris@564: if $ac_cs_silent; then Chris@564: exec 6>/dev/null Chris@564: ac_configure_extra_args="$ac_configure_extra_args --silent" Chris@564: fi Chris@564: Chris@564: _ACEOF Chris@564: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 Chris@564: if \$ac_cs_recheck; then Chris@564: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion Chris@564: shift Chris@564: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 Chris@564: CONFIG_SHELL='$SHELL' Chris@564: export CONFIG_SHELL Chris@564: exec "\$@" Chris@564: fi Chris@564: Chris@564: _ACEOF Chris@564: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 Chris@564: exec 5>>config.log Chris@564: { Chris@564: echo Chris@564: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX Chris@564: ## Running $as_me. ## Chris@564: _ASBOX Chris@564: $as_echo "$ac_log" Chris@564: } >&5 Chris@564: Chris@564: _ACEOF Chris@564: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 Chris@564: _ACEOF Chris@564: Chris@564: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 Chris@564: Chris@564: # Handling of arguments. Chris@564: for ac_config_target in $ac_config_targets Chris@564: do Chris@564: case $ac_config_target in Chris@564: "config.pri") CONFIG_FILES="$CONFIG_FILES config.pri" ;; Chris@564: Chris@580: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; Chris@564: esac Chris@564: done Chris@564: Chris@564: Chris@564: # If the user did not use the arguments to specify the items to instantiate, Chris@564: # then the envvar interface is used. Set only those that are not. Chris@564: # We use the long form for the default assignment because of an extremely Chris@564: # bizarre bug on SunOS 4.1.3. Chris@564: if $ac_need_defaults; then Chris@564: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files Chris@564: fi Chris@564: Chris@564: # Have a temporary directory for convenience. Make it in the build tree Chris@564: # simply because there is no reason against having it here, and in addition, Chris@564: # creating and moving files from /tmp can sometimes cause problems. Chris@564: # Hook for its removal unless debugging. Chris@564: # Note that there is a small window in which the directory will not be cleaned: Chris@564: # after its creation but before its name has been assigned to `$tmp'. Chris@564: $debug || Chris@564: { Chris@564: tmp= Chris@564: trap 'exit_status=$? Chris@564: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status Chris@564: ' 0 Chris@564: trap 'as_fn_exit 1' 1 2 13 15 Chris@564: } Chris@564: # Create a (secure) tmp directory for tmp files. Chris@564: Chris@564: { Chris@564: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && Chris@564: test -n "$tmp" && test -d "$tmp" Chris@564: } || Chris@564: { Chris@564: tmp=./conf$$-$RANDOM Chris@564: (umask 077 && mkdir "$tmp") Chris@580: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 Chris@564: Chris@564: # Set up the scripts for CONFIG_FILES section. Chris@564: # No need to generate them if there are no CONFIG_FILES. Chris@564: # This happens for instance with `./config.status config.h'. Chris@564: if test -n "$CONFIG_FILES"; then Chris@564: Chris@564: Chris@564: ac_cr=`echo X | tr X '\015'` Chris@564: # On cygwin, bash can eat \r inside `` if the user requested igncr. Chris@564: # But we know of no other shell where ac_cr would be empty at this Chris@564: # point, so we can use a bashism as a fallback. Chris@564: if test "x$ac_cr" = x; then Chris@564: eval ac_cr=\$\'\\r\' Chris@564: fi Chris@564: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` Chris@564: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then Chris@580: ac_cs_awk_cr='\\r' Chris@564: else Chris@564: ac_cs_awk_cr=$ac_cr Chris@564: fi Chris@564: Chris@564: echo 'BEGIN {' >"$tmp/subs1.awk" && Chris@564: _ACEOF Chris@564: Chris@564: Chris@564: { Chris@564: echo "cat >conf$$subs.awk <<_ACEOF" && Chris@564: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && Chris@564: echo "_ACEOF" Chris@564: } >conf$$subs.sh || Chris@580: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 Chris@580: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` Chris@564: ac_delim='%!_!# ' Chris@564: for ac_last_try in false false false false false :; do Chris@564: . ./conf$$subs.sh || Chris@580: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 Chris@564: Chris@564: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` Chris@564: if test $ac_delim_n = $ac_delim_num; then Chris@564: break Chris@564: elif $ac_last_try; then Chris@580: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 Chris@564: else Chris@564: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " Chris@564: fi Chris@564: done Chris@564: rm -f conf$$subs.sh Chris@564: Chris@564: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 Chris@564: cat >>"\$tmp/subs1.awk" <<\\_ACAWK && Chris@564: _ACEOF Chris@564: sed -n ' Chris@564: h Chris@564: s/^/S["/; s/!.*/"]=/ Chris@564: p Chris@564: g Chris@564: s/^[^!]*!// Chris@564: :repl Chris@564: t repl Chris@564: s/'"$ac_delim"'$// Chris@564: t delim Chris@564: :nl Chris@564: h Chris@564: s/\(.\{148\}\)..*/\1/ Chris@564: t more1 Chris@564: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ Chris@564: p Chris@564: n Chris@564: b repl Chris@564: :more1 Chris@564: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ Chris@564: p Chris@564: g Chris@564: s/.\{148\}// Chris@564: t nl Chris@564: :delim Chris@564: h Chris@564: s/\(.\{148\}\)..*/\1/ Chris@564: t more2 Chris@564: s/["\\]/\\&/g; s/^/"/; s/$/"/ Chris@564: p Chris@564: b Chris@564: :more2 Chris@564: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ Chris@564: p Chris@564: g Chris@564: s/.\{148\}// Chris@564: t delim Chris@564: ' >$CONFIG_STATUS || ac_write_fail=1 Chris@564: rm -f conf$$subs.awk Chris@564: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 Chris@564: _ACAWK Chris@564: cat >>"\$tmp/subs1.awk" <<_ACAWK && Chris@564: for (key in S) S_is_set[key] = 1 Chris@564: FS = "" Chris@564: Chris@564: } Chris@564: { Chris@564: line = $ 0 Chris@564: nfields = split(line, field, "@") Chris@564: substed = 0 Chris@564: len = length(field[1]) Chris@564: for (i = 2; i < nfields; i++) { Chris@564: key = field[i] Chris@564: keylen = length(key) Chris@564: if (S_is_set[key]) { Chris@564: value = S[key] Chris@564: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) Chris@564: len += length(value) + length(field[++i]) Chris@564: substed = 1 Chris@564: } else Chris@564: len += 1 + keylen Chris@564: } Chris@564: Chris@564: print line Chris@564: } Chris@564: Chris@564: _ACAWK Chris@564: _ACEOF Chris@564: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 Chris@564: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then Chris@564: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" Chris@564: else Chris@564: cat Chris@564: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ Chris@580: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 Chris@564: _ACEOF Chris@564: Chris@580: # VPATH may cause trouble with some makes, so we remove sole $(srcdir), Chris@580: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and Chris@564: # trailing colons and then remove the whole line if VPATH becomes empty Chris@564: # (actually we leave an empty line to preserve line numbers). Chris@564: if test "x$srcdir" = x.; then Chris@580: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ Chris@580: h Chris@580: s/// Chris@580: s/^/:/ Chris@580: s/[ ]*$/:/ Chris@580: s/:\$(srcdir):/:/g Chris@580: s/:\${srcdir}:/:/g Chris@580: s/:@srcdir@:/:/g Chris@580: s/^:*// Chris@564: s/:*$// Chris@580: x Chris@580: s/\(=[ ]*\).*/\1/ Chris@580: G Chris@580: s/\n// Chris@564: s/^[^=]*=[ ]*$// Chris@564: }' Chris@564: fi Chris@564: Chris@564: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 Chris@564: fi # test -n "$CONFIG_FILES" Chris@564: Chris@564: Chris@564: eval set X " :F $CONFIG_FILES " Chris@564: shift Chris@564: for ac_tag Chris@564: do Chris@564: case $ac_tag in Chris@564: :[FHLC]) ac_mode=$ac_tag; continue;; Chris@564: esac Chris@564: case $ac_mode$ac_tag in Chris@564: :[FHL]*:*);; Chris@580: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; Chris@564: :[FH]-) ac_tag=-:-;; Chris@564: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; Chris@564: esac Chris@564: ac_save_IFS=$IFS Chris@564: IFS=: Chris@564: set x $ac_tag Chris@564: IFS=$ac_save_IFS Chris@564: shift Chris@564: ac_file=$1 Chris@564: shift Chris@564: Chris@564: case $ac_mode in Chris@564: :L) ac_source=$1;; Chris@564: :[FH]) Chris@564: ac_file_inputs= Chris@564: for ac_f Chris@564: do Chris@564: case $ac_f in Chris@564: -) ac_f="$tmp/stdin";; Chris@564: *) # Look for the file first in the build tree, then in the source tree Chris@564: # (if the path is not absolute). The absolute path cannot be DOS-style, Chris@564: # because $ac_f cannot contain `:'. Chris@564: test -f "$ac_f" || Chris@564: case $ac_f in Chris@564: [\\/$]*) false;; Chris@564: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; Chris@564: esac || Chris@580: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; Chris@564: esac Chris@564: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac Chris@564: as_fn_append ac_file_inputs " '$ac_f'" Chris@564: done Chris@564: Chris@564: # Let's still pretend it is `configure' which instantiates (i.e., don't Chris@564: # use $as_me), people would be surprised to read: Chris@564: # /* config.h. Generated by config.status. */ Chris@564: configure_input='Generated from '` Chris@564: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' Chris@564: `' by configure.' Chris@564: if test x"$ac_file" != x-; then Chris@564: configure_input="$ac_file. $configure_input" Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 Chris@564: $as_echo "$as_me: creating $ac_file" >&6;} Chris@564: fi Chris@564: # Neutralize special characters interpreted by sed in replacement strings. Chris@564: case $configure_input in #( Chris@564: *\&* | *\|* | *\\* ) Chris@564: ac_sed_conf_input=`$as_echo "$configure_input" | Chris@564: sed 's/[\\\\&|]/\\\\&/g'`;; #( Chris@564: *) ac_sed_conf_input=$configure_input;; Chris@564: esac Chris@564: Chris@564: case $ac_tag in Chris@564: *:-:* | *:-) cat >"$tmp/stdin" \ Chris@580: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; Chris@564: esac Chris@564: ;; Chris@564: esac Chris@564: Chris@564: ac_dir=`$as_dirname -- "$ac_file" || Chris@564: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ Chris@564: X"$ac_file" : 'X\(//\)[^/]' \| \ Chris@564: X"$ac_file" : 'X\(//\)$' \| \ Chris@564: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || Chris@564: $as_echo X"$ac_file" | Chris@564: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\(\/\/\)[^/].*/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\(\/\/\)$/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: /^X\(\/\).*/{ Chris@564: s//\1/ Chris@564: q Chris@564: } Chris@564: s/.*/./; q'` Chris@564: as_dir="$ac_dir"; as_fn_mkdir_p Chris@564: ac_builddir=. Chris@564: Chris@564: case "$ac_dir" in Chris@564: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@564: *) Chris@564: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` Chris@564: # A ".." for each directory in $ac_dir_suffix. Chris@564: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` Chris@564: case $ac_top_builddir_sub in Chris@564: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; Chris@564: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; Chris@564: esac ;; Chris@564: esac Chris@564: ac_abs_top_builddir=$ac_pwd Chris@564: ac_abs_builddir=$ac_pwd$ac_dir_suffix Chris@564: # for backward compatibility: Chris@564: ac_top_builddir=$ac_top_build_prefix Chris@564: Chris@564: case $srcdir in Chris@564: .) # We are building in place. Chris@564: ac_srcdir=. Chris@564: ac_top_srcdir=$ac_top_builddir_sub Chris@564: ac_abs_top_srcdir=$ac_pwd ;; Chris@564: [\\/]* | ?:[\\/]* ) # Absolute name. Chris@564: ac_srcdir=$srcdir$ac_dir_suffix; Chris@564: ac_top_srcdir=$srcdir Chris@564: ac_abs_top_srcdir=$srcdir ;; Chris@564: *) # Relative name. Chris@564: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix Chris@564: ac_top_srcdir=$ac_top_build_prefix$srcdir Chris@564: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; Chris@564: esac Chris@564: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix Chris@564: Chris@564: Chris@564: case $ac_mode in Chris@564: :F) Chris@564: # Chris@564: # CONFIG_FILE Chris@564: # Chris@564: Chris@564: case $INSTALL in Chris@564: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; Chris@564: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; Chris@564: esac Chris@564: ac_MKDIR_P=$MKDIR_P Chris@564: case $MKDIR_P in Chris@564: [\\/$]* | ?:[\\/]* ) ;; Chris@564: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; Chris@564: esac Chris@564: _ACEOF Chris@564: Chris@564: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 Chris@564: # If the template does not know about datarootdir, expand it. Chris@564: # FIXME: This hack should be removed a few years after 2.60. Chris@564: ac_datarootdir_hack=; ac_datarootdir_seen= Chris@564: ac_sed_dataroot=' Chris@564: /datarootdir/ { Chris@564: p Chris@564: q Chris@564: } Chris@564: /@datadir@/p Chris@564: /@docdir@/p Chris@564: /@infodir@/p Chris@564: /@localedir@/p Chris@564: /@mandir@/p' Chris@564: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in Chris@564: *datarootdir*) ac_datarootdir_seen=yes;; Chris@564: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 Chris@564: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} Chris@564: _ACEOF Chris@564: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 Chris@564: ac_datarootdir_hack=' Chris@564: s&@datadir@&$datadir&g Chris@564: s&@docdir@&$docdir&g Chris@564: s&@infodir@&$infodir&g Chris@564: s&@localedir@&$localedir&g Chris@564: s&@mandir@&$mandir&g Chris@564: s&\\\${datarootdir}&$datarootdir&g' ;; Chris@564: esac Chris@564: _ACEOF Chris@564: Chris@564: # Neutralize VPATH when `$srcdir' = `.'. Chris@564: # Shell code in configure.ac might set extrasub. Chris@564: # FIXME: do we really want to maintain this feature? Chris@564: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 Chris@564: ac_sed_extra="$ac_vpsub Chris@564: $extrasub Chris@564: _ACEOF Chris@564: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 Chris@564: :t Chris@564: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b Chris@564: s|@configure_input@|$ac_sed_conf_input|;t t Chris@564: s&@top_builddir@&$ac_top_builddir_sub&;t t Chris@564: s&@top_build_prefix@&$ac_top_build_prefix&;t t Chris@564: s&@srcdir@&$ac_srcdir&;t t Chris@564: s&@abs_srcdir@&$ac_abs_srcdir&;t t Chris@564: s&@top_srcdir@&$ac_top_srcdir&;t t Chris@564: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t Chris@564: s&@builddir@&$ac_builddir&;t t Chris@564: s&@abs_builddir@&$ac_abs_builddir&;t t Chris@564: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t Chris@564: s&@INSTALL@&$ac_INSTALL&;t t Chris@564: s&@MKDIR_P@&$ac_MKDIR_P&;t t Chris@564: $ac_datarootdir_hack Chris@564: " Chris@564: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ Chris@580: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 Chris@564: Chris@564: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && Chris@564: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && Chris@564: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' Chris@580: which seems to be undefined. Please make sure it is defined" >&5 Chris@564: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' Chris@580: which seems to be undefined. Please make sure it is defined" >&2;} Chris@564: Chris@564: rm -f "$tmp/stdin" Chris@564: case $ac_file in Chris@564: -) cat "$tmp/out" && rm -f "$tmp/out";; Chris@564: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; Chris@564: esac \ Chris@580: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 Chris@564: ;; Chris@564: Chris@564: Chris@564: Chris@564: esac Chris@564: Chris@564: done # for ac_tag Chris@564: Chris@564: Chris@564: as_fn_exit 0 Chris@564: _ACEOF Chris@564: ac_clean_files=$ac_clean_files_save Chris@564: Chris@564: test $ac_write_fail = 0 || Chris@580: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 Chris@564: Chris@564: Chris@564: # configure is writing to config.log, and then calls config.status. Chris@564: # config.status does its own redirection, appending to config.log. Chris@564: # Unfortunately, on DOS this fails, as config.log is still kept open Chris@564: # by configure, so config.status won't be able to write to it; its Chris@564: # output is simply discarded. So we exec the FD to /dev/null, Chris@564: # effectively closing config.log, so it can be properly (re)opened and Chris@564: # appended to by config.status. When coming back to configure, we Chris@564: # need to make the FD available again. Chris@564: if test "$no_create" != yes; then Chris@564: ac_cs_success=: Chris@564: ac_config_status_args= Chris@564: test "$silent" = yes && Chris@564: ac_config_status_args="$ac_config_status_args --quiet" Chris@564: exec 5>/dev/null Chris@564: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false Chris@564: exec 5>>config.log Chris@564: # Use ||, not &&, to avoid exiting from the if with $? = 1, which Chris@564: # would make configure fail if this is the last instruction. Chris@580: $ac_cs_success || as_fn_exit 1 Chris@564: fi Chris@564: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 Chris@564: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} Chris@564: fi Chris@564: Chris@564: Chris@564: if ! $QMAKE -r; then Chris@580: as_fn_error $? "qmake failed: Command was \"$QMAKE -r\"" "$LINENO" 5 Chris@568: fi Chris@564: Chris@564: { $as_echo "$as_me:${as_lineno-$LINENO}: Chris@564: Chris@564: Configuration complete. Chris@564: Please check the above messages for any warnings that you Chris@564: might care about, and then run \"make\". Chris@564: Chris@564: The file config.pri contains the configuration settings for Chris@564: qmake. If you want to adjust these by hand, edit config.pri Chris@564: and run \"qmake -r\" again to regenerate the Makefile. Chris@564: " >&5 Chris@564: $as_echo "$as_me: Chris@564: Chris@564: Configuration complete. Chris@564: Please check the above messages for any warnings that you Chris@564: might care about, and then run \"make\". Chris@564: Chris@564: The file config.pri contains the configuration settings for Chris@564: qmake. If you want to adjust these by hand, edit config.pri Chris@564: and run \"qmake -r\" again to regenerate the Makefile. Chris@564: " >&6;}