Coder Social home page Coder Social logo

Comments (12)

ranma avatar ranma commented on September 26, 2024

It's already using TMPDIR (TEMPDIR is derived from TMPDIR), would be good to trace the configure script to see where it's going wrong.

But yeah, in general I don't think any of us tested on mac and it pretty much expects bash/gcc/gnu ld.

There is an existing test for -lintl, but it's probably not picking up your custom package manager paths.

from gbsplay.

ranma avatar ranma commented on September 26, 2024

I think this should fix some of these issues:
ee25d11#diff-e2d5a00791bce9a01f99bc6fd613a39d

from gbsplay.

y avatar y commented on September 26, 2024

yes, some of the errors are fixed now. -O1 is still an issue and libintl isn't getting linked in even though the configure script did find it:

checking for libintl.h:  not found
checking for libintl.h in /usr/local/include:  not found
checking for libintl.h in /opt/local/include:  ok

from gbsplay.

ranma avatar ranma commented on September 26, 2024

Can you try again?
At least it builds fine on travis-ci now: https://travis-ci.org/ranma/gbsplay/jobs/78917409

from gbsplay.

y avatar y commented on September 26, 2024

Still doesn't link in libintl for me even though the configure script finds the library. Looks like -lintl isn't getting added to EXTRA_LDFLAGS:

looking for -lintl:  not found
looking for -lintl in /usr/local/lib:  not found
looking for -lintl in /opt/local/lib:  ok
checking for Cygwin environment:  no
optional modules: +contrib -test -xmmsplugin
optional features: +i18n -sharedlibgbs -regparm +hardening -debug +stdout -devdsp -alsa -nas +pulse +midi -dsound
EXTRA_CFLAGS=-Wdeclaration-after-statement -fstack-protector-strong -I/opt/local/include  -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe -fomit-frame-pointer
EXTRA_LDFLAGS=-Wl,-pie -fstack-protector-strong  -I/opt/local/include  -L/opt/local/lib

I can get it to build if I modify the Makefile with:

GBSLDFLAGS := $(EXTRA_LDFLAGS) -lintl

from gbsplay.

ranma avatar ranma commented on September 26, 2024

Maybe 1dc158d fixes it, but if not please run:

sh -x -v ./configure 2>&1

And then paste the output of config.err here, that should be helpful in seeing what it's doing.

from gbsplay.

y avatar y commented on September 26, 2024

Still doesn't link. config.err follows:

## find a path for tmp directory

TMPPATH="/tmp"
+ TMPPATH=/tmp
if [ "$TMPDIR" ]; then
    TMPPATH="$TMPDIR"
fi
+ '[' /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T/ ']'
+ TMPPATH=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T/

if [ ! -d "$TMPPATH" ]; then
    TMPPATH="."
fi
+ '[' '!' -d /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T/ ']'

## generate tmp directory

BASENAME="`basename $0`"
basename $0
++ basename ./configure
+ BASENAME=configure
if [ "`which mktemp`" != "" ]; then
    TEMPDIR="`mktemp -d "$TMPPATH/$BASENAME.XXXXXXXXXX"`"
else
    TEMPDIR="$TMPPATH/$BASENAME.$$"
    mkdir "$TEMPDIR"
fi
which mktemp
++ which mktemp
++ IFS_SAVE='   
'
++ IFS=:
++ PROGRAM=mktemp
++ for ELEMENT in '$PATH'
++ '[' -z /opt/local/bin ']'
++ '[' -f /opt/local/bin/mktemp ']'
++ for ELEMENT in '$PATH'
++ '[' -z /opt/local/sbin ']'
++ '[' -f /opt/local/sbin/mktemp ']'
++ for ELEMENT in '$PATH'
++ '[' -z /usr/local/bin ']'
++ '[' -f /usr/local/bin/mktemp ']'
++ for ELEMENT in '$PATH'
++ '[' -z /usr/local/sbin ']'
++ '[' -f /usr/local/sbin/mktemp ']'
++ for ELEMENT in '$PATH'
++ '[' -z /bin ']'
++ '[' -f /bin/mktemp ']'
++ for ELEMENT in '$PATH'
++ '[' -z /usr/local/bin ']'
++ '[' -f /usr/local/bin/mktemp ']'
++ for ELEMENT in '$PATH'
++ '[' -z /usr/bin ']'
++ '[' -f /usr/bin/mktemp ']'
++ '[' -x /usr/bin/mktemp ']'
++ IFS='    
'
++ echo /usr/bin/mktemp
++ return 0
+ '[' /usr/bin/mktemp '!=' '' ']'
mktemp -d "$TMPPATH/$BASENAME.XXXXXXXXXX"
++ mktemp -d /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.XXXXXXXXXX
+ TEMPDIR=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL
if [ $? -ne 0 ]; then
    echo "can't create temporary directory at <$TMPPATH>!"
    exit 1;
fi
+ '[' 0 -ne 0 ']'

usage()
{
    cat<<EOF
Usage: $0 [OPTION]...

Configuration:
--help                 display this help and exit

Installation directories:
--prefix=PREFIX        install architecture-independent files in PREFIX
                        [/usr/local]
--exec-prefix=EPREFIX  install architecture-dependent files in EPREFIX
                        [PREFIX]
--bindir=BINDIR        install binaries in BINDIR
                        [EPREFIX/bin]
--libdir=BINDIR        install binaries in LIBDIR
                        [EPREFIX/lib]
--mandir=MANDIR        install manpages in MANDIR
                        [PREFIX/man]
--docdir=DOCDIR        install documentation in DOCDIR
                        [PREFIX/share/doc/$package]
--sysconfdir=SCONFDIR  look for system-wide configuration file in SCONFDIR
                        [/etc]

Optional Features:
--disable-i18n         omit libintl support
--disable-regparm      do not use register arguments on x86
--disable-hardening    disable hardening flags
--enable-debug         build with debug code
--enable-sharedlibgbs  build libgbs as a shared library
--enable-regparm       build with explicit regparm support
                        (enabled by default on Linux x86 only)

Optional Modules:
--with-xmmsplugin      build XMMS input plugin
--without-contrib      don't install contrib scripts
--without-test         don't test gbsplay output during build

Output Plugins:
--disable-devdsp       omit /dev/dsp sound output plugin
--disable-alsa         omit ALSA sound output plugin
--disable-midi         omit MIDI file writer plugin
--disable-nas          omit NAS sound output plugin
--disable-pulse        omit PulseAudio sound output plugin
--disable-dsound       omit Direct Sound output plugin
--disable-stdout       omit stdout file writer plugin
EOF
    exit $1
}

OPTS="build_contrib build_test build_xmmsplugin use_i18n use_sharedlibgbs use_regparm use_hardening use_debug use_stdout use_devdsp use_alsa use_nas use_pulse use_midi use_dsound"
+ OPTS='build_contrib build_test build_xmmsplugin use_i18n use_sharedlibgbs use_regparm use_hardening use_debug use_stdout use_devdsp use_alsa use_nas use_pulse use_midi use_dsound'
for OPT in $OPTS; do
    eval "${OPT}="
done
+ for OPT in '$OPTS'
+ eval build_contrib=
build_contrib=
++ build_contrib=
+ for OPT in '$OPTS'
+ eval build_test=
build_test=
++ build_test=
+ for OPT in '$OPTS'
+ eval build_xmmsplugin=
build_xmmsplugin=
++ build_xmmsplugin=
+ for OPT in '$OPTS'
+ eval use_i18n=
use_i18n=
++ use_i18n=
+ for OPT in '$OPTS'
+ eval use_sharedlibgbs=
use_sharedlibgbs=
++ use_sharedlibgbs=
+ for OPT in '$OPTS'
+ eval use_regparm=
use_regparm=
++ use_regparm=
+ for OPT in '$OPTS'
+ eval use_hardening=
use_hardening=
++ use_hardening=
+ for OPT in '$OPTS'
+ eval use_debug=
use_debug=
++ use_debug=
+ for OPT in '$OPTS'
+ eval use_stdout=
use_stdout=
++ use_stdout=
+ for OPT in '$OPTS'
+ eval use_devdsp=
use_devdsp=
++ use_devdsp=
+ for OPT in '$OPTS'
+ eval use_alsa=
use_alsa=
++ use_alsa=
+ for OPT in '$OPTS'
+ eval use_nas=
use_nas=
++ use_nas=
+ for OPT in '$OPTS'
+ eval use_pulse=
use_pulse=
++ use_pulse=
+ for OPT in '$OPTS'
+ eval use_midi=
use_midi=
++ use_midi=
+ for OPT in '$OPTS'
+ eval use_dsound=
use_dsound=
++ use_dsound=

## load user config
if [ -f config.conf ]; then
    printf "loading config.conf... "
    while read line; do
        parseoption $line
    done < config.conf
    echo ok
fi
+ '[' -f config.conf ']'

## flags from CONFIGURE_FLAGS env (for travis-ci)
for flag in ${CONFIGURE_FLAGS}; do
    parseoption $flag
done

## commandline flags
while [ ${1-} ]; do
    parseoption $1
    shift
done
+ '[' ']'

## on Linux x86, regparm defaults to on

if [ \( "$BUILDARCH" = "i386" -o    \
        "$BUILDARCH" = "i486" -o    \
        "$BUILDARCH" = "i586" -o    \
        "$BUILDARCH" = "i686" -o    \
        "$BUILDARCH" = "x86_64" \) -a \
        "$BUILDOS" = "Linux" ]; then
    setdefault use_regparm yes
    setdefault build_test yes
else
    setdefault use_regparm no
    setdefault build_test no
fi
+ '[' '(' x86_64 = i386 -o x86_64 = i486 -o x86_64 = i586 -o x86_64 = i686 -o x86_64 = x86_64 ')' -a Darwin = Linux ']'
+ setdefault use_regparm no
+ eval 'value=$use_regparm'
value=$use_regparm
++ value=
+ '[' -z '' ']'
+ eval use_regparm=no
use_regparm=no
++ use_regparm=no
+ setdefault build_test no
+ eval 'value=$build_test'
value=$build_test
++ value=
+ '[' -z '' ']'
+ eval build_test=no
build_test=no
++ build_test=no

## more defaults
setdefault build_xmmsplugin no
+ setdefault build_xmmsplugin no
+ eval 'value=$build_xmmsplugin'
value=$build_xmmsplugin
++ value=
+ '[' -z '' ']'
+ eval build_xmmsplugin=no
build_xmmsplugin=no
++ build_xmmsplugin=no
setdefault build_contrib yes
+ setdefault build_contrib yes
+ eval 'value=$build_contrib'
value=$build_contrib
++ value=
+ '[' -z '' ']'
+ eval build_contrib=yes
build_contrib=yes
++ build_contrib=yes
setdefault use_hardening yes
+ setdefault use_hardening yes
+ eval 'value=$use_hardening'
value=$use_hardening
++ value=
+ '[' -z '' ']'
+ eval use_hardening=yes
use_hardening=yes
++ use_hardening=yes
## disable test when cross-compiling
if [ -n "$buildalias" -a "$buildalias" != "$hostalias" ]; then
    build_test=no
fi
+ '[' -n '' -a '' '!=' '' ']'

## check for C compiler

