~ubuntu-branches/ubuntu/lucid/mpg123/lucid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2009-12-21 00:11:29 UTC
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20091221001129-gsbnzbenceqv4pjt
Tags: upstream-1.10.0
ImportĀ upstreamĀ versionĀ 1.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.64 for mpg123 1.9.1.
 
3
# Generated by GNU Autoconf 2.65 for mpg123 1.10.0.
4
4
#
5
5
# Report bugs to <mpg123-devel@lists.sourceforge.net>.
6
6
#
 
7
#
7
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9
 
# Foundation, Inc.
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 
10
# Inc.
 
11
#
10
12
#
11
13
# This configure script is free software; the Free Software Foundation
12
14
# gives unlimited permission to copy, distribute and modify it.
676
678
 
677
679
 
678
680
 
679
 
exec 7<&0 </dev/null 6>&1
 
681
test -n "$DJDIR" || exec 7<&0 </dev/null
 
682
exec 6>&1
680
683
 
681
684
# Name of the host.
682
685
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
698
701
# Identity of this package.
699
702
PACKAGE_NAME='mpg123'
700
703
PACKAGE_TARNAME='mpg123'
701
 
PACKAGE_VERSION='1.9.1'
702
 
PACKAGE_STRING='mpg123 1.9.1'
 
704
PACKAGE_VERSION='1.10.0'
 
705
PACKAGE_STRING='mpg123 1.10.0'
703
706
PACKAGE_BUGREPORT='mpg123-devel@lists.sourceforge.net'
704
707
PACKAGE_URL=''
705
708
 
741
744
# include <unistd.h>
742
745
#endif"
743
746
 
 
747
ac_header_list=
744
748
ac_subst_vars='am__EXEEXT_FALSE
745
749
am__EXEEXT_TRUE
746
750
LTLIBOBJS
747
751
LIBOBJS
 
752
WIN32_CODES_FALSE
 
753
WIN32_CODES_TRUE
748
754
OUTPUT_LDFLAGS
749
755
OUTPUT_LIBS
750
756
OUTPUT_CFLAGS
864
870
LARGEFILE_SWITCH
865
871
LARGEFILE_SUFFIX
866
872
LARGEFILE_BITS
 
873
EXEC_LT_LDFLAGS
867
874
LT_LDFLAGS
868
875
MODULE_OBJ
869
876
HAVE_MODULES_FALSE
1021
1028
with_optimization
1022
1029
with_seektable
1023
1030
enable_largefile
 
1031
enable_feature_report
1024
1032
'
1025
1033
      ac_precious_vars='build_alias
1026
1034
host_alias
1583
1591
  # Omit some internal or obsolete options to make the list less imposing.
1584
1592
  # This message is too long to be a string in the A/UX 3.1 sh.
1585
1593
  cat <<_ACEOF
1586
 
