| 19832 | | case "$MSGFMT" in |
| 19833 | | [\\/]* | ?:[\\/]*) |
| 19834 | | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 19835 | | ;; |
| 19836 | | *) |
| 19837 | | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 19838 | | for ac_dir in $PATH; do |
| 19839 | | IFS="$ac_save_IFS" |
| 19840 | | test -z "$ac_dir" && ac_dir=. |
| 19841 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19842 | | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 19843 | | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 19844 | | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
| 19845 | | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 19846 | | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 19847 | | break 2 |
| 19848 | | fi |
| 19849 | | fi |
| 19850 | | done |
| 19851 | | done |
| 19852 | | IFS="$ac_save_IFS" |
| 19853 | | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 19854 | | ;; |
| 19855 | | esac |
| 19856 | | fi |
| 19857 | | MSGFMT="$ac_cv_path_MSGFMT" |
| 19858 | | if test "$MSGFMT" != ":"; then |
| 19859 | | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 19860 | | echo "${ECHO_T}$MSGFMT" >&6; } |
| 19861 | | else |
| 19862 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 19863 | | echo "${ECHO_T}no" >&6; } |
| 19864 | | fi |
| 19865 | | |
| 19866 | | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 19867 | | set dummy gmsgfmt; ac_word=$2 |
| 19868 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19869 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 19870 | | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 19871 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19872 | | else |
| 19873 | | case $GMSGFMT in |
| 19874 | | [\\/]* | ?:[\\/]*) |
| 19875 | | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 19876 | | ;; |
| 19877 | | *) |
| 19878 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19879 | | for as_dir in $PATH |
| 19880 | | do |
| 19881 | | IFS=$as_save_IFS |
| 19882 | | test -z "$as_dir" && as_dir=. |
| 19883 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19884 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 19885 | | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 19886 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19887 | | break 2 |
| 19888 | | fi |
| 19889 | | done |
| 19890 | | done |
| 19891 | | IFS=$as_save_IFS |
| 19892 | | |
| 19893 | | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 19894 | | ;; |
| 19895 | | esac |
| 19896 | | fi |
| 19897 | | GMSGFMT=$ac_cv_path_GMSGFMT |
| 19898 | | if test -n "$GMSGFMT"; then |
| 19899 | | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 19900 | | echo "${ECHO_T}$GMSGFMT" >&6; } |
| 19901 | | else |
| 19902 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 19903 | | echo "${ECHO_T}no" >&6; } |
| 19904 | | fi |
| 19905 | | |
| 19906 | | |
| 19907 | | |
| 19908 | | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 19909 | | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
| 19910 | | *) MSGFMT_015=$MSGFMT ;; |
| 19911 | | esac |
| 19912 | | |
| 19913 | | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 19914 | | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 19915 | | *) GMSGFMT_015=$GMSGFMT ;; |
| 19916 | | esac |
| 19917 | | |
| 19918 | | |
| 19919 | | |
| 19920 | | # Prepare PATH_SEPARATOR. |
| 19921 | | # The user is always right. |
| 19922 | | if test "${PATH_SEPARATOR+set}" != set; then |
| 19923 | | echo "#! /bin/sh" >conf$$.sh |
| 19924 | | echo "exit 0" >>conf$$.sh |
| 19925 | | chmod +x conf$$.sh |
| 19926 | | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 19927 | | PATH_SEPARATOR=';' |
| 19928 | | else |
| 19929 | | PATH_SEPARATOR=: |
| 19930 | | fi |
| 19931 | | rm -f conf$$.sh |
| 19932 | | fi |
| 19933 | | |
| 19934 | | # Find out how to test for executable files. Don't use a zero-byte file, |
| 19935 | | # as systems may use methods other than mode bits to determine executability. |
| 19936 | | cat >conf$$.file <<_ASEOF |
| 19937 | | #! /bin/sh |
| 19938 | | exit 0 |
| 19939 | | _ASEOF |
| 19940 | | chmod +x conf$$.file |
| 19941 | | if test -x conf$$.file >/dev/null 2>&1; then |
| 19942 | | ac_executable_p="test -x" |
| 19943 | | else |
| 19944 | | ac_executable_p="test -f" |
| 19945 | | fi |
| 19946 | | rm -f conf$$.file |
| 19947 | | |
| 19948 | | # Extract the first word of "xgettext", so it can be a program name with args. |
| 19949 | | set dummy xgettext; ac_word=$2 |
| 19950 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19951 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 19952 | | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 19953 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19954 | | else |
| 19955 | | case "$XGETTEXT" in |
| 19956 | | [\\/]* | ?:[\\/]*) |
| 19957 | | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 19958 | | ;; |
| 19959 | | *) |
| 19960 | | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 19961 | | for ac_dir in $PATH; do |
| 19962 | | IFS="$ac_save_IFS" |
| 19963 | | test -z "$ac_dir" && ac_dir=. |
| 19964 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19965 | | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 19966 | | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 19967 | | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && |
| 19968 | | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 19969 | | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 19970 | | break 2 |
| 19971 | | fi |
| 19972 | | fi |
| 19973 | | done |
| 19974 | | done |
| 19975 | | IFS="$ac_save_IFS" |
| 19976 | | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 19977 | | ;; |
| 19978 | | esac |
| 19979 | | fi |
| 19980 | | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 19981 | | if test "$XGETTEXT" != ":"; then |
| 19982 | | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 19983 | | echo "${ECHO_T}$XGETTEXT" >&6; } |
| 19984 | | else |
| 19985 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 19986 | | echo "${ECHO_T}no" >&6; } |
| 19987 | | fi |
| 19988 | | |
| 19989 | | rm -f messages.po |
| 19990 | | |
| 19991 | | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 19992 | | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 19993 | | *) XGETTEXT_015=$XGETTEXT ;; |
| 19994 | | esac |
| 19995 | | |
| 19996 | | |
| 19997 | | |
| 19998 | | # Prepare PATH_SEPARATOR. |
| 19999 | | # The user is always right. |
| 20000 | | if test "${PATH_SEPARATOR+set}" != set; then |
| 20001 | | echo "#! /bin/sh" >conf$$.sh |
| 20002 | | echo "exit 0" >>conf$$.sh |
| 20003 | | chmod +x conf$$.sh |
| 20004 | | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20005 | | PATH_SEPARATOR=';' |
| 20006 | | else |
| 20007 | | PATH_SEPARATOR=: |
| 20008 | | fi |
| 20009 | | rm -f conf$$.sh |
| 20010 | | fi |
| 20011 | | |
| 20012 | | # Find out how to test for executable files. Don't use a zero-byte file, |
| 20013 | | # as systems may use methods other than mode bits to determine executability. |
| 20014 | | cat >conf$$.file <<_ASEOF |
| 20015 | | #! /bin/sh |
| 20016 | | exit 0 |
| 20017 | | _ASEOF |
| 20018 | | chmod +x conf$$.file |
| 20019 | | if test -x conf$$.file >/dev/null 2>&1; then |
| 20020 | | ac_executable_p="test -x" |
| 20021 | | else |
| 20022 | | ac_executable_p="test -f" |
| 20023 | | fi |
| 20024 | | rm -f conf$$.file |
| 20025 | | |
| 20026 | | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 20027 | | set dummy msgmerge; ac_word=$2 |
| 20028 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20029 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 20030 | | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 20031 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20032 | | else |
| 20033 | | case "$MSGMERGE" in |
| 20034 | | [\\/]* | ?:[\\/]*) |
| 20035 | | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 20036 | | ;; |
| 20037 | | *) |
| 20038 | | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 20039 | | for ac_dir in $PATH; do |
| 20040 | | IFS="$ac_save_IFS" |
| 20041 | | test -z "$ac_dir" && ac_dir=. |
| 20042 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20043 | | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 20044 | | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 20045 | | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then |
| 20046 | | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 20047 | | break 2 |
| 20048 | | fi |
| 20049 | | fi |
| 20050 | | done |
| 20051 | | done |
| 20052 | | IFS="$ac_save_IFS" |
| 20053 | | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 20054 | | ;; |
| 20055 | | esac |
| 20056 | | fi |
| 20057 | | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 20058 | | if test "$MSGMERGE" != ":"; then |
| 20059 | | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 20060 | | echo "${ECHO_T}$MSGMERGE" >&6; } |
| 20061 | | else |
| 20062 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 20063 | | echo "${ECHO_T}no" >&6; } |
| 20064 | | fi |
| 20065 | | |
| 20066 | | |
| 20067 | | test -n "$localedir" || localedir='${datadir}/locale' |
| 20068 | | |
| 20069 | | |
| 20070 | | ac_config_commands="$ac_config_commands po-directories" |
| 20071 | | |
| 20072 | | |
| 20073 | | |
| 20074 | | if test "X$prefix" = "XNONE"; then |
| 20075 | | acl_final_prefix="$ac_default_prefix" |
| 20076 | | else |
| 20077 | | acl_final_prefix="$prefix" |
| 20078 | | fi |
| 20079 | | if test "X$exec_prefix" = "XNONE"; then |
| 20080 | | acl_final_exec_prefix='${prefix}' |
| 20081 | | else |
| 20082 | | acl_final_exec_prefix="$exec_prefix" |
| 20083 | | fi |
| 20084 | | acl_save_prefix="$prefix" |
| 20085 | | prefix="$acl_final_prefix" |
| 20086 | | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 20087 | | prefix="$acl_save_prefix" |
| 20088 | | |
| 20089 | | |
| 20090 | | # Check whether --with-gnu-ld was given. |
| 20091 | | if test "${with_gnu_ld+set}" = set; then |
| 20092 | | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 20093 | | else |
| 20094 | | with_gnu_ld=no |
| 20095 | | fi |
| 20096 | | |
| 20097 | | # Prepare PATH_SEPARATOR. |
| 20098 | | # The user is always right. |
| 20099 | | if test "${PATH_SEPARATOR+set}" != set; then |
| 20100 | | echo "#! /bin/sh" >conf$$.sh |
| 20101 | | echo "exit 0" >>conf$$.sh |
| 20102 | | chmod +x conf$$.sh |
| 20103 | | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20104 | | PATH_SEPARATOR=';' |
| 20105 | | else |
| 20106 | | PATH_SEPARATOR=: |
| 20107 | | fi |
| 20108 | | rm -f conf$$.sh |
| 20109 | | fi |
| 20110 | | ac_prog=ld |
| 20111 | | if test "$GCC" = yes; then |
| 20112 | | # Check if gcc -print-prog-name=ld gives a path. |
| 20113 | | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 20114 | | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } |
| 20115 | | case $host in |
| 20116 | | *-*-mingw*) |
| 20117 | | # gcc leaves a trailing carriage return which upsets mingw |
| 20118 | | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 20119 | | *) |
| 20120 | | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 20121 | | esac |
| 20122 | | case $ac_prog in |
| 20123 | | # Accept absolute paths. |
| 20124 | | [\\/]* | [A-Za-z]:[\\/]*) |
| 20125 | | re_direlt='/[^/][^/]*/\.\./' |
| 20126 | | # Canonicalize the path of ld |
| 20127 | | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 20128 | | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 20129 | | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 20130 | | done |
| 20131 | | test -z "$LD" && LD="$ac_prog" |
| 20132 | | ;; |
| 20133 | | "") |
| 20134 | | # If it fails, then pretend we aren't using GCC. |
| 20135 | | ac_prog=ld |
| 20136 | | ;; |
| 20137 | | *) |
| 20138 | | # If it is relative, then search for the first ld in PATH. |
| 20139 | | with_gnu_ld=unknown |
| 20140 | | ;; |
| 20141 | | esac |
| 20142 | | elif test "$with_gnu_ld" = yes; then |
| 20143 | | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 20144 | | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
| 20145 | | else |
| 20146 | | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 20147 | | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
| 20148 | | fi |
| 20149 | | if test "${acl_cv_path_LD+set}" = set; then |
| 20150 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20151 | | else |
| 20152 | | if test -z "$LD"; then |
| 20153 | | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 20154 | | for ac_dir in $PATH; do |
| 20155 | | test -z "$ac_dir" && ac_dir=. |
| 20156 | | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 20157 | | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 20158 | | # Check to see if the program is GNU ld. I'd rather use --version, |
| 20159 | | # but apparently some GNU ld's only accept -v. |
| 20160 | | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 20161 | | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 20162 | | *GNU* | *'with BFD'*) |
| 20163 | | test "$with_gnu_ld" != no && break ;; |
| 20164 | | *) |
| 20165 | | test "$with_gnu_ld" != yes && break ;; |
| 20166 | | esac |
| 20167 | | fi |
| 20168 | | done |
| 20169 | | IFS="$ac_save_ifs" |
| 20170 | | else |
| 20171 | | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 20172 | | fi |
| 20173 | | fi |
| 20174 | | |
| 20175 | | LD="$acl_cv_path_LD" |
| 20176 | | if test -n "$LD"; then |
| 20177 | | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 20178 | | echo "${ECHO_T}$LD" >&6; } |
| 20179 | | else |
| 20180 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 20181 | | echo "${ECHO_T}no" >&6; } |
| 20182 | | fi |
| 20183 | | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 20184 | | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 20185 | | { (exit 1); exit 1; }; } |
| 20186 | | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 20187 | | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
| 20188 | | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 20189 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20190 | | else |
| 20191 | | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 20192 | | case `$LD -v 2>&1 </dev/null` in |
| 20193 | | *GNU* | *'with BFD'*) |
| 20194 | | acl_cv_prog_gnu_ld=yes ;; |
| 20195 | | *) |
| 20196 | | acl_cv_prog_gnu_ld=no ;; |
| 20197 | | esac |
| 20198 | | fi |
| 20199 | | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 20200 | | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
| 20201 | | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 20202 | | |
| 20203 | | |
| 20204 | | |
| 20205 | | |
| 20206 | | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 20207 | | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } |
| 20208 | | if test "${acl_cv_rpath+set}" = set; then |
| 20209 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20210 | | else |
| 20211 | | |
| 20212 | | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 20213 | | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 20214 | | . ./conftest.sh |
| 20215 | | rm -f ./conftest.sh |
| 20216 | | acl_cv_rpath=done |
| 20217 | | |
| 20218 | | fi |
| 20219 | | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 20220 | | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
| 20221 | | wl="$acl_cv_wl" |
| 20222 | | libext="$acl_cv_libext" |
| 20223 | | shlibext="$acl_cv_shlibext" |
| 20224 | | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 20225 | | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 20226 | | hardcode_direct="$acl_cv_hardcode_direct" |
| 20227 | | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 20228 | | # Check whether --enable-rpath was given. |
| 20229 | | if test "${enable_rpath+set}" = set; then |
| 20230 | | enableval=$enable_rpath; : |
| 20231 | | else |
| 20232 | | enable_rpath=yes |
| 20233 | | fi |
| 20234 | | |
| 20235 | | |
| 20236 | | |
| 20237 | | acl_libdirstem=lib |
| 20238 | | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
| 20239 | | if test -n "$searchpath"; then |
| 20240 | | acl_save_IFS="${IFS= }"; IFS=":" |
| 20241 | | for searchdir in $searchpath; do |
| 20242 | | if test -d "$searchdir"; then |
| 20243 | | case "$searchdir" in |
| 20244 | | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; |
| 20245 | | *) searchdir=`cd "$searchdir" && pwd` |
| 20246 | | case "$searchdir" in |
| 20247 | | */lib64 ) acl_libdirstem=lib64 ;; |
| 20248 | | esac ;; |
| 20249 | | esac |
| 20250 | | fi |
| 20251 | | done |
| 20252 | | IFS="$acl_save_IFS" |
| 20253 | | fi |
| 20254 | | |
| 20255 | | |
| 20256 | | |
| 20257 | | |
| 20258 | | |
| 20259 | | |
| 20260 | | |
| 20261 | | |
| 20262 | | use_additional=yes |
| 20263 | | |
| 20264 | | acl_save_prefix="$prefix" |
| 20265 | | prefix="$acl_final_prefix" |
| 20266 | | acl_save_exec_prefix="$exec_prefix" |
| 20267 | | exec_prefix="$acl_final_exec_prefix" |
| 20268 | | |
| 20269 | | eval additional_includedir=\"$includedir\" |
| 20270 | | eval additional_libdir=\"$libdir\" |
| 20271 | | |
| 20272 | | exec_prefix="$acl_save_exec_prefix" |
| 20273 | | prefix="$acl_save_prefix" |
| 20274 | | |
| 20275 | | |
| 20276 | | # Check whether --with-libiconv-prefix was given. |
| 20277 | | if test "${with_libiconv_prefix+set}" = set; then |
| 20278 | | withval=$with_libiconv_prefix; |
| 20279 | | if test "X$withval" = "Xno"; then |
| 20280 | | use_additional=no |
| 20281 | | else |
| 20282 | | if test "X$withval" = "X"; then |
| 20283 | | |
| 20284 | | acl_save_prefix="$prefix" |
| 20285 | | prefix="$acl_final_prefix" |
| 20286 | | acl_save_exec_prefix="$exec_prefix" |
| 20287 | | exec_prefix="$acl_final_exec_prefix" |
| 20288 | | |
| 20289 | | eval additional_includedir=\"$includedir\" |
| 20290 | | eval additional_libdir=\"$libdir\" |
| 20291 | | |
| 20292 | | exec_prefix="$acl_save_exec_prefix" |
| 20293 | | prefix="$acl_save_prefix" |
| 20294 | | |
| 20295 | | else |
| 20296 | | additional_includedir="$withval/include" |
| 20297 | | additional_libdir="$withval/$acl_libdirstem" |
| 20298 | | fi |
| 20299 | | fi |
| 20300 | | |
| 20301 | | fi |
| 20302 | | |
| 20303 | | LIBICONV= |
| 20304 | | LTLIBICONV= |
| 20305 | | INCICONV= |
| 20306 | | rpathdirs= |
| 20307 | | ltrpathdirs= |
| 20308 | | names_already_handled= |
| 20309 | | names_next_round='iconv ' |
| 20310 | | while test -n "$names_next_round"; do |
| 20311 | | names_this_round="$names_next_round" |
| 20312 | | names_next_round= |
| 20313 | | for name in $names_this_round; do |
| 20314 | | already_handled= |
| 20315 | | for n in $names_already_handled; do |
| 20316 | | if test "$n" = "$name"; then |
| 20317 | | already_handled=yes |
| 20318 | | break |
| 20319 | | fi |
| 20320 | | done |
| 20321 | | if test -z "$already_handled"; then |
| 20322 | | names_already_handled="$names_already_handled $name" |
| 20323 | | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 20324 | | eval value=\"\$HAVE_LIB$uppername\" |
| 20325 | | if test -n "$value"; then |
| 20326 | | if test "$value" = yes; then |
| 20327 | | eval value=\"\$LIB$uppername\" |
| 20328 | | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 20329 | | eval value=\"\$LTLIB$uppername\" |
| 20330 | | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 20331 | | else |
| 20332 | | : |
| 20333 | | fi |
| 20334 | | else |
| 20335 | | found_dir= |
| 20336 | | found_la= |
| 20337 | | found_so= |
| 20338 | | found_a= |
| 20339 | | if test $use_additional = yes; then |
| 20340 | | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 20341 | | found_dir="$additional_libdir" |
| 20342 | | found_so="$additional_libdir/lib$name.$shlibext" |
| 20343 | | if test -f "$additional_libdir/lib$name.la"; then |
| 20344 | | found_la="$additional_libdir/lib$name.la" |
| 20345 | | fi |
| 20346 | | else |
| 20347 | | if test -f "$additional_libdir/lib$name.$libext"; then |
| 20348 | | found_dir="$additional_libdir" |
| 20349 | | found_a="$additional_libdir/lib$name.$libext" |
| 20350 | | if test -f "$additional_libdir/lib$name.la"; then |
| 20351 | | found_la="$additional_libdir/lib$name.la" |
| 20352 | | fi |
| 20353 | | fi |
| 20354 | | fi |
| 20355 | | fi |
| 20356 | | if test "X$found_dir" = "X"; then |
| 20357 | | for x in $LDFLAGS $LTLIBICONV; do |
| 20358 | | |
| 20359 | | acl_save_prefix="$prefix" |
| 20360 | | prefix="$acl_final_prefix" |
| 20361 | | acl_save_exec_prefix="$exec_prefix" |
| 20362 | | exec_prefix="$acl_final_exec_prefix" |
| 20363 | | eval x=\"$x\" |
| 20364 | | exec_prefix="$acl_save_exec_prefix" |
| 20365 | | prefix="$acl_save_prefix" |
| 20366 | | |
| 20367 | | case "$x" in |
| 20368 | | -L*) |
| 20369 | | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 20370 | | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 20371 | | found_dir="$dir" |
| 20372 | | found_so="$dir/lib$name.$shlibext" |
| 20373 | | if test -f "$dir/lib$name.la"; then |
| 20374 | | found_la="$dir/lib$name.la" |
| 20375 | | fi |
| 20376 | | else |
| 20377 | | if test -f "$dir/lib$name.$libext"; then |
| 20378 | | found_dir="$dir" |
| 20379 | | found_a="$dir/lib$name.$libext" |
| 20380 | | if test -f "$dir/lib$name.la"; then |
| 20381 | | found_la="$dir/lib$name.la" |
| 20382 | | fi |
| 20383 | | fi |
| 20384 | | fi |
| 20385 | | ;; |
| 20386 | | esac |
| 20387 | | if test "X$found_dir" != "X"; then |
| 20388 | | break |
| 20389 | | fi |
| 20390 | | done |
| 20391 | | fi |
| 20392 | | if test "X$found_dir" != "X"; then |
| 20393 | | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 20394 | | if test "X$found_so" != "X"; then |
| 20395 | | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then |
| 20396 | | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 20397 | | else |
| 20398 | | haveit= |
| 20399 | | for x in $ltrpathdirs; do |
| 20400 | | if test "X$x" = "X$found_dir"; then |
| 20401 | | haveit=yes |
| 20402 | | break |
| 20403 | | fi |
| 20404 | | done |
| 20405 | | if test -z "$haveit"; then |
| 20406 | | ltrpathdirs="$ltrpathdirs $found_dir" |
| 20407 | | fi |
| 20408 | | if test "$hardcode_direct" = yes; then |
| 20409 | | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 20410 | | else |
| 20411 | | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 20412 | | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 20413 | | haveit= |
| 20414 | | for x in $rpathdirs; do |
| 20415 | | if test "X$x" = "X$found_dir"; then |
| 20416 | | haveit=yes |
| 20417 | | break |
| 20418 | | fi |
| 20419 | | done |
| 20420 | | if test -z "$haveit"; then |
| 20421 | | rpathdirs="$rpathdirs $found_dir" |
| 20422 | | fi |
| 20423 | | else |
| 20424 | | haveit= |
| 20425 | | for x in $LDFLAGS $LIBICONV; do |
| 20426 | | |
| 20427 | | acl_save_prefix="$prefix" |
| 20428 | | prefix="$acl_final_prefix" |
| 20429 | | acl_save_exec_prefix="$exec_prefix" |
| 20430 | | exec_prefix="$acl_final_exec_prefix" |
| 20431 | | eval x=\"$x\" |
| 20432 | | exec_prefix="$acl_save_exec_prefix" |
| 20433 | | prefix="$acl_save_prefix" |
| 20434 | | |
| 20435 | | if test "X$x" = "X-L$found_dir"; then |
| 20436 | | haveit=yes |
| 20437 | | break |
| 20438 | | fi |
| 20439 | | done |
| 20440 | | if test -z "$haveit"; then |
| 20441 | | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 20442 | | fi |
| 20443 | | if test "$hardcode_minus_L" != no; then |
| 20444 | | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 20445 | | else |
| 20446 | | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 20447 | | fi |
| 20448 | | fi |
| 20449 | | fi |
| 20450 | | fi |
| 20451 | | else |
| 20452 | | if test "X$found_a" != "X"; then |
| 20453 | | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 20454 | | else |
| 20455 | | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 20456 | | fi |
| 20457 | | fi |
| 20458 | | additional_includedir= |
| 20459 | | case "$found_dir" in |
| 20460 | | */$acl_libdirstem | */$acl_libdirstem/) |
| 20461 | | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 20462 | | additional_includedir="$basedir/include" |
| 20463 | | ;; |
| 20464 | | esac |
| 20465 | | if test "X$additional_includedir" != "X"; then |
| 20466 | | if test "X$additional_includedir" != "X/usr/include"; then |
| 20467 | | haveit= |
| 20468 | | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 20469 | | if test -n "$GCC"; then |
| 20470 | | case $host_os in |
| 20471 | | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 20472 | | esac |
| 20473 | | fi |
| 20474 | | fi |
| 20475 | | if test -z "$haveit"; then |
| 20476 | | for x in $CPPFLAGS $INCICONV; do |
| 20477 | | |
| 20478 | | acl_save_prefix="$prefix" |
| 20479 | | prefix="$acl_final_prefix" |
| 20480 | | acl_save_exec_prefix="$exec_prefix" |
| 20481 | | exec_prefix="$acl_final_exec_prefix" |
| 20482 | | eval x=\"$x\" |
| 20483 | | exec_prefix="$acl_save_exec_prefix" |
| 20484 | | prefix="$acl_save_prefix" |
| 20485 | | |
| 20486 | | if test "X$x" = "X-I$additional_includedir"; then |
| 20487 | | haveit=yes |
| 20488 | | break |
| 20489 | | fi |
| 20490 | | done |
| 20491 | | if test -z "$haveit"; then |
| 20492 | | if test -d "$additional_includedir"; then |
| 20493 | | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 20494 | | fi |
| 20495 | | fi |
| 20496 | | fi |
| 20497 | | fi |
| 20498 | | fi |
| 20499 | | if test -n "$found_la"; then |
| 20500 | | save_libdir="$libdir" |
| 20501 | | case "$found_la" in |
| 20502 | | */* | *\\*) . "$found_la" ;; |
| 20503 | | *) . "./$found_la" ;; |
| 20504 | | esac |
| 20505 | | libdir="$save_libdir" |
| 20506 | | for dep in $dependency_libs; do |
| 20507 | | case "$dep" in |
| 20508 | | -L*) |
| 20509 | | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 20510 | | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then |
| 20511 | | haveit= |
| 20512 | | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then |
| 20513 | | if test -n "$GCC"; then |
| 20514 | | case $host_os in |
| 20515 | | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 20516 | | esac |
| 20517 | | fi |
| 20518 | | fi |
| 20519 | | if test -z "$haveit"; then |
| 20520 | | haveit= |
| 20521 | | for x in $LDFLAGS $LIBICONV; do |
| 20522 | | |
| 20523 | | acl_save_prefix="$prefix" |
| 20524 | | prefix="$acl_final_prefix" |
| 20525 | | acl_save_exec_prefix="$exec_prefix" |
| 20526 | | exec_prefix="$acl_final_exec_prefix" |
| 20527 | | eval x=\"$x\" |
| 20528 | | exec_prefix="$acl_save_exec_prefix" |
| 20529 | | prefix="$acl_save_prefix" |
| 20530 | | |
| 20531 | | if test "X$x" = "X-L$additional_libdir"; then |
| 20532 | | haveit=yes |
| 20533 | | break |
| 20534 | | fi |
| 20535 | | done |
| 20536 | | if test -z "$haveit"; then |
| 20537 | | if test -d "$additional_libdir"; then |
| 20538 | | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 20539 | | fi |
| 20540 | | fi |
| 20541 | | haveit= |
| 20542 | | for x in $LDFLAGS $LTLIBICONV; do |
| 20543 | | |
| 20544 | | acl_save_prefix="$prefix" |
| 20545 | | prefix="$acl_final_prefix" |
| 20546 | | acl_save_exec_prefix="$exec_prefix" |
| 20547 | | exec_prefix="$acl_final_exec_prefix" |
| 20548 | | eval x=\"$x\" |
| 20549 | | exec_prefix="$acl_save_exec_prefix" |
| 20550 | | prefix="$acl_save_prefix" |
| 20551 | | |
| 20552 | | if test "X$x" = "X-L$additional_libdir"; then |
| 20553 | | haveit=yes |
| 20554 | | break |
| 20555 | | fi |
| 20556 | | done |
| 20557 | | if test -z "$haveit"; then |
| 20558 | | if test -d "$additional_libdir"; then |
| 20559 | | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 20560 | | fi |
| 20561 | | fi |
| 20562 | | fi |
| 20563 | | fi |
| 20564 | | ;; |
| 20565 | | -R*) |
| 20566 | | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 20567 | | if test "$enable_rpath" != no; then |
| 20568 | | haveit= |
| 20569 | | for x in $rpathdirs; do |
| 20570 | | if test "X$x" = "X$dir"; then |
| 20571 | | haveit=yes |
| 20572 | | break |
| 20573 | | fi |
| 20574 | | done |
| 20575 | | if test -z "$haveit"; then |
| 20576 | | rpathdirs="$rpathdirs $dir" |
| 20577 | | fi |
| 20578 | | haveit= |
| 20579 | | for x in $ltrpathdirs; do |
| 20580 | | if test "X$x" = "X$dir"; then |
| 20581 | | haveit=yes |
| 20582 | | break |
| 20583 | | fi |
| 20584 | | done |
| 20585 | | if test -z "$haveit"; then |
| 20586 | | ltrpathdirs="$ltrpathdirs $dir" |
| 20587 | | fi |
| 20588 | | fi |
| 20589 | | ;; |
| 20590 | | -l*) |
| 20591 | | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 20592 | | ;; |
| 20593 | | *.la) |
| 20594 | | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 20595 | | ;; |
| 20596 | | *) |
| 20597 | | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 20598 | | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 20599 | | ;; |
| 20600 | | esac |
| 20601 | | done |
| 20602 | | fi |
| 20603 | | else |
| 20604 | | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 20605 | | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 20606 | | fi |
| 20607 | | fi |
| 20608 | | fi |
| 20609 | | done |
| 20610 | | done |
| 20611 | | if test "X$rpathdirs" != "X"; then |
| 20612 | | if test -n "$hardcode_libdir_separator"; then |
| 20613 | | alldirs= |
| 20614 | | for found_dir in $rpathdirs; do |
| 20615 | | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 20616 | | done |
| 20617 | | acl_save_libdir="$libdir" |
| 20618 | | libdir="$alldirs" |
| 20619 | | eval flag=\"$hardcode_libdir_flag_spec\" |
| 20620 | | libdir="$acl_save_libdir" |
| 20621 | | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 20622 | | else |
| 20623 | | for found_dir in $rpathdirs; do |
| 20624 | | acl_save_libdir="$libdir" |
| 20625 | | libdir="$found_dir" |
| 20626 | | eval flag=\"$hardcode_libdir_flag_spec\" |
| 20627 | | libdir="$acl_save_libdir" |
| 20628 | | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 20629 | | done |
| 20630 | | fi |
| 20631 | | fi |
| 20632 | | if test "X$ltrpathdirs" != "X"; then |
| 20633 | | for found_dir in $ltrpathdirs; do |
| 20634 | | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 20635 | | done |
| 20636 | | fi |
| 20637 | | |
| 20638 | | |
| 20639 | | |
| 20640 | | |
| 20641 | | |
| 20642 | | |
| 20643 | | |
| 20644 | | |
| 20645 | | |
| 20646 | | |
| 20647 | | |
| 20648 | | |
| 20649 | | |
| 20650 | | |
| 20651 | | |
| 20652 | | |
| 20653 | | |
| 20654 | | |
| 20655 | | { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 |
| 20656 | | echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } |
| 20657 | | if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then |
| 20658 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20659 | | else |
| 20660 | | gt_save_LIBS="$LIBS" |
| 20661 | | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 20662 | | cat >conftest.$ac_ext <<_ACEOF |
| 20663 | | /* confdefs.h. */ |
| 20664 | | _ACEOF |
| 20665 | | cat confdefs.h >>conftest.$ac_ext |
| 20666 | | cat >>conftest.$ac_ext <<_ACEOF |
| 20667 | | /* end confdefs.h. */ |
| 20668 | | #include <CoreFoundation/CFPreferences.h> |
| 20669 | | int |
| 20670 | | main () |
| 20671 | | { |
| 20672 | | CFPreferencesCopyAppValue(NULL, NULL) |
| 20673 | | ; |
| 20674 | | return 0; |
| 20675 | | } |
| 20676 | | _ACEOF |
| 20677 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20678 | | if { (ac_try="$ac_link" |
| 20679 | | case "(($ac_try" in |
| 20680 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20681 | | *) ac_try_echo=$ac_try;; |
| 20682 | | esac |
| 20683 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20684 | | (eval "$ac_link") 2>conftest.er1 |
| 20685 | | ac_status=$? |
| 20686 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 20687 | | rm -f conftest.er1 |
| 20688 | | cat conftest.err >&5 |
| 20689 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20690 | | (exit $ac_status); } && { |
| 20691 | | test -z "$ac_c_werror_flag" || |
| 20692 | | test ! -s conftest.err |
| 20693 | | } && test -s conftest$ac_exeext && |
| 20694 | | $as_test_x conftest$ac_exeext; then |
| 20695 | | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 20696 | | else |
| 20697 | | echo "$as_me: failed program was:" >&5 |
| 20698 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20699 | | |
| 20700 | | gt_cv_func_CFPreferencesCopyAppValue=no |
| 20701 | | fi |
| 20702 | | |
| 20703 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20704 | | conftest$ac_exeext conftest.$ac_ext |
| 20705 | | LIBS="$gt_save_LIBS" |
| 20706 | | fi |
| 20707 | | { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 20708 | | echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 20709 | | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 20710 | | |
| 20711 | | cat >>confdefs.h <<\_ACEOF |
| 20712 | | #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 |
| 20713 | | _ACEOF |
| 20714 | | |
| 20715 | | fi |
| 20716 | | { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 |
| 20717 | | echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } |
| 20718 | | if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then |
| 20719 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20720 | | else |
| 20721 | | gt_save_LIBS="$LIBS" |
| 20722 | | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 20723 | | cat >conftest.$ac_ext <<_ACEOF |
| 20724 | | /* confdefs.h. */ |
| 20725 | | _ACEOF |
| 20726 | | cat confdefs.h >>conftest.$ac_ext |
| 20727 | | cat >>conftest.$ac_ext <<_ACEOF |
| 20728 | | /* end confdefs.h. */ |
| 20729 | | #include <CoreFoundation/CFLocale.h> |
| 20730 | | int |
| 20731 | | main () |
| 20732 | | { |
| 20733 | | CFLocaleCopyCurrent(); |
| 20734 | | ; |
| 20735 | | return 0; |
| 20736 | | } |
| 20737 | | _ACEOF |
| 20738 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20739 | | if { (ac_try="$ac_link" |
| 20740 | | case "(($ac_try" in |
| 20741 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20742 | | *) ac_try_echo=$ac_try;; |
| 20743 | | esac |
| 20744 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20745 | | (eval "$ac_link") 2>conftest.er1 |
| 20746 | | ac_status=$? |
| 20747 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 20748 | | rm -f conftest.er1 |
| 20749 | | cat conftest.err >&5 |
| 20750 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20751 | | (exit $ac_status); } && { |
| 20752 | | test -z "$ac_c_werror_flag" || |
| 20753 | | test ! -s conftest.err |
| 20754 | | } && test -s conftest$ac_exeext && |
| 20755 | | $as_test_x conftest$ac_exeext; then |
| 20756 | | gt_cv_func_CFLocaleCopyCurrent=yes |
| 20757 | | else |
| 20758 | | echo "$as_me: failed program was:" >&5 |
| 20759 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20760 | | |
| 20761 | | gt_cv_func_CFLocaleCopyCurrent=no |
| 20762 | | fi |
| 20763 | | |
| 20764 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20765 | | conftest$ac_exeext conftest.$ac_ext |
| 20766 | | LIBS="$gt_save_LIBS" |
| 20767 | | fi |
| 20768 | | { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 20769 | | echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 20770 | | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 20771 | | |
| 20772 | | cat >>confdefs.h <<\_ACEOF |
| 20773 | | #define HAVE_CFLOCALECOPYCURRENT 1 |
| 20774 | | _ACEOF |
| 20775 | | |
| 20776 | | fi |
| 20777 | | INTL_MACOSX_LIBS= |
| 20778 | | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 20779 | | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 20780 | | fi |
| 20781 | | |
| 20782 | | |
| 20783 | | |
| 20784 | | |
| 20785 | | |
| 20786 | | |
| 20787 | | LIBINTL= |
| 20788 | | LTLIBINTL= |
| 20789 | | POSUB= |
| 20790 | | |
| 20791 | | if test "$USE_NLS" = "yes"; then |
| 20792 | | gt_use_preinstalled_gnugettext=no |
| 20793 | | |
| 20794 | | |
| 20795 | | |
| 20796 | | |
| 20797 | | |
| 20798 | | |
| 20799 | | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 20800 | | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } |
| 20801 | | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 20802 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20803 | | else |
| 20804 | | cat >conftest.$ac_ext <<_ACEOF |
| 20805 | | /* confdefs.h. */ |
| 20806 | | _ACEOF |
| 20807 | | cat confdefs.h >>conftest.$ac_ext |
| 20808 | | cat >>conftest.$ac_ext <<_ACEOF |
| 20809 | | /* end confdefs.h. */ |
| 20810 | | #include <libintl.h> |
| 20811 | | extern int _nl_msg_cat_cntr; |
| 20812 | | extern int *_nl_domain_bindings; |
| 20813 | | int |
| 20814 | | main () |
| 20815 | | { |
| 20816 | | bindtextdomain ("", ""); |
| 20817 | | return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 20818 | | ; |
| 20819 | | return 0; |
| 20820 | | } |
| 20821 | | _ACEOF |
| 20822 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20823 | | if { (ac_try="$ac_link" |
| 20824 | | case "(($ac_try" in |
| 20825 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20826 | | *) ac_try_echo=$ac_try;; |
| 20827 | | esac |
| 20828 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20829 | | (eval "$ac_link") 2>conftest.er1 |
| 20830 | | ac_status=$? |
| 20831 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 20832 | | rm -f conftest.er1 |
| 20833 | | cat conftest.err >&5 |
| 20834 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20835 | | (exit $ac_status); } && { |
| 20836 | | test -z "$ac_c_werror_flag" || |
| 20837 | | test ! -s conftest.err |
| 20838 | | } && test -s conftest$ac_exeext && |
| 20839 | | $as_test_x conftest$ac_exeext; then |
| 20840 | | gt_cv_func_gnugettext1_libc=yes |
| 20841 | | else |
| 20842 | | echo "$as_me: failed program was:" >&5 |
| 20843 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20844 | | |
| 20845 | | gt_cv_func_gnugettext1_libc=no |
| 20846 | | fi |
| 20847 | | |
| 20848 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20849 | | conftest$ac_exeext conftest.$ac_ext |
| 20850 | | fi |
| 20851 | | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 20852 | | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
| 20853 | | |
| 20854 | | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
| 20855 | | |
| 20856 | | |
| 20857 | | |
| 20858 | | |
| 20859 | | |
| 20860 | | am_save_CPPFLAGS="$CPPFLAGS" |
| 20861 | | |
| 20862 | | for element in $INCICONV; do |
| 20863 | | haveit= |
| 20864 | | for x in $CPPFLAGS; do |
| 20865 | | |
| 20866 | | acl_save_prefix="$prefix" |
| 20867 | | prefix="$acl_final_prefix" |
| 20868 | | acl_save_exec_prefix="$exec_prefix" |
| 20869 | | exec_prefix="$acl_final_exec_prefix" |
| 20870 | | eval x=\"$x\" |
| 20871 | | exec_prefix="$acl_save_exec_prefix" |
| 20872 | | prefix="$acl_save_prefix" |
| 20873 | | |
| 20874 | | if test "X$x" = "X$element"; then |
| 20875 | | haveit=yes |
| 20876 | | break |
| 20877 | | fi |
| 20878 | | done |
| 20879 | | if test -z "$haveit"; then |
| 20880 | | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 20881 | | fi |
| 20882 | | done |
| 20883 | | |
| 20884 | | |
| 20885 | | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 20886 | | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
| 20887 | | if test "${am_cv_func_iconv+set}" = set; then |
| 20888 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20889 | | else |
| 20890 | | |
| 20891 | | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 20892 | | am_cv_lib_iconv=no |
| 20893 | | cat >conftest.$ac_ext <<_ACEOF |
| 20894 | | /* confdefs.h. */ |
| 20895 | | _ACEOF |
| 20896 | | cat confdefs.h >>conftest.$ac_ext |
| 20897 | | cat >>conftest.$ac_ext <<_ACEOF |
| 20898 | | /* end confdefs.h. */ |
| 20899 | | #include <stdlib.h> |
| 20900 | | #include <iconv.h> |
| 20901 | | int |
| 20902 | | main () |
| 20903 | | { |
| 20904 | | iconv_t cd = iconv_open("",""); |
| 20905 | | iconv(cd,NULL,NULL,NULL,NULL); |
| 20906 | | iconv_close(cd); |
| 20907 | | ; |
| 20908 | | return 0; |
| 20909 | | } |
| 20910 | | _ACEOF |
| 20911 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20912 | | if { (ac_try="$ac_link" |
| 20913 | | case "(($ac_try" in |
| 20914 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20915 | | *) ac_try_echo=$ac_try;; |
| 20916 | | esac |
| 20917 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20918 | | (eval "$ac_link") 2>conftest.er1 |
| 20919 | | ac_status=$? |
| 20920 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 20921 | | rm -f conftest.er1 |
| 20922 | | cat conftest.err >&5 |
| 20923 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20924 | | (exit $ac_status); } && { |
| 20925 | | test -z "$ac_c_werror_flag" || |
| 20926 | | test ! -s conftest.err |
| 20927 | | } && test -s conftest$ac_exeext && |
| 20928 | | $as_test_x conftest$ac_exeext; then |
| 20929 | | am_cv_func_iconv=yes |
| 20930 | | else |
| 20931 | | echo "$as_me: failed program was:" >&5 |
| 20932 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20933 | | |
| 20934 | | |
| 20935 | | fi |
| 20936 | | |
| 20937 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20938 | | conftest$ac_exeext conftest.$ac_ext |
| 20939 | | if test "$am_cv_func_iconv" != yes; then |
| 20940 | | am_save_LIBS="$LIBS" |
| 20941 | | LIBS="$LIBS $LIBICONV" |
| 20942 | | cat >conftest.$ac_ext <<_ACEOF |
| 20943 | | /* confdefs.h. */ |
| 20944 | | _ACEOF |
| 20945 | | cat confdefs.h >>conftest.$ac_ext |
| 20946 | | cat >>conftest.$ac_ext <<_ACEOF |
| 20947 | | /* end confdefs.h. */ |
| 20948 | | #include <stdlib.h> |
| 20949 | | #include <iconv.h> |
| 20950 | | int |
| 20951 | | main () |
| 20952 | | { |
| 20953 | | iconv_t cd = iconv_open("",""); |
| 20954 | | iconv(cd,NULL,NULL,NULL,NULL); |
| 20955 | | iconv_close(cd); |
| 20956 | | ; |
| 20957 | | return 0; |
| 20958 | | } |
| 20959 | | _ACEOF |
| 20960 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20961 | | if { (ac_try="$ac_link" |
| 20962 | | case "(($ac_try" in |
| 20963 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20964 | | *) ac_try_echo=$ac_try;; |
| 20965 | | esac |
| 20966 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20967 | | (eval "$ac_link") 2>conftest.er1 |
| 20968 | | ac_status=$? |
| 20969 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 20970 | | rm -f conftest.er1 |
| 20971 | | cat conftest.err >&5 |
| 20972 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20973 | | (exit $ac_status); } && { |
| 20974 | | test -z "$ac_c_werror_flag" || |
| 20975 | | test ! -s conftest.err |
| 20976 | | } && test -s conftest$ac_exeext && |
| 20977 | | $as_test_x conftest$ac_exeext; then |
| 20978 | | am_cv_lib_iconv=yes |
| 20979 | | am_cv_func_iconv=yes |
| 20980 | | else |
| 20981 | | echo "$as_me: failed program was:" >&5 |
| 20982 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20983 | | |
| 20984 | | |
| 20985 | | fi |
| 20986 | | |
| 20987 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20988 | | conftest$ac_exeext conftest.$ac_ext |
| 20989 | | LIBS="$am_save_LIBS" |
| 20990 | | fi |
| 20991 | | |
| 20992 | | fi |
| 20993 | | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 20994 | | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
| 20995 | | if test "$am_cv_func_iconv" = yes; then |
| 20996 | | |
| 20997 | | cat >>confdefs.h <<\_ACEOF |
| 20998 | | #define HAVE_ICONV 1 |
| 20999 | | _ACEOF |
| 21000 | | |
| 21001 | | fi |
| 21002 | | if test "$am_cv_lib_iconv" = yes; then |
| 21003 | | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 21004 | | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 21005 | | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 21006 | | echo "${ECHO_T}$LIBICONV" >&6; } |
| 21007 | | else |
| 21008 | | CPPFLAGS="$am_save_CPPFLAGS" |
| 21009 | | LIBICONV= |
| 21010 | | LTLIBICONV= |
| 21011 | | fi |
| 21012 | | |
| 21013 | | |
| 21014 | | |
| 21015 | | |
| 21016 | | |
| 21017 | | |
| 21018 | | |
| 21019 | | use_additional=yes |
| 21020 | | |
| 21021 | | acl_save_prefix="$prefix" |
| 21022 | | prefix="$acl_final_prefix" |
| 21023 | | acl_save_exec_prefix="$exec_prefix" |
| 21024 | | exec_prefix="$acl_final_exec_prefix" |
| 21025 | | |
| 21026 | | eval additional_includedir=\"$includedir\" |
| 21027 | | eval additional_libdir=\"$libdir\" |
| 21028 | | |
| 21029 | | exec_prefix="$acl_save_exec_prefix" |
| 21030 | | prefix="$acl_save_prefix" |
| 21031 | | |
| 21032 | | |
| 21033 | | # Check whether --with-libintl-prefix was given. |
| 21034 | | if test "${with_libintl_prefix+set}" = set; then |
| 21035 | | withval=$with_libintl_prefix; |
| 21036 | | if test "X$withval" = "Xno"; then |
| 21037 | | use_additional=no |
| 21038 | | else |
| 21039 | | if test "X$withval" = "X"; then |
| 21040 | | |
| 21041 | | acl_save_prefix="$prefix" |
| 21042 | | prefix="$acl_final_prefix" |
| 21043 | | acl_save_exec_prefix="$exec_prefix" |
| 21044 | | exec_prefix="$acl_final_exec_prefix" |
| 21045 | | |
| 21046 | | eval additional_includedir=\"$includedir\" |
| 21047 | | eval additional_libdir=\"$libdir\" |
| 21048 | | |
| 21049 | | exec_prefix="$acl_save_exec_prefix" |
| 21050 | | prefix="$acl_save_prefix" |
| 21051 | | |
| 21052 | | else |
| 21053 | | additional_includedir="$withval/include" |
| 21054 | | additional_libdir="$withval/$acl_libdirstem" |
| 21055 | | fi |
| 21056 | | fi |
| 21057 | | |
| 21058 | | fi |
| 21059 | | |
| 21060 | | LIBINTL= |
| 21061 | | LTLIBINTL= |
| 21062 | | INCINTL= |
| 21063 | | rpathdirs= |
| 21064 | | ltrpathdirs= |
| 21065 | | names_already_handled= |
| 21066 | | names_next_round='intl ' |
| 21067 | | while test -n "$names_next_round"; do |
| 21068 | | names_this_round="$names_next_round" |
| 21069 | | names_next_round= |
| 21070 | | for name in $names_this_round; do |
| 21071 | | already_handled= |
| 21072 | | for n in $names_already_handled; do |
| 21073 | | if test "$n" = "$name"; then |
| 21074 | | already_handled=yes |
| 21075 | | break |
| 21076 | | fi |
| 21077 | | done |
| 21078 | | if test -z "$already_handled"; then |
| 21079 | | names_already_handled="$names_already_handled $name" |
| 21080 | | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 21081 | | eval value=\"\$HAVE_LIB$uppername\" |
| 21082 | | if test -n "$value"; then |
| 21083 | | if test "$value" = yes; then |
| 21084 | | eval value=\"\$LIB$uppername\" |
| 21085 | | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 21086 | | eval value=\"\$LTLIB$uppername\" |
| 21087 | | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 21088 | | else |
| 21089 | | : |
| 21090 | | fi |
| 21091 | | else |
| 21092 | | found_dir= |
| 21093 | | found_la= |
| 21094 | | found_so= |
| 21095 | | found_a= |
| 21096 | | if test $use_additional = yes; then |
| 21097 | | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 21098 | | found_dir="$additional_libdir" |
| 21099 | | found_so="$additional_libdir/lib$name.$shlibext" |
| 21100 | | if test -f "$additional_libdir/lib$name.la"; then |
| 21101 | | found_la="$additional_libdir/lib$name.la" |
| 21102 | | fi |
| 21103 | | else |
| 21104 | | if test -f "$additional_libdir/lib$name.$libext"; then |
| 21105 | | found_dir="$additional_libdir" |
| 21106 | | found_a="$additional_libdir/lib$name.$libext" |
| 21107 | | if test -f "$additional_libdir/lib$name.la"; then |
| 21108 | | found_la="$additional_libdir/lib$name.la" |
| 21109 | | fi |
| 21110 | | fi |
| 21111 | | fi |
| 21112 | | fi |
| 21113 | | if test "X$found_dir" = "X"; then |
| 21114 | | for x in $LDFLAGS $LTLIBINTL; do |
| 21115 | | |
| 21116 | | acl_save_prefix="$prefix" |
| 21117 | | prefix="$acl_final_prefix" |
| 21118 | | acl_save_exec_prefix="$exec_prefix" |
| 21119 | | exec_prefix="$acl_final_exec_prefix" |
| 21120 | | eval x=\"$x\" |
| 21121 | | exec_prefix="$acl_save_exec_prefix" |
| 21122 | | prefix="$acl_save_prefix" |
| 21123 | | |
| 21124 | | case "$x" in |
| 21125 | | -L*) |
| 21126 | | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 21127 | | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 21128 | | found_dir="$dir" |
| 21129 | | found_so="$dir/lib$name.$shlibext" |
| 21130 | | if test -f "$dir/lib$name.la"; then |
| 21131 | | found_la="$dir/lib$name.la" |
| 21132 | | fi |
| 21133 | | else |
| 21134 | | if test -f "$dir/lib$name.$libext"; then |
| 21135 | | found_dir="$dir" |
| 21136 | | found_a="$dir/lib$name.$libext" |
| 21137 | | if test -f "$dir/lib$name.la"; then |
| 21138 | | found_la="$dir/lib$name.la" |
| 21139 | | fi |
| 21140 | | fi |
| 21141 | | fi |
| 21142 | | ;; |
| 21143 | | esac |
| 21144 | | if test "X$found_dir" != "X"; then |
| 21145 | | break |
| 21146 | | fi |
| 21147 | | done |
| 21148 | | fi |
| 21149 | | if test "X$found_dir" != "X"; then |
| 21150 | | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 21151 | | if test "X$found_so" != "X"; then |
| 21152 | | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then |
| 21153 | | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 21154 | | else |
| 21155 | | haveit= |
| 21156 | | for x in $ltrpathdirs; do |
| 21157 | | if test "X$x" = "X$found_dir"; then |
| 21158 | | haveit=yes |
| 21159 | | break |
| 21160 | | fi |
| 21161 | | done |
| 21162 | | if test -z "$haveit"; then |
| 21163 | | ltrpathdirs="$ltrpathdirs $found_dir" |
| 21164 | | fi |
| 21165 | | if test "$hardcode_direct" = yes; then |
| 21166 | | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 21167 | | else |
| 21168 | | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 21169 | | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 21170 | | haveit= |
| 21171 | | for x in $rpathdirs; do |
| 21172 | | if test "X$x" = "X$found_dir"; then |
| 21173 | | haveit=yes |
| 21174 | | break |
| 21175 | | fi |
| 21176 | | done |
| 21177 | | if test -z "$haveit"; then |
| 21178 | | rpathdirs="$rpathdirs $found_dir" |
| 21179 | | fi |
| 21180 | | else |
| 21181 | | haveit= |
| 21182 | | for x in $LDFLAGS $LIBINTL; do |
| 21183 | | |
| 21184 | | acl_save_prefix="$prefix" |
| 21185 | | prefix="$acl_final_prefix" |
| 21186 | | acl_save_exec_prefix="$exec_prefix" |
| 21187 | | exec_prefix="$acl_final_exec_prefix" |
| 21188 | | eval x=\"$x\" |
| 21189 | | exec_prefix="$acl_save_exec_prefix" |
| 21190 | | prefix="$acl_save_prefix" |
| 21191 | | |
| 21192 | | if test "X$x" = "X-L$found_dir"; then |
| 21193 | | haveit=yes |
| 21194 | | break |
| 21195 | | fi |
| 21196 | | done |
| 21197 | | if test -z "$haveit"; then |
| 21198 | | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 21199 | | fi |
| 21200 | | if test "$hardcode_minus_L" != no; then |
| 21201 | | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 21202 | | else |
| 21203 | | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 21204 | | fi |
| 21205 | | fi |
| 21206 | | fi |
| 21207 | | fi |
| 21208 | | else |
| 21209 | | if test "X$found_a" != "X"; then |
| 21210 | | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 21211 | | else |
| 21212 | | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 21213 | | fi |
| 21214 | | fi |
| 21215 | | additional_includedir= |
| 21216 | | case "$found_dir" in |
| 21217 | | */$acl_libdirstem | */$acl_libdirstem/) |
| 21218 | | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 21219 | | additional_includedir="$basedir/include" |
| 21220 | | ;; |
| 21221 | | esac |
| 21222 | | if test "X$additional_includedir" != "X"; then |
| 21223 | | if test "X$additional_includedir" != "X/usr/include"; then |
| 21224 | | haveit= |
| 21225 | | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 21226 | | if test -n "$GCC"; then |
| 21227 | | case $host_os in |
| 21228 | | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 21229 | | esac |
| 21230 | | fi |
| 21231 | | fi |
| 21232 | | if test -z "$haveit"; then |
| 21233 | | for x in $CPPFLAGS $INCINTL; do |
| 21234 | | |
| 21235 | | acl_save_prefix="$prefix" |
| 21236 | | prefix="$acl_final_prefix" |
| 21237 | | acl_save_exec_prefix="$exec_prefix" |
| 21238 | | exec_prefix="$acl_final_exec_prefix" |
| 21239 | | eval x=\"$x\" |
| 21240 | | exec_prefix="$acl_save_exec_prefix" |
| 21241 | | prefix="$acl_save_prefix" |
| 21242 | | |
| 21243 | | if test "X$x" = "X-I$additional_includedir"; then |
| 21244 | | haveit=yes |
| 21245 | | break |
| 21246 | | fi |
| 21247 | | done |
| 21248 | | if test -z "$haveit"; then |
| 21249 | | if test -d "$additional_includedir"; then |
| 21250 | | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 21251 | | fi |
| 21252 | | fi |
| 21253 | | fi |
| 21254 | | fi |
| 21255 | | fi |
| 21256 | | if test -n "$found_la"; then |
| 21257 | | save_libdir="$libdir" |
| 21258 | | case "$found_la" in |
| 21259 | | */* | *\\*) . "$found_la" ;; |
| 21260 | | *) . "./$found_la" ;; |
| 21261 | | esac |
| 21262 | | libdir="$save_libdir" |
| 21263 | | for dep in $dependency_libs; do |
| 21264 | | case "$dep" in |
| 21265 | | -L*) |
| 21266 | | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 21267 | | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then |
| 21268 | | haveit= |
| 21269 | | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then |
| 21270 | | if test -n "$GCC"; then |
| 21271 | | case $host_os in |
| 21272 | | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 21273 | | esac |
| 21274 | | fi |
| 21275 | | fi |
| 21276 | | if test -z "$haveit"; then |
| 21277 | | haveit= |
| 21278 | | for x in $LDFLAGS $LIBINTL; do |
| 21279 | | |
| 21280 | | acl_save_prefix="$prefix" |
| 21281 | | prefix="$acl_final_prefix" |
| 21282 | | acl_save_exec_prefix="$exec_prefix" |
| 21283 | | exec_prefix="$acl_final_exec_prefix" |
| 21284 | | eval x=\"$x\" |
| 21285 | | exec_prefix="$acl_save_exec_prefix" |
| 21286 | | prefix="$acl_save_prefix" |
| 21287 | | |
| 21288 | | if test "X$x" = "X-L$additional_libdir"; then |
| 21289 | | haveit=yes |
| 21290 | | break |
| 21291 | | fi |
| 21292 | | done |
| 21293 | | if test -z "$haveit"; then |
| 21294 | | if test -d "$additional_libdir"; then |
| 21295 | | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 21296 | | fi |
| 21297 | | fi |
| 21298 | | haveit= |
| 21299 | | for x in $LDFLAGS $LTLIBINTL; do |
| 21300 | | |
| 21301 | | acl_save_prefix="$prefix" |
| 21302 | | prefix="$acl_final_prefix" |
| 21303 | | acl_save_exec_prefix="$exec_prefix" |
| 21304 | | exec_prefix="$acl_final_exec_prefix" |
| 21305 | | eval x=\"$x\" |
| 21306 | | exec_prefix="$acl_save_exec_prefix" |
| 21307 | | prefix="$acl_save_prefix" |
| 21308 | | |
| 21309 | | if test "X$x" = "X-L$additional_libdir"; then |
| 21310 | | haveit=yes |
| 21311 | | break |
| 21312 | | fi |
| 21313 | | done |
| 21314 | | if test -z "$haveit"; then |
| 21315 | | if test -d "$additional_libdir"; then |
| 21316 | | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 21317 | | fi |
| 21318 | | fi |
| 21319 | | fi |
| 21320 | | fi |
| 21321 | | ;; |
| 21322 | | -R*) |
| 21323 | | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 21324 | | if test "$enable_rpath" != no; then |
| 21325 | | haveit= |
| 21326 | | for x in $rpathdirs; do |
| 21327 | | if test "X$x" = "X$dir"; then |
| 21328 | | haveit=yes |
| 21329 | | break |
| 21330 | | fi |
| 21331 | | done |
| 21332 | | if test -z "$haveit"; then |
| 21333 | | rpathdirs="$rpathdirs $dir" |
| 21334 | | fi |
| 21335 | | haveit= |
| 21336 | | for x in $ltrpathdirs; do |
| 21337 | | if test "X$x" = "X$dir"; then |
| 21338 | | haveit=yes |
| 21339 | | break |
| 21340 | | fi |
| 21341 | | done |
| 21342 | | if test -z "$haveit"; then |
| 21343 | | ltrpathdirs="$ltrpathdirs $dir" |
| 21344 | | fi |
| 21345 | | fi |
| 21346 | | ;; |
| 21347 | | -l*) |
| 21348 | | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 21349 | | ;; |
| 21350 | | *.la) |
| 21351 | | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 21352 | | ;; |
| 21353 | | *) |
| 21354 | | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 21355 | | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 21356 | | ;; |
| 21357 | | esac |
| 21358 | | done |
| 21359 | | fi |
| 21360 | | else |
| 21361 | | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 21362 | | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 21363 | | fi |
| 21364 | | fi |
| 21365 | | fi |
| 21366 | | done |
| 21367 | | done |
| 21368 | | if test "X$rpathdirs" != "X"; then |
| 21369 | | if test -n "$hardcode_libdir_separator"; then |
| 21370 | | alldirs= |
| 21371 | | for found_dir in $rpathdirs; do |
| 21372 | | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 21373 | | done |
| 21374 | | acl_save_libdir="$libdir" |
| 21375 | | libdir="$alldirs" |
| 21376 | | eval flag=\"$hardcode_libdir_flag_spec\" |
| 21377 | | libdir="$acl_save_libdir" |
| 21378 | | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 21379 | | else |
| 21380 | | for found_dir in $rpathdirs; do |
| 21381 | | acl_save_libdir="$libdir" |
| 21382 | | libdir="$found_dir" |
| 21383 | | eval flag=\"$hardcode_libdir_flag_spec\" |
| 21384 | | libdir="$acl_save_libdir" |
| 21385 | | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 21386 | | done |
| 21387 | | fi |
| 21388 | | fi |
| 21389 | | if test "X$ltrpathdirs" != "X"; then |
| 21390 | | for found_dir in $ltrpathdirs; do |
| 21391 | | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 21392 | | done |
| 21393 | | fi |
| 21394 | | |
| 21395 | | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 21396 | | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } |
| 21397 | | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 21398 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21399 | | else |
| 21400 | | gt_save_CPPFLAGS="$CPPFLAGS" |
| 21401 | | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 21402 | | gt_save_LIBS="$LIBS" |
| 21403 | | LIBS="$LIBS $LIBINTL" |
| 21404 | | cat >conftest.$ac_ext <<_ACEOF |
| 21405 | | /* confdefs.h. */ |
| 21406 | | _ACEOF |
| 21407 | | cat confdefs.h >>conftest.$ac_ext |
| 21408 | | cat >>conftest.$ac_ext <<_ACEOF |
| 21409 | | /* end confdefs.h. */ |
| 21410 | | #include <libintl.h> |
| 21411 | | extern int _nl_msg_cat_cntr; |
| 21412 | | extern |
| 21413 | | #ifdef __cplusplus |
| 21414 | | "C" |
| 21415 | | #endif |
| 21416 | | const char *_nl_expand_alias (const char *); |
| 21417 | | int |
| 21418 | | main () |
| 21419 | | { |
| 21420 | | bindtextdomain ("", ""); |
| 21421 | | return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 21422 | | ; |
| 21423 | | return 0; |
| 21424 | | } |
| 21425 | | _ACEOF |
| 21426 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21427 | | if { (ac_try="$ac_link" |
| 21428 | | case "(($ac_try" in |
| 21429 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21430 | | *) ac_try_echo=$ac_try;; |
| 21431 | | esac |
| 21432 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21433 | | (eval "$ac_link") 2>conftest.er1 |
| 21434 | | ac_status=$? |
| 21435 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 21436 | | rm -f conftest.er1 |
| 21437 | | cat conftest.err >&5 |
| 21438 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21439 | | (exit $ac_status); } && { |
| 21440 | | test -z "$ac_c_werror_flag" || |
| 21441 | | test ! -s conftest.err |
| 21442 | | } && test -s conftest$ac_exeext && |
| 21443 | | $as_test_x conftest$ac_exeext; then |
| 21444 | | gt_cv_func_gnugettext1_libintl=yes |
| 21445 | | else |
| 21446 | | echo "$as_me: failed program was:" >&5 |
| 21447 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21448 | | |
| 21449 | | gt_cv_func_gnugettext1_libintl=no |
| 21450 | | fi |
| 21451 | | |
| 21452 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21453 | | conftest$ac_exeext conftest.$ac_ext |
| 21454 | | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 21455 | | LIBS="$LIBS $LIBICONV" |
| 21456 | | cat >conftest.$ac_ext <<_ACEOF |
| 21457 | | /* confdefs.h. */ |
| 21458 | | _ACEOF |
| 21459 | | cat confdefs.h >>conftest.$ac_ext |
| 21460 | | cat >>conftest.$ac_ext <<_ACEOF |
| 21461 | | /* end confdefs.h. */ |
| 21462 | | #include <libintl.h> |
| 21463 | | extern int _nl_msg_cat_cntr; |
| 21464 | | extern |
| 21465 | | #ifdef __cplusplus |
| 21466 | | "C" |
| 21467 | | #endif |
| 21468 | | const char *_nl_expand_alias (const char *); |
| 21469 | | int |
| 21470 | | main () |
| 21471 | | { |
| 21472 | | bindtextdomain ("", ""); |
| 21473 | | return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 21474 | | ; |
| 21475 | | return 0; |
| 21476 | | } |
| 21477 | | _ACEOF |
| 21478 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21479 | | if { (ac_try="$ac_link" |
| 21480 | | case "(($ac_try" in |
| 21481 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21482 | | *) ac_try_echo=$ac_try;; |
| 21483 | | esac |
| 21484 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21485 | | (eval "$ac_link") 2>conftest.er1 |
| 21486 | | ac_status=$? |
| 21487 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 21488 | | rm -f conftest.er1 |
| 21489 | | cat conftest.err >&5 |
| 21490 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21491 | | (exit $ac_status); } && { |
| 21492 | | test -z "$ac_c_werror_flag" || |
| 21493 | | test ! -s conftest.err |
| 21494 | | } && test -s conftest$ac_exeext && |
| 21495 | | $as_test_x conftest$ac_exeext; then |
| 21496 | | LIBINTL="$LIBINTL $LIBICONV" |
| 21497 | | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 21498 | | gt_cv_func_gnugettext1_libintl=yes |
| 21499 | | |
| 21500 | | else |
| 21501 | | echo "$as_me: failed program was:" >&5 |
| 21502 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21503 | | |
| 21504 | | |
| 21505 | | fi |
| 21506 | | |
| 21507 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21508 | | conftest$ac_exeext conftest.$ac_ext |
| 21509 | | fi |
| 21510 | | CPPFLAGS="$gt_save_CPPFLAGS" |
| 21511 | | LIBS="$gt_save_LIBS" |
| 21512 | | fi |
| 21513 | | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 21514 | | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
| 21515 | | fi |
| 21516 | | |
| 21517 | | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 21518 | | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
| 21519 | | && test "$PACKAGE" != gettext-runtime \ |
| 21520 | | && test "$PACKAGE" != gettext-tools; }; then |
| 21521 | | gt_use_preinstalled_gnugettext=yes |
| 21522 | | else |
| 21523 | | LIBINTL= |
| 21524 | | LTLIBINTL= |
| 21525 | | INCINTL= |
| 21526 | | fi |
| 21527 | | |
| 21528 | | |
| 21529 | | |
| 21530 | | if test -n "$INTL_MACOSX_LIBS"; then |
| 21531 | | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 21532 | | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 21533 | | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
| 21534 | | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
| 21535 | | fi |
| 21536 | | fi |
| 21537 | | |
| 21538 | | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 21539 | | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 21540 | | |
| 21541 | | cat >>confdefs.h <<\_ACEOF |
| 21542 | | #define ENABLE_NLS 1 |
| 21543 | | _ACEOF |
| 21544 | | |
| 21545 | | else |
| 21546 | | USE_NLS=no |
| 21547 | | fi |
| 21548 | | fi |
| 21549 | | |
| 21550 | | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 21551 | | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 21552 | | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 21553 | | echo "${ECHO_T}$USE_NLS" >&6; } |
| 21554 | | if test "$USE_NLS" = "yes"; then |
| 21555 | | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 21556 | | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } |
| 21557 | | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 21558 | | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 21559 | | gt_source="external libintl" |
| 21560 | | else |
| 21561 | | gt_source="libc" |
| 21562 | | fi |
| 21563 | | else |
| 21564 | | gt_source="included intl directory" |
| 21565 | | fi |
| 21566 | | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 21567 | | echo "${ECHO_T}$gt_source" >&6; } |
| 21568 | | fi |
| 21569 | | |
| 21570 | | if test "$USE_NLS" = "yes"; then |
| 21571 | | |
| 21572 | | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 21573 | | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 21574 | | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 21575 | | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 21576 | | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 21577 | | echo "${ECHO_T}$LIBINTL" >&6; } |
| 21578 | | |
| 21579 | | for element in $INCINTL; do |
| 21580 | | haveit= |
| 21581 | | for x in $CPPFLAGS; do |
| 21582 | | |
| 21583 | | acl_save_prefix="$prefix" |
| 21584 | | prefix="$acl_final_prefix" |
| 21585 | | acl_save_exec_prefix="$exec_prefix" |
| 21586 | | exec_prefix="$acl_final_exec_prefix" |
| 21587 | | eval x=\"$x\" |
| 21588 | | exec_prefix="$acl_save_exec_prefix" |
| 21589 | | prefix="$acl_save_prefix" |
| 21590 | | |
| 21591 | | if test "X$x" = "X$element"; then |
| 21592 | | haveit=yes |
| 21593 | | break |
| 21594 | | fi |
| 21595 | | done |
| 21596 | | if test -z "$haveit"; then |
| 21597 | | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 21598 | | fi |
| 21599 | | done |
| 21600 | | |
| 21601 | | fi |
| 21602 | | |
| 21603 | | |
| 21604 | | cat >>confdefs.h <<\_ACEOF |
| 21605 | | #define HAVE_GETTEXT 1 |
| 21606 | | _ACEOF |
| 21607 | | |
| 21608 | | |
| 21609 | | cat >>confdefs.h <<\_ACEOF |
| 21610 | | #define HAVE_DCGETTEXT 1 |
| 21611 | | _ACEOF |
| 21612 | | |
| 21613 | | fi |
| 21614 | | |
| 21615 | | POSUB=po |
| 21616 | | fi |
| 21617 | | |
| 21618 | | |
| 21619 | | |
| 21620 | | INTLLIBS="$LIBINTL" |
| 21621 | | |
| 21622 | | |
| 21623 | | |
| 21624 | | |
| 21625 | | |
| 21626 | | |
| 21627 | | |
| 21628 | | |
| 21629 | | |
| 21630 | | # Checks for programs. |
| 21631 | | ac_ext=c |
| 21632 | | ac_cpp='$CPP $CPPFLAGS' |
| 21633 | | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21634 | | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21635 | | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21636 | | if test -n "$ac_tool_prefix"; then |
| 21637 | | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 21638 | | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 21639 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 21640 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 21641 | | if test "${ac_cv_prog_CC+set}" = set; then |
| 21642 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21643 | | else |
| 21644 | | if test -n "$CC"; then |
| 21645 | | ac_cv_prog_CC="$CC" # Let the user override the test. |
| | 19411 | if test -n "$CXX"; then |
| | 19412 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 22406 | | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 22407 | | am__fastdepCC_TRUE= |
| 22408 | | am__fastdepCC_FALSE='#' |
| 22409 | | else |
| 22410 | | am__fastdepCC_TRUE='#' |
| 22411 | | am__fastdepCC_FALSE= |
| 22412 | | fi |
| 22413 | | |
| 22414 | | |
| 22415 | | ac_ext=c |
| 22416 | | ac_cpp='$CPP $CPPFLAGS' |
| 22417 | | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22418 | | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22419 | | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22420 | | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 22421 | | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 22422 | | # On Suns, sometimes $CPP names a directory. |
| 22423 | | if test -n "$CPP" && test -d "$CPP"; then |
| 22424 | | CPP= |
| 22425 | | fi |
| 22426 | | if test -z "$CPP"; then |
| 22427 | | if test "${ac_cv_prog_CPP+set}" = set; then |
| 22428 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22429 | | else |
| 22430 | | # Double quotes because CPP needs to be expanded |
| 22431 | | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 22432 | | do |
| 22433 | | ac_preproc_ok=false |
| 22434 | | for ac_c_preproc_warn_flag in '' yes |
| 22435 | | do |
| 22436 | | # Use a header file that comes with gcc, so configuring glibc |
| 22437 | | # with a fresh cross-compiler works. |
| 22438 | | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22439 | | # <limits.h> exists even on freestanding compilers. |
| 22440 | | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 22441 | | # not just through cpp. "Syntax error" is here to catch this case. |
| 22442 | | cat >conftest.$ac_ext <<_ACEOF |
| 22443 | | /* confdefs.h. */ |
| 22444 | | _ACEOF |
| 22445 | | cat confdefs.h >>conftest.$ac_ext |
| 22446 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22447 | | /* end confdefs.h. */ |
| 22448 | | #ifdef __STDC__ |
| 22449 | | # include <limits.h> |
| 22450 | | #else |
| 22451 | | # include <assert.h> |
| 22452 | | #endif |
| 22453 | | Syntax error |
| 22454 | | _ACEOF |
| 22455 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22456 | | case "(($ac_try" in |
| 22457 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22458 | | *) ac_try_echo=$ac_try;; |
| 22459 | | esac |
| 22460 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22461 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 22462 | | ac_status=$? |
| 22463 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 22464 | | rm -f conftest.er1 |
| 22465 | | cat conftest.err >&5 |
| 22466 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22467 | | (exit $ac_status); } >/dev/null && { |
| 22468 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 22469 | | test ! -s conftest.err |
| 22470 | | }; then |
| 22471 | | : |
| 22472 | | else |
| 22473 | | echo "$as_me: failed program was:" >&5 |
| 22474 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22475 | | |
| 22476 | | # Broken: fails on valid input. |
| 22477 | | continue |
| 22478 | | fi |
| 22479 | | |
| 22480 | | rm -f conftest.err conftest.$ac_ext |
| 22481 | | |
| 22482 | | # OK, works on sane cases. Now check whether nonexistent headers |
| 22483 | | # can be detected and how. |
| 22484 | | cat >conftest.$ac_ext <<_ACEOF |
| 22485 | | /* confdefs.h. */ |
| 22486 | | _ACEOF |
| 22487 | | cat confdefs.h >>conftest.$ac_ext |
| 22488 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22489 | | /* end confdefs.h. */ |
| 22490 | | #include <ac_nonexistent.h> |
| 22491 | | _ACEOF |
| 22492 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22493 | | case "(($ac_try" in |
| 22494 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22495 | | *) ac_try_echo=$ac_try;; |
| 22496 | | esac |
| 22497 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22498 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 22499 | | ac_status=$? |
| 22500 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 22501 | | rm -f conftest.er1 |
| 22502 | | cat conftest.err >&5 |
| 22503 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22504 | | (exit $ac_status); } >/dev/null && { |
| 22505 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 22506 | | test ! -s conftest.err |
| 22507 | | }; then |
| 22508 | | # Broken: success on invalid input. |
| 22509 | | continue |
| 22510 | | else |
| 22511 | | echo "$as_me: failed program was:" >&5 |
| 22512 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22513 | | |
| 22514 | | # Passes both tests. |
| 22515 | | ac_preproc_ok=: |
| 22516 | | break |
| 22517 | | fi |
| 22518 | | |
| 22519 | | rm -f conftest.err conftest.$ac_ext |
| 22520 | | |
| 22521 | | done |
| 22522 | | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 22523 | | rm -f conftest.err conftest.$ac_ext |
| 22524 | | if $ac_preproc_ok; then |
| 22525 | | break |
| 22526 | | fi |
| 22527 | | |
| 22528 | | done |
| 22529 | | ac_cv_prog_CPP=$CPP |
| 22530 | | |
| 22531 | | fi |
| 22532 | | CPP=$ac_cv_prog_CPP |
| 22533 | | else |
| 22534 | | ac_cv_prog_CPP=$CPP |
| 22535 | | fi |
| 22536 | | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 22537 | | echo "${ECHO_T}$CPP" >&6; } |
| 22538 | | ac_preproc_ok=false |
| 22539 | | for ac_c_preproc_warn_flag in '' yes |
| 22540 | | do |
| 22541 | | # Use a header file that comes with gcc, so configuring glibc |
| 22542 | | # with a fresh cross-compiler works. |
| 22543 | | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22544 | | # <limits.h> exists even on freestanding compilers. |
| 22545 | | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 22546 | | # not just through cpp. "Syntax error" is here to catch this case. |
| 22547 | | cat >conftest.$ac_ext <<_ACEOF |
| 22548 | | /* confdefs.h. */ |
| 22549 | | _ACEOF |
| 22550 | | cat confdefs.h >>conftest.$ac_ext |
| 22551 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22552 | | /* end confdefs.h. */ |
| 22553 | | #ifdef __STDC__ |
| 22554 | | # include <limits.h> |
| 22555 | | #else |
| 22556 | | # include <assert.h> |
| 22557 | | #endif |
| 22558 | | Syntax error |
| 22559 | | _ACEOF |
| 22560 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22561 | | case "(($ac_try" in |
| 22562 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22563 | | *) ac_try_echo=$ac_try;; |
| 22564 | | esac |
| 22565 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22566 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 22567 | | ac_status=$? |
| 22568 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 22569 | | rm -f conftest.er1 |
| 22570 | | cat conftest.err >&5 |
| 22571 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22572 | | (exit $ac_status); } >/dev/null && { |
| 22573 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 22574 | | test ! -s conftest.err |
| 22575 | | }; then |
| 22576 | | : |
| 22577 | | else |
| 22578 | | echo "$as_me: failed program was:" >&5 |
| 22579 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22580 | | |
| 22581 | | # Broken: fails on valid input. |
| 22582 | | continue |
| 22583 | | fi |
| 22584 | | |
| 22585 | | rm -f conftest.err conftest.$ac_ext |
| 22586 | | |
| 22587 | | # OK, works on sane cases. Now check whether nonexistent headers |
| 22588 | | # can be detected and how. |
| 22589 | | cat >conftest.$ac_ext <<_ACEOF |
| 22590 | | /* confdefs.h. */ |
| 22591 | | _ACEOF |
| 22592 | | cat confdefs.h >>conftest.$ac_ext |
| 22593 | | cat >>conftest.$ac_ext <<_ACEOF |
| 22594 | | /* end confdefs.h. */ |
| 22595 | | #include <ac_nonexistent.h> |
| 22596 | | _ACEOF |
| 22597 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22598 | | case "(($ac_try" in |
| 22599 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22600 | | *) ac_try_echo=$ac_try;; |
| 22601 | | esac |
| 22602 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22603 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 22604 | | ac_status=$? |
| 22605 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 22606 | | rm -f conftest.er1 |
| 22607 | | cat conftest.err >&5 |
| 22608 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22609 | | (exit $ac_status); } >/dev/null && { |
| 22610 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 22611 | | test ! -s conftest.err |
| 22612 | | }; then |
| 22613 | | # Broken: success on invalid input. |
| 22614 | | continue |
| 22615 | | else |
| 22616 | | echo "$as_me: failed program was:" >&5 |
| 22617 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22618 | | |
| 22619 | | # Passes both tests. |
| 22620 | | ac_preproc_ok=: |
| 22621 | | break |
| 22622 | | fi |
| 22623 | | |
| 22624 | | rm -f conftest.err conftest.$ac_ext |
| 22625 | | |
| 22626 | | done |
| 22627 | | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 22628 | | rm -f conftest.err conftest.$ac_ext |
| 22629 | | if $ac_preproc_ok; then |
| 22630 | | : |
| 22631 | | else |
| 22632 | | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 22633 | | See \`config.log' for more details." >&5 |
| 22634 | | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 22635 | | See \`config.log' for more details." >&2;} |
| 22636 | | { (exit 1); exit 1; }; } |
| 22637 | | fi |
| 22638 | | |
| 22639 | | ac_ext=c |
| 22640 | | ac_cpp='$CPP $CPPFLAGS' |
| 22641 | | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22642 | | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22643 | | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22644 | | |
| 22645 | | # Find a good install program. We prefer a C program (faster), |
| 22646 | | # so one script is as good as another. But avoid the broken or |
| 22647 | | # incompatible versions: |
| 22648 | | # SysV /etc/install, /usr/sbin/install |
| 22649 | | # SunOS /usr/etc/install |
| 22650 | | # IRIX /sbin/install |
| 22651 | | # AIX /bin/install |
| 22652 | | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 22653 | | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 22654 | | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 22655 | | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 22656 | | # OS/2's system install, which has a completely different semantic |
| 22657 | | # ./install, which can be erroneously created by make from ./install.sh. |
| 22658 | | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 22659 | | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 22660 | | if test -z "$INSTALL"; then |
| 22661 | | if test "${ac_cv_path_install+set}" = set; then |
| 22662 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22663 | | else |
| 22664 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22665 | | for as_dir in $PATH |
| 22666 | | do |
| 22667 | | IFS=$as_save_IFS |
| 22668 | | test -z "$as_dir" && as_dir=. |
| 22669 | | # Account for people who put trailing slashes in PATH elements. |
| 22670 | | case $as_dir/ in |
| 22671 | | ./ | .// | /cC/* | \ |
| 22672 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 22673 | | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 22674 | | /usr/ucb/* ) ;; |
| 22675 | | *) |
| 22676 | | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 22677 | | # Don't use installbsd from OSF since it installs stuff as root |
| 22678 | | # by default. |
| 22679 | | for ac_prog in ginstall scoinst install; do |
| 22680 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22681 | | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 22682 | | if test $ac_prog = install && |
| 22683 | | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 22684 | | # AIX install. It has an incompatible calling convention. |
| 22685 | | : |
| 22686 | | elif test $ac_prog = install && |
| 22687 | | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 22688 | | # program-specific install script used by HP pwplus--don't use. |
| 22689 | | : |
| 22690 | | else |
| 22691 | | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 22692 | | break 3 |
| 22693 | | fi |
| 22694 | | fi |
| 22695 | | done |
| 22696 | | done |
| 22697 | | ;; |
| 22698 | | esac |
| 22699 | | done |
| 22700 | | IFS=$as_save_IFS |
| 22701 | | |
| 22702 | | |
| 22703 | | fi |
| 22704 | | if test "${ac_cv_path_install+set}" = set; then |
| 22705 | | INSTALL=$ac_cv_path_install |
| 22706 | | else |
| 22707 | | # As a last resort, use the slow shell script. Don't cache a |
| 22708 | | # value for INSTALL within a source directory, because that will |
| 22709 | | # break other packages using the cache if that directory is |
| 22710 | | # removed, or if the value is a relative name. |
| 22711 | | INSTALL=$ac_install_sh |
| 22712 | | fi |
| 22713 | | fi |
| 22714 | | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 22715 | | echo "${ECHO_T}$INSTALL" >&6; } |
| 22716 | | |
| 22717 | | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 22718 | | # It thinks the first close brace ends the variable substitution. |
| 22719 | | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 22720 | | |
| 22721 | | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 22722 | | |
| 22723 | | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 22724 | | |
| 22725 | | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 22726 | | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 22727 | | LN_S=$as_ln_s |
| 22728 | | if test "$LN_S" = "ln -s"; then |
| 22729 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22730 | | echo "${ECHO_T}yes" >&6; } |
| 22731 | | else |
| 22732 | | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 22733 | | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 22734 | | fi |
| 22735 | | |
| 22736 | | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 22737 | | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 22738 | | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 22739 | | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22740 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22741 | | else |
| 22742 | | cat >conftest.make <<\_ACEOF |
| 22743 | | SHELL = /bin/sh |
| 22744 | | all: |
| 22745 | | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 22746 | | _ACEOF |
| 22747 | | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 22748 | | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 22749 | | *@@@%%%=?*=@@@%%%*) |
| 22750 | | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 22751 | | *) |
| 22752 | | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 22753 | | esac |
| 22754 | | rm -f conftest.make |
| 22755 | | fi |
| 22756 | | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 22757 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22758 | | echo "${ECHO_T}yes" >&6; } |
| 22759 | | SET_MAKE= |
| 22760 | | else |
| 22761 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 22762 | | echo "${ECHO_T}no" >&6; } |
| 22763 | | SET_MAKE="MAKE=${MAKE-make}" |
| 22764 | | fi |
| 22765 | | |
| 22766 | | if test -n "$ac_tool_prefix"; then |
| 22767 | | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 22768 | | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 22769 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 22770 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 22771 | | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 22772 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22773 | | else |
| 22774 | | if test -n "$RANLIB"; then |
| 22775 | | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 22776 | | else |
| 22777 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22778 | | for as_dir in $PATH |
| 22779 | | do |
| 22780 | | IFS=$as_save_IFS |
| 22781 | | test -z "$as_dir" && as_dir=. |
| 22782 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22783 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 22784 | | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 22785 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22786 | | break 2 |
| 22787 | | fi |
| 22788 | | done |
| 22789 | | done |
| 22790 | | IFS=$as_save_IFS |
| 22791 | | |
| 22792 | | fi |
| 22793 | | fi |
| 22794 | | RANLIB=$ac_cv_prog_RANLIB |
| 22795 | | if test -n "$RANLIB"; then |
| 22796 | | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 22797 | | echo "${ECHO_T}$RANLIB" >&6; } |
| 22798 | | else |
| 22799 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 22800 | | echo "${ECHO_T}no" >&6; } |
| 22801 | | fi |
| 22802 | | |
| 22803 | | |
| 22804 | | fi |
| 22805 | | if test -z "$ac_cv_prog_RANLIB"; then |
| 22806 | | ac_ct_RANLIB=$RANLIB |
| 22807 | | # Extract the first word of "ranlib", so it can be a program name with args. |
| 22808 | | set dummy ranlib; ac_word=$2 |
| 22809 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 22810 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 22811 | | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 22812 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22813 | | else |
| 22814 | | if test -n "$ac_ct_RANLIB"; then |
| 22815 | | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 22816 | | else |
| 22817 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22818 | | for as_dir in $PATH |
| 22819 | | do |
| 22820 | | IFS=$as_save_IFS |
| 22821 | | test -z "$as_dir" && as_dir=. |
| 22822 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22823 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 22824 | | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 22825 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22826 | | break 2 |
| 22827 | | fi |
| 22828 | | done |
| 22829 | | done |
| 22830 | | IFS=$as_save_IFS |
| 22831 | | |
| 22832 | | fi |
| 22833 | | fi |
| 22834 | | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 22835 | | if test -n "$ac_ct_RANLIB"; then |
| 22836 | | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 22837 | | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 22838 | | else |
| 22839 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 22840 | | echo "${ECHO_T}no" >&6; } |
| 22841 | | fi |
| 22842 | | |
| 22843 | | if test "x$ac_ct_RANLIB" = x; then |
| 22844 | | RANLIB=":" |
| 22845 | | else |
| 22846 | | case $cross_compiling:$ac_tool_warned in |
| 22847 | | yes:) |
| 22848 | | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 22849 | | whose name does not start with the host triplet. If you think this |
| 22850 | | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 22851 | | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 22852 | | whose name does not start with the host triplet. If you think this |
| 22853 | | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 22854 | | ac_tool_warned=yes ;; |
| 22855 | | esac |
| 22856 | | RANLIB=$ac_ct_RANLIB |
| 22857 | | fi |
| 22858 | | else |
| 22859 | | RANLIB="$ac_cv_prog_RANLIB" |
| 22860 | | fi |
| 22861 | | |
| 22862 | | |
| 22863 | | |
| 22864 | | |
| 22865 | | # Checks for header files. |
| | 19855 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| | 19856 | am__fastdepCXX_TRUE= |
| | 19857 | am__fastdepCXX_FALSE='#' |
| | 19858 | else |
| | 19859 | am__fastdepCXX_TRUE='#' |
| | 19860 | am__fastdepCXX_FALSE= |
| | 19861 | fi |
| | 19862 | |
| | 19863 | |
| 23040 | | |
| 23041 | | |
| 23042 | | |
| 23043 | | |
| 23044 | | for ac_header in fcntl.h stdlib.h string.h unistd.h |
| | 20038 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| | 20039 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| | 20040 | if test "${ac_cv_c_bigendian+set}" = set; then |
| | 20041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 20042 | else |
| | 20043 | # See if sys/param.h defines the BYTE_ORDER macro. |
| | 20044 | cat >conftest.$ac_ext <<_ACEOF |
| | 20045 | /* confdefs.h. */ |
| | 20046 | _ACEOF |
| | 20047 | cat confdefs.h >>conftest.$ac_ext |
| | 20048 | cat >>conftest.$ac_ext <<_ACEOF |
| | 20049 | /* end confdefs.h. */ |
| | 20050 | #include <sys/types.h> |
| | 20051 | #include <sys/param.h> |
| | 20052 | |
| | 20053 | int |
| | 20054 | main () |
| | 20055 | { |
| | 20056 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| | 20057 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| | 20058 | bogus endian macros |
| | 20059 | #endif |
| | 20060 | |
| | 20061 | ; |
| | 20062 | return 0; |
| | 20063 | } |
| | 20064 | _ACEOF |
| | 20065 | rm -f conftest.$ac_objext |
| | 20066 | if { (ac_try="$ac_compile" |
| | 20067 | case "(($ac_try" in |
| | 20068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 20069 | *) ac_try_echo=$ac_try;; |
| | 20070 | esac |
| | 20071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 20072 | (eval "$ac_compile") 2>conftest.er1 |
| | 20073 | ac_status=$? |
| | 20074 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 20075 | rm -f conftest.er1 |
| | 20076 | cat conftest.err >&5 |
| | 20077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 20078 | (exit $ac_status); } && { |
| | 20079 | test -z "$ac_c_werror_flag" || |
| | 20080 | test ! -s conftest.err |
| | 20081 | } && test -s conftest.$ac_objext; then |
| | 20082 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| | 20083 | cat >conftest.$ac_ext <<_ACEOF |
| | 20084 | /* confdefs.h. */ |
| | 20085 | _ACEOF |
| | 20086 | cat confdefs.h >>conftest.$ac_ext |
| | 20087 | cat >>conftest.$ac_ext <<_ACEOF |
| | 20088 | /* end confdefs.h. */ |
| | 20089 | #include <sys/types.h> |
| | 20090 | #include <sys/param.h> |
| | 20091 | |
| | 20092 | int |
| | 20093 | main () |
| | 20094 | { |
| | 20095 | #if BYTE_ORDER != BIG_ENDIAN |
| | 20096 | not big endian |
| | 20097 | #endif |
| | 20098 | |
| | 20099 | ; |
| | 20100 | return 0; |
| | 20101 | } |
| | 20102 | _ACEOF |
| | 20103 | rm -f conftest.$ac_objext |
| | 20104 | if { (ac_try="$ac_compile" |
| | 20105 | case "(($ac_try" in |
| | 20106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 20107 | *) ac_try_echo=$ac_try;; |
| | 20108 | esac |
| | 20109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 20110 | (eval "$ac_compile") 2>conftest.er1 |
| | 20111 | ac_status=$? |
| | 20112 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 20113 | rm -f conftest.er1 |
| | 20114 | cat conftest.err >&5 |
| | 20115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 20116 | (exit $ac_status); } && { |
| | 20117 | test -z "$ac_c_werror_flag" || |
| | 20118 | test ! -s conftest.err |
| | 20119 | } && test -s conftest.$ac_objext; then |
| | 20120 | ac_cv_c_bigendian=yes |
| | 20121 | else |
| | 20122 | echo "$as_me: failed program was:" >&5 |
| | 20123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 20124 | |
| | 20125 | ac_cv_c_bigendian=no |
| | 20126 | fi |
| | 20127 | |
| | 20128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 20129 | else |
| | 20130 | echo "$as_me: failed program was:" >&5 |
| | 20131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 20132 | |
| | 20133 | # It does not; compile a test program. |
| | 20134 | if test "$cross_compiling" = yes; then |
| | 20135 | # try to guess the endianness by grepping values into an object file |
| | 20136 | ac_cv_c_bigendian=unknown |
| | 20137 | cat >conftest.$ac_ext <<_ACEOF |
| | 20138 | /* confdefs.h. */ |
| | 20139 | _ACEOF |
| | 20140 | cat confdefs.h >>conftest.$ac_ext |
| | 20141 | cat >>conftest.$ac_ext <<_ACEOF |
| | 20142 | /* end confdefs.h. */ |
| | 20143 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| | 20144 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| | 20145 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| | 20146 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| | 20147 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| | 20148 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| | 20149 | int |
| | 20150 | main () |
| | 20151 | { |
| | 20152 | _ascii (); _ebcdic (); |
| | 20153 | ; |
| | 20154 | return 0; |
| | 20155 | } |
| | 20156 | _ACEOF |
| | 20157 | rm -f conftest.$ac_objext |
| | 20158 | if { (ac_try="$ac_compile" |
| | 20159 | case "(($ac_try" in |
| | 20160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 20161 | *) ac_try_echo=$ac_try;; |
| | 20162 | esac |
| | 20163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 20164 | (eval "$ac_compile") 2>conftest.er1 |
| | 20165 | ac_status=$? |
| | 20166 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 20167 | rm -f conftest.er1 |
| | 20168 | cat conftest.err >&5 |
| | 20169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 20170 | (exit $ac_status); } && { |
| | 20171 | test -z "$ac_c_werror_flag" || |
| | 20172 | test ! -s conftest.err |
| | 20173 | } && test -s conftest.$ac_objext; then |
| | 20174 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| | 20175 | ac_cv_c_bigendian=yes |
| | 20176 | fi |
| | 20177 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| | 20178 | if test "$ac_cv_c_bigendian" = unknown; then |
| | 20179 | ac_cv_c_bigendian=no |
| | 20180 | else |
| | 20181 | # finding both strings is unlikely to happen, but who knows? |
| | 20182 | ac_cv_c_bigendian=unknown |
| | 20183 | fi |
| | 20184 | fi |
| | 20185 | else |
| | 20186 | echo "$as_me: failed program was:" >&5 |
| | 20187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 20188 | |
| | 20189 | |
| | 20190 | fi |
| | 20191 | |
| | 20192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 20193 | else |
| | 20194 | cat >conftest.$ac_ext <<_ACEOF |
| | 20195 | /* confdefs.h. */ |
| | 20196 | _ACEOF |
| | 20197 | cat confdefs.h >>conftest.$ac_ext |
| | 20198 | cat >>conftest.$ac_ext <<_ACEOF |
| | 20199 | /* end confdefs.h. */ |
| | 20200 | $ac_includes_default |
| | 20201 | int |
| | 20202 | main () |
| | 20203 | { |
| | 20204 | |
| | 20205 | /* Are we little or big endian? From Harbison&Steele. */ |
| | 20206 | union |
| | 20207 | { |
| | 20208 | long int l; |
| | 20209 | char c[sizeof (long int)]; |
| | 20210 | } u; |
| | 20211 | u.l = 1; |
| | 20212 | return u.c[sizeof (long int) - 1] == 1; |
| | 20213 | |
| | 20214 | ; |
| | 20215 | return 0; |
| | 20216 | } |
| | 20217 | _ACEOF |
| | 20218 | rm -f conftest$ac_exeext |
| | 20219 | if { (ac_try="$ac_link" |
| | 20220 | case "(($ac_try" in |
| | 20221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 20222 | *) ac_try_echo=$ac_try;; |
| | 20223 | esac |
| | 20224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 20225 | (eval "$ac_link") 2>&5 |
| | 20226 | ac_status=$? |
| | 20227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 20228 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| | 20229 | { (case "(($ac_try" in |
| | 20230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | 20231 | *) ac_try_echo=$ac_try;; |
| | 20232 | esac |
| | 20233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | 20234 | (eval "$ac_try") 2>&5 |
| | 20235 | ac_status=$? |
| | 20236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 20237 | (exit $ac_status); }; }; then |
| | 20238 | ac_cv_c_bigendian=no |
| | 20239 | else |
| | 20240 | echo "$as_me: program exited with status $ac_status" >&5 |
| | 20241 | echo "$as_me: failed program was:" >&5 |
| | 20242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 20243 | |
| | 20244 | ( exit $ac_status ) |
| | 20245 | ac_cv_c_bigendian=yes |
| | 20246 | fi |
| | 20247 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| | 20248 | fi |
| | 20249 | |
| | 20250 | |
| | 20251 | fi |
| | 20252 | |
| | 20253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 20254 | fi |
| | 20255 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| | 20256 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| | 20257 | case $ac_cv_c_bigendian in |
| | 20258 | yes) |
| | 20259 | |
| | 20260 | cat >>confdefs.h <<\_ACEOF |
| | 20261 | #define WORDS_BIGENDIAN 1 |
| | 20262 | _ACEOF |
| | 20263 | ;; |
| | 20264 | no) |
| | 20265 | ;; |
| | 20266 | *) |
| | 20267 | { { echo "$as_me:$LINENO: error: unknown endianness |
| | 20268 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| | 20269 | echo "$as_me: error: unknown endianness |
| | 20270 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| | 20271 | { (exit 1); exit 1; }; } ;; |
| | 20272 | esac |
| | 20273 | |
| | 20274 | |
| | 20275 | |
| | 20276 | |
| | 20277 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| | 20278 | if test -n "$ac_tool_prefix"; then |
| | 20279 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| | 20280 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| | 20281 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 20282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| | 20283 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| | 20284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 20285 | else |
| | 20286 | case $PKG_CONFIG in |
| | 20287 | [\\/]* | ?:[\\/]*) |
| | 20288 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| | 20289 | ;; |
| | 20290 | *) |
| | 20291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 20292 | for as_dir in $PATH |
| | 20293 | do |
| | 20294 | IFS=$as_save_IFS |
| | 20295 | test -z "$as_dir" && as_dir=. |
| | 20296 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 20297 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| | 20298 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| | 20299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 20300 | break 2 |
| | 20301 | fi |
| | 20302 | done |
| | 20303 | done |
| | 20304 | IFS=$as_save_IFS |
| | 20305 | |
| | 20306 | ;; |
| | 20307 | esac |
| | 20308 | fi |
| | 20309 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| | 20310 | if test -n "$PKG_CONFIG"; then |
| | 20311 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| | 20312 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| | 20313 | else |
| | 20314 | { echo "$as_me:$LINENO: result: no" >&5 |
| | 20315 | echo "${ECHO_T}no" >&6; } |
| | 20316 | fi |
| | 20317 | |
| | 20318 | |
| | 20319 | fi |
| | 20320 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| | 20321 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| | 20322 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| | 20323 | set dummy pkg-config; ac_word=$2 |
| | 20324 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 20325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| | 20326 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| | 20327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 20328 | else |
| | 20329 | case $ac_pt_PKG_CONFIG in |
| | 20330 | [\\/]* | ?:[\\/]*) |
| | 20331 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| | 20332 | ;; |
| | 20333 | *) |
| | 20334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 20335 | for as_dir in $PATH |
| | 20336 | do |
| | 20337 | IFS=$as_save_IFS |
| | 20338 | test -z "$as_dir" && as_dir=. |
| | 20339 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 20340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| | 20341 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| | 20342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 20343 | break 2 |
| | 20344 | fi |
| | 20345 | done |
| | 20346 | done |
| | 20347 | IFS=$as_save_IFS |
| | 20348 | |
| | 20349 | ;; |
| | 20350 | esac |
| | 20351 | fi |
| | 20352 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| | 20353 | if test -n "$ac_pt_PKG_CONFIG"; then |
| | 20354 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| | 20355 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| | 20356 | else |
| | 20357 | { echo "$as_me:$LINENO: result: no" >&5 |
| | 20358 | echo "${ECHO_T}no" >&6; } |
| | 20359 | fi |
| | 20360 | |
| | 20361 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| | 20362 | PKG_CONFIG="" |
| | 20363 | else |
| | 20364 | case $cross_compiling:$ac_tool_warned in |
| | 20365 | yes:) |
| | 20366 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| | 20367 | whose name does not start with the host triplet. If you think this |
| | 20368 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| | 20369 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| | 20370 | whose name does not start with the host triplet. If you think this |
| | 20371 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| | 20372 | ac_tool_warned=yes ;; |
| | 20373 | esac |
| | 20374 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| | 20375 | fi |
| | 20376 | else |
| | 20377 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| | 20378 | fi |
| | 20379 | |
| | 20380 | fi |
| | 20381 | if test -n "$PKG_CONFIG"; then |
| | 20382 | _pkg_min_version=0.9.0 |
| | 20383 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| | 20384 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
| | 20385 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| | 20386 | { echo "$as_me:$LINENO: result: yes" >&5 |
| | 20387 | echo "${ECHO_T}yes" >&6; } |
| | 20388 | else |
| | 20389 | { echo "$as_me:$LINENO: result: no" >&5 |
| | 20390 | echo "${ECHO_T}no" >&6; } |
| | 20391 | PKG_CONFIG="" |
| | 20392 | fi |
| | 20393 | |
| | 20394 | fi |
| | 20395 | |
| | 20396 | pkg_failed=no |
| | 20397 | { echo "$as_me:$LINENO: checking for SRC" >&5 |
| | 20398 | echo $ECHO_N "checking for SRC... $ECHO_C" >&6; } |
| | 20399 | |
| | 20400 | if test -n "$PKG_CONFIG"; then |
| | 20401 | if test -n "$SRC_CFLAGS"; then |
| | 20402 | pkg_cv_SRC_CFLAGS="$SRC_CFLAGS" |
| | 20403 | else |
| | 20404 | if test -n "$PKG_CONFIG" && \ |
| | 20405 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate\"") >&5 |
| | 20406 | ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5 |
| | 20407 | ac_status=$? |
| | 20408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 20409 | (exit $ac_status); }; then |
| | 20410 | pkg_cv_SRC_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null` |
| | 20411 | else |
| | 20412 | pkg_failed=yes |
| | 20413 | fi |
| | 20414 | fi |
| | 20415 | else |
| | 20416 | pkg_failed=untried |
| | 20417 | fi |
| | 20418 | if test -n "$PKG_CONFIG"; then |
| | 20419 | if test -n "$SRC_LIBS"; then |
| | 20420 | pkg_cv_SRC_LIBS="$SRC_LIBS" |
| | 20421 | else |
| | 20422 | if test -n "$PKG_CONFIG" && \ |
| | 20423 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate\"") >&5 |
| | 20424 | ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5 |
| | 20425 | ac_status=$? |
| | 20426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 20427 | (exit $ac_status); }; then |
| | 20428 | pkg_cv_SRC_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null` |
| | 20429 | else |
| | 20430 | pkg_failed=yes |
| | 20431 | fi |
| | 20432 | fi |
| | 20433 | else |
| | 20434 | pkg_failed=untried |
| | 20435 | fi |
| | 20436 | |
| | 20437 | |
| | 20438 | |
| | 20439 | if test $pkg_failed = yes; then |
| | 20440 | |
| | 20441 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| | 20442 | _pkg_short_errors_supported=yes |
| | 20443 | else |
| | 20444 | _pkg_short_errors_supported=no |
| | 20445 | fi |
| | 20446 | if test $_pkg_short_errors_supported = yes; then |
| | 20447 | SRC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "samplerate"` |
| | 20448 | else |
| | 20449 | SRC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate"` |
| | 20450 | fi |
| | 20451 | # Put the nasty error message in config.log where it belongs |
| | 20452 | echo "$SRC_PKG_ERRORS" >&5 |
| | 20453 | |
| | 20454 | { { echo "$as_me:$LINENO: error: Package requirements (samplerate) were not met: |
| | 20455 | |
| | 20456 | $SRC_PKG_ERRORS |
| | 20457 | |
| | 20458 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| | 20459 | installed software in a non-standard prefix. |
| | 20460 | |
| | 20461 | Alternatively, you may set the environment variables SRC_CFLAGS |
| | 20462 | and SRC_LIBS to avoid the need to call pkg-config. |
| | 20463 | See the pkg-config man page for more details. |
| | 20464 | " >&5 |
| | 20465 | echo "$as_me: error: Package requirements (samplerate) were not met: |
| | 20466 | |
| | 20467 | $SRC_PKG_ERRORS |
| | 20468 | |
| | 20469 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| | 20470 | installed software in a non-standard prefix. |
| | 20471 | |
| | 20472 | Alternatively, you may set the environment variables SRC_CFLAGS |
| | 20473 | and SRC_LIBS to avoid the need to call pkg-config. |
| | 20474 | See the pkg-config man page for more details. |
| | 20475 | " >&2;} |
| | 20476 | { (exit 1); exit 1; }; } |
| | 20477 | elif test $pkg_failed = untried; then |
| | 20478 | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
| | 20479 | is in your PATH or set the PKG_CONFIG environment variable to the full |
| | 20480 | path to pkg-config. |
| | 20481 | |
| | 20482 | Alternatively, you may set the environment variables SRC_CFLAGS |
| | 20483 | and SRC_LIBS to avoid the need to call pkg-config. |
| | 20484 | See the pkg-config man page for more details. |
| | 20485 | |
| | 20486 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| | 20487 | See \`config.log' for more details." >&5 |
| | 20488 | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
| | 20489 | is in your PATH or set the PKG_CONFIG environment variable to the full |
| | 20490 | path to pkg-config. |
| | 20491 | |
| | 20492 | Alternatively, you may set the environment variables SRC_CFLAGS |
| | 20493 | and SRC_LIBS to avoid the need to call pkg-config. |
| | 20494 | See the pkg-config man page for more details. |
| | 20495 | |
| | 20496 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| | 20497 | See \`config.log' for more details." >&2;} |
| | 20498 | { (exit 1); exit 1; }; } |
| | 20499 | else |
| | 20500 | SRC_CFLAGS=$pkg_cv_SRC_CFLAGS |
| | 20501 | SRC_LIBS=$pkg_cv_SRC_LIBS |
| | 20502 | { echo "$as_me:$LINENO: result: yes" >&5 |
| | 20503 | echo "${ECHO_T}yes" >&6; } |
| | 20504 | : |
| | 20505 | fi |
| | 20506 | |
| | 20507 | |
| | 20508 | |
| | 20509 | ##PKG_CHECK_MODULES([SNDFILE],[sndfile]) |
| | 20510 | ##AC_SUBST(SNDFILE_CFLAGS) |
| | 20511 | ##AC_SUBST(SNDFILE_LIBS) |
| | 20512 | |
| | 20513 | |
| | 20514 | pkg_failed=no |
| | 20515 | { echo "$as_me:$LINENO: checking for FFTW" >&5 |
| | 20516 | echo $ECHO_N "checking for FFTW... $ECHO_C" >&6; } |
| | 20517 | |
| | 20518 | if test -n "$PKG_CONFIG"; then |
| | 20519 | if test -n "$FFTW_CFLAGS"; then |
| | 20520 | pkg_cv_FFTW_CFLAGS="$FFTW_CFLAGS" |
| | 20521 | else |
| | 20522 | if test -n "$PKG_CONFIG" && \ |
| | 20523 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3\"") >&5 |
| | 20524 | ($PKG_CONFIG --exists --print-errors "fftw3") 2>&5 |
| | 20525 | ac_status=$? |
| | 20526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 20527 | (exit $ac_status); }; then |
| | 20528 | pkg_cv_FFTW_CFLAGS=`$PKG_CONFIG --cflags "fftw3" 2>/dev/null` |
| | 20529 | else |
| | 20530 | pkg_failed=yes |
| | 20531 | fi |
| | 20532 | fi |
| | 20533 | else |
| | 20534 | pkg_failed=untried |
| | 20535 | fi |
| | 20536 | if test -n "$PKG_CONFIG"; then |
| | 20537 | if test -n "$FFTW_LIBS"; then |
| | 20538 | pkg_cv_FFTW_LIBS="$FFTW_LIBS" |
| | 20539 | else |
| | 20540 | if test -n "$PKG_CONFIG" && \ |
| | 20541 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3\"") >&5 |
| | 20542 | ($PKG_CONFIG --exists --print-errors "fftw3") 2>&5 |
| | 20543 | ac_status=$? |
| | 20544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 20545 | (exit $ac_status); }; then |
| | 20546 | pkg_cv_FFTW_LIBS=`$PKG_CONFIG --libs "fftw3" 2>/dev/null` |
| | 20547 | else |
| | 20548 | pkg_failed=yes |
| | 20549 | fi |
| | 20550 | fi |
| | 20551 | else |
| | 20552 | pkg_failed=untried |
| | 20553 | fi |
| | 20554 | |
| | 20555 | |
| | 20556 | |
| | 20557 | if test $pkg_failed = yes; then |
| | 20558 | |
| | 20559 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| | 20560 | _pkg_short_errors_supported=yes |
| | 20561 | else |
| | 20562 | _pkg_short_errors_supported=no |
| | 20563 | fi |
| | 20564 | if test $_pkg_short_errors_supported = yes; then |
| | 20565 | FFTW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fftw3"` |
| | 20566 | else |
| | 20567 | FFTW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3"` |
| | 20568 | fi |
| | 20569 | # Put the nasty error message in config.log where it belongs |
| | 20570 | echo "$FFTW_PKG_ERRORS" >&5 |
| | 20571 | |
| | 20572 | { { echo "$as_me:$LINENO: error: Package requirements (fftw3) were not met: |
| | 20573 | |
| | 20574 | $FFTW_PKG_ERRORS |
| | 20575 | |
| | 20576 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| | 20577 | installed software in a non-standard prefix. |
| | 20578 | |
| | 20579 | Alternatively, you may set the environment variables FFTW_CFLAGS |
| | 20580 | and FFTW_LIBS to avoid the need to call pkg-config. |
| | 20581 | See the pkg-config man page for more details. |
| | 20582 | " >&5 |
| | 20583 | echo "$as_me: error: Package requirements (fftw3) were not met: |
| | 20584 | |
| | 20585 | $FFTW_PKG_ERRORS |
| | 20586 | |
| | 20587 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| | 20588 | installed software in a non-standard prefix. |
| | 20589 | |
| | 20590 | Alternatively, you may set the environment variables FFTW_CFLAGS |
| | 20591 | and FFTW_LIBS to avoid the need to call pkg-config. |
| | 20592 | See the pkg-config man page for more details. |
| | 20593 | " >&2;} |
| | 20594 | { (exit 1); exit 1; }; } |
| | 20595 | elif test $pkg_failed = untried; then |
| | 20596 | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
| | 20597 | is in your PATH or set the PKG_CONFIG environment variable to the full |
| | 20598 | path to pkg-config. |
| | 20599 | |
| | 20600 | Alternatively, you may set the environment variables FFTW_CFLAGS |
| | 20601 | and FFTW_LIBS to avoid the need to call pkg-config. |
| | 20602 | See the pkg-config man page for more details. |
| | 20603 | |
| | 20604 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| | 20605 | See \`config.log' for more details." >&5 |
| | 20606 | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
| | 20607 | is in your PATH or set the PKG_CONFIG environment variable to the full |
| | 20608 | path to pkg-config. |
| | 20609 | |
| | 20610 | Alternatively, you may set the environment variables FFTW_CFLAGS |
| | 20611 | and FFTW_LIBS to avoid the need to call pkg-config. |
| | 20612 | See the pkg-config man page for more details. |
| | 20613 | |
| | 20614 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| | 20615 | See \`config.log' for more details." >&2;} |
| | 20616 | { (exit 1); exit 1; }; } |
| | 20617 | else |
| | 20618 | FFTW_CFLAGS=$pkg_cv_FFTW_CFLAGS |
| | 20619 | FFTW_LIBS=$pkg_cv_FFTW_LIBS |
| | 20620 | { echo "$as_me:$LINENO: result: yes" >&5 |
| | 20621 | echo "${ECHO_T}yes" >&6; } |
| | 20622 | : |
| | 20623 | fi |
| | 20624 | |
| | 20625 | |
| | 20626 | |
| | 20627 | |
| | 20628 | for ac_header in ladspa.h |
| 23639 | | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
| 23640 | | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } |
| 23641 | | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
| 23642 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23643 | | else |
| 23644 | | if test "$cross_compiling" = yes; then |
| 23645 | | ac_cv_func_malloc_0_nonnull=no |
| 23646 | | else |
| 23647 | | cat >conftest.$ac_ext <<_ACEOF |
| 23648 | | /* confdefs.h. */ |
| 23649 | | _ACEOF |
| 23650 | | cat confdefs.h >>conftest.$ac_ext |
| 23651 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23652 | | /* end confdefs.h. */ |
| 23653 | | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
| 23654 | | # include <stdlib.h> |
| 23655 | | #else |
| 23656 | | char *malloc (); |
| 23657 | | #endif |
| 23658 | | |
| 23659 | | int |
| 23660 | | main () |
| 23661 | | { |
| 23662 | | return ! malloc (0); |
| 23663 | | ; |
| 23664 | | return 0; |
| 23665 | | } |
| 23666 | | _ACEOF |
| 23667 | | rm -f conftest$ac_exeext |
| 23668 | | if { (ac_try="$ac_link" |
| 23669 | | case "(($ac_try" in |
| 23670 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23671 | | *) ac_try_echo=$ac_try;; |
| 23672 | | esac |
| 23673 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23674 | | (eval "$ac_link") 2>&5 |
| 23675 | | ac_status=$? |
| 23676 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23677 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23678 | | { (case "(($ac_try" in |
| 23679 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23680 | | *) ac_try_echo=$ac_try;; |
| 23681 | | esac |
| 23682 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23683 | | (eval "$ac_try") 2>&5 |
| 23684 | | ac_status=$? |
| 23685 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23686 | | (exit $ac_status); }; }; then |
| 23687 | | ac_cv_func_malloc_0_nonnull=yes |
| 23688 | | else |
| 23689 | | echo "$as_me: program exited with status $ac_status" >&5 |
| 23690 | | echo "$as_me: failed program was:" >&5 |
| 23691 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23692 | | |
| 23693 | | ( exit $ac_status ) |
| 23694 | | ac_cv_func_malloc_0_nonnull=no |
| 23695 | | fi |
| 23696 | | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23697 | | fi |
| 23698 | | |
| 23699 | | |
| 23700 | | fi |
| 23701 | | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
| 23702 | | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } |
| 23703 | | if test $ac_cv_func_malloc_0_nonnull = yes; then |
| 23704 | | |
| 23705 | | cat >>confdefs.h <<\_ACEOF |
| 23706 | | #define HAVE_MALLOC 1 |
| 23707 | | _ACEOF |
| 23708 | | |
| 23709 | | else |
| 23710 | | cat >>confdefs.h <<\_ACEOF |
| 23711 | | #define HAVE_MALLOC 0 |
| 23712 | | _ACEOF |
| 23713 | | |
| 23714 | | case " $LIBOBJS " in |
| 23715 | | *" malloc.$ac_objext "* ) ;; |
| 23716 | | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
| 23717 | | ;; |
| 23718 | | esac |
| 23719 | | |
| 23720 | | |
| 23721 | | cat >>confdefs.h <<\_ACEOF |
| 23722 | | #define malloc rpl_malloc |
| 23723 | | _ACEOF |
| 23724 | | |
| 23725 | | fi |
| 23726 | | |
| 23727 | | |
| 23728 | | |
| 23729 | | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 23730 | | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
| 23731 | | if test "${ac_cv_type_signal+set}" = set; then |
| 23732 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23733 | | else |
| 23734 | | cat >conftest.$ac_ext <<_ACEOF |
| 23735 | | /* confdefs.h. */ |
| 23736 | | _ACEOF |
| 23737 | | cat confdefs.h >>conftest.$ac_ext |
| 23738 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23739 | | /* end confdefs.h. */ |
| 23740 | | #include <sys/types.h> |
| 23741 | | #include <signal.h> |
| 23742 | | |
| 23743 | | int |
| 23744 | | main () |
| 23745 | | { |
| 23746 | | return *(signal (0, 0)) (0) == 1; |
| 23747 | | ; |
| 23748 | | return 0; |
| 23749 | | } |
| 23750 | | _ACEOF |
| 23751 | | rm -f conftest.$ac_objext |
| 23752 | | if { (ac_try="$ac_compile" |
| 23753 | | case "(($ac_try" in |
| 23754 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23755 | | *) ac_try_echo=$ac_try;; |
| 23756 | | esac |
| 23757 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23758 | | (eval "$ac_compile") 2>conftest.er1 |
| 23759 | | ac_status=$? |
| 23760 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 23761 | | rm -f conftest.er1 |
| 23762 | | cat conftest.err >&5 |
| 23763 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23764 | | (exit $ac_status); } && { |
| 23765 | | test -z "$ac_c_werror_flag" || |
| 23766 | | test ! -s conftest.err |
| 23767 | | } && test -s conftest.$ac_objext; then |
| 23768 | | ac_cv_type_signal=int |
| 23769 | | else |
| 23770 | | echo "$as_me: failed program was:" >&5 |
| 23771 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23772 | | |
| 23773 | | ac_cv_type_signal=void |
| 23774 | | fi |
| 23775 | | |
| 23776 | | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23777 | | fi |
| 23778 | | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 23779 | | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
| 23780 | | |
| 23781 | | cat >>confdefs.h <<_ACEOF |
| 23782 | | #define RETSIGTYPE $ac_cv_type_signal |
| 23783 | | _ACEOF |
| 23784 | | |
| 23785 | | |
| 23786 | | |
| 23787 | | |
| 23788 | | for ac_func in memset strerror |
| 23789 | | do |
| 23790 | | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23791 | | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23792 | | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 23793 | | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 23794 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23795 | | else |
| 23796 | | cat >conftest.$ac_ext <<_ACEOF |
| 23797 | | /* confdefs.h. */ |
| 23798 | | _ACEOF |
| 23799 | | cat confdefs.h >>conftest.$ac_ext |
| 23800 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23801 | | /* end confdefs.h. */ |
| 23802 | | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23803 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23804 | | #define $ac_func innocuous_$ac_func |
| 23805 | | |
| 23806 | | /* System header to define __stub macros and hopefully few prototypes, |
| 23807 | | which can conflict with char $ac_func (); below. |
| 23808 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23809 | | <limits.h> exists even on freestanding compilers. */ |
| 23810 | | |
| 23811 | | #ifdef __STDC__ |
| 23812 | | # include <limits.h> |
| 23813 | | #else |
| 23814 | | # include <assert.h> |
| 23815 | | #endif |
| 23816 | | |
| 23817 | | #undef $ac_func |
| 23818 | | |
| 23819 | | /* Override any GCC internal prototype to avoid an error. |
| 23820 | | Use char because int might match the return type of a GCC |
| 23821 | | builtin and then its argument prototype would still apply. */ |
| 23822 | | #ifdef __cplusplus |
| 23823 | | extern "C" |
| 23824 | | #endif |
| 23825 | | char $ac_func (); |
| 23826 | | /* The GNU C library defines this for functions which it implements |
| 23827 | | to always fail with ENOSYS. Some functions are actually named |
| 23828 | | something starting with __ and the normal name is an alias. */ |
| 23829 | | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 23830 | | choke me |
| 23831 | | #endif |
| 23832 | | |
| 23833 | | int |
| 23834 | | main () |
| 23835 | | { |
| 23836 | | return $ac_func (); |
| 23837 | | ; |
| 23838 | | return 0; |
| 23839 | | } |
| 23840 | | _ACEOF |
| 23841 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23842 | | if { (ac_try="$ac_link" |
| 23843 | | case "(($ac_try" in |
| 23844 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23845 | | *) ac_try_echo=$ac_try;; |
| 23846 | | esac |
| 23847 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23848 | | (eval "$ac_link") 2>conftest.er1 |
| 23849 | | ac_status=$? |
| 23850 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 23851 | | rm -f conftest.er1 |
| 23852 | | cat conftest.err >&5 |
| 23853 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23854 | | (exit $ac_status); } && { |
| 23855 | | test -z "$ac_c_werror_flag" || |
| 23856 | | test ! -s conftest.err |
| 23857 | | } && test -s conftest$ac_exeext && |
| 23858 | | $as_test_x conftest$ac_exeext; then |
| 23859 | | eval "$as_ac_var=yes" |
| 23860 | | else |
| 23861 | | echo "$as_me: failed program was:" >&5 |
| 23862 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23863 | | |
| 23864 | | eval "$as_ac_var=no" |
| 23865 | | fi |
| 23866 | | |
| 23867 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23868 | | conftest$ac_exeext conftest.$ac_ext |
| 23869 | | fi |
| 23870 | | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23871 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23872 | | echo "${ECHO_T}$ac_res" >&6; } |
| 23873 | | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23874 | | cat >>confdefs.h <<_ACEOF |
| 23875 | | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23876 | | _ACEOF |
| 23877 | | |
| 23878 | | fi |
| 23879 | | done |
| 23880 | | |
| 23881 | | |
| 23882 | | for ac_func in sched_setscheduler |
| 23883 | | do |
| 23884 | | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23885 | | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23886 | | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 23887 | | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 23888 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23889 | | else |
| 23890 | | cat >conftest.$ac_ext <<_ACEOF |
| 23891 | | /* confdefs.h. */ |
| 23892 | | _ACEOF |
| 23893 | | cat confdefs.h >>conftest.$ac_ext |
| 23894 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23895 | | /* end confdefs.h. */ |
| 23896 | | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23897 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23898 | | #define $ac_func innocuous_$ac_func |
| 23899 | | |
| 23900 | | /* System header to define __stub macros and hopefully few prototypes, |
| 23901 | | which can conflict with char $ac_func (); below. |
| 23902 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23903 | | <limits.h> exists even on freestanding compilers. */ |
| 23904 | | |
| 23905 | | #ifdef __STDC__ |
| 23906 | | # include <limits.h> |
| 23907 | | #else |
| 23908 | | # include <assert.h> |
| 23909 | | #endif |
| 23910 | | |
| 23911 | | #undef $ac_func |
| 23912 | | |
| 23913 | | /* Override any GCC internal prototype to avoid an error. |
| 23914 | | Use char because int might match the return type of a GCC |
| 23915 | | builtin and then its argument prototype would still apply. */ |
| 23916 | | #ifdef __cplusplus |
| 23917 | | extern "C" |
| 23918 | | #endif |
| 23919 | | char $ac_func (); |
| 23920 | | /* The GNU C library defines this for functions which it implements |
| 23921 | | to always fail with ENOSYS. Some functions are actually named |
| 23922 | | something starting with __ and the normal name is an alias. */ |
| 23923 | | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 23924 | | choke me |
| 23925 | | #endif |
| 23926 | | |
| 23927 | | int |
| 23928 | | main () |
| 23929 | | { |
| 23930 | | return $ac_func (); |
| 23931 | | ; |
| 23932 | | return 0; |
| 23933 | | } |
| 23934 | | _ACEOF |
| 23935 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23936 | | if { (ac_try="$ac_link" |
| 23937 | | case "(($ac_try" in |
| 23938 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23939 | | *) ac_try_echo=$ac_try;; |
| 23940 | | esac |
| 23941 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23942 | | (eval "$ac_link") 2>conftest.er1 |
| 23943 | | ac_status=$? |
| 23944 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 23945 | | rm -f conftest.er1 |
| 23946 | | cat conftest.err >&5 |
| 23947 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23948 | | (exit $ac_status); } && { |
| 23949 | | test -z "$ac_c_werror_flag" || |
| 23950 | | test ! -s conftest.err |
| 23951 | | } && test -s conftest$ac_exeext && |
| 23952 | | $as_test_x conftest$ac_exeext; then |
| 23953 | | eval "$as_ac_var=yes" |
| 23954 | | else |
| 23955 | | echo "$as_me: failed program was:" >&5 |
| 23956 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23957 | | |
| 23958 | | eval "$as_ac_var=no" |
| 23959 | | fi |
| 23960 | | |
| 23961 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23962 | | conftest$ac_exeext conftest.$ac_ext |
| 23963 | | fi |
| 23964 | | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23965 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23966 | | echo "${ECHO_T}$ac_res" >&6; } |
| 23967 | | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23968 | | cat >>confdefs.h <<_ACEOF |
| 23969 | | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23970 | | _ACEOF |
| 23971 | | |
| 23972 | | fi |
| 23973 | | done |
| 23974 | | |
| 23975 | | |
| 23976 | | |
| 23977 | | |
| 23978 | | |
| 23979 | | |
| 23980 | | for ac_func in malloc calloc free memcpy memmove |
| 23981 | | do |
| 23982 | | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23983 | | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23984 | | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 23985 | | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 23986 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23987 | | else |
| 23988 | | cat >conftest.$ac_ext <<_ACEOF |
| 23989 | | /* confdefs.h. */ |
| 23990 | | _ACEOF |
| 23991 | | cat confdefs.h >>conftest.$ac_ext |
| 23992 | | cat >>conftest.$ac_ext <<_ACEOF |
| 23993 | | /* end confdefs.h. */ |
| 23994 | | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23995 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23996 | | #define $ac_func innocuous_$ac_func |
| 23997 | | |
| 23998 | | /* System header to define __stub macros and hopefully few prototypes, |
| 23999 | | which can conflict with char $ac_func (); below. |
| 24000 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24001 | | <limits.h> exists even on freestanding compilers. */ |
| 24002 | | |
| 24003 | | #ifdef __STDC__ |
| 24004 | | # include <limits.h> |
| 24005 | | #else |
| 24006 | | # include <assert.h> |
| 24007 | | #endif |
| 24008 | | |
| 24009 | | #undef $ac_func |
| 24010 | | |
| 24011 | | /* Override any GCC internal prototype to avoid an error. |
| 24012 | | Use char because int might match the return type of a GCC |
| 24013 | | builtin and then its argument prototype would still apply. */ |
| 24014 | | #ifdef __cplusplus |
| 24015 | | extern "C" |
| 24016 | | #endif |
| 24017 | | char $ac_func (); |
| 24018 | | /* The GNU C library defines this for functions which it implements |
| 24019 | | to always fail with ENOSYS. Some functions are actually named |
| 24020 | | something starting with __ and the normal name is an alias. */ |
| 24021 | | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24022 | | choke me |
| 24023 | | #endif |
| 24024 | | |
| 24025 | | int |
| 24026 | | main () |
| 24027 | | { |
| 24028 | | return $ac_func (); |
| 24029 | | ; |
| 24030 | | return 0; |
| 24031 | | } |
| 24032 | | _ACEOF |
| 24033 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24034 | | if { (ac_try="$ac_link" |
| 24035 | | case "(($ac_try" in |
| 24036 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24037 | | *) ac_try_echo=$ac_try;; |
| 24038 | | esac |
| 24039 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24040 | | (eval "$ac_link") 2>conftest.er1 |
| 24041 | | ac_status=$? |
| 24042 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24043 | | rm -f conftest.er1 |
| 24044 | | cat conftest.err >&5 |
| 24045 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24046 | | (exit $ac_status); } && { |
| 24047 | | test -z "$ac_c_werror_flag" || |
| 24048 | | test ! -s conftest.err |
| 24049 | | } && test -s conftest$ac_exeext && |
| 24050 | | $as_test_x conftest$ac_exeext; then |
| 24051 | | eval "$as_ac_var=yes" |
| 24052 | | else |
| 24053 | | echo "$as_me: failed program was:" >&5 |
| 24054 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24055 | | |
| 24056 | | eval "$as_ac_var=no" |
| 24057 | | fi |
| 24058 | | |
| 24059 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24060 | | conftest$ac_exeext conftest.$ac_ext |
| 24061 | | fi |
| 24062 | | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24063 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24064 | | echo "${ECHO_T}$ac_res" >&6; } |
| 24065 | | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 24066 | | cat >>confdefs.h <<_ACEOF |
| 24067 | | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24068 | | _ACEOF |
| 24069 | | |
| 24070 | | fi |
| 24071 | | done |
| 24072 | | |
| 24073 | | |
| 24074 | | { echo "$as_me:$LINENO: checking for floor in -lm" >&5 |
| 24075 | | echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6; } |
| 24076 | | if test "${ac_cv_lib_m_floor+set}" = set; then |
| 24077 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24078 | | else |
| 24079 | | ac_check_lib_save_LIBS=$LIBS |
| 24080 | | LIBS="-lm $LIBS" |
| 24081 | | cat >conftest.$ac_ext <<_ACEOF |
| 24082 | | /* confdefs.h. */ |
| 24083 | | _ACEOF |
| 24084 | | cat confdefs.h >>conftest.$ac_ext |
| 24085 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24086 | | /* end confdefs.h. */ |
| 24087 | | |
| 24088 | | /* Override any GCC internal prototype to avoid an error. |
| 24089 | | Use char because int might match the return type of a GCC |
| 24090 | | builtin and then its argument prototype would still apply. */ |
| 24091 | | #ifdef __cplusplus |
| 24092 | | extern "C" |
| 24093 | | #endif |
| 24094 | | char floor (); |
| 24095 | | int |
| 24096 | | main () |
| 24097 | | { |
| 24098 | | return floor (); |
| 24099 | | ; |
| 24100 | | return 0; |
| 24101 | | } |
| 24102 | | _ACEOF |
| 24103 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24104 | | if { (ac_try="$ac_link" |
| 24105 | | case "(($ac_try" in |
| 24106 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24107 | | *) ac_try_echo=$ac_try;; |
| 24108 | | esac |
| 24109 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24110 | | (eval "$ac_link") 2>conftest.er1 |
| 24111 | | ac_status=$? |
| 24112 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24113 | | rm -f conftest.er1 |
| 24114 | | cat conftest.err >&5 |
| 24115 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24116 | | (exit $ac_status); } && { |
| 24117 | | test -z "$ac_c_werror_flag" || |
| 24118 | | test ! -s conftest.err |
| 24119 | | } && test -s conftest$ac_exeext && |
| 24120 | | $as_test_x conftest$ac_exeext; then |
| 24121 | | ac_cv_lib_m_floor=yes |
| 24122 | | else |
| 24123 | | echo "$as_me: failed program was:" >&5 |
| 24124 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24125 | | |
| 24126 | | ac_cv_lib_m_floor=no |
| 24127 | | fi |
| 24128 | | |
| 24129 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24130 | | conftest$ac_exeext conftest.$ac_ext |
| 24131 | | LIBS=$ac_check_lib_save_LIBS |
| 24132 | | fi |
| 24133 | | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 |
| 24134 | | echo "${ECHO_T}$ac_cv_lib_m_floor" >&6; } |
| 24135 | | if test $ac_cv_lib_m_floor = yes; then |
| 24136 | | cat >>confdefs.h <<_ACEOF |
| 24137 | | #define HAVE_LIBM 1 |
| 24138 | | _ACEOF |
| 24139 | | |
| 24140 | | LIBS="-lm $LIBS" |
| 24141 | | |
| 24142 | | fi |
| 24143 | | |
| 24144 | | |
| 24145 | | |
| 24146 | | |
| 24147 | | for ac_func in floor ceil fmod |
| 24148 | | do |
| 24149 | | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24150 | | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24151 | | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 24152 | | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 24153 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24154 | | else |
| 24155 | | cat >conftest.$ac_ext <<_ACEOF |
| 24156 | | /* confdefs.h. */ |
| 24157 | | _ACEOF |
| 24158 | | cat confdefs.h >>conftest.$ac_ext |
| 24159 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24160 | | /* end confdefs.h. */ |
| 24161 | | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24162 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24163 | | #define $ac_func innocuous_$ac_func |
| 24164 | | |
| 24165 | | /* System header to define __stub macros and hopefully few prototypes, |
| 24166 | | which can conflict with char $ac_func (); below. |
| 24167 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24168 | | <limits.h> exists even on freestanding compilers. */ |
| 24169 | | |
| 24170 | | #ifdef __STDC__ |
| 24171 | | # include <limits.h> |
| 24172 | | #else |
| 24173 | | # include <assert.h> |
| 24174 | | #endif |
| 24175 | | |
| 24176 | | #undef $ac_func |
| 24177 | | |
| 24178 | | /* Override any GCC internal prototype to avoid an error. |
| 24179 | | Use char because int might match the return type of a GCC |
| 24180 | | builtin and then its argument prototype would still apply. */ |
| 24181 | | #ifdef __cplusplus |
| 24182 | | extern "C" |
| 24183 | | #endif |
| 24184 | | char $ac_func (); |
| 24185 | | /* The GNU C library defines this for functions which it implements |
| 24186 | | to always fail with ENOSYS. Some functions are actually named |
| 24187 | | something starting with __ and the normal name is an alias. */ |
| 24188 | | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24189 | | choke me |
| 24190 | | #endif |
| 24191 | | |
| 24192 | | int |
| 24193 | | main () |
| 24194 | | { |
| 24195 | | return $ac_func (); |
| 24196 | | ; |
| 24197 | | return 0; |
| 24198 | | } |
| 24199 | | _ACEOF |
| 24200 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24201 | | if { (ac_try="$ac_link" |
| 24202 | | case "(($ac_try" in |
| 24203 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24204 | | *) ac_try_echo=$ac_try;; |
| 24205 | | esac |
| 24206 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24207 | | (eval "$ac_link") 2>conftest.er1 |
| 24208 | | ac_status=$? |
| 24209 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24210 | | rm -f conftest.er1 |
| 24211 | | cat conftest.err >&5 |
| 24212 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24213 | | (exit $ac_status); } && { |
| 24214 | | test -z "$ac_c_werror_flag" || |
| 24215 | | test ! -s conftest.err |
| 24216 | | } && test -s conftest$ac_exeext && |
| 24217 | | $as_test_x conftest$ac_exeext; then |
| 24218 | | eval "$as_ac_var=yes" |
| 24219 | | else |
| 24220 | | echo "$as_me: failed program was:" >&5 |
| 24221 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24222 | | |
| 24223 | | eval "$as_ac_var=no" |
| 24224 | | fi |
| 24225 | | |
| 24226 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24227 | | conftest$ac_exeext conftest.$ac_ext |
| 24228 | | fi |
| 24229 | | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24230 | | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24231 | | echo "${ECHO_T}$ac_res" >&6; } |
| 24232 | | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 24233 | | cat >>confdefs.h <<_ACEOF |
| 24234 | | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24235 | | _ACEOF |
| 24236 | | |
| 24237 | | fi |
| 24238 | | done |
| 24239 | | |
| 24240 | | { echo "$as_me:$LINENO: checking for lrint" >&5 |
| 24241 | | echo $ECHO_N "checking for lrint... $ECHO_C" >&6; } |
| 24242 | | if test "${ac_cv_c99_lrint+set}" = set; then |
| 24243 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24244 | | else |
| 24245 | | |
| 24246 | | lrint_save_CFLAGS=$CFLAGS |
| 24247 | | CFLAGS="-O2 -lm" |
| 24248 | | cat >conftest.$ac_ext <<_ACEOF |
| 24249 | | /* confdefs.h. */ |
| 24250 | | _ACEOF |
| 24251 | | cat confdefs.h >>conftest.$ac_ext |
| 24252 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24253 | | /* end confdefs.h. */ |
| 24254 | | |
| 24255 | | #define _ISOC9X_SOURCE 1 |
| 24256 | | #define _ISOC99_SOURCE 1 |
| 24257 | | #define __USE_ISOC99 1 |
| 24258 | | #define __USE_ISOC9X 1 |
| 24259 | | |
| 24260 | | #include <math.h> |
| 24261 | | |
| 24262 | | int |
| 24263 | | main () |
| 24264 | | { |
| 24265 | | if (!lrint(3.14159)) lrint(2.7183); |
| 24266 | | ; |
| 24267 | | return 0; |
| 24268 | | } |
| 24269 | | _ACEOF |
| 24270 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24271 | | if { (ac_try="$ac_link" |
| 24272 | | case "(($ac_try" in |
| 24273 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24274 | | *) ac_try_echo=$ac_try;; |
| 24275 | | esac |
| 24276 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24277 | | (eval "$ac_link") 2>conftest.er1 |
| 24278 | | ac_status=$? |
| 24279 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24280 | | rm -f conftest.er1 |
| 24281 | | cat conftest.err >&5 |
| 24282 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24283 | | (exit $ac_status); } && { |
| 24284 | | test -z "$ac_c_werror_flag" || |
| 24285 | | test ! -s conftest.err |
| 24286 | | } && test -s conftest$ac_exeext && |
| 24287 | | $as_test_x conftest$ac_exeext; then |
| 24288 | | ac_cv_c99_lrint=yes |
| 24289 | | else |
| 24290 | | echo "$as_me: failed program was:" >&5 |
| 24291 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24292 | | |
| 24293 | | ac_cv_c99_lrint=no |
| 24294 | | fi |
| 24295 | | |
| 24296 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24297 | | conftest$ac_exeext conftest.$ac_ext |
| 24298 | | |
| 24299 | | CFLAGS=$lrint_save_CFLAGS |
| 24300 | | |
| 24301 | | |
| 24302 | | fi |
| 24303 | | { echo "$as_me:$LINENO: result: $ac_cv_c99_lrint" >&5 |
| 24304 | | echo "${ECHO_T}$ac_cv_c99_lrint" >&6; } |
| 24305 | | |
| 24306 | | if test "$ac_cv_c99_lrint" = yes; then |
| 24307 | | |
| 24308 | | cat >>confdefs.h <<\_ACEOF |
| 24309 | | #define HAVE_LRINT 1 |
| 24310 | | _ACEOF |
| 24311 | | |
| 24312 | | fi |
| 24313 | | |
| 24314 | | { echo "$as_me:$LINENO: checking for lrintf" >&5 |
| 24315 | | echo $ECHO_N "checking for lrintf... $ECHO_C" >&6; } |
| 24316 | | if test "${ac_cv_c99_lrintf+set}" = set; then |
| 24317 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24318 | | else |
| 24319 | | |
| 24320 | | lrintf_save_CFLAGS=$CFLAGS |
| 24321 | | CFLAGS="-O2 -lm" |
| 24322 | | cat >conftest.$ac_ext <<_ACEOF |
| 24323 | | /* confdefs.h. */ |
| 24324 | | _ACEOF |
| 24325 | | cat confdefs.h >>conftest.$ac_ext |
| 24326 | | cat >>conftest.$ac_ext <<_ACEOF |
| 24327 | | /* end confdefs.h. */ |
| 24328 | | |
| 24329 | | #define _ISOC9X_SOURCE 1 |
| 24330 | | #define _ISOC99_SOURCE 1 |
| 24331 | | #define __USE_ISOC99 1 |
| 24332 | | #define __USE_ISOC9X 1 |
| 24333 | | |
| 24334 | | #include <math.h> |
| 24335 | | |
| 24336 | | int |
| 24337 | | main () |
| 24338 | | { |
| 24339 | | if (!lrintf(3.14159)) lrintf(2.7183); |
| 24340 | | ; |
| 24341 | | return 0; |
| 24342 | | } |
| 24343 | | _ACEOF |
| 24344 | | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24345 | | if { (ac_try="$ac_link" |
| 24346 | | case "(($ac_try" in |
| 24347 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24348 | | *) ac_try_echo=$ac_try;; |
| 24349 | | esac |
| 24350 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24351 | | (eval "$ac_link") 2>conftest.er1 |
| 24352 | | ac_status=$? |
| 24353 | | grep -v '^ *+' conftest.er1 >conftest.err |
| 24354 | | rm -f conftest.er1 |
| 24355 | | cat conftest.err >&5 |
| 24356 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24357 | | (exit $ac_status); } && { |
| 24358 | | test -z "$ac_c_werror_flag" || |
| 24359 | | test ! -s conftest.err |
| 24360 | | } && test -s conftest$ac_exeext && |
| 24361 | | $as_test_x conftest$ac_exeext; then |
| 24362 | | ac_cv_c99_lrintf=yes |
| 24363 | | else |
| 24364 | | echo "$as_me: failed program was:" >&5 |
| 24365 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24366 | | |
| 24367 | | ac_cv_c99_lrintf=no |
| 24368 | | fi |
| 24369 | | |
| 24370 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24371 | | conftest$ac_exeext conftest.$ac_ext |
| 24372 | | |
| 24373 | | CFLAGS=$lrintf_save_CFLAGS |
| 24374 | | |
| 24375 | | |
| 24376 | | fi |
| 24377 | | { echo "$as_me:$LINENO: result: $ac_cv_c99_lrintf" >&5 |
| 24378 | | echo "${ECHO_T}$ac_cv_c99_lrintf" >&6; } |
| 24379 | | |
| 24380 | | if test "$ac_cv_c99_lrintf" = yes; then |
| 24381 | | |
| 24382 | | cat >>confdefs.h <<\_ACEOF |
| 24383 | | #define HAVE_LRINTF 1 |
| 24384 | | _ACEOF |
| 24385 | | |
| 24386 | | fi |
| 24387 | | |
| 24388 | | # AC_C99_FUNC_LLRINT Don't need this (yet?). |
| 24389 | | |
| 24390 | | |
| 24391 | | |
| 24392 | | # Check for dependencies |
| 24393 | | |
| 24394 | | |
| 24395 | | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 24396 | | if test -n "$ac_tool_prefix"; then |
| 24397 | | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 24398 | | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 24399 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 24400 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 24401 | | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 24402 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24403 | | else |
| 24404 | | case $PKG_CONFIG in |
| 24405 | | [\\/]* | ?:[\\/]*) |
| 24406 | | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 24407 | | ;; |
| 24408 | | *) |
| 24409 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24410 | | for as_dir in $PATH |
| 24411 | | do |
| 24412 | | IFS=$as_save_IFS |
| 24413 | | test -z "$as_dir" && as_dir=. |
| 24414 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 24415 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 24416 | | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 24417 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24418 | | break 2 |
| 24419 | | fi |
| 24420 | | done |
| 24421 | | done |
| 24422 | | IFS=$as_save_IFS |
| 24423 | | |
| 24424 | | ;; |
| 24425 | | esac |
| 24426 | | fi |
| 24427 | | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 24428 | | if test -n "$PKG_CONFIG"; then |
| 24429 | | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 24430 | | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 24431 | | else |
| 24432 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 24433 | | echo "${ECHO_T}no" >&6; } |
| 24434 | | fi |
| 24435 | | |
| 24436 | | |
| 24437 | | fi |
| 24438 | | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 24439 | | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 24440 | | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 24441 | | set dummy pkg-config; ac_word=$2 |
| 24442 | | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 24443 | | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 24444 | | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 24445 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24446 | | else |
| 24447 | | case $ac_pt_PKG_CONFIG in |
| 24448 | | [\\/]* | ?:[\\/]*) |
| 24449 | | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 24450 | | ;; |
| 24451 | | *) |
| 24452 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24453 | | for as_dir in $PATH |
| 24454 | | do |
| 24455 | | IFS=$as_save_IFS |
| 24456 | | test -z "$as_dir" && as_dir=. |
| 24457 | | for ac_exec_ext in '' $ac_executable_extensions; do |
| 24458 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 24459 | | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 24460 | | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24461 | | break 2 |
| 24462 | | fi |
| 24463 | | done |
| 24464 | | done |
| 24465 | | IFS=$as_save_IFS |
| 24466 | | |
| 24467 | | ;; |
| 24468 | | esac |
| 24469 | | fi |
| 24470 | | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 24471 | | if test -n "$ac_pt_PKG_CONFIG"; then |
| 24472 | | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 24473 | | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 24474 | | else |
| 24475 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 24476 | | echo "${ECHO_T}no" >&6; } |
| 24477 | | fi |
| 24478 | | |
| 24479 | | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 24480 | | PKG_CONFIG="" |
| 24481 | | else |
| 24482 | | case $cross_compiling:$ac_tool_warned in |
| 24483 | | yes:) |
| 24484 | | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 24485 | | whose name does not start with the host triplet. If you think this |
| 24486 | | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 24487 | | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 24488 | | whose name does not start with the host triplet. If you think this |
| 24489 | | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 24490 | | ac_tool_warned=yes ;; |
| 24491 | | esac |
| 24492 | | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 24493 | | fi |
| 24494 | | else |
| 24495 | | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 24496 | | fi |
| 24497 | | |
| 24498 | | fi |
| 24499 | | if test -n "$PKG_CONFIG"; then |
| 24500 | | _pkg_min_version=0.9.0 |
| 24501 | | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 24502 | | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
| 24503 | | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 24504 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24505 | | echo "${ECHO_T}yes" >&6; } |
| 24506 | | else |
| 24507 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 24508 | | echo "${ECHO_T}no" >&6; } |
| 24509 | | PKG_CONFIG="" |
| 24510 | | fi |
| 24511 | | |
| 24512 | | fi |
| 24513 | | |
| 24514 | | pkg_failed=no |
| 24515 | | { echo "$as_me:$LINENO: checking for GLIB" >&5 |
| 24516 | | echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; } |
| 24517 | | |
| 24518 | | if test -n "$PKG_CONFIG"; then |
| 24519 | | if test -n "$GLIB_CFLAGS"; then |
| 24520 | | pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" |
| 24521 | | else |
| 24522 | | if test -n "$PKG_CONFIG" && \ |
| 24523 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gthread-2.0 gobject-2.0\"") >&5 |
| 24524 | | ($PKG_CONFIG --exists --print-errors "glib-2.0 gthread-2.0 gobject-2.0") 2>&5 |
| 24525 | | ac_status=$? |
| 24526 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24527 | | (exit $ac_status); }; then |
| 24528 | | pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gthread-2.0 gobject-2.0" 2>/dev/null` |
| 24529 | | else |
| 24530 | | pkg_failed=yes |
| 24531 | | fi |
| 24532 | | fi |
| 24533 | | else |
| 24534 | | pkg_failed=untried |
| 24535 | | fi |
| 24536 | | if test -n "$PKG_CONFIG"; then |
| 24537 | | if test -n "$GLIB_LIBS"; then |
| 24538 | | pkg_cv_GLIB_LIBS="$GLIB_LIBS" |
| 24539 | | else |
| 24540 | | if test -n "$PKG_CONFIG" && \ |
| 24541 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gthread-2.0 gobject-2.0\"") >&5 |
| 24542 | | ($PKG_CONFIG --exists --print-errors "glib-2.0 gthread-2.0 gobject-2.0") 2>&5 |
| 24543 | | ac_status=$? |
| 24544 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24545 | | (exit $ac_status); }; then |
| 24546 | | pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 gthread-2.0 gobject-2.0" 2>/dev/null` |
| 24547 | | else |
| 24548 | | pkg_failed=yes |
| 24549 | | fi |
| 24550 | | fi |
| 24551 | | else |
| 24552 | | pkg_failed=untried |
| 24553 | | fi |
| 24554 | | |
| 24555 | | |
| 24556 | | |
| 24557 | | if test $pkg_failed = yes; then |
| 24558 | | |
| 24559 | | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 24560 | | _pkg_short_errors_supported=yes |
| 24561 | | else |
| 24562 | | _pkg_short_errors_supported=no |
| 24563 | | fi |
| 24564 | | if test $_pkg_short_errors_supported = yes; then |
| 24565 | | GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 gthread-2.0 gobject-2.0"` |
| 24566 | | else |
| 24567 | | GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 gthread-2.0 gobject-2.0"` |
| 24568 | | fi |
| 24569 | | # Put the nasty error message in config.log where it belongs |
| 24570 | | echo "$GLIB_PKG_ERRORS" >&5 |
| 24571 | | |
| 24572 | | { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 gthread-2.0 gobject-2.0) were not met: |
| 24573 | | |
| 24574 | | $GLIB_PKG_ERRORS |
| 24575 | | |
| 24576 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 24577 | | installed software in a non-standard prefix. |
| 24578 | | |
| 24579 | | Alternatively, you may set the environment variables GLIB_CFLAGS |
| 24580 | | and GLIB_LIBS to avoid the need to call pkg-config. |
| 24581 | | See the pkg-config man page for more details. |
| 24582 | | " >&5 |
| 24583 | | echo "$as_me: error: Package requirements (glib-2.0 gthread-2.0 gobject-2.0) were not met: |
| 24584 | | |
| 24585 | | $GLIB_PKG_ERRORS |
| 24586 | | |
| 24587 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 24588 | | installed software in a non-standard prefix. |
| 24589 | | |
| 24590 | | Alternatively, you may set the environment variables GLIB_CFLAGS |
| 24591 | | and GLIB_LIBS to avoid the need to call pkg-config. |
| 24592 | | See the pkg-config man page for more details. |
| 24593 | | " >&2;} |
| 24594 | | { (exit 1); exit 1; }; } |
| 24595 | | elif test $pkg_failed = untried; then |
| 24596 | | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
| 24597 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 24598 | | path to pkg-config. |
| 24599 | | |
| 24600 | | Alternatively, you may set the environment variables GLIB_CFLAGS |
| 24601 | | and GLIB_LIBS to avoid the need to call pkg-config. |
| 24602 | | See the pkg-config man page for more details. |
| 24603 | | |
| 24604 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 24605 | | See \`config.log' for more details." >&5 |
| 24606 | | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
| 24607 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 24608 | | path to pkg-config. |
| 24609 | | |
| 24610 | | Alternatively, you may set the environment variables GLIB_CFLAGS |
| 24611 | | and GLIB_LIBS to avoid the need to call pkg-config. |
| 24612 | | See the pkg-config man page for more details. |
| 24613 | | |
| 24614 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 24615 | | See \`config.log' for more details." >&2;} |
| 24616 | | { (exit 1); exit 1; }; } |
| 24617 | | else |
| 24618 | | GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS |
| 24619 | | GLIB_LIBS=$pkg_cv_GLIB_LIBS |
| 24620 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24621 | | echo "${ECHO_T}yes" >&6; } |
| 24622 | | : |
| 24623 | | fi |
| 24624 | | |
| 24625 | | |
| 24626 | | |
| 24627 | | |
| 24628 | | pkg_failed=no |
| 24629 | | { echo "$as_me:$LINENO: checking for LIBXML" >&5 |
| 24630 | | echo $ECHO_N "checking for LIBXML... $ECHO_C" >&6; } |
| 24631 | | |
| 24632 | | if test -n "$PKG_CONFIG"; then |
| 24633 | | if test -n "$LIBXML_CFLAGS"; then |
| 24634 | | pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" |
| 24635 | | else |
| 24636 | | if test -n "$PKG_CONFIG" && \ |
| 24637 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5 |
| 24638 | | ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 |
| 24639 | | ac_status=$? |
| 24640 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24641 | | (exit $ac_status); }; then |
| 24642 | | pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` |
| 24643 | | else |
| 24644 | | pkg_failed=yes |
| 24645 | | fi |
| 24646 | | fi |
| 24647 | | else |
| 24648 | | pkg_failed=untried |
| 24649 | | fi |
| 24650 | | if test -n "$PKG_CONFIG"; then |
| 24651 | | if test -n "$LIBXML_LIBS"; then |
| 24652 | | pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" |
| 24653 | | else |
| 24654 | | if test -n "$PKG_CONFIG" && \ |
| 24655 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5 |
| 24656 | | ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 |
| 24657 | | ac_status=$? |
| 24658 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24659 | | (exit $ac_status); }; then |
| 24660 | | pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` |
| 24661 | | else |
| 24662 | | pkg_failed=yes |
| 24663 | | fi |
| 24664 | | fi |
| 24665 | | else |
| 24666 | | pkg_failed=untried |
| 24667 | | fi |
| 24668 | | |
| 24669 | | |
| 24670 | | |
| 24671 | | if test $pkg_failed = yes; then |
| 24672 | | |
| 24673 | | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 24674 | | _pkg_short_errors_supported=yes |
| 24675 | | else |
| 24676 | | _pkg_short_errors_supported=no |
| 24677 | | fi |
| 24678 | | if test $_pkg_short_errors_supported = yes; then |
| 24679 | | LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0"` |
| 24680 | | else |
| 24681 | | LIBXML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"` |
| 24682 | | fi |
| 24683 | | # Put the nasty error message in config.log where it belongs |
| 24684 | | echo "$LIBXML_PKG_ERRORS" >&5 |
| 24685 | | |
| 24686 | | { { echo "$as_me:$LINENO: error: Package requirements (libxml-2.0) were not met: |
| 24687 | | |
| 24688 | | $LIBXML_PKG_ERRORS |
| 24689 | | |
| 24690 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 24691 | | installed software in a non-standard prefix. |
| 24692 | | |
| 24693 | | Alternatively, you may set the environment variables LIBXML_CFLAGS |
| 24694 | | and LIBXML_LIBS to avoid the need to call pkg-config. |
| 24695 | | See the pkg-config man page for more details. |
| 24696 | | " >&5 |
| 24697 | | echo "$as_me: error: Package requirements (libxml-2.0) were not met: |
| 24698 | | |
| 24699 | | $LIBXML_PKG_ERRORS |
| 24700 | | |
| 24701 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 24702 | | installed software in a non-standard prefix. |
| 24703 | | |
| 24704 | | Alternatively, you may set the environment variables LIBXML_CFLAGS |
| 24705 | | and LIBXML_LIBS to avoid the need to call pkg-config. |
| 24706 | | See the pkg-config man page for more details. |
| 24707 | | " >&2;} |
| 24708 | | { (exit 1); exit 1; }; } |
| 24709 | | elif test $pkg_failed = untried; then |
| 24710 | | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
| 24711 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 24712 | | path to pkg-config. |
| 24713 | | |
| 24714 | | Alternatively, you may set the environment variables LIBXML_CFLAGS |
| 24715 | | and LIBXML_LIBS to avoid the need to call pkg-config. |
| 24716 | | See the pkg-config man page for more details. |
| 24717 | | |
| 24718 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 24719 | | See \`config.log' for more details." >&5 |
| 24720 | | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
| 24721 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 24722 | | path to pkg-config. |
| 24723 | | |
| 24724 | | Alternatively, you may set the environment variables LIBXML_CFLAGS |
| 24725 | | and LIBXML_LIBS to avoid the need to call pkg-config. |
| 24726 | | See the pkg-config man page for more details. |
| 24727 | | |
| 24728 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 24729 | | See \`config.log' for more details." >&2;} |
| 24730 | | { (exit 1); exit 1; }; } |
| 24731 | | else |
| 24732 | | LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS |
| 24733 | | LIBXML_LIBS=$pkg_cv_LIBXML_LIBS |
| 24734 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24735 | | echo "${ECHO_T}yes" >&6; } |
| 24736 | | : |
| 24737 | | fi |
| 24738 | | |
| 24739 | | |
| 24740 | | |
| 24741 | | |
| 24742 | | pkg_failed=no |
| 24743 | | { echo "$as_me:$LINENO: checking for GSTREAMER" >&5 |
| 24744 | | echo $ECHO_N "checking for GSTREAMER... $ECHO_C" >&6; } |
| 24745 | | |
| 24746 | | if test -n "$PKG_CONFIG"; then |
| 24747 | | if test -n "$GSTREAMER_CFLAGS"; then |
| 24748 | | pkg_cv_GSTREAMER_CFLAGS="$GSTREAMER_CFLAGS" |
| 24749 | | else |
| 24750 | | if test -n "$PKG_CONFIG" && \ |
| 24751 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10\"") >&5 |
| 24752 | | ($PKG_CONFIG --exists --print-errors "gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10") 2>&5 |
| 24753 | | ac_status=$? |
| 24754 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24755 | | (exit $ac_status); }; then |
| 24756 | | pkg_cv_GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10" 2>/dev/null` |
| 24757 | | else |
| 24758 | | pkg_failed=yes |
| 24759 | | fi |
| 24760 | | fi |
| 24761 | | else |
| 24762 | | pkg_failed=untried |
| 24763 | | fi |
| 24764 | | if test -n "$PKG_CONFIG"; then |
| 24765 | | if test -n "$GSTREAMER_LIBS"; then |
| 24766 | | pkg_cv_GSTREAMER_LIBS="$GSTREAMER_LIBS" |
| 24767 | | else |
| 24768 | | if test -n "$PKG_CONFIG" && \ |
| 24769 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10\"") >&5 |
| 24770 | | ($PKG_CONFIG --exists --print-errors "gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10") 2>&5 |
| 24771 | | ac_status=$? |
| 24772 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24773 | | (exit $ac_status); }; then |
| 24774 | | pkg_cv_GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10" 2>/dev/null` |
| 24775 | | else |
| 24776 | | pkg_failed=yes |
| 24777 | | fi |
| 24778 | | fi |
| 24779 | | else |
| 24780 | | pkg_failed=untried |
| 24781 | | fi |
| 24782 | | |
| 24783 | | |
| 24784 | | |
| 24785 | | if test $pkg_failed = yes; then |
| 24786 | | |
| 24787 | | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 24788 | | _pkg_short_errors_supported=yes |
| 24789 | | else |
| 24790 | | _pkg_short_errors_supported=no |
| 24791 | | fi |
| 24792 | | if test $_pkg_short_errors_supported = yes; then |
| 24793 | | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10"` |
| 24794 | | else |
| 24795 | | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10"` |
| 24796 | | fi |
| 24797 | | # Put the nasty error message in config.log where it belongs |
| 24798 | | echo "$GSTREAMER_PKG_ERRORS" >&5 |
| 24799 | | |
| 24800 | | { { echo "$as_me:$LINENO: error: Package requirements (gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10) were not met: |
| 24801 | | |
| 24802 | | $GSTREAMER_PKG_ERRORS |
| 24803 | | |
| 24804 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 24805 | | installed software in a non-standard prefix. |
| 24806 | | |
| 24807 | | Alternatively, you may set the environment variables GSTREAMER_CFLAGS |
| 24808 | | and GSTREAMER_LIBS to avoid the need to call pkg-config. |
| 24809 | | See the pkg-config man page for more details. |
| 24810 | | " >&5 |
| 24811 | | echo "$as_me: error: Package requirements (gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10) were not met: |
| 24812 | | |
| 24813 | | $GSTREAMER_PKG_ERRORS |
| 24814 | | |
| 24815 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 24816 | | installed software in a non-standard prefix. |
| 24817 | | |
| 24818 | | Alternatively, you may set the environment variables GSTREAMER_CFLAGS |
| 24819 | | and GSTREAMER_LIBS to avoid the need to call pkg-config. |
| 24820 | | See the pkg-config man page for more details. |
| 24821 | | " >&2;} |
| 24822 | | { (exit 1); exit 1; }; } |
| 24823 | | elif test $pkg_failed = untried; then |
| 24824 | | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
| 24825 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 24826 | | path to pkg-config. |
| 24827 | | |
| 24828 | | Alternatively, you may set the environment variables GSTREAMER_CFLAGS |
| 24829 | | and GSTREAMER_LIBS to avoid the need to call pkg-config. |
| 24830 | | See the pkg-config man page for more details. |
| 24831 | | |
| 24832 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 24833 | | See \`config.log' for more details." >&5 |
| 24834 | | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
| 24835 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 24836 | | path to pkg-config. |
| 24837 | | |
| 24838 | | Alternatively, you may set the environment variables GSTREAMER_CFLAGS |
| 24839 | | and GSTREAMER_LIBS to avoid the need to call pkg-config. |
| 24840 | | See the pkg-config man page for more details. |
| 24841 | | |
| 24842 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 24843 | | See \`config.log' for more details." >&2;} |
| 24844 | | { (exit 1); exit 1; }; } |
| 24845 | | else |
| 24846 | | GSTREAMER_CFLAGS=$pkg_cv_GSTREAMER_CFLAGS |
| 24847 | | GSTREAMER_LIBS=$pkg_cv_GSTREAMER_LIBS |
| 24848 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24849 | | echo "${ECHO_T}yes" >&6; } |
| 24850 | | : |
| 24851 | | fi |
| 24852 | | |
| 24853 | | |
| 24854 | | |
| 24855 | | |
| 24856 | | pkg_failed=no |
| 24857 | | { echo "$as_me:$LINENO: checking for SAMPLERATE" >&5 |
| 24858 | | echo $ECHO_N "checking for SAMPLERATE... $ECHO_C" >&6; } |
| 24859 | | |
| 24860 | | if test -n "$PKG_CONFIG"; then |
| 24861 | | if test -n "$SAMPLERATE_CFLAGS"; then |
| 24862 | | pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS" |
| 24863 | | else |
| 24864 | | if test -n "$PKG_CONFIG" && \ |
| 24865 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate\"") >&5 |
| 24866 | | ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5 |
| 24867 | | ac_status=$? |
| 24868 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24869 | | (exit $ac_status); }; then |
| 24870 | | pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null` |
| 24871 | | else |
| 24872 | | pkg_failed=yes |
| 24873 | | fi |
| 24874 | | fi |
| 24875 | | else |
| 24876 | | pkg_failed=untried |
| 24877 | | fi |
| 24878 | | if test -n "$PKG_CONFIG"; then |
| 24879 | | if test -n "$SAMPLERATE_LIBS"; then |
| 24880 | | pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS" |
| 24881 | | else |
| 24882 | | if test -n "$PKG_CONFIG" && \ |
| 24883 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate\"") >&5 |
| 24884 | | ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5 |
| 24885 | | ac_status=$? |
| 24886 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24887 | | (exit $ac_status); }; then |
| 24888 | | pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null` |
| 24889 | | else |
| 24890 | | pkg_failed=yes |
| 24891 | | fi |
| 24892 | | fi |
| 24893 | | else |
| 24894 | | pkg_failed=untried |
| 24895 | | fi |
| 24896 | | |
| 24897 | | |
| 24898 | | |
| 24899 | | if test $pkg_failed = yes; then |
| 24900 | | |
| 24901 | | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 24902 | | _pkg_short_errors_supported=yes |
| 24903 | | else |
| 24904 | | _pkg_short_errors_supported=no |
| 24905 | | fi |
| 24906 | | if test $_pkg_short_errors_supported = yes; then |
| 24907 | | SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "samplerate"` |
| 24908 | | else |
| 24909 | | SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate"` |
| 24910 | | fi |
| 24911 | | # Put the nasty error message in config.log where it belongs |
| 24912 | | echo "$SAMPLERATE_PKG_ERRORS" >&5 |
| 24913 | | |
| 24914 | | { { echo "$as_me:$LINENO: error: Package requirements (samplerate) were not met: |
| 24915 | | |
| 24916 | | $SAMPLERATE_PKG_ERRORS |
| 24917 | | |
| 24918 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 24919 | | installed software in a non-standard prefix. |
| 24920 | | |
| 24921 | | Alternatively, you may set the environment variables SAMPLERATE_CFLAGS |
| 24922 | | and SAMPLERATE_LIBS to avoid the need to call pkg-config. |
| 24923 | | See the pkg-config man page for more details. |
| 24924 | | " >&5 |
| 24925 | | echo "$as_me: error: Package requirements (samplerate) were not met: |
| 24926 | | |
| 24927 | | $SAMPLERATE_PKG_ERRORS |
| 24928 | | |
| 24929 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 24930 | | installed software in a non-standard prefix. |
| 24931 | | |
| 24932 | | Alternatively, you may set the environment variables SAMPLERATE_CFLAGS |
| 24933 | | and SAMPLERATE_LIBS to avoid the need to call pkg-config. |
| 24934 | | See the pkg-config man page for more details. |
| 24935 | | " >&2;} |
| 24936 | | { (exit 1); exit 1; }; } |
| 24937 | | elif test $pkg_failed = untried; then |
| 24938 | | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
| 24939 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 24940 | | path to pkg-config. |
| 24941 | | |
| 24942 | | Alternatively, you may set the environment variables SAMPLERATE_CFLAGS |
| 24943 | | and SAMPLERATE_LIBS to avoid the need to call pkg-config. |
| 24944 | | See the pkg-config man page for more details. |
| 24945 | | |
| 24946 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 24947 | | See \`config.log' for more details." >&5 |
| 24948 | | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
| 24949 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 24950 | | path to pkg-config. |
| 24951 | | |
| 24952 | | Alternatively, you may set the environment variables SAMPLERATE_CFLAGS |
| 24953 | | and SAMPLERATE_LIBS to avoid the need to call pkg-config. |
| 24954 | | See the pkg-config man page for more details. |
| 24955 | | |
| 24956 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 24957 | | See \`config.log' for more details." >&2;} |
| 24958 | | { (exit 1); exit 1; }; } |
| 24959 | | else |
| 24960 | | SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS |
| 24961 | | SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS |
| 24962 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24963 | | echo "${ECHO_T}yes" >&6; } |
| 24964 | | : |
| 24965 | | fi |
| 24966 | | |
| 24967 | | |
| 24968 | | |
| 24969 | | |
| 24970 | | pkg_failed=no |
| 24971 | | { echo "$as_me:$LINENO: checking for RGC_SERVER" >&5 |
| 24972 | | echo $ECHO_N "checking for RGC_SERVER... $ECHO_C" >&6; } |
| 24973 | | |
| 24974 | | if test -n "$PKG_CONFIG"; then |
| 24975 | | if test -n "$RGC_SERVER_CFLAGS"; then |
| 24976 | | pkg_cv_RGC_SERVER_CFLAGS="$RGC_SERVER_CFLAGS" |
| 24977 | | else |
| 24978 | | if test -n "$PKG_CONFIG" && \ |
| 24979 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"rgc_server\"") >&5 |
| 24980 | | ($PKG_CONFIG --exists --print-errors "rgc_server") 2>&5 |
| 24981 | | ac_status=$? |
| 24982 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24983 | | (exit $ac_status); }; then |
| 24984 | | pkg_cv_RGC_SERVER_CFLAGS=`$PKG_CONFIG --cflags "rgc_server" 2>/dev/null` |
| 24985 | | else |
| 24986 | | pkg_failed=yes |
| 24987 | | fi |
| 24988 | | fi |
| 24989 | | else |
| 24990 | | pkg_failed=untried |
| 24991 | | fi |
| 24992 | | if test -n "$PKG_CONFIG"; then |
| 24993 | | if test -n "$RGC_SERVER_LIBS"; then |
| 24994 | | pkg_cv_RGC_SERVER_LIBS="$RGC_SERVER_LIBS" |
| 24995 | | else |
| 24996 | | if test -n "$PKG_CONFIG" && \ |
| 24997 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"rgc_server\"") >&5 |
| 24998 | | ($PKG_CONFIG --exists --print-errors "rgc_server") 2>&5 |
| 24999 | | ac_status=$? |
| 25000 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25001 | | (exit $ac_status); }; then |
| 25002 | | pkg_cv_RGC_SERVER_LIBS=`$PKG_CONFIG --libs "rgc_server" 2>/dev/null` |
| 25003 | | else |
| 25004 | | pkg_failed=yes |
| 25005 | | fi |
| 25006 | | fi |
| 25007 | | else |
| 25008 | | pkg_failed=untried |
| 25009 | | fi |
| 25010 | | |
| 25011 | | |
| 25012 | | |
| 25013 | | if test $pkg_failed = yes; then |
| 25014 | | |
| 25015 | | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 25016 | | _pkg_short_errors_supported=yes |
| 25017 | | else |
| 25018 | | _pkg_short_errors_supported=no |
| 25019 | | fi |
| 25020 | | if test $_pkg_short_errors_supported = yes; then |
| 25021 | | RGC_SERVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "rgc_server"` |
| 25022 | | else |
| 25023 | | RGC_SERVER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "rgc_server"` |
| 25024 | | fi |
| 25025 | | # Put the nasty error message in config.log where it belongs |
| 25026 | | echo "$RGC_SERVER_PKG_ERRORS" >&5 |
| 25027 | | |
| 25028 | | { { echo "$as_me:$LINENO: error: Package requirements (rgc_server) were not met: |
| 25029 | | |
| 25030 | | $RGC_SERVER_PKG_ERRORS |
| 25031 | | |
| 25032 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 25033 | | installed software in a non-standard prefix. |
| 25034 | | |
| 25035 | | Alternatively, you may set the environment variables RGC_SERVER_CFLAGS |
| 25036 | | and RGC_SERVER_LIBS to avoid the need to call pkg-config. |
| 25037 | | See the pkg-config man page for more details. |
| 25038 | | " >&5 |
| 25039 | | echo "$as_me: error: Package requirements (rgc_server) were not met: |
| 25040 | | |
| 25041 | | $RGC_SERVER_PKG_ERRORS |
| 25042 | | |
| 25043 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 25044 | | installed software in a non-standard prefix. |
| 25045 | | |
| 25046 | | Alternatively, you may set the environment variables RGC_SERVER_CFLAGS |
| 25047 | | and RGC_SERVER_LIBS to avoid the need to call pkg-config. |
| 25048 | | See the pkg-config man page for more details. |
| 25049 | | " >&2;} |
| 25050 | | { (exit 1); exit 1; }; } |
| 25051 | | elif test $pkg_failed = untried; then |
| 25052 | | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
| 25053 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 25054 | | path to pkg-config. |
| 25055 | | |
| 25056 | | Alternatively, you may set the environment variables RGC_SERVER_CFLAGS |
| 25057 | | and RGC_SERVER_LIBS to avoid the need to call pkg-config. |
| 25058 | | See the pkg-config man page for more details. |
| 25059 | | |
| 25060 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 25061 | | See \`config.log' for more details." >&5 |
| 25062 | | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
| 25063 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 25064 | | path to pkg-config. |
| 25065 | | |
| 25066 | | Alternatively, you may set the environment variables RGC_SERVER_CFLAGS |
| 25067 | | and RGC_SERVER_LIBS to avoid the need to call pkg-config. |
| 25068 | | See the pkg-config man page for more details. |
| 25069 | | |
| 25070 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 25071 | | See \`config.log' for more details." >&2;} |
| 25072 | | { (exit 1); exit 1; }; } |
| 25073 | | else |
| 25074 | | RGC_SERVER_CFLAGS=$pkg_cv_RGC_SERVER_CFLAGS |
| 25075 | | RGC_SERVER_LIBS=$pkg_cv_RGC_SERVER_LIBS |
| 25076 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25077 | | echo "${ECHO_T}yes" >&6; } |
| 25078 | | : |
| 25079 | | fi |
| 25080 | | |
| 25081 | | |
| 25082 | | |
| 25083 | | |
| 25084 | | pkg_failed=no |
| 25085 | | { echo "$as_me:$LINENO: checking for RGC_CLIENT" >&5 |
| 25086 | | echo $ECHO_N "checking for RGC_CLIENT... $ECHO_C" >&6; } |
| 25087 | | |
| 25088 | | if test -n "$PKG_CONFIG"; then |
| 25089 | | if test -n "$RGC_CLIENT_CFLAGS"; then |
| 25090 | | pkg_cv_RGC_CLIENT_CFLAGS="$RGC_CLIENT_CFLAGS" |
| 25091 | | else |
| 25092 | | if test -n "$PKG_CONFIG" && \ |
| 25093 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"rgc_client\"") >&5 |
| 25094 | | ($PKG_CONFIG --exists --print-errors "rgc_client") 2>&5 |
| 25095 | | ac_status=$? |
| 25096 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25097 | | (exit $ac_status); }; then |
| 25098 | | pkg_cv_RGC_CLIENT_CFLAGS=`$PKG_CONFIG --cflags "rgc_client" 2>/dev/null` |
| 25099 | | else |
| 25100 | | pkg_failed=yes |
| 25101 | | fi |
| 25102 | | fi |
| 25103 | | else |
| 25104 | | pkg_failed=untried |
| 25105 | | fi |
| 25106 | | if test -n "$PKG_CONFIG"; then |
| 25107 | | if test -n "$RGC_CLIENT_LIBS"; then |
| 25108 | | pkg_cv_RGC_CLIENT_LIBS="$RGC_CLIENT_LIBS" |
| 25109 | | else |
| 25110 | | if test -n "$PKG_CONFIG" && \ |
| 25111 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"rgc_client\"") >&5 |
| 25112 | | ($PKG_CONFIG --exists --print-errors "rgc_client") 2>&5 |
| 25113 | | ac_status=$? |
| 25114 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25115 | | (exit $ac_status); }; then |
| 25116 | | pkg_cv_RGC_CLIENT_LIBS=`$PKG_CONFIG --libs "rgc_client" 2>/dev/null` |
| 25117 | | else |
| 25118 | | pkg_failed=yes |
| 25119 | | fi |
| 25120 | | fi |
| 25121 | | else |
| 25122 | | pkg_failed=untried |
| 25123 | | fi |
| 25124 | | |
| 25125 | | |
| 25126 | | |
| 25127 | | if test $pkg_failed = yes; then |
| 25128 | | |
| 25129 | | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 25130 | | _pkg_short_errors_supported=yes |
| 25131 | | else |
| 25132 | | _pkg_short_errors_supported=no |
| 25133 | | fi |
| 25134 | | if test $_pkg_short_errors_supported = yes; then |
| 25135 | | RGC_CLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "rgc_client"` |
| 25136 | | else |
| 25137 | | RGC_CLIENT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "rgc_client"` |
| 25138 | | fi |
| 25139 | | # Put the nasty error message in config.log where it belongs |
| 25140 | | echo "$RGC_CLIENT_PKG_ERRORS" >&5 |
| 25141 | | |
| 25142 | | { { echo "$as_me:$LINENO: error: Package requirements (rgc_client) were not met: |
| 25143 | | |
| 25144 | | $RGC_CLIENT_PKG_ERRORS |
| 25145 | | |
| 25146 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 25147 | | installed software in a non-standard prefix. |
| 25148 | | |
| 25149 | | Alternatively, you may set the environment variables RGC_CLIENT_CFLAGS |
| 25150 | | and RGC_CLIENT_LIBS to avoid the need to call pkg-config. |
| 25151 | | See the pkg-config man page for more details. |
| 25152 | | " >&5 |
| 25153 | | echo "$as_me: error: Package requirements (rgc_client) were not met: |
| 25154 | | |
| 25155 | | $RGC_CLIENT_PKG_ERRORS |
| 25156 | | |
| 25157 | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 25158 | | installed software in a non-standard prefix. |
| 25159 | | |
| 25160 | | Alternatively, you may set the environment variables RGC_CLIENT_CFLAGS |
| 25161 | | and RGC_CLIENT_LIBS to avoid the need to call pkg-config. |
| 25162 | | See the pkg-config man page for more details. |
| 25163 | | " >&2;} |
| 25164 | | { (exit 1); exit 1; }; } |
| 25165 | | elif test $pkg_failed = untried; then |
| 25166 | | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
| 25167 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 25168 | | path to pkg-config. |
| 25169 | | |
| 25170 | | Alternatively, you may set the environment variables RGC_CLIENT_CFLAGS |
| 25171 | | and RGC_CLIENT_LIBS to avoid the need to call pkg-config. |
| 25172 | | See the pkg-config man page for more details. |
| 25173 | | |
| 25174 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 25175 | | See \`config.log' for more details." >&5 |
| 25176 | | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
| 25177 | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 25178 | | path to pkg-config. |
| 25179 | | |
| 25180 | | Alternatively, you may set the environment variables RGC_CLIENT_CFLAGS |
| 25181 | | and RGC_CLIENT_LIBS to avoid the need to call pkg-config. |
| 25182 | | See the pkg-config man page for more details. |
| 25183 | | |
| 25184 | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 25185 | | See \`config.log' for more details." >&2;} |
| 25186 | | { (exit 1); exit 1; }; } |
| 25187 | | else |
| 25188 | | RGC_CLIENT_CFLAGS=$pkg_cv_RGC_CLIENT_CFLAGS |
| 25189 | | RGC_CLIENT_LIBS=$pkg_cv_RGC_CLIENT_LIBS |
| 25190 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25191 | | echo "${ECHO_T}yes" >&6; } |
| 25192 | | : |
| 25193 | | fi |
| 25194 | | |
| 25195 | | |
| 25196 | | |
| 25197 | | |
| 25198 | | |
| 25199 | | pkg_failed=no |
| 25200 | | { echo "$as_me:$LINENO: checking for ALSA" >&5 |
| 25201 | | echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; } |
| 25202 | | |
| 25203 | | if test -n "$PKG_CONFIG"; then |
| 25204 | | if test -n "$ALSA_CFLAGS"; then |
| 25205 | | pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" |
| 25206 | | else |
| 25207 | | if test -n "$PKG_CONFIG" && \ |
| 25208 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5 |
| 25209 | | ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 |
| 25210 | | ac_status=$? |
| 25211 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25212 | | (exit $ac_status); }; then |
| 25213 | | pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` |
| 25214 | | else |
| 25215 | | pkg_failed=yes |
| 25216 | | fi |
| 25217 | | fi |
| 25218 | | else |
| 25219 | | pkg_failed=untried |
| 25220 | | fi |
| 25221 | | if test -n "$PKG_CONFIG"; then |
| 25222 | | if test -n "$ALSA_LIBS"; then |
| 25223 | | pkg_cv_ALSA_LIBS="$ALSA_LIBS" |
| 25224 | | else |
| 25225 | | if test -n "$PKG_CONFIG" && \ |
| 25226 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5 |
| 25227 | | ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 |
| 25228 | | ac_status=$? |
| 25229 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25230 | | (exit $ac_status); }; then |
| 25231 | | pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` |
| 25232 | | else |
| 25233 | | pkg_failed=yes |
| 25234 | | fi |
| 25235 | | fi |
| 25236 | | else |
| 25237 | | pkg_failed=untried |
| 25238 | | fi |
| 25239 | | |
| 25240 | | |
| 25241 | | |
| 25242 | | if test $pkg_failed = yes; then |
| 25243 | | |
| 25244 | | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 25245 | | _pkg_short_errors_supported=yes |
| 25246 | | else |
| 25247 | | _pkg_short_errors_supported=no |
| 25248 | | fi |
| 25249 | | if test $_pkg_short_errors_supported = yes; then |
| 25250 | | ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"` |
| 25251 | | else |
| 25252 | | ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"` |
| 25253 | | fi |
| 25254 | | # Put the nasty error message in config.log where it belongs |
| 25255 | | echo "$ALSA_PKG_ERRORS" >&5 |
| 25256 | | |
| 25257 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 25258 | | echo "${ECHO_T}no" >&6; } |
| 25259 | | got_alsa=no |
| 25260 | | elif test $pkg_failed = untried; then |
| 25261 | | got_alsa=no |
| 25262 | | else |
| 25263 | | ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS |
| 25264 | | ALSA_LIBS=$pkg_cv_ALSA_LIBS |
| 25265 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25266 | | echo "${ECHO_T}yes" >&6; } |
| 25267 | | got_alsa=yes |
| 25268 | | fi |
| 25269 | | |
| 25270 | | |
| 25271 | | if test $got_alsa = yes; then |
| 25272 | | HAVE_ALSA_TRUE= |
| 25273 | | HAVE_ALSA_FALSE='#' |
| 25274 | | else |
| 25275 | | HAVE_ALSA_TRUE='#' |
| 25276 | | HAVE_ALSA_FALSE= |
| 25277 | | fi |
| 25278 | | |
| 25279 | | if test "$got_alsa" = "yes"; then |
| 25280 | | |
| 25281 | | cat >>confdefs.h <<_ACEOF |
| 25282 | | #define HAVE_ALSA 1 |
| 25283 | | _ACEOF |
| 25284 | | |
| 25285 | | fi |
| 25286 | | |
| 25287 | | |
| 25288 | | |
| 25289 | | pkg_failed=no |
| 25290 | | { echo "$as_me:$LINENO: checking for JACK" >&5 |
| 25291 | | echo $ECHO_N "checking for JACK... $ECHO_C" >&6; } |
| 25292 | | |
| 25293 | | if test -n "$PKG_CONFIG"; then |
| 25294 | | if test -n "$JACK_CFLAGS"; then |
| 25295 | | pkg_cv_JACK_CFLAGS="$JACK_CFLAGS" |
| 25296 | | else |
| 25297 | | if test -n "$PKG_CONFIG" && \ |
| 25298 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack\"") >&5 |
| 25299 | | ($PKG_CONFIG --exists --print-errors "jack") 2>&5 |
| 25300 | | ac_status=$? |
| 25301 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25302 | | (exit $ac_status); }; then |
| 25303 | | pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null` |
| 25304 | | else |
| 25305 | | pkg_failed=yes |
| 25306 | | fi |
| 25307 | | fi |
| 25308 | | else |
| 25309 | | pkg_failed=untried |
| 25310 | | fi |
| 25311 | | if test -n "$PKG_CONFIG"; then |
| 25312 | | if test -n "$JACK_LIBS"; then |
| 25313 | | pkg_cv_JACK_LIBS="$JACK_LIBS" |
| 25314 | | else |
| 25315 | | if test -n "$PKG_CONFIG" && \ |
| 25316 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack\"") >&5 |
| 25317 | | ($PKG_CONFIG --exists --print-errors "jack") 2>&5 |
| 25318 | | ac_status=$? |
| 25319 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25320 | | (exit $ac_status); }; then |
| 25321 | | pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null` |
| 25322 | | else |
| 25323 | | pkg_failed=yes |
| 25324 | | fi |
| 25325 | | fi |
| 25326 | | else |
| 25327 | | pkg_failed=untried |
| 25328 | | fi |
| 25329 | | |
| 25330 | | |
| 25331 | | |
| 25332 | | if test $pkg_failed = yes; then |
| 25333 | | |
| 25334 | | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 25335 | | _pkg_short_errors_supported=yes |
| 25336 | | else |
| 25337 | | _pkg_short_errors_supported=no |
| 25338 | | fi |
| 25339 | | if test $_pkg_short_errors_supported = yes; then |
| 25340 | | JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "jack"` |
| 25341 | | else |
| 25342 | | JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack"` |
| 25343 | | fi |
| 25344 | | # Put the nasty error message in config.log where it belongs |
| 25345 | | echo "$JACK_PKG_ERRORS" >&5 |
| 25346 | | |
| 25347 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 25348 | | echo "${ECHO_T}no" >&6; } |
| 25349 | | got_jack=no |
| 25350 | | elif test $pkg_failed = untried; then |
| 25351 | | got_jack=no |
| 25352 | | else |
| 25353 | | JACK_CFLAGS=$pkg_cv_JACK_CFLAGS |
| 25354 | | JACK_LIBS=$pkg_cv_JACK_LIBS |
| 25355 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25356 | | echo "${ECHO_T}yes" >&6; } |
| 25357 | | got_jack=yes |
| 25358 | | fi |
| 25359 | | |
| 25360 | | |
| 25361 | | if test $got_jack = yes; then |
| 25362 | | HAVE_JACK_TRUE= |
| 25363 | | HAVE_JACK_FALSE='#' |
| 25364 | | else |
| 25365 | | HAVE_JACK_TRUE='#' |
| 25366 | | HAVE_JACK_FALSE= |
| 25367 | | fi |
| 25368 | | |
| 25369 | | if test "$got_jack" = "yes"; then |
| 25370 | | |
| 25371 | | cat >>confdefs.h <<_ACEOF |
| 25372 | | #define HAVE_JACK 1 |
| 25373 | | _ACEOF |
| 25374 | | |
| 25375 | | fi |
| 25376 | | |
| 25377 | | |
| 25378 | | |
| 25379 | | pkg_failed=no |
| 25380 | | { echo "$as_me:$LINENO: checking for PULSE" >&5 |
| 25381 | | echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; } |
| 25382 | | |
| 25383 | | if test -n "$PKG_CONFIG"; then |
| 25384 | | if test -n "$PULSE_CFLAGS"; then |
| 25385 | | pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS" |
| 25386 | | else |
| 25387 | | if test -n "$PKG_CONFIG" && \ |
| 25388 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse\"") >&5 |
| 25389 | | ($PKG_CONFIG --exists --print-errors "libpulse") 2>&5 |
| 25390 | | ac_status=$? |
| 25391 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25392 | | (exit $ac_status); }; then |
| 25393 | | pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse" 2>/dev/null` |
| 25394 | | else |
| 25395 | | pkg_failed=yes |
| 25396 | | fi |
| 25397 | | fi |
| 25398 | | else |
| 25399 | | pkg_failed=untried |
| 25400 | | fi |
| 25401 | | if test -n "$PKG_CONFIG"; then |
| 25402 | | if test -n "$PULSE_LIBS"; then |
| 25403 | | pkg_cv_PULSE_LIBS="$PULSE_LIBS" |
| 25404 | | else |
| 25405 | | if test -n "$PKG_CONFIG" && \ |
| 25406 | | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse\"") >&5 |
| 25407 | | ($PKG_CONFIG --exists --print-errors "libpulse") 2>&5 |
| 25408 | | ac_status=$? |
| 25409 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25410 | | (exit $ac_status); }; then |
| 25411 | | pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse" 2>/dev/null` |
| 25412 | | else |
| 25413 | | pkg_failed=yes |
| 25414 | | fi |
| 25415 | | fi |
| 25416 | | else |
| 25417 | | pkg_failed=untried |
| 25418 | | fi |
| 25419 | | |
| 25420 | | |
| 25421 | | |
| 25422 | | if test $pkg_failed = yes; then |
| 25423 | | |
| 25424 | | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 25425 | | _pkg_short_errors_supported=yes |
| 25426 | | else |
| 25427 | | _pkg_short_errors_supported=no |
| 25428 | | fi |
| 25429 | | if test $_pkg_short_errors_supported = yes; then |
| 25430 | | PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse"` |
| 25431 | | else |
| 25432 | | PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse"` |
| 25433 | | fi |
| 25434 | | # Put the nasty error message in config.log where it belongs |
| 25435 | | echo "$PULSE_PKG_ERRORS" >&5 |
| 25436 | | |
| 25437 | | { echo "$as_me:$LINENO: result: no" >&5 |
| 25438 | | echo "${ECHO_T}no" >&6; } |
| 25439 | | got_pulse=no |
| 25440 | | elif test $pkg_failed = untried; then |
| 25441 | | got_pulse=no |
| 25442 | | else |
| 25443 | | PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS |
| 25444 | | PULSE_LIBS=$pkg_cv_PULSE_LIBS |
| 25445 | | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25446 | | echo "${ECHO_T}yes" >&6; } |
| 25447 | | got_pulse=yes |
| 25448 | | fi |
| 25449 | | |
| 25450 | | |
| 25451 | | if test $got_pulse = yes; then |
| 25452 | | HAVE_PULSE_TRUE= |
| 25453 | | HAVE_PULSE_FALSE='#' |
| 25454 | | else |
| 25455 | | HAVE_PULSE_TRUE='#' |
| 25456 | | HAVE_PULSE_FALSE= |
| 25457 | | fi |
| 25458 | | |
| 25459 | | if test "$got_pulse" = "yes"; then |
| 25460 | | |
| 25461 | | cat >>confdefs.h <<_ACEOF |
| 25462 | | #define HAVE_PULSE 1 |
| 25463 | | _ACEOF |
| 25464 | | |
| 25465 | | fi |
| 25466 | | |
| 25467 | | |
| 25468 | | |
| 25469 | | |
| 25470 | | case "x$ac_cv_c99_lrint$ac_cv_c99_lrintf" in |
| 25471 | | xyesyes) |
| 25472 | | ;; |
| 25473 | | *) |
| 25474 | | { echo "$as_me:$LINENO: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5 |
| 25475 | | echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;} |
| 25476 | | { echo "$as_me:$LINENO: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5 |
| 25477 | | echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;} |
| 25478 | | ;; |
| 25479 | | esac |
| 25480 | | |
| 25481 | | |
| 25482 | | # Determine if the processor can do clipping on float to int conversions. |
| 25483 | | |
| 25484 | | if test x$ac_arg_cpu_clip = "xY" ; then |
| 25485 | | { echo "$as_me:$LINENO: checking processor clipping capabilities" >&5 |
| 25486 | | echo $ECHO_N "checking processor clipping capabilities... $ECHO_C" >&6; } |
| 25487 | | if test "${ac_cv_c_clip_type+set}" = set; then |
| 25488 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25489 | | else |
| 25490 | | # Initialize to unknown |
| 25491 | | ac_cv_c_clip_positive=unknown |
| 25492 | | ac_cv_c_clip_negative=unknown |
| 25493 | | |
| 25494 | | if test $ac_cv_c_clip_positive = unknown ; then |
| 25495 | | if test "$cross_compiling" = yes; then |
| 25496 | | ac_cv_c_clip_positive=unknown |
| 25497 | | |
| 25498 | | else |
| 25499 | | cat >conftest.$ac_ext <<_ACEOF |
| 25500 | | /* confdefs.h. */ |
| 25501 | | _ACEOF |
| 25502 | | cat confdefs.h >>conftest.$ac_ext |
| 25503 | | cat >>conftest.$ac_ext <<_ACEOF |
| 25504 | | /* end confdefs.h. */ |
| 25505 | | |
| 25506 | | #define _ISOC9X_SOURCE 1 |
| 25507 | | #define _ISOC99_SOURCE 1 |
| 25508 | | #define __USE_ISOC99 1 |
| 25509 | | #define __USE_ISOC9X 1 |
| 25510 | | #include <math.h> |
| 25511 | | int main (void) |
| 25512 | | { double fval ; |
| 25513 | | int k, ival ; |
| 25514 | | |
| 25515 | | fval = 1.0 * 0x7FFFFFFF ; |
| 25516 | | for (k = 0 ; k < 100 ; k++) |
| 25517 | | { ival = (lrint (fval)) >> 24 ; |
| 25518 | | if (ival != 127) |
| 25519 | | return 1 ; |
| 25520 | | |
| 25521 | | fval *= 1.2499999 ; |
| 25522 | | } ; |
| 25523 | | |
| 25524 | | return 0 ; |
| 25525 | | } |
| 25526 | | |
| 25527 | | _ACEOF |
| 25528 | | rm -f conftest$ac_exeext |
| 25529 | | if { (ac_try="$ac_link" |
| 25530 | | case "(($ac_try" in |
| 25531 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25532 | | *) ac_try_echo=$ac_try;; |
| 25533 | | esac |
| 25534 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25535 | | (eval "$ac_link") 2>&5 |
| 25536 | | ac_status=$? |
| 25537 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25538 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 25539 | | { (case "(($ac_try" in |
| 25540 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25541 | | *) ac_try_echo=$ac_try;; |
| 25542 | | esac |
| 25543 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25544 | | (eval "$ac_try") 2>&5 |
| 25545 | | ac_status=$? |
| 25546 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25547 | | (exit $ac_status); }; }; then |
| 25548 | | ac_cv_c_clip_positive=yes |
| 25549 | | else |
| 25550 | | echo "$as_me: program exited with status $ac_status" >&5 |
| 25551 | | echo "$as_me: failed program was:" >&5 |
| 25552 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25553 | | |
| 25554 | | ( exit $ac_status ) |
| 25555 | | ac_cv_c_clip_positive=no |
| 25556 | | fi |
| 25557 | | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 25558 | | fi |
| 25559 | | |
| 25560 | | |
| 25561 | | |
| 25562 | | if test "$cross_compiling" = yes; then |
| 25563 | | ac_cv_c_clip_negative=unknown |
| 25564 | | |
| 25565 | | else |
| 25566 | | cat >conftest.$ac_ext <<_ACEOF |
| 25567 | | /* confdefs.h. */ |
| 25568 | | _ACEOF |
| 25569 | | cat confdefs.h >>conftest.$ac_ext |
| 25570 | | cat >>conftest.$ac_ext <<_ACEOF |
| 25571 | | /* end confdefs.h. */ |
| 25572 | | |
| 25573 | | #define _ISOC9X_SOURCE 1 |
| 25574 | | #define _ISOC99_SOURCE 1 |
| 25575 | | #define __USE_ISOC99 1 |
| 25576 | | #define __USE_ISOC9X 1 |
| 25577 | | #include <math.h> |
| 25578 | | int main (void) |
| 25579 | | { double fval ; |
| 25580 | | int k, ival ; |
| 25581 | | |
| 25582 | | fval = -8.0 * 0x10000000 ; |
| 25583 | | for (k = 0 ; k < 100 ; k++) |
| 25584 | | { ival = (lrint (fval)) >> 24 ; |
| 25585 | | if (ival != -128) |
| 25586 | | return 1 ; |
| 25587 | | |
| 25588 | | fval *= 1.2499999 ; |
| 25589 | | } ; |
| 25590 | | |
| 25591 | | return 0 ; |
| 25592 | | } |
| 25593 | | |
| 25594 | | _ACEOF |
| 25595 | | rm -f conftest$ac_exeext |
| 25596 | | if { (ac_try="$ac_link" |
| 25597 | | case "(($ac_try" in |
| 25598 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25599 | | *) ac_try_echo=$ac_try;; |
| 25600 | | esac |
| 25601 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25602 | | (eval "$ac_link") 2>&5 |
| 25603 | | ac_status=$? |
| 25604 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25605 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 25606 | | { (case "(($ac_try" in |
| 25607 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25608 | | *) ac_try_echo=$ac_try;; |
| 25609 | | esac |
| 25610 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25611 | | (eval "$ac_try") 2>&5 |
| 25612 | | ac_status=$? |
| 25613 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25614 | | (exit $ac_status); }; }; then |
| 25615 | | ac_cv_c_clip_negative=yes |
| 25616 | | else |
| 25617 | | echo "$as_me: program exited with status $ac_status" >&5 |
| 25618 | | echo "$as_me: failed program was:" >&5 |
| 25619 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25620 | | |
| 25621 | | ( exit $ac_status ) |
| 25622 | | ac_cv_c_clip_negative=no |
| 25623 | | fi |
| 25624 | | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 25625 | | fi |
| 25626 | | |
| 25627 | | |
| 25628 | | |
| 25629 | | fi |
| 25630 | | |
| 25631 | | if test $ac_cv_c_clip_positive = yes ; then |
| 25632 | | ac_cv_c_clip_positive=1 |
| 25633 | | else |
| 25634 | | ac_cv_c_clip_positive=0 |
| 25635 | | fi |
| 25636 | | |
| 25637 | | if test $ac_cv_c_clip_negative = yes ; then |
| 25638 | | ac_cv_c_clip_negative=1 |
| 25639 | | else |
| 25640 | | ac_cv_c_clip_negative=0 |
| 25641 | | fi |
| 25642 | | |
| 25643 | | |
| 25644 | | case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in |
| 25645 | | "00") |
| 25646 | | ac_cv_c_clip_type="none" |
| 25647 | | ;; |
| 25648 | | "10") |
| 25649 | | ac_cv_c_clip_type="positive" |
| 25650 | | ;; |
| 25651 | | "01") |
| 25652 | | ac_cv_c_clip_type="negative" |
| 25653 | | ;; |
| 25654 | | "11") |
| 25655 | | ac_cv_c_clip_type="both" |
| 25656 | | ;; |
| 25657 | | esac |
| 25658 | | |
| 25659 | | |
| 25660 | | |
| 25661 | | fi |
| 25662 | | { echo "$as_me:$LINENO: result: $ac_cv_c_clip_type" >&5 |
| 25663 | | echo "${ECHO_T}$ac_cv_c_clip_type" >&6; } |
| 25664 | | |
| 25665 | | |
| 25666 | | |
| 25667 | | else |
| 25668 | | echo "checking processor clipping capabilities... disabled" |
| 25669 | | ac_cv_c_clip_positive=0 |
| 25670 | | ac_cv_c_clip_negative=0 |
| 25671 | | fi |
| 25672 | | |
| 25673 | | |
| 25674 | | cat >>confdefs.h <<_ACEOF |
| 25675 | | #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive} |
| 25676 | | _ACEOF |
| 25677 | | |
| 25678 | | |
| 25679 | | cat >>confdefs.h <<_ACEOF |
| 25680 | | #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative} |
| 25681 | | _ACEOF |
| 25682 | | |
| 25683 | | |
| 25684 | | |
| 25685 | | |
| 25686 | | # Location defines |
| 25687 | | |
| 25688 | | # Set PACKAGE_LOCALE_DIR in config.h. |
| 25689 | | if test "x${prefix}" = "xNONE"; then |
| 25690 | | |
| 25691 | | cat >>confdefs.h <<_ACEOF |
| 25692 | | #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale" |
| 25693 | | _ACEOF |
| 25694 | | |
| 25695 | | else |
| 25696 | | |
| 25697 | | cat >>confdefs.h <<_ACEOF |
| 25698 | | #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale" |
| 25699 | | _ACEOF |
| 25700 | | |
| 25701 | | fi |
| 25702 | | |
| 25703 | | # Set PACKAGE SOURCE DIR in config.h. |
| 25704 | | packagesrcdir=`cd $srcdir && pwd` |
| 25705 | | |
| 25706 | | # Set PACKAGE PREFIX |
| 25707 | | if test "x${prefix}" = "xNONE"; then |
| 25708 | | packageprefix=${ac_default_prefix} |
| 25709 | | else |
| 25710 | | packageprefix=${prefix} |
| 25711 | | fi |
| 25712 | | |
| 25713 | | # Set PACKAGE DATA & DOC DIR |
| 25714 | | packagedatadir=share/${PACKAGE} |
| 25715 | | packagedocdir=doc/${PACKAGE} |
| 25716 | | |
| 25717 | | # Set PACKAGE DIRS in config.h. |
| 25718 | | packagepixmapsdir=${packagedatadir}/pixmaps |
| 25719 | | packagehelpdir=${packagedatadir}/help |
| 25720 | | packagemenudir=${packagedatadir} |
| 25721 | | |
| 25722 | | # Subst PACKAGE_DATA_DIR. |
| 25723 | | NO_PREFIX_PACKAGE_DATA_DIR="${packagedatadir}" |
| 25724 | | |
| 25725 | | PACKAGE_DATA_DIR="${packageprefix}/${packagedatadir}" |
| 25726 | | |
| 25727 | | |
| 25728 | | # Subst PACKAGE_DOC_DIR. |
| 25729 | | NO_PREFIX_PACKAGE_DOC_DIR="${packagedocdir}" |
| 25730 | | |
| 25731 | | PACKAGE_DOC_DIR="${packageprefix}/${packagedocdir}" |
| 25732 | | |
| 25733 | | |
| 25734 | | # Subst PACKAGE_PIXMAPS_DIR. |
| 25735 | | NO_PREFIX_PACKAGE_PIXMAPS_DIR="${packagepixmapsdir}" |
| 25736 | | |
| 25737 | | PACKAGE_PIXMAPS_DIR="${packageprefix}/${packagepixmapsdir}" |
| 25738 | | |
| 25739 | | |
| 25740 | | # Subst PACKAGE_HELP_DIR. |
| 25741 | | NO_PREFIX_PACKAGE_HELP_DIR="${packagehelpdir}" |
| 25742 | | |
| 25743 | | PACKAGE_HELP_DIR="${packageprefix}/${packagehelpdir}" |
| 25744 | | |
| 25745 | | |
| 25746 | | # Subst PACKAGE_MENU_DIR. |
| 25747 | | NO_PREFIX_PACKAGE_MENU_DIR="${packagemenudir}" |
| 25748 | | |
| 25749 | | PACKAGE_MENU_DIR="${packageprefix}/${packagemenudir}" |
| 25750 | | |
| 25751 | | |
| 25752 | | |
| 25753 | | cat >>confdefs.h <<_ACEOF |
| 25754 | | #define PACKAGE_DATA_DIR "${packageprefix}/${packagedatadir}" |
| 25755 | | _ACEOF |
| 25756 | | |
| 25757 | | |
| 25758 | | cat >>confdefs.h <<_ACEOF |
| 25759 | | #define PACKAGE_DOC_DIR "${packageprefix}/${packagedocdir}" |
| 25760 | | _ACEOF |
| 25761 | | |
| 25762 | | |
| 25763 | | cat >>confdefs.h <<_ACEOF |
| 25764 | | #define PACKAGE_PIXMAPS_DIR "${packageprefix}/${packagepixmapsdir}" |
| 25765 | | _ACEOF |
| 25766 | | |
| 25767 | | |
| 25768 | | cat >>confdefs.h <<_ACEOF |
| 25769 | | #define PACKAGE_HELP_DIR "${packageprefix}/${packagehelpdir}" |
| 25770 | | _ACEOF |
| 25771 | | |
| 25772 | | |
| 25773 | | cat >>confdefs.h <<_ACEOF |
| 25774 | | #define PACKAGE_MENU_DIR "${packageprefix}/${packagemenudir}" |
| 25775 | | _ACEOF |
| 25776 | | |
| 25777 | | |
| 25778 | | cat >>confdefs.h <<_ACEOF |
| 25779 | | #define PACKAGE_SOURCE_DIR "${packagesrcdir}" |
| 25780 | | _ACEOF |
| 25781 | | |
| 25782 | | |
| 25783 | | |
| 25784 | | |
| 25785 | | ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile src/fm_input_gst/Makefile src/fm_song_db/Makefile test/Makefile" |
| | 20917 | |
| | 20918 | ##PKG_CHECK_MODULES([Vamp],[vamp-sdk]) |
| | 20919 | ##AC_SUBST(Vamp_CFLAGS) |
| | 20920 | ##AC_SUBST(Vamp_LIBS) |
| | 20921 | |
| | 20922 | if test "x$GCC" = "xyes"; then |
| | 20923 | case " $CXXFLAGS " in |
| | 20924 | *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;; |
| | 20925 | *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;; |
| | 20926 | esac |
| | 20927 | fi |
| | 20928 | |
| | 20929 | ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile" |