printf "checking for working compiler:  "
+ printf 'checking for working compiler:  '
INFILE="$TEMPDIR/cc.c"
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
OUTFILE="$TEMPDIR/cc"
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc

cat > "$INFILE" <<EOF
int main(int argc, char **argv) {
    return 0;
}
EOF
+ cat
$BUILDCC -o "$OUTFILE" "$INFILE" $CFLAGS $LDFLAGS
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
RESULT=$?
+ RESULT=0
if [ $RESULT -eq 0 ]; then
    if [ "$buildalias" -a "$buildalias" != "$hostalias" ]; then
        echo "cross-compiling, skipping execute check"
    else
    if [ -s "$OUTFILE" ]; then
        "$OUTFILE"
        if [ $? -eq 0 ]; then
            echo "ok"
        else
            die "can't execute generated code"
        fi
    else
        die "no code generated"
    fi
    fi
else
    die "error executing '$BUILDCC'"
fi
+ '[' 0 -eq 0 ']'
+ '[' '' -a '' '!=' '' ']'
+ '[' -s /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc ']'
+ /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ '[' 0 -eq 0 ']'
+ echo ok

# Check git timestamp

if [ -f .git/HEAD ]; then
    VERSION=`git describe --tags`
fi
+ '[' -f .git/HEAD ']'
git describe --tags
++ git describe --tags
+ VERSION=0.0.93-21-g1dc158d

## check for cygwin environment

printf "checking if OS is Cygwin:  "
+ printf 'checking if OS is Cygwin:  '
if [ "`uname -o`" = "Cygwin" ]; then
    cygwin_build=yes
    echo "yes"
else
    cygwin_build=no
    echo "no"
fi
uname -o
++ uname -o
uname: illegal option -- o
usage: uname [-amnprsv]
+ '[' '' = Cygwin ']'
+ cygwin_build=no
+ echo no

## check for various headers

need_include inttypes.h
+ need_include inttypes.h
+ check_include inttypes.h
+ include=inttypes.h
+ includedirs=' /usr/local/include /opt/local/include'
echo $include | sed -e 's@[/\.]@_@g'
++ echo inttypes.h
++ sed -e 's@[/\.]@_@g'
+ includename=inttypes_h
+ eval 'value=${have_inttypes_h-}'
value=${have_inttypes_h-}
++ value=
+ test -z ''
+ flags=
+ for dir in '""' '$includedirs'
+ msg='checking for inttypes.h'
+ test -z ''
+ test -z ''
+ cc_check 'checking for inttypes.h' have_inttypes_h '' ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for inttypes.h'
+ varname=have_inttypes_h
+ flags='  '
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for inttypes.h'
+ printf 'checking for inttypes.h:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ RESULT=0
+ '[' 0 -eq 0 ']'
+ test 'checking for inttypes.h'
+ echo ok
+ test have_inttypes_h
+ eval have_inttypes_h=yes
have_inttypes_h=yes
++ have_inttypes_h=yes
+ return 0
+ '[' 0 -eq 0 ']'
+ eval 'include_inttypes_h_path=" "'
include_inttypes_h_path=" "
++ include_inttypes_h_path=' '
+ return 0
+ '[' 0 -ne 0 ']'

if [ "$use_devdsp" != no ]; then
    remember_use devdsp
    check_include sys/soundcard.h
    use_devdsp=$have_sys_soundcard_h
    recheck_use devdsp
fi
+ '[' '' '!=' no ']'
+ remember_use devdsp
+ eval 'remembered=$use_devdsp'
remembered=$use_devdsp
++ remembered=
+ check_include sys/soundcard.h
+ include=sys/soundcard.h
+ includedirs=' /usr/local/include /opt/local/include'
echo $include | sed -e 's@[/\.]@_@g'
++ echo sys/soundcard.h
++ sed -e 's@[/\.]@_@g'
+ includename=sys_soundcard_h
+ eval 'value=${have_sys_soundcard_h-}'
value=${have_sys_soundcard_h-}
++ value=
+ test -z ''
+ flags=
+ for dir in '""' '$includedirs'
+ msg='checking for sys/soundcard.h'
+ test -z ''
+ test -z ''
+ cc_check 'checking for sys/soundcard.h' have_sys_soundcard_h '' ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for sys/soundcard.h'
+ varname=have_sys_soundcard_h
+ flags='  '
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for sys/soundcard.h'
+ printf 'checking for sys/soundcard.h:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'sys/soundcard.h' file not found
#include <sys/soundcard.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for sys/soundcard.h'
+ echo 'not found'
+ test have_sys_soundcard_h
+ eval have_sys_soundcard_h=no
have_sys_soundcard_h=no
++ have_sys_soundcard_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$includedirs'
+ msg='checking for sys/soundcard.h'
+ test -z /usr/local/include
+ msg='checking for sys/soundcard.h in /usr/local/include'
+ test -z /usr/local/include
+ flags=-I/usr/local/include
+ cc_check 'checking for sys/soundcard.h in /usr/local/include' have_sys_soundcard_h -I/usr/local/include ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for sys/soundcard.h in /usr/local/include'
+ varname=have_sys_soundcard_h
+ flags='  -I/usr/local/include'
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for sys/soundcard.h in /usr/local/include'
+ printf 'checking for sys/soundcard.h in /usr/local/include:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/usr/local/include
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'sys/soundcard.h' file not found
#include <sys/soundcard.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for sys/soundcard.h in /usr/local/include'
+ echo 'not found'
+ test have_sys_soundcard_h
+ eval have_sys_soundcard_h=no
have_sys_soundcard_h=no
++ have_sys_soundcard_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$includedirs'
+ msg='checking for sys/soundcard.h'
+ test -z /opt/local/include
+ msg='checking for sys/soundcard.h in /opt/local/include'
+ test -z /opt/local/include
+ flags=-I/opt/local/include
+ cc_check 'checking for sys/soundcard.h in /opt/local/include' have_sys_soundcard_h -I/opt/local/include ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for sys/soundcard.h in /opt/local/include'
+ varname=have_sys_soundcard_h
+ flags='  -I/opt/local/include'
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for sys/soundcard.h in /opt/local/include'
+ printf 'checking for sys/soundcard.h in /opt/local/include:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'sys/soundcard.h' file not found
#include <sys/soundcard.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for sys/soundcard.h in /opt/local/include'
+ echo 'not found'
+ test have_sys_soundcard_h
+ eval have_sys_soundcard_h=no
have_sys_soundcard_h=no
++ have_sys_soundcard_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ return 1
+ use_devdsp=no
+ recheck_use devdsp
+ eval 'val=$use_devdsp'
val=$use_devdsp
++ val=no
+ '[' '' = yes -a no '!=' yes ']'

if [ "$use_alsa" != no ]; then
    remember_use alsa
    check_include alsa/asoundlib.h
    use_alsa=$have_alsa_asoundlib_h
    cc_check "checking for ESTRPIPE support" have_estrpipe <<EOF
#include <errno.h>
#include <alsa/asoundlib.h>
int main(int argc, char **argv)
{
    if (ESTRPIPE == 0)
        return 1;  /* Never reached. */
    return 0;
}
EOF
    recheck_use alsa
fi
+ '[' '' '!=' no ']'
+ remember_use alsa
+ eval 'remembered=$use_alsa'
remembered=$use_alsa
++ remembered=
+ check_include alsa/asoundlib.h
+ include=alsa/asoundlib.h
+ includedirs=' /usr/local/include /opt/local/include'
echo $include | sed -e 's@[/\.]@_@g'
++ echo alsa/asoundlib.h
++ sed -e 's@[/\.]@_@g'
+ includename=alsa_asoundlib_h
+ eval 'value=${have_alsa_asoundlib_h-}'
value=${have_alsa_asoundlib_h-}
++ value=
+ test -z ''
+ flags=
+ for dir in '""' '$includedirs'
+ msg='checking for alsa/asoundlib.h'
+ test -z ''
+ test -z ''
+ cc_check 'checking for alsa/asoundlib.h' have_alsa_asoundlib_h '' ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for alsa/asoundlib.h'
+ varname=have_alsa_asoundlib_h
+ flags='  '
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for alsa/asoundlib.h'
+ printf 'checking for alsa/asoundlib.h:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'alsa/asoundlib.h' file not found
#include <alsa/asoundlib.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for alsa/asoundlib.h'
+ echo 'not found'
+ test have_alsa_asoundlib_h
+ eval have_alsa_asoundlib_h=no
have_alsa_asoundlib_h=no
++ have_alsa_asoundlib_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$includedirs'
+ msg='checking for alsa/asoundlib.h'
+ test -z /usr/local/include
+ msg='checking for alsa/asoundlib.h in /usr/local/include'
+ test -z /usr/local/include
+ flags=-I/usr/local/include
+ cc_check 'checking for alsa/asoundlib.h in /usr/local/include' have_alsa_asoundlib_h -I/usr/local/include ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for alsa/asoundlib.h in /usr/local/include'
+ varname=have_alsa_asoundlib_h
+ flags='  -I/usr/local/include'
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for alsa/asoundlib.h in /usr/local/include'
+ printf 'checking for alsa/asoundlib.h in /usr/local/include:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/usr/local/include
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'alsa/asoundlib.h' file not found
#include <alsa/asoundlib.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for alsa/asoundlib.h in /usr/local/include'
+ echo 'not found'
+ test have_alsa_asoundlib_h
+ eval have_alsa_asoundlib_h=no
have_alsa_asoundlib_h=no
++ have_alsa_asoundlib_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$includedirs'
+ msg='checking for alsa/asoundlib.h'
+ test -z /opt/local/include
+ msg='checking for alsa/asoundlib.h in /opt/local/include'
+ test -z /opt/local/include
+ flags=-I/opt/local/include
+ cc_check 'checking for alsa/asoundlib.h in /opt/local/include' have_alsa_asoundlib_h -I/opt/local/include ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for alsa/asoundlib.h in /opt/local/include'
+ varname=have_alsa_asoundlib_h
+ flags='  -I/opt/local/include'
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for alsa/asoundlib.h in /opt/local/include'
+ printf 'checking for alsa/asoundlib.h in /opt/local/include:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'alsa/asoundlib.h' file not found
#include <alsa/asoundlib.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for alsa/asoundlib.h in /opt/local/include'
+ echo 'not found'
+ test have_alsa_asoundlib_h
+ eval have_alsa_asoundlib_h=no
have_alsa_asoundlib_h=no
++ have_alsa_asoundlib_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ return 1
+ use_alsa=no
+ cc_check 'checking for ESTRPIPE support' have_estrpipe
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for ESTRPIPE support'
+ varname=have_estrpipe
+ flags='  '
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for ESTRPIPE support'
+ printf 'checking for ESTRPIPE support:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:2:10: fatal error: 'alsa/asoundlib.h' file not found
#include <alsa/asoundlib.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for ESTRPIPE support'
+ echo 'not found'
+ test have_estrpipe
+ eval have_estrpipe=no
have_estrpipe=no
++ have_estrpipe=no
+ return 1
+ recheck_use alsa
+ eval 'val=$use_alsa'
val=$use_alsa
++ val=no
+ '[' '' = yes -a no '!=' yes ']'

if [ "$cygwin_build" = yes -a "$use_dsound" != no ]; then
    remember_use dsound
    check_include dsound.h
    retval1=$?
    retval2=1
    if [ $retval1 -eq 0 ]; then
        check_libs dsound "dsound dsound3d" <<EOF