\`configure' configures mpg123 1.9.1 to adapt to many kinds of systems.
 
1594
\`configure' configures mpg123 1.10.0 to adapt to many kinds of systems.
1587
1595
 
1588
1596
Usage: $0 [OPTION]... [VAR=VALUE]...
1589
1597
 
1653
1661
 
1654
1662
if test -n "$ac_init_help"; then
1655
1663
  case $ac_init_help in
1656
 
     short | recursive ) echo "Configuration of mpg123 1.9.1:";;
 
1664
     short | recursive ) echo "Configuration of mpg123 1.10.0:";;
1657
1665
   esac
1658
1666
  cat <<\_ACEOF
1659
1667
 
1693
1701
  --disable-layer2=no/yes no layer II decoding
1694
1702
  --disable-layer3=no/yes no layer III decoding
1695
1703
  --disable-largefile     omit support for large files
 
1704
  --disable-feature_report Disable feature report function
1696
1705
 
1697
1706
Optional Packages:
1698
1707
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1765
1774
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1766
1775
              nonstandard directory <lib dir>
1767
1776
  LIBS        libraries to pass to the linker, e.g. -l<library>
1768
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1777
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1769
1778
              you have headers in a nonstandard directory <include dir>
1770
1779
  CCAS        assembler compiler command (defaults to CC)
1771
1780
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1847
1856
test -n "$ac_init_help" && exit $ac_status
1848
1857
if $ac_init_version; then
1849
1858
  cat <<\_ACEOF
1850
 
mpg123 configure 1.9.1
1851
 
generated by GNU Autoconf 2.64
 
1859
mpg123 configure 1.10.0
 
1860
generated by GNU Autoconf 2.65
1852
1861
 
1853
1862
Copyright (C) 2009 Free Software Foundation, Inc.
1854
1863
This configure script is free software; the Free Software Foundation
1895
1904
        ac_retval=1
1896
1905
fi
1897
1906
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898
 
  return $ac_retval
 
1907
  as_fn_set_status $ac_retval
1899
1908
 
1900
1909
} # ac_fn_c_try_compile
1901
1910
 
1932
1941
    ac_retval=1
1933
1942
fi
1934
1943
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935
 
  return $ac_retval
 
1944
  as_fn_set_status $ac_retval
1936
1945
 
1937
1946
} # ac_fn_c_try_cpp
1938
1947
 
1978
1987
  # left behind by Apple's compiler.  We do this before executing the actions.
1979
1988
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980
1989
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981
 
  return $ac_retval
 
1990
  as_fn_set_status $ac_retval
1982
1991
 
1983
1992
} # ac_fn_c_try_link
1984
1993
 
2113
2122
fi
2114
2123
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2115
2124
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116
 
  return $ac_retval
 
2125
  as_fn_set_status $ac_retval
2117
2126
 
2118
2127
} # ac_fn_c_try_run
2119
2128
 
2443
2452
 
2444
2453
  fi
2445
2454
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446
 
  return $ac_retval
 
2455
  as_fn_set_status $ac_retval
2447
2456
 
2448
2457
} # ac_fn_c_compute_int
2449
2458
cat >config.log <<_ACEOF
2450
2459
This file contains any messages produced by compilers while
2451
2460
running configure, to aid debugging if configure makes a mistake.
2452
2461
 
2453
 
It was created by mpg123 $as_me 1.9.1, which was
2454
 
generated by GNU Autoconf 2.64.  Invocation command line was
 
2462
It was created by mpg123 $as_me 1.10.0, which was
 
2463
generated by GNU Autoconf 2.65.  Invocation command line was
2455
2464
 
2456
2465
  $ $0 $@
2457
2466
 
2704
2713
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2705
2714
do
2706
2715
  test "x$ac_site_file" = xNONE && continue
2707
 
  if test -r "$ac_site_file"; then
 
2716
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2708
2717
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2709
2718
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2710
2719
    sed 's/^/| /' "$ac_site_file" >&5
2713
2722
done
2714
2723
 
2715
2724
if test -r "$cache_file"; then
2716
 
  # Some versions of bash will fail to source /dev/null (special
2717
 
  # files actually), so we avoid doing that.
2718
 
  if test -f "$cache_file"; then
 
2725
  # Some versions of bash will fail to source /dev/null (special files
 
2726
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2727
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2719
2728
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2720
2729
$as_echo "$as_me: loading cache $cache_file" >&6;}
2721
2730
    case $cache_file in
2729
2738
  >$cache_file
2730
2739
fi
2731
2740
 
 
2741
as_fn_append ac_header_list " stdlib.h"
 
2742
as_fn_append ac_header_list " unistd.h"
 
2743
as_fn_append ac_header_list " sys/param.h"
2732
2744
# Check that the precious variables saved in the cache have kept the same
2733
2745
# value.
2734
2746
ac_cache_corrupted=false
2797
2809
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
2810
 
2799
2811
 
2800
 
LIBMPG123_VERSION=20:2:20
 
2812
LIBMPG123_VERSION=22:1:22
2801
2813
 
2802
2814
 
2803
2815
 
3212
3224
 
3213
3225
fi
3214
3226
 
 
3227
  test -d ./--version && rmdir ./--version
3215
3228
  if test "${ac_cv_path_mkdir+set}" = set; then
3216
3229
    MKDIR_P="$ac_cv_path_mkdir -p"
3217
3230
  else
3219
3232
    # value for MKDIR_P within a source directory, because that will
3220
3233
    # break other packages using the cache if that directory is
3221
3234
    # removed, or if the value is a relative name.
3222
 
    test -d ./--version && rmdir ./--version
3223
3235
    MKDIR_P="$ac_install_sh -d"
3224
3236
  fi
3225
3237
fi
3336
3348
 
3337
3349
# Define the identity of the package.
3338
3350
 PACKAGE='mpg123'
3339
 
 VERSION='1.9.1'
 
3351
 VERSION='1.10.0'
3340
3352
 
3341
3353
 
3342
3354
cat >>confdefs.h <<_ACEOF
3401
3413
 
3402
3414
 
3403
3415
LT_LDFLAGS=-export-dynamic
 
3416
EXEC_LT_LDFLAGS=
3404
3417
be_static=no
3405
3418
all_static=no
3406
3419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are up to something totally static with LDFLAGS/CFLAGS" >&5
3421
3434
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3422
3435
$as_echo "yes" >&6; }
3423
3436
        LT_LDFLAGS=-all-static
 
3437
        EXEC_LT_LDFLAGS="$LT_LDFLAGS"
3424
3438
else
3425
3439
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426
3440
$as_echo "no" >&6; }
3814
3828
... rest of stderr output deleted ...
3815
3829
         10q' conftest.err >conftest.er1
3816
3830
    cat conftest.er1 >&5
3817
 
    rm -f conftest.er1 conftest.err
3818
3831
  fi
 
3832
  rm -f conftest.er1 conftest.err
3819
3833
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820
3834
  test $ac_status = 0; }
3821
3835
done
3822
3836
 
3823
3837
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824
3838
/* end confdefs.h.  */
3825
 
#include <stdio.h>
 
3839
 
3826
3840
int
3827
3841
main ()
3828
3842
{
3829
 
FILE *f = fopen ("conftest.out", "w");
3830
 
 return ferror (f) || fclose (f) != 0;
3831
3843
 
3832
3844
  ;
3833
3845
  return 0;
3834
3846
}
3835
3847
_ACEOF
3836
3848
ac_clean_files_save=$ac_clean_files
3837
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
 
3849
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3838
3850
# Try to create an executable without -o first, disregard a.out.
3839
3851
# It will help us diagnose broken compilers, and finding out an intuition
3840
3852
# of exeext.
3841
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3842
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3854
$as_echo_n "checking whether the C compiler works... " >&6; }
3843
3855
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3844
3856
 
3845
3857
# The possible output files:
3901
3913
else
3902
3914
  ac_file=''
3903
3915
fi
 
3916
if test -z "$ac_file"; then :
 
3917
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3918
$as_echo "no" >&6; }
 
3919
$as_echo "$as_me: failed program was:" >&5
 
3920
sed 's/^/| /' conftest.$ac_ext >&5
 
3921
 
 
3922
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3923
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3924
{ as_fn_set_status 77
 
3925
as_fn_error "C compiler cannot create executables
 
3926
See \`config.log' for more details." "$LINENO" 5; }; }
 
3927
else
 
3928
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3929
$as_echo "yes" >&6; }
 
3930
fi
 
3931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3932
$as_echo_n "checking for C compiler default output file name... " >&6; }
3904
3933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3905
3934
$as_echo "$ac_file" >&6; }
3906
 
if test -z "$ac_file"; then :
3907
 
  $as_echo "$as_me: failed program was:" >&5
3908
 
sed 's/^/| /' conftest.$ac_ext >&5
3909
 
 
3910
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912
 
{ as_fn_set_status 77
3913
 
as_fn_error "C compiler cannot create executables
3914
 
See \`config.log' for more details." "$LINENO" 5; }; }
3915
 
fi
3916
3935
ac_exeext=$ac_cv_exeext
3917
3936
 
3918
 
# Check that the compiler produces executables we can run.  If not, either
3919
 
# the compiler is broken, or we cross compile.
3920
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921
 
$as_echo_n "checking whether the C compiler works... " >&6; }
3922
 
# If not cross compiling, check that we can run a simple program.
3923
 
if test "$cross_compiling" != yes; then
3924
 
  if { ac_try='./$ac_file'
3925
 
  { { case "(($ac_try" in
3926
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927
 
  *) ac_try_echo=$ac_try;;
3928
 
esac
3929
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930
 
$as_echo "$ac_try_echo"; } >&5
3931
 
  (eval "$ac_try") 2>&5
3932
 
  ac_status=$?
3933
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934
 
  test $ac_status = 0; }; }; then
3935
 
    cross_compiling=no
3936
 
  else
3937
 
    if test "$cross_compiling" = maybe; then
3938
 
        cross_compiling=yes
3939
 
    else
3940
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942
 
as_fn_error "cannot run C compiled programs.
3943
 
If you meant to cross compile, use \`--host'.
3944
 
See \`config.log' for more details." "$LINENO" 5; }
3945
 
    fi
3946
 
  fi
3947
 
fi
3948
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949
 
$as_echo "yes" >&6; }
3950
 
 
3951
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
 
3937
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3952
3938
ac_clean_files=$ac_clean_files_save
3953
 
# Check that the compiler produces executables we can run.  If not, either
3954
 
# the compiler is broken, or we cross compile.
3955
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3957
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958
 
$as_echo "$cross_compiling" >&6; }
3959
 
 
3960
3939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961
3940
$as_echo_n "checking for suffix of executables... " >&6; }
3962
3941
if { { ac_try="$ac_link"
3989
3968
as_fn_error "cannot compute suffix of executables: cannot compile and link
3990
3969
See \`config.log' for more details." "$LINENO" 5; }
3991
3970
fi
3992
 
rm -f conftest$ac_cv_exeext
 
3971
rm -f conftest conftest$ac_cv_exeext
3993
3972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994
3973
$as_echo "$ac_cv_exeext" >&6; }
3995
3974
 
3996
3975
rm -f conftest.$ac_ext
3997
3976
EXEEXT=$ac_cv_exeext
3998
3977
ac_exeext=$EXEEXT
 
3978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3979
/* end confdefs.h.  */
 
3980
#include <stdio.h>
 
3981
int
 
3982
main ()
 
3983
{
 
3984
FILE *f = fopen ("conftest.out", "w");
 
3985
 return ferror (f) || fclose (f) != 0;
 
3986
 
 
3987
  ;
 
3988
  return 0;
 
3989
}
 
3990
_ACEOF
 
3991
ac_clean_files="$ac_clean_files conftest.out"
 
3992
# Check that the compiler produces executables we can run.  If not, either
 
3993
# the compiler is broken, or we cross compile.
 
3994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3995
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3996
if test "$cross_compiling" != yes; then
 
3997
  { { ac_try="$ac_link"
 
3998
case "(($ac_try" in
 
3999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4000
  *) ac_try_echo=$ac_try;;
 
4001
esac
 
4002
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4003
$as_echo "$ac_try_echo"; } >&5
 
4004
  (eval "$ac_link") 2>&5
 
4005
  ac_status=$?
 
4006
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4007
  test $ac_status = 0; }
 
4008
  if { ac_try='./conftest$ac_cv_exeext'
 
4009
  { { case "(($ac_try" in
 
4010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4011
  *) ac_try_echo=$ac_try;;
 
4012
esac
 
4013
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4014
$as_echo "$ac_try_echo"; } >&5
 
4015
  (eval "$ac_try") 2>&5
 
4016
  ac_status=$?
 
4017
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4018
  test $ac_status = 0; }; }; then
 
4019
    cross_compiling=no
 
4020
  else
 
4021
    if test "$cross_compiling" = maybe; then
 
4022
        cross_compiling=yes
 
4023
    else
 
4024
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4025
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4026
as_fn_error "cannot run C compiled programs.
 
4027
If you meant to cross compile, use \`--host'.
 
4028
See \`config.log' for more details." "$LINENO" 5; }
 
4029
    fi
 
4030
  fi
 
4031
fi
 
4032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
4033
$as_echo "$cross_compiling" >&6; }
 
4034
 
 
4035
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
4036
ac_clean_files=$ac_clean_files_save
3999
4037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000
4038
$as_echo_n "checking for suffix of object files... " >&6; }
4001
4039
if test "${ac_cv_objext+set}" = set; then :
4840
4878
... rest of stderr output deleted ...
4841
4879
         10q' conftest.err >conftest.er1
4842
4880
    cat conftest.er1 >&5
4843
 
    rm -f conftest.er1 conftest.err
4844
4881
  fi
 
4882
  rm -f conftest.er1 conftest.err
4845
4883
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846
4884
  test $ac_status = 0; }
4847
4885
done
6208
6246
 
6209
6247
 
6210
6248
 
6211
 
macro_version='2.2.6'
6212
 
macro_revision='1.3012'
 
6249
macro_version='2.2.6b'
 
6250
macro_revision='1.3017'
6213
6251
 
6214
6252
 
6215
6253
 
6679
6717
else
6680
6718
  lt_cv_nm_interface="BSD nm"
6681
6719
  echo "int some_variable = 0;" > conftest.$ac_ext
6682
 
  (eval echo "\"\$as_me:6682: $ac_compile\"" >&5)
 
6720
  (eval echo "\"\$as_me:6720: $ac_compile\"" >&5)
6683
6721
  (eval "$ac_compile" 2>conftest.err)
6684
6722
  cat conftest.err >&5
6685
 
  (eval echo "\"\$as_me:6685: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
6723
  (eval echo "\"\$as_me:6723: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6686
6724
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6687
6725
  cat conftest.err >&5
6688
 
  (eval echo "\"\$as_me:6688: output\"" >&5)
 
6726
  (eval echo "\"\$as_me:6726: output\"" >&5)
6689
6727
  cat conftest.out >&5
6690
6728
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6691
6729
    lt_cv_nm_interface="MS dumpbin"
7887
7925
  ;;
7888
7926
*-*-irix6*)
7889
7927
  # Find out which ABI we are using.
7890
 
  echo '#line 7890 "configure"' > conftest.$ac_ext
 
7928
  echo '#line 7928 "configure"' > conftest.$ac_ext
7891
7929
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7892
7930
  (eval $ac_compile) 2>&5
7893
7931
  ac_status=$?
9087
9125
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9088
9126
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9089
9127
   -e 's:$: $lt_compiler_flag:'`