#include <windows.h>
#include <dsound.h>
int main(int argc, char** argv) {
    LPDIRECTSOUND8 lp;
    HRESULT hr = DirectSoundCreate8(NULL, &lp, NULL);
    if (SUCCEEDED(hr)) IDirectSound8_Release(lp);
    return 0;
}
EOF
        retval2=$?
    fi
    use_dsound=no
    if [ $retval1 -eq 0 -a $retval2 -eq 0 ]; then
        use_dsound=$have_dsound_h
    fi
    recheck_use dsound
fi
+ '[' no = yes -a '' '!=' no ']'

if [ "$use_pulse" != no ]; then
    remember_use pulse
    check_include pulse/simple.h
    use_pulse=$have_pulse_simple_h
    recheck_use pulse
fi
+ '[' '' '!=' no ']'
+ remember_use pulse
+ eval 'remembered=$use_pulse'
remembered=$use_pulse
++ remembered=
+ check_include pulse/simple.h
+ include=pulse/simple.h
+ includedirs=' /usr/local/include /opt/local/include'
echo $include | sed -e 's@[/\.]@_@g'
++ echo pulse/simple.h
++ sed -e 's@[/\.]@_@g'
+ includename=pulse_simple_h
+ eval 'value=${have_pulse_simple_h-}'
value=${have_pulse_simple_h-}
++ value=
+ test -z ''
+ flags=
+ for dir in '""' '$includedirs'
+ msg='checking for pulse/simple.h'
+ test -z ''
+ test -z ''
+ cc_check 'checking for pulse/simple.h' have_pulse_simple_h '' ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for pulse/simple.h'
+ varname=have_pulse_simple_h
+ flags='  '
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for pulse/simple.h'
+ printf 'checking for pulse/simple.h:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'pulse/simple.h' file not found
#include <pulse/simple.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for pulse/simple.h'
+ echo 'not found'
+ test have_pulse_simple_h
+ eval have_pulse_simple_h=no
have_pulse_simple_h=no
++ have_pulse_simple_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$includedirs'
+ msg='checking for pulse/simple.h'
+ test -z /usr/local/include
+ msg='checking for pulse/simple.h in /usr/local/include'
+ test -z /usr/local/include
+ flags=-I/usr/local/include
+ cc_check 'checking for pulse/simple.h in /usr/local/include' have_pulse_simple_h -I/usr/local/include ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for pulse/simple.h in /usr/local/include'
+ varname=have_pulse_simple_h
+ flags='  -I/usr/local/include'
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for pulse/simple.h in /usr/local/include'
+ printf 'checking for pulse/simple.h in /usr/local/include:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/usr/local/include
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'pulse/simple.h' file not found
#include <pulse/simple.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for pulse/simple.h in /usr/local/include'
+ echo 'not found'
+ test have_pulse_simple_h
+ eval have_pulse_simple_h=no
have_pulse_simple_h=no
++ have_pulse_simple_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$includedirs'
+ msg='checking for pulse/simple.h'
+ test -z /opt/local/include
+ msg='checking for pulse/simple.h in /opt/local/include'
+ test -z /opt/local/include
+ flags=-I/opt/local/include
+ cc_check 'checking for pulse/simple.h in /opt/local/include' have_pulse_simple_h -I/opt/local/include ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for pulse/simple.h in /opt/local/include'
+ varname=have_pulse_simple_h
+ flags='  -I/opt/local/include'
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for pulse/simple.h in /opt/local/include'
+ printf 'checking for pulse/simple.h in /opt/local/include:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include
+ RESULT=0
+ '[' 0 -eq 0 ']'
+ test 'checking for pulse/simple.h in /opt/local/include'
+ echo ok
+ test have_pulse_simple_h
+ eval have_pulse_simple_h=yes
have_pulse_simple_h=yes
++ have_pulse_simple_h=yes
+ return 0
+ '[' 0 -eq 0 ']'
+ eval 'include_pulse_simple_h_path="/opt/local/include "'
include_pulse_simple_h_path="/opt/local/include "
++ include_pulse_simple_h_path='/opt/local/include '
+ return 0
+ use_pulse=yes
+ recheck_use pulse
+ eval 'val=$use_pulse'
val=$use_pulse
++ val=yes
+ '[' '' = yes -a yes '!=' yes ']'

if [ "$use_nas" != no ]; then
    remember_use nas
    check_include audio/audiolib.h "/usr/X11R6/include"
    retval1=$?
    retval2=1
    if [ $retval1 -eq 0 ]; then
        check_libs audio "X11 Xt m" "/usr/X11R6/lib /usr/X11/lib /usr/lib/X11" <<EOF
int main(int argc, char **argv) { return 0; }
EOF
        retval2=$?
    fi
    use_nas=no
    if [ $retval1 -eq 0 -a $retval2 -eq 0 ]; then
        if [ "$include_audio_audiolib_h_path" != " " ]; then
            append_nodupe CFLAGS "-I$include_audio_audiolib_h_path"
        fi
        use_nas=yes
    fi
    recheck_use nas
fi
+ '[' '' '!=' no ']'
+ remember_use nas
+ eval 'remembered=$use_nas'
remembered=$use_nas
++ remembered=
+ check_include audio/audiolib.h /usr/X11R6/include
+ include=audio/audiolib.h
+ includedirs='/usr/X11R6/include /usr/local/include /opt/local/include'
echo $include | sed -e 's@[/\.]@_@g'
++ echo audio/audiolib.h
++ sed -e 's@[/\.]@_@g'
+ includename=audio_audiolib_h
+ eval 'value=${have_audio_audiolib_h-}'
value=${have_audio_audiolib_h-}
++ value=
+ test -z ''
+ flags=
+ for dir in '""' '$includedirs'
+ msg='checking for audio/audiolib.h'
+ test -z ''
+ test -z ''
+ cc_check 'checking for audio/audiolib.h' have_audio_audiolib_h '' ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for audio/audiolib.h'
+ varname=have_audio_audiolib_h
+ flags='  '
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for audio/audiolib.h'
+ printf 'checking for audio/audiolib.h:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'audio/audiolib.h' file not found
#include <audio/audiolib.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for audio/audiolib.h'
+ echo 'not found'
+ test have_audio_audiolib_h
+ eval have_audio_audiolib_h=no
have_audio_audiolib_h=no
++ have_audio_audiolib_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$includedirs'
+ msg='checking for audio/audiolib.h'
+ test -z /usr/X11R6/include
+ msg='checking for audio/audiolib.h in /usr/X11R6/include'
+ test -z /usr/X11R6/include
+ flags=-I/usr/X11R6/include
+ cc_check 'checking for audio/audiolib.h in /usr/X11R6/include' have_audio_audiolib_h -I/usr/X11R6/include ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for audio/audiolib.h in /usr/X11R6/include'
+ varname=have_audio_audiolib_h
+ flags='  -I/usr/X11R6/include'
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for audio/audiolib.h in /usr/X11R6/include'
+ printf 'checking for audio/audiolib.h in /usr/X11R6/include:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/usr/X11R6/include
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'audio/audiolib.h' file not found
#include <audio/audiolib.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for audio/audiolib.h in /usr/X11R6/include'
+ echo 'not found'
+ test have_audio_audiolib_h
+ eval have_audio_audiolib_h=no
have_audio_audiolib_h=no
++ have_audio_audiolib_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$includedirs'
+ msg='checking for audio/audiolib.h'
+ test -z /usr/local/include
+ msg='checking for audio/audiolib.h in /usr/local/include'
+ test -z /usr/local/include
+ flags=-I/usr/local/include
+ cc_check 'checking for audio/audiolib.h in /usr/local/include' have_audio_audiolib_h -I/usr/local/include ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for audio/audiolib.h in /usr/local/include'
+ varname=have_audio_audiolib_h
+ flags='  -I/usr/local/include'
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for audio/audiolib.h in /usr/local/include'
+ printf 'checking for audio/audiolib.h in /usr/local/include:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/usr/local/include
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'audio/audiolib.h' file not found
#include <audio/audiolib.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for audio/audiolib.h in /usr/local/include'
+ echo 'not found'
+ test have_audio_audiolib_h
+ eval have_audio_audiolib_h=no
have_audio_audiolib_h=no
++ have_audio_audiolib_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$includedirs'
+ msg='checking for audio/audiolib.h'
+ test -z /opt/local/include
+ msg='checking for audio/audiolib.h in /opt/local/include'
+ test -z /opt/local/include
+ flags=-I/opt/local/include
+ cc_check 'checking for audio/audiolib.h in /opt/local/include' have_audio_audiolib_h -I/opt/local/include ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for audio/audiolib.h in /opt/local/include'
+ varname=have_audio_audiolib_h
+ flags='  -I/opt/local/include'
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for audio/audiolib.h in /opt/local/include'
+ printf 'checking for audio/audiolib.h in /opt/local/include:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'audio/audiolib.h' file not found
#include <audio/audiolib.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for audio/audiolib.h in /opt/local/include'
+ echo 'not found'
+ test have_audio_audiolib_h
+ eval have_audio_audiolib_h=no
have_audio_audiolib_h=no
++ have_audio_audiolib_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ return 1
+ retval1=1
+ retval2=1
+ '[' 1 -eq 0 ']'
+ use_nas=no
+ '[' 1 -eq 0 -a 1 -eq 0 ']'
+ recheck_use nas
+ eval 'val=$use_nas'
val=$use_nas
++ val=no
+ '[' '' = yes -a no '!=' yes ']'

if [ "$use_i18n" != no ]; then
    remember_use i18n
    check_include locale.h
    check_include libintl.h

    ## check for gettext

    printf "checking for gettext tools:  "
    have_xgettext=yes
    for i in xgettext msgmerge msgfmt msgen; do
        if [ "`which $i`" = "" ]; then
            test "$have_xgettext" = "yes" && echo "not ok"
            have_xgettext=no
            echo "$i is missing"
        fi
    done
    test "$have_xgettext" = "yes" && echo "ok"

    use_i18n=no
    if [ "$have_locale_h" = "yes" -a "$have_libintl_h" = "yes" ]; then
        if [ "$include_locale_h_path" != " " ]; then
            append_nodupe CFLAGS "-I$include_locale_h_path"
            EXTRA_I18NFLAGS="$EXTRA_I18NFLAGS -I$include_locale_h_path"
        fi
        if [ "$include_libintl_h_path" != " " ]; then
            append_nodupe CFLAGS "-I$include_libintl_h_path"
            EXTRA_I18NFLAGS="$EXTRA_I18NFLAGS -I$include_libintl_h_path"
        fi
        use_i18n=yes
    fi
    recheck_use i18n
fi
+ '[' '' '!=' no ']'
+ remember_use i18n
+ eval 'remembered=$use_i18n'
remembered=$use_i18n
++ remembered=
+ check_include locale.h
+ include=locale.h
+ includedirs=' /usr/local/include /opt/local/include'
echo $include | sed -e 's@[/\.]@_@g'
++ echo locale.h
++ sed -e 's@[/\.]@_@g'
+ includename=locale_h
+ eval 'value=${have_locale_h-}'
value=${have_locale_h-}
++ value=
+ test -z ''
+ flags=
+ for dir in '""' '$includedirs'
+ msg='checking for locale.h'
+ test -z ''
+ test -z ''
+ cc_check 'checking for locale.h' have_locale_h '' ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for locale.h'
+ varname=have_locale_h
+ flags='  '
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for locale.h'
+ printf 'checking for locale.h:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ RESULT=0
+ '[' 0 -eq 0 ']'
+ test 'checking for locale.h'
+ echo ok
+ test have_locale_h
+ eval have_locale_h=yes
have_locale_h=yes
++ have_locale_h=yes
+ return 0
+ '[' 0 -eq 0 ']'
+ eval 'include_locale_h_path=" "'
include_locale_h_path=" "
++ include_locale_h_path=' '
+ return 0
+ check_include libintl.h
+ include=libintl.h
+ includedirs=' /usr/local/include /opt/local/include'
echo $include | sed -e 's@[/\.]@_@g'
++ echo libintl.h
++ sed -e 's@[/\.]@_@g'
+ includename=libintl_h
+ eval 'value=${have_libintl_h-}'
value=${have_libintl_h-}
++ value=
+ test -z ''
+ flags=
+ for dir in '""' '$includedirs'
+ msg='checking for libintl.h'
+ test -z ''
+ test -z ''
+ cc_check 'checking for libintl.h' have_libintl_h '' ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for libintl.h'
+ varname=have_libintl_h
+ flags='  '
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for libintl.h'
+ printf 'checking for libintl.h:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'libintl.h' file not found
#include <libintl.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for libintl.h'
+ echo 'not found'
+ test have_libintl_h
+ eval have_libintl_h=no
have_libintl_h=no
++ have_libintl_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$includedirs'
+ msg='checking for libintl.h'
+ test -z /usr/local/include
+ msg='checking for libintl.h in /usr/local/include'
+ test -z /usr/local/include
+ flags=-I/usr/local/include
+ cc_check 'checking for libintl.h in /usr/local/include' have_libintl_h -I/usr/local/include ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for libintl.h in /usr/local/include'
+ varname=have_libintl_h
+ flags='  -I/usr/local/include'
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for libintl.h in /usr/local/include'
+ printf 'checking for libintl.h in /usr/local/include:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/usr/local/include
/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c:1:10: fatal error: 'libintl.h' file not found
#include <libintl.h>
        ^
1 error generated.
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking for libintl.h in /usr/local/include'
+ echo 'not found'
+ test have_libintl_h
+ eval have_libintl_h=no
have_libintl_h=no
++ have_libintl_h=no
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$includedirs'
+ msg='checking for libintl.h'
+ test -z /opt/local/include
+ msg='checking for libintl.h in /opt/local/include'
+ test -z /opt/local/include
+ flags=-I/opt/local/include
+ cc_check 'checking for libintl.h in /opt/local/include' have_libintl_h -I/opt/local/include ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking for libintl.h in /opt/local/include'
+ varname=have_libintl_h
+ flags='  -I/opt/local/include'
+ okmsg=ok
+ errmsg='not found'
+ test 'checking for libintl.h in /opt/local/include'
+ printf 'checking for libintl.h in /opt/local/include:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include
+ RESULT=0
+ '[' 0 -eq 0 ']'
+ test 'checking for libintl.h in /opt/local/include'
+ echo ok
+ test have_libintl_h
+ eval have_libintl_h=yes
have_libintl_h=yes
++ have_libintl_h=yes
+ return 0
+ '[' 0 -eq 0 ']'
+ eval 'include_libintl_h_path="/opt/local/include "'
include_libintl_h_path="/opt/local/include "
++ include_libintl_h_path='/opt/local/include '
+ return 0
+ printf 'checking for gettext tools:  '
+ have_xgettext=yes
+ for i in xgettext msgmerge msgfmt msgen
which $i
++ which xgettext
++ IFS_SAVE='   
'
++ IFS=:
++ PROGRAM=xgettext
++ for ELEMENT in '$PATH'
++ '[' -z /opt/local/bin ']'
++ '[' -f /opt/local/bin/xgettext ']'
++ '[' -x /opt/local/bin/xgettext ']'
++ IFS='    
'
++ echo /opt/local/bin/xgettext
++ return 0
+ '[' /opt/local/bin/xgettext = '' ']'
+ for i in xgettext msgmerge msgfmt msgen
which $i
++ which msgmerge
++ IFS_SAVE='   
'
++ IFS=:
++ PROGRAM=msgmerge
++ for ELEMENT in '$PATH'
++ '[' -z /opt/local/bin ']'
++ '[' -f /opt/local/bin/msgmerge ']'
++ '[' -x /opt/local/bin/msgmerge ']'
++ IFS='    
'
++ echo /opt/local/bin/msgmerge
++ return 0
+ '[' /opt/local/bin/msgmerge = '' ']'
+ for i in xgettext msgmerge msgfmt msgen
which $i
++ which msgfmt
++ IFS_SAVE='   
'
++ IFS=:
++ PROGRAM=msgfmt
++ for ELEMENT in '$PATH'
++ '[' -z /opt/local/bin ']'
++ '[' -f /opt/local/bin/msgfmt ']'
++ '[' -x /opt/local/bin/msgfmt ']'
++ IFS='    
'
++ echo /opt/local/bin/msgfmt
++ return 0
+ '[' /opt/local/bin/msgfmt = '' ']'
+ for i in xgettext msgmerge msgfmt msgen
which $i
++ which msgen
++ IFS_SAVE='   
'
++ IFS=:
++ PROGRAM=msgen
++ for ELEMENT in '$PATH'
++ '[' -z /opt/local/bin ']'
++ '[' -f /opt/local/bin/msgen ']'
++ '[' -x /opt/local/bin/msgen ']'
++ IFS='    
'
++ echo /opt/local/bin/msgen
++ return 0
+ '[' /opt/local/bin/msgen = '' ']'
+ test yes = yes
+ echo ok
+ use_i18n=no
+ '[' yes = yes -a yes = yes ']'
+ '[' ' ' '!=' ' ' ']'
+ '[' '/opt/local/include ' '!=' ' ' ']'
+ append_nodupe CFLAGS '-I/opt/local/include '
+ varname=CFLAGS
+ dupe=0
+ '[' -n '-I/opt/local/include ' ']'
+ eval 'flags="$CFLAGS"'
flags="$CFLAGS"
++ flags=
+ append='-I/opt/local/include '
+ '[' -n '' ']'
+ '[' 0 -eq 0 ']'
+ '[' -z '' ']'
+ eval 'CFLAGS="-I/opt/local/include "'
CFLAGS="-I/opt/local/include "
++ CFLAGS='-I/opt/local/include '
+ shift
+ '[' -n '' ']'
+ EXTRA_I18NFLAGS=' -I/opt/local/include '
+ use_i18n=yes
+ recheck_use i18n
+ eval 'val=$use_i18n'
val=$use_i18n
++ val=yes
+ '[' '' = yes -a yes '!=' yes ']'

if [ "$use_i18n" = "yes" ]; then
    check_libs c "intl" "" "" "$EXTRA_I18NFLAGS" "i18n" <<EOF
#include <libintl.h>
int main(int argc, char **argv)
{
    bindtextdomain("foo", "bar");
    return 0;
}
EOF
    if [ $? -eq 0 -a "$libc_flags" != "" ]; then
        append_nodupe LDFLAGS "$libc_flags"
    fi
fi
+ '[' yes = yes ']'
+ check_libs c intl '' '' ' -I/opt/local/include ' i18n
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cl.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cl
+ checklib=c
+ extralibs=intl
+ extralibdirs=
+ name=
+ extraflags=' -I/opt/local/include '
+ msg=i18n
+ cflags='-I/opt/local/include  '
+ eval libc_flags=
libc_flags=
++ libc_flags=
+ cat
+ cc_check 'checking if we need additional libs for i18n' '' ' -I/opt/local/include ' no yes
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking if we need additional libs for i18n'
+ varname=
+ flags='-I/opt/local/include    -I/opt/local/include '
+ okmsg=no
+ errmsg=yes
+ test 'checking if we need additional libs for i18n'
+ printf 'checking if we need additional libs for i18n:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include -I/opt/local/include
Undefined symbols for architecture x86_64:
"_libintl_bindtextdomain", referenced from:
    _main in cc-f4e70a.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking if we need additional libs for i18n'
+ echo yes
+ test ''
+ return 1
+ test 1 -eq 0
+ for extralib in '$extralibs'
+ find_lib intl ''
+ lib=intl
+ libdirs=' /usr/local/lib /opt/local/lib'
+ eval 'val="${libintl_path-}"'
val="${libintl_path-}"
++ val=
+ '[' '!' -z '' ']'
+ for dir in '""' '$libdirs'
+ msg='looking for -lintl'
+ flags=-lintl
+ test -z ''
+ test -z ''
+ cc_check 'looking for -lintl' '' -lintl ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='looking for -lintl'
+ varname=
+ flags='-I/opt/local/include   -lintl'
+ okmsg=ok
+ errmsg='not found'
+ test 'looking for -lintl'
+ printf 'looking for -lintl:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include -lintl
ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'looking for -lintl'
+ echo 'not found'
+ test ''
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$libdirs'
+ msg='looking for -lintl'
+ flags=-lintl
+ test -z /usr/local/lib
+ msg='looking for -lintl in /usr/local/lib'
+ test -z /usr/local/lib
+ flags='-lintl -L/usr/local/lib'
+ cc_check 'looking for -lintl in /usr/local/lib' '' '-lintl -L/usr/local/lib' ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='looking for -lintl in /usr/local/lib'
+ varname=
+ flags='-I/opt/local/include   -lintl -L/usr/local/lib'
+ okmsg=ok
+ errmsg='not found'
+ test 'looking for -lintl in /usr/local/lib'
+ printf 'looking for -lintl in /usr/local/lib:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include -lintl -L/usr/local/lib
ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'looking for -lintl in /usr/local/lib'
+ echo 'not found'
+ test ''
+ return 1
+ '[' 1 -eq 0 ']'
+ for dir in '""' '$libdirs'
+ msg='looking for -lintl'
+ flags=-lintl
+ test -z /opt/local/lib
+ msg='looking for -lintl in /opt/local/lib'
+ test -z /opt/local/lib
+ flags='-lintl -L/opt/local/lib'
+ cc_check 'looking for -lintl in /opt/local/lib' '' '-lintl -L/opt/local/lib' ok
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='looking for -lintl in /opt/local/lib'
+ varname=
+ flags='-I/opt/local/include   -lintl -L/opt/local/lib'
+ okmsg=ok
+ errmsg='not found'
+ test 'looking for -lintl in /opt/local/lib'
+ printf 'looking for -lintl in /opt/local/lib:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include -lintl -L/opt/local/lib
+ RESULT=0
+ '[' 0 -eq 0 ']'
+ test 'looking for -lintl in /opt/local/lib'
+ echo ok
+ test ''
+ return 0
+ '[' 0 -eq 0 ']'
+ eval 'libintl_path="/opt/local/lib "'
libintl_path="/opt/local/lib "
++ libintl_path='/opt/local/lib '
+ return 0
+ test 0 -ne 0
+ eval 'val="$libintl_path"'
val="$libintl_path"
++ val='/opt/local/lib '
+ '[' '/opt/local/lib ' '!=' ' ' ']'
+ append_nodupe extraflags '-L/opt/local/lib '
+ varname=extraflags
+ dupe=0
+ '[' -n '-L/opt/local/lib ' ']'
+ eval 'flags="$extraflags"'
flags="$extraflags"
++ flags=' -I/opt/local/include '
+ append='-L/opt/local/lib '
+ '[' -n ' -I/opt/local/include ' ']'
+ for i in '$flags'
+ test -I/opt/local/include = '-L/opt/local/lib '
+ '[' 0 -eq 0 ']'
+ '[' -z ' -I/opt/local/include ' ']'
+ eval 'extraflags=" -I/opt/local/include  -L/opt/local/lib "'
extraflags=" -I/opt/local/include  -L/opt/local/lib "
++ extraflags=' -I/opt/local/include  -L/opt/local/lib '
+ shift
+ '[' -n '' ']'
$BUILDCC -o "$OUTFILE" "$INFILE" $cflags -l$checklib $extraflags 2>&1 | wc -l
++ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include -lc -I/opt/local/include -L/opt/local/lib
++ wc -l
+ minerrs='       0'
+ for extralib in '$extralibs'
$BUILDCC -o "$OUTFILE" "$INFILE" $cflags -l$checklib -l$extralib $extraflags 2>&1 | wc -l
++ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include -lc -lintl -I/opt/local/include -L/opt/local/lib
++ wc -l
+ errs='       0'
+ '[' 0 -lt 0 ']'
+ '[' 0 -ne 0 ']'
+ eval 'libc_flags=" -I/opt/local/include  -L/opt/local/lib "'
libc_flags=" -I/opt/local/include  -L/opt/local/lib "
++ libc_flags=' -I/opt/local/include  -L/opt/local/lib '
+ return 0
+ '[' 0 -eq 0 -a ' -I/opt/local/include  -L/opt/local/lib ' '!=' '' ']'
+ append_nodupe LDFLAGS ' -I/opt/local/include  -L/opt/local/lib '
+ varname=LDFLAGS
+ dupe=0
+ '[' -n ' -I/opt/local/include  -L/opt/local/lib ' ']'
+ eval 'flags="$LDFLAGS"'
flags="$LDFLAGS"
++ flags=
+ append=' -I/opt/local/include  -L/opt/local/lib '
+ '[' -n '' ']'
+ '[' 0 -eq 0 ']'
+ '[' -z '' ']'
+ eval 'LDFLAGS=" -I/opt/local/include  -L/opt/local/lib "'
LDFLAGS=" -I/opt/local/include  -L/opt/local/lib "
++ LDFLAGS=' -I/opt/local/include  -L/opt/local/lib '
+ shift
+ '[' -n '' ']'