9090
 
   (eval echo "\"\$as_me:9090: $lt_compile\"" >&5)
 
9128
   (eval echo "\"\$as_me:9128: $lt_compile\"" >&5)
9091
9129
   (eval "$lt_compile" 2>conftest.err)
9092
9130
   ac_status=$?
9093
9131
   cat conftest.err >&5
9094
 
   echo "$as_me:9094: \$? = $ac_status" >&5
 
9132
   echo "$as_me:9132: \$? = $ac_status" >&5
9095
9133
   if (exit $ac_status) && test -s "$ac_outfile"; then
9096
9134
     # The compiler can only warn and ignore the option if not recognized
9097
9135
     # So say no if there are warnings other than the usual output.
9426
9464
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9427
9465
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9428
9466
   -e 's:$: $lt_compiler_flag:'`
9429
 
   (eval echo "\"\$as_me:9429: $lt_compile\"" >&5)
 
9467
   (eval echo "\"\$as_me:9467: $lt_compile\"" >&5)
9430
9468
   (eval "$lt_compile" 2>conftest.err)
9431
9469
   ac_status=$?
9432
9470
   cat conftest.err >&5
9433
 
   echo "$as_me:9433: \$? = $ac_status" >&5
 
9471
   echo "$as_me:9471: \$? = $ac_status" >&5
9434
9472
   if (exit $ac_status) && test -s "$ac_outfile"; then
9435
9473
     # The compiler can only warn and ignore the option if not recognized
9436
9474
     # So say no if there are warnings other than the usual output.
9531
9569
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9532
9570
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9533
9571
   -e 's:$: $lt_compiler_flag:'`
9534
 
   (eval echo "\"\$as_me:9534: $lt_compile\"" >&5)
 
9572
   (eval echo "\"\$as_me:9572: $lt_compile\"" >&5)
9535
9573
   (eval "$lt_compile" 2>out/conftest.err)
9536
9574
   ac_status=$?
9537
9575
   cat out/conftest.err >&5
9538
 
   echo "$as_me:9538: \$? = $ac_status" >&5
 
9576
   echo "$as_me:9576: \$? = $ac_status" >&5
9539
9577
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9540
9578
   then