if [ "$build_xmmsplugin" != "no" ]; then
    ## check for pthread

    PTHREAD=
    check_include pthread.h
    if [ "$have_pthread_h" = "yes" ]; then
        cc_check "checking for Linux flavoured pthread" have_pthread "-lpthread" found no <<EOF
#include <pthread.h>
int main(int argc, char **argv)
{
    pthread_self();
    return 0;
}
EOF
        if [ $? -eq 0 ]; then
            PTHREAD="-lpthread"
        else
            cc_check "checking FreeBSD-flavoured pthread" have_pthread "-pthread" found no <<EOF
#include <pthread.h>
int main(int argc, char **argv)
{
    pthread_self();
    return 0;
}
EOF
            if [ $? -eq 0 ]; then
                PTHREAD="-pthread"
            else
                echo "no known pthread implementation found!"
            fi
        fi
    fi

    ## check for glib development files

    printf "checking for glib-dev:  "
    CONFIG=`which glib-config`
    GLIB_CFLAGS=
    if [ $? -eq 0 ]; then
        GLIB_CFLAGS=`glib-config --cflags`
        if [ $? -eq 0 ]; then
            echo "ok"
        else
            echo "error running glib-config --cflags!"
        fi
    else
        echo "glib-config not found!"
    fi

    ## check for xmms development files

    printf "checking for xmms-dev:  "
    CONFIG=`which xmms-config`
    XMMS_CFLAGS=
    if [ $? -eq 0 ]; then
        XMMS_CFLAGS=`xmms-config --cflags` 
        if [ $? -eq 0 ]; then
            XMMS_INPUT_PLUGIN_DIR=`xmms-config --input-plugin-dir`
            if [ $? -eq 0 ]; then
                echo "ok"
            else
                echo "error running xmms-config --input-plugin-dir!"
            fi
        else
        echo "error running xmms-config --cflags!"
        fi
    else
        echo "xmms-config not found!"
    fi
else
    GLIB_CFLAGS=
    XMMS_CFLAGS=
    PTHREAD=
fi
+ '[' no '!=' no ']'
+ GLIB_CFLAGS=
+ XMMS_CFLAGS=
+ PTHREAD=

## can XMMS be built?

if [ "$build_xmmsplugin" != "no" -a "$GLIB_CFLAGS" -a "$XMMS_CFLAGS" -a "XMMS_INPUT_PLUGIN_DIR" -a "$PTHREAD" ]; then
    append_nodupe CFLAGS $GLIB_CFLAGS $XMMS_CFLAGS
    EXTRA_INSTALL="$EXTRA_INSTALL install-gbsxmms.so"
    EXTRA_UNINSTALL="$EXTRA_UNINSTALL uninstall-gbsxmms.so"
    build_xmmsplugin=yes
else
    build_xmmsplugin=no
fi
+ '[' no '!=' no -a '' -a '' -a XMMS_INPUT_PLUGIN_DIR -a '' ']'
+ build_xmmsplugin=no

## check compiler features

if cc_has_flag "-Wdeclaration-after-statement"; then
    append_nodupe CFLAGS "-Wdeclaration-after-statement"
fi
+ cc_has_flag -Wdeclaration-after-statement
+ flag=-Wdeclaration-after-statement
+ cc_check 'checking if cc supports -Wdeclaration-after-statement' '' '-Wdeclaration-after-statement -Werror' yes no
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking if cc supports -Wdeclaration-after-statement'
+ varname=
+ flags='-I/opt/local/include   -I/opt/local/include  -L/opt/local/lib  -Wdeclaration-after-statement -Werror'
+ okmsg=yes
+ errmsg=no
+ test 'checking if cc supports -Wdeclaration-after-statement'
+ printf 'checking if cc supports -Wdeclaration-after-statement:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include -I/opt/local/include -L/opt/local/lib -Wdeclaration-after-statement -Werror
+ RESULT=0
+ '[' 0 -eq 0 ']'
+ test 'checking if cc supports -Wdeclaration-after-statement'
+ echo yes
+ test ''
+ return 0
+ append_nodupe CFLAGS -Wdeclaration-after-statement
+ varname=CFLAGS
+ dupe=0
+ '[' -n -Wdeclaration-after-statement ']'
+ eval 'flags="$CFLAGS"'
flags="$CFLAGS"
++ flags='-I/opt/local/include '
+ append=-Wdeclaration-after-statement
+ '[' -n '-I/opt/local/include ' ']'
+ for i in '$flags'
+ test -I/opt/local/include = -Wdeclaration-after-statement
+ '[' 0 -eq 0 ']'
+ '[' -z '-I/opt/local/include ' ']'
+ eval 'CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement"'
CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement"
++ CFLAGS='-I/opt/local/include  -Wdeclaration-after-statement'
+ shift
+ '[' -n '' ']'

if [ "$use_hardening" != "no" ]; then
    if cc_has_flag "-Wl,-z,relro"; then
        append_nodupe LDFLAGS "-Wl,-z,relro"
    fi

    if cc_has_flag "-Wl,-z,now"; then
        append_nodupe LDFLAGS "-Wl,-z,now"
    fi

    if cc_has_flag "-Wl,-pie"; then
        append_nodupe LDFLAGS "-Wl,-pie"
    elif cc_has_flag "-pie"; then
        append_nodupe LDFLAGS "-pie"
    fi

    if cc_has_flag "-fstack-protector-strong"; then
        append_nodupe CFLAGS "-fstack-protector-strong"
        append_nodupe LDFLAGS "-fstack-protector-strong"
    elif cc_has_flag "-fstack-protector"; then
        append_nodupe CFLAGS "-fstack-protector"
        append_nodupe LDFLAGS "-fstack-protector"
        append_nodupe CFLAGS "--param=ssp-buffer-size=4"
    fi
fi
+ '[' yes '!=' no ']'
+ cc_has_flag -Wl,-z,relro
+ flag=-Wl,-z,relro
+ cc_check 'checking if cc supports -Wl,-z,relro' '' '-Wl,-z,relro -Werror' yes no
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking if cc supports -Wl,-z,relro'
+ varname=
+ flags='-I/opt/local/include  -Wdeclaration-after-statement  -I/opt/local/include  -L/opt/local/lib  -Wl,-z,relro -Werror'
+ okmsg=yes
+ errmsg=no
+ test 'checking if cc supports -Wl,-z,relro'
+ printf 'checking if cc supports -Wl,-z,relro:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include -Wdeclaration-after-statement -I/opt/local/include -L/opt/local/lib -Wl,-z,relro -Werror
ld: unknown option: -z
clang: error: linker command failed with exit code 1 (use -v to see invocation)
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking if cc supports -Wl,-z,relro'
+ echo no
+ test ''
+ return 1
+ cc_has_flag -Wl,-z,now
+ flag=-Wl,-z,now
+ cc_check 'checking if cc supports -Wl,-z,now' '' '-Wl,-z,now -Werror' yes no
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking if cc supports -Wl,-z,now'
+ varname=
+ flags='-I/opt/local/include  -Wdeclaration-after-statement  -I/opt/local/include  -L/opt/local/lib  -Wl,-z,now -Werror'
+ okmsg=yes
+ errmsg=no
+ test 'checking if cc supports -Wl,-z,now'
+ printf 'checking if cc supports -Wl,-z,now:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include -Wdeclaration-after-statement -I/opt/local/include -L/opt/local/lib -Wl,-z,now -Werror
ld: unknown option: -z
clang: error: linker command failed with exit code 1 (use -v to see invocation)
+ RESULT=1
+ '[' 1 -eq 0 ']'
+ test 'checking if cc supports -Wl,-z,now'
+ echo no
+ test ''
+ return 1
+ cc_has_flag -Wl,-pie
+ flag=-Wl,-pie
+ cc_check 'checking if cc supports -Wl,-pie' '' '-Wl,-pie -Werror' yes no
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking if cc supports -Wl,-pie'
+ varname=
+ flags='-I/opt/local/include  -Wdeclaration-after-statement  -I/opt/local/include  -L/opt/local/lib  -Wl,-pie -Werror'
+ okmsg=yes
+ errmsg=no
+ test 'checking if cc supports -Wl,-pie'
+ printf 'checking if cc supports -Wl,-pie:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include -Wdeclaration-after-statement -I/opt/local/include -L/opt/local/lib -Wl,-pie -Werror
+ RESULT=0
+ '[' 0 -eq 0 ']'
+ test 'checking if cc supports -Wl,-pie'
+ echo yes
+ test ''
+ return 0
+ append_nodupe LDFLAGS -Wl,-pie
+ varname=LDFLAGS
+ dupe=0
+ '[' -n -Wl,-pie ']'
+ eval 'flags="$LDFLAGS"'
flags="$LDFLAGS"
++ flags=' -I/opt/local/include  -L/opt/local/lib '
+ append=-Wl,-pie
+ '[' -n ' -I/opt/local/include  -L/opt/local/lib ' ']'
+ for i in '$flags'
+ test -I/opt/local/include = -Wl,-pie
+ for i in '$flags'
+ test -L/opt/local/lib = -Wl,-pie
+ '[' 0 -eq 0 ']'
+ '[' -z ' -I/opt/local/include  -L/opt/local/lib ' ']'
+ eval 'LDFLAGS=" -I/opt/local/include  -L/opt/local/lib  -Wl,-pie"'
LDFLAGS=" -I/opt/local/include  -L/opt/local/lib  -Wl,-pie"
++ LDFLAGS=' -I/opt/local/include  -L/opt/local/lib  -Wl,-pie'
+ shift
+ '[' -n '' ']'
+ cc_has_flag -fstack-protector-strong
+ flag=-fstack-protector-strong
+ cc_check 'checking if cc supports -fstack-protector-strong' '' '-fstack-protector-strong -Werror' yes no
+ INFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c
+ OUTFILE=/var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc
+ name='checking if cc supports -fstack-protector-strong'
+ varname=
+ flags='-I/opt/local/include  -Wdeclaration-after-statement  -I/opt/local/include  -L/opt/local/lib  -Wl,-pie -fstack-protector-strong -Werror'
+ okmsg=yes
+ errmsg=no
+ test 'checking if cc supports -fstack-protector-strong'
+ printf 'checking if cc supports -fstack-protector-strong:  '
+ cat
+ gcc -o /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL/cc.c -I/opt/local/include -Wdeclaration-after-statement -I/opt/local/include -L/opt/local/lib -Wl,-pie -fstack-protector-strong -Werror
+ RESULT=0
+ '[' 0 -eq 0 ']'
+ test 'checking if cc supports -fstack-protector-strong'
+ echo yes
+ test ''
+ return 0
+ append_nodupe CFLAGS -fstack-protector-strong
+ varname=CFLAGS
+ dupe=0
+ '[' -n -fstack-protector-strong ']'
+ eval 'flags="$CFLAGS"'
flags="$CFLAGS"
++ flags='-I/opt/local/include  -Wdeclaration-after-statement'
+ append=-fstack-protector-strong
+ '[' -n '-I/opt/local/include  -Wdeclaration-after-statement' ']'
+ for i in '$flags'
+ test -I/opt/local/include = -fstack-protector-strong
+ for i in '$flags'
+ test -Wdeclaration-after-statement = -fstack-protector-strong
+ '[' 0 -eq 0 ']'
+ '[' -z '-I/opt/local/include  -Wdeclaration-after-statement' ']'
+ eval 'CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong"'
CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong"
++ CFLAGS='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong'
+ shift
+ '[' -n '' ']'
+ append_nodupe LDFLAGS -fstack-protector-strong
+ varname=LDFLAGS
+ dupe=0
+ '[' -n -fstack-protector-strong ']'
+ eval 'flags="$LDFLAGS"'
flags="$LDFLAGS"
++ flags=' -I/opt/local/include  -L/opt/local/lib  -Wl,-pie'
+ append=-fstack-protector-strong
+ '[' -n ' -I/opt/local/include  -L/opt/local/lib  -Wl,-pie' ']'
+ for i in '$flags'
+ test -I/opt/local/include = -fstack-protector-strong
+ for i in '$flags'
+ test -L/opt/local/lib = -fstack-protector-strong
+ for i in '$flags'
+ test -Wl,-pie = -fstack-protector-strong
+ '[' 0 -eq 0 ']'
+ '[' -z ' -I/opt/local/include  -L/opt/local/lib  -Wl,-pie' ']'
+ eval 'LDFLAGS=" -I/opt/local/include  -L/opt/local/lib  -Wl,-pie -fstack-protector-strong"'
LDFLAGS=" -I/opt/local/include  -L/opt/local/lib  -Wl,-pie -fstack-protector-strong"
++ LDFLAGS=' -I/opt/local/include  -L/opt/local/lib  -Wl,-pie -fstack-protector-strong'
+ shift
+ '[' -n '' ']'

if [ "$use_regparm" != "no" ]; then
    cc_check "checking for regparm support" use_regparm <<EOF
void __attribute__((regparm(3))) foo(void)
{
}
int main(int argc, char **argv)
{
    foo();
    return 0;
}
EOF
fi
+ '[' no '!=' no ']'

## set variables we have no test for to default values if not set

setdefault exec_prefix "$prefix"
+ setdefault exec_prefix /usr/local
+ eval 'value=$exec_prefix'
value=$exec_prefix
++ value=
+ '[' -z '' ']'
+ eval exec_prefix=/usr/local
exec_prefix=/usr/local
++ exec_prefix=/usr/local
setdefault bindir      "$exec_prefix/bin"
+ setdefault bindir /usr/local/bin
+ eval 'value=$bindir'
value=$bindir
++ value=
+ '[' -z '' ']'
+ eval bindir=/usr/local/bin
bindir=/usr/local/bin
++ bindir=/usr/local/bin
setdefault libdir      "$exec_prefix/lib"
+ setdefault libdir /usr/local/lib
+ eval 'value=$libdir'
value=$libdir
++ value=
+ '[' -z '' ']'
+ eval libdir=/usr/local/lib
libdir=/usr/local/lib
++ libdir=/usr/local/lib
setdefault mandir      "$prefix/man"
+ setdefault mandir /usr/local/man
+ eval 'value=$mandir'
value=$mandir
++ value=
+ '[' -z '' ']'
+ eval mandir=/usr/local/man
mandir=/usr/local/man
++ mandir=/usr/local/man
setdefault docdir      "$prefix/share/doc/$package"
+ setdefault docdir /usr/local/share/doc/gbsplay
+ eval 'value=$docdir'
value=$docdir
++ value=
+ '[' -z '' ']'
+ eval docdir=/usr/local/share/doc/gbsplay
docdir=/usr/local/share/doc/gbsplay
++ docdir=/usr/local/share/doc/gbsplay
setdefault localedir   "$prefix/share/locale"
+ setdefault localedir /usr/local/share/locale
+ eval 'value=$localedir'
value=$localedir
++ value=
+ '[' -z '' ']'
+ eval localedir=/usr/local/share/locale
localedir=/usr/local/share/locale
++ localedir=/usr/local/share/locale
setdefault sysconfdir  "/etc"
+ setdefault sysconfdir /etc
+ eval 'value=$sysconfdir'
value=$sysconfdir
++ value=
+ '[' -z '' ']'
+ eval sysconfdir=/etc
sysconfdir=/etc
++ sysconfdir=/etc

setdefault use_sharedlibgbs no
+ setdefault use_sharedlibgbs no
+ eval 'value=$use_sharedlibgbs'
value=$use_sharedlibgbs
++ value=
+ '[' -z '' ']'
+ eval use_sharedlibgbs=no
use_sharedlibgbs=no
++ use_sharedlibgbs=no
setdefault use_debug no
+ setdefault use_debug no
+ eval 'value=$use_debug'
value=$use_debug
++ value=
+ '[' -z '' ']'
+ eval use_debug=no
use_debug=no
++ use_debug=no

setdefault use_midi yes
+ setdefault use_midi yes
+ eval 'value=$use_midi'
value=$use_midi
++ value=
+ '[' -z '' ']'
+ eval use_midi=yes
use_midi=yes
++ use_midi=yes
setdefault use_stdout yes
+ setdefault use_stdout yes
+ eval 'value=$use_stdout'
value=$use_stdout
++ value=
+ '[' -z '' ']'
+ eval use_stdout=yes
use_stdout=yes
++ use_stdout=yes

printoptional modules build
+ printoptional modules build
+ printf 'optional modules:'
+ for i in '$OPTS'
+ eval 'val=$build_contrib'
val=$build_contrib
++ val=yes
+ '[' contrib '!=' build_contrib ']'
+ '[' yes = yes ']'
+ printf ' +contrib'
+ for i in '$OPTS'
+ eval 'val=$build_test'
val=$build_test
++ val=no
+ '[' test '!=' build_test ']'
+ '[' no = yes ']'
+ '[' no = no ']'
+ printf ' -test'
+ for i in '$OPTS'
+ eval 'val=$build_xmmsplugin'
val=$build_xmmsplugin
++ val=no
+ '[' xmmsplugin '!=' build_xmmsplugin ']'
+ '[' no = yes ']'
+ '[' no = no ']'
+ printf ' -xmmsplugin'
+ for i in '$OPTS'
+ eval 'val=$use_i18n'
val=$use_i18n
++ val=yes
+ '[' use_i18n '!=' use_i18n ']'
+ for i in '$OPTS'
+ eval 'val=$use_sharedlibgbs'
val=$use_sharedlibgbs
++ val=no
+ '[' use_sharedlibgbs '!=' use_sharedlibgbs ']'
+ for i in '$OPTS'
+ eval 'val=$use_regparm'
val=$use_regparm
++ val=no
+ '[' use_regparm '!=' use_regparm ']'
+ for i in '$OPTS'
+ eval 'val=$use_hardening'
val=$use_hardening
++ val=yes
+ '[' use_hardening '!=' use_hardening ']'
+ for i in '$OPTS'
+ eval 'val=$use_debug'
val=$use_debug
++ val=no
+ '[' use_debug '!=' use_debug ']'
+ for i in '$OPTS'
+ eval 'val=$use_stdout'
val=$use_stdout
++ val=yes
+ '[' use_stdout '!=' use_stdout ']'
+ for i in '$OPTS'
+ eval 'val=$use_devdsp'
val=$use_devdsp
++ val=no
+ '[' use_devdsp '!=' use_devdsp ']'
+ for i in '$OPTS'
+ eval 'val=$use_alsa'
val=$use_alsa
++ val=no
+ '[' use_alsa '!=' use_alsa ']'
+ for i in '$OPTS'
+ eval 'val=$use_nas'
val=$use_nas
++ val=no
+ '[' use_nas '!=' use_nas ']'
+ for i in '$OPTS'
+ eval 'val=$use_pulse'
val=$use_pulse
++ val=yes
+ '[' use_pulse '!=' use_pulse ']'
+ for i in '$OPTS'
+ eval 'val=$use_midi'
val=$use_midi
++ val=yes
+ '[' use_midi '!=' use_midi ']'
+ for i in '$OPTS'
+ eval 'val=$use_dsound'
val=$use_dsound
++ val=
+ '[' use_dsound '!=' use_dsound ']'
+ echo
printoptional features use
+ printoptional features use
+ printf 'optional features:'
+ for i in '$OPTS'
+ eval 'val=$build_contrib'
val=$build_contrib
++ val=yes
+ '[' build_contrib '!=' build_contrib ']'
+ for i in '$OPTS'
+ eval 'val=$build_test'
val=$build_test
++ val=no
+ '[' build_test '!=' build_test ']'
+ for i in '$OPTS'
+ eval 'val=$build_xmmsplugin'
val=$build_xmmsplugin
++ val=no
+ '[' build_xmmsplugin '!=' build_xmmsplugin ']'
+ for i in '$OPTS'
+ eval 'val=$use_i18n'
val=$use_i18n
++ val=yes
+ '[' i18n '!=' use_i18n ']'
+ '[' yes = yes ']'
+ printf ' +i18n'
+ for i in '$OPTS'
+ eval 'val=$use_sharedlibgbs'
val=$use_sharedlibgbs
++ val=no
+ '[' sharedlibgbs '!=' use_sharedlibgbs ']'
+ '[' no = yes ']'
+ '[' no = no ']'
+ printf ' -sharedlibgbs'
+ for i in '$OPTS'
+ eval 'val=$use_regparm'
val=$use_regparm
++ val=no
+ '[' regparm '!=' use_regparm ']'
+ '[' no = yes ']'
+ '[' no = no ']'
+ printf ' -regparm'
+ for i in '$OPTS'
+ eval 'val=$use_hardening'
val=$use_hardening
++ val=yes
+ '[' hardening '!=' use_hardening ']'
+ '[' yes = yes ']'
+ printf ' +hardening'
+ for i in '$OPTS'
+ eval 'val=$use_debug'
val=$use_debug
++ val=no
+ '[' debug '!=' use_debug ']'
+ '[' no = yes ']'
+ '[' no = no ']'
+ printf ' -debug'
+ for i in '$OPTS'
+ eval 'val=$use_stdout'
val=$use_stdout
++ val=yes
+ '[' stdout '!=' use_stdout ']'
+ '[' yes = yes ']'
+ printf ' +stdout'
+ for i in '$OPTS'
+ eval 'val=$use_devdsp'
val=$use_devdsp
++ val=no
+ '[' devdsp '!=' use_devdsp ']'
+ '[' no = yes ']'
+ '[' no = no ']'
+ printf ' -devdsp'
+ for i in '$OPTS'
+ eval 'val=$use_alsa'
val=$use_alsa
++ val=no
+ '[' alsa '!=' use_alsa ']'
+ '[' no = yes ']'
+ '[' no = no ']'
+ printf ' -alsa'
+ for i in '$OPTS'
+ eval 'val=$use_nas'
val=$use_nas
++ val=no
+ '[' nas '!=' use_nas ']'
+ '[' no = yes ']'
+ '[' no = no ']'
+ printf ' -nas'
+ for i in '$OPTS'
+ eval 'val=$use_pulse'
val=$use_pulse
++ val=yes
+ '[' pulse '!=' use_pulse ']'
+ '[' yes = yes ']'
+ printf ' +pulse'
+ for i in '$OPTS'
+ eval 'val=$use_midi'
val=$use_midi
++ val=yes
+ '[' midi '!=' use_midi ']'
+ '[' yes = yes ']'
+ printf ' +midi'
+ for i in '$OPTS'
+ eval 'val=$use_dsound'
val=$use_dsound
++ val=
+ '[' dsound '!=' use_dsound ']'
+ '[' '' = yes ']'
+ '[' '' = no ']'
+ echo