9541
9579
     # The compiler can only warn and ignore the option if not recognized
9586
9624
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9587
9625
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9588
9626
   -e 's:$: $lt_compiler_flag:'`
9589
 
   (eval echo "\"\$as_me:9589: $lt_compile\"" >&5)
 
9627
   (eval echo "\"\$as_me:9627: $lt_compile\"" >&5)
9590
9628
   (eval "$lt_compile" 2>out/conftest.err)
9591
9629
   ac_status=$?
9592
9630
   cat out/conftest.err >&5
9593
 
   echo "$as_me:9593: \$? = $ac_status" >&5
 
9631
   echo "$as_me:9631: \$? = $ac_status" >&5
9594
9632
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9595
9633
   then
9596
9634
     # The compiler can only warn and ignore the option if not recognized
11953
11991
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11954
11992
  lt_status=$lt_dlunknown
11955
11993
  cat > conftest.$ac_ext <<_LT_EOF
11956
 
#line 11956 "configure"
 
11994
#line 11994 "configure"
11957
11995
#include "confdefs.h"
11958
11996
 
11959
11997
#if HAVE_DLFCN_H
12049
12087
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12050
12088
  lt_status=$lt_dlunknown
12051
12089
  cat > conftest.$ac_ext <<_LT_EOF
12052
 
#line 12052 "configure"
 
12090
#line 12090 "configure"
12053
12091
#include "confdefs.h"
12054
12092
 
12055
12093
#if HAVE_DLFCN_H
12298
12336
 
12299
12337
 
12300
12338
 
 
12339
 
12301
12340
# Check whether --enable-debug was given.
12302
12341
if test "${enable_debug+set}" = set; then :
12303
12342
  enableval=$enable_debug;
12688
12727
  *-*-linux*|*-*-kfreebsd*-gnu)
12689
12728
    cpu_type="generic_fpu"
12690
12729
  ;;
 
12730
  i386-apple-darwin10*)
 
12731
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CPU type supports x86-64" >&5
 
12732
$as_echo_n "checking if CPU type supports x86-64... " >&6; }
 
12733
    case `sysctl -n hw.optional.x86_64` in
 
12734
      1)
 
12735
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12736
$as_echo "yes" >&6; }
 
12737
        cpu_type="x86-64_all"
 
12738
      ;;
 
12739
      *)
 
12740
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12741
$as_echo "no" >&6; }
 
12742
        cpu_type="x86"
 
12743
      ;;
 
12744
    esac
 
12745
  ;;
12691
12746
  i386-apple-darwin*)
12692
12747
    cpu_type="x86"
12693
12748
  ;;
12719
12774
  *-*-dragonfly* | *-*-freebsd* | *-*-midnightbsd* | *-*-mirbsd* | *-*-netbsd* | *-*-openbsd*)
12720
12775
    cpu_type="generic_fpu"
12721
12776
  ;;
12722
 
  # Todo: Add default for x86 solaris; need to test it there, too.
 
12777
  i386-*-solaris*)
 
12778
    cpu_type=x86
 
12779
  ;;
 
12780
  x86_64-*-solaris*)
 
12781
    cpu_type=x86-64_all
 
12782
  ;;
12723
12783
  *-*-solaris*)
12724
12784
    cpu_type="generic_fpu"
12725
12785
  ;;
 
12786
  # os2-emx = OS/2 with some Unix fun; so p.ex. buffer works.
 
12787
  # Till we sorted out the assembler troubles, generic CPU is default.
 
12788
  i386-pc-os2-emx)
 
12789
    cpu_type=generic_fpu
 
12790
  ;;
 
12791
  x86_64-pc-os2-emx)
 
12792
    # We are optimistic hat the future knows OS/2 on x86-64;-)
 
12793
    cpu_type=generic_fpu
 
12794
  ;;
 
12795
  *-pc-os2-emx)
 
12796
    cpu_type="generic_fpu"
 
12797
  ;;
12726
12798
  *-dec-osf*)
12727
12799
    cpu_type="generic_fpu"
12728
12800
  ;;
12744
12816
  *-pc-cygwin*)
12745
12817
    cpu_type="generic_fpu"
12746
12818
  ;;
12747
 
  *-*-mingw32)
 
12819
  i[3-7]86-*-mingw32*)
12748
12820
    LIBS="$LIBS"
12749
12821
    buffer=disabled
12750
12822
    cpu_type="x86"
12751
12823
  ;;
 
12824
  x86_64-*-mingw32*)
 
12825
    LIBS="$LIBS"
 
12826
    buffer=disabled
 
12827
    cpu_type="x86-64"
 
12828
  ;;
12752
12829
        i386-*)
12753
12830
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
12754
12831
$as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
13603
13680
 
13604
13681
 
13605
13682
 
13606
 
for ac_header in stdlib.h unistd.h
 
13683
 
 
13684
 
 
13685
 
 
13686
  for ac_header in $ac_header_list
13607
13687
do :
13608
13688
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13609
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
13689
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
13690
"
13610
13691
eval as_val=\$$as_ac_Header
13611
13692
   if test "x$as_val" = x""yes; then :
13612
13693
  cat >>confdefs.h <<_ACEOF
13617
13698
 
13618
13699
done
13619
13700
 
 
13701
 
 
13702
 
 
13703
 
 
13704
 
 
13705
 
 
13706
 
 
13707
 
13620
13708
for ac_func in getpagesize
13621
13709
do :
13622
13710
  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13673
13761
 
13674
13762
/* This mess was copied from the GNU getpagesize.h.  */
13675
13763
#ifndef HAVE_GETPAGESIZE
13676
 
/* Assume that all systems that can run configure have sys/param.h.  */
13677
 
# ifndef HAVE_SYS_PARAM_H
13678
 
#  define HAVE_SYS_PARAM_H 1
13679
 
# endif
13680
 
 
13681
13764
# ifdef _SC_PAGESIZE
13682
13765
#  define getpagesize() sysconf(_SC_PAGESIZE)
13683
13766
# else /* no _SC_PAGESIZE */
13713
13796
{
13714
13797
  char *data, *data2, *data3;
13715
13798
  int i, pagesize;
13716
 
  int fd;
 
13799
  int fd, fd2;
13717
13800
 
13718
13801
  pagesize = getpagesize ();
13719
13802
 
13726
13809
  umask (0);
13727
13810
  fd = creat ("conftest.mmap", 0600);
13728
13811
  if (fd < 0)
13729
 
    return 1;
 
13812
    return 2;
13730
13813
  if (write (fd, data, pagesize) != pagesize)
13731
 
    return 1;
 
13814
    return 3;
13732
13815
  close (fd);
13733
13816
 
 
13817
  /* Next, check that the tail of a page is zero-filled.  File must have
 
13818
     non-zero length, otherwise we risk SIGBUS for entire page.  */
 
13819
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
 
13820
  if (fd2 < 0)
 
13821
    return 4;
 
13822
  data2 = "";
 
13823
  if (write (fd2, data2, 1) != 1)
 
13824
    return 5;
 
13825
  data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
 
13826
  if (data2 == MAP_FAILED)
 
13827
    return 6;
 
13828
  for (i = 0; i < pagesize; ++i)
 
13829
    if (*(data2 + i))
 
13830
      return 7;
 
13831
  close (fd2);
 
13832
  if (munmap (data2, pagesize))
 
13833
    return 8;
 
13834
 
13734
13835
  /* Next, try to mmap the file at a fixed address which already has
13735
13836
     something else allocated at it.  If we can, also make sure that
13736
13837
     we see the same garbage.  */
13737
13838
  fd = open ("conftest.mmap", O_RDWR);
13738
13839
  if (fd < 0)
13739
 
    return 1;
13740
 
  data2 = (char *) malloc (2 * pagesize);
13741
 
  if (!data2)
13742
 
    return 1;
13743
 
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
 
13840
    return 9;
13744
13841
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13745
13842
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
13746
 
    return 1;
 
13843
    return 10;
13747
13844
  for (i = 0; i < pagesize; ++i)
13748
13845
    if (*(data + i) != *(data2 + i))
13749
 
      return 1;
 
13846
      return 11;
13750
13847
 
13751
13848
  /* Finally, make sure that changes to the mapped area do not
13752
13849
     percolate back to the file as seen by read().  (This is a bug on
13755
13852
    *(data2 + i) = *(data2 + i) + 1;
13756
13853
  data3 = (char *) malloc (pagesize);
13757
13854
  if (!data3)
13758
 
    return 1;
 
13855
    return 12;
13759
13856
  if (read (fd, data3, pagesize) != pagesize)
13760
 
    return 1;
 
13857
    return 13;
13761
13858
  for (i = 0; i < pagesize; ++i)
13762
13859
    if (*(data + i) != *(data3 + i))
13763
 
      return 1;
 
13860
      return 14;
13764
13861
  close (fd);
13765
13862
  return 0;
13766
13863
}
13782
13879
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13783
13880
 
13784
13881
fi
13785
 
rm -f conftest.mmap
 
13882
rm -f conftest.mmap conftest.txt
13786
13883
 
13787
13884
 
13788
13885
# Check if system supports termios
13956
14053
        fi
13957
14054
fi
13958
14055
 
13959
 
for ac_func in getaddrinfo
13960
 
do :
13961
 
  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13962
 
if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
13963
 
  cat >>confdefs.h <<_ACEOF
13964
 
#define HAVE_GETADDRINFO 1
13965
 
_ACEOF
13966
 
  have_ipv6=yes
13967
 
else
13968
 
   have_ipv6=no
13969
 
fi
13970
 
done
13971
 
 
13972
 
if test x"$ipv6" = xauto; then
13973
 
        if test x"$have_ipv6" = xyes; then
13974
 
                ipv6=enabled
13975
 
        else
13976
 
                ipv6=disabled
13977
 
        fi
13978
 
fi
13979
 
if test x"$ipv6" = xenabled; then
13980
 
 
13981
 
$as_echo "#define IPV6 1" >>confdefs.h
13982
 
 
13983
 
        if test x"$have_ipv6" = xno; then
13984
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  You forced IPv6 code while I think there is no getaddrinfo() available!  " >&5
13985
 
$as_echo "$as_me: WARNING:  You forced IPv6 code while I think there is no getaddrinfo() available!  " >&2;}
13986
 
        fi
13987
 
fi
13988
 
 
13989
14056
 
13990
14057
# locale headers
13991
14058
for ac_header in locale.h langinfo.h
14027
14094
  have_network=no
14028
14095
fi
14029
14096
 
 
14097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
 
14098
$as_echo_n "checking for library containing gethostbyname... " >&6; }
 
14099
if test "${ac_cv_search_gethostbyname+set}" = set; then :
 
14100
  $as_echo_n "(cached) " >&6
 
14101
else
 
14102
  ac_func_search_save_LIBS=$LIBS
 
14103
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14104
/* end confdefs.h.  */
 
14105
 
 
14106
/* Override any GCC internal prototype to avoid an error.
 
14107
   Use char because int might match the return type of a GCC
 
14108
   builtin and then its argument prototype would still apply.  */
 
14109
#ifdef __cplusplus
 
14110
extern "C"
 
14111
#endif
 
14112
char gethostbyname ();
 
14113
int
 
14114
main ()
 
14115
{
 
14116
return gethostbyname ();
 
14117
  ;
 
14118
  return 0;
 
14119
}
 
14120
_ACEOF
 
14121
for ac_lib in '' nsl socket ws2_32 wsock32; do
 
14122
  if test -z "$ac_lib"; then
 
14123
    ac_res="none required"
 
14124
  else
 
14125
    ac_res=-l$ac_lib
 
14126
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
14127
  fi
 
14128
  if ac_fn_c_try_link "$LINENO"; then :
 
14129
  ac_cv_search_gethostbyname=$ac_res
 
14130
fi
 
14131
rm -f core conftest.err conftest.$ac_objext \
 
14132
    conftest$ac_exeext
 
14133
  if test "${ac_cv_search_gethostbyname+set}" = set; then :
 
14134
  break
 
14135
fi
 
14136
done
 
14137
if test "${ac_cv_search_gethostbyname+set}" = set; then :
 
14138
 
 
14139
else
 
14140
  ac_cv_search_gethostbyname=no
 
14141
fi
 
14142
rm conftest.$ac_ext
 
14143
LIBS=$ac_func_search_save_LIBS
 
14144
fi
 
14145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
 
14146
$as_echo "$ac_cv_search_gethostbyname" >&6; }
 
14147
ac_res=$ac_cv_search_gethostbyname
 
14148
if test "$ac_res" != no; then :
 
14149
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
14150
 
 
14151
fi
 
14152
 
 
14153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
 
14154
$as_echo_n "checking for library containing socket... " >&6; }
 
14155
if test "${ac_cv_search_socket+set}" = set; then :
 
14156
  $as_echo_n "(cached) " >&6
 
14157
else
 
14158
  ac_func_search_save_LIBS=$LIBS
 
14159
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14160
/* end confdefs.h.  */
 
14161
 
 
14162
/* Override any GCC internal prototype to avoid an error.
 
14163
   Use char because int might match the return type of a GCC
 
14164
   builtin and then its argument prototype would still apply.  */
 
14165
#ifdef __cplusplus
 
14166
extern "C"
 
14167
#endif
 
14168
char socket ();
 
14169
int
 
14170
main ()
 
14171
{
 
14172
return socket ();
 
14173
  ;
 
14174
  return 0;
 
14175
}
 
14176
_ACEOF
 
14177
for ac_lib in '' socket ws2_32 wsock32; do
 
14178
  if test -z "$ac_lib"; then
 
14179
    ac_res="none required"
 
14180
  else
 
14181
    ac_res=-l$ac_lib
 
14182
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
14183
  fi
 
14184
  if ac_fn_c_try_link "$LINENO"; then :
 
14185
  ac_cv_search_socket=$ac_res
 
14186
fi
 
14187
rm -f core conftest.err conftest.$ac_objext \
 
14188
    conftest$ac_exeext
 
14189
  if test "${ac_cv_search_socket+set}" = set; then :
 
14190
  break
 
14191
fi
 
14192
done
 
14193
if test "${ac_cv_search_socket+set}" = set; then :
 
14194
 
 
14195
else
 
14196
  ac_cv_search_socket=no
 
14197
fi
 
14198
rm conftest.$ac_ext
 
14199
LIBS=$ac_func_search_save_LIBS
 
14200
fi
 
14201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
 
14202
$as_echo "$ac_cv_search_socket" >&6; }
 
14203
ac_res=$ac_cv_search_socket
 
14204
if test "$ac_res" != no; then :
 
14205
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
14206
 
 
14207
fi
 
14208
 
 
14209
 
 
14210
 
14030
14211
if test x"$network" = xauto; then
14031
14212
        if test x"$have_network" = xyes; then
14032
14213
                network=enabled
14044
14225
        fi
14045
14226
fi
14046
14227
 
 
14228
for ac_func in getaddrinfo
 
14229
do :
 
14230
  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
 
14231
if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
 
14232
  cat >>confdefs.h <<_ACEOF
 
14233
#define HAVE_GETADDRINFO 1
 
14234
_ACEOF
 
14235
  have_ipv6=yes
 
14236
else
 
14237
   have_ipv6=no
 
14238
fi
 
14239
done
 
14240
 
 
14241
if test x"$ipv6" = xauto; then
 
14242
        if test x"$have_ipv6" = xyes; then
 
14243
                ipv6=enabled
 
14244
        else
 
14245
                ipv6=disabled
 
14246
        fi
 
14247
fi
 
14248
 
 
14249
if test x"$ipv6" = xenabled; then
 
14250
 
 
14251
$as_echo "#define IPV6 1" >>confdefs.h
 
14252
 
 
14253
        if test x"$have_ipv6" = xno; then
 
14254
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  You forced IPv6 code while I think there is no getaddrinfo() available!  " >&5
 
14255
$as_echo "$as_me: WARNING:  You forced IPv6 code while I think there is no getaddrinfo() available!  " >&2;}
 
14256
        fi
 
14257
fi
 
14258
 
14047
14259
# Substitutions for the installable mpg123.h header
14048
14260
if test "x$ac_cv_header_stdio_h" = "xyes"; then
14049
14261
        INCLUDE_STDIO_H="#include <stdio.h>"
14203
14415
 ;;
14204
14416
esac
14205
14417
 
14206
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14207
 
$as_echo_n "checking for library containing gethostbyname... " >&6; }
14208
 
if test "${ac_cv_search_gethostbyname+set}" = set; then :
14209
 
  $as_echo_n "(cached) " >&6
14210
 
else
14211
 
  ac_func_search_save_LIBS=$LIBS
14212
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213
 
/* end confdefs.h.  */
14214
 
 
14215
 
/* Override any GCC internal prototype to avoid an error.
14216
 
   Use char because int might match the return type of a GCC
14217
 
   builtin and then its argument prototype would still apply.  */
14218
 
#ifdef __cplusplus
14219
 
extern "C"
14220
 
#endif
14221
 
char gethostbyname ();
14222
 
int
14223
 
main ()
14224
 
{
14225
 
return gethostbyname ();
14226
 
  ;
14227
 
  return 0;
14228
 
}
14229
 
_ACEOF
14230
 
for ac_lib in '' nsl socket ws2_32 wsock32; do
14231
 
  if test -z "$ac_lib"; then
14232
 
    ac_res="none required"
14233
 
  else
14234
 
    ac_res=-l$ac_lib
14235
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14236
 
  fi
14237
 
  if ac_fn_c_try_link "$LINENO"; then :
14238
 
  ac_cv_search_gethostbyname=$ac_res
14239
 
fi
14240
 
rm -f core conftest.err conftest.$ac_objext \
14241
 
    conftest$ac_exeext
14242
 
  if test "${ac_cv_search_gethostbyname+set}" = set; then :
14243
 
  break
14244
 
fi
14245
 
done
14246
 
if test "${ac_cv_search_gethostbyname+set}" = set; then :
14247
 
 
14248
 
else
14249
 
  ac_cv_search_gethostbyname=no
14250
 
fi
14251
 
rm conftest.$ac_ext
14252
 
LIBS=$ac_func_search_save_LIBS
14253
 
fi
14254
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14255
 
$as_echo "$ac_cv_search_gethostbyname" >&6; }
14256
 
ac_res=$ac_cv_search_gethostbyname
14257
 
if test "$ac_res" != no; then :
14258
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14259
 
 
14260
 
fi
14261
 
 
14262
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14263
 
$as_echo_n "checking for library containing socket... " >&6; }
14264
 
if test "${ac_cv_search_socket+set}" = set; then :
14265
 
  $as_echo_n "(cached) " >&6
14266
 
else
14267
 
  ac_func_search_save_LIBS=$LIBS
14268
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269
 
/* end confdefs.h.  */
14270
 
 
14271
 
/* Override any GCC internal prototype to avoid an error.
14272
 
   Use char because int might match the return type of a GCC
14273
 
   builtin and then its argument prototype would still apply.  */
14274
 
#ifdef __cplusplus
14275
 
extern "C"
14276
 
#endif
14277
 
char socket ();
14278
 
int
14279
 
main ()
14280
 
{
14281
 
return socket ();
14282
 
  ;
14283
 
  return 0;
14284
 
}
14285
 
_ACEOF
14286
 
for ac_lib in '' socket ws2_32 wsock32; do
14287
 
  if test -z "$ac_lib"; then
14288
 
    ac_res="none required"
14289
 
  else
14290
 
    ac_res=-l$ac_lib
14291
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14292
 
  fi
14293
 
  if ac_fn_c_try_link "$LINENO"; then :
14294
 
  ac_cv_search_socket=$ac_res
14295
 
fi
14296
 
rm -f core conftest.err conftest.$ac_objext \
14297
 
    conftest$ac_exeext
14298
 
  if test "${ac_cv_search_socket+set}" = set; then :
14299
 
  break
14300
 
fi
14301
 
done
14302
 
if test "${ac_cv_search_socket+set}" = set; then :
14303
 
 
14304
 
else
14305
 
  ac_cv_search_socket=no
14306
 
fi
14307
 
rm conftest.$ac_ext
14308
 
LIBS=$ac_func_search_save_LIBS
14309
 
fi
14310
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14311
 
$as_echo "$ac_cv_search_socket" >&6; }
14312
 
ac_res=$ac_cv_search_socket
14313
 
if test "$ac_res" != no; then :
14314
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14315
 
 
14316
 
fi
14317
 
 
14318
 
 
14319
14418
s_altivec="synth_altivec dct64_altivec"
14320
14419
s_i386="dct64_i386"
14321
14420
s_i486="$s_i386 synth_i486 dct64_i486"
14467
14566
case $cpu_type in
14468
14567
  3dnow|3dnow_alone|3dnowext|3dnowext_alone|mmx|mmx_alone|sse|sse_alone|x86|x86_dither)
14469
14568
    case $host in
14470
 
      i386-apple-darwin8*)
 
14569
      i386-apple-darwin8*|*-apple-darwin10*)
14471
14570
        ADD_LDFLAGS="$ADD_LDFLAGS -Wl,-read_only_relocs,suppress"
14472
14571
      ;;
14473
14572
      i386-apple-darwin9*)
14478
14577
  ;;
14479
14578
esac
14480
14579
 
 
14580
# Check if we want feature report function.
 
14581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want feature report function" >&5
 
14582
$as_echo_n "checking if we want feature report function... " >&6; }
 
14583
feature_report=enabled
 
14584
# Check whether --enable-feature_report was given.
 
14585
if test "${enable_feature_report+set}" = set; then :
 
14586
  enableval=$enable_feature_report;
 
14587
                if test "x$enableval" = xno; then
 
14588
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14589
$as_echo "no" >&6; }
 
14590
                feature_report=disabled
 
14591
                else
 
14592
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14593
$as_echo "yes" >&6; }
 
14594
                fi
 
14595
 
 
14596
else
 
14597
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14598
$as_echo "yes" >&6; }
 
14599
fi
 
14600
 
 
14601
 
 
14602
if test "x$feature_report" = xenabled; then
 
14603
        more_sources="$more_sources feature"
 
14604
fi
 
14605
 
14481
14606
for i in $more_sources
14482
14607
do
14483
14608
  # Echo make sure every file is only once in the list.
14484
 
  echo "$DECODER_OBJ" | grep -v -w "$i\.\$(OBJEXT)" && DECODER_OBJ="$DECODER_OBJ $i.\$(OBJEXT)"
14485
 
  echo "$DECODER_LOBJ" | grep -v -w "$i\.lo" && DECODER_LOBJ="$DECODER_LOBJ $i.lo"
 
14609
  echo "$DECODER_OBJ" | grep -v -w "$i\.\$(OBJEXT)" > /dev/null && DECODER_OBJ="$DECODER_OBJ $i.\$(OBJEXT)"
 
14610
  echo "$DECODER_LOBJ" | grep -v -w "$i\.lo" > /dev/null && DECODER_LOBJ="$DECODER_LOBJ $i.lo"
14486
14611
done
14487
14612
 
14488
14613
 
14497
14622
 
14498
14623
 
14499
14624
# The full list of supported modules to check, first come, first serve.
14500
 
check_modules="alsa oss coreaudio sndio sun win32 esd jack portaudio pulse sdl nas arts openal dummy"
 
14625
check_modules="alsa oss coreaudio sndio sun win32 os2 esd jack portaudio pulse sdl nas arts openal dummy"
14501
14626
# The final list.
14502
14627
output_modules=
14503
14628
 
15409
15534
                                check_failed=yes
15410
15535
                        fi
15411
15536
                ;;
 
15537
                os2)
 
15538
                        OS2_LIBS="-los2me -lmmpm2 -lsocket"
 
15539
                        for ac_header in os2.h
 
15540
do :
 
15541
  ac_fn_c_check_header_mongrel "$LINENO" "os2.h" "ac_cv_header_os2_h" "$ac_includes_default"
 
15542
if test "x$ac_cv_header_os2_h" = x""yes; then :
 
15543
  cat >>confdefs.h <<_ACEOF
 
15544
#define HAVE_OS2_H 1
 
15545
_ACEOF
 
15546
 
 
15547
fi
 
15548
 
 
15549
done
 
15550
 
 
15551
                        # os2me.h depends on os2.h
 
15552
                        # Yes, that way of coding it is ugly.
 
15553
                        if test "x${ac_cv_header_os2_h}" = xyes
 
15554
                        then
 
15555
                                # We mimick exactly the way how the header will be used.
 
15556
                                # It seems to be picky...
 
15557
                                for ac_header in os2me.h
 
15558
do :
 
15559
  ac_fn_c_check_header_compile "$LINENO" "os2me.h" "ac_cv_header_os2me_h" "#define INCL_OS2MM
 
15560
#define INCL_DOS
 
15561
#define INCL_VIO
 
15562
#define INCL_KBD
 
15563
#include <os2.h>
 
15564
#
 
15565
"
 
15566
if test "x$ac_cv_header_os2me_h" = x""yes; then :
 
15567
  cat >>confdefs.h <<_ACEOF
 
15568
#define HAVE_OS2ME_H 1
 
15569
_ACEOF
 
15570
 
 
15571
fi
 
15572
 
 
15573
done
 
15574
 
 
15575
                        fi
 
15576
                        if test "x${ac_cv_header_os2_h}" = xyes \
 
15577
                           -a   "x${ac_cv_header_os2me_h}" = xyes
 
15578
                        then
 
15579
                                output_modules="$output_modules os2"
 
15580
                                HAVE_OS2=yes
 
15581
                        else
 
15582
                                check_failed=yes
 
15583
                        fi
 
15584
                ;;
15412
15585
# from here on only forced tests, untested code
15413
15586
                hp)
15414
15587
                        # What's the deal with that and alib?
15487
15660
done
15488
15661
 
15489
15662
                ;;
15490
 
                os2)
15491
 
                        UNSUPPORTED_AUDIO=yes
15492
 
                        OS2_LIBS="-los2me -lsocket"
15493
 
                        for ac_header in os2.h os2me.h
15494
 
do :
15495
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15496
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15497
 
eval as_val=\$$as_ac_Header
15498
 
   if test "x$as_val" = x""yes; then :
15499
 
  cat >>confdefs.h <<_ACEOF
15500
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15501
 
_ACEOF
15502
 
 
15503
 
fi
15504
 
 
15505
 
done
15506
 
 
15507
 
                        if test "x${ac_cv_header_os2_h}" = xyes \
15508
 
                           -a   "x${ac_cv_header_os2me_h}" = xyes
15509
 
                        then
15510
 
                                output_modules="$output_modules os2"
15511
 
                                HAVE_OS2=yes
15512
 
                        else
15513
 
                                check_failed=yes
15514
 
                        fi
15515
 
                ;;
15516
15663
                sgi)
15517
15664
                        UNSUPPORTED_AUDIO=yes
15518
15665
                        SGI_LIBS=-laudio
16014
16161
_ACEOF
16015
16162
 
16016
16163
 
 
16164
# Check if we want Unicode for Win32. Cygwin does not need _wopen
 
16165
win32_specific_codes=disabled
 
16166
win32_unicode=disabled
 
16167
for ac_header in windows.h
 
16168
do :
 
16169
  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
 
16170
if test "x$ac_cv_header_windows_h" = x""yes; then :
 
16171
  cat >>confdefs.h <<_ACEOF
 
16172
#define HAVE_WINDOWS_H 1
 
16173
_ACEOF
 
16174
 win32_specific_codes=enabled
 
16175
fi
 
16176
 
 
16177
done
 
16178
 
 
16179
if test "x$win32_specific_codes" = xenabled; then
 
16180
  ac_fn_c_check_func "$LINENO" "_wopen" "ac_cv_func__wopen"
 
16181
if test "x$ac_cv_func__wopen" = x""yes; then :
 
16182
  win32_unicode=enabled
 
16183
else
 
16184
  win32_unicode=disabled
 
16185
fi
 
16186
 
 
16187
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want Unicode File Open for Win32" >&5
 
16188
$as_echo_n "checking if we want Unicode File Open for Win32... " >&6; }
 
16189
  if test "x$win32_unicode" = xenabled; then
 
16190
 
 
16191
$as_echo "#define WANT_WIN32_UNICODE 1" >>confdefs.h
 
16192
 
 
16193
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16194
$as_echo "yes" >&6; }
 
16195
  else
 
16196
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16197
$as_echo "no" >&6; }
 
16198
  fi
 
16199
fi
 
16200
# Use Win32 support codes
 
16201
 if  test "x$win32_specific_codes" = xenabled ; then
 
16202
  WIN32_CODES_TRUE=
 
16203
  WIN32_CODES_FALSE='#'
 
16204
else
 
16205
  WIN32_CODES_TRUE='#'
 
16206
  WIN32_CODES_FALSE=
 
16207
fi
 
16208
 
 
16209
 
16017
16210
 
16018
16211
# Do that here to prevent the above tests usign -lltdl...
16019
16212
if test "x$modules" = xenabled; then
16020
16213
  LIBS="-lltdl $LIBS"
16021
16214
fi
16022
16215
 
16023
 
ac_config_files="$ac_config_files Makefile libmpg123.pc doc/Makefile src/Makefile src/output/Makefile src/libmpg123/Makefile src/libmpg123/mpg123.h src/libmpg123/libmpg123.sym"
 
16216
ac_config_files="$ac_config_files Makefile libmpg123.pc mpg123.spec doc/Makefile src/Makefile src/output/Makefile src/libmpg123/Makefile src/libmpg123/mpg123.h"
16024
16217
 
16025
16218
 
16026
16219
cat >confcache <<\_ACEOF
16232
16425
  as_fn_error "conditional \"HAVE_DUMMY\" was never defined.
16233
16426
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16234
16427
fi
 
16428
if test -z "${WIN32_CODES_TRUE}" && test -z "${WIN32_CODES_FALSE}"; then
 
16429
  as_fn_error "conditional \"WIN32_CODES\" was never defined.
 
16430
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16431
fi
16235
16432
 
16236
16433
: ${CONFIG_STATUS=./config.status}
16237
16434
ac_write_fail=0
16640
16837
# report actual input values of CONFIG_FILES etc. instead of their
16641
16838
# values after options handling.
16642
16839
ac_log="
16643
 
This file was extended by mpg123 $as_me 1.9.1, which was
16644
 
generated by GNU Autoconf 2.64.  Invocation command line was
 
16840
This file was extended by mpg123 $as_me 1.10.0, which was
 
16841
generated by GNU Autoconf 2.65.  Invocation command line was
16645
16842
 
16646
16843
  CONFIG_FILES    = $CONFIG_FILES
16647
16844
  CONFIG_HEADERS  = $CONFIG_HEADERS
16681
16878
 
16682
16879
  -h, --help       print this help, then exit
16683
16880
  -V, --version    print version number and configuration settings, then exit
 
16881
      --config     print configuration, then exit
16684
16882
  -q, --quiet, --silent
16685
16883
                   do not print progress messages
16686
16884
  -d, --debug      don't remove temporary files
16703
16901
 
16704
16902
_ACEOF
16705
16903
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16904
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16706
16905
ac_cs_version="\\
16707
 
mpg123 config.status 1.9.1
16708
 
configured by $0, generated by GNU Autoconf 2.64,
16709
 
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
16906
mpg123 config.status 1.10.0
 
16907
configured by $0, generated by GNU Autoconf 2.65,
 
16908
  with options \\"\$ac_cs_config\\"
16710
16909
 
16711
16910
Copyright (C) 2009 Free Software Foundation, Inc.
16712
16911
This config.status script is free software; the Free Software Foundation
16744
16943
    ac_cs_recheck=: ;;
16745
16944
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16746
16945
    $as_echo "$ac_cs_version"; exit ;;
 
16946
  --config | --confi | --conf | --con | --co | --c )
 
16947
    $as_echo "$ac_cs_config"; exit ;;
16747
16948
  --debug | --debu | --deb | --de | --d | -d )
16748
16949
    debug=: ;;
16749
16950
  --file | --fil | --fi | --f )
17086
17287
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17087
17288
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17088
17289
    "libmpg123.pc") CONFIG_FILES="$CONFIG_FILES libmpg123.pc" ;;
 
17290
    "mpg123.spec") CONFIG_FILES="$CONFIG_FILES mpg123.spec" ;;
17089
17291
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17090
17292
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17091
17293
    "src/output/Makefile") CONFIG_FILES="$CONFIG_FILES src/output/Makefile" ;;
17092
17294
    "src/libmpg123/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmpg123/Makefile" ;;
17093
17295
    "src/libmpg123/mpg123.h") CONFIG_FILES="$CONFIG_FILES src/libmpg123/mpg123.h" ;;
17094
 
    "src/libmpg123/libmpg123.sym") CONFIG_FILES="$CONFIG_FILES src/libmpg123/libmpg123.sym" ;;
17095
17296
 
17096
17297
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17097
17298
  esac
17195
17396
t delim
17196
17397
:nl
17197
17398
h
17198
 
s/\(.\{148\}\).*/\1/
 
17399
s/\(.\{148\}\)..*/\1/
17199
17400
t more1
17200
17401
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17201
17402
p
17209
17410
t nl
17210
17411
:delim
17211
17412
h
17212
 
s/\(.\{148\}\).*/\1/
 
17413
s/\(.\{148\}\)..*/\1/
17213
17414
t more2
17214
17415
s/["\\]/\\&/g; s/^/"/; s/$/"/
17215
17416
p
18490
18691
  String API .............. $string
18491
18692
  ICY parsing/conversion .. $icy
18492
18693
  Error/warning messages .. $messages
 
18694
  Win32 Unicode File Open.. $win32_unicode
 
18695
  Feature Report Function.. $feature_report
18493
18696
  Output formats (nofpu will disable all but 16 or 8 bit!):
18494
18697
  8 bit integer ........... $int8
18495
18698
  16 bit integer .......... $int16