append_nodupe CFLAGS -D_FORTIFY_SOURCE=2 -Wall -fsigned-char
+ append_nodupe CFLAGS -D_FORTIFY_SOURCE=2 -Wall -fsigned-char
+ varname=CFLAGS
+ dupe=0
+ '[' -n -D_FORTIFY_SOURCE=2 ']'
+ eval 'flags="$CFLAGS"'
flags="$CFLAGS"
++ flags='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong'
+ append=-D_FORTIFY_SOURCE=2
+ '[' -n '-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong' ']'
+ for i in '$flags'
+ test -I/opt/local/include = -D_FORTIFY_SOURCE=2
+ for i in '$flags'
+ test -Wdeclaration-after-statement = -D_FORTIFY_SOURCE=2
+ for i in '$flags'
+ test -fstack-protector-strong = -D_FORTIFY_SOURCE=2
+ '[' 0 -eq 0 ']'
+ '[' -z '-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong' ']'
+ eval 'CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2"'
CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2"
++ CFLAGS='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2'
+ shift
+ '[' -n -Wall ']'
+ eval 'flags="$CFLAGS"'
flags="$CFLAGS"
++ flags='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2'
+ append=-Wall
+ '[' -n '-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2' ']'
+ for i in '$flags'
+ test -I/opt/local/include = -Wall
+ for i in '$flags'
+ test -Wdeclaration-after-statement = -Wall
+ for i in '$flags'
+ test -fstack-protector-strong = -Wall
+ for i in '$flags'
+ test -D_FORTIFY_SOURCE=2 = -Wall
+ '[' 0 -eq 0 ']'
+ '[' -z '-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2' ']'
+ eval 'CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall"'
CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall"
++ CFLAGS='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall'
+ shift
+ '[' -n -fsigned-char ']'
+ eval 'flags="$CFLAGS"'
flags="$CFLAGS"
++ flags='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall'
+ append=-fsigned-char
+ '[' -n '-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall' ']'
+ for i in '$flags'
+ test -I/opt/local/include = -fsigned-char
+ for i in '$flags'
+ test -Wdeclaration-after-statement = -fsigned-char
+ for i in '$flags'
+ test -fstack-protector-strong = -fsigned-char
+ for i in '$flags'
+ test -D_FORTIFY_SOURCE=2 = -fsigned-char
+ for i in '$flags'
+ test -Wall = -fsigned-char
+ '[' 0 -eq 0 ']'
+ '[' -z '-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall' ']'
+ eval 'CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char"'
CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char"
++ CFLAGS='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char'
+ shift
+ '[' -n '' ']'

if [ "$use_debug" = "yes" ]; then
    append_nodupe CFLAGS -g3
else
    append_nodupe CFLAGS -Os -pipe -fomit-frame-pointer
fi
+ '[' no = yes ']'
+ append_nodupe CFLAGS -Os -pipe -fomit-frame-pointer
+ varname=CFLAGS
+ dupe=0
+ '[' -n -Os ']'
+ eval 'flags="$CFLAGS"'
flags="$CFLAGS"
++ flags='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char'
+ append=-Os
+ '[' -n '-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char' ']'
+ for i in '$flags'
+ test -I/opt/local/include = -Os
+ for i in '$flags'
+ test -Wdeclaration-after-statement = -Os
+ for i in '$flags'
+ test -fstack-protector-strong = -Os
+ for i in '$flags'
+ test -D_FORTIFY_SOURCE=2 = -Os
+ for i in '$flags'
+ test -Wall = -Os
+ for i in '$flags'
+ test -fsigned-char = -Os
+ '[' 0 -eq 0 ']'
+ '[' -z '-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char' ']'
+ eval 'CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os"'
CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os"
++ CFLAGS='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os'
+ shift
+ '[' -n -pipe ']'
+ eval 'flags="$CFLAGS"'
flags="$CFLAGS"
++ flags='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os'
+ append=-pipe
+ '[' -n '-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os' ']'
+ for i in '$flags'
+ test -I/opt/local/include = -pipe
+ for i in '$flags'
+ test -Wdeclaration-after-statement = -pipe
+ for i in '$flags'
+ test -fstack-protector-strong = -pipe
+ for i in '$flags'
+ test -D_FORTIFY_SOURCE=2 = -pipe
+ for i in '$flags'
+ test -Wall = -pipe
+ for i in '$flags'
+ test -fsigned-char = -pipe
+ for i in '$flags'
+ test -Os = -pipe
+ '[' 0 -eq 0 ']'
+ '[' -z '-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os' ']'
+ eval 'CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe"'
CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe"
++ CFLAGS='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe'
+ shift
+ '[' -n -fomit-frame-pointer ']'
+ eval 'flags="$CFLAGS"'
flags="$CFLAGS"
++ flags='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe'
+ append=-fomit-frame-pointer
+ '[' -n '-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe' ']'
+ for i in '$flags'
+ test -I/opt/local/include = -fomit-frame-pointer
+ for i in '$flags'
+ test -Wdeclaration-after-statement = -fomit-frame-pointer
+ for i in '$flags'
+ test -fstack-protector-strong = -fomit-frame-pointer
+ for i in '$flags'
+ test -D_FORTIFY_SOURCE=2 = -fomit-frame-pointer
+ for i in '$flags'
+ test -Wall = -fomit-frame-pointer
+ for i in '$flags'
+ test -fsigned-char = -fomit-frame-pointer
+ for i in '$flags'
+ test -Os = -fomit-frame-pointer
+ for i in '$flags'
+ test -pipe = -fomit-frame-pointer
+ '[' 0 -eq 0 ']'
+ '[' -z '-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe' ']'
+ eval 'CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe -fomit-frame-pointer"'
CFLAGS="-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe -fomit-frame-pointer"
++ CFLAGS='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe -fomit-frame-pointer'
+ shift
+ '[' -n '' ']'

EXTRA_CFLAGS="$CFLAGS"
+ EXTRA_CFLAGS='-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe -fomit-frame-pointer'
EXTRA_LDFLAGS="$LDFLAGS"
+ EXTRA_LDFLAGS=' -I/opt/local/include  -L/opt/local/lib  -Wl,-pie -fstack-protector-strong'
echo "EXTRA_CFLAGS=$EXTRA_CFLAGS"
+ echo 'EXTRA_CFLAGS=-I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe -fomit-frame-pointer'
echo "EXTRA_LDFLAGS=$EXTRA_LDFLAGS"
+ echo 'EXTRA_LDFLAGS= -I/opt/local/include  -L/opt/local/lib  -Wl,-pie -fstack-protector-strong'

## write configuration

(
    set +u  # Allow uninitialised vars here
    while read var; do
        eval "echo \"$var := \$$var\""
    done << __EOF__
EXTRA_ALL
EXTRA_CFLAGS
EXTRA_INSTALL
EXTRA_LDFLAGS
EXTRA_SRCS
EXTRA_UNINSTALL
PTHREAD
XMMS_INPUT_PLUGIN_DIR
VERSION
prefix
exec_prefix
bindir
libdir
mandir
docdir
localedir
sysconfdir
CC
BUILDCC
HOSTCC
build_contrib
build_test
build_xmmsplugin
have_xgettext
use_i18n
use_sharedlibgbs
cygwin_build
libaudio_flags
__EOF__
    echo plugout_dsound := $use_dsound
    echo plugout_devdsp := $use_devdsp
    echo plugout_alsa := $use_alsa
    echo plugout_midi := $use_midi
    echo plugout_nas := $use_nas
    echo plugout_pulse := $use_pulse
    echo plugout_stdout := $use_stdout
) > config.mk
+ set +u
+ read var
+ eval 'echo "EXTRA_ALL := $EXTRA_ALL"'
echo "EXTRA_ALL := $EXTRA_ALL"
++ echo 'EXTRA_ALL := '
+ read var
+ eval 'echo "EXTRA_CFLAGS := $EXTRA_CFLAGS"'
echo "EXTRA_CFLAGS := $EXTRA_CFLAGS"
++ echo 'EXTRA_CFLAGS := -I/opt/local/include  -Wdeclaration-after-statement -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -Os -pipe -fomit-frame-pointer'
+ read var
+ eval 'echo "EXTRA_INSTALL := $EXTRA_INSTALL"'
echo "EXTRA_INSTALL := $EXTRA_INSTALL"
++ echo 'EXTRA_INSTALL := '
+ read var
+ eval 'echo "EXTRA_LDFLAGS := $EXTRA_LDFLAGS"'
echo "EXTRA_LDFLAGS := $EXTRA_LDFLAGS"
++ echo 'EXTRA_LDFLAGS :=  -I/opt/local/include  -L/opt/local/lib  -Wl,-pie -fstack-protector-strong'
+ read var
+ eval 'echo "EXTRA_SRCS := $EXTRA_SRCS"'
echo "EXTRA_SRCS := $EXTRA_SRCS"
++ echo 'EXTRA_SRCS := '
+ read var
+ eval 'echo "EXTRA_UNINSTALL := $EXTRA_UNINSTALL"'
echo "EXTRA_UNINSTALL := $EXTRA_UNINSTALL"
++ echo 'EXTRA_UNINSTALL := '
+ read var
+ eval 'echo "PTHREAD := $PTHREAD"'
echo "PTHREAD := $PTHREAD"
++ echo 'PTHREAD := '
+ read var
+ eval 'echo "XMMS_INPUT_PLUGIN_DIR := $XMMS_INPUT_PLUGIN_DIR"'
echo "XMMS_INPUT_PLUGIN_DIR := $XMMS_INPUT_PLUGIN_DIR"
++ echo 'XMMS_INPUT_PLUGIN_DIR := '
+ read var
+ eval 'echo "VERSION := $VERSION"'
echo "VERSION := $VERSION"
++ echo 'VERSION := 0.0.93-21-g1dc158d'
+ read var
+ eval 'echo "prefix := $prefix"'
echo "prefix := $prefix"
++ echo 'prefix := /usr/local'
+ read var
+ eval 'echo "exec_prefix := $exec_prefix"'
echo "exec_prefix := $exec_prefix"
++ echo 'exec_prefix := /usr/local'
+ read var
+ eval 'echo "bindir := $bindir"'
echo "bindir := $bindir"
++ echo 'bindir := /usr/local/bin'
+ read var
+ eval 'echo "libdir := $libdir"'
echo "libdir := $libdir"
++ echo 'libdir := /usr/local/lib'
+ read var
+ eval 'echo "mandir := $mandir"'
echo "mandir := $mandir"
++ echo 'mandir := /usr/local/man'
+ read var
+ eval 'echo "docdir := $docdir"'
echo "docdir := $docdir"
++ echo 'docdir := /usr/local/share/doc/gbsplay'
+ read var
+ eval 'echo "localedir := $localedir"'
echo "localedir := $localedir"
++ echo 'localedir := /usr/local/share/locale'
+ read var
+ eval 'echo "sysconfdir := $sysconfdir"'
echo "sysconfdir := $sysconfdir"
++ echo 'sysconfdir := /etc'
+ read var
+ eval 'echo "CC := $CC"'
echo "CC := $CC"
++ echo 'CC := gcc'
+ read var
+ eval 'echo "BUILDCC := $BUILDCC"'
echo "BUILDCC := $BUILDCC"
++ echo 'BUILDCC := gcc'
+ read var
+ eval 'echo "HOSTCC := $HOSTCC"'
echo "HOSTCC := $HOSTCC"
++ echo 'HOSTCC := gcc'
+ read var
+ eval 'echo "build_contrib := $build_contrib"'
echo "build_contrib := $build_contrib"
++ echo 'build_contrib := yes'
+ read var
+ eval 'echo "build_test := $build_test"'
echo "build_test := $build_test"
++ echo 'build_test := no'
+ read var
+ eval 'echo "build_xmmsplugin := $build_xmmsplugin"'
echo "build_xmmsplugin := $build_xmmsplugin"
++ echo 'build_xmmsplugin := no'
+ read var
+ eval 'echo "have_xgettext := $have_xgettext"'
echo "have_xgettext := $have_xgettext"
++ echo 'have_xgettext := yes'
+ read var
+ eval 'echo "use_i18n := $use_i18n"'
echo "use_i18n := $use_i18n"
++ echo 'use_i18n := yes'
+ read var
+ eval 'echo "use_sharedlibgbs := $use_sharedlibgbs"'
echo "use_sharedlibgbs := $use_sharedlibgbs"
++ echo 'use_sharedlibgbs := no'
+ read var
+ eval 'echo "cygwin_build := $cygwin_build"'
echo "cygwin_build := $cygwin_build"
++ echo 'cygwin_build := no'
+ read var
+ eval 'echo "libaudio_flags := $libaudio_flags"'
echo "libaudio_flags := $libaudio_flags"
++ echo 'libaudio_flags := '
+ read var
+ echo plugout_dsound :=
+ echo plugout_devdsp := no
+ echo plugout_alsa := no
+ echo plugout_midi := yes
+ echo plugout_nas := no
+ echo plugout_pulse := yes
+ echo plugout_stdout := yes

(
    set +u  # Allow uninitialised vars here
    echo "#ifndef _CONFIG_H_"
    echo "#define GBS_VERSION \"$VERSION\""
    echo "#define LOCALE_PREFIX \"$localedir\""
    echo "#define SYSCONF_PREFIX \"$sysconfdir\""
    plugout_x DSOUND
    plugout_x DEVDSP
    plugout_x ALSA
    plugout_x MIDI
    plugout_x NAS
    plugout_x PULSE
    plugout_x STDOUT
    use_x I18N
    use_x REGPARM
    have_x ESTRPIPE
    echo "#endif"
) > config.h
+ set +u
+ echo '#ifndef _CONFIG_H_'
+ echo '#define GBS_VERSION "0.0.93-21-g1dc158d"'
+ echo '#define LOCALE_PREFIX "/usr/local/share/locale"'
+ echo '#define SYSCONF_PREFIX "/etc"'
+ plugout_x DSOUND
echo $1 | tr A-Z a-z
++ echo DSOUND
++ tr A-Z a-z
+ localvar=use_dsound
+ eval 'result=$use_dsound'
result=$use_dsound
++ result=
+ '[' '' = yes ']'
+ echo '/* #undef PLUGOUT_DSOUND */'
+ plugout_x DEVDSP
echo $1 | tr A-Z a-z
++ echo DEVDSP
++ tr A-Z a-z
+ localvar=use_devdsp
+ eval 'result=$use_devdsp'
result=$use_devdsp
++ result=no
+ '[' no = yes ']'
+ echo '/* #undef PLUGOUT_DEVDSP */'
+ plugout_x ALSA
echo $1 | tr A-Z a-z
++ echo ALSA
++ tr A-Z a-z
+ localvar=use_alsa
+ eval 'result=$use_alsa'
result=$use_alsa
++ result=no
+ '[' no = yes ']'
+ echo '/* #undef PLUGOUT_ALSA */'
+ plugout_x MIDI
echo $1 | tr A-Z a-z
++ echo MIDI
++ tr A-Z a-z
+ localvar=use_midi
+ eval 'result=$use_midi'
result=$use_midi
++ result=yes
+ '[' yes = yes ']'
+ echo '#define PLUGOUT_MIDI 1'
+ plugout_x NAS
echo $1 | tr A-Z a-z
++ echo NAS
++ tr A-Z a-z
+ localvar=use_nas
+ eval 'result=$use_nas'
result=$use_nas
++ result=no
+ '[' no = yes ']'
+ echo '/* #undef PLUGOUT_NAS */'
+ plugout_x PULSE
echo $1 | tr A-Z a-z
++ echo PULSE
++ tr A-Z a-z
+ localvar=use_pulse
+ eval 'result=$use_pulse'
result=$use_pulse
++ result=yes
+ '[' yes = yes ']'
+ echo '#define PLUGOUT_PULSE 1'
+ plugout_x STDOUT
echo $1 | tr A-Z a-z
++ echo STDOUT
++ tr A-Z a-z
+ localvar=use_stdout
+ eval 'result=$use_stdout'
result=$use_stdout
++ result=yes
+ '[' yes = yes ']'
+ echo '#define PLUGOUT_STDOUT 1'
+ use_x I18N
echo $1 | tr A-Z a-z
++ echo I18N
++ tr A-Z a-z
+ localvar=use_i18n
+ eval 'result=$use_i18n'
result=$use_i18n
++ result=yes
+ '[' yes = yes ']'
+ echo '#define USE_I18N 1'
+ use_x REGPARM
echo $1 | tr A-Z a-z
++ echo REGPARM
++ tr A-Z a-z
+ localvar=use_regparm
+ eval 'result=$use_regparm'
result=$use_regparm
++ result=no
+ '[' no = yes ']'
+ echo '/* #undef USE_REGPARM */'
+ have_x ESTRPIPE
echo $1 | tr A-Z a-z
++ echo ESTRPIPE
++ tr A-Z a-z
+ localvar=have_estrpipe
+ eval 'result=$have_estrpipe'
result=$have_estrpipe
++ result=no
+ '[' no = yes ']'
+ echo '/* #undef HAVE_ESTRPIPE */'
+ echo '#endif'

(
    echo "s/%%%VERSION%%%/$VERSION/g"
) > config.sed
+ echo s/%%%VERSION%%%/0.0.93-21-g1dc158d/g

## end

rm -rf "$TEMPDIR"
+ rm -rf /var/folders/vq/xvw0j34j2_s5_cwx5902drjw0000gn/T//configure.j8U48NdKIL
test -s $ERRORLOG || rm $ERRORLOG
+ test -s config.err
exit_trap
+ exit_trap
+ EXIT_CODE=0
+ test 0 -ne 0
+ exit 0

from gbsplay.

ranma avatar ranma commented on September 26, 2024

Whats the actual build failure output? Looks like bindtextdomain() is available without -lintl, so it must be one of the other functions used.

from gbsplay.

ranma avatar ranma commented on September 26, 2024

Looks like github triggered on the commit text and autoclosed it despite the "may". :)

from gbsplay.

y avatar y commented on September 26, 2024

The build failure output:

gcc -o gbsplay gbsplay.o util.o plugout.o plugout_stdout.o plugout_midi.o plugout_pulse.o libgbs.a -I/opt/local/include  -L/opt/local/lib  -Wl,-pie -fstack-protector-strong -lm  -lpulse-simple -lpulse -lm
Undefined symbols for architecture x86_64:
"_libintl_bindtextdomain", referenced from:
    _main in gbsplay.o
"_libintl_gettext", referenced from:
    _exit_handler in gbsplay.o
    _main in gbsplay.o
    _usage in gbsplay.o
    _printinfo in gbsplay.o
    _plugout_list_plugins in plugout.o
    _err_expect in libgbs.a(cfgparser.o)
    _cfg_parse in libgbs.a(cfgparser.o)
    ...
"_libintl_setlocale", referenced from:
    _main in gbsplay.o
"_libintl_textdomain", referenced from:
    _main in gbsplay.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocat

from gbsplay.

ranma avatar ranma commented on September 26, 2024

Hmm, I don't see why it works without -lintl during the configure test then. Maybe llvm is too smart and optimizes away the calls?

from gbsplay.

mmitch avatar mmitch commented on September 26, 2024

We have another fix regarding -lintl in commit 8fb23ca because we ran into problems in the Windows builds, too.
-lintl was activated as soon as the header files were found, even if the actual compile failed (we did a compile check to look for additional linker flags, but a failing compile did not deactivate the i18n flags).
Now a failing compile check during configure removes -lintl completely.

In your case, this should automatically disable i18n and make the build pass.
Running configure --disable-i18n should have already been a workaround.

from gbsplay